/* ============================================================
   OVERVIEW — dashboard-only styles: topbar, KPI cards, the
   mini revenue/expense chart, and the "at a glance" list.
   (Table styles are shared — see core/core.css)
   ============================================================ */

.topbar{
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:26px; flex-wrap:wrap; gap:14px;
}
.topbar h1{ font-size:23px; font-weight:600; margin-bottom:5px; }
.topbar p{ margin:0; color:var(--muted); font-size:13px; }
.range{ display:flex; background:var(--surface); border:1px solid var(--line); border-radius:8px; overflow:hidden; height:fit-content; }
.range span{ padding:8px 14px; font-size:12.5px; color:var(--muted); cursor:pointer; }
.range span.on{ background:var(--gold-soft); color:var(--teal-deep); font-weight:600; }

/* KPI ROW */
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.kpi{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:17px 19px; }
.kpi.accent{ border-color:var(--gold); background:linear-gradient(180deg,#FFFCF4,var(--surface)); }
.kpi-top{ display:flex; justify-content:space-between; align-items:flex-start; }
.kpi-label{ font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.kpi-value{ font-family:'Fraunces',serif; font-size:25px; font-weight:600; margin-top:9px; color:var(--ink); }
.kpi-sub{ font-size:11.5px; margin-top:6px; }
.kpi-sub.up{ color:var(--success); }
.kpi-sub.down{ color:var(--danger); }
.kpi-sub.flat{ color:var(--muted); }

/* GRID */
.two-col{ display:grid; grid-template-columns:1.4fr 1fr; gap:16px; align-items:start; margin-bottom:16px; }

/* mini chart */
.chart-wrap{ padding:20px 22px 16px; }
.bars{ display:flex; align-items:flex-end; gap:10px; height:140px; }
.bar{ flex:1; background:linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius:5px 5px 0 0; position:relative; }
.bar.expense{ background:linear-gradient(180deg,#CDA9A9,#8A1F1F); }
.bar-label{ position:absolute; bottom:-20px; left:0; right:0; text-align:center; font-size:10.5px; color:var(--muted); }
.legend{ display:flex; gap:18px; margin-top:32px; font-size:12px; color:var(--muted); }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.dot{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.dot.gold{ background:var(--gold); }
.dot.red{ background:var(--danger); }

.list-simple{ padding:4px 20px 16px; }
.li{ display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line); font-size:13px; }
.li:last-child{ border-bottom:none; }
.li .t{ color:var(--muted); }
.li .v{ font-weight:600; color:var(--teal-deep); }

@media (max-width:960px){
  .kpis{ grid-template-columns:1fr 1fr; }
  .two-col{ grid-template-columns:1fr; }
}
