/* ===========================================================================
   Expenses page — cash-flow chart + expense list visual
   =========================================================================== */
.cf-card { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-md); padding:28px; }
.cf-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-block-end:8px; }
.cf-title { font-family:var(--font-head); font-weight:600; color:var(--ink-900); font-size:17px; }
.cf-sum { font-family:var(--font-mono); font-size:24px; font-weight:500; color:var(--blue-700); }
.cf-legend { display:flex; gap:18px; margin-block:6px 22px; }
.cf-legend span { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--ink-400); font-family:var(--font-head); }
.cf-legend i { width:11px; height:11px; border-radius:3px; }
.cf-legend .l-act { background:var(--blue-600); }
.cf-legend .l-fc { background:var(--blue-100); }
.cf-chart { display:flex; gap:14px; align-items:flex-end; height:190px; }
.cf-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end; }
.cf-stack { width:100%; max-width:38px; display:flex; flex-direction:column-reverse; gap:3px; }
.cf-act { background:var(--blue-600); border-radius:5px 5px 0 0; }
.cf-fc { background:var(--blue-100); border-radius:5px 5px 0 0; }
.cf-col.has-fc .cf-act { border-radius:0; }
.cf-mlabel { font-size:12.5px; color:var(--ink-300); font-family:var(--font-head); }

/* expense rows */
.exp-list { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-md); overflow:hidden; }
.exp-row { display:flex; align-items:center; gap:14px; padding:15px 20px; border-bottom:1px solid var(--line); }
.exp-row:last-child { border-bottom:0; }
.exp-ic { width:40px; height:40px; border-radius:11px; background:var(--blue-50); color:var(--blue-600); display:grid; place-items:center; flex:none; }
.exp-ic svg { width:20px; height:20px; }
.exp-ic.g { background:var(--green-100); color:var(--green-600); }
.exp-meta { flex:1; }
.exp-name { font-family:var(--font-head); font-weight:500; color:var(--ink-900); font-size:15.5px; }
.exp-cat { font-size:13px; color:var(--ink-300); }
.exp-amt { font-family:var(--font-mono); font-size:16px; color:var(--ink-700); }
.exp-tag { font-size:11.5px; font-family:var(--font-head); font-weight:500; padding:3px 9px; border-radius:var(--r-pill); }
.exp-tag.paid { background:var(--green-100); color:var(--green-600); }
.exp-tag.part { background:var(--amber-100); color:var(--amber-600); }

/* ---- responsive (full mobile pass, 2026-07-19) ---- */
@media (max-width: 760px) {
  .cf-top { flex-direction: column; gap: 10px; }
  .cf-chart { gap: 8px; height: 160px; }
  .cf-stack { max-width: 30px; }
  .exp-row { padding: 13px 14px; gap: 10px; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .cf-legend { flex-wrap: wrap; gap: 10px; }
  .cf-chart { height: 135px; }
}
