/* ============================================================================
   TPA Billing Ledger — Design System
   Light, clean fintech aesthetic (Stripe / Mercury / Ramp style).
   Layered on top of Bootstrap 5 (grid + form control base classes only) —
   everything visual is redefined here.
   ============================================================================ */

:root{
  --bg:            #f6f7fb;
  --surface:       #ffffff;
  --surface-hover: #fafbfe;
  --border:        #e7e9f0;
  --border-strong: #d7dae4;

  --text:          #14161f;
  --text-muted:    #6b7080;
  --text-faint:    #9498a6;

  --primary:       #4338ca;
  --primary-dark:  #362da8;
  --primary-light: #eef0fd;
  --primary-ring:  rgba(67, 56, 202, .15);

  --success:       #0a8f5b;
  --success-light: #e7f8f0;
  --danger:        #d1372f;
  --danger-light:  #fceeed;
  --warning:       #b6650a;
  --warning-light: #fdf3e2;
  --info:          #1c6fd6;
  --info-light:    #e9f2fd;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 31, .04);
  --shadow:    0 1px 3px rgba(20, 22, 31, .06), 0 1px 2px rgba(20, 22, 31, .04);
  --shadow-lg: 0 8px 24px rgba(20, 22, 31, .10), 0 2px 6px rgba(20, 22, 31, .06);
  --shadow-hover: 0 6px 16px rgba(20, 22, 31, .09), 0 2px 5px rgba(20, 22, 31, .05);

  --sidebar-w: 236px;
}

*{ box-sizing: border-box; }

html, body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv05', 'cv11', 'ss01';
}

/* Financial figures line up better, and just look more "built" when digits
   are monospaced-width instead of proportionally spaced. */
.kpi-value, .m-value, .table td, td, .badge, .chip{
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6{
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

a{ color: var(--primary); }
a:hover{ color: var(--primary-dark); }

code, pre{
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
}

/* ── App shell ──────────────────────────────────────────────────────────── */
.app-shell{ display: flex; min-height: 100vh; }

.sidebar{
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
}

.sidebar-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sidebar-brand:hover{ color: var(--text); }
.sidebar-brand .brand-mark{
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #7c6ef0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}

.sidebar-nav{ padding: 4px 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-section{
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 16px 12px 6px;
}
.sidebar-link{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: background .12s ease, color .12s ease;
}
.sidebar-link svg{ flex-shrink: 0; opacity: .8; transition: opacity .12s ease; }
.sidebar-link:hover{ background: var(--surface-hover); color: var(--text); text-decoration: none; }
.sidebar-link.active{ background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-link.active svg{ opacity: 1; }
.sidebar-link.active::before{
  content: "";
  position: absolute;
  left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: var(--primary);
}

.sidebar-foot{
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.sidebar-user{
  display: flex; align-items: center; gap: 10px;
  padding: 6px;
}
.sidebar-user .avatar{
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.sidebar-user .who{ min-width: 0; }
.sidebar-user .who .name{ font-weight: 600; font-size: 13px; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-user .who .logout{ font-size: 12px; color: var(--text-muted); text-decoration: none; }
.sidebar-user .who .logout:hover{ color: var(--danger); }

.main{
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 28px 32px 56px;
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.topbar h1{ font-size: 22px; margin: 0; }
.topbar .subtitle{ color: var(--text-muted); font-size: 13px; margin-top: 3px; }
.topbar-actions{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover{ box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.card.p-3{ padding: 18px !important; }
.card.p-4{ padding: 26px !important; }

.kpi-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi-row-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px){ .kpi-row{ grid-template-columns: repeat(2, 1fr); } }

.kpi-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.kpi-card:hover{ box-shadow: var(--shadow-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.kpi-card .kpi-label{
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-faint); margin-bottom: 5px; display:flex; align-items:center; gap:6px;
}
.kpi-card .kpi-value{ font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height:1.15; }
.kpi-card .kpi-sub{ font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.kpi-card.tone-success .kpi-value{ color: var(--success); }
.kpi-card.tone-danger .kpi-value{ color: var(--danger); }
.kpi-card.tone-primary .kpi-value{ color: var(--primary); }
.kpi-card.tone-warning .kpi-value{ color: var(--warning); }

/* On the Overview page these three cards ARE the headline of the page, so
   they read larger than a normal kpi-row (e.g. the per-supplier Ledger
   page) — scoped to .overview-totals so ledger.html is unaffected. */
.overview-totals .kpi-card{ padding: 16px 18px; }
.overview-totals .kpi-card .kpi-value{ font-size: 26px; }

/* ── Threshold progress bar — its own prominent strip, not buried in a KPI card ── */
.threshold-bar-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.threshold-bar-top{ display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.threshold-bar-label{
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint);
}
.threshold-bar-value{ font-size: 15px; font-weight: 700; color: var(--text); }
.threshold-bar-pct{
  margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-muted);
  background: #f2f3f7; padding: 2px 9px; border-radius: 999px;
}
.threshold-bar-pct.is-close{ background: var(--warning-light); color: var(--warning); }
.threshold-bar-pct.is-crossed{ background: var(--danger-light); color: var(--danger); }
.threshold-bar-card .progress{ height: 8px; }

/* ── Collapsible "advanced" sections (e.g. supplier baseline fields) ─────── */
.advanced-details{ border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; background: var(--surface-hover); }
.advanced-details summary{
  cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text);
  list-style: none; display: flex; align-items: center; gap: 6px; user-select: none;
}
.advanced-details summary::-webkit-details-marker{ display: none; }
.advanced-details summary::before{
  content: "›"; display: inline-block; font-size: 16px; font-weight: 700; color: var(--text-faint);
  transition: transform .15s ease; width: 12px;
}
.advanced-details[open] summary::before{ transform: rotate(90deg); }
.advanced-details[open]{ padding-bottom: 16px; }

/* Quiet variant — a plain toggle link with no boxed callout, for fields that   */
/* are functional but shouldn't visually compete with the main form (e.g. the  */
/* Historical Baseline fields, only needed for a handful of legacy suppliers). */
.advanced-details-plain{ border: none; background: transparent; padding: 0; }
.advanced-details-plain summary{
  cursor: pointer; font-weight: 500; font-size: 12.5px; color: var(--text-muted);
  list-style: none; display: inline-flex; align-items: center; gap: 5px; user-select: none;
}
.advanced-details-plain summary:hover{ color: var(--text); }
.advanced-details-plain summary::-webkit-details-marker{ display: none; }
.advanced-details-plain summary::before{
  content: "›"; display: inline-block; font-size: 14px; font-weight: 700; color: var(--text-faint);
  transition: transform .15s ease; width: 10px;
}
.advanced-details-plain[open] summary::before{ transform: rotate(90deg); }
.advanced-details-plain[open]{ padding-bottom: 4px; }

/* ── "Needs Attention" panel (Overview page) ───────────────────────────────
   Same collapsible shell as .advanced-details, with an amber left accent —
   this panel exists specifically to surface things that need a human to
   act, so amber is used consistently rather than five separate alert colors. */
.needs-attention-panel{ border-color: var(--warning-light); border-left: 3px solid var(--warning); }
.needs-attention-panel summary{ font-size: 13.5px; }
.needs-attention-count{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-right: 2px;
  background: var(--warning-light); color: var(--warning);
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.needs-attention-list{ display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.needs-attention-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 2px; font-size: 13px; color: var(--text);
  border-top: 1px solid var(--border);
}
.needs-attention-row-right{ display: flex; align-items: center; gap: 10px; }
.needs-attention-row-right a{ font-size: 12.5px; font-weight: 600; }

/* ── Compact status indicator (replaces a full text badge in tight cells) ── */
.status-dot{ display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.status-dot-warning{ background: var(--warning); }
.status-dot-neutral{ background: var(--text-faint); }

/* ── Sortable table headers ─────────────────────────────────────────────── */
.table-sortable th[data-sort-key]{ cursor: pointer; user-select: none; }
.table-sortable th[data-sort-key]:hover{ color: var(--text); }
.table-sortable th.sort-asc::after{ content: " \25B2"; font-size: 9px; }
.table-sortable th.sort-desc::after{ content: " \25BC"; font-size: 9px; }

.currency-group{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px 4px;
  margin-bottom: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.currency-group-label{
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.currency-group-label .chip{ font-size: 10.5px; }
.currency-metrics{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 16px; }
@media (max-width: 800px){ .currency-metrics{ grid-template-columns: 1fr; } }
.currency-metric .m-label{ font-size: 11.5px; color: var(--text-faint); font-weight: 600; text-transform:uppercase; letter-spacing:.03em; margin-bottom:4px; }
.currency-metric .m-value{ font-size: 19px; font-weight: 700; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table{ margin-bottom: 0; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table thead th{
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-faint); border-bottom: 1px solid var(--border); padding: 10px 14px;
  white-space: nowrap; background: var(--surface);
}
.table tbody td{
  padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle;
  color: var(--text); transition: background .1s ease;
}
.table tbody tr:last-child td{ border-bottom: none; }
.table tbody tr.row-hover:hover{ background: var(--surface-hover); }
.table-hover tbody tr:hover{ background: var(--surface-hover); }
.table-sm td, .table-sm th{ padding: 7px 10px; }
.table-compact td, .table-compact th{ padding: 6px 10px; font-size: 12.5px; }
.table-compact td > div{ line-height: 1.3; }
.table-bordered td, .table-bordered th{ border: 1px solid var(--border); }
.table-responsive{ overflow-x: auto; }
.table-responsive .table thead th{ position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 var(--border); }

/* Tighter cells for wide tables. NOTE: intentionally NOT reusing
   .table-compact — its `.table-compact td` (0,1,1) loses to the existing
   `.table tbody td` / `.table thead th` rules (0,1,2), so that class is a
   silent no-op wherever it's applied. Matching those selectors' shape here
   so this one actually wins. */
.table-responsive .table-dense.table thead th{ padding: 7px 10px; }
.table-responsive .table-dense.table tbody td{ padding: 7px 10px; font-size: 12.5px; }

/* Freezes the first column (e.g. Supplier name) while the rest of a wide
   table scrolls horizontally within table-responsive, so you always know
   which row you're looking at without scrolling back left. */
.table-sticky-first td:first-child, .table-sticky-first th:first-child{
  position: sticky; left: 0; z-index: 3; background: var(--surface);
  box-shadow: 1px 0 0 var(--border);
}
.table-sticky-first thead th:first-child{ z-index: 6; }
.table-sticky-first tbody tr.row-hover:hover td:first-child{ background: var(--surface-hover); }
.row-tint-auto{ background: #fbfbfe; }
.row-tint-selected{ background: var(--primary-light) !important; }

/* Soft-deleted booking rows — visibly flagged red, struck through, but the   */
/* row and its Restore action stay fully usable (nothing here is destroyed). */
.row-deleted{ background: var(--danger-light) !important; }
.row-deleted td{ color: var(--danger) !important; text-decoration: line-through; opacity: .85; }
.row-deleted td:last-child{ text-decoration: none; }
.row-deleted .chip, .row-deleted .badge{ text-decoration: none; }

/* ── Year-Wise Ledger month cell: 3 separate boxes so bookings / paid-owed / ── */
/* comments never run together into one wall of text.                        ── */
.ym-cell{ display: flex; flex-direction: column; gap: 3px; min-width: 78px; }
.ym-box{
  border-radius: 5px; padding: 2px 6px; font-size: 10.5px; line-height: 1.25;
  white-space: nowrap;
}
.ym-box-bookings, .ym-box-volume{ background: #f2f3f7; }
.ym-box-bookings .ym-box-value, .ym-box-volume .ym-box-value{ font-weight: 700; color: var(--text); font-size: 11px; }
.ym-box-bookings .ym-box-label, .ym-box-volume .ym-box-label{ color: var(--text-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .02em; }
.ym-box-status{ font-weight: 700; }
.ym-box-status.is-paid{ background: var(--success-light); color: var(--success); }
.ym-box-status.is-owed{ background: var(--warning-light); color: var(--warning); }
.ym-box-status .ym-box-label{ font-weight: 500; font-size: 9px; opacity: .85; }
.ym-box-comment{
  background: transparent; color: var(--text-faint); font-size: 9.5px;
  font-style: italic; padding: 0 6px; white-space: normal;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn{
  font-weight: 600; font-size: 13px; border-radius: var(--radius-sm);
  padding: 7px 14px; border: 1px solid transparent; transition: all .12s ease;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.3;
}
.btn-sm{ padding: 5px 11px; font-size: 12.5px; }
.btn-primary{ background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(67,56,202,.25); }
.btn-primary:hover{ background: var(--primary-dark); border-color: var(--primary-dark); color:#fff; box-shadow: 0 3px 8px rgba(67,56,202,.32); transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0); box-shadow: 0 1px 2px rgba(67,56,202,.25); }
.btn-success{ background: var(--success); border-color: var(--success); color: #fff; box-shadow: 0 1px 2px rgba(10,143,91,.25); }
.btn-success:hover{ background: #077249; border-color:#077249; color:#fff; box-shadow: 0 3px 8px rgba(10,143,91,.3); transform: translateY(-1px); }
.btn-success:active{ transform: translateY(0); }
.btn-danger{ background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-outline-primary{ background: var(--surface); border-color: var(--border-strong); color: var(--primary); }
.btn-outline-primary:hover{ background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.btn-outline-secondary{ background: var(--surface); border-color: var(--border-strong); color: var(--text-muted); }
.btn-outline-secondary:hover{ background: var(--surface-hover); color: var(--text); }
.btn-outline-dark{ background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline-dark:hover{ background: var(--surface-hover); }
.btn-outline-danger{ background: var(--surface); border-color: var(--danger-light); color: var(--danger); }
.btn-outline-danger:hover{ background: var(--danger-light); }
.btn:focus{ outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }

/* ── Badges / status chips ──────────────────────────────────────────────── */
.badge{
  font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .01em; display: inline-flex; align-items: center; gap: 4px;
}
.chip{ font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: 999px; display:inline-flex; align-items:center; gap:4px; }
.chip-success, .badge.bg-success{ background: var(--success-light) !important; color: var(--success) !important; }
.chip-danger, .badge.bg-danger{ background: var(--danger-light) !important; color: var(--danger) !important; }
.chip-warning, .badge.bg-warning{ background: var(--warning-light) !important; color: var(--warning) !important; }
.chip-info, .badge.bg-primary{ background: var(--info-light) !important; color: var(--info) !important; }
.chip-neutral, .badge.bg-secondary{ background: #eef0f4 !important; color: var(--text-muted) !important; }
.badge-source-manual{ background: #eef0f4; color: var(--text-muted); }
.badge-source-auto{ background: var(--info-light); color: var(--info); }

/* ── Progress ───────────────────────────────────────────────────────────── */
.progress{ height: 7px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.progress-bar{ background: var(--primary); border-radius: 999px; }
.progress-bar.bg-danger{ background: var(--danger) !important; }
.progress-bar.bg-warning{ background: var(--warning) !important; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-label{ font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-control, .form-select{
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 13.5px; padding: 8px 11px; color: var(--text); background: var(--surface);
}
.form-control:focus, .form-select:focus{
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); outline: none;
}
.form-text{ font-size: 12px; color: var(--text-faint); }
.form-check-input:checked{ background-color: var(--primary); border-color: var(--primary); }

/* ── Alerts / flash ─────────────────────────────────────────────────────── */
.alert{ border: 1px solid transparent; border-radius: var(--radius); padding: 12px 16px; font-size: 13.5px; }
.alert-success{ background: var(--success-light); color: #066640; border-color: #cdeee0; }
.alert-danger{ background: var(--danger-light); color: #a12920; border-color: #f5d3d0; }
.alert-warning{ background: var(--warning-light); color: #8f4f08; border-color: #f5e0b8; }
.alert-secondary{ background: #f2f3f7; color: var(--text-muted); border-color: var(--border); }
.btn-close{ opacity: .5; }

/* ── Misc ───────────────────────────────────────────────────────────────── */
.text-muted{ color: var(--text-muted) !important; }
.text-faint{ color: var(--text-faint) !important; }
.hr-soft{ border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.nav-tabs{ border-bottom: 1px solid var(--border); gap: 4px; }
.nav-tabs .nav-link{
  border: none; color: var(--text-muted); font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-tabs .nav-link.active{ color: var(--primary); background: var(--primary-light); }

.empty-state{ text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* ── Login page ─────────────────────────────────────────────────────────── */
.login-page{
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, #eef0fd 0%, var(--bg) 55%);
  padding: 24px;
}
.login-card{
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 34px 32px;
}
.login-brand{ display:flex; align-items:center; gap:10px; margin-bottom: 22px; }
.login-brand .brand-mark{
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #7c6ef0);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:15px;
}
.login-brand .brand-name{ font-weight: 700; font-size: 15.5px; }
.login-card h2{ font-size: 19px; margin-bottom: 4px; }
.login-card .subtitle{ color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }

/* ── Scrollbar (subtle) ─────────────────────────────────────────────────── */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{ background: #d7dae4; border-radius: 6px; }
::-webkit-scrollbar-track{ background: transparent; }

@media (max-width: 900px){
  .sidebar{ display: none; }
  .main{ margin-left: 0; padding: 20px; }
}
