:root {
  color-scheme: light;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #f2f2ee;
  --surface-3: #e8e8e2;
  --border: #e3e3dc;
  --text: #121211;
  --text-2: #53524e;
  --muted: #84837d;
  --accent: #2a78d6;
  --accent-soft: #e6f0fc;
  --accent-ink: #ffffff;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --pos: #23803a;
  --neg: #c03a3a;
  --warn: #a86b00;
  --neg-soft: #fbeaea;
  --pos-soft: #e5f4e8;
  --a1: #2a78d6;
  --a2: #eb6834;
  --a3: #1baf7a;
  --a4: #6250d6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px rgb(0 0 0 / 0.04);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #111110;
    --surface: #1b1b1a;
    --surface-2: #242422;
    --surface-3: #2e2e2b;
    --border: #33332f;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #93928a;
    --accent: #3987e5;
    --accent-soft: #1d2c40;
    --series-1: #3987e5;
    --series-2: #d95926;
    --pos: #5fbf63;
    --neg: #e66767;
    --warn: #e0a53a;
    --neg-soft: #3a2020;
    --pos-soft: #1d3320;
    --a1: #3987e5;
    --a2: #d95926;
    --a3: #199e70;
    --a4: #9085e9;
    --shadow: none;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111110;
  --surface: #1b1b1a;
  --surface-2: #242422;
  --surface-3: #2e2e2b;
  --border: #33332f;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #93928a;
  --accent: #3987e5;
  --accent-soft: #1d2c40;
  --series-1: #3987e5;
  --series-2: #d95926;
  --pos: #5fbf63;
  --neg: #e66767;
  --warn: #e0a53a;
  --neg-soft: #3a2020;
  --pos-soft: #1d3320;
  --a1: #3987e5;
  --a2: #d95926;
  --a3: #199e70;
  --a4: #9085e9;
  --shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 24px; margin: 0 0 2px; letter-spacing: -0.01em; }
h2 { font-size: 16px; margin: 0; }
.sub { color: var(--text-2); margin: 2px 0 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
small { font-size: 12px; }

/* ---------- botones e inputs ---------- */
button, input, textarea {
  font: inherit; color: var(--text); border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
}
button { cursor: pointer; padding: 8px 14px; min-height: 38px; background: var(--surface-2); border-color: transparent; font-weight: 500; transition: background 0.15s, transform 0.05s; }
button:hover { background: var(--surface-3); }
button:active { transform: translateY(1px); }
button:focus-visible, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button.primario { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primario:hover { filter: brightness(1.08); }
button.peligro-lleno { background: var(--neg); color: #fff; font-weight: 600; }
button.grande { padding: 11px 18px; font-size: 15px; }
button.chico { min-height: 32px; padding: 4px 10px; font-size: 13px; }
button.icono { background: none; min-height: 34px; width: 34px; padding: 0; font-size: 16px; border-radius: 8px; }
button.icono:hover { background: var(--surface-2); }
input, textarea { padding: 8px 11px; min-height: 40px; width: 100%; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }

.campo { display: grid; gap: 5px; position: relative; min-width: 0; }
.campo > span { color: var(--text-2); font-size: 13px; font-weight: 500; }
.dinero { position: relative; }
.dinero i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; pointer-events: none; }
.dinero input { padding-left: 24px; font-variant-numeric: tabular-nums; }
.campo-dinero { width: 130px; }
.selector-fecha { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); font-weight: 400; white-space: nowrap; min-height: 40px; }
.selector-fecha b { font-weight: 500; }

.segmento { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 11px; gap: 2px; flex-wrap: wrap; }
.segmento button { background: none; min-height: 34px; padding: 5px 11px; border-radius: 8px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.segmento button small { color: var(--muted); }
.segmento button.sel { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); font-weight: 600; }

/* ---------- calendario ---------- */
.calendario {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 280px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
}
.calendario.arriba { top: auto; bottom: calc(100% + 6px); }
.calendario.derecha { left: auto; right: 0; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-cab button { background: none; width: 34px; min-height: 34px; padding: 0; font-size: 20px; }
.cal-cab button:hover { background: var(--surface-2); }
.cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dias i { font-style: normal; font-size: 11px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.cal-dias button { background: none; min-height: 34px; padding: 0; border-radius: 8px; font-variant-numeric: tabular-nums; }
.cal-dias button:hover { background: var(--surface-2); }
.cal-dias button.hoy { color: var(--accent); font-weight: 700; }
.cal-dias button.sel { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal-pie { display: flex; gap: 6px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.cal-pie button { flex: 1; min-height: 32px; font-size: 13px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-caja { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow); text-align: center; }
.login-logo { font-size: 44px; }
.login h1 span, .marca span { color: var(--accent); }
.login-usuarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.login-usuarios button { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; }
.login-usuarios button.sel { border-color: var(--accent); background: var(--accent-soft); }
.login-usuarios .avatar { width: 46px; height: 46px; font-size: 20px; }
.login .campo { text-align: left; }

/* ---------- layout ---------- */
.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.marca { font-weight: 800; font-size: 18px; white-space: nowrap; }
nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav button { background: none; padding: 8px 12px; color: var(--text-2); white-space: nowrap; }
nav button.activo { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.yo { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.yo-nombre { font-weight: 600; }

main { max-width: 1280px; margin: 0 auto; padding: 22px 16px 60px; }
.titulo { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.rejilla { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.col-izq, .col-der { display: grid; gap: 16px; min-width: 0; }
.col-der { position: sticky; top: 76px; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.rejilla-3 .tarjeta { margin-bottom: 0; }
@media (max-width: 980px) {
  .rejilla, .rejilla-2 { grid-template-columns: 1fr; }
  .col-der { position: static; order: -1; }
}
@media (max-width: 640px) {
  .yo-nombre { display: none; }
  .top { padding-bottom: 6px; }
  nav { order: 3; flex: 1 1 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  nav button { display: grid; justify-items: center; gap: 1px; font-size: 19px; padding: 4px 1px; min-width: 0; }
  nav button span { font-size: 9.5px; letter-spacing: -0.2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  nav button span[data-c] { font-size: 0; }
  nav button span[data-c]::after { content: attr(data-c); font-size: 9.5px; }
  .marca { font-size: 16px; }
  h1 { font-size: 21px; }
}

.tarjeta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; min-width: 0; box-shadow: var(--shadow); }
.col-izq .tarjeta, .col-der .tarjeta, .rejilla-2 .tarjeta { margin-bottom: 0; }
.tarjeta > h2 { margin-bottom: 14px; }
.cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.total-cab { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }

.formulario { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.formulario .campo-fecha { width: 170px; }
.formulario .ancho { flex: 1 1 200px; }
.formulario .segmento { background: var(--surface-3); }
.formulario .agregar { margin-left: auto; }

/* ---------- listas ---------- */
.lista { display: grid; }
.item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.item:last-child { border-bottom: 0; }
.item.apagado { opacity: 0.6; }
.item-icono { width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; font-size: 18px; }
.item-cuerpo b { font-weight: 600; }
.sub-det { color: var(--text-2); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12.5px; margin-top: 3px; align-items: center; }
.meta .pago { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.autor { color: var(--muted); }
.item-valor { text-align: right; display: grid; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-valor small { color: var(--muted); }
.isd { color: var(--warn) !important; }
.acc { display: flex; gap: 2px; align-items: center; }
@media (max-width: 640px) {
  .item { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .item .acc { grid-column: 2 / -1; justify-content: flex-end; margin-top: -6px; }
  .item-icono { width: 34px; height: 34px; }
  .formulario .campo-fecha, .formulario .ancho { flex: 1 1 100%; width: auto; }
  .formulario .agregar { flex: 1; }
}
.vacio { color: var(--muted); text-align: center; padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 99px; font-size: 12px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.ok { background: var(--pos-soft); color: var(--pos); }
.chip.vencido { background: var(--neg-soft); color: var(--neg); }
.progreso { height: 5px; background: var(--surface-2); border-radius: 3px; margin-top: 6px; overflow: hidden; max-width: 220px; }
.progreso div { height: 100%; background: var(--pos); border-radius: 3px; }
.cab-lista { display: flex; justify-content: flex-end; margin-bottom: 4px; }

.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.chico { width: 20px; height: 20px; font-size: 11px; }
.avatar.a1 { background: var(--a1); }
.avatar.a2 { background: var(--a2); }
.avatar.a3 { background: var(--a3); }
.avatar.a4 { background: var(--a4); }

/* ---------- cuadre ---------- */
.lineas { display: grid; gap: 8px; }
.linea { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.linea > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.linea.sep { border-top: 1px dashed var(--border); padding-top: 8px; font-weight: 600; }
.socios-total { display: grid; gap: 8px; margin-top: 14px; }
.socio-total { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--accent-soft); border-radius: 12px; }
.socio-total small { display: block; color: var(--text-2); }
.socio-total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.nota { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- ciclos ---------- */
.tarjetas-ciclo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
.tarjetas-ciclo .tarjeta { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tarjetas-ciclo .cab { margin: 0; }
.ciclo-card.actual { border: 2px dashed var(--accent); box-shadow: none; }
.ciclo-card .socios-total { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.ciclo-card .socio-total > div { min-width: 0; }
.ciclo-card .socio-total { padding: 10px; gap: 8px; }
.ciclo-card .socio-total b { font-size: 16px; }
.ciclo-card .nota { margin: 0; }
.ciclo-card .acciones { margin-top: auto; }

/* ---------- dashboard ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border-radius: 99px; min-height: 34px; padding: 5px 14px; }
.chips button.sel { background: var(--accent); color: var(--accent-ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 45%), 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi.alerta { border-color: var(--neg); }
.kpi .etq { color: var(--text-2); font-size: 13px; }
.kpi .val { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.kpi .det { color: var(--muted); font-size: 12px; }
.leyenda { display: flex; gap: 14px; color: var(--text-2); font-size: 13px; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.leyenda .s1, .barra.s1 { background: var(--series-1); }
.leyenda .s2, .barra.s2 { background: var(--series-2); }
.grafico { position: relative; height: 260px; display: grid; grid-template-columns: 52px 1fr; margin: 8px 0 26px; }
.eje-y { position: relative; color: var(--muted); font-size: 11px; }
.eje-y span { position: absolute; right: 8px; transform: translateY(50%); font-variant-numeric: tabular-nums; }
.area { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 1px solid var(--text-2); }
.guia { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.mes { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding: 0 12%; }
.mes:hover { background: var(--surface-2); border-radius: 6px 6px 0 0; }
.barra { flex: 1; max-width: 18px; border-radius: 4px 4px 0 0; }
.mes .etq-mes { position: absolute; bottom: -20px; font-size: 11px; color: var(--muted); }
.tip { position: absolute; z-index: 3; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.14); font-size: 12.5px; white-space: nowrap; }
.tip b { display: block; margin-bottom: 4px; }
details summary { cursor: pointer; color: var(--text-2); }
.tabla-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 8px; border-bottom: 1px solid var(--border); }
td { padding: 8px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
.socios-dash { display: grid; gap: 12px; }
.socio-dash { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.socio-dash .lineas { margin-top: 6px; gap: 4px; font-size: 14px; }
.barra-h { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin-bottom: 11px; }
.barra-h .pista { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.barra-h .pista div { height: 100%; background: var(--series-1); border-radius: 4px; }

/* ---------- actividad ---------- */
.timeline { display: grid; }
.evento { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.evento:last-child { border-bottom: 0; }
.evento small { color: var(--muted); }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; user-select: none; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.switch span { width: 38px; height: 22px; background: var(--surface-3); border-radius: 99px; position: relative; transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- modal ---------- */
dialog { border: 0; border-radius: 18px; padding: 22px; background: var(--surface); color: var(--text); width: min(480px, calc(100vw - 32px)); overflow: visible; box-shadow: 0 20px 60px rgb(0 0 0 / 0.3); }
dialog[open] { animation: entra 0.18s ease-out; }
dialog::backdrop { background: rgb(0 0 0 / 0.45); backdrop-filter: blur(2px); }
@keyframes entra { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal-cab { display: flex; justify-content: space-between; align-items: center; }
.modal-cab h2 { font-size: 18px; }
#modal-cuerpo { display: grid; gap: 12px; margin: 14px 0 18px; }
#modal-cuerpo .lineas { padding: 12px; background: var(--surface-2); border-radius: 12px; }
#modal-cuerpo .socios-total, #modal-cuerpo .nota { margin: 0; }
.texto-modal { margin: 0; color: var(--text-2); }
.pie { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- avisos ---------- */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; font-weight: 500; }
.toast.ver { opacity: 1; transform: none; }
.toast.error { background: var(--neg); color: #fff; }

/* ---------- clientes ---------- */
.combo { position: relative; }
.combo-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; }
.combo input { padding-left: 32px; }
.combo input:disabled { background: var(--surface-2); color: var(--text-2); }
.campo-cliente { position: relative; }
.campo-cliente.error input { border-color: var(--neg); outline: 2px solid var(--neg); }
.formulario .cliente-ancho { flex: 1 1 200px; min-width: 180px; }
.combo-lista {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 240px; z-index: 30; padding: 6px; display: grid; gap: 1px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.18); max-height: 320px; overflow-y: auto;
}
.combo-lista.arriba { top: auto; bottom: calc(100% + 4px); }
.combo-lista button { background: none; text-align: left; font-weight: 400; min-height: 36px; padding: 6px 10px; border-radius: 8px; }
.combo-lista button small { color: var(--muted); margin-left: 4px; }
.combo-lista button.activo, .combo-lista button:hover { background: var(--accent-soft); }
.combo-lista button.crear { color: var(--accent); border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; }
.combo-lista button.otro { color: var(--text-2); }
.barra-busqueda { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.barra-busqueda .buscar { flex: 1 1 220px; }
.chip.cli { background: var(--accent-soft); color: var(--accent); }
button.link { background: none; padding: 0; min-height: 0; color: inherit; text-align: left; }
button.link:hover { color: var(--accent); background: none; }
.aviso { display: flex; gap: 10px; padding: 12px 14px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--border)); border-radius: 12px; margin-bottom: 16px; }
.aviso .par { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.usar-lista { display: grid; gap: 6px; }
.usar-lista button { text-align: left; background: var(--accent-soft); }
.usar-lista button small { color: var(--muted); margin-left: 6px; }
dialog.ancho { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
#modal-cuerpo h3 { font-size: 14px; margin: 6px 0 0; color: var(--text-2); }
.kpi-cli { padding: 12px 14px; background: var(--pos-soft); border-radius: 12px; }
.kpi-cli small { display: block; color: var(--text-2); }
.kpi-cli b { font-size: 26px; color: var(--pos); font-variant-numeric: tabular-nums; }
.kpi-cli.gasto { background: var(--neg-soft); }
.kpi-cli.gasto b { color: var(--neg); }
.mini-barras { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 80px; align-items: end; }
.mini-barras div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.mini-barras i { display: block; width: 100%; max-width: 22px; background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 2px; }
.mini-barras.gasto i { background: var(--series-2); }
.mini-barras span { font-size: 10px; color: var(--muted); }
.lista.compacta { gap: 6px; font-size: 14px; }
