/* ===================== RESUMO (planejamento) ===================== */
.rz-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: 18px; }
/* RESUMO REBUILD — hero verde do saldo (âncora) */
.rz-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; background: var(--hero-bg); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 14px; color: var(--hero-ink); }
.rz-hero-eyebrow { display: flex; align-items: center; gap: 9px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hero-label); margin-bottom: 12px; }
.rz-hero-amt { font-family: 'Geist Mono', monospace; font-size: clamp(34px, 4.6vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--hero-ink); }
.rz-hero-sub { margin-top: 11px; font-size: 12.5px; color: var(--hero-label); }
.rz-hero-r { text-align: right; }
.rz-hero-rate-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--hero-label); margin-bottom: 6px; }
.rz-hero-rate { font-family: 'Geist Mono', monospace; font-size: 30px; font-weight: 600; color: var(--hero-num); line-height: 1; }
/* DS audit: bloco .rz-kpi/.rz-kpi-ic/.rz-k-* removido — confirmado morto (grep em app.js).
   O KPI row do Resumo em produção usa .rz-kpi2 (ver .rz-kpis2 mais abaixo), não .rz-kpi. */
.rz-pos { color: var(--gain) !important; } .rz-neg { color: var(--loss) !important; } .rz-muted { color: var(--ink-2); }
.rz-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-4); align-items: start; }
.rz-col { display: flex; flex-direction: column; gap: var(--sp-4); }
.rz-tops { display: flex; flex-direction: column; }
.rz-top { display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rz-top:last-child { border-bottom: none; padding-bottom: 0; }
.rz-top-dot { width: 9px; height: 9px; border-radius: 3px; }
.rz-top-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rz-top-nm { font-size: var(--fs-body); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-top-meta { font-size: 10.5px; color: var(--ink-3); }
.rz-top-v { font-family: 'Geist Mono', monospace; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.rz-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.rz-donut-wrap { display: flex; justify-content: center; }
.rz-donut { position: relative; width: 172px; height: 172px; }
.rz-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; }
.rz-dc-b { font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.rz-dc-a { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.rz-split { margin-top: 18px; }
.rz-split-bar { display: flex; gap: 2px; height: 9px; border-radius: 6px; overflow: hidden; background: color-mix(in oklab, var(--ink-3) 16%, transparent); }
.rz-split-bar i { display: block; height: 100%; }
.rz-split-bar i.vv { background: var(--purple); } .rz-split-bar i.ff { background: var(--ink-3); }
.rz-split-leg { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.rz-sl { display: inline-flex; align-items: center; gap: 6px; font-family: 'Geist Mono', monospace; font-size: var(--fs-micro); color: var(--ink-3); }
.rz-sl b { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.rz-sl b.vv { background: var(--purple); } .rz-sl b.ff { background: var(--ink-3); }
.rz-cats { margin-top: 18px; display: flex; flex-direction: column; }
.rz-cat { padding: 9px 0; border-bottom: 1px solid var(--border); }
.rz-cat:last-child { border-bottom: none; padding-bottom: 0; }
.rz-cat-top { display: grid; grid-template-columns: 13px 1fr auto auto; gap: 9px; align-items: center; margin-bottom: 7px; }
.rz-cat-dot { width: 11px; height: 11px; border-radius: 3px; }
.rz-cat-nm { font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.rz-cat-v { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--ink-2); }
.rz-cat-pct { font-family: 'Geist Mono', monospace; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-3); min-width: 38px; text-align: right; }
.rz-bar { height: 6px; border-radius: 4px; background: color-mix(in oklab, var(--ink-3) 16%, transparent); overflow: hidden; }
.rz-bar i { display: block; height: 100%; border-radius: 4px; }
.rz-people { display: flex; flex-direction: column; gap: var(--sp-1); }
.rz-person { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 8px; border-radius: 14px; transition: background .15s; }
.rz-person:hover { background: var(--bg-elevated-2); }
.rz-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: 'Geist Mono', monospace; font-weight: 700; font-size: var(--fs-body-lg); color: #10121a; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.rz-card { transition: box-shadow .25s var(--ease-out); }
.rz-card:hover { box-shadow: var(--shadow-lg, 0 20px 44px -28px rgba(0,0,0,.5)); }
.rz-person-main { min-width: 0; }
.rz-person-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rz-person-nm { font-size: var(--fs-body-lg); font-weight: 600; color: var(--ink); }
.rz-person-out { font-family: 'Geist Mono', monospace; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rz-pbar { height: 6px; border-radius: 4px; background: color-mix(in oklab, var(--ink-3) 16%, transparent); overflow: hidden; margin: 8px 0 6px; }
.rz-pbar i { display: block; height: 100%; border-radius: 4px; }
.rz-person-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-micro); color: var(--ink-muted); }
.rz-person-in { color: var(--gain); font-family: 'Geist Mono', monospace; font-weight: 600; }
.rz-card + .rz-card, #moduleResumo .rz-grid + .rz-card { margin-top: 16px; }
.rz-col .rz-card + .rz-card { margin-top: 0; }   /* a coluna já usa flex gap — não somar margem */
.rz-chart { display: flex; align-items: flex-end; gap: var(--sp-2); height: 200px; padding: 6px 2px 0; }
.rz-mcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; }
.rz-mbars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; }
.rz-mbars i { width: 9px; border-radius: 3px 3px 0 0; min-height: 2px; animation: barGrow .7s var(--ease-out) both; transform-origin: bottom; }
.rz-mlabel { font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--ink-3); }
.rz-vis { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 11px 0; border-bottom: 1px solid var(--border); }
.rz-vis:last-child { border-bottom: none; }
.rz-vis-k { font-size: var(--fs-caption); color: var(--ink-3); }
.rz-vis-v { font-size: var(--fs-body); font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 899.98px) { .rz-grid { grid-template-columns: 1fr; } }
@media (max-width: 719.98px) { .rz-kpis { grid-template-columns: 1fr; } .rz-hero { align-items: stretch; } .rz-hero-r { text-align: left; } }
/* ===================== METAS (barras de progresso minimalistas) ===================== */
/* v10 — overlay de import: pipeline (3 etapas) + scan do documento + extração ao vivo */
.imp-ov-card { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 32px 34px 28px; border-radius: 26px; width: min(420px, 92vw);
  background: linear-gradient(165deg, color-mix(in oklab, var(--bg-elevated) 82%, transparent), color-mix(in oklab, var(--bg) 90%, transparent));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -34px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
  animation: impCardIn .55s cubic-bezier(.18,1.3,.4,1) both; }
@keyframes impCardIn { from { opacity: 0; transform: scale(.86) translateY(12px); } to { opacity: 1; transform: none; } }
/* pipeline header (3 etapas) */
.imp-pipe { display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.imp-pnode { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 80px; flex-shrink: 0; }
.imp-pic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--ink-3); transition: .42s cubic-bezier(.2,1.4,.35,1); }
.imp-pic svg { width: 19px; height: 19px; }
.imp-plabel { font-size: 10px; font-weight: 600; color: var(--ink-3); transition: color .3s; white-space: nowrap; }
.imp-pnode.act .imp-pic { border-color: var(--purple); color: var(--purple-light); transform: translateY(-2px) scale(1.06); box-shadow: 0 0 20px -4px color-mix(in oklab, var(--purple) 65%, transparent); background: color-mix(in oklab, var(--purple) 15%, var(--bg-elevated)); }
.imp-pnode.act .imp-plabel { color: var(--ink); }
.imp-pnode.fin .imp-pic { border-color: var(--gain); color: var(--gain); box-shadow: 0 0 22px -3px rgba(48,209,88,.6); background: color-mix(in oklab, var(--gain) 15%, var(--bg-elevated)); animation: impPop .55s cubic-bezier(.2,1.6,.35,1); }
.imp-pnode.fin .imp-plabel { color: var(--gain); }
@keyframes impPop { 0% { transform: scale(.8); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.imp-pconn { flex: 1; height: 3px; background: var(--border); border-radius: 3px; margin-top: 20px; max-width: 50px; position: relative; overflow: hidden; }
.imp-pconn i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--purple), var(--purple-light)); transition: width .5s var(--ease-out); }
.imp-pconn.fill i { width: 100%; }
/* stage: extração ao vivo + scan */
.imp-stage { position: relative; width: 100%; min-height: 148px; border-radius: 16px; background: rgba(0,0,0,.2); border: 1px solid var(--border); overflow: hidden; padding: var(--sp-2); display: grid; place-items: center; transition: border-color .4s, box-shadow .4s; }
.imp-overlay.done .imp-stage { border-color: color-mix(in oklab, var(--gain) 35%, var(--border)); box-shadow: inset 0 0 30px -8px rgba(48,209,88,.32); }
.imp-rows { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.imp-rrow { display: grid; grid-template-columns: 38px 1fr auto auto; gap: var(--sp-2); align-items: center; padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid var(--border); opacity: 0; transform: translateX(-12px); }
.imp-rrow.in { animation: impRowIn .44s cubic-bezier(.2,1.4,.35,1) forwards; }
@keyframes impRowIn { to { opacity: 1; transform: none; } }
.imp-rrow .rd { font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--ink-3); }
.imp-rrow .rm { font: 600 11px Inter, sans-serif; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.imp-rrow .rc { font: 600 9px Inter, sans-serif; padding: 2px 6px; border-radius: 5px; white-space: nowrap; background: color-mix(in oklab, var(--rc) 22%, transparent); color: color-mix(in oklab, var(--rc) 80%, white); }
.imp-rrow .rv { font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.imp-scan { position: absolute; left: 0; right: 0; height: 40px; top: -42px; pointer-events: none; opacity: 0; z-index: 2; will-change: transform, opacity;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--purple) 10%, transparent) 45%, color-mix(in oklab, var(--purple) 22%, transparent) 50%, color-mix(in oklab, var(--purple) 10%, transparent) 55%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--purple) 50%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--purple) 50%, transparent); box-shadow: 0 0 18px 2px color-mix(in oklab, var(--purple) 30%, transparent); }
.imp-overlay.reading .imp-scan, .imp-overlay.scanning .imp-scan { animation: impScan 1.25s var(--ease-out) infinite; }
/* anima TRANSFORM (GPU), não `top` (layout/paint a cada frame). top fica em -42px
   e o translateY move 192px → equivale a ir de top -42 até 150. */
@keyframes impScan { 0% { opacity: 0; transform: translateY(0); } 14% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; transform: translateY(192px); } }
.imp-overlay.reading .imp-pnode[data-n="0"] .imp-pic { border-color: var(--purple); color: var(--purple-light); box-shadow: 0 0 20px -4px color-mix(in oklab, var(--purple) 60%, transparent); background: color-mix(in oklab, var(--purple) 15%, var(--bg-elevated)); }
.imp-overlay.reading .imp-pnode[data-n="0"] .imp-plabel { color: var(--ink); }
.imp-spark { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gain); opacity: 0; pointer-events: none; z-index: 4; }
.imp-overlay.done .imp-spark { animation: impSpark .8s .12s var(--ease-out) forwards; }
.imp-spark.s1 { --tx: 0px; --ty: -58px; } .imp-spark.s2 { --tx: 80px; --ty: -26px; background: var(--purple-light); }
.imp-spark.s3 { --tx: 80px; --ty: 26px; } .imp-spark.s4 { --tx: 0px; --ty: 58px; background: var(--purple-light); }
.imp-spark.s5 { --tx: -80px; --ty: 26px; } .imp-spark.s6 { --tx: -80px; --ty: -26px; background: var(--purple-light); }
@keyframes impSpark { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0); } 30% { opacity: 1; transform: translate(calc(-50% + var(--tx) * .6), calc(-50% + var(--ty) * .6)) scale(1.2); } 100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.35); } }
.imp-ov-text { font-size: var(--fs-value); font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.imp-overlay.done .imp-ov-text { color: var(--gain); }
.imp-ov-sub { font-family: 'Geist Mono', monospace; font-size: 13.5px; color: var(--ink-3); font-weight: 600; min-height: 18px; letter-spacing: -.01em; }
.imp-overlay.done .imp-ov-sub { color: var(--gain); }

/* Income styling on existing row/pill/amount layouts */
.exp-recent-row.is-income .exp-recent-amt,
.exp-table tr.is-income .exp-row-amt { color: var(--gain); }
.exp-recent-row.is-income .exp-recent-icon,
.exp-table tr.is-income {
  --cat-color: var(--gain);
}
.exp-cat-pill.is-income {
  color: color-mix(in oklab, var(--gain) 85%, var(--ink));
  background: color-mix(in oklab, var(--gain) 15%, transparent);
}
.exp-cat-pill.is-income .exp-cat-pill-icon { color: var(--gain); }








/* Table toolbar (search + CSV export) */
.exp-table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exp-filter { background: var(--bg-elevated); color: var(--ink-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; font: 500 12px Inter, sans-serif; cursor: pointer; max-width: 132px; }
.exp-filter:hover { border-color: var(--border-strong); }
.exp-filter:focus { outline: none; border-color: var(--purple); }
.exp-filter.on { border-color: var(--purple); color: var(--ink); background: color-mix(in oklab, var(--purple) 10%, var(--bg-elevated)); }
.exp-search {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 7px 12px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  transition: all 0.18s var(--ease-out);
  min-width: 220px;
}
.exp-search:focus-within {
  border-color: var(--border-strong);
  background: var(--bg-elevated-3);
  box-shadow: 0 0 0 3px var(--purple-soft);
  color: var(--purple-light);
}
.exp-search svg { opacity: 0.8; flex-shrink: 0; }
.exp-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-caption);
  letter-spacing: -0.005em;
  min-width: 0;
}
.exp-search input::placeholder { color: var(--ink-muted); }
.exp-search input::-webkit-search-cancel-button { appearance: none; }

.btn-csv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-family: inherit;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.btn-csv:hover {
  background: var(--purple-soft);
  border-color: color-mix(in oklab, var(--purple) 28%, transparent);
  color: var(--purple-light);
  transform: translateY(-1px);
}
.btn-csv svg { opacity: 0.9; }

@media (max-width: 719.98px) {
  .exp-table-tools { width: 100%; }
  .exp-search { flex: 1; min-width: 0; }
}



.mr-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; font-family: 'Geist Mono', monospace; }
.mr-table th { text-align: left; padding: 0 12px 10px; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.mr-table th.mr-th-num { text-align: right; }
.mr-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mr-table td.mr-td-month { color: var(--ink); font-weight: 600; white-space: nowrap; }
.mr-table td.mr-num { text-align: right; white-space: nowrap; }
.mr-table td.pos { color: var(--gain); font-weight: 600; }
.mr-table td.neg { color: var(--loss); font-weight: 600; }
.mr-table tr:last-child td { border-bottom: none; }

/* Inline SVG icon base — all Lucide-style strokes use this class */
.icn {
  display: inline-block;
  width: 1em; height: 1em;
  flex-shrink: 0;
  vertical-align: middle;
  color: currentColor;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--loss) 30%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--loss) 0%, transparent); }
}

/* ---- Recent list (v8) ---- */
#recentList { display: flex; flex-direction: column; }
.exp-recent-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), padding 0.15s var(--ease-out);
  border-radius: 8px;
  opacity: 0;
  animation: fadeUp 0.4s var(--ease-out) forwards;
  animation-delay: var(--row-delay, 0.05s);
}
.exp-recent-row:last-child { border-bottom: none; }
.exp-recent-row:hover { background: var(--bg-elevated-2); padding-left: 14px; }
/* Neutral category tile (Direction B). Income rows still tint green via the
   .is-income override below (semantic gain, not a category hue). */
.exp-recent-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--bg-elevated-3);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.exp-recent-row.is-income .exp-recent-icon {
  background: color-mix(in oklab, var(--gain) 18%, var(--bg-elevated-2));
  border-color: color-mix(in oklab, var(--gain) 28%, transparent);
  color: var(--gain);
}
.exp-recent-icon .icn { width: 16px; height: 16px; }
.exp-recent-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.exp-recent-desc { font-size: 12.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.005em; }
.exp-recent-meta { font-size: 10px; color: var(--ink-muted); font-family: 'Geist Mono', monospace; letter-spacing: 0.02em; }
.exp-recent-amt { font-family: 'Geist Mono', monospace; font-size: var(--fs-body); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Full table (v8) ---- */
.table-wrap { overflow-x: auto; }
.exp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-caption); }
.exp-table th { text-align: left; padding: 0 14px 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.exp-table th.exp-th-amt { text-align: right; }
.exp-table th.exp-th-sort { cursor: pointer; user-select: none; transition: color .15s; white-space: nowrap; }
.exp-table th.exp-th-sort:hover { color: var(--ink-2); }
.exp-table th.exp-th-sort::after { content: '↕'; margin-left: 5px; font-size: 9px; opacity: .35; }
.exp-table th.exp-th-sort.is-sorted-asc::after { content: '↑'; opacity: 1; color: var(--purple); }
.exp-table th.exp-th-sort.is-sorted-desc::after { content: '↓'; opacity: 1; color: var(--purple); }
/* Totalizador acima da tabela — soma alinhada à direita (coluna Valor) */
.exp-total-bar { display: flex; align-items: baseline; gap: var(--sp-3); padding: 2px 14px 12px; }
.exp-total-bar[hidden] { display: none; }   /* app.js alterna via hidden — sem isto o display:flex acima vencia o atributo */
.exp-total-bar .exp-total-lbl { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.exp-total-bar .exp-total-val { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 17px; font-weight: 700; color: var(--ink); }
.exp-table td { padding: 4px 14px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: middle; }   /* v10 slim (Ultra): era 13px */
.exp-table tr[data-id] { cursor: pointer; position: relative; transition: background 0.15s var(--ease-out); }
.exp-table tr[data-id]::after {
  content: "";
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 2px;
  background: var(--accent);   /* neutral single accent — categories no longer tint the row rail */
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.exp-table tr.is-income[data-id]::after { background: var(--gain); }
.exp-table tr[data-id]:hover td { background: var(--bg-elevated-2); }
.exp-table tr[data-id]:hover::after { opacity: 0.8; }
.exp-table tr:last-child td { border-bottom: none; }
.exp-row-date { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11.5px; }
/* visão agrupada por dia: a coluna DATA fica vazia (data vai no cabeçalho do dia) → some,
   pra descrição grudar na esquerda em vez de flutuar no meio */
.exp-table.is-grouped thead th[data-sort="date"], .exp-table.is-grouped .exp-row-date { display: none; }
.exp-row-desc-cell { min-width: 0; }
/* v10 slim (Ultra): linha do título = flex (título trunca, chip+selo ficam) */
.exp-row-desc { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; line-height: 1.3; }
/* min-width ~96px: o badge "FIXA · PREVISTA" + o chip de dono (ambos flex-shrink:0) espremiam
   o título até ~72px em despesas fixas projetadas ("Aluguel a…"). Garante espaço mínimo pro
   título antes de os vizinhos comerem o resto. */
.exp-row-dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 96px; flex-shrink: 1; }
.exp-row-desc .exp-owner-chip, .exp-row-desc .exp-fixa-badge, .exp-row-desc .exp-prov-badge { margin-left: 0; flex-shrink: 0; }
.exp-row-notes { margin-top: 2px; font-size: 10px; color: var(--ink-muted); font-family: 'Geist Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.exp-row-amt { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Neutral category tag (Direction B): no per-category hue — a plain neutral chip.
   Income keeps its green via .exp-cat-pill.is-income below. */
.exp-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 9px;
  border-radius: 8px;   /* DS audit M-2: geometria base da família pill = radius 8 / --fs-micro */
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  background: var(--bg-elevated-3);
  border: 0;
  white-space: nowrap;
}
.exp-cat-pill-icon { display: inline-flex; align-items: center; color: var(--ink-2); }
.exp-cat-pill-icon .icn { width: 12px; height: 12px; }

