/* Vestuario · panel interno · diseño 2026 (limpio y luminoso, con modo oscuro).
   Neutros fríos + acentos de marca: Carmesí #CE0D0D (marca, alertas), Denim #131E29 (acción principal), Celeste #6991AF (info).
   Todo color sale de los tokens de :root; el modo oscuro solo los redefine. */
@font-face { font-family: "Bethany Elingston"; src: url("../fuentes/BethanyElingston.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Circular Std"; src: url("../fuentes/CircularStd-Medium.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --fondo: #f7f7f5; --superficie: #ffffff; --superficie-2: #f3f3f1; --superficie-3: #ebebe8; --hover: #f5f5f3;
  --borde: #e7e6e2; --borde-fuerte: #d6d5d0;
  --texto: #131e29; --texto-2: #3c4752; --texto-3: #6b7480; --texto-4: #9aa1a9;
  --primario: #131e29; --primario-hover: #26323e; --sobre-primario: #ffffff;
  --marca: #ce0d0d; --marca-suave: #fdecec; --marca-texto: #b30b0b;
  --info: #3f6a8c; --info-suave: #eaf1f7;
  --ok: #1f8a55; --ok-suave: #e7f6ee; --ok-texto: #17663f;
  --aviso: #a86b00; --aviso-suave: #fdf3dc; --aviso-texto: #7a4f00;
  --violeta: #6b4fbb; --violeta-suave: #f0ecfb;
  --naranja: #e8730c; --naranja-suave: #fff1e5;
  --serie-cambio: #2f6fa3; --serie-devolucion: #c9781f; --serie-tasa: #131e29;   /* validadas con el validador de paletas sobre blanco */
  --sombra-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --sombra-2: 0 12px 32px -8px rgba(16, 24, 40, .16), 0 4px 10px -4px rgba(16, 24, 40, .08);
  --anillo: 0 0 0 3px rgba(105, 145, 175, .35);
  --serif: "Bethany Elingston", Georgia, serif;
  --sans: "Circular Std", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 8px; --r: 12px; --r-l: 16px; --lateral: 236px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0f1114; --superficie: #17191e; --superficie-2: #1d2026; --superficie-3: #252931; --hover: #1f2228;
    --borde: #262a31; --borde-fuerte: #343943;
    --texto: #eef0f3; --texto-2: #c7ccd3; --texto-3: #9198a3; --texto-4: #6b727d;
    --primario: #eef0f3; --primario-hover: #ffffff; --sobre-primario: #0f1114;
    --marca: #ef4b42; --marca-suave: #3a1a1a; --marca-texto: #ff8a83;
    --info: #8db4d6; --info-suave: #1a2a38;
    --ok: #3fbf7f; --ok-suave: #14301f; --ok-texto: #7fdcaa;
    --aviso: #e0a33a; --aviso-suave: #33270f; --aviso-texto: #f0c271;
    --violeta: #a891ee; --violeta-suave: #261f3d; --naranja: #ff9a4a; --naranja-suave: #3a2410;
    --serie-cambio: #4f8fd6; --serie-devolucion: #cf7c2c; --serie-tasa: #eef0f3;   /* validadas sobre #17191e */
    --sombra-1: 0 1px 2px rgba(0, 0, 0, .3); --sombra-2: 0 16px 40px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0f1114; --superficie: #17191e; --superficie-2: #1d2026; --superficie-3: #252931; --hover: #1f2228;
  --borde: #262a31; --borde-fuerte: #343943;
  --texto: #eef0f3; --texto-2: #c7ccd3; --texto-3: #9198a3; --texto-4: #6b727d;
  --primario: #eef0f3; --primario-hover: #ffffff; --sobre-primario: #0f1114;
  --marca: #ef4b42; --marca-suave: #3a1a1a; --marca-texto: #ff8a83;
  --info: #8db4d6; --info-suave: #1a2a38;
  --ok: #3fbf7f; --ok-suave: #14301f; --ok-texto: #7fdcaa;
  --aviso: #e0a33a; --aviso-suave: #33270f; --aviso-texto: #f0c271;
  --violeta: #a891ee; --violeta-suave: #261f3d; --naranja: #ff9a4a; --naranja-suave: #3a2410;
  --serie-cambio: #4f8fd6; --serie-devolucion: #cf7c2c; --serie-tasa: #eef0f3;
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .3); --sombra-2: 0 16px 40px -8px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--anillo); border-radius: 6px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 24px; line-height: 1.2; }
h2 { font-size: 15px; line-height: 1.3; }
h3 { font-size: 12px; color: var(--texto-3); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--info-suave); }

/* ── Barra lateral ─────────────────────────────────────────── */
.lateral { position: fixed; inset: 0 auto 0 0; width: var(--lateral); background: var(--superficie); border-right: 1px solid var(--borde); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; z-index: 6; }
.lateral .marca { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; text-decoration: none; }
.lateral .marca img { width: 28px; height: 28px; display: block; border-radius: 7px; }
.lateral .marca b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1; letter-spacing: 0; }
.lateral .marca b span { color: var(--marca); }
.lateral .marca small { display: block; font-size: 10.5px; color: var(--texto-3); letter-spacing: 1.6px; margin-top: 3px; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; }
.lateral nav a { height: 36px; border-radius: var(--r-s); display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--texto-2); text-decoration: none; font-size: 13.5px; transition: background .12s, color .12s; }
.lateral nav a svg { width: 18px; height: 18px; flex: none; color: var(--texto-3); }
.lateral nav a:hover { background: var(--hover); color: var(--texto); }
.lateral nav a.actual { background: var(--superficie-2); color: var(--texto); font-weight: 700; }
.lateral nav a.actual svg { color: var(--texto); }
.lateral nav a .cuenta { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--marca); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.lateral .pie-lateral { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--borde); padding-top: 12px; }
.tema { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--superficie-2); border-radius: var(--r-s); padding: 3px; gap: 2px; }
.tema button { border: 0; background: none; height: 26px; border-radius: 6px; font-size: 12px; color: var(--texto-3); }
.tema button.actual { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1); font-weight: 700; }
.usuario { display: flex; align-items: center; gap: 10px; padding: 4px 6px; font-size: 13px; }
.usuario b, .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #ce0d0d, #6991af); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; flex: none; }
.usuario span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario button { border: 0; background: none; color: var(--texto-3); font-size: 12.5px; padding: 4px; }
.usuario button:hover { color: var(--texto); }
.principal { min-height: 100vh; }
body.con-lateral .principal { margin-left: var(--lateral); }

/* ── Barra de arriba ───────────────────────────────────────── */
.barra { display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 28px; background: color-mix(in srgb, var(--fondo) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 5; }
.barra .logo, .barra .seccion-nombre { display: none; }
body:not(.con-lateral) .barra { display: none; }
.migas { font-size: 13px; color: var(--texto-3); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.migas b { color: var(--texto); font-weight: 700; }
.buscador { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--borde); border-radius: 10px; background: var(--superficie); width: 380px; max-width: 42vw; margin-left: auto; box-shadow: var(--sombra-1); transition: border-color .12s, box-shadow .12s; }
.buscador:focus-within { border-color: var(--borde-fuerte); box-shadow: var(--anillo); }
.buscador svg { width: 16px; height: 16px; color: var(--texto-4); flex: none; }
.buscador input { border: 0; background: transparent; flex: 1; min-width: 0; font-size: 13px; outline: none; }
.buscador input::placeholder { color: var(--texto-4); }
.buscador kbd { font-family: var(--sans); font-size: 11px; color: var(--texto-3); border: 1px solid var(--borde); border-radius: 5px; padding: 1px 6px; background: var(--superficie-2); }
.barra-der { display: none; }
.enlace { background: none; border: 0; padding: 0; text-decoration: underline; color: inherit; }

main { max-width: none; margin: 0; padding: 28px 40px 72px; animation: entra .22s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cab-pagina { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cab-pagina h1 { display: flex; align-items: center; gap: 10px; }
.cab-pagina h1 svg { width: 22px !important; height: 22px !important; color: var(--texto-3); }
.cab-pagina .sub { font-size: 13.5px; color: var(--texto-3); margin-top: 4px; font-weight: 400; letter-spacing: 0; }

/* ── Botones ───────────────────────────────────────────────── */
.boton { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: var(--primario); color: var(--sobre-primario); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background .12s, transform .06s, box-shadow .12s; box-shadow: var(--sombra-1); }
.boton:hover { background: var(--primario-hover); }
.boton:active { transform: scale(.98); }
.boton:disabled { opacity: .45; cursor: default; transform: none; }
.boton.oscuro { background: var(--primario); }
.boton.blanco { background: var(--superficie); color: var(--texto); border-color: var(--borde); }
.boton.blanco:hover { background: var(--hover); border-color: var(--borde-fuerte); }
.boton.ok { background: var(--ok); color: #fff; } .boton.ok:hover { filter: brightness(1.06); }
.boton.marca { background: var(--marca); color: #fff; }
.boton.peq { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.boton.ancho { width: 100%; height: 42px; font-size: 14px; }
.boton svg { width: 16px; height: 16px; }
.accion-texto { background: none; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--texto-2); height: 34px; padding: 0 10px; border-radius: 9px; transition: background .12s, color .12s; }
.accion-texto:hover { background: var(--hover); color: var(--texto); }
.accion-texto svg { width: 16px; height: 16px; }
.accion-texto.verde svg { color: var(--ok); } .accion-texto.rojo svg { color: var(--marca); }
.accion-texto:disabled { opacity: .4; cursor: default; background: none; }
.accion-texto.borde { border-color: var(--borde); background: var(--superficie); box-shadow: var(--sombra-1); }

/* ── Campos ────────────────────────────────────────────────── */
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--texto-2); font-weight: 600; }
.campo input, .campo select, .campo textarea, select.selector, .entrada { width: 100%; min-height: 38px; border: 1px solid var(--borde); border-radius: 10px; background: var(--superficie); padding: 8px 12px; font-size: 14px; color: var(--texto); font-weight: 400; transition: border-color .12s, box-shadow .12s; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .entrada:focus { outline: none; border-color: var(--borde-fuerte); box-shadow: var(--anillo); }
.campo input:disabled, .campo select:disabled { background: var(--superficie-2); color: var(--texto-3); }
.campo textarea { min-height: 70px; resize: vertical; }
.campo small { color: var(--texto-3); font-weight: 400; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.check input { width: 16px; height: 16px; accent-color: var(--ok); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Entrar ────────────────────────────────────────────────── */
body:not(.con-lateral) main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 80% -10%, rgba(105, 145, 175, .18), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(206, 13, 13, .10), transparent 60%); max-width: none; }
.entrar { width: 100%; max-width: 380px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sombra-2); }
.entrar .logo-entrar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.entrar .logo-entrar img { width: 34px; height: 34px; border-radius: 8px; }
.entrar .logo-entrar b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.entrar .logo-entrar b span { color: var(--marca); }
.entrar h1 { font-size: 22px; }
.entrar p { color: var(--texto-3); }
.error { background: var(--marca-suave); color: var(--marca-texto); padding: 10px 12px; border-radius: 10px; font-size: 13px; }

/* ── Tarjetas ──────────────────────────────────────────────── */
.caja { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-l); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra-1); }
.caja > .cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.caja > .cab h2 { font-size: 15px; }
.caja .explica { color: var(--texto-3); font-size: 12.5px; margin-top: -8px; }
.marco { display: flex; flex-direction: column; gap: 16px; }

/* ── Cifras (KPIs) ─────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpis.dobles { grid-template-columns: 1fr 1fr; gap: 12px; }
.grupo-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra-1); }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; border-left: 1px solid var(--borde); min-width: 0; transition: background .12s; }
.grupo-kpi .kpi:first-child { border-left: 0; }
a.kpi:hover { background: var(--hover); }
.kpi .nombre { font-size: 12px; color: var(--texto-3); display: flex; align-items: center; gap: 6px; line-height: 1.25; font-weight: 600; }
.kpi .nombre svg { width: 14px; height: 14px; flex: none; color: var(--texto-4); }
.kpi .valor { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1; display: flex; align-items: center; gap: 6px; }
.kpi .valor.alerta { color: var(--aviso); }
.kpi .valor.dinero { color: var(--texto); }
.kpi .valor svg { width: 15px; height: 15px; }

/* ── Filtros de periodo ────────────────────────────────────── */
.filtros { display: flex; align-items: center; gap: 2px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 11px; padding: 3px; flex-wrap: wrap; box-shadow: var(--sombra-1); }
.filtros > b { display: none; }
.pildora { height: 30px; border-radius: 8px; border: 0; background: none; padding: 0 11px; font-size: 12.5px; font-weight: 600; color: var(--texto-3); transition: background .12s, color .12s; }
.pildora:hover { color: var(--texto); background: var(--hover); }
.pildora.actual { background: var(--superficie-3); color: var(--texto); }
.filtros #fechas { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; color: var(--texto-3); }
.filtros input[type=date] { height: 30px; border: 1px solid var(--borde); border-radius: 8px; padding: 0 8px; font-size: 12.5px; background: var(--superficie); }

/* ── Dashboard ─────────────────────────────────────────────── */
.rejilla-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rejilla-dash .ancha { grid-column: 1 / -1; }
.cifras { display: flex; gap: 36px; flex-wrap: wrap; }
.cifra .nombre { font-size: 12px; color: var(--texto-3); font-weight: 600; }
.cifra .valor { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.cifra .valor .texto-gris { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.leyenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--texto-2); align-items: center; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.grafico { width: 100%; height: auto; display: block; }
.grafico .rejilla-g { stroke: var(--borde); stroke-width: 1; }
.grafico text { fill: var(--texto-3); stroke: none; font-size: 11.5px; font-family: var(--sans); }
.grafico rect.zona { fill: transparent; stroke: none; }
.grafico g.dia:hover rect.zona { fill: var(--hover); }
.reparto { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--superficie); }
.reparto span { display: block; height: 100%; border-radius: 3px; }
.reparto-num { display: flex; justify-content: space-between; gap: 12px; }
.reparto-num .cifra .valor { font-size: 24px; }
.nota-dash { font-size: 12px; color: var(--texto-3); }
.tooltip { position: fixed; z-index: 40; background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); border-radius: 10px; padding: 8px 10px; font-size: 12px; pointer-events: none; box-shadow: var(--sombra-2); line-height: 1.55; }
.tooltip b { font-weight: 700; }

/* ── Tablas ────────────────────────────────────────────────── */
.tabla-d { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla-d th { text-align: right; font-size: 11.5px; color: var(--texto-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--borde); }
.tabla-d th.izq, .tabla-d td.izq { text-align: left; }
.tabla-d td { text-align: right; padding: 10px; border-bottom: 1px solid var(--borde); }
.tabla-d td.izq { font-variant-numeric: normal; }
.tabla-d tr:hover td { background: var(--hover); }
.tabla-d td.pos { color: var(--texto-4); width: 28px; text-align: left; }
.tabla-d td small { display: block; color: var(--texto-3); font-size: 11.5px; }
.tabla-d td a { color: var(--info); text-decoration: none; }
.tabla-d td a:hover { text-decoration: underline; }
.tabla-d tr:last-child td { border-bottom: 0; }
.desplaza { max-height: 420px; overflow: auto; }
.vacio-d { color: var(--texto-3); font-size: 13px; padding: 28px 0; text-align: center; }

/* ── Transacciones ─────────────────────────────────────────── */
.pestanas { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--borde); margin: 22px 0 0; overflow-x: auto; scrollbar-width: none; }
.pestanas button { border: 0; background: none; height: 40px; padding: 0 12px; font-size: 13.5px; font-weight: 600; color: var(--texto-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .12s; }
.pestanas button:hover { color: var(--texto); }
.pestanas button.actual { color: var(--texto); border-color: var(--texto); }
.pestanas .n { min-width: 20px; height: 18px; border-radius: 9px; background: var(--superficie-3); color: var(--texto-2); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; font-weight: 700; }
.pestanas .n.rojo { background: var(--marca); color: #fff; }
.herramientas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.herramientas .buscar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--superficie); border: 1px solid var(--borde); width: 340px; max-width: 100%; box-shadow: var(--sombra-1); }
.herramientas .buscar:focus-within { box-shadow: var(--anillo); border-color: var(--borde-fuerte); }
.herramientas .buscar svg { width: 16px; height: 16px; color: var(--texto-4); }
.herramientas .buscar input { border: 0; background: transparent; flex: 1; outline: none; font-size: 13px; min-width: 0; }
.herramientas .total { margin-left: auto; color: var(--texto-3); font-size: 12.5px; }
.tabla-tx { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra-1); }
.fila-tx { display: grid; grid-template-columns: 110px minmax(0, 1.25fr) minmax(0, 1.6fr) 170px 120px 92px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--borde); text-decoration: none; color: inherit; transition: background .1s; min-height: 64px; }
.fila-tx:first-child { border-top: 0; }
a.fila-tx:hover { background: var(--hover); }
.fila-tx.cab { min-height: 0; padding: 9px 18px; font-size: 11.5px; font-weight: 600; color: var(--texto-3); background: var(--superficie-2); }
.fila-tx .ped { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.fila-tx .ped small, .fila-tx .cli small, .fila-tx .fec small { display: block; font-weight: 400; color: var(--texto-3); font-size: 12px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-tx .cli { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-tx .prs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fila-tx .miniaturas { display: flex; flex: none; }
.fila-tx .miniaturas img, .fila-tx .miniaturas i { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--borde); margin-left: -8px; display: block; }
.fila-tx .miniaturas :first-child { margin-left: 0; }
.fila-tx .prs-tx { min-width: 0; font-size: 13px; }
.fila-tx .prs-tx > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-tx .prs-tx .chips { margin-top: 3px; }
.fila-tx .est { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fila-tx .dias { font-size: 11.5px; color: var(--texto-3); display: inline-flex; align-items: center; gap: 4px; }
.fila-tx .dias svg { width: 12px; height: 12px; }
.fila-tx .dias.pronto { color: var(--aviso); font-weight: 700; }
.fila-tx .imp { text-align: right; font-weight: 700; }
.fila-tx .imp small { display: block; font-weight: 400; font-size: 11.5px; color: var(--texto-3); }
.fila-tx .fec { text-align: right; font-size: 13px; }
.importe-ok { color: var(--ok-texto); } .importe-pend { color: var(--aviso-texto); }

/* Menús */
.menu { position: absolute; z-index: 30; background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra-2); padding: 6px; min-width: 240px; display: flex; flex-direction: column; animation: menu .12s ease-out; }
@keyframes menu { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu .titulo-menu { font-size: 11px; font-weight: 600; color: var(--texto-4); padding: 8px 10px 4px; }
.menu button, .menu a { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.menu button svg, .menu a svg { width: 16px; height: 16px; color: var(--texto-3); }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu button:disabled { opacity: .4; cursor: default; background: none; }
.menu button.actual { font-weight: 700; }
.menu button.actual::after { content: "✓"; margin-left: auto; color: var(--texto-3); }
.menu hr { border: 0; border-top: 1px solid var(--borde); margin: 5px 0; }

/* ── Chips y estados ───────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--info-suave); color: var(--info); }
.chip svg { width: 11px; height: 11px; }
.chip.devolucion { background: var(--superficie-3); color: var(--texto-2); }
.chip.anticipado { background: var(--naranja-suave); color: var(--naranja); }
.chip.no-ant { background: transparent; color: var(--texto-3); padding: 0 2px; }
.chip.gris { background: var(--superficie-3); color: var(--texto-2); }
.chip.alerta { background: var(--marca-suave); color: var(--marca-texto); }
.chip.ambar { background: var(--aviso-suave); color: var(--aviso-texto); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.estado { display: inline-flex; align-items: center; gap: 6px; height: 24px; border-radius: 999px; padding: 0 10px 0 8px; font-weight: 600; font-size: 12px; background: var(--superficie-3); color: var(--texto-2); white-space: nowrap; }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.estado svg { display: none; }
.estado.creada { background: var(--info-suave); color: var(--info); }
.estado.pago_pendiente { background: var(--aviso-suave); color: var(--aviso-texto); }
.estado.en_transito { background: var(--info-suave); color: var(--info); }
.estado.recibida, .estado.en_revision { background: var(--violeta-suave); color: var(--violeta); }
.estado.aceptada { background: var(--ok-suave); color: var(--ok-texto); }
.estado.rechazada, .estado.error { background: var(--marca-suave); color: var(--marca-texto); }
.estado.parcial { background: var(--aviso-suave); color: var(--aviso-texto); }
.estado.cancelada { background: var(--superficie-3); color: var(--texto-3); }
.estado.ancho { height: 30px; font-size: 13px; padding: 0 12px 0 10px; align-self: flex-start; }

/* ── Ficha ─────────────────────────────────────────────────── */
.nav-ficha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-ficha a, .nav-ficha button { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-3); text-decoration: none; font-weight: 600; font-size: 13px; background: none; border: 0; padding: 6px 8px; border-radius: 8px; }
.nav-ficha a:hover, .nav-ficha button:hover:not(:disabled) { background: var(--hover); color: var(--texto); }
.nav-ficha span { display: inline-flex; gap: 2px; }
.nav-ficha button:disabled { opacity: .35; cursor: default; }
.nav-ficha svg { width: 16px; height: 16px; }
.cab-ficha { margin-top: 14px; display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--borde); }
.cab-ficha .titulo-f { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.cab-ficha .sep { color: var(--texto-4); }
.cab-ficha .tienda { font-weight: 600; font-size: 13px; color: var(--texto-3); }
.cab-ficha .acciones { margin-left: auto; display: flex; align-items: center; gap: 6px; position: relative; }
.cab-ficha .acciones .accion-texto { border-color: var(--borde); background: var(--superficie); box-shadow: var(--sombra-1); }
.rejilla { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; }
.producto { border: 1px solid var(--borde); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.producto.aceptada { border-color: color-mix(in srgb, var(--ok) 45%, var(--borde)); box-shadow: 0 0 0 3px var(--ok-suave); }
.producto.rechazada { border-color: color-mix(in srgb, var(--marca) 45%, var(--borde)); box-shadow: 0 0 0 3px var(--marca-suave); }
.producto .estado-p { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--texto-3); padding: 10px 14px; background: var(--superficie-2); border-bottom: 1px solid var(--borde); }
.producto .estado-p.aceptada { color: var(--ok-texto); background: var(--ok-suave); } .producto .estado-p.rechazada { color: var(--marca-texto); background: var(--marca-suave); }
.producto .estado-p svg { width: 14px; height: 14px; }
.producto .num { display: none; }
.producto .cuerpo-p > div { min-width: 0; }
.validar input[type=text] { min-width: 0; }
.producto .cuerpo-p { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 14px; }
.producto img, .producto .sin-foto { width: 84px; height: 96px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--borde); }
.producto .sin-foto { background: var(--superficie-2); }
.producto .t { font-weight: 700; font-size: 14.5px; } .producto .var { font-size: 13px; color: var(--texto-3); }
.producto .pr { font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.producto .pie-p { border-top: 1px solid var(--borde); padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.producto .pie-p .que { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.producto .pie-p .que svg { width: 15px; height: 15px; color: var(--info); }
.producto .pie-p .mot { color: var(--texto-3); }
.validar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.validar input[type=text] { flex: 1 1 180px; min-height: 30px; border: 1px solid var(--borde); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; background: var(--superficie); }
.validar input[type=text]:focus { outline: none; box-shadow: var(--anillo); }
.boton.activo-ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.boton.activo-no { background: var(--marca); color: #fff; border-color: var(--marca); }
.nuevo { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.nuevo img, .nuevo .sin-foto { width: 64px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--borde); }
.total-verde { background: var(--ok-suave); border-radius: 10px; padding: 11px 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok-texto); }
.total-verde.ambar { background: var(--aviso-suave); color: var(--aviso-texto); }
.total-verde svg { width: 16px; height: 16px; }
details.desglose summary { cursor: pointer; border: 1px solid var(--borde); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 13px; list-style: none; display: flex; justify-content: space-between; color: var(--texto-2); }
details.desglose summary:hover { background: var(--hover); }
details.desglose summary::after { content: "+"; color: var(--texto-3); }
details.desglose[open] summary::after { content: "–"; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: 8px 0; font-size: 13px; margin: 10px 0 0; }
.datos dt { color: var(--texto-3); padding-right: 16px; } .datos dd { margin: 0; text-align: right; font-weight: 600; }
.datos .total { border-top: 1px solid var(--borde); padding-top: 8px; font-weight: 700; color: var(--texto); }
.campos-v { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.campos-v .et { color: var(--texto-3); font-size: 12px; }
.campos-v .va { margin-top: 2px; font-weight: 600; }
.campos-v a { color: var(--info); text-decoration: none; }
.campos-v a:hover { text-decoration: underline; }
.campos-v .va input { background: var(--superficie); }
.fila-sep { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--borde); font-size: 13px; }
.fila-sep a { color: var(--info); font-weight: 600; text-decoration: none; }
.texto-gris { color: var(--texto-3); font-size: 13px; }
.banda { padding: 11px 14px; border-radius: 10px; font-size: 13px; }
.banda.ambar { background: var(--aviso-suave); color: var(--aviso-texto); }
.banda.ok { background: var(--ok-suave); color: var(--ok-texto); }
.botonera { display: flex; flex-wrap: wrap; gap: 8px; }
.comentario { display: flex; gap: 10px; align-items: center; border: 1px solid var(--borde); border-radius: 12px; padding: 6px 6px 6px 8px; background: var(--superficie); transition: box-shadow .12s; }
.comentario:focus-within { box-shadow: var(--anillo); }
.comentario b { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #ce0d0d, #6991af); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.comentario input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13.5px; min-width: 0; }
.historial { list-style: none; margin: 0; padding: 0; position: relative; }
.historial .dia { font-size: 11.5px; font-weight: 600; color: var(--texto-4); margin: 14px 0 4px; }
.historial li.ev { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: start; padding: 7px 0; font-size: 13px; position: relative; }
.historial li.ev .hora { order: 3; color: var(--texto-4); font-size: 12px; white-space: nowrap; }
.historial li.ev i { order: 1; width: 9px; height: 9px; border-radius: 50%; background: var(--superficie); border: 2px solid var(--info); margin-top: 5px; position: relative; z-index: 1; }
.historial li.ev .txt { order: 2; color: var(--texto-2); }
.historial li.ev .quien-ev { order: 4; grid-column: 2 / 3; color: var(--texto-4); font-size: 11.5px; margin-top: -6px; }
.historial i.error, .historial i.alerta { border-color: var(--marca) !important; }
.historial i.nota { border-color: var(--aviso) !important; }
.historial i.cerrada, .historial i.reembolso { border-color: var(--ok) !important; background: var(--ok) !important; }
.historial li.ev.nota .txt { background: var(--aviso-suave); color: var(--aviso-texto); border-radius: 10px; padding: 6px 10px; }

/* ── Ajustes ───────────────────────────────────────────────── */
.ajustes { max-width: 680px; }
h2 + .ajustes, .cab-pagina + .ajustes { margin-top: 0; }

/* ── Ventanas y avisos ─────────────────────────────────────── */
.velo { position: fixed; inset: 0; background: rgba(10, 14, 20, .42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: velo .15s ease-out; }
@keyframes velo { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px; padding: 22px; max-width: 480px; width: 100%; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--sombra-2); animation: modal .18s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes modal { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 18px; }
.modal p { color: var(--texto-2); }
.modal .botonera { justify-content: flex-end; padding-top: 4px; }
.aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--primario); color: var(--sobre-primario); padding: 11px 16px; border-radius: 12px; font-size: 13.5px; max-width: calc(100% - 32px); z-index: 60; box-shadow: var(--sombra-2); animation: tostada .2s ease-out; }
@keyframes tostada { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.aviso.mal { background: var(--marca); color: #fff; }
.cargando { padding: 40px; text-align: center; color: var(--texto-3); }
.esqueleto { background: linear-gradient(90deg, var(--superficie-2) 0%, var(--superficie-3) 50%, var(--superficie-2) 100%); background-size: 200% 100%; animation: brillo 1.2s infinite; border-radius: var(--r-l); }
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .fila-tx { grid-template-columns: 100px minmax(0, 1.2fr) minmax(0, 1.4fr) 150px 110px; }
  .fila-tx > :nth-child(6) { display: none; }
}
@media (max-width: 1100px) {
  .rejilla { grid-template-columns: minmax(0, 1fr); }
  .rejilla-dash { grid-template-columns: minmax(0, 1fr); }
  .grupo-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grupo-kpi .kpi:nth-child(3) { border-left: 0; }
  .grupo-kpi .kpi:nth-child(n+3) { border-top: 1px solid var(--borde); }
  .kpis.dobles { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --lateral: 0px; }
  .lateral { inset: auto 0 0 0; width: 100%; height: 64px; flex-direction: row; justify-content: center; align-items: center; padding: 0 8px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--borde); background: color-mix(in srgb, var(--superficie) 88%, transparent); backdrop-filter: blur(12px); }
  .lateral .marca, .lateral .pie-lateral { display: none; }
  .lateral nav { flex-direction: row; gap: 4px; width: 100%; justify-content: space-around; }
  .lateral nav a { flex-direction: column; height: 52px; gap: 3px; font-size: 11px; justify-content: center; padding: 0 14px; position: relative; }
  .lateral nav a .cuenta { position: absolute; top: 4px; right: 6px; margin: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  body.con-lateral main { padding-bottom: 96px; }
  main { padding: 18px 16px 48px; }
  .barra { padding: 0 16px; height: 56px; }
  .migas { display: none; }
  .buscador { width: 100%; max-width: none; margin-left: 0; }
  .buscador kbd { display: none; }
  .tabla-tx { background: transparent; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
  .fila-tx.cab { display: none; }
  .fila-tx { grid-template-columns: 1fr auto; gap: 6px 12px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sombra-1); }
  .fila-tx > :nth-child(1) { order: 1; } .fila-tx > :nth-child(4) { order: 2; justify-self: end; align-items: flex-end; }
  .fila-tx > :nth-child(2) { order: 3; } .fila-tx > :nth-child(5) { order: 4; }
  .fila-tx > :nth-child(3) { order: 5; grid-column: 1 / -1; }
  .fila-tx > :nth-child(6) { display: none; }
  .cab-ficha .acciones { margin-left: 0; flex-wrap: wrap; width: 100%; }
  .dos { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .tabla-d th, .tabla-d td { padding: 8px 6px; }
  .cifras { gap: 20px; }
  .cab-pagina .filtros { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  /* iPhone: con letra de menos de 16 px, Safari hace zoom al escribir */
  input, select, textarea, .campo input, .campo select, .campo textarea, .buscador input, .herramientas .buscar input, .comentario input, .validar input[type=text] { font-size: 16px !important; }
  /* Cifras: en móvil solo las de estado, en una tira que se desliza */
  #kpis-lista .kpis.dobles > .grupo-kpi:nth-child(2) { display: none; }
  /* Cifras de estado: rejilla de 2 × 2, todas a la vista (antes tira deslizable que se cortaba en iPhone) */
  .grupo-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; gap: 6px; }
  .kpi .nombre { font-size: 12px; }
  .kpi .valor { font-size: 22px; }
  /* Periodo: una sola línea que se desliza */
  .pildora { white-space: nowrap; flex: none; padding: 0 12px; }
  .cab-pagina .filtros { scrollbar-width: none; }
  .cab-pagina .filtros::-webkit-scrollbar { display: none; }
  /* Tablas del dashboard: números en una línea, sin columna de posición */
  .tabla-d { font-size: 13px; }
  .tabla-d th, .tabla-d td:not(.izq) { white-space: nowrap; }
  .tabla-d td.pos, .tabla-d th:first-child:empty { display: none; }
  .tabla-d th { font-size: 11px; }
  /* El buscador de la lista sobra: ya está el de arriba */
  .herramientas .buscar { display: none; }
  /* Ficha: botones de acción a lo ancho */
  .cab-ficha .acciones { display: grid; grid-template-columns: 1fr 1fr; }
  .cab-ficha .acciones #b-acept { grid-column: 1 / -1; order: -1; height: 44px; }
  .nav-ficha a span, .nav-ficha a { font-size: 12.5px; }
  .boton.peq { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Ajustes → ventanas especiales (Navidad) */
.reglas { display: grid; gap: 10px; margin-top: 12px; }
.regla { border: 1px solid var(--linea-suave); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.regla-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.regla p { margin: 0; color: var(--texto-2); }
.regla-acc { display: flex; gap: 16px; }

/* ── Dashboard (rediseño 29/10) ─────────────────────────────── */
.franja-pend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--texto-3); }
.franja-pend > b { font-weight: 600; margin-right: 6px; }
.franja-pend .pend { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--borde); color: var(--texto-2); text-decoration: none; }
.franja-pend .pend svg { width: 13px; height: 13px; color: var(--texto-4); }
.franja-pend .pend span { font-weight: 700; color: var(--texto); }
.franja-pend .pend.hay { background: var(--aviso-suave); border-color: transparent; color: var(--aviso-texto); }
.franja-pend .pend.hay span, .franja-pend .pend.hay svg { color: var(--aviso-texto); }
.franja-pend .pend:hover { border-color: var(--borde-fuerte); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-l); padding: 18px 18px 16px; box-shadow: var(--sombra-1); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile .nombre { font-size: 12.5px; color: var(--texto-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile .nombre svg { width: 14px; height: 14px; color: var(--texto-4); }
.tile .valor { font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.tile .detalle { font-size: 12.5px; color: var(--texto-3); }
.tile .var { font-size: 12px; color: var(--texto-2); margin-top: auto; padding-top: 6px; }
.caja > .cab > div { min-width: 0; }
.caja > .cab .explica { margin-top: 4px; }
.segmentado { display: inline-flex; background: var(--superficie-2); border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.segmentado button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--texto-3); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.segmentado button.actual { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1); }
.grafico .linea-g { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .area-g { opacity: .08; stroke: none; }
.grafico .guia { stroke: var(--borde-fuerte); stroke-width: 1; }
.grafico .marca { stroke: var(--superficie); stroke-width: 2; }
.grafico .zona-l { fill: transparent; }
.reparto-g { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
.donut-c { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.donut { width: 150px; height: 150px; }
.donut .donut-num { font-size: 26px; font-weight: 700; fill: var(--texto); font-family: var(--sans); letter-spacing: -.03em; }
.donut .donut-etq { font-size: 10px; fill: var(--texto-3); font-family: var(--sans); }
.leyenda.vertical { flex-direction: column; align-items: flex-start; gap: 6px; }
.mini-barra { display: flex; gap: 2px; height: 8px; width: 100%; min-width: 60px; }
.mini-barra span { display: block; height: 100%; border-radius: 3px; }
.tabla-d th.ancha-c { width: 30%; }
.tabla-d td.con-barra { width: 160px; }
.tabla-d td.con-barra .mini-barra { margin-top: 5px; justify-content: flex-end; }
.tabla-d tr.total td { border-top: 1px solid var(--borde-fuerte); color: var(--texto-2); }
.buscar-d { width: 100%; max-width: 320px; font: inherit; font-size: 13px; padding: 8px 12px; border: 1px solid var(--borde); border-radius: 10px; background: var(--superficie-2); color: var(--texto); }
.desplaza.alto { max-height: 520px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .reparto-g { grid-template-columns: minmax(0, 1fr); }
  .tile .valor { font-size: 26px; }
  .tile { padding: 14px; }
  .caja > .cab { flex-wrap: wrap; }
  .tabla-d td.con-barra { width: 90px; }
  .tabla-d th.ancha-c, .tabla-d td:nth-child(2) .mini-barra:only-child { min-width: 40px; }
}
.grafico .zona-l, .grafico .area-g, .donut path, .donut text { stroke: none; }
.tabla-d td.con-img { display: flex; align-items: center; gap: 12px; }
.mini-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--superficie-2); border: 1px solid var(--borde); flex: none; display: block; }
.bandera { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; display: block; box-shadow: 0 0 0 1px var(--borde); background: var(--superficie-2); }
@media (max-width: 860px) { .mini-img { width: 36px; height: 36px; } .tabla-d td.con-img { gap: 8px; } }
/* 29/10: a todo el ancho como Reveni; miniaturas y banderas más grandes */
.mini-img { width: 56px; height: 56px; border-radius: 10px; }
.bandera { width: 38px; height: 26px; border-radius: 4px; }
.tabla-d td.con-img { gap: 14px; font-size: 14px; }
.ajustes { max-width: 760px; }
@media (max-width: 860px) { .mini-img { width: 40px; height: 40px; } .bandera { width: 30px; height: 20px; } }
