:root { --sidebar-w: 250px; --brand: #1f3a5f; --accent: #c8963e; }
body { background: #f4f6fa; }
.sidebar { overflow-x: hidden; width: var(--sidebar-w); background: var(--brand); position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040; display: flex; flex-direction: column; transition: transform .2s; }
.sidebar .brand { flex: 0 0 auto; color: #fff; padding: 1rem 1.25rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.18); display:block; text-decoration:none; background: rgba(0,0,0,.15); }
.sidebar .brand i { color: var(--accent); }
.sidebar .brand span { min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.sidebar .nav-group, .sidebar .nav { max-width: 100%; box-sizing: border-box; }
.sidebar .nav-label { box-sizing: border-box; }
.sidebar .nav-label:focus-visible { outline: 2px solid #f2cf8c; outline-offset: -2px; }
/* display:block + nowrap: Bootstrap's .nav is a wrapping flex box, which spills long menus into extra COLUMNS (= horizontal scrolling) */
.sidebar .side-scroll { display: block; flex-wrap: nowrap; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; padding-bottom: 2rem; scrollbar-width: thin; scrollbar-color: #c8963e rgba(255,255,255,.12); }
.sidebar .side-scroll::-webkit-scrollbar { width: 10px; }
.sidebar .side-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.12); }
.sidebar .side-scroll::-webkit-scrollbar-thumb { background: #c8963e; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar .side-scroll::-webkit-scrollbar-thumb:hover { background: #e0b25f; background-clip: padding-box; }
.sidebar .nav-label { color: #f2cf8c; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: .85rem 1.25rem .35rem; cursor: pointer; display:flex; justify-content:space-between; align-items:center; user-select:none; position: sticky; top: 0; background: var(--brand); z-index: 2; }
.sidebar .nav-label:hover { color: #fff; }
.sidebar .nav-label .chev { transition: transform .15s; font-size: .7rem; }
.sidebar .nav-group.collapsed .nav-label .chev { transform: rotate(-90deg); }
.sidebar .nav-group.collapsed .nav-link { display: none; }
.sidebar .nav-link { color: #fff; font-size: .95rem; line-height: 1.25; padding: .58rem 1rem .58rem 1.25rem; display:flex; gap:.75rem; align-items:center; border-left: 4px solid transparent; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.sidebar .nav-link i { font-size: 1.05rem; width: 1.2rem; flex: 0 0 1.2rem; text-align: center; color: #f2cf8c; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; border-left-color: var(--accent); }
.sidebar .nav-link.active i { color: #fff; }
.menu-toggle { display: none; }
.scrim { display: none; }
.main { margin-left: var(--sidebar-w); }
.topbar { background:#fff; border-bottom:1px solid #e3e7ee; padding:.7rem 1.5rem; }
.card { border: 0; box-shadow: 0 1px 3px rgba(16,24,40,.08); }
.kpi .value { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.kpi .icon { width: 44px; height: 44px; border-radius: 10px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; background:#eaf0f8; color: var(--brand); }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #667085; background:#f9fafb; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 4px 0 18px rgba(0,0,0,.35); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
}
@media print { .sidebar, .topbar, .no-print { display: none !important; } .main { margin: 0; } body { background: #fff; } .card { box-shadow:none; } }
