:root {
  /* Paleta del logo (design/mockups-v2): negro del isotipo y verde de la barra. */
  --bg: #0a0b0d;
  --bg-2: #111418;
  --card: #161a1f;
  --card-2: #1e232a;
  --line: #2a3038;
  --text: #eef1f5;
  --muted: #9aa3b0;
  --dim: #6e7684;
  --red: #ff6b6b;
  --red-bg: rgba(255, 107, 107, 0.14);
  --brand: #44b042;
  --green: #5cc85a;
  --green-bg: rgba(68, 176, 66, 0.15);
  --amber: #f5b83d;
  --amber-bg: rgba(245, 184, 61, 0.14);
  --blue: #6aa8ff;
  --wa: #25d366;
  --radius: 16px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.red { color: var(--red); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- estructura ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top h1 { font-size: 20px; font-weight: 700; margin: 0; flex: 1; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { background: none; border: 0; color: var(--green); font-size: 17px; padding: 6px 4px; display: flex; align-items: center; gap: 2px; }
.top .accion { background: var(--card-2); border: 0; border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 600; color: var(--text); }

main { padding: 6px 16px 8px; max-width: 640px; margin: 0 auto; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(14, 15, 18, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--line);
}
.tabs button {
  background: none; border: 0; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600;
}
.tabs button svg { width: 25px; height: 25px; }
.tabs button.on { color: var(--text); position: relative; }
.tabs button.on::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.top h1 img.logo { height: 20px; width: auto; display: block; }
.tabs .mas span.circ {
  width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg);
  display: grid; place-items: center; margin-top: -2px;
}
.tabs .mas svg { width: 24px; height: 24px; }

/* ---------- tarjetas ---------- */
.hero {
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 91, 91, 0.20), transparent 55%), var(--card);
  border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; margin: 8px 0 18px;
}
.hero .lbl { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hero .big { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 12px; line-height: 1.1; }
.hero .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero .stat { background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 10px 12px; }
.hero .stat b { display: block; font-size: 17px; }
.hero .stat small { color: var(--muted); font-size: 12px; }

.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 8px; }
.sec h2 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sec h2::before { content: ""; width: 14px; height: 5px; border-radius: 3px; background: var(--brand); flex: none; }
.sec small { color: var(--dim); font-size: 13px; }

.lista { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fila {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; position: relative;
}
.fila:last-child { border-bottom: 0; }
.fila:active { background: var(--card-2); }
.av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--card-2); color: var(--muted);
}
.av.debe { background: var(--red-bg); color: var(--red); }
.av.favor { background: var(--green-bg); color: var(--green); }
.fila .info { flex: 1; min-width: 0; }
.fila .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .monto { font-weight: 700; text-align: right; white-space: nowrap; }
.fila .monto small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.barra { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--red); opacity: 0.55; border-radius: 0 2px 2px 0; }

.alerta { border-left: 3px solid var(--amber); }
.alerta.vencido { border-left-color: var(--red); }
.chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 1px;
}
.chip.vencido { background: var(--red-bg); color: var(--red); }
.chip.hoy { background: var(--amber-bg); color: var(--amber); }
.chip.proximo { background: rgba(96, 165, 250, 0.14); color: var(--blue); }
.wa-mini { background: var(--wa); color: #04210f; border: 0; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.wa-mini svg { width: 20px; height: 20px; }

.vacio { text-align: center; color: var(--muted); padding: 34px 20px; }
.vacio b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ---------- búsqueda ---------- */
.buscar { position: relative; margin: 6px 0 12px; }
.buscar input {
  width: 100%; height: 42px; border-radius: 12px; border: 0; background: var(--card-2);
  padding: 0 14px 0 38px; font-size: 16px; outline: none;
}
.buscar svg { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: var(--dim); }
.filtros { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.filtros button { flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.filtros button.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* ---------- ficha cliente ---------- */
.ficha { text-align: center; padding: 6px 0 4px; }
.ficha .av { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 10px; }
.ficha .nom { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ficha .emp { color: var(--muted); font-size: 15px; }
.saldo-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 16px 0 12px; text-align: center; }
.saldo-card .lbl { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.saldo-card .big { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  height: 50px; border-radius: 14px; border: 0; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.btn svg { width: 20px; height: 20px; }
.btn.deuda { background: var(--red); color: #2a0606; }
.btn.pago { background: var(--green); color: #032116; }
.btn.prim { background: var(--brand); color: #0a0b0d; }
.btn.sec { background: var(--card-2); color: var(--text); }
.btn.wa { background: var(--wa); color: #04210f; }
.btn.peligro { background: var(--red-bg); color: var(--red); }
.btn:disabled { opacity: 0.5; }
.btn:active { transform: scale(0.98); }
.mini-acc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.mini-acc button {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.mini-acc button svg { width: 22px; height: 22px; color: var(--text); }
.mini-acc button.wa svg { color: var(--wa); }

.datos { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.dato { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dato:last-child { border-bottom: 0; }
.dato span { color: var(--muted); font-size: 14px; width: 82px; flex: none; }
.dato div { flex: 1; word-break: break-word; }

/* ---------- extracto ---------- */
.ext { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ext-h, .ext-r {
  display: grid; grid-template-columns: 1fr 22% 22% 24%; gap: 6px; padding: 10px 12px; align-items: start;
}
.ext-h { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; }
.ext-h div:not(:first-child), .ext-r .n { text-align: right; }
.ext-r { border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font-size: 14px; }
.ext-r:last-child { border-bottom: 0; }
.ext-r:active { background: var(--card-2); }
.ext-r .f { font-weight: 600; font-size: 13px; }
.ext-r .c { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 1px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ext-r .v { font-size: 11px; color: var(--amber); margin-top: 2px; }
.ext-r .n { font-size: 13px; padding-top: 1px; overflow-wrap: anywhere; }
.ext-r .n.sal { font-weight: 700; }
.ext-tot { display: grid; grid-template-columns: 1fr 22% 22% 24%; gap: 6px; padding: 10px 12px; font-size: 13px; font-weight: 700; background: var(--bg-2); border-top: 1px solid var(--line); }
.ext-tot div:not(:first-child) { text-align: right; }

/* ---------- hoja inferior (sheet) ---------- */
.velo { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; opacity: 0; transition: opacity 0.2s; }
.velo.on { opacity: 1; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto;
  background: var(--bg-2); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
  padding: 8px 16px calc(var(--safe-b) + 18px);
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-width: 640px; margin: 0 auto;
}
.hoja.on { transform: none; }
.hoja .asa { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.hoja h3 { font-size: 19px; margin: 4px 0 14px; text-align: center; }
.hoja .sub { text-align: center; color: var(--muted); margin: -10px 0 14px; font-size: 14px; }

.campo { margin-bottom: 12px; }
.campo label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 5px 4px; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  padding: 11px 14px; font-size: 17px; outline: none; -webkit-appearance: none; appearance: none;
}
.campo input[type="date"] { display: block; }
.campo textarea { min-height: 76px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--muted); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.monto-in { text-align: center; }
.monto-in input { font-size: 34px; font-weight: 800; text-align: center; border: 0; background: transparent; min-height: 60px; letter-spacing: -0.02em; }
.monto-in .mon { color: var(--muted); font-size: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button { border: 0; background: none; border-radius: 10px; height: 38px; font-weight: 700; color: var(--muted); }
.seg button.on.deuda { background: var(--red); color: #2a0606; }
.seg button.on.pago { background: var(--green); color: #032116; }
.rapidos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.rapidos button { background: var(--card-2); border: 0; border-radius: 999px; padding: 5px 11px; font-size: 13px; color: var(--muted); font-weight: 600; }
.previa { background: var(--card); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; margin: 4px 0 14px; font-size: 15px; }
.pila { display: grid; gap: 10px; }
.err { color: var(--red); font-size: 14px; text-align: center; min-height: 20px; margin: 4px 0; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px; max-width: 420px; margin: 0 auto; }
.login .logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 14px; display: block; }
.login h1 { text-align: center; margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.login p { text-align: center; color: var(--muted); margin: 0 0 26px; }

/* ---------- aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; transition: all 0.25s;
  background: var(--text); color: var(--bg); font-weight: 600; padding: 10px 18px; border-radius: 999px; font-size: 15px;
  pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

.cargando { text-align: center; color: var(--dim); padding: 40px; }

/* ---------- impresión (PDF del extracto) ---------- */
.solo-print { display: none; }
@media print {
  :root { --bg: #fff; --card: #fff; --card-2: #fff; --bg-2: #f3f4f6; --line: #d1d5db; --text: #111; --muted: #444; --dim: #555; --red: #b91c1c; --green: #047857; --amber: #92400e; }
  body { background: #fff; }
  .top, .tabs, .no-print, .toast, .velo, .hoja { display: none !important; }
  main { padding: 0; max-width: none; }
  .solo-print { display: block; margin-bottom: 14px; }
  .solo-print h2 { margin: 0; font-size: 20px; }
  .ext { border-radius: 0; }
  .ext-r, .ext-h { break-inside: avoid; }
}

.vacio.alto { padding-top: 90px; }
.fino { font-weight: 500; }
.ficha .chip { margin-top: 6px; }
.hoja .rapidos[data-venc] { margin: -4px 0 12px; }
.separado { margin-bottom: 12px; }
.nota { color: var(--muted); text-align: center; font-size: 13px; margin-top: 22px; }
.dos:has(> .hidden) { grid-template-columns: 1fr; }

/* proveedores, factura, anulados */
.hero.pagar { background: radial-gradient(120% 140% at 0% 0%, rgba(251, 191, 36, 0.16), transparent 55%), var(--card); margin-top: -6px; }
.hero.pagar .big { font-size: 32px; }
.barra.prov { background: var(--amber); }
.chip.prov { background: var(--amber-bg); color: var(--amber); }
.ficha .chip.prov { margin-top: 6px; }
.ext-r .fac { color: var(--blue); font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.link { background: none; border: 0; padding: 0; color: var(--green); font-size: 13px; font-weight: 600; }
.btn.chico { height: 36px; width: auto; padding: 0 12px; font-size: 14px; border-radius: 10px; flex: none; gap: 5px; }
.btn.chico svg { width: 16px; height: 16px; }
.seg.neutro button.on { background: var(--text); color: var(--bg); }
.tabs button { font-size: 10.5px; }

/* selector de país del WhatsApp */
.paises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.paises button { background: var(--card); border: 1px solid var(--line); border-radius: 10px; height: 40px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; }
.paises button .flag { font-size: 20px; line-height: 1; }
.paises button.on { border-color: var(--text); color: var(--text); background: var(--card-2); }
.tel-previa { font-size: 13px; margin: 6px 4px 0; min-height: 18px; font-weight: 600; }

/* ---------- jornales ---------- */
.blue { color: var(--blue); }
.top .icono { background: var(--card-2); border: 0; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; color: var(--text); flex: none; }
.top .icono svg { width: 20px; height: 20px; }
.hero.jornal { background: radial-gradient(120% 140% at 0% 0%, rgba(96, 165, 250, 0.18), transparent 55%), var(--card); }
.hero.jornal .big { margin-bottom: 0; }
.hero .cap { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.hero.toca { display: block; width: 100%; text-align: left; position: relative; margin-top: -6px; }
.hero.toca:active { transform: scale(0.99); }
.hero.toca .big { font-size: 32px; }
.hero .ir { position: absolute; right: 14px; top: 16px; color: var(--dim); }
.hero .ir svg { width: 20px; height: 20px; }
.seg.tres { grid-template-columns: repeat(3, 1fr); }
.chip.empleado { background: rgba(96, 165, 250, 0.14); color: var(--blue); margin-top: 6px; }
.chip.liq { background: var(--green-bg); color: var(--green); }
.fila.anulada .info, .fila.anulada .monto { opacity: 0.5; text-decoration: line-through; text-decoration-thickness: 1px; }
.fila.anulada .chip { text-decoration: none; }
.mini-acc.c2 { grid-template-columns: 1fr 1fr; }
.saldo-card .semana-info { color: var(--muted); font-size: 13px; margin-top: 6px; }
.saldo-card .semana-info b { color: var(--amber); }
.ext-r .tj { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 1px; }
.ext-r .tj.adelanto { color: var(--amber); }
.ext-r .tj.pago { color: var(--blue); }
.ext-r .tj.jornal { color: var(--green); }
.ayuda { color: var(--muted); font-size: 13px; margin: -4px 4px 12px; text-align: center; }
.ayuda.izq { text-align: left; margin: 6px 4px 0; }
.campo .ayuda { margin: 8px 4px 0; text-align: left; }
.aviso { background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.estado-liq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 15px; text-align: center; font-weight: 600; }
.estado-liq b { font-size: 17px; margin-left: 4px; }
.estado-liq.muted { color: var(--muted); }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.stepper button { border: 1px solid var(--line); background: var(--card-2); border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--text); min-height: 48px; padding: 0; }
.campo .stepper input { text-align: center; padding: 11px 4px; font-weight: 700; }
.campo [data-parte] input { margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--green); }
.resumen-liq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin: 4px 0 12px; }
.resumen-liq .pr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.resumen-liq .pr:last-child { border-bottom: 0; }
.resumen-liq .pr span { color: var(--muted); }
.resumen-liq .pr b { text-align: right; }
.resumen-liq .pr.total span { color: var(--text); font-weight: 700; }
.resumen-liq .pr.total b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.ok-liq { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 4px auto 0; }
.ok-liq svg { width: 28px; height: 28px; }
.hoja h3 .chip { vertical-align: 3px; margin-left: 4px; }
/* .btn.sec heredaba el margen de los títulos .sec y dejaba huecos dentro de las pilas de botones. */
.pila > .btn.sec { margin: 0; }

/* usuarios */
.sesion-de { margin-top: 8px; }
.av.apagado { opacity: 0.4; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 4px 14px; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.nota.izq { text-align: left; margin: -6px 4px 12px; }
.creado-por { text-align: center; color: var(--dim); font-size: 12px; margin: 4px 0 10px; }

/* medio de pago y comprobantes */
.comp { margin: -2px 0 12px; }
.comp > label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 6px 4px; }
.comp-acc { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.comp-acc .btn.chico { cursor: pointer; }
.comp-mini { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text); text-align: left; flex-wrap: wrap; }
.comp-mini img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--card-2); }
.comp-mini span { flex: 1; font-size: 14px; color: var(--muted); }
.comp-pdf { width: 64px; height: 64px; display: grid; place-items: center; background: var(--card-2); border-radius: 8px; font-size: 13px; }
.comp-grande { background: var(--card); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.comp-grande img { display: block; width: 100%; height: auto; }

/* pedidos */
.btn-pedido { margin-top: 10px; }
.pedido-cli { color: var(--muted); font-size: 14px; margin: 6px 2px 12px; }
.filas-ped { display: grid; gap: 10px; margin-bottom: 12px; }
.fila-ped { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.fp-sup { display: flex; align-items: center; gap: 8px; }
.fp-n { width: 22px; color: var(--dim); font-size: 13px; font-weight: 700; text-align: center; flex: none; }
.fp-desc { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 12px; font-size: 17px; outline: none; }
.fp-quitar { width: 36px; height: 36px; border: 0; background: none; color: var(--dim); font-size: 16px; flex: none; }
.fp-calc { display: grid; grid-template-columns: 70px 14px 1fr auto; gap: 8px; align-items: center; margin: 8px 0 0 30px; }
.fp-calc input { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; font-size: 17px; outline: none; width: 100%; min-width: 0; }
.fp-cant { text-align: center; }
.fp-sub { min-width: 92px; text-align: right; font-size: 16px; }
.fp-desc:focus, .fp-calc input:focus { border-color: var(--muted); }
.pedido-espacio { height: 90px; }
.pedido-pie {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 15;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(14, 15, 18, 0.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pedido-pie > div { flex: 1; }
.pedido-pie small { display: block; color: var(--muted); font-size: 12px; }
.pedido-pie b { font-size: 22px; }
.pedido-pie .btn { width: auto; padding: 0 18px; }
.lista-elegir { max-height: 34dvh; overflow-y: auto; margin-bottom: 12px; border-radius: var(--radius); }
.fila.elegido { background: var(--green-bg); outline: 2px solid var(--green); outline-offset: -2px; }
.rapidos-arriba { margin: -4px 0 12px; }
.ped-tabla { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.ped-fila { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: start; }
.ped-fila:last-child { border-bottom: 0; }
.ped-desc { min-width: 0; overflow-wrap: anywhere; }
.ped-desc small { display: block; font-size: 12px; }
.ped-total { background: var(--bg-2); font-weight: 700; }
.ped-total b { font-size: 18px; }

/* dos monedas */
.seg.monedas { margin-bottom: 14px; }
.seg.monedas .flag, .monedas-ficha .flag { font-size: 18px; margin-right: 6px; vertical-align: -2px; }
.monedas-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 -4px; }
.monedas-ficha button { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; color: var(--muted); font-weight: 600; font-size: 14px; }
.monedas-ficha button b { width: 100%; text-align: left; font-size: 15px; }
.monedas-ficha button.on { border-color: var(--text); background: var(--card-2); color: var(--text); }
.hero .big2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: -8px 0 12px; }
.mon-fila { font-style: normal; font-size: 13px; margin-right: 4px; }

/* crédito al pie (queda arriba de la barra de pestañas) */
.credito { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 16px calc(var(--tab-h) + var(--safe-b) + 18px); color: var(--dim); font-size: 12px; }
.credito p { margin: 0; }
.credito a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border-radius: 12px; color: var(--dim); }
.credito-iso { width: 16px; height: 16px; flex: none; color: #e2e8f0; }
.credito b { font-weight: 700; letter-spacing: -0.01em; }
.credito-america { color: #e2e8f0; }
.credito-pro { color: #14b8a6; }
.login .credito { padding: 28px 0 8px; }
.pedido-espacio + .pedido-pie ~ .credito, main:has(.pedido-pie) + .credito { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 96px); }

/* cotizaciones */
.cot-tabla { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cot-h, .cot-f { display: grid; grid-template-columns: 1fr 92px 92px; gap: 8px; padding: 11px 14px; align-items: center; }
.cot-h { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cot-h span:not(:first-child), .cot-f b { text-align: right; }
.cot-f { border-bottom: 1px solid var(--line); }
.cot-f:last-child { border-bottom: 0; }
.cot-f small { display: block; font-size: 11px; }
.cot-f b { font-size: 16px; }
.fuente { color: var(--dim); font-size: 12px; margin: 8px 4px 0; }
.tabs button { font-size: 10px; }
.tabs button svg { width: 23px; height: 23px; }

/* ---------- depósito ---------- */
.tabs.t5 { grid-template-columns: repeat(5, 1fr); }
.tabs.t7 { grid-template-columns: repeat(7, 1fr); }
.tabs.t7 button { font-size: 10px; letter-spacing: -0.01em; }
.tabs.t7 button svg { width: 23px; height: 23px; }
.tabs.t7 .mas span.circ { width: 42px; height: 42px; }
.hero.dep { background: radial-gradient(120% 140% at 0% 0%, rgba(68, 176, 66, 0.16), transparent 55%), var(--card); }
.hero.dep .big { margin-bottom: 10px; }
.hero .stats button.stat { border: 0; color: inherit; text-align: left; font: inherit; }
.dep-aviso {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; color: var(--text);
}
.dep-aviso svg { width: 24px; height: 24px; flex: none; color: var(--muted); }
.dep-aviso span { font-size: 13px; color: var(--muted); }
.dep-aviso b { display: block; font-size: 15px; color: var(--text); }
.dep-aviso.amber { background: var(--amber-bg); border-color: rgba(251, 191, 36, 0.35); }
.dep-aviso.amber svg, .dep-aviso.amber b { color: var(--amber); }
.fila.apagada .info, .fila.apagada .av { opacity: 0.55; }
.fila .s b { color: var(--text); font-weight: 600; }
.rec-fila { display: grid; grid-template-columns: 1fr auto 96px; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rec-fila:last-child { border-bottom: 0; }
.rec-fila > :nth-child(n + 2) { text-align: right; }
.rec-h { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-2); }
.rec-fila input { height: 42px; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; font-size: 17px; text-align: right; outline: none; }
.rec-fila.dif { background: var(--red-bg); }
.rec-fila.dif input, .rec-fila.dif b { color: var(--red); border-color: rgba(255, 91, 91, 0.5); }
.precios-lista { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.precio-fila { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.precio-fila:last-child { border-bottom: 0; }
.precio-fila span { min-width: 0; overflow-wrap: anywhere; }
.precio-fila small { display: block; color: var(--muted); font-size: 12px; }
.precio-fila input { height: 42px; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; font-size: 17px; text-align: right; outline: none; }
.precio-fila.sin input { border-color: rgba(251, 191, 36, 0.5); }
.dep-calc { grid-template-columns: 0.9fr 1fr 1.25fr; }
.dep-calc .fp-precio { text-align: right; }
.dep-calc select { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; font-size: 17px; color: var(--text); width: 100%; min-width: 0; outline: none; }
.dep-calc select:disabled { color: var(--muted); opacity: 0.7; }
.fp-info { margin: 6px 0 0 30px; font-size: 12px; color: var(--muted); }
.fila-ped select.fp-desc { appearance: none; -webkit-appearance: none; color: var(--text); }
.venta-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; font-weight: 700; }
.venta-total b { font-size: 26px; color: var(--green); }
.saldo-card .cap { font-size: 13px; margin-top: 4px; }
.dep-acc { margin: 12px 0 4px; }
.ext-r .por { font-size: 11px; color: var(--dim); margin-top: 2px; }
.dep-aviso.rojo { background: var(--red-bg); border-color: rgba(255, 91, 91, 0.35); }
.dep-aviso.rojo svg, .dep-aviso.rojo b { color: var(--red); }
.hero.dep.juniors { background: radial-gradient(120% 140% at 0% 0%, rgba(96, 165, 250, 0.18), transparent 55%), var(--card); }
.fila .monto small .chip { text-transform: none; letter-spacing: 0; margin-top: 3px; display: inline-block; }
.ver-anulados { display: block; margin: 14px auto 0; font-size: 14px; color: var(--muted); }
.combo { position: relative; flex: 1; min-width: 0; }
.combo .fp-desc { width: 100%; }
.combo-lista { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.combo-lista button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; color: var(--text); font-size: 16px; }
.combo-lista button:last-child { border-bottom: 0; }
.combo-lista button small { display: block; color: var(--muted); font-size: 12px; }
.combo-lista button.nuevo { display: flex; gap: 8px; align-items: center; color: var(--amber); }
.combo-lista button.nuevo svg { width: 18px; height: 18px; flex: none; }

/* Sin señal: aviso arriba de cada pantalla y lista de cargas en cola */
.sin-senal {
  display: flex; gap: 10px; align-items: center; width: calc(100% - 32px); max-width: 608px; margin: 6px auto 0;
  background: var(--amber-bg); border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 14px; padding: 10px 14px;
  color: var(--text); font: inherit; font-size: 14px; text-align: left;
}
.sin-senal div { flex: 1; min-width: 0; }
.sin-senal b { color: var(--amber); font-weight: 700; }
.sin-senal .ver { color: var(--blue); font-weight: 600; font-size: 13px; }
.sin-senal.rojo { background: var(--red-bg); border-color: rgba(255, 91, 91, 0.35); }
.sin-senal.rojo b { color: var(--red); }
.fila.pend .cuerpo { flex: 1; min-width: 0; }
.fila.pend .cuerpo b { display: block; font-weight: 600; }
.fila.pend .cuerpo small { color: var(--muted); font-size: 13px; }
.fila.pend .rojo { color: var(--red); }
.fila.pend .link.peligro { color: var(--red); flex: none; }
.hoja [data-enviar] { margin-top: 14px; }

/* Catálogo (v2): grilla con foto, ficha con foto grande */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tarjeta {
  display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 10px; color: var(--text);
}
.tarjeta:active { background: var(--card-2); }
.tarjeta .foto { aspect-ratio: 1; width: 100%; border-radius: 12px; margin-bottom: 4px; }
.tarjeta .t { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta .s { color: var(--muted); font-size: 12px; }
.tarjeta .chip { align-self: flex-start; }
.tarjeta.apagada .foto, .tarjeta.apagada .t { opacity: 0.55; }
.foto { display: grid; place-items: center; overflow: hidden; background: var(--card-2); color: var(--muted); font-weight: 700; font-size: 22px; flex: none; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto.chica { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.foto-prev .foto { width: 96px; height: 96px; border-radius: 14px; font-size: 13px; margin: 0 0 8px; }
.foto-grande { aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; margin: 12px 0 8px; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.foto-grande img { width: 100%; height: 100%; object-fit: contain; display: block; }
.foto-grande .sin { font-size: 56px; font-weight: 800; color: var(--dim); }
.pila.foto-acc { display: flex; justify-content: center; gap: 8px; }
.pila.foto-acc .btn.chico, .hoja label.btn.chico { cursor: pointer; }
.hero .stat.on { outline: 2px solid var(--amber); outline-offset: -2px; }
.filtros.rubros { margin-top: -4px; }
.fila .renombrar { display: flex; gap: 8px; width: 100%; }
.fila .renombrar input { flex: 1; min-width: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); }
.fila .link + .link { margin-left: 10px; }

/* Ingresos (boleta + control) y transferencias */
.mt8 { margin-top: 8px; }
.boleta-fotos { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.boleta-fotos .foto { width: 72px; height: 96px; border-radius: 10px; position: relative; border: 1px solid var(--line); padding: 0; }
.boleta-fotos .foto button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; }
.boleta-fotos.grande { margin: 0 0 12px; overflow-x: auto; flex-wrap: nowrap; }
.boleta-fotos.grande .foto { width: 120px; height: 160px; }
.fp-sup .foto.chica { width: 32px; height: 32px; font-size: 12px; }
.fp-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-calc.ing-calc { grid-template-columns: 76px 1fr 1fr; }
.fp-calc.ing-lote { grid-template-columns: 1fr 1fr; }
.fp-calc.tr-calc { grid-template-columns: 90px 1fr; }
.fp-calc select { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 8px; font-size: 15px; color: var(--text); min-width: 0; width: 100%; }
.lista.ctl .ctl-fila { align-items: flex-start; }
.ctl-fila .s { white-space: normal; }
.ctl-acc { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.ctl-acc > * { margin: 0; }
.ctl-acc input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; font-size: 15px; color: var(--text); }
.ctl-acc .btn.chico { flex: none; }
.ctl-fila.ok { background: var(--green-bg); }
.ctl-fila.dif { background: var(--red-bg); }
.rec-fila .ped-desc small { display: block; font-size: 12px; }

/* Pedidos con stock: armar (grilla), barra de total, pasos del circuito */
.tabs.t3 { grid-template-columns: repeat(3, 1fr); }
.tabs.t4 { grid-template-columns: repeat(4, 1fr); }
.blue { color: var(--blue); }
.ped-cliente { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; color: var(--text); }
.ped-cliente .info { flex: 1; min-width: 0; }
.ped-cliente .t { font-weight: 700; }
.ped-cliente .s { color: var(--muted); font-size: 13px; }
.ped-opc { align-items: center; }
.ped-opc .campo { margin-bottom: 8px; }
.tarjeta.pedir { cursor: default; }
.tarjeta.pedir select { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 13px; padding: 0 6px; }
.tarjeta.pedir .btn.chico { width: 100%; margin-top: 4px; }
.tarjeta.elegida { border-color: var(--green); }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; gap: 4px; margin-top: 4px; background: var(--green-bg); border-radius: 10px; padding: 2px; }
.stepper button { height: 36px; border: 0; background: none; color: var(--green); font-size: 22px; font-weight: 700; }
.stepper button:disabled { opacity: 0.35; }
.stepper input { min-width: 0; height: 36px; border: 0; background: none; color: var(--text); text-align: center; font-size: 17px; font-weight: 700; }
.ped-barra {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 19;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--brand); color: #0a0b0d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ped-barra .n { width: 32px; height: 32px; border-radius: 50%; background: #0a0b0d; color: var(--green); display: grid; place-items: center; font-weight: 800; flex: none; }
.ped-barra .info { flex: 1; min-width: 0; }
.ped-barra .info b { display: block; font-size: 18px; }
.ped-barra .info small { font-size: 12px; font-weight: 600; opacity: 0.8; }
.ped-barra .btn.chico { background: #0a0b0d; color: var(--green); }
#main:has(.ped-barra:not(.hidden)) { padding-bottom: 96px; }
.rev-fila input { margin-top: 6px; height: 36px; width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 8px; color: var(--text); font-size: 15px; text-align: right; }
.ped-fila.dif { background: var(--red-bg); }
.pasos { list-style: none; margin: 0 0 12px; padding: 0 0 0 4px; }
.pasos li { position: relative; padding: 0 0 10px 22px; color: var(--dim); }
.pasos li::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); }
.pasos li::after { content: ''; position: absolute; left: 6px; top: 19px; bottom: 0; width: 2px; background: var(--line); }
.pasos li:last-child::after { display: none; }
.pasos li.ok { color: var(--text); }
.pasos li.ok::before { background: var(--green); border-color: var(--green); }
.pasos li b { font-size: 14px; }
.pasos li small { display: block; font-size: 12px; color: var(--muted); }
.ped-acc a.btn { text-decoration: none; color: var(--text); }

/* Cajas */
.hero.caja { background: radial-gradient(120% 140% at 0% 0%, rgba(68, 176, 66, 0.16), transparent 55%), var(--card); }
.hero.saldos { background: radial-gradient(120% 140% at 0% 0%, rgba(96, 165, 250, 0.16), transparent 55%), var(--card); }
.hero .fila-btns { display: flex; gap: 8px; margin-top: 4px; }
.retiros { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.retiros b { color: var(--amber); }
.chips-cat { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-cat button { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 14px; color: var(--text); }
.chips-cat button.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.fila.caja-mov .t { white-space: normal; }

/* Tablero del inicio */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.kpi { display: flex; flex-direction: column; gap: 3px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--text); min-width: 0; }
.kpi small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi b { font-size: 19px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi span { font-size: 12px; }
.kpi.rojo { border-color: rgba(255, 91, 91, 0.55); }
.kpi.ambar { border-color: rgba(251, 191, 36, 0.55); }
.tarjeta-graf { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.grafico { width: 100%; height: auto; display: block; }
.g-eje { stroke: var(--line); stroke-width: 1; }
.g-txt { fill: var(--dim); font-size: 9px; }
.g-venta { fill: var(--green); opacity: 0.85; }
.g-cobro { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.g-ley { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.g-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.c-venta { background: var(--brand); }
.c-cobro { background: var(--blue); height: 3px !important; border-radius: 2px !important; vertical-align: 3px !important; }
.g-tot { margin-top: 8px; }
.g-tot > div { background: var(--card-2); border-radius: 10px; padding: 8px 10px; }
.g-tot small { display: block; color: var(--muted); font-size: 12px; }
.t-alerta .t-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--amber-bg); font-size: 16px; }
.t-alerta .t-ico.red { background: var(--red-bg); }
.t-alerta .t-ico.blue { background: rgba(96, 165, 250, 0.14); }
.t-alerta .t-ico svg { width: 18px; height: 18px; }
.t-alerta .s { white-space: normal; }
.t-n { min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--amber-bg); flex: none; }
.t-n.red { background: var(--red-bg); }
.t-n.blue { background: rgba(96, 165, 250, 0.14); }
.t-ir { color: var(--dim); flex: none; }
.t-ir svg { width: 16px; height: 16px; }
.dep-barra + .dep-barra { margin-top: 12px; }
.dep-barra .dos { display: flex; justify-content: space-between; gap: 8px; }
.barra-bg { height: 8px; border-radius: 4px; background: var(--card-2); margin: 6px 0 4px; overflow: hidden; }
.barra-bg span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.barra-bg span.azul { background: var(--blue); }
.barra-bg.fina { height: 5px; margin: 6px 0 0; }
.ley-tramos { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin: -2px 2px 8px; }
.ley-tramos .tramo { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.tramos { display: flex; gap: 2px; height: 6px; margin-top: 6px; border-radius: 3px; overflow: hidden; }
.tramo.d7 { background: #fde68a; }
.tramo.d30 { background: var(--amber); }
.tramo.mas { background: var(--red); }
.fila.deudor { align-items: flex-start; }
.lista.venc.corta > :nth-child(n + 7) { display: none; }
.ver-mas { display: block; margin: 8px auto 0; }
