/* ==========================================================================
   KAIZEN admin theme  —  Bootstrap 5.3
   --------------------------------------------------------------------------
   1. Design tokens (light + dark, driven by BS 5.3 data-bs-theme)
   2. Layout shell   (header / sidebar / content / footer)
   3. Components     (cards, tables, forms, badges, pagination)
   4. Bootstrap 3 compatibility shim -- the existing views are written in
      BS3 / AdminLTE 2 markup, so the old class names are mapped here rather
      than rewritten across 80 files.
   ========================================================================== */

/* ---------- 1. tokens ---------------------------------------------------- */
:root {
  --kz-brand:        #2c6fbb;
  --kz-brand-dark:   #1f5490;
  --kz-accent:       #17a2b8;

  --kz-header-bg:    #ffffff;
  --kz-header-fg:    #223046;
  --kz-sidebar-bg:   #1c2b41;
  --kz-sidebar-fg:   #b9c5d6;
  --kz-sidebar-hov:  #263a56;
  --kz-sidebar-act:  var(--kz-brand);
  --kz-sidebar-head: #7b8ba5;

  --kz-body-bg:      #eef2f7;
  --kz-card-bg:      #ffffff;
  --kz-card-brd:     #e3e9f0;
  --kz-text:         #2f3b52;
  --kz-muted:        #7c8aa0;
  --kz-shadow:       0 1px 2px rgba(31,45,61,.06), 0 2px 8px rgba(31,45,61,.05);
  --kz-radius:       10px;
  --kz-sidebar-w:    240px;
  --kz-sidebar-mini: 64px;
}

[data-bs-theme="dark"] {
  --kz-brand:        #4a90e2;
  --kz-brand-dark:   #3a76bd;
  --kz-accent:       #22b8cf;

  --kz-header-bg:    #16202e;
  --kz-header-fg:    #dbe4f0;
  --kz-sidebar-bg:   #111926;
  --kz-sidebar-fg:   #9fb0c7;
  --kz-sidebar-hov:  #1c2a3d;
  --kz-sidebar-head: #64758f;

  --kz-body-bg:      #0e1520;
  --kz-card-bg:      #16202e;
  --kz-card-brd:     #243349;
  --kz-text:         #dbe4f0;
  --kz-muted:        #8595ad;
  --kz-shadow:       0 1px 2px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.25);
}

/* ---------- 2. layout ---------------------------------------------------- */
html, body { height: 100%; }
body {
  background: var(--kz-body-bg);
  color: var(--kz-text);
  font-family: "Segoe UI", "Droid Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

.wrapper { min-height: 100%; }

/* header ---------------------------------------------------------------- */
.main-header {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1030;
  background: var(--kz-header-bg);
  border-bottom: 1px solid var(--kz-card-brd);
  display: flex; align-items: center;
  box-shadow: 0 1px 3px rgba(31,45,61,.06);
}
.main-header .logo {
  width: var(--kz-sidebar-w); flex: 0 0 var(--kz-sidebar-w);
  height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--kz-sidebar-bg); color: #fff;
  text-decoration: none; font-weight: 700; letter-spacing: .3px;
  overflow: hidden;
}
.main-header .logo img { max-height: 38px; max-width: 90%; }
.main-header .logo-mini { display: none; }
.main-header .navbar {
  flex: 1; display: flex; align-items: center; gap: .5rem;
  padding: 0 1rem; min-width: 0;
}
.kz-title {
  font-size: 16px; font-weight: 600; color: var(--kz-header-fg);
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kz-title small { color: var(--kz-muted); font-weight: 500; }
.kz-header-actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.kz-iconbtn {
  width: 38px; height: 38px; border-radius: 8px; border: 0; background: transparent;
  color: var(--kz-header-fg); display: inline-flex; align-items: center;
  justify-content: center; position: relative; text-decoration: none;
}
.kz-iconbtn:hover { background: rgba(125,145,175,.15); color: var(--kz-brand); }
.kz-iconbtn .badge { position: absolute; top: 2px; right: 2px; font-size: 10px; padding: .15em .4em; }

/* sidebar --------------------------------------------------------------- */
.main-sidebar {
  position: fixed; top: 56px; bottom: 0; left: 0; width: var(--kz-sidebar-w);
  background: var(--kz-sidebar-bg); z-index: 1020; overflow-y: auto; overflow-x: hidden;
  transition: transform .2s ease, width .18s ease;
}
.main-sidebar::-webkit-scrollbar { width: 6px; }
.main-sidebar::-webkit-scrollbar-thumb { background: #33455f; border-radius: 3px; }

.sidebar-menu, .treeview-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu > li > a,
.treeview-menu > li > a {
  display: flex; align-items: center; gap: .65rem;
  padding: .62rem 1rem; color: var(--kz-sidebar-fg);
  text-decoration: none; font-size: 13.5px; border-left: 3px solid transparent;
}
.sidebar-menu > li > a > i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-menu > li > a:hover,
.treeview-menu > li > a:hover { background: var(--kz-sidebar-hov); color: #fff; }
.sidebar-menu > li.active > a,
.sidebar-menu > li > a.active {
  background: var(--kz-sidebar-hov); color: #fff;
  border-left-color: var(--kz-sidebar-act);
}
.sidebar-menu > li > a > .fa-angle-left { margin-left: auto; transition: transform .18s ease; }
.sidebar-menu > li.menu-open > a > .fa-angle-left { transform: rotate(-90deg); }

.treeview-menu { background: rgba(0,0,0,.22); display: none; }
.sidebar-menu > li.menu-open > .treeview-menu,
.sidebar-menu > li.active > .treeview-menu { display: block; }
.treeview-menu > li > a { padding-left: 2.85rem; font-size: 13px; }
.treeview-menu > li > a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .5; margin-right: .1rem;
}

/* content --------------------------------------------------------------- */
.content-wrapper {
  margin-left: var(--kz-sidebar-w); padding-top: 56px; min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .18s ease;
}
.content-wrapper > .content { flex: 1; padding: 18px; }
.main-footer {
  margin-left: var(--kz-sidebar-w); padding: 12px 18px;
  background: var(--kz-card-bg); border-top: 1px solid var(--kz-card-brd);
  color: var(--kz-muted); font-size: 12.5px;
}

/* collapsed sidebar: an icon-only rail, NOT hidden ----------------------
   Clicking the toggle shrinks the sidebar to icons so navigation stays
   reachable; hovering the rail temporarily reveals the full menu. */
body.sidebar-collapse .main-sidebar { width: var(--kz-sidebar-mini); }
body.sidebar-collapse .content-wrapper,
body.sidebar-collapse .main-footer   { margin-left: var(--kz-sidebar-mini); }
body.sidebar-collapse .main-header .logo {
  width: var(--kz-sidebar-mini); flex: 0 0 var(--kz-sidebar-mini);
}
body.sidebar-collapse .main-header .logo img  { display: none; }
body.sidebar-collapse .main-header .logo-mini { display: block; font-size: 13px; }

/* labels and sub-menus are hidden while collapsed */
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > span,
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > .fa-angle-left,
body.sidebar-collapse .main-sidebar .treeview-menu { display: none; }
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a {
  justify-content: center; padding-left: 0; padding-right: 0;
}
body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > i { font-size: 17px; }

/* hover the rail to see the full menu again without un-collapsing */
body.sidebar-collapse .main-sidebar:hover {
  width: var(--kz-sidebar-w); box-shadow: 4px 0 18px rgba(0,0,0,.28);
}
body.sidebar-collapse .main-sidebar:hover .sidebar-menu > li > a > span,
body.sidebar-collapse .main-sidebar:hover .sidebar-menu > li > a > .fa-angle-left { display: block; }
body.sidebar-collapse .main-sidebar:hover .sidebar-menu > li.menu-open > .treeview-menu { display: block; }
body.sidebar-collapse .main-sidebar:hover .sidebar-menu > li > a {
  justify-content: flex-start; padding-left: 1rem; padding-right: 1rem;
}

@media (max-width: 991.98px) {
  .main-sidebar { transform: translateX(-100%); }
  .content-wrapper, .main-footer { margin-left: 0; }
  .main-header .logo { width: 64px; flex: 0 0 64px; }
  .main-header .logo img { display: none; }
  .main-header .logo-mini { display: block; }
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar:hover { width: var(--kz-sidebar-w); transform: translateX(-100%); }
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer { margin-left: 0; }
  body.sidebar-open .main-sidebar,
  body.sidebar-collapse.sidebar-open .main-sidebar { transform: translateX(0); }
  .kz-title { font-size: 14px; }
}

/* ---------- 3. components ------------------------------------------------ */
.box, .panel, .card, .insight-card {
  background: var(--kz-card-bg);
  border: 1px solid var(--kz-card-brd);
  border-radius: var(--kz-radius);
  box-shadow: var(--kz-shadow);
  margin-bottom: 18px;
}
.box-header, .panel-heading, .card-header, .ic-head {
  padding: 12px 16px; border-bottom: 1px solid var(--kz-card-brd);
  font-weight: 600; color: var(--kz-text);
  border-radius: var(--kz-radius) var(--kz-radius) 0 0;
}
.box-body, .panel-body, .card-body, .ic-body { padding: 16px; }
.box-footer, .panel-footer, .card-footer {
  padding: 12px 16px; border-top: 1px solid var(--kz-card-brd);
}
.box-header h5, .widget-head h5 { margin: 0; font-size: 15px; font-weight: 700; }
.widget-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.widget-control { margin-left: auto; }
.box-primary  { border-top: 3px solid var(--kz-brand); }
.box-success  { border-top: 3px solid var(--bs-success); }
.box-info     { border-top: 3px solid var(--kz-accent); }
.box-warning  { border-top: 3px solid var(--bs-warning); }
.box-danger   { border-top: 3px solid var(--bs-danger); }

/* tables ---------------------------------------------------------------- */
.table { color: var(--kz-text); vertical-align: middle; margin-bottom: 0; }
.table > thead > tr > th {
  background: color-mix(in srgb, var(--kz-brand) 8%, var(--kz-card-bg));
  color: var(--kz-text); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
  border-bottom: 2px solid var(--kz-card-brd) !important; padding: 10px 8px;
}
.table > tbody > tr > td { padding: 8px; font-size: 13px; }
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: transparent;
  background: color-mix(in srgb, var(--kz-text) 3%, transparent);
}
.table-hover > tbody > tr:hover > * { background: color-mix(in srgb, var(--kz-brand) 7%, transparent); }
/* the views hard-code 1px solid #000 borders; soften them in both themes */
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table > thead:first-child > tr:first-child > th { border-color: var(--kz-card-brd) !important; }
.table-responsive { border-radius: var(--kz-radius); }

/* forms ----------------------------------------------------------------- */
.form-control, .form-select, .input-group-text {
  background: var(--kz-card-bg); color: var(--kz-text);
  border-color: var(--kz-card-brd); border-radius: 8px; font-size: 13.5px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--kz-brand);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--kz-brand) 22%, transparent);
}
.form-control::placeholder { color: var(--kz-muted); }
label, .control-label, .form-label { font-weight: 600; font-size: 13px; color: var(--kz-text); }
.error-msg { color: var(--bs-danger); font-size: 12px; display: block; }

/* buttons / badges ------------------------------------------------------- */
.btn { border-radius: 8px; font-size: 13.5px; }
.btn-primary { background: var(--kz-brand); border-color: var(--kz-brand); }
.btn-primary:hover { background: var(--kz-brand-dark); border-color: var(--kz-brand-dark); }
.badge, .label { font-weight: 600; }

/* pagination ------------------------------------------------------------- */
.pagination { margin: 0; flex-wrap: wrap; }
.pagination > li { display: inline-block; }
.pagination > li > a, .pagination > li > span {
  position: relative; display: block; padding: .35rem .7rem; margin-left: -1px;
  color: var(--kz-brand); background: var(--kz-card-bg);
  border: 1px solid var(--kz-card-brd); text-decoration: none; font-size: 13px;
}
.pagination > li:first-child > a { border-radius: 8px 0 0 8px; }
.pagination > li:last-child > a  { border-radius: 0 8px 8px 0; }
.pagination > li.active > a { background: var(--kz-brand); border-color: var(--kz-brand); color: #fff; }
.box-tools { padding-top: 12px; }
.box-tools p { margin: 0; color: var(--kz-muted); font-size: 12.5px; }

/* select2 in both themes -------------------------------------------------- */
.select2-container--default .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection {
  background: var(--kz-card-bg); border-color: var(--kz-card-brd);
  color: var(--kz-text); border-radius: 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--kz-text); }
.select2-dropdown { background: var(--kz-card-bg); border-color: var(--kz-card-brd); color: var(--kz-text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--kz-brand); }
.select2-search__field { background: var(--kz-card-bg); color: var(--kz-text); }

/* ---------- 4. residual BS3 idioms kept on purpose ----------------------
   The views are now native Bootstrap 5. Only three things still need help:
   the horizontal-form row behaviour, the .input-group-btn wrapper (kept so
   the markup stays tag-balanced), and AdminLTE colour utilities.
   ---------------------------------------------------------------------- */

/* form-group became .mb-3. Inside a horizontal form such a block must lay out
   as a grid row -- but only when it actually contains column children, so a
   plain .mb-3 wrapper never turns into a stray row. The rows are often nested
   inside .card-body, hence the descendant (not child) selector. */
.form-horizontal > .mb-3,
.form-horizontal fieldset > .mb-3,
.form-horizontal .card-body > .mb-3 {
  display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px;
}
.form-horizontal .mb-3:has(> [class*="col-"]) {
  display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px;
}
.form-horizontal .mb-3 > [class*="col-"],
.form-horizontal .mb-3 > label {
  padding-right: 12px; padding-left: 12px;
}
.form-horizontal .col-form-label { text-align: right; }
@media (max-width: 767.98px) {
  .form-horizontal .col-form-label { text-align: left; }
  .form-horizontal .mb-3 > [class*="col-"],
  .form-horizontal .mb-3 > label { width: 100%; flex: 0 0 100%; }
}

/* BS5 puts buttons straight in .input-group; the old wrapper span is kept
   in the markup, so make it behave as a plain flex item. */
.input-group-btn { display: flex; align-items: stretch; }
.input-group-btn > .btn { border-radius: 0 8px 8px 0; }

/* card accent stripe, replacing .box-primary / .panel-success etc. */
.card-accent-primary { border-top: 3px solid var(--kz-brand); }
.card-accent-info    { border-top: 3px solid var(--kz-accent); }
.card-accent-success { border-top: 3px solid var(--bs-success); }
.card-accent-warning { border-top: 3px solid var(--bs-warning); }
.card-accent-danger  { border-top: 3px solid var(--bs-danger); }
.card-accent-default { border-top: 3px solid var(--kz-card-brd); }
/* nested cards (a few views wrap one card in another) should not double up */
.card .card { border: 0; box-shadow: none; margin-bottom: 0; border-radius: 0; }

/* AdminLTE colour utilities still used in views */
.text-yellow{color:#f0ad4e!important}.text-red{color:var(--bs-danger)!important}
.text-green{color:var(--bs-success)!important}.text-aqua{color:var(--kz-accent)!important}
.tiny-icon { margin-right: 5px; }

/* dropdown menus still use <li><a class="dropdown-item"> */
.dropdown-menu { font-size: 13.5px; box-shadow: var(--kz-shadow); }
.dropdown-menu li { list-style: none; }

/* legacy caret + button group */
.caret {
  display: inline-block; width: 0; height: 0; margin-left: 4px;
  vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.btn-group { position: relative; display: inline-flex; vertical-align: middle; }

/* ---- Summernote ------------------------------------------------------
   The editor frame carries class .card, so the "nested cards" reset above
   stripped its border and background and the editing area became invisible.
   Restore a real input surface here, in both themes. */
.note-editor.note-frame,
.card .note-editor.note-frame.card {
  border: 1px solid var(--kz-card-brd) !important;
  border-radius: 8px !important;
  background: var(--kz-card-bg) !important;
  box-shadow: none;
  margin-bottom: 0;
  overflow: hidden;
}
.note-editor.note-frame .note-toolbar {
  background: color-mix(in srgb, var(--kz-text) 4%, var(--kz-card-bg));
  border-bottom: 1px solid var(--kz-card-brd);
  padding: 6px 8px;
}
.note-editor.note-frame .note-editable {
  background: var(--kz-card-bg);
  color: var(--kz-text);
  padding: 10px 12px;
  min-height: 120px;
}
.note-editor.note-frame .note-editable:focus { outline: none; }
.note-editor.note-frame .note-placeholder { color: var(--kz-muted); padding: 10px 12px; }
.note-editor.note-frame .note-statusbar {
  background: color-mix(in srgb, var(--kz-text) 4%, var(--kz-card-bg));
  border-top: 1px solid var(--kz-card-brd);
}
.note-editor.note-frame .note-btn {
  background: var(--kz-card-bg); color: var(--kz-text);
  border: 1px solid var(--kz-card-brd);
}
.note-editor.note-frame .note-btn:hover {
  background: color-mix(in srgb, var(--kz-brand) 12%, var(--kz-card-bg));
  color: var(--kz-brand);
}
/* show focus the same way a form-control does */
.note-editor.note-frame:focus-within {
  border-color: var(--kz-brand) !important;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--kz-brand) 22%, transparent);
}

/* datepicker surface in dark mode */
[data-bs-theme="dark"] .datepicker {
  background: var(--kz-card-bg) !important; color: var(--kz-text) !important;
}
[data-bs-theme="dark"] .datepicker table tr td.day:hover { background: var(--kz-sidebar-hov); }
/* loading overlay ------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--kz-body-bg);
  display: flex; align-items: center; justify-content: center;
}
.loader::after {
  content: ""; width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--kz-card-brd); border-top-color: var(--kz-brand);
  animation: kz-spin .7s linear infinite;
}
@keyframes kz-spin { to { transform: rotate(360deg); } }

/* print ----------------------------------------------------------------- */
@media print {
  .main-header, .main-sidebar, .main-footer, .no-print, .klf-form, .box-tools { display: none !important; }
  .content-wrapper { margin: 0 !important; padding: 0 !important; }
  .box, .panel, .card { border: 0; box-shadow: none; }
}

/* neutral avatar used when a user has no photo on file */
.kz-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: color-mix(in srgb, var(--kz-brand) 18%, var(--kz-card-bg));
  color: var(--kz-brand); flex: 0 0 auto;
}

/* ---------- dashboard stat cards ---------------------------------------
   The dashboard uses the AdminLTE 2 info-box structure:
     .info-box > .info-box-icon + .info-box-content(.info-box-text,.info-box-number)
   Restyled here as a modern KPI card in both themes.
   -------------------------------------------------------------------- */
.info-box, .success-box, .danger-box {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: var(--kz-card-bg);
  border: 1px solid var(--kz-card-brd);
  border-radius: var(--kz-radius);
  box-shadow: var(--kz-shadow);
  padding: 16px; margin-bottom: 18px; min-height: 92px;
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.info-box:hover, .success-box:hover, .danger-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31,45,61,.12);
}
/* accent stripe down the left edge */
.info-box::before, .success-box::before, .danger-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--kz-brand);
}
.success-box::before { background: var(--bs-success); }
.danger-box::before  { background: var(--bs-danger); }

.info-box-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.info-box-content { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.info-box-text {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--kz-muted); line-height: 1.35;
}
.info-box-number {
  font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--kz-text);
}

/* AdminLTE colour utilities used for the icon tiles */
.bg-aqua   { background: linear-gradient(135deg,#3a7bd5,#2b5876) !important; color:#fff !important; }
.bg-green  { background: linear-gradient(135deg,#11998e,#38ef7d) !important; color:#fff !important; }
.bg-orange { background: linear-gradient(135deg,#f7971e,#ffb347) !important; color:#fff !important; }
.bg-red    { background: linear-gradient(135deg,#eb3349,#f45c43) !important; color:#fff !important; }
.bg-blue   { background: linear-gradient(135deg,#4a90e2,#2b5876) !important; color:#fff !important; }
.bg-purple { background: linear-gradient(135deg,#9d50bb,#6e48aa) !important; color:#fff !important; }
.bg-yellow { background: linear-gradient(135deg,#f2c94c,#f2994a) !important; color:#fff !important; }

/* section heading above a group of stat cards */
.kz-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--kz-text);
  margin: 4px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--kz-card-brd);
}
.kz-section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--kz-brand);
}

/* Accent stripe follows the icon colour rather than the wrapper class --
   the dashboard marks "pending" as .success-box but with an orange icon.
   Browsers without :has() simply keep the wrapper-based stripe above. */
.info-box:has(.bg-orange)::before,
.success-box:has(.bg-orange)::before,
.danger-box:has(.bg-orange)::before { background: #f7971e; }
.info-box:has(.bg-green)::before,
.success-box:has(.bg-green)::before { background: var(--bs-success); }
.info-box:has(.bg-red)::before,
.success-box:has(.bg-red)::before,
.danger-box:has(.bg-red)::before { background: var(--bs-danger); }
.info-box:has(.bg-aqua)::before { background: var(--kz-brand); }

/* ---------- table cell controls ----------------------------------------
   Status cells are <span class="btn btn-sm btn-success">; render them as
   pills rather than buttons. Action dropdowns get a lighter treatment. */
td > span.btn, td > span.btn:hover {
  display: inline-block; padding: .25em .65em; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  border: 0; box-shadow: none; cursor: default; pointer-events: none;
  white-space: nowrap;
}
td .btn-group > .btn-secondary {
  background: transparent; color: var(--kz-muted);
  border: 1px solid var(--kz-card-brd);
}
td .btn-group > .btn-secondary:hover {
  background: color-mix(in srgb, var(--kz-brand) 10%, transparent);
  color: var(--kz-brand); border-color: var(--kz-brand);
}
td .btn-sm { padding: .2rem .5rem; }
.table td, .table th { vertical-align: middle; }
.table td { font-size: 12.8px; }

/* filter bar sits on a tinted strip so it reads as a toolbar */
.klf-form {
  background: color-mix(in srgb, var(--kz-text) 3.5%, var(--kz-card-bg));
  border: 1px solid var(--kz-card-brd); border-radius: var(--kz-radius);
  padding: 12px 12px 6px; margin-bottom: 14px;
}
.klf-form .row { margin-bottom: 0 !important; }

/* card header reads as a toolbar row */
.card-header .widget-block, .card-header .widget-head { width: 100%; }
.card-header h5 { text-transform: uppercase; letter-spacing: .3px; font-size: 13.5px; }

/* Bootstrap 5 draws its own caret on .dropdown-toggle via ::after, so any
   leftover Bootstrap 3 <span class="caret"> would render a second arrow. */
.dropdown-toggle .caret { display: none !important; }
