@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ═══════════════════════════════════════════════════════
   KOPERASI DIGITAL — "Crystal Clean" White Mode
   Friendly, accessible, user-first design
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #f4f8f2;
  --bg-white: #ffffff;
  --bg-hover: #edf6e8;
  --ink: #1e293b;
  --ink-strong: #0f172a;
  --ink-light: #334155;
  --muted: #64748b;
  --accent: #009848;
  --accent-hover: #00783a;
  --accent-soft: #e9f8ef;
  --accent-border: rgba(0,152,72,0.22);
  --accent-2: #e02028;
  --brand-yellow: #f5e61f;
  --brand-yellow-soft: #fff9bf;
  --brand-dark: #11120d;
  --green: #009848;
  --green-soft: #e9f8ef;
  --green-border: rgba(0,152,72,0.2);
  --amber: #b99700;
  --amber-soft: #fff9db;
  --amber-border: rgba(185,151,0,0.22);
  --red: #e02028;
  --red-soft: #fff0f1;
  --red-border: rgba(224,32,40,0.18);
  --card: #ffffff;
  --stroke: #e2e8f0;
  --stroke-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-xl: 20px;
  --transition: 0.18s ease;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; }
*::selection { background: rgba(0,152,72,0.16); color: var(--ink-strong); }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ─── APP SHELL ─────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--transition);
}

/* ─── SIDEBAR ───────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  padding: 0;
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 3px; }

.sidebar-card {
  background: var(--bg-white);
  border-right: 1px solid var(--stroke);
  padding: 20px 14px 18px;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-card::before { display: none; }
.sidebar-card > * { position: relative; }

/* Brand */
.brand {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  min-width: 0;
  color: var(--ink-strong);
}

.brand-text {
  display: flex; align-items: baseline; gap: 4px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.brand-text span:last-child {
  color: var(--accent-2);
  font-weight: 800;
}

.brand-logo {
  width: 32px; height: 32px;
  object-fit: contain; flex: 0 0 auto;
  border-radius: 8px;
}

.sidebar-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--stroke);
}

/* ─── NAVIGATION ────────────────────────────────── */
.nav {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-light);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 13.5px;
}

.nav a:hover {
  color: var(--ink-strong);
  background: var(--bg);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
  font-weight: 600;
}

.nav-section-title {
  margin-top: 18px;
  padding: 4px 10px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* Approval nav items */
.nav-approval {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #92400e;
}
.nav-approval .icon { color: var(--amber); }
.nav-approval:hover, .nav-approval.active {
  background: #fef3c7;
  border-color: rgba(217,119,6,0.3);
  color: #78350f;
}

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px; line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* Nav groups */
.nav-group {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 2px;
  background: transparent;
  margin-top: 2px;
}
.nav-group[open] {
  border-color: var(--stroke);
  background: var(--bg);
}

.nav-group-title {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-light);
  font-weight: 600;
  font-size: 13.5px;
  transition: all var(--transition);
}
.nav-group-title:hover { color: var(--ink-strong); background: rgba(0,0,0,0.02); }
.nav-group-title::-webkit-details-marker { display: none; }
.nav-group-title::after {
  content: "";
  margin-left: auto;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--transition);
  opacity: 0.4;
}
.nav-group[open] .nav-group-title { color: var(--ink-strong); }
.nav-group[open] .nav-group-title::after { transform: rotate(45deg); }

.nav-sub {
  display: grid; gap: 1px;
  padding: 4px 4px 6px;
}
.nav-separator { height: 1px; background: var(--stroke-light); margin: 4px 8px; }
.nav-sub a { padding: 7px 10px; font-size: 13px; font-weight: 500; }

.sidebar-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
  display: grid; gap: 2px;
}
.sidebar-footer div:first-child { color: var(--ink-strong); font-weight: 600; }

/* ─── MOBILE TABS ───────────────────────────────── */
.mobile-tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--stroke);
  padding: 6px 8px;
  display: none;
  gap: 2px;
  justify-content: space-around;
  z-index: 40;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.mobile-tabs a, .mobile-tabs button {
  flex: 1;
  border: none; background: transparent;
  color: var(--muted);
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 10px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  font-weight: 500;
}
.mobile-tabs a.active, .mobile-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-tab-button { position: relative; }
.mobile-tab-button .mobile-tab-badge {
  position: absolute; top: 1px; right: 12px;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  padding: 0 4px; line-height: 1;
}
.mobile-tab-button.has-approval-role.is-pending {
  background: var(--red-soft); color: var(--red);
}
.mobile-tab-button.has-approval-role.is-pending .icon {
  background: rgba(220,38,38,0.1); color: var(--red);
}
.mobile-tab-button.has-approval-role.is-ok {
  background: var(--green-soft); color: var(--green);
}
.mobile-tab-button.has-approval-role.is-ok .icon {
  background: rgba(22,163,74,0.1); color: var(--green);
}
.mobile-tabs .mobile-tab-plus {
  flex: 0 0 auto; min-width: 56px; max-width: 56px;
  padding: 4px; background: transparent; border: none; color: var(--accent);
}
.mobile-tabs .mobile-tab-plus .icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); border: none; color: #fff;
  box-shadow: 0 4px 12px rgba(0,152,72,0.25);
}
.mobile-tabs .mobile-tab-plus .mobile-tab-plus-symbol {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); border: none; color: #fff;
  box-shadow: 0 4px 12px rgba(0,152,72,0.25);
  font-size: 20px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-tabs .mobile-tab-plus.active { background: transparent; color: var(--accent-hover); }
.mobile-tabs .mobile-tab-plus.active .mobile-tab-plus-symbol { background: var(--accent-hover); }

/* ─── MOBILE MENU ───────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.3);
  display: none; align-items: flex-end;
  z-index: 50;
}
.mobile-menu.open { display: flex; }
.mobile-menu-card {
  background: var(--bg-white);
  width: 100%; border-radius: 20px 20px 0 0;
  padding: 16px; max-height: 80vh; overflow-y: auto;
  border-top: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
}
.mobile-menu-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}

/* ─── MAIN CONTENT ──────────────────────────────── */
.main {
  padding: 24px 28px 40px;
  display: flex; flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 1200px;
}

/* ─── TOP USER STRIP ────────────────────────────── */
.top-user-strip {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stroke);
}
.top-user-meta { display: grid; gap: 1px; }
.top-user-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); font-weight: 700;
}
.top-user-name { font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.top-user-actions { display: inline-flex; align-items: center; gap: 8px; }

.sidebar-icon-toggle {
  flex: 0 0 auto; width: 32px; height: 32px;
  border-radius: 8px; background: var(--bg);
  border-color: var(--stroke); color: var(--muted);
  box-shadow: none;
}
.sidebar-icon-toggle .icon { width: 16px; height: 16px; background: transparent; }
.sidebar-icon-toggle:hover { background: var(--bg-hover); color: var(--ink); }

/* ─── PAGE HEADER ───────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand-yellow), var(--accent-2));
}
.page-header--friendly { background: var(--bg-white); }
.page-kicker {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
  border: 1px solid var(--accent-border);
}
.user-actions { display: flex; align-items: center; gap: 12px; }
.page-title h1 {
  margin: 0 0 4px; font-size: 22px;
  font-weight: 700; color: var(--ink-strong);
  letter-spacing: -0.3px;
}
.page-title p { margin: 0; color: var(--muted); font-size: 14px; }
.user-pill {
  background: var(--bg); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 8px 14px;
  display: flex; align-items: center; gap: 10px;
}
.user-role { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  border: none; border-radius: var(--radius-sm);
  padding: 9px 16px; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all var(--transition);
  font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(0,152,72,0.2);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(0,152,72,0.25); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-white); color: var(--ink);
  border: 1px solid var(--stroke);
}
.btn-ghost:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-danger { background: var(--red); color: #fff; box-shadow: 0 1px 3px rgba(220,38,38,0.2); }
.btn-danger:hover { background: #b91c1c; }
.btn-logout {
  background: var(--red-soft); color: var(--red);
  border: 1px solid var(--red-border);
}
.btn-logout:hover { background: #fee2e2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── ICONS ─────────────────────────────────────── */
.icon-actions { display: inline-flex; align-items: center; gap: 8px; }
.icon-button {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: var(--bg-white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-light); cursor: pointer;
  transition: all var(--transition); padding: 0;
}
.icon-button--qr {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 2px 8px rgba(0,152,72,0.2);
}
.icon-button--qr:hover { background: var(--accent-hover); color: #fff; }
.icon-button--ok {
  background: var(--green); border-color: var(--green);
  color: #fff; box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}
.icon-button--alert {
  background: var(--red); border-color: var(--red);
  color: #fff; box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}
.icon-button--alert:hover { background: #b91c1c; }

.nav-approval.nav-state--pending .icon,
.nav-approval.nav-state--pending:hover .icon,
.nav-approval.nav-state--pending.active .icon {
  background: var(--red-soft); color: var(--red);
}
.nav-approval.nav-state--ok .icon,
.nav-approval.nav-state--ok:hover .icon,
.nav-approval.nav-state--ok.active .icon {
  background: var(--green-soft); color: var(--green);
}
.icon-button:hover { background: var(--bg); }
.icon-button.danger { border-color: var(--red-border); color: var(--red); background: var(--red-soft); }

/* ─── CARDS ─────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 18px; height: 18px; }
.nav a .icon, .nav-group-title .icon, .report-nav a .icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: 0 0 auto;
  transition: all var(--transition);
}
.nav a.active .icon, .nav a:hover .icon { background: rgba(0,152,72,0.12); color: var(--accent); }
.nav-group[open] .nav-group-title .icon { background: rgba(0,152,72,0.12); color: var(--accent); }
.mobile-tabs .icon {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
}

.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title h3 {
  margin: 0; font-weight: 700; font-size: 15px;
  color: var(--ink-strong);
}
.card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.card h3 { margin: 0 0 6px; }

/* ─── STATS ─────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.stat {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid var(--stroke);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
  min-height: 112px;
}
.stat:hover { box-shadow: var(--shadow-sm); }
.stat--balance {
  background: linear-gradient(135deg, #e9f8ef 0%, #fffbe0 62%, #ffffff 100%);
  border-color: rgba(0,152,72,0.22);
  box-shadow: 0 10px 28px rgba(0,152,72,0.08);
}
.stat-grid .stat--balance {
  grid-column: span 2;
}
.grid-two > .balance-card {
  grid-column: span 2;
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: 0 0 auto;
}
.stat--balance .stat-icon { background: rgba(0,152,72,0.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,152,72,0.08); }
.stat .value {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
}
.stat > div:last-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.stat > div:last-child > div:first-child { color: var(--ink-light); font-weight: 500; line-height: 1.25; }
.stat--mint { background: var(--green-soft); border-color: var(--green-border); }
.stat--mint .stat-icon { background: rgba(22,163,74,0.1); color: var(--green); }

/* ─── TABLES ────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 13px; background: transparent; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--stroke-light); }
.table thead th {
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11px; color: var(--muted); font-weight: 600;
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);
}
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--bg); }

/* ─── LOAN DROP ─────────────────────────────────── */
.loan-drop {
  width: 100%; background: var(--bg-white);
  border-radius: var(--radius); padding: 12px;
  border: 1px solid var(--stroke); box-shadow: var(--shadow-xs);
}
.loan-drop summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px dashed var(--stroke);
  background: var(--bg); color: var(--ink);
  transition: all var(--transition);
}
.loan-drop summary:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.loan-drop summary::-webkit-details-marker { display: none; }
.loan-drop[open] summary { background: var(--accent-soft); border-color: var(--accent-border); }
.loan-drop-body { margin-top: 12px; display: grid; gap: 10px; }
.loan-drop-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.loan-drop-meta { font-size: 12px; color: var(--muted); }

.loan-subcard {
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 14px; background: var(--bg-white);
}
.loan-subheader {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.loan-submeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.loan-subactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.loan-history { margin-top: 14px; display: grid; gap: 8px; }
.loan-history-title { font-weight: 600; color: var(--muted); font-size: 13px; }

/* ─── LEDGER ────────────────────────────────────── */
.ledger-drop { display: inline-block; }
.ledger-drop summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 8px;
  border: 1px dashed var(--stroke); background: var(--bg);
  transition: all var(--transition);
}
.ledger-drop summary::-webkit-details-marker { display: none; }
.ledger-drop[open] summary { background: var(--accent-soft); border-color: var(--accent-border); }
.ledger-body { margin-top: 8px; display: grid; gap: 6px; min-width: 220px; }
.ledger-eye { color: var(--accent); display: inline-flex; align-items: center; }
.ledger-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.ledger-subtitle { margin-top: 6px; font-size: 12px; color: var(--muted); }
.ledger-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 13px; }
.ledger-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ─── SALDO INDICATORS ──────────────────────────── */
.saldo-indicator {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 700; margin-right: 6px;
}
.saldo-up { background: var(--green-soft); color: var(--green); }
.saldo-down { background: var(--red-soft); color: var(--red); }
.saldo-flat { background: var(--bg); color: var(--muted); }

.table-compact th, .table-compact td { padding: 7px 10px; font-size: 13px; }

/* ─── REPORT TABLES ─────────────────────────────── */
.report-table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--bg-white);
}
.report-table { min-width: 880px; border-collapse: collapse; font-size: 12px; }
.report-table th, .report-table td { padding: 8px 10px; border-bottom: 1px solid var(--stroke-light); }
.report-table thead th {
  background: var(--bg); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.report-table .shu-highlight { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.report-section-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.report-table tfoot td { background: var(--bg); border-top: 1px solid var(--stroke); }
.report-total td:first-child { text-align: left; }
.report-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.01); }
.report-table .text-right { text-align: right; }

/* ─── BADGES ────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-border);
}
.badge.warning { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-border); }
.badge.success { background: var(--green-soft); color: var(--green); border-color: var(--green-border); }
.badge.danger { background: var(--red-soft); color: var(--red); border-color: var(--red-border); }

/* ─── SUMMARY GRIDS ─────────────────────────────── */
.summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-top: 10px;
}
.summary-item {
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--bg-white);
  display: grid; gap: 3px;
}
.summary-item .label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.summary-item .value { font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.summary-item.accent { background: var(--accent-soft); border-color: var(--accent-border); }
.summary-item.accent .value { color: var(--accent); }
.summary-item.warning { background: var(--amber-soft); border-color: var(--amber-border); }
.summary-item.warning .value { color: var(--amber); }

/* ─── STATUS PILLS ──────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.status-pill--success { background: var(--green-soft); color: var(--green); border-color: var(--green-border); }
.status-pill--danger { background: var(--red-soft); color: var(--red); border-color: var(--red-border); }
.status-stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── APPROVAL HISTORY ──────────────────────────── */
.approval-history { display: grid; gap: 8px; }
.approval-item { display: grid; grid-template-columns: 110px auto 1fr; align-items: center; gap: 8px; }
.approval-role { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.approval-time { font-size: 12px; color: var(--muted); }

/* ─── FORMS ─────────────────────────────────────── */
.form-grid { display: grid; gap: 16px; }
.form-inline-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-control { display: grid; gap: 6px; }
.form-control label {
  font-size: 13px; font-weight: 600; color: var(--ink-light);
}
.form-control input,
.form-control textarea,
.form-control select {
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); font-size: 14px;
  font-family: inherit; background: var(--bg-white);
  color: var(--ink); transition: all var(--transition);
}
.form-control input::placeholder,
.form-control textarea::placeholder { color: #94a3b8; }
.form-control input:focus,
.form-control textarea:focus,
.form-control select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,152,72,0.1);
}
.form-control textarea { min-height: 100px; resize: vertical; }

/* Password field */
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; padding-right: 44px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 1px solid var(--stroke);
  border-radius: 6px; background: var(--bg-white);
  color: var(--muted); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0;
  transition: all var(--transition);
}
.password-toggle .icon { width: 14px; height: 14px; background: transparent; }
.password-toggle:hover, .password-toggle.active { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }

/* File inputs */
input[type="file"] {
  width: 100%; padding: 8px; border-radius: var(--radius-sm);
  border: 1px dashed var(--stroke); background: var(--bg);
  color: var(--muted); font-size: 13px;
  transition: all var(--transition);
}
input[type="file"]:hover { border-color: var(--accent-border); background: var(--accent-soft); }
input[type="file"]:focus, input[type="file"]:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,152,72,0.1); }
input[type="file"]::file-selector-button {
  border: none; margin-right: 10px; padding: 8px 14px;
  border-radius: 6px; background: var(--accent); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
input[type="file"]::file-selector-button:hover { background: var(--accent-hover); }
input[type="file"]::-webkit-file-upload-button {
  border: none; margin-right: 10px; padding: 8px 14px;
  border-radius: 6px; background: var(--accent); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
input[type="file"]::-webkit-file-upload-button:hover { background: var(--accent-hover); }

/* Checkboxes */
.checkbox-grid { display: grid; gap: 12px; }
.checkbox-item { display: grid; gap: 8px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
@media (min-width: 520px) { .checkbox-item { grid-template-columns: 180px 1fr; align-items: center; } }

/* ─── MODALS ────────────────────────────────────── */
.modal {
  border: none; border-radius: var(--radius-lg);
  padding: 0; width: min(580px, 92vw);
  background: transparent; box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(15,23,42,0.35); }
.modal-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  border: 1px solid var(--stroke); padding: 22px;
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.modal-header h3 { margin: 0 0 4px; color: var(--ink-strong); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.loan-summary { margin-top: 16px; }

/* ─── INFO GRID ─────────────────────────────────── */
.info-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.info-item {
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 10px 12px; background: var(--bg-white);
  display: grid; gap: 3px; font-size: 13px;
}
.payment-actions { display: grid; gap: 12px; }
.table-striped tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

/* ─── ALERTS ────────────────────────────────────── */
.alert {
  padding: 10px 16px; border-radius: var(--radius-sm);
  margin-bottom: 14px; font-size: 13px;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: 8px;
}
.alert.success { background: var(--green-soft); color: #15803d; border-color: var(--green-border); }
.alert.warning { background: var(--amber-soft); color: #92400e; border-color: var(--amber-border); }
.alert.danger { background: var(--red-soft); color: #991b1b; border-color: var(--red-border); }

/* ─── GRIDS ─────────────────────────────────────── */
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.stacked-cards { display: flex; flex-direction: column; gap: 14px; }

/* ─── AUTH PAGES ────────────────────────────────── */
.auth-wrapper {
  display: grid; place-items: center;
  min-height: 100vh; padding: 40px 20px;
  background: var(--bg);
}
body.login-split-page .auth-wrapper {
  padding: 0;
  background: #ffffff;
}
.login-split {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  background: #ffffff;
}
.login-brand-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 60%, rgba(245,230,31,0.18), transparent 30%),
    linear-gradient(135deg, #005c2d 0%, #009848 58%, #e02028 100%);
}
.login-brand-content {
  width: min(440px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.login-brand-mark {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(17,18,13,0.16);
  border: 1px solid rgba(245,230,31,0.62);
  box-shadow: 0 28px 90px rgba(0,0,0,0.22);
}
.login-brand-mark img { width: 60px; height: 60px; object-fit: contain; }
.login-brand-content h1 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.login-brand-content p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 16px;
}
.login-divider {
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-yellow), #ffffff, var(--accent-2));
  margin: 8px 0 12px;
}
.login-brand-copy {
  max-width: 360px;
  line-height: 1.7;
}
.login-form-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px clamp(24px, 5vw, 72px);
}
.login-form-card {
  width: min(480px, 100%);
}
.login-form-card h2 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.login-input-group {
  min-height: 56px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: #ffffff;
  overflow: hidden;
  transition: all var(--transition);
}
.login-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,152,72,0.12);
}
.login-input-group > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: #f8fafc;
  border-right: 1px solid var(--stroke);
}
.login-input-group input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  padding: 0 16px;
}
.login-input-group input:focus { box-shadow: none; border: 0; }
.password-field.login-input-group { display: grid; grid-template-columns: 58px 1fr 42px; }
.password-field.login-input-group input { padding-right: 12px; }
.password-field.login-input-group .password-toggle {
  position: static;
  transform: none;
  border: 0;
  border-left: 1px solid var(--stroke);
  border-radius: 0;
  width: 42px;
  height: 100%;
  background: #ffffff;
}
.login-remember { margin-top: 2px; color: var(--muted); }
.login-submit {
  min-height: 56px;
  border-radius: 9px;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}
.login-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.auth-card {
  max-width: 420px; width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-xl); padding: 36px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand-yellow), var(--accent-2));
}
.auth-card > * { position: relative; }
.auth-card--login::before {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand-yellow), var(--accent-2));
  opacity: 1;
}
.auth-card--login::after { display: none; }
.auth-card--login > * { position: relative; z-index: 1; }
.auth-card .btn { width: 100%; text-align: center; padding: 11px 18px; }
.auth-title {
  margin: 0 0 10px; font-size: 22px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink-strong);
}
.auth-title .icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.auth-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--stroke);
  display: grid; place-items: center; margin-bottom: 14px;
}
.auth-logo img { width: 34px; height: 34px; object-fit: contain; }
.auth-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

.muted { color: var(--muted); font-size: 14px; margin-top: 0; }

/* ─── ANIMATIONS ────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat, .card, .auth-card { animation: rise 0.3s ease both; }
.stat:nth-child(2), .card:nth-child(2) { animation-delay: 0.04s; }
.stat:nth-child(3), .card:nth-child(3) { animation-delay: 0.08s; }
.stat:nth-child(4) { animation-delay: 0.12s; }
.stat:nth-child(5) { animation-delay: 0.16s; }

/* ─── LOAN SHEET (PDF) ──────────────────────────── */
.loan-sheet { font-family: "Inter", sans-serif; color: #111827; }
.loan-header { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; }
.loan-logo { width: 72px; height: 72px; border-radius: 50%; border: 2px solid #111827; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.loan-title { text-align: center; font-size: 13px; }
.loan-org { font-weight: 700; font-size: 15px; }
.loan-sub { font-weight: 700; }
.loan-city { margin-top: 6px; font-weight: 700; }
.loan-divider { border-top: 2px solid #111827; margin: 14px 0 10px; }
.loan-form-title, .loan-approval-title { text-align: center; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; }
.loan-row { display: grid; grid-template-columns: 200px 20px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.loan-colon { text-align: center; }
.loan-grid { margin-bottom: 12px; }
.loan-sheet input { width: 100%; border: none; border-bottom: 1px solid #111827; padding: 4px 6px; font-family: inherit; font-size: 14px; background: transparent; }
.loan-sheet input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.loan-box-input { letter-spacing: 4px; }
.loan-section-title { margin-top: 10px; margin-bottom: 8px; font-weight: 700; }
.loan-paragraph { margin: 12px 0; font-size: 14px; }
.loan-list { margin-bottom: 14px; }
.loan-inline { display: flex; gap: 8px; align-items: center; }
.loan-muted { font-style: italic; color: #374151; }
.loan-signatures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.loan-sign { display: grid; gap: 6px; }
.loan-location { font-size: 13px; }
.loan-sign-line { border-bottom: 1px solid #111827; height: 28px; }
.loan-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

/* ─── ACTION ROW ────────────────────────────────── */
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upload-action-row { width: 100%; align-items: center; }
.upload-action-row input[type="file"] { flex: 1 1 300px; width: auto; min-width: 220px; }
.upload-action-row .btn-upload { margin-left: auto; flex: 0 0 auto; }
.btn-upload { background: var(--amber); color: #fff; border: none; box-shadow: 0 2px 6px rgba(217,119,6,0.18); font-weight: 600; }
.btn-upload:hover { background: #b45309; }
.action-row input, .action-row select {
  padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); font-size: 14px;
  font-family: inherit; background: var(--bg-white); color: var(--ink);
}
.action-row input:focus, .action-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,152,72,0.1); }
.table select, .table input {
  width: 100%; padding: 7px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); font-size: 13px;
  font-family: inherit; background: var(--bg-white); color: var(--ink);
}
.table select:focus, .table input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,152,72,0.1); }

/* ─── MISC ──────────────────────────────────────── */
.image-preview {
  margin-top: 8px; height: 160px; border-radius: var(--radius-sm);
  border: 1px dashed var(--stroke); background-color: var(--bg);
  display: grid; place-items: center; color: var(--muted); font-size: 13px;
  background-size: cover; background-position: center;
}
.invite-meta { margin-top: 6px; display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
.link-short {
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  color: var(--accent); text-decoration: none;
}
.link-short:hover { color: var(--accent-hover); text-decoration: underline; }
.selfie-wrap { display: grid; gap: 10px; justify-items: stretch; }
.selfie-video {
  width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto;
  border-radius: var(--radius); border: 1px solid var(--stroke);
  background: #0f172a; object-fit: cover;
}
#selfie-preview { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
.loan-photo {
  margin-top: 8px; width: 100%; max-width: 280px;
  border-radius: var(--radius); border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}
.pdf-preview {
  width: 100%; height: 520px; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--bg-white);
}

/* ─── REPORT LAYOUT ─────────────────────────────── */
.report-shell { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
.report-shell--full { grid-template-columns: 1fr; }
.report-side { position: sticky; top: 20px; }
.report-nav { display: grid; gap: 6px; }
.report-nav a {
  text-decoration: none; color: var(--ink-light);
  padding: 9px 12px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--stroke); background: var(--bg-white);
  transition: all var(--transition); font-size: 13px;
}
.report-nav a:hover { background: var(--bg); color: var(--ink-strong); }
.report-nav a.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.report-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; color: var(--ink-strong); }
.report-filter { display: grid; gap: 8px; margin-top: 12px; }
.report-filter select {
  padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); font-size: 14px;
  font-family: inherit; background: var(--bg-white);
}

/* ─── SIDEBAR COLLAPSED ─────────────────────────── */
body.sidebar-collapsed .app-shell { grid-template-columns: 68px 1fr; }
body.sidebar-collapsed .sidebar-card { padding: 14px 8px; }
body.sidebar-collapsed .sidebar-card::before { display: none; }
body.sidebar-collapsed .sidebar-head { grid-template-columns: 1fr; justify-items: center; margin-bottom: 8px; padding-bottom: 0; border-bottom: none; }
body.sidebar-collapsed .brand { justify-content: center; }
body.sidebar-collapsed .sidebar-icon-toggle { width: 30px; height: 30px; }
body.sidebar-collapsed .brand-text, body.sidebar-collapsed .nav, body.sidebar-collapsed .sidebar-footer { display: none; }

/* ─── SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }

/* ─── RESPONSIVE: MOBILE ────────────────────────── */
@media (max-width: 720px) {
  .login-split {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    min-height: 34vh;
    padding: 34px 20px;
  }
  .login-brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 20px;
  }
  .login-brand-mark img {
    width: 50px;
    height: 50px;
  }
  .login-brand-content h1 {
    font-size: 28px;
  }
  .login-brand-copy {
    display: none;
  }
  .login-form-panel {
    min-height: auto;
    padding: 28px 20px 40px;
    align-items: start;
  }
  .login-form-card h2 {
    font-size: 24px;
  }
  .card { overflow-x: visible; padding: 14px; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card-header .action-row { width: 100%; }
  .card-header .btn { width: 100%; }
  .user-pill { width: 100%; justify-content: space-between; }
  .action-row { flex-direction: column; align-items: stretch; }
  .action-row .btn { width: 100%; text-align: center; }
  .upload-action-row .btn-upload { margin-left: 0; }
  .table { width: 100%; border-collapse: collapse; table-layout: auto; }
  .table thead { display: none; }
  .table tbody { display: block; }
  .table tbody tr {
    display: block; margin-bottom: 8px;
    border: 1px solid var(--stroke); border-radius: var(--radius);
    padding: 10px 12px; background: var(--bg-white);
    box-shadow: var(--shadow-xs);
  }
  .table tbody td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 5px 0;
    border-bottom: 1px dashed var(--stroke-light);
    font-size: 13px; word-break: break-word;
  }
  .table tbody td::before {
    content: attr(data-label); font-weight: 600;
    color: var(--muted); font-size: 11px;
  }
  .table tbody td:last-child { border-bottom: none; }
  .table tbody td[colspan] { display: block; text-align: left; }
  .table tbody td[colspan]::before { content: ""; display: none; }
  .loan-header { grid-template-columns: 1fr; text-align: center; }
  .loan-row { grid-template-columns: 1fr; gap: 4px; }
  .loan-colon { display: none; }
  .grid-two { grid-template-columns: 1fr; }
  .grid-two > .balance-card {
    grid-column: 1 / -1;
  }
  .form-inline-two { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid .stat--balance {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .stat {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
  }
  .stat .value {
    font-size: clamp(19px, 6vw, 23px);
  }
  .info-grid { grid-template-columns: 1fr; }
  .modal { width: 96vw; }
  .modal-card { padding: 16px; }
  .action-row { width: 100%; }
  .action-row input, .action-row select, .action-row button, .action-row a { width: 100%; }
  .loan-drop summary { flex-direction: column; align-items: flex-start; }
  .loan-subheader { flex-direction: column; align-items: flex-start; }
  .pdf-preview { height: 400px; }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .main { padding: 14px 14px 100px; }
  .sidebar { display: none; }
  .mobile-tabs { display: flex; }
  .mobile-menu .nav { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 8px; }
  .mobile-menu .nav a {
    min-height: 48px; border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: 15px; line-height: 1.3;
  }
  .mobile-menu .nav-section-title { margin-top: 8px; padding: 6px 4px 2px; }
  .mobile-menu .nav-group { padding: 4px; border-radius: var(--radius-sm); }
  .mobile-menu .nav-group-title { padding: 10px 12px; font-size: 15px; }
  .mobile-menu .nav-sub { gap: 4px; padding: 4px; }
  .mobile-menu .nav-sub a { font-size: 14px; min-height: 44px; padding: 8px 12px; }
  .page-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .page-title h1 { font-size: 19px; margin-bottom: 3px; }
  .page-title p { font-size: 13px; }
  .top-user-strip { flex-direction: column; align-items: stretch; gap: 8px; }
  .top-user-actions { justify-content: space-between; }
  .sidebar-icon-toggle { display: none; }
  .brand { justify-content: center; }
  .report-shell { grid-template-columns: 1fr; }
  .report-side { position: static; }
}

/* ─── FOCUS ─────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

strong { color: var(--ink-strong); }
h4 { color: var(--ink-strong); margin-top: 0; }
option { background: var(--bg-white); color: var(--ink); }
