/* Send SL Bravely staff portal — WHH / SEND theme on top of Bootstrap 5.
   Layout follows the SGBV Wireframe (web admin): navy sidebar, light grey canvas,
   white rounded cards, green accent. Loaded after vendor CSS so it wins. */
:root {
  --primary: #2e7d32;
  --primary-mid: #388e3c;
  --primary-dark: #1b5e20;
  --primary-deep: #0f3d14;
  --primary-light: #e8f3ea;
  --navy: #182235;
  --navy-2: #1f2b42;
  --navy-line: rgba(255, 255, 255, 0.08);
  --dark: #263238;
  --slate: #56656d;
  --muted: #6f7f88;
  --canvas: #f3f5f8;
  --surface: #f3f5f8;
  /* Auth pages only: pale cool canvas sampled from the reference sign-in. */
  --auth-canvas: #eef1f8;
  --surface-elevated: #ffffff;
  --border: #e3e8ee;
  --border-strong: #cfd8e1;
  --error: #d32f2f;
  --success: #43a047;
  --warning: #f9a825;
  --warning-text: #8a5a00;
  --info: #1e6fd9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-auth:
    0 1px 1px rgba(24, 34, 53, 0.04),
    0 18px 40px rgba(24, 34, 53, 0.07),
    0 40px 80px rgba(28, 39, 68, 0.05);
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 248px;
  --focus: 0 0 0 3px rgba(46, 125, 50, 0.35);

  /* Bootstrap variable overrides */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--dark);
  --bs-body-bg: var(--canvas);
  --bs-border-color: var(--border);
  --bs-link-color: var(--primary-dark);
  --bs-link-color-rgb: 27, 94, 32;
  --bs-link-hover-color: var(--primary);
  --bs-link-hover-color-rgb: 46, 125, 50;
  --bs-primary: var(--primary);
  --bs-primary-rgb: 46, 125, 50;
  --bs-border-radius: var(--radius-sm);
  --bs-focus-ring-color: rgba(46, 125, 50, 0.3);
  --bs-code-color: var(--primary-dark);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.muted { color: var(--slate); font-size: 0.88rem; }
.small-note { font-size: 0.8rem; margin-top: 0.75rem; }
.icon { width: 1.15rem; height: 1.15rem; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; }
.skip-link:focus { left: 0.5rem; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--primary); color: #fff; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 0.62rem 1.1rem; min-height: 44px;
  font-weight: 600; font-size: 0.93rem; font-family: inherit; line-height: 1.2;
  cursor: pointer; text-decoration: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn:focus-visible { box-shadow: var(--focus); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }
.btn.btn-block { width: 100%; }
.btn-brand { background: var(--primary); color: #fff; }
.btn-outline, .btn.secondary { background: #fff; color: var(--dark); border-color: var(--border-strong); }
.btn-outline:hover, .btn.secondary:hover { background: #f6f8fa; color: var(--dark); border-color: #b9c5d0; }
.btn-outline-danger-soft { background: #fff; color: var(--error); border-color: #f0b4b4; }
.btn-outline-danger-soft:hover { background: #fdf1f1; color: #b71c1c; border-color: var(--error); }
.btn-danger-solid, .btn.danger { background: var(--error); color: #fff; }
.btn-danger-solid:hover { background: #b71c1c; color: #fff; }
.btn-row {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0.3rem 0.7rem;
  font-size: 0.82rem; font-weight: 600; border-radius: 6px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--dark); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-row:hover { background: #f4f6f8; text-decoration: none; color: var(--dark); }
.btn-row--brand { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-row--brand:hover { background: var(--primary-dark); color: #fff; }
.btn-row--danger { color: var(--error); border-color: #f0b4b4; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn .icon { width: 1.4rem; height: 1.4rem; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* ——— Shell ——— */
.topbar { display: none; }
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--navy); color: #d9e1ec;
  display: flex; flex-direction: column; padding: 1.1rem 0.85rem 1rem;
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0.35rem 1.1rem; border-bottom: 1px solid var(--navy-line); margin-bottom: 0.9rem; }
.sidebar__brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; }
.sidebar__brand:hover { text-decoration: none; color: #fff; }
.brand-mark { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); align-items: center; justify-content: center; color: #fff; }
.brand-mark .icon { width: 1.35rem; height: 1.35rem; color: #fff; }
.sidebar__name { display: block; font-family: var(--display); font-weight: 650; font-size: 1.05rem; line-height: 1.1; letter-spacing: -0.01em; }
.sidebar__tag { display: block; font-size: 0.72rem; color: #9fb0c5; margin-top: 0.15rem; }
.sidebar__close { display: none; color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.side-nav__form { margin: 0; }
.side-nav__link {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  min-height: 44px; padding: 0.55rem 0.8rem; border-radius: 8px;
  color: #c9d3e0; font-weight: 500; font-size: 0.93rem; text-decoration: none;
  background: transparent; border: 0; font-family: inherit; text-align: left; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.side-nav__link:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.side-nav__link.is-active { background: var(--primary); color: #fff; }
.side-nav__link:focus-visible { box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.6); }
.side-nav__form .side-nav__link { margin-top: 0.4rem; border-top: 1px solid var(--navy-line); border-radius: 0 0 8px 8px; padding-top: 0.8rem; }
.sidebar__user { display: flex; align-items: center; gap: 0.65rem; padding: 0.9rem 0.4rem 0.2rem; border-top: 1px solid var(--navy-line); margin-top: 0.9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2c3a55; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.sidebar__user-text { display: flex; flex-direction: column; font-size: 0.78rem; line-height: 1.3; min-width: 0; }
.sidebar__user-text strong { color: #fff; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user-text span { color: #9fb0c5; }
.backdrop { position: fixed; inset: 0; background: rgba(12, 18, 30, 0.5); z-index: 40; }

.main { padding: 1.6rem 2rem 2.5rem; min-width: 0; }
.main:focus { outline: none; }
.footer-note { margin-top: 2rem; font-size: 0.78rem; color: var(--muted); }

/* ——— Page header ——— */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-title { font-family: var(--font); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.015em; margin: 0 0 0.25rem; color: var(--dark); }
.page-lead { color: var(--slate); margin: 0; max-width: 46rem; font-size: 0.93rem; }
.page-actions { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; }
.crumbs { font-size: 0.85rem; color: var(--slate); margin-bottom: 0.75rem; }
.crumbs a { color: var(--slate); }
.link-quiet { font-size: 0.85rem; font-weight: 600; }

/* ——— Cards ——— */
.card {
  background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; min-width: 0;
  --bs-card-border-color: var(--border);
}
.card--table { padding: 0; overflow: hidden; }
.card--table > .card__head { padding: 1rem 1.2rem 0.4rem; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.card__head h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--dark); }
.empty-state { text-align: left; padding: 2rem; max-width: 40rem; }
.empty-inline { color: var(--slate); font-size: 0.9rem; padding: 0.75rem 0; list-style: none; }
.restricted { background: #f6f8fa; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 0.9rem 1rem; color: var(--slate); font-size: 0.92rem; }
.care-note { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; font-size: 0.88rem; line-height: 1.45; color: var(--dark); }

/* ——— KPI cards ——— */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); color: var(--dark); display: block; }
a.kpi { text-decoration: none; color: var(--dark); }
.kpi--link:hover { border-color: #b8c7d4; text-decoration: none; color: var(--dark); }
.kpi__label { margin: 0; font-size: 0.82rem; color: var(--slate); font-weight: 600; }
.kpi__value { margin: 0.35rem 0 0.2rem; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.kpi--alert .kpi__label, .kpi--alert .kpi__value { color: var(--error); }
.kpi__trend { margin: 0; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 0.2rem; min-height: 1.2em; }
.kpi__trend .icon { width: 0.9rem; height: 0.9rem; }
.kpi__trend.is-good { color: var(--primary); }
.kpi__trend.is-bad { color: var(--error); }
.kpi__trend.is-flat, .kpi__hint { color: var(--muted); font-weight: 500; font-size: 0.78rem; margin: 0; }

.mini-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.mini-stat { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; color: var(--dark); font-size: 0.85rem; min-height: 44px; }
.mini-stat strong { font-size: 1.1rem; }
.mini-stat:hover { text-decoration: none; border-color: #b8c7d4; color: var(--dark); }
.mini-stat--warn strong { color: var(--warning-text); }
.mini-stat--alert strong { color: var(--error); }

/* ——— Charts ——— */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; }
.chart-box { position: relative; height: 260px; }
.chart-box--donut { height: 210px; width: 210px; max-width: 100%; }
.donut-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 0.55rem; align-items: center; font-size: 0.85rem; padding: 0.3rem 0; border-bottom: 1px solid #f0f2f5; }
.legend__dot { width: 10px; height: 10px; border-radius: 50%; }
.status-bars { list-style: none; margin: 0; padding: 0; }
.status-bars li { display: grid; grid-template-columns: 9rem 1fr 2.5rem; gap: 0.75rem; align-items: center; font-size: 0.85rem; padding: 0.35rem 0; }
.status-bars__track { background: #eef1f4; border-radius: 999px; height: 8px; overflow: hidden; }
.status-bars__fill { display: block; height: 100%; border-radius: 999px; background: var(--info); }
.status-bars strong { text-align: right; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1rem; }
.split--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.report-card h2 { font-size: 1rem; font-weight: 700; }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #f0f2f5; font-size: 0.88rem; }
.alert-list__ref { font-weight: 600; }
.check-list { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.7; }

/* ——— Badges ——— */
.badge-status { display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; background: #eef0f2; color: #45525a; }
.s-submitted, .s-acknowledged { background: #fff3dc; color: var(--warning-text); }
.s-under_review { background: #e8f1fd; color: #1a5fb4; }
.s-assigned { background: #eef2f7; color: #34495e; }
.s-investigating, .s-responding { background: #e3ecff; color: #1e4fbf; }
.s-escalated, .s-active { background: #fdecec; color: #b42318; }
.s-resolved { background: #e7f4e8; color: #1f6b24; }
.s-closed { background: #eceff1; color: #55616b; }
.status-bars__fill.s-submitted { background: var(--warning); }
.status-bars__fill.s-resolved { background: var(--success); }
.status-bars__fill.s-escalated { background: var(--error); }
.status-bars__fill.s-closed { background: #90a4ae; }
.prio { font-weight: 700; font-size: 0.85rem; }
.prio--critical, .prio--high { color: var(--error); }
.prio--medium { color: #b26a00; }
.prio--low { color: var(--primary); }
.sla { font-size: 0.82rem; color: var(--slate); white-space: nowrap; }
.sla--overdue { color: var(--error); font-weight: 600; }
.sla--at_risk { color: #b26a00; font-weight: 600; }
.sla-pill { display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.sla-pill.sla--overdue { background: #fdecec; color: #9b1c1c; }
.sla-pill.sla--at_risk { background: #fff3dc; color: var(--warning-text); }
.sla-pill.sla--ok { background: var(--primary-light); color: var(--primary-dark); }
.next-step {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 0.75rem 0.9rem; margin: 0 0 0.9rem;
  font-size: 0.9rem; line-height: 1.45; color: var(--dark);
}
.next-step strong { color: var(--primary-dark); }
.sos-flow { display: flex; gap: 0.45rem; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; }
.sos-flow li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.28rem 0.75rem; font-size: 0.8rem; font-weight: 600; color: var(--navy);
}
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-light); border-radius: 4px; padding: 0.05rem 0.35rem; margin-top: 0.2rem; }
.tag--safeguarding { color: var(--warning-text); background: #fff3dc; }
.prio-pill { display: inline-flex; align-items: center; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #eef2f4; color: var(--slate); }
.prio-pill--critical, .prio-pill--high { background: #fdecec; color: #9b1c1c; }
.prio-pill--medium { background: #fff3dc; color: var(--warning-text); }
.prio-pill--low { background: var(--primary-light); color: var(--primary-dark); }

/* legacy classes still used by older markup */
.badge.submitted { background: #fff3dc; color: var(--warning-text); }

/* ——— Queue tabs & filters ——— */
.scope-tabs { display: flex; gap: 0.25rem; margin: 0 0 0.85rem; border-bottom: 1px solid var(--border); }
.scope-tab {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 1.1rem -1px 0; padding: 0.55rem 0.1rem;
  border-bottom: 2px solid transparent; background: none; color: var(--slate); font-weight: 700; font-size: 0.98rem;
}
.scope-tab:hover { text-decoration: none; color: var(--dark); }
.scope-tab.is-active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.queue-tabs { display: flex; gap: 0.35rem; overflow-x: auto; margin-bottom: 0.9rem; padding-bottom: 0.15rem; scrollbar-width: thin; }
.queue-tab { white-space: nowrap; padding: 0.5rem 0.9rem; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--slate); font-size: 0.85rem; font-weight: 600; }
.queue-tab:hover { text-decoration: none; color: var(--dark); border-color: #b8c7d4; }
.queue-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bar {
  position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end;
  padding: 1rem 1.2rem 0.25rem; background: #fff;
}
.filter { display: flex; flex-direction: column; gap: 0.25rem; min-width: 140px; flex: 0 1 auto; }
.filter label { font-size: 0.76rem; font-weight: 600; color: var(--slate); }
.filter--search { flex: 1 1 100%; max-width: 520px; }
.report-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.report-download { display: flex; flex-direction: column; gap: 0.4rem; }
.report-download .btn { width: 100%; justify-content: center; }
@media (max-width: 767.98px) { .report-downloads { grid-template-columns: minmax(0, 1fr); } }
.form-select, .form-control {
  font: inherit; font-size: 0.9rem; min-height: 40px; border-color: var(--border-strong); border-radius: var(--radius-sm); color: var(--dark);
}
.form-select:focus, .form-control:focus { border-color: var(--primary-mid); box-shadow: var(--focus); }
.form-select:disabled { background-color: #f3f5f8; color: var(--slate); }
.filter__label { font-size: 0.76rem; font-weight: 600; color: var(--slate); }
.campus-lock {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.85rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: #f3f5f8;
  color: var(--slate); font-size: 0.9rem; font-weight: 600; white-space: nowrap; cursor: help;
}
.campus-lock .icon { width: 1rem; height: 1rem; flex: none; }
.campus-lock:focus-visible { outline: none; box-shadow: var(--focus); }

/* ——— Bootstrap Table ——— */
.bootstrap-table { padding: 0 1.2rem 1rem; }
.bootstrap-table .fixed-table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0.25rem; }
.bootstrap-table .fixed-table-toolbar::after { content: none; }
.bootstrap-table .fixed-table-toolbar .bs-bars { flex: 1 1 100%; float: none !important; }
.bootstrap-table .fixed-table-toolbar .bs-bars .filter-bar { padding: 0.5rem 0 0.25rem; position: static; }
.bootstrap-table .fixed-table-toolbar .search { float: none !important; margin: 0 !important; flex: 1 1 220px; max-width: 320px; }
.bootstrap-table .fixed-table-toolbar .columns { float: none !important; margin: 0 0 0 auto !important; }
.bootstrap-table .fixed-table-toolbar .search input { min-height: 40px; border-color: var(--border-strong); }
.bootstrap-table .btn-outline-secondary { background: #fff; color: var(--dark); border-color: var(--border-strong); min-height: 40px; min-width: 40px; padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.bootstrap-table .btn-outline-secondary:hover, .bootstrap-table .btn-outline-secondary.active { background: #f4f6f8; color: var(--dark); }
.bootstrap-table .fixed-table-container { border: 0; }
.bootstrap-table .table { margin: 0; font-size: 0.9rem; --bs-table-hover-bg: #f7faf8; }
.bootstrap-table .table thead th { background: #fafbfc; color: var(--slate); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bootstrap-table .table td { border-bottom: 1px solid #eef1f4; vertical-align: middle; padding: 0.7rem 0.75rem; }
.bootstrap-table .fixed-table-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 0.5rem; font-size: 0.85rem; color: var(--slate); }
.bootstrap-table .fixed-table-pagination::after { content: none; }
.bootstrap-table .fixed-table-pagination > div { float: none !important; margin: 0 !important; }
.bootstrap-table .page-link { color: var(--primary-dark); min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.bootstrap-table .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.bootstrap-table .fixed-table-loading { background: rgba(255, 255, 255, 0.85); }
.pt-loading { color: var(--slate); font-size: 0.9rem; }
.bootstrap-table .no-records-found td { color: var(--slate); padding: 1.5rem; text-align: center; }
.bootstrap-table .card-view { display: flex; gap: 0.5rem; padding: 0.2rem 0; }
.bootstrap-table .card-view .card-view-title { min-width: 7.5rem; color: var(--slate); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.bootstrap-table .card-view .card-view-value { min-width: 0; overflow-wrap: anywhere; }
.card .bootstrap-table { padding-left: 0; padding-right: 0; }
.card:not(.card--table) .bootstrap-table .table td { padding-left: 0.4rem; }
.card--table .bootstrap-table { padding: 0 1.2rem 1rem; }
.ref-link { font-weight: 700; }
.dropdown-menu { font-size: 0.88rem; border-color: var(--border); }
.dropdown-item.active, .dropdown-item:active { background: var(--primary); }

/* ——— Case detail ——— */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.detail-side { position: sticky; top: 1rem; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.case-head__meta { margin: 0; color: var(--slate); font-size: 0.9rem; }
.case-head__badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.case-head .badge-status.s-investigating, .case-head .badge-status.s-assigned, .case-head .badge-status.s-under_review { background: var(--primary-light); color: var(--primary-dark); }
.case-tabs { border-bottom: 1px solid var(--border); gap: 0.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; margin: 0 -0.2rem 1rem; }
.case-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--slate); font-weight: 600; font-size: 0.9rem; padding: 0.6rem 0.8rem; min-height: 44px; white-space: nowrap; background: none; }
.case-tabs .nav-link:hover { color: var(--dark); border-color: transparent; }
.case-tabs .nav-link.active { color: var(--primary-dark); border-bottom-color: var(--primary); background: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; margin: 0 0 1rem; }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid #f0f2f5; font-size: 0.9rem; }
.facts dt { color: var(--slate); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.facts--compact { grid-template-columns: 1fr; gap: 0.2rem; }
.facts--compact > div { grid-template-columns: 9rem 1fr; }
.section-label { font-size: 0.85rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; margin: 1rem 0 0.4rem; }
.description { line-height: 1.6; margin: 0; }
.actions-card .card__head { margin-bottom: 0.5rem; }
.actions-list { display: flex; flex-direction: column; gap: 0.55rem; }
.actions-list form { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 0.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.72rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: #e6ebf0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; padding: 0.3rem 0 0.9rem; }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin-top: 0.3rem; margin-left: 0.13rem; box-shadow: 0 0 0 3px #fff; position: relative; }
.timeline__item--assignment .timeline__dot { background: var(--info); }
.timeline__item--priority .timeline__dot { background: var(--warning); }
.timeline__item--referral .timeline__dot { background: #00897b; }
.timeline__item--note .timeline__dot { background: #90a4ae; }
.timeline__item--pending .timeline__dot { background: #fff; box-shadow: 0 0 0 2px var(--muted); }
.timeline__item--pending .timeline__title,
.timeline__item--pending .timeline__detail { color: var(--muted); }
.timeline__title { margin: 0; font-weight: 700; font-size: 0.92rem; }
.case-type { margin: 0.2rem 0 0.45rem; font-size: 1.25rem; font-weight: 750; }
.facts--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1.75rem; }
.facts--rows > div { grid-template-columns: 8.75rem minmax(0, 1fr); align-items: baseline; }
.facts--rows dd { text-align: left; }
.case-stack { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.4rem 1.2rem 1rem; }
.case-stack__loading { margin: 0.5rem 0; }
.case-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.95rem 1rem; color: inherit; }
.case-card:hover { text-decoration: none; border-color: #b7c9bc; color: inherit; }
.case-card__top, .case-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.case-card__ref { font-weight: 700; color: var(--primary-dark); letter-spacing: 0.01em; font-size: 0.86rem; }
.case-card__type { margin: 0.35rem 0 0.2rem; font-weight: 700; font-size: 1.02rem; }
.case-card__summary { margin: 0 0 0.75rem; color: var(--slate); font-size: 0.9rem; line-height: 1.45; }
.case-card__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.case-card__age { margin-left: auto; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.case-pager { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0 1.2rem 1rem; color: var(--slate); font-size: 0.85rem; }
.case-pager__meta { margin: 0; }
.case-pager__nav { display: flex; gap: 0.5rem; }
.evidence-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.evidence-list__item { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; background: #fff; }
.evidence-list__file { font-weight: 650; }
.evidence-list__lock { margin-left: auto; color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; }
.note-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; margin: 0 0 0.65rem; }
.note-card p { margin: 0; }
.note-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem !important; }
.note-composer { margin-top: 0.8rem; }
.note-composer textarea { width: 100%; min-height: 96px; margin: 0.35rem 0 0.65rem; padding: 0.75rem 0.85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; background: #fafcfb; }
.note-composer__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.timeline__detail { margin: 0.1rem 0 0; font-size: 0.87rem; color: var(--dark); }
.timeline__when { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--muted); }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.chat__msg { max-width: 85%; align-self: flex-end; background: var(--primary-light); border-radius: 12px 12px 4px 12px; padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.chat__msg p { margin: 0; }
.chat__msg--survivor { align-self: flex-start; background: #f1f4f7; border-radius: 12px 12px 12px 4px; }
.chat__msg--system { align-self: center; background: #fff; border: 1px dashed var(--border-strong); font-size: 0.84rem; }
.chat__meta { font-size: 0.74rem !important; color: var(--muted); margin-bottom: 0.2rem !important; }

/* ——— Forms ——— */
.form-card { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
#campus-contacts form, #global-emergency form {
  margin: 0.75rem 0 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.field--wide { grid-column: 1 / -1; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.72rem 0.9rem; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem; background: #fafcfb; color: var(--dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder { color: #9aadb4; }
.field input:hover, .field select:hover { border-color: #b8cfc0; }
.field input:focus, .field select:focus, .field textarea:focus, .password-field:focus-within input {
  outline: none; border-color: var(--primary-mid); background: #fff; box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.82rem; margin: 0.3rem 0 0; }
.checks { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }

/* ——— SweetAlert2 theme ——— */
.swal2-container { padding: 0.75rem; }
.pt-swal { border-radius: 14px !important; padding: 1.4rem 1.3rem 1.2rem !important; width: min(30rem, calc(100vw - 1.5rem)) !important; font-family: var(--font) !important; }
.pt-swal__title { font-family: var(--font) !important; font-size: 1.2rem !important; font-weight: 700 !important; color: var(--dark) !important; padding: 0 !important; text-align: left !important; }
.pt-swal__body { margin: 0.6rem 0 0 !important; padding: 0 !important; text-align: left !important; font-size: 0.92rem !important; color: var(--slate) !important; }
.pt-swal__text { margin: 0 0 0.8rem; }
.pt-swal__field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.pt-swal__field label { font-weight: 600; font-size: 0.84rem; color: var(--dark); }
.pt-swal__field textarea { min-height: 96px; }
.pt-swal__check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--dark); }
.pt-swal__check input { accent-color: var(--primary); width: 18px; height: 18px; }
.pt-swal__actions { width: 100%; justify-content: flex-end !important; gap: 0.5rem; margin-top: 1rem !important; padding: 0 !important; }
.pt-swal__validation { background: #fdecec !important; color: #b42318 !important; border-radius: 8px; margin: 0.75rem 0 0 !important; font-size: 0.85rem !important; }
.pt-swal .swal2-icon { margin: 0.25rem auto 0.9rem !important; transform: scale(0.8); }
.swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: var(--primary) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(46, 125, 50, 0.3) !important; }
.swal2-icon.swal2-question, .swal2-icon.swal2-info { border-color: #9fc5a2 !important; color: var(--primary) !important; }
.swal2-timer-progress-bar { background: var(--primary) !important; }
.swal2-loader { border-color: var(--primary) transparent var(--primary) transparent !important; }
.pt-toast { font-family: var(--font) !important; border-radius: 10px !important; box-shadow: 0 6px 20px rgba(16, 24, 40, 0.12) !important; border: 1px solid var(--border); max-width: calc(100vw - 1.5rem); }
.pt-toast .swal2-title { font-size: 0.9rem !important; font-weight: 600 !important; color: var(--dark) !important; }

/* ——— Auth / login ——— */
.auth-page { --primary-light: #e6f0e7; }
.auth-wrap {
  position: relative; isolation: isolate; min-height: 100vh; width: 100%; max-width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: safe center; justify-items: stretch;
  padding: 2.5rem 1.25rem; overflow-x: hidden; overflow-y: auto;
  background:
    linear-gradient(180deg, #f4f6fb 0%, var(--auth-canvas) 46%, #e8ecf5 100%);
}
.auth-atmosphere {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.auth-blob {
  position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none;
}
.auth-blob--cool {
  width: 340px; height: 340px; top: -110px; right: -70px;
  background: #d5dced; opacity: 0.9;
}
.auth-blob--warm {
  width: 280px; height: 280px; bottom: -90px; left: -60px;
  background: #f3ebe3; opacity: 0.72;
}
.auth-blob--green {
  width: 200px; height: 200px; top: 42%; left: 8%;
  background: #d7ead9; opacity: 0.45;
}
.auth-card {
  position: relative; width: min(460px, 100%); max-width: 100%; min-width: 0; margin-inline: auto;
  background: #fff; border-radius: 28px;
  padding: 2.4rem 2.2rem 1.9rem; box-shadow: var(--shadow-auth);
  border: 1px solid rgba(255, 255, 255, 0.85);
  animation: auth-card-enter 0.55s var(--ease) both;
}
.auth-card--split {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.auth-pane { min-width: 0; max-width: 100%; padding: 2.3rem 2.1rem 1.7rem; }
.auth-pane .lead, .auth-foot, .demo-login__hint, .auth-descriptor, .auth-tagline { overflow-wrap: break-word; }
.auth-pane .field, .auth-pane .password-field, .auth-pane .field input { min-width: 0; max-width: 100%; }
.auth-card--split .auth-brand { font-size: clamp(1.65rem, 2.4vw, 2.05rem); }
@keyframes auth-card-enter { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.auth-mark {
  width: 46px; height: 46px; margin: 0 0 1.15rem; border-radius: 15px;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(160deg, #24324a 0%, var(--navy) 70%);
  color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em;
  box-shadow: 0 10px 22px rgba(24, 34, 53, 0.16);
}
.auth-card--split .auth-mark {
  background: linear-gradient(160deg, #43a047 0%, var(--primary) 42%, var(--primary-dark) 100%);
  box-shadow: 0 10px 22px rgba(27, 94, 32, 0.18);
}
.auth-mark::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  right: -2px; bottom: -2px; background: var(--primary); box-shadow: 0 0 0 3px #fff;
}
.auth-card--split .auth-mark::after { background: #e6f0e7; }
.auth-kicker {
  margin: 0 0 0.55rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5c6b80;
}
.auth-brand {
  font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 2.35rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 0.35rem; color: var(--navy);
}
.auth-brand--name { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 0.2rem; }
.auth-descriptor {
  margin: 0 0 0.25rem; font-size: 0.82rem; line-height: 1.45; font-weight: 500; color: var(--slate);
}
.auth-tagline {
  margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.4; font-style: italic; color: var(--slate);
}
.auth-heading {
  font-family: var(--display); font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15; margin: 0.15rem 0 0.55rem; color: var(--navy);
}
.auth-card .lead { color: var(--slate); margin: 0 0 1.5rem; font-size: 0.95rem; line-height: 1.55; font-weight: 400; }
.auth-card .field label { color: var(--navy); font-size: 0.82rem; font-weight: 650; margin-bottom: 0.42rem; }
.auth-card .field input,
.auth-card .field select,
.auth-card .field textarea {
  min-height: 52px; padding: 0.85rem 1rem; border-radius: 14px;
  border: 1px solid #e3e7ef; background: #f7f8fb; font-size: 1rem;
}
.auth-card .field input:hover,
.auth-card .field select:hover { border-color: #c9d0dc; }
.auth-card .field input:focus,
.auth-card .field select:focus,
.auth-card .field textarea:focus,
.auth-card .password-field:focus-within input {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.16);
}
.auth-policy { margin: -0.35rem 0 1rem; color: var(--slate); font-size: 0.82rem; line-height: 1.45; }
.password-field { position: relative; display: flex; align-items: stretch; }
.password-field input { padding-right: 3.1rem; }
.password-toggle {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent;
  color: var(--slate); border-radius: 10px; cursor: pointer;
}
.password-toggle:hover { color: var(--primary-dark); background: var(--primary-light); }
.password-toggle[aria-pressed="true"] { color: var(--primary-dark); }
.auth-card .btn.btn-block {
  min-height: 52px; border-radius: 14px; font-size: 1rem; margin-top: 0.25rem;
  box-shadow: 0 1px 2px rgba(27, 94, 32, 0.16);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.auth-card .btn.btn-block:hover:not(:disabled):not([aria-busy="true"]) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(27, 94, 32, 0.22);
}
.auth-card .btn.btn-block:active:not(:disabled) { transform: translateY(0); }
.auth-card .alert {
  background: #fdecea; color: var(--error); padding: 0.8rem 0.95rem; border-radius: 12px;
  margin-bottom: 1.1rem; font-size: 0.9rem; border: 1px solid rgba(198, 40, 40, 0.18); line-height: 1.4;
  animation: auth-alert-in 0.35s var(--ease) both;
}
@keyframes auth-alert-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.auth-foot { margin: 1.35rem 0 0; font-size: 0.8rem; line-height: 1.45; }
.auth-sponsor {
  margin-top: 1.15rem;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}
.auth-sponsor__label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate);
}
.auth-sponsor__logos {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
}
.auth-sponsor__powered {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate);
}
.auth-policy-link {
  margin: 0.85rem 0 0; text-align: center; font-size: 0.8rem; line-height: 1.45;
}
.auth-policy-link a {
  font-weight: 650; text-decoration: underline; text-underline-offset: 0.15em;
}
.policy-card { width: min(40rem, 100%); }
.policy-card .auth-mark {
  background: linear-gradient(160deg, #43a047 0%, var(--primary) 42%, var(--primary-dark) 100%);
  box-shadow: 0 10px 22px rgba(27, 94, 32, 0.18);
}
.policy-card .auth-mark::after { background: #e6f0e7; }
.policy-card h1 { margin-top: 0.15rem; }
.policy-intro {
  margin: 0 0 1.15rem; color: var(--slate); font-size: 0.95rem; line-height: 1.55;
}
.policy-section { margin: 0 0 1.15rem; }
.policy-section h2 {
  margin: 0 0 0.35rem; font-family: inherit; font-size: 1rem; font-weight: 700;
  color: var(--primary-dark); letter-spacing: -0.01em; line-height: 1.35;
}
.policy-section p,
.policy-card .care-note {
  margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.55; overflow-wrap: break-word;
}
.policy-card .care-note { margin-top: 0.25rem; color: var(--dark); }
.demo-login { margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--border); }
.demo-login__label {
  margin: 0 0 0.7rem; font-family: inherit; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #5c6b80; line-height: 1.3;
}
.demo-login__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; min-width: 0; }
.demo-chip {
  display: inline-flex; flex-direction: row; align-items: center; gap: 0.35rem; text-align: left;
  padding: 0.38rem 0.8rem; min-height: 36px; border: 1px solid #e3e7ef; border-radius: 999px;
  background: #f4f6fb; cursor: pointer; font-family: inherit; max-width: 100%; min-width: 0;
  overflow: hidden;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.demo-chip:hover { border-color: #b7d0bc; background: var(--primary-light); }
.demo-chip.is-selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12); }
.demo-chip__role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--primary-dark); white-space: nowrap; }
.demo-chip__name { font-size: 0.75rem; color: var(--slate); font-weight: 500; line-height: 1.2; max-width: 8.5rem; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-chip__name::before { content: "·"; margin-right: 0.35rem; color: #b0bac8; }
.demo-login__hint { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.45; }
.demo-login__hint code { font-size: 0.72rem; background: #eef1f6; padding: 0.12rem 0.35rem; border-radius: 6px; }

.auth-slider {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 1.5rem 1.35rem;
  background:
    radial-gradient(120px 90px at 18% 22%, rgba(230, 240, 231, 0.95), transparent 70%),
    linear-gradient(180deg, #f7faf8 0%, #eef1f8 100%);
  border-left: 1px solid rgba(46, 125, 50, 0.1);
}
.auth-slider__viewport { position: relative; min-height: 360px; }
.auth-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0.2rem 0.35rem 0.4rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease);
}
.auth-slide.is-active { opacity: 1; visibility: visible; }
.auth-slide__art { width: min(100%, 340px); margin: 0 auto; }
.auth-slide__art svg { display: block; width: 100%; height: auto; }
.auth-slide__title {
  margin: 0.35rem 0 0.4rem; font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.2; color: #1b5e20;
}
.auth-slide__text {
  margin: 0; max-width: 26rem; color: var(--slate); font-size: 0.95rem; line-height: 1.5;
}
.auth-slider__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.85rem; }
.auth-slider__dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: #c9d5cc; cursor: pointer;
}
.auth-slider__dot::before { content: ""; position: absolute; inset: -8px; }
.auth-slider__dot.is-active,
.auth-slider__dot[aria-selected="true"] { background: #2e7d32; transform: scale(1.15); }
.auth-slider__dot:hover { background: #1b5e20; }

/* ——— Feedback summary ——— */
.feedback-average { margin: 0 0 0.9rem; font-size: 0.95rem; }
.feedback-average strong { font-family: var(--display); font-size: 1.9rem; color: var(--dark); margin-right: 0.25rem; }
.feedback-fill { background: var(--primary); }

/* ——— Two-step verification ——— */
.mfa-steps { margin: 0 0 1.1rem; padding-left: 1.15rem; color: var(--slate); font-size: 0.88rem; line-height: 1.5; }
.mfa-steps li + li { margin-top: 0.2rem; }
.mfa-setup { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin: 0 0 1.25rem; padding: 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #f7faf8; }
@media (max-width: 419.98px) { .mfa-setup { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.mfa-qr { display: block; width: 168px; height: 168px; background: #fff; border-radius: 8px; image-rendering: pixelated; }
.mfa-key__label { margin: 0 0 0.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-dark); }
.mfa-key__value { margin: 0 0 0.5rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86rem; letter-spacing: 0.04em; overflow-wrap: anywhere; color: var(--dark); }
.mfa-key__copy { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
.mfa-code { font-size: 1.35rem !important; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-foot a { color: var(--primary-dark); font-weight: 600; }

/* ——— Responsive ——— */
@media (max-width: 1199.98px) {
  :root { --sidebar-w: 220px; }
  .main { padding: 1.4rem 1.4rem 2.25rem; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 270px; }
}
@media (max-width: 1023.98px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
}
@media (min-width: 1100px) {
  .case-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .case-stack > .empty-inline,
  .case-stack > .restricted,
  .case-stack > .case-stack__loading { grid-column: 1 / -1; }
}
@media (max-width: 899.98px) {
  .topbar {
    display: flex; align-items: center; gap: 0.5rem; position: sticky; top: 0; z-index: 30;
    background: var(--navy); color: #fff; padding: 0.4rem 0.75rem; min-height: 56px;
  }
  .topbar__brand { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; font-family: var(--display); font-weight: 650; font-size: 1.05rem; }
  .topbar__brand:hover { color: #fff; text-decoration: none; }
  .topbar__brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(300px, 86vw); height: 100%;
    transform: translateX(-100%); visibility: hidden;
    transition: transform 0.25s var(--ease), visibility 0s linear 0.25s;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  }
  .nav-open .sidebar { transform: none; visibility: visible; transition: transform 0.25s var(--ease), visibility 0s; }
  .nav-open { overflow: hidden; }
  .sidebar__close { display: inline-flex; }
  .main { padding: 1.1rem 1rem 2rem; }
  .filter-bar { top: 56px; }
  .facts, .facts--rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .page-head { align-items: stretch; }
  .page-actions, .page-actions .btn, .page-actions form { width: 100%; }
  .page-actions--range .filter { flex: 1; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { position: static; padding: 0.9rem 0.9rem 0.25rem; }
  .filter { flex: 1 1 calc(50% - 0.75rem); min-width: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1; }
  .card--table .bootstrap-table, .bootstrap-table { padding: 0 0.9rem 0.9rem; }
  .bootstrap-table .fixed-table-toolbar .search { max-width: none; flex: 1 1 100%; }
  .bootstrap-table .fixed-table-toolbar .columns { margin-left: 0 !important; }
  .bootstrap-table .card-view .card-view-title { min-width: 6.5rem; }
  .status-bars li { grid-template-columns: 7rem 1fr 2rem; }
  .chart-box { height: 220px; }
  .pt-swal__actions .btn { flex: 1; }
}
@media (max-width: 479.98px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-stats { grid-template-columns: minmax(0, 1fr); }
  .filter { flex-basis: 100%; }
  .page-title { font-size: 1.35rem; }
  .facts > div, .facts--compact > div { grid-template-columns: 6.5rem 1fr; }
  .auth-card { padding: 1.7rem 1.15rem 1.35rem; border-radius: 22px; }
  .auth-card--split { padding: 0; }
  .auth-pane { padding: 1.5rem 1.15rem 1.25rem; }
  .auth-wrap { padding: 1.15rem 0.85rem; }
  .demo-chip__name { max-width: 7.25rem; }
  .chart-box--donut { width: 180px; height: 180px; margin: 0 auto; }
}
@media (max-width: 899.98px) {
  .auth-card--split { grid-template-columns: minmax(0, 1fr); }
  .auth-slider { border-left: 0; border-top: 1px solid rgba(46, 125, 50, 0.1); }
  .auth-slider__viewport { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
