/* ==========================================================================
   CRM De Todo y Más · diseño 2.0 (octubre 2026)
   Tipografía Manrope (incluida en /fonts, licencia OFL), fondo gris claro,
   tarjetas blancas con borde fino, menú azul marino.
   ========================================================================== */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #0e1726;
  --muted: #5b6576;
  --line: #e4e8ee;
  --line-soft: #eef1f5;
  --head-bg: #f7f9fc;
  --accent: #1e4fa3;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0fa;
  --side: #032040; /* azul de Nexos (medido en el logo aprobado) */
  --nexos-turquesa: #07B6B6;
  --verde: #0d5e46;   --verde-bg: #e6f4ee;  --verde-fuerte: #13795b;
  --azul: #1e4fa3;    --azul-bg: #eaf0fa;
  --amarillo: #7a5300; --amarillo-bg: #fbf1d2;
  --naranjo: #8a4a07; --naranjo-bg: #fdf1e3; --naranjo-fuerte: #b45309;
  --rojo: #9a1c14;    --rojo-bg: #fbe9e7;   --rojo-fuerte: #b42318;
  --gris: #3f4a5c;    --gris-bg: #eef1f5;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: none;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: 14.5px; margin: 0 0 8px; font-weight: 700; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--rojo-fuerte); }
.pos { color: var(--verde-fuerte); }
:focus-visible { outline: 2px solid #7fa3dc; outline-offset: 2px; }

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) 248px, var(--bg) 248px); }
.side {
  background: var(--side); color: #b9c4d8; padding: 18px 12px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 0;
}
/* Marca Nexos en el menú: logo compacto (N + Nexos, variante para fondo oscuro) y el respaldo en texto legible */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 4px 8px 18px; text-decoration: none; border-radius: 10px; }
.brand:hover { text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--nexos-turquesa); outline-offset: 2px; }
.brand img { display: block; width: 172px; height: auto; max-width: 100%; }
.brand-respaldo { font-weight: 500; color: #9fb0c8; font-size: 11.5px; letter-spacing: .01em; line-height: 1.2; }
/* Menú: lista con su propio scroll (nunca queda nada tapado) y grupos plegables */
.navlista { flex: 1; min-height: 0; overflow-y: auto; position: relative; margin: 0 -6px; padding: 0 6px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.navitems { display: flex; flex-direction: column; gap: 1px; }
.navg { margin-top: 2px; }
.navg .navitems { padding: 2px 0 6px; }
.navg.cerrado .navitems { display: none; }
.side button.navgrupo { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; cursor: pointer; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #b9c4d8; }
.side button.navgrupo:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side button.navgrupo:focus-visible { outline: 2px solid #8ea0b8; }
.navg.activo > button.navgrupo { color: #fff; }
.navgrupo .t { flex: 1; }
.navgrupo .flecha::after { content: ''; display: block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 0; transition: transform .15s; opacity: .7; }
.navg.cerrado .navgrupo .flecha::after { transform: rotate(-45deg); margin: 0 3px 0 0; }
.side .ico { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.side a.nav {
  color: #b9c4d8; padding: 9px 12px; border-radius: 9px; display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 14px; line-height: 1.3;
}
.navg a.nav { padding: 7px 12px 7px 41px; font-weight: 500; font-size: 13.5px; color: #a7b3c9; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.side a.nav.on { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 700; }
.side .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 4px; }
.side .user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; font-size: 12.5px; color: #8e9bb3; border-top: 1px solid rgba(255, 255, 255, .08); }
.side .user .avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.side .user .quien { flex: 1; min-width: 0; }
.side .user b { color: #fff; display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .user .user-acc { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.side .user .user-acc a { color: #b9c4d8; }
.side .user form { margin: 0; }
.side .user button { background: none; border: 0; color: #b9c4d8; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.side .user button:hover { color: #fff; }
.main { padding: 30px 36px 64px; min-width: 0; }
.main > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.head h1 + .muted, .head h1 + div.muted { font-size: 14px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.banner { background: var(--amarillo-bg); color: var(--amarillo); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.banner.info { background: var(--azul-bg); color: var(--azul); }
.banner.ok { background: var(--verde-bg); color: var(--verde); }
.banner.err { background: var(--rojo-bg); color: var(--rojo); }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card + .card { margin-top: 16px; }
.grid > .card { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; }
.kpi .s { font-size: 12.5px; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.kpi.alerta .v { color: var(--rojo-fuerte); }

/* ---------- Chips de estado ---------- */
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.45; }
.chip.verde { background: var(--verde-bg); color: var(--verde); }
.chip.azul { background: var(--azul-bg); color: var(--azul); }
.chip.violeta{background:#efe7fb;color:#5b2a9e}
.chip.amarillo { background: var(--amarillo-bg); color: var(--amarillo); }
.chip.naranjo { background: var(--naranjo-bg); color: var(--naranjo); }
.chip.rojo { background: var(--rojo-bg); color: var(--rojo); }
.chip.gris { background: var(--gris-bg); color: var(--gris); }
.seg { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: 12px; background: var(--gris-bg); color: var(--gris); }
.seg.A { background: var(--accent); color: #fff; }
.seg.B { background: var(--accent-soft); color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.verde { background: var(--verde-fuerte); } .dot.azul { background: var(--azul); } .dot.amarillo { background: #d39e00; }
.dot.naranjo { background: #e07b24; } .dot.rojo { background: var(--rojo-fuerte); } .dot.gris { background: #98a2b3; }

/* ---------- Tablas ---------- */
.tabla-wrap { overflow-x: auto; margin: 0 -22px; padding: 0; }
.tabla-wrap > table th:first-child, .tabla-wrap > table td:first-child { padding-left: 22px; }
.tabla-wrap > table th:last-child, .tabla-wrap > table td:last-child { padding-right: 22px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
th { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; background: var(--head-bg); position: sticky; top: 0; border-bottom: 1px solid var(--line); }
th a { color: var(--muted); }
th a.on { color: var(--ink); }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }
td.accion { min-width: 260px; }
tr.total td { font-weight: 800; background: var(--head-bg); border-top: 1px solid var(--line); }
.vacio { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Formularios ---------- */
form.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
input, select, textarea {
  font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid #d5dce6; border-radius: var(--radius-s); padding: 8px 12px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b7cbec; outline-offset: 0; border-color: #6f93cf; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 5px; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; border-radius: var(--radius-s); padding: 9px 16px; min-height: 40px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.sec { background: #fff; color: var(--accent); border-color: #d5dce6; }
.btn.sec:hover { background: var(--accent-soft); filter: none; }
.btn.peligro { background: #fff; color: var(--rojo-fuerte); border-color: #f1c0bb; }
.btn.chico { padding: 6px 12px; font-size: 13px; min-height: 34px; border-radius: 9px; }
.fila-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.fila-form label { margin-top: 0; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Gráfico ---------- */
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart text { font-size: 11px; fill: var(--muted); font-weight: 600; }
.chart .bar { fill: #c9d6ea; }
.chart .bar.act { fill: var(--accent); }
.chart .bar.neg { fill: #e8a39c; }

/* ---------- Ficha ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.paginas { display: flex; gap: 4px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.paginas .pag-num { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--accent); font-weight: 700; font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); }
.paginas a.pag-num:hover { background: var(--accent-soft); text-decoration: none; }
.paginas .pag-num.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.paginas .pag-sep { color: var(--muted); padding: 0 2px; }
.paginas .pag-info { margin-left: 8px; }
@media print { .paginas { display: none; } table tbody tr[style*="display: none"] { display: table-row !important; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--side); }
.login .card { width: 100%; max-width: 400px; padding: 32px; border: 0; }
.login-marca { margin: 0 0 4px; line-height: 0; }
.login-marca img { display: block; width: min(300px, 100%); height: auto; margin: 4px auto 14px; }
.login h1 { text-align: center; font-size: 22px; }
.login input { width: 100%; }
.login .btn { width: 100%; justify-content: center; margin-top: 18px; padding: 11px; }

/* ---------- Móvil ---------- */
.topbar-movil, .side .cerrar-menu, .velo-menu { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); } /* el título largo de la cabecera no ensancha la página */
  /* Menú del celular: barra superior fija con "Menú" y el menú completo como panel lateral (sin moverse hacia el lado) */
  .topbar-movil { min-width: 0; display: flex; position: sticky; top: 0; z-index: 60; align-items: center; gap: 10px; background: var(--side); color: #fff; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); box-shadow: 0 2px 12px rgba(15, 30, 58, .18); }
  .topbar-movil .tb-logo { flex-shrink: 0; border-radius: 6px; }
  .topbar-movil .tb-logo img { width: 108px; height: auto; display: block; }
  .topbar-movil .tb-titulo { flex: 1; min-width: 0; font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-movil .tb-alertas { position: relative; color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
  .topbar-movil .tb-alertas .ico { width: 22px; height: 22px; }
  .topbar-movil .tb-alertas .badge { position: absolute; top: 1px; right: -4px; margin: 0; height: 18px; min-width: 18px; font-size: 10.5px; padding: 0 5px; }
  .topbar-movil .tb-menu { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: 14px; cursor: pointer; }
  .topbar-movil .tb-menu .ico { width: 20px; height: 20px; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: min(86vw, 330px); height: 100%; height: 100dvh; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); padding-top: calc(14px + env(safe-area-inset-top));
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .25); overflow: hidden; }
  body.menu-abierto .side { transform: none; }
  body.menu-abierto { overflow: hidden; }
  .velo-menu { display: none; position: fixed; inset: 0; z-index: 70; background: rgba(10, 18, 35, .45); }
  body.menu-abierto .velo-menu { display: block; }
  .side .cerrar-menu { all: unset; position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #b9c4d8; cursor: pointer; font-size: 26px; line-height: 1; }
  .side .cerrar-menu:active { background: rgba(255, 255, 255, .1); }
  .brand { padding-bottom: 14px; padding-right: 44px; }
  .brand img { width: 160px; }
  .side a.nav, .navg a.nav { padding-top: 11px; padding-bottom: 11px; font-size: 15px; }
  .side button.navgrupo { padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
  .side .user { padding-top: 12px; }
  .main { padding: 20px 16px 50px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .tabla-wrap { margin: 0 -22px; }
  .ocultar-movil { display: none; }
  h1 { font-size: 24px; }
}

/* ---------- Versión 2 ---------- */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d64545; color: #fff; font-size: 11.5px; font-weight: 800; margin-left: auto; }
.side a.nav { justify-content: flex-start; }
.alertas-res { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.alertas-res a { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); font-weight: 600; }
.alertas-res a b { color: var(--rojo-fuerte); }
.alertas-res a:hover { text-decoration: none; border-color: #b9c6d6; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); align-items: center; flex-wrap: wrap; }
.checklist li:last-child { border-bottom: 0; }
.big-num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
/* Pestañas de Configuración */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: -8px 0 24px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.subnav-t { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 8px 0 10px; }
.subnav a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.subnav a:hover { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.subnav a.on { background: var(--accent); color: #fff; font-weight: 700; }
.grafico-lineas svg { width: 100%; height: auto; display: block; }
.g2 .chart.lineas text.eje { font-size: 15px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.leyenda i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.semaforo { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.semaforo.verde { background: var(--verde-fuerte); } .semaforo.amarillo { background: #d39e00; } .semaforo.rojo { background: var(--rojo-fuerte); }
.meta-ok { color: var(--verde-fuerte); font-weight: 800; } .meta-no { color: var(--rojo-fuerte); font-weight: 800; }
.dias-mes { display: flex; flex-wrap: wrap; gap: 3px; }
.dias-mes span { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; background: var(--gris-bg); color: var(--muted); }
.dias-mes span.si { background: var(--verde-fuerte); color: #fff; } .dias-mes span.finde { background: transparent; } .dias-mes span.no { background: var(--rojo-bg); color: var(--rojo); }
.lista-que { margin: 6px 0 10px; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.lista-que li { margin-bottom: 4px; }
.auto-h { margin: 24px 0 12px; font-size: 17px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.auto-card { display: flex; flex-direction: column; }
.auto-card.apagada { background: #fafbfc; }
.auto-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.auto-cab h3 { margin: 0; font-size: 15px; }
.auto-dl { grid-template-columns: 110px 1fr; margin: 0; }
.auto-avisos { margin: 10px 0 0; padding: 8px 12px 8px 28px; background: var(--amarillo-bg); color: var(--amarillo); border-radius: var(--radius-s); font-size: 13px; }
.auto-acc { margin-top: auto; padding-top: 12px; }
.auto-acc form { margin: 0; }
@media (max-width: 900px) { .auto-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.form-grid input, .form-grid select { width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px 18px; margin: 0 0 16px; }
legend { font-weight: 800; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
.checks label { display: flex; gap: 8px; align-items: center; margin: 4px 0; color: var(--ink); font-weight: 500; font-size: 13.5px; }

/* ---------- Ficha de crédito imprimible ---------- */
.hoja { background: #fff; max-width: 860px; margin: 0 auto; padding: 36px 44px; color: #1b2433; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; }
.hoja .top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #1e4fa3; padding-bottom: 10px; }
.hoja .top h1 { font-size: 19px; letter-spacing: .04em; margin: 0; color: #1e4fa3; }
.hoja .top .sub { color: #5b6576; font-size: 12px; text-align: right; }
.hoja .cliente { margin: 18px 0 14px; }
.hoja .cliente .n { font-size: 12px; color: #5b6576; }
.hoja .cliente h2 { font-size: 22px; margin: 6px 0 2px; }
.hoja .cajas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; }
.hoja .caja { border: 1px solid #d7dde5; border-radius: 8px; padding: 10px 12px; }
.hoja .caja .l { font-size: 11px; letter-spacing: .06em; color: #5b6576; text-transform: uppercase; }
.hoja .caja .v { font-size: 20px; font-weight: 800; margin-top: 4px; }
.hoja h3 { font-size: 14px; color: #1e4fa3; margin: 20px 0 6px; border-bottom: 1px solid #d7dde5; padding-bottom: 4px; }
.hoja table td, .hoja table th { padding: 6px 8px; font-size: 12.5px; }
.hoja table th { position: static; background: #f1f4f8; color: #1b2433; }
.hoja ul { margin: 6px 0; padding-left: 18px; }
.hoja .firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.hoja .firmas div { border-top: 1px solid #9aa3af; padding-top: 6px; font-size: 12px; color: #5b6576; }
.hoja .pie { margin-top: 26px; font-size: 10.5px; color: #7a8494; border-top: 1px solid #e3e6eb; padding-top: 8px; }
.solo-pantalla { margin: 0 auto 14px; max-width: 860px; display: flex; gap: 8px; }
@media print {
  body { background: #fff; }
  .side, .solo-pantalla, .banner { display: none !important; }
  .app { display: block; background: #fff; }
  .main { padding: 0; }
  .hoja { border: 0; padding: 0; max-width: none; }
  @page { margin: 16mm 14mm; }
}
.checklist li > div { flex: 1; min-width: 0; }

/* Productos: stock proyectado por día */
.chart .linea { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.chart .area { fill: var(--azul-bg); }
.chart .cero { stroke: var(--rojo-fuerte); stroke-width: 1; stroke-dasharray: 4 3; }
.chart .finmes { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .llegada { fill: var(--verde-fuerte); }
.chart .quiebre { fill: var(--rojo-fuerte); }
.chart text.eje { fill: var(--muted); font-size: 11px; }
.filtros-prod { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filtros-prod > div { min-width: 150px; }
.tabla-margen td, .tabla-margen th { padding: 7px 9px; font-size: 13px; }
.tabla-margen td.total, .tabla-margen th.total { background: var(--head-bg); border-left: 1px solid var(--line); }
.amarillo-txt { color: var(--naranjo-fuerte); }
/* Terreno: marcar visita con GPS */
.btn.grande { padding: 12px 22px; font-size: 16px; }
.gps-estado { font-size: 13px; padding: 9px 12px; border-radius: var(--radius-s); background: var(--gris-bg); color: var(--gris); margin-bottom: 10px; }
.gps-estado.ok { background: var(--verde-bg); color: var(--verde); }
.gps-estado.err { background: var(--naranjo-bg); color: var(--naranjo); }
.cercanos { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cercanos:empty { display: none; }
.cercanos .t { font-size: 12.5px; color: var(--muted); }
.cercano { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.cercano:hover, .cercano.sel { border-color: var(--azul); background: var(--azul-bg); }
.cercano .d { font-size: 12px; color: var(--muted); }
img.mapa-dia { width: 100%; max-width: 1280px; display: block; border-radius: var(--radius-s); }
/* Resumen: barras clickeables y filtro rápido */
.chart .zona { fill: transparent; }
.chart a.mes-link { cursor: pointer; }
.chart a.mes-link:hover .bar { fill: #a9bedd; }
.chart a.mes-link:hover .bar.act { fill: var(--accent); }
.chart text.sel { fill: var(--accent); font-weight: 800; }
.filtro-rapido { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.filtro-rapido select { min-width: 150px; }
.kpi .mix { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 6px; }
.kpi .barra-mix { height: 10px; border-radius: 5px; background: #c9d6ea; overflow: hidden; margin-top: 10px; }
.kpi .barra-mix span { display: block; height: 100%; background: var(--accent); }
th.ordenable { cursor: pointer; user-select: none; }
th.ordenable:hover { color: var(--accent); }
th .flecha { color: var(--accent); }

/* ---------- Cotizador ---------- */
.marcas-sel { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.marca-op { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.marca-op input { position: absolute; opacity: 0; pointer-events: none; }
.marca-op img { width: 54px; height: 40px; object-fit: contain; }
.marca-op small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.marca-op.sel { border-color: var(--accent); background: var(--accent-soft); }
.item-fila { display: grid; grid-template-columns: 170px 1fr 70px 120px 110px 40px; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line-soft); position: relative; }
.item-fila label { margin: 0 0 3px; }
.item-fila input, .item-fila textarea { width: 100%; }
.item-fila textarea { min-height: 38px; }
.item-fila .i-precio, .item-fila .i-cant { text-align: right; }
.item-fila .i-total { padding: 8px 0; font-weight: 700; }
.item-fila .c-quitar { padding-top: 21px; }
.sugerencias { position: absolute; z-index: 20; background: #fff; border-radius: var(--radius-s); box-shadow: 0 8px 24px rgba(15, 30, 58, .16); max-width: 520px; min-width: 260px; max-height: 300px; overflow: auto; }
.sugerencias:empty { display: none; }
.sug { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; padding: 9px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.sug:hover { background: var(--accent-soft); }
.buscar-cliente { position: relative; margin-bottom: 6px; }
.buscar-cliente input { width: 100%; max-width: 440px; }
.cotiz-pie { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; align-items: flex-start; }
.envio-campos { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.envio-campos input { max-width: 200px; }
.totales { min-width: 260px; background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; }
.totales div { display: flex; justify-content: space-between; gap: 20px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.totales .t-total { border-top: 1px solid #c5d3e2; margin-top: 4px; padding-top: 7px; font-size: 17px; font-weight: 800; }
.btn.whatsapp { background: #1f9d55; border-color: #1f9d55; }
.estado-form { margin-bottom: 10px; }
.estado-form input[type=date] { max-width: 170px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.marca-sum { display: flex; align-items: center; gap: 12px; }
.marca-sum img { width: 60px; height: 40px; object-fit: contain; }
details.card[open] .marca-sum { margin-bottom: 10px; }
@media (max-width: 900px) {
  .item-fila { grid-template-columns: 1fr 1fr; }
  .item-fila .c-sku, .item-fila .c-desc { grid-column: 1 / -1; }
  .item-fila .c-quitar { padding-top: 0; }
  .totales { width: 100%; }
}

/* ---------- Cobranza ---------- */
tr.fila-roja td { background: #fdf0ee; }
tr.fila-amarilla td { background: #fdf7e4; }
.barra-uso { height: 6px; background: #e9edf3; border-radius: 3px; overflow: hidden; margin-top: 4px; min-width: 70px; }
.barra-uso span { display: block; height: 100%; background: var(--verde-fuerte); }
.barra-uso span.alto { background: #d9a400; }
.barra-uso span.sobre { background: var(--rojo-fuerte); }
.filtros-resumen { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.filtro-fechas { flex-wrap: wrap; justify-content: flex-end; }
.filtro-fechas input[type=date] { padding: 6px 8px; }
@media (max-width: 900px) { .filtros-resumen { align-items: stretch; } .filtro-fechas { justify-content: flex-start; } }
.tabla-ml td:first-child { min-width: 260px; }

/* ==========================================================================
   Resumen 2.0
   ========================================================================== */
.rs { display: flex; flex-direction: column; gap: 26px; }
.rs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rs-head h1 { font-size: 34px; margin: 0 0 6px; }
.rs-head .sub { color: var(--muted); font-size: 14px; }
.rs-filtros { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.seg-ctl { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg-ctl a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 9px; min-height: 34px; display: inline-flex; align-items: center; }
.seg-ctl a:hover { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.seg-ctl a.on { background: var(--accent); color: #fff; }
.campo-sel { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 12px; height: 42px; font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
.campo-sel select { border: 0; background: transparent; font-weight: 800; color: var(--ink); padding: 6px 4px; min-width: 0; }
.campo-sel select:focus { outline: none; }
.rs-fechas { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; justify-content: flex-end; }
.rs-fechas input[type=date] { padding: 6px 8px; border-radius: 9px; }
/* Resumen: título arriba y una sola barra de filtros alineada a la izquierda (no se corre al achicar la ventana) */
.rs-head { flex-direction: column; align-items: stretch; gap: 14px; }
.rs-head .filtros-resumen { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; }
.rs-head .rs-filtros { justify-content: flex-start; }
.rs-head .rs-fechas { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 42px; padding: 0 4px 0 12px; justify-content: flex-start; flex-wrap: nowrap; }
.rs-head .rs-fechas input[type=date] { border: 0; background: transparent; padding: 4px 2px; font-weight: 700; color: var(--ink); }
@media (max-width: 600px) { .rs-head .rs-fechas { height: auto; padding: 6px 8px; flex-wrap: wrap; } }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-t h2 { margin: 0; }
.sec-t a { font-size: 13px; font-weight: 700; }
/* Requiere atención */
.att { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.att-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.att-cab { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; font-weight: 800; font-size: 15px; }
.att-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.att-ico svg { width: 18px; height: 18px; }
.att-ico.azul { background: var(--accent-soft); color: var(--accent); }
.att-ico.verde { background: var(--verde-bg); color: var(--verde-fuerte); }
.att-ico.rojo { background: var(--rojo-bg); color: var(--rojo-fuerte); }
.att-ico.naranjo { background: var(--naranjo-bg); color: var(--naranjo-fuerte); }
a.att-fila { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line-soft); min-height: 46px; color: var(--ink); font-size: 14px; }
a.att-fila:hover { background: #f5f7fa; text-decoration: none; }
.att-fila .n { min-width: 52px; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.att-fila .n.rojo { color: var(--rojo-fuerte); } .att-fila .n.naranjo { color: var(--naranjo-fuerte); }
.att-fila .t { flex: 1; }
.att-fila svg { flex-shrink: 0; color: #98a2b3; }
.att-vacio { padding: 14px 18px 18px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line-soft); flex: 1; }
a.att-op { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line-soft); flex: 1; color: var(--ink); }
a.att-op:hover { background: #f5f7fa; text-decoration: none; }
.att-op .linea { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-op .txt { font-size: 14px; line-height: 1.45; }
.att-op .ir { font-size: 13px; font-weight: 800; color: var(--accent); }
.mini-barras { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.mini-barras span { flex: 1; background: #c9d6ea; border-radius: 2px; min-height: 2px; }
.mini-barras span.sobre { background: #e8a39b; }
.mini-barras span.pico { background: var(--rojo-fuerte); }
/* Tarjetas de cifras */
.rs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rk-l { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rk-v { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.rk-s { font-size: 12.5px; color: var(--muted); line-height: 1.55; font-variant-numeric: tabular-nums; }
.rk-s b { color: var(--ink); }
.rk-pie { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk-pie.dash { border-top-style: dashed; border-top-color: #dde2ea; }
.rk-pie .fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rk-pie .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rk-pie .dos .vv { font-size: 16px; font-weight: 800; color: var(--ink); display: block; }
.rk-pie .gr { font-size: 14px; font-weight: 800; color: var(--ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--gris-bg); color: var(--gris); }
.pill.verde { background: var(--verde-bg); color: var(--verde); }
.pill.ambar { background: var(--naranjo-bg); color: var(--naranjo); }
.pill.rojo { background: var(--rojo-bg); color: var(--rojo); }
.pill.azul { background: var(--accent-soft); color: var(--accent); }
a.pill:hover { text-decoration: none; filter: brightness(.97); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.avance { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.barra { position: relative; height: 8px; background: #e9edf3; border-radius: 4px; }
.barra > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; max-width: 100%; }
.barra > i.ok { background: var(--verde-fuerte); }
.barra > b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); border-radius: 1px; }
.barra.fina { height: 6px; width: 120px; border-radius: 3px; }
.barra.fina > i { border-radius: 3px; }
.barra.fina > b { top: -3px; height: 12px; }
.av-celda { display: flex; align-items: center; gap: 8px; }
.av-celda span { font-size: 12px; color: var(--muted); min-width: 34px; }
/* Gráfico 12 meses + mezcla */
.rs-fila2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; }
.rs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rs-card .cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rs-card .cab h2 { margin: 0 0 4px; }
.rs-card .cab .sub { font-size: 13px; color: var(--muted); }
.ley { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; }
.ley span { display: inline-flex; align-items: center; gap: 6px; }
.ley i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.ley i.linea { width: 14px; height: 0; border-top: 2px dashed var(--ink); border-radius: 0; }
.barras12 { display: flex; align-items: flex-end; gap: 8px; height: 236px; border-bottom: 1px solid var(--line); padding-top: 8px; font-variant-numeric: tabular-nums; }
.barras12 a.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; position: relative; min-width: 0; color: var(--muted); }
.barras12 a.col:hover { text-decoration: none; }
.barras12 a.col:hover .b { background: #a9bedd; }
.barras12 .v { font-size: 11px; font-weight: 600; white-space: nowrap; }
.barras12 .b { width: 100%; max-width: 40px; background: #c9d6ea; border-radius: 5px 5px 0 0; min-height: 2px; }
.barras12 .col.max .v { color: var(--ink); font-weight: 800; }
.barras12 .col.max .b { background: #a9bedd; }
.barras12 .col.act .v { color: var(--accent); font-weight: 800; }
.barras12 .col.act .b, .barras12 a.col.act:hover .b { background: var(--accent); }
.barras12 .aa { position: absolute; left: 50%; transform: translateX(-50%); width: 100%; max-width: 52px; border-top: 2px dashed var(--ink); }
.barras12 .proy { position: absolute; top: 0; right: 0; font-size: 11px; font-weight: 800; color: var(--accent); white-space: nowrap; background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; }
.meses12 { display: flex; gap: 8px; margin-top: -10px; font-size: 11.5px; color: var(--muted); text-align: center; font-weight: 600; }
.meses12 span { flex: 1; min-width: 0; }
.meses12 span.act { color: var(--ink); font-weight: 800; }
.mix-barra { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: #fff; }
.mix-barra i { display: block; background: #c9d6ea; }
.mix-barra i.d { background: var(--accent); }
.mix-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-variant-numeric: tabular-nums; }
.mix-dos .l { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.mix-dos .l i { width: 8px; height: 8px; border-radius: 2px; background: #c9d6ea; display: inline-block; }
.mix-dos .l i.d { background: var(--accent); }
.mix-dos .vv { font-size: 20px; font-weight: 800; }
.crec { border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.crec .l { font-size: 12px; font-weight: 700; color: var(--muted); }
.crec .fila { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.crec .gran { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.crec .gran.pos { color: var(--verde-fuerte); } .crec .gran.neg { color: var(--rojo-fuerte); }
.crec .s { font-size: 13px; color: var(--muted); }
.bono { border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-top: auto; background: var(--accent-soft); }
.bono.ok { background: #eef7f3; }
.bono.no { background: #fdf2f0; }
.bono .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--accent); }
.bono.ok .ic { background: var(--verde-fuerte); }
.bono.no .ic { background: var(--rojo-fuerte); }
.bono .t { font-size: 13px; font-weight: 800; }
.bono .s { font-size: 12px; color: #3f4a5c; font-variant-numeric: tabular-nums; }
/* Tablas del Resumen */
.rs-tabla { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rs-tabla .cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; flex-wrap: wrap; }
.rs-tabla .cab h2 { margin: 0 0 4px; }
.rs-tabla .cab .sub { font-size: 13px; color: var(--muted); }
.rs-tabla .scroll { overflow-x: auto; }
.rs-tabla table { min-width: 880px; font-size: 14px; }
.rs-tabla th { text-align: right; padding: 10px 12px; }
.rs-tabla td { text-align: right; padding: 12px; vertical-align: middle; border-bottom: 0; border-top: 1px solid var(--line-soft); }
.rs-tabla th:first-child, .rs-tabla td:first-child { text-align: left; padding-left: 22px; }
.rs-tabla th:last-child, .rs-tabla td:last-child { padding-right: 22px; }
.rs-tabla th.izq, .rs-tabla td.izq { text-align: left; }
.rs-tabla td.fuerte { font-weight: 700; }
.rs-tabla td.suave { color: var(--muted); }
.rs-tabla .nombre { font-weight: 700; color: var(--ink); }
.rs-tabla .sub2 { font-size: 12px; color: var(--muted); font-weight: 500; }
.rs-tabla .pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 22px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.rs-tabla .pie a { font-size: 13px; font-weight: 800; }
.chip-col { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.chip-col small { font-size: 11px; color: var(--naranjo); font-weight: 600; }
.vend { display: flex; align-items: center; gap: 10px; }
.vend .ini { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.vend .meta-l { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; margin-top: 2px; }
.vend .al { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--muted); }
.vend .al.si { color: var(--naranjo-fuerte); }
.vend .cx { display: inline-flex; align-items: center; gap: 5px; }
.vend .cx i { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; display: inline-block; }
.vend .cx i.hoy { background: var(--verde-fuerte); }
.vend .cx i.reciente { background: #d39e00; }
.ley-col { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; font-weight: 600; }
.ley-col span { display: inline-flex; align-items: center; gap: 6px; }
.ley-col i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media (max-width: 1150px) {
  .rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-fila2, .att { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rs-kpis { grid-template-columns: 1fr; }
  .rs-head h1 { font-size: 28px; }
  .rs-filtros, .rs-fechas { justify-content: flex-start; }
}
.rs-tabla td:first-child { min-width: 250px; }
.vend .cx, .vend .al { white-space: nowrap; }

/* ---------- Terreno en el celular ---------- */
.barra-terreno { display: none; }
.tarea-acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.tarea-acc details { flex-basis: 100%; text-align: right; }
.tarea-acc details summary { font-size: 12.5px; color: var(--accent); font-weight: 700; cursor: pointer; list-style: none; padding: 4px 0; }
.tarea-acc details summary::-webkit-details-marker { display: none; }
.tarea-acc details[open] summary { color: var(--muted); }
.tarea-acc .mas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.tarea-acc .mas input[type=date] { width: 150px; }
@media (max-width: 900px) {
  .barra-terreno { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--side); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -4px 18px rgba(15, 30, 58, .18); }
  .barra-terreno a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #b9c4d8; font-size: 11px; font-weight: 700; padding: 6px 2px; border-radius: 10px; min-height: 48px; justify-content: center; }
  .barra-terreno a .ico { width: 22px; height: 22px; }
  .barra-terreno a.on, .barra-terreno a:active { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
  body.con-barra-terreno .main { padding-bottom: 96px; }
  /* Tablas que en el celular se leen como tarjetas */
  table.apilada thead { display: none; }
  table.apilada, table.apilada tbody, table.apilada tr, table.apilada td { display: block; width: 100%; }
  table.apilada tr { padding: 12px 22px; border-bottom: 1px solid var(--line-soft); }
  .tabla-wrap > table.apilada td, .tabla-wrap > table.apilada td:first-child, .tabla-wrap > table.apilada td:last-child { padding: 3px 0; border: 0; text-align: left; }
  table.apilada td.num { text-align: left; }
  table.apilada td:empty { display: none; }
  .tarea-acc, .tarea-acc details, .tarea-acc .mas { justify-content: flex-start; text-align: left; }
  .tarea-acc .btn { min-height: 40px; }
  .marcar .btn.grande { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; }
}

/* Fotos de visitas y dictado */
.fotos-visita { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.fotos-visita img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.btn.dictar .ico { width: 16px; height: 16px; }
.btn.dictar.grabando { background: var(--rojo-bg); color: var(--rojo); border-color: var(--rojo); }
.meta-dia { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-dia .barra { flex: 1; min-width: 140px; }

/* Publicidad ML: tabla angosta que cabe en un notebook */
.badge-n { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 11px; line-height: 18px; text-align: center; }
.btn.sec .badge-n { background: var(--linea, #eef1f5); color: inherit; }
.sep-tabs { display: inline-block; width: 1px; height: 22px; background: var(--borde, #e4e8ee); margin: 0 6px; vertical-align: middle; }
.tabla-ads th, .tabla-ads td { padding-left: 10px; padding-right: 10px; }
.tabla-ads td.num { white-space: nowrap; }
.tabla-ads td.pub-ads { max-width: 420px; min-width: 240px; }
.tabla-ads .chips-ads { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.verde-txt { color: var(--verde, #13795b); }
tr.fila-destacada td { background: #f2f7ff; }
ul.tareas-juntas { margin: 4px 0 0; padding-left: 18px; }
ul.tareas-juntas li { margin: 2px 0; }
a.kpi.kpi-link { display: block; color: inherit; text-decoration: none; }
a.kpi.kpi-link:hover { border-color: var(--azul, #1e4fa3); text-decoration: none; }

/* Ficha del vendedor: resumen compacto (venta y metas, clientes y alertas, cifras chicas) */
.resumen-vend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.resumen-vend .card { padding: 18px 20px; margin: 0; }
.rv-tit { color: var(--muted); font-size: 13px; font-weight: 700; }
.rv-grande { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.rv-proy { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rv-proy b { color: var(--ink); }
.rv-fila { margin-top: 12px; }
.rv-fila-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.rv-fila-t .small { color: var(--muted); }
.rv-alertas { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #f3f5f8; color: inherit; text-decoration: none; }
.rv-alertas:hover { text-decoration: none; background: #eaeef4; }
.rv-alertas .rv-al-n { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: #e3e8ef; color: var(--ink); }
.rv-alertas.hay .rv-al-n { background: #fbe9e7; color: #b42318; }
.rv-alertas > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rv-alertas .small { color: var(--muted); }
.rv-al-ir { font-size: 22px; color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mini-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; min-width: 0; }
.mini-kpi .l { color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-kpi .v { font-size: 19px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mini-kpi .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
@media (max-width: 900px) {
  .resumen-vend { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .resumen-vend .card { padding: 16px; }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Usuarios (lista en tarjetas) ---------- */
.fila-form > div { min-width: 0; }
.fila-form input, .fila-form select { width: 100%; }
.u-nuevo > summary { display: inline-block; }
.u-nuevo:not([open]) { background: transparent; border: 0; padding: 0; margin-bottom: 16px; }
.u-marcas { justify-content: flex-end; }
.u-nuevo[open] > summary .btn { background: #fff; color: var(--accent); border-color: #d5dce6; }
.u-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.u-cab h2 { margin-bottom: 8px; }
.u-ayuda > summary { color: var(--accent); font-weight: 700; font-size: 13px; }
.u-ayuda[open] { flex-basis: 100%; background: var(--head-bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 10px; }
.u-ayuda ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--gris); }
.u-ayuda li { margin: 2px 0; }
.u-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.u-filtros input[type=search] { flex: 1 1 260px; max-width: 360px; }
.u-fil { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid #d5dce6; background: #fff; color: var(--gris); cursor: pointer; white-space: nowrap; }
.u-fil:hover { background: var(--accent-soft); }
.u-fil.activo { background: var(--accent); border-color: var(--accent); color: #fff; }
.usuarios-lista { border-top: 1px solid var(--line); }
details.usuario { border-bottom: 1px solid var(--line); }
details.usuario.inactivo .u-quien b { color: var(--muted); }
.u-sum { display: grid; grid-template-columns: 40px minmax(0, 1.6fr) 150px minmax(0, 1.3fr) 190px 64px; gap: 6px 14px; align-items: center; padding: 12px 8px; border-radius: var(--radius-s); }
.u-sum:hover { background: var(--head-bg); }
details.usuario[open] > .u-sum { background: var(--accent-soft); border-radius: var(--radius-s) var(--radius-s) 0 0; }
.u-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--gris-bg); color: var(--gris); }
.u-avatar.azul { background: var(--azul-bg); color: var(--azul); }
.u-avatar.verde { background: var(--verde-bg); color: var(--verde); }
.u-avatar.naranjo { background: var(--naranjo-bg); color: var(--naranjo); }
.u-avatar.amarillo { background: var(--amarillo-bg); color: var(--amarillo); }
.u-quien { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.u-quien > * { overflow-wrap: anywhere; }
.u-equipo { color: var(--gris); margin-top: 2px; }
.u-datos { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.u-marcas { display: flex; gap: 4px; flex-wrap: wrap; }
.u-editar { color: var(--accent); font-weight: 700; font-size: 13px; text-align: right; }
.u-editar::after { content: ' ›'; }
details.usuario[open] .u-editar { color: var(--muted); }
details.usuario[open] .u-editar::after { content: ' ˅'; }
.u-form { background: var(--accent-soft); padding: 4px 14px 16px; border-radius: 0 0 var(--radius-s) var(--radius-s); margin-bottom: 10px; }
.u-form .acciones { margin-top: 12px; }
.u-desact > summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .u-sum { grid-template-columns: 40px 1fr auto; padding: 12px 4px; }
  .u-avatar { grid-row: span 3; align-self: start; }
  .u-quien { grid-column: 2; }
  .u-editar { grid-column: 3; grid-row: 1; align-self: start; }
  .u-rol, .u-datos, .u-marcas { grid-column: 2 / 4; }
  .u-rol { display: flex; gap: 4px; }
  .u-datos { flex-direction: row; flex-wrap: wrap; gap: 2px 12px; }
  .u-marcas { justify-content: flex-start; }
  .u-marcas:empty, .u-datos:empty { display: none; }
  .u-filtros .pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .u-filtros input[type=search] { max-width: none; }
}

.naranjo-txt { color: var(--naranjo-fuerte); font-weight: 700; }

/* ---------- Correos del cliente (ficha) ---------- */
.correos-lista { display: flex; flex-direction: column; gap: 8px; }
.correo-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--head-bg); }
.correo-fila input, .correo-fila select { width: 100%; }
.correo-fila input[name=correo_email] { grid-column: 1 / 3; font-weight: 700; }
.correo-fila [data-quitar-correo] { grid-column: 3; grid-row: 1; }
.correo-fila input[name=correo_nombre] { grid-column: 1; grid-row: 2; }
.correo-fila select { grid-column: 2 / 4; grid-row: 2; }
.correos-pie { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Listas de precio por vendedor ---------- */
.lp-sum { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.lp-acc { display: flex; gap: 10px; align-items: center; }
.lp-usuarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.lp-usuarios label { margin: 0; color: var(--ink); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.lp-archivo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-top: 6px; }
.lp-archivo textarea { min-height: 84px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
@media (max-width: 760px) { .lp-sum, .lp-archivo { grid-template-columns: 1fr; } }

/* ---------- Marketing ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mk-marca { border-top: 4px solid var(--mk); }
.mk-cab { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.mk-cab img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 3px; }
.mk-cab h2 { margin: 0; }
.mk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mk-kpis > div { background: var(--head-bg); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mk-kpis .l { color: var(--muted); font-size: 12px; font-weight: 700; }
.mk-kpis .v { font-size: 20px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mk-kpis .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; overflow-wrap: anywhere; }
.mk-barra { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin-top: 6px; background: var(--line); }
.mk-barra span, .mk-punto { display: block; }
.mk-google { background: #1a73e8; } .mk-facebook { background: #1877f2; opacity: .55; } .mk-instagram { background: #d62976; } .mk-meta_otras { background: #94a3b8; }
.mk-punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.mk-pie { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
@media (max-width: 1200px) { .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mk-grid { grid-template-columns: 1fr; } }
.kpis.mk-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1300px) { .kpis.mk-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.mk-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-config { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 1250px) { .mk-config { grid-template-columns: 1fr; } }
.mk-otras { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.mk-otras label { margin: 0; display: inline-flex; gap: 5px; align-items: center; color: var(--ink); font-weight: 600; white-space: nowrap; }
.mk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mk-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.mk-tab:first-child { padding-left: 14px; }
.mk-tab img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; background: #fff; }
.mk-tab:hover { background: var(--head-bg); text-decoration: none; }
.mk-tab.on { border-color: var(--mk, var(--accent)); box-shadow: inset 0 0 0 1px var(--mk, var(--accent)); background: var(--accent-soft); }
.mk-var { font-size: 12px; font-weight: 800; margin-left: 4px; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.mk-var.pos { color: var(--verde-fuerte); } .mk-var.neg { color: var(--rojo-fuerte); }
.kpis.mk-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.mk-8 .kpi { border-top: 3px solid var(--mk); }
@media (max-width: 1100px) { .kpis.mk-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mk-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .mk-tab { white-space: nowrap; } }
.mk-grid > .card { margin: 0; }
/* Evaluar cliente */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; max-width: 1040px; align-items: start; }
.ev-grid > .card { margin: 0; }
.ev-buscar { position: relative; }
.ev-buscar .sugerencias { left: 0; right: 0; max-width: none; }
/* Gráficos de todo el ancho: proporcionados en pantalla grande y legibles en el celular */
.solo-angosto { display: none; }
@media (max-width: 900px) { .solo-ancho { display: none; } .solo-angosto { display: block; } }
.spark { width: 100%; height: 56px; display: block; }
.vacio-spark { height: 56px; }
/* Evolución: tarjetas por vendedor con tendencia */
.ev-grid-v { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ev-vend { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.ev-vend:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(15, 30, 58, .08); }
.ev-link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-top b { font-size: 14px; }
.ev-num { font-size: 20px; font-weight: 800; }
.ev-pie { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
tr.fila-total td { border-top: 2px solid var(--line); }
.tk-bajo { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.tk-bajo > .card { margin: 0; }
.kpis-6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* Detalle de campaña */
.cp-titulo { display: flex; align-items: center; gap: 10px; }
.cp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.kpis-8 { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.cp-ia { border-left: 4px solid var(--accent); }
.cp-ia-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.cp-ia-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cp-ia-form input { flex: 1 1 320px; }
.cargando { color: var(--muted); font-size: 14px; padding: 14px 0; display: flex; align-items: center; gap: 10px; }
.cargando::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: girar 0.9s linear infinite; flex: none; }
@keyframes girar { to { transform: rotate(360deg); } }
.ia-diag { font-size: 15px; line-height: 1.55; background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.ia-acciones { padding-left: 0; list-style: none; counter-reset: acc; display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; }
.ia-acc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; counter-increment: acc; }
.ia-acc-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ia-acc-cab b::before { content: counter(acc) '. '; }
.ia-acc p { margin: 6px 0 0; }
.ia-acc details { margin-top: 6px; }
.ia-acc summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }
.ia-listas { margin-top: 12px; }
.ia-listas ul { margin: 4px 0 0; padding-left: 18px; }
.ia-pie { margin-top: 12px; }
.cp-anuncios { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cp-anuncio { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.cp-anuncio.sin { border-color: #f1b8b2; background: #fff7f6; }
.cp-anuncio img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: #eef0f3; }
.cp-an-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-an-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-an-num { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
a.cp-link { color: inherit; }
a.cp-link:hover b { text-decoration: underline; }
.solo-ancho .chart.lineas text.eje { font-size: 13px; }
.ev-grid { margin-left: 0; margin-right: 0; }
.cp-filtros { align-items: flex-start; margin-bottom: 14px; }
@media (min-width: 1100px) { .kpis-8 { grid-template-columns: repeat(4, 1fr); } }
/* Pagos y boletas de Mercado Libre */
.mp-tipos { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.mp-tipo { font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #fff; }
.mp-tipo:hover { text-decoration: none; border-color: var(--accent); color: var(--ink); }
.mp-tipo.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mp-tabla td { vertical-align: top; }
.mp-que { min-width: 320px; max-width: 560px; }
.mp-reclamo { margin-top: 6px; }
.mp-reclamo summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }
.mp-reclamo textarea { width: 100%; margin: 6px 0; font-size: 13px; }
.mp-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mp-acc input { flex: 1 1 200px; min-width: 0; font-size: 13px; padding: 6px 8px; }
.mp-ia { border-left: 4px solid var(--accent); }

/* Posventa */
.pv-cob { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.pv-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-filtros select, .pv-filtros input { max-width: 100%; }
.pv-tabla td { vertical-align: top; }
.pv-tabla tr.pv-inactivo td { opacity: .6; }
.pv-accion { max-width: 280px; }
.pv-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.pv-grid > div > .card { margin-bottom: 16px; }
@media (max-width: 1000px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-cab-cifras { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.pv-h3 { font-size: 14px; margin: 12px 0 6px; }
.pv-hechos { margin: 0; padding-left: 18px; }
.pv-hechos li { margin: 4px 0; }
.pv-sugerencia { margin-top: 12px; padding: 10px 12px; background: var(--accent-soft); border-radius: 9px; font-size: 14px; }
.pv-chat li { padding: 8px 10px; border-radius: 9px; margin: 6px 0; border-bottom: 0; background: #f4f6fa; }
.pv-chat li.pv-m-vendedor { background: #eaf3ec; margin-left: 32px; }
.pv-chat li.pv-m-otro { background: #fff4e5; }
.pv-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.pv-acciones { display: flex; flex-direction: column; gap: 6px; }
.pv-gform { margin-top: 10px; }
.pv-gform .pv-ancho { grid-column: 1 / -1; }
.pv-det summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-top: 10px; }

/* Acerca de Nexos (Configuración) */
.acerca-nexos img { display: block; width: 240px; max-width: 100%; height: auto; margin: 4px 0 12px; }

/* Tesorería */
.teso-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; }
.teso-nav .tabs { margin: 0; }
.teso-miga { margin: -4px 0 8px; }
.teso-links { margin: 0; padding-left: 18px; line-height: 1.9; }
.teso-etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.teso-etapas > div { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 12px 14px; }
.teso-etapas b { margin-right: 8px; }
.teso-etapas p { margin: 8px 0 0; }
.teso-cob { margin: 2px 0 6px; }
.teso-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.teso-filtros input[type=search] { min-width: 220px; }
.teso-filtros input[type=date] { width: 140px; }
.teso-tabla td { vertical-align: top; }
.teso-tabla td .chip { margin-top: 3px; }
@media (max-width: 900px) { .teso-etapas { grid-template-columns: 1fr; } .teso-filtros input[type=search] { min-width: 0; width: 100%; } }

/* ---------- Grilla de redes ---------- */
:root { --rs-reel: #6a4ea3; --rs-reel-bg: #efe9f8; --rs-carrusel: #0d6a6c; --rs-carrusel-bg: #dff0ef; --rs-post: #1e4fa3; --rs-post-bg: #eaf0fa; --rs-historia: #9a6512; --rs-historia-bg: #fbf0dc; }
.rs-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.rs-cab h2 { margin: 0; }
.rs-barra { display: grid; gap: 4px; margin: 4px 0 16px; }
.rs-barra .mk-tabs { margin-bottom: 6px; }
.rs-mesnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rs-mesnav h2 { margin: 0; font-size: 22px; min-width: 10ch; text-align: center; }
.rs-mesnav .btn { min-width: 38px; justify-content: center; font-size: 18px; }
.rs-tareas { margin-bottom: 16px; }
.rs-tareas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rs-tareas li a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: var(--ink); }
.rs-tareas li a:hover { background: var(--head-bg); text-decoration: none; }
.rs-t-fecha { font-size: 11.5px; color: var(--muted); line-height: 1.2; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.rs-t-fecha b { display: block; font-size: 18px; color: var(--ink); letter-spacing: 0; text-transform: none; }
.rs-t-txt { font-weight: 700; min-width: 0; }
.rs-t-txt small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.rs-propuesta { border-color: #c9d7ef; margin-bottom: 16px; }
.rs-resumen { white-space: pre-line; margin: 0 0 12px; max-width: 90ch; }
.rs-nopub { background: var(--head-bg); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; }
.rs-nopub ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.rs-det { margin: 10px 0 16px; }
.rs-det summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.rs-det[open] summary { margin-bottom: 8px; }
.rs-aprobada { margin: -4px 0 12px; }
.rs-proponer textarea { min-height: 60px; }
.rs-form-fila { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-start; }
.rs-form-fila > div { min-width: 120px; }
.rs-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 4px; }
.rs-checks.col { flex-direction: column; gap: 6px; }
.rs-checks label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.rs-checks input { width: auto; }

.rs-flujo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.rs-paso { display: grid; gap: 2px; padding: 12px 16px 14px; color: var(--ink); border-right: 1px solid var(--line); min-width: 0; }
.rs-paso:last-child { border-right: 0; }
.rs-paso:hover { background: var(--head-bg); text-decoration: none; }
.rs-paso.on { background: var(--head-bg); box-shadow: inset 0 -3px 0 var(--accent); }
.rs-paso .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.rs-paso .nom { font-weight: 800; }
.rs-paso .who { font-size: 12.5px; color: var(--muted); }
.rs-paso .cnt { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rs-paso .cnt small { font-size: 12px; font-weight: 700; margin-left: 6px; }
.rs-paso.s-acc .cnt { color: var(--accent); } .rs-paso.s-pend .cnt { color: var(--naranjo-fuerte); } .rs-paso.s-rev .cnt { color: var(--azul); } .rs-paso.s-ok .cnt { color: var(--verde-fuerte); } .rs-paso.s-pub .cnt { color: var(--gris); }
.rs-problemas { display: inline-block; background: var(--rojo-bg); color: var(--rojo); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 12px; margin: 0 0 14px; }
.rs-problemas.on { box-shadow: inset 0 0 0 1.5px var(--rojo); }

.rs-cal-card { margin: 12px 0 18px; }
.rs-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.rs-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rs-leyenda i.f-reel { background: var(--rs-reel); } .rs-leyenda i.f-carrusel { background: var(--rs-carrusel); } .rs-leyenda i.f-post { background: var(--rs-post); } .rs-leyenda i.f-historia { background: var(--rs-historia); }
.rs-cal-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.rs-cal { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; min-width: 800px; }
.rs-cal .dow { background: var(--head-bg); padding: 7px 9px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rs-dia { background: var(--surface); min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.rs-dia.fuera { background: var(--head-bg); }
.rs-dia.fuera .n { opacity: .4; }
.rs-dia.hoy .n { color: var(--accent); font-weight: 800; }
.rs-dia .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-chip { display: grid; gap: 1px; font-size: 12px; line-height: 1.3; padding: 5px 7px; border-radius: 7px; color: var(--ink); }
.rs-chip:hover { text-decoration: none; filter: brightness(.97); }
.rs-chip small { display: flex; justify-content: space-between; gap: 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rs-chip.tenue { opacity: .35; }
.rs-chip.f-reel { background: var(--rs-reel-bg); } .rs-chip.f-reel small { color: var(--rs-reel); }
.rs-chip.f-carrusel { background: var(--rs-carrusel-bg); } .rs-chip.f-carrusel small { color: var(--rs-carrusel); }
.rs-chip.f-post { background: var(--rs-post-bg); } .rs-chip.f-post small { color: var(--rs-post); }
.rs-chip.f-historia { background: var(--rs-historia-bg); } .rs-chip.f-historia small { color: var(--rs-historia); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 2px; background: var(--gris); }
.dot.d-pend { background: var(--naranjo-fuerte); } .dot.d-camb, .dot.d-vencida, .dot.d-error { background: var(--rojo-fuerte); } .dot.d-rev { background: var(--azul); } .dot.d-ok, .dot.d-publicando { background: var(--verde-fuerte); } .dot.d-retenida { background: var(--naranjo); } .dot.d-propuesta { background: #9aa4b5; }

.rs-fmt { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; }
.rs-fmt.f-reel { background: var(--rs-reel-bg); color: var(--rs-reel); } .rs-fmt.f-carrusel { background: var(--rs-carrusel-bg); color: var(--rs-carrusel); }
.rs-fmt.f-post { background: var(--rs-post-bg); color: var(--rs-post); } .rs-fmt.f-historia { background: var(--rs-historia-bg); color: var(--rs-historia); }
.rs-semana h3 { font-size: 15px; margin: 22px 0 10px; }
.rs-piezas { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; }
.rs-pieza { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.rs-pz-mini { display: block; }
.rs-pz-cuerpo { display: grid; gap: 4px; align-content: start; min-width: 0; }
.rs-pz-cuerpo h3 { font-size: 15.5px; margin: 2px 0 0; line-height: 1.3; }
.rs-pz-cuerpo h3 a { color: var(--ink); }
.rs-pz-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.rs-pz-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.rs-pz-acc { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-pz-acc form { margin: 0; }
.rs-porque1 { color: var(--grisOsc, var(--gris)); background: var(--head-bg); border-radius: 8px; padding: 6px 9px; }
.rs-coment { background: var(--rojo-bg); color: var(--rojo); border-radius: 8px; padding: 6px 9px; }
.rs-marco { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: var(--head-bg); border: 1.5px dashed #cdd5e0; display: grid; place-items: center; margin: 0; }
.rs-marco.r45 { aspect-ratio: 4 / 5; } .rs-marco.r916 { aspect-ratio: 9 / 16; }
.rs-marco.lleno { border-style: solid; border-color: var(--line); background: #0e1726; }
.rs-marco img, .rs-marco video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-marco.grande { max-width: 360px; }
.rs-marco.r916.grande { max-width: 260px; }
.rs-marco figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(14, 23, 38, .7); color: #fff; font-size: 11.5px; padding: 4px 8px; }
.rs-ph { text-align: center; padding: 8px; font-size: 12px; color: var(--muted); display: grid; gap: 3px; }
.rs-marco.lleno .rs-ph { color: #dfe6f0; }
.rs-ph b { font-size: 11.5px; color: var(--ink); }
.rs-marco.lleno .rs-ph b { color: #fff; }
.rs-badge { position: absolute; top: 6px; right: 6px; background: rgba(14, 23, 38, .72); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

.rs-ficha { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.rs-ficha-izq, .rs-ficha-der { display: grid; gap: 16px; min-width: 0; }
.rs-ficha-der .card + .card { margin-top: 0; }
.rs-medios { display: grid; gap: 10px; }
.rs-medios.varios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-medios .rs-marco.r916 { max-width: 300px; }
.rs-subir input[type=file] { margin-top: 10px; width: 100%; }
.rs-subir progress { width: 100%; margin-top: 10px; height: 10px; }
.rs-sel { display: grid; gap: 8px; margin-top: 10px; }
.rs-sel-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.rs-sel-item img, .rs-sel-item video { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--head-bg); }
.rs-sel-item small { display: block; color: var(--muted); }
.rs-sel-item small.aviso, .rs-sel-item.mal { color: var(--rojo); }
.rs-sel-item:not(:has(img, video)) { grid-template-columns: minmax(0, 1fr); }
.rs-spec { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rs-partes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rs-partes li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.rs-partes .k { font-size: 12px; font-weight: 800; color: var(--accent); padding-top: 1px; }
.rs-dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; font-size: 13.5px; }
.rs-dl dt { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.rs-dl dd { margin: 0; }
.rs-h3 { font-size: 14px; margin: 4px 0 6px; }
.rs-copy { white-space: pre-line; border-left: 3px solid var(--line); padding-left: 12px; margin: 0; font-style: italic; }
.rs-porque ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rs-cambio { margin-top: 10px; }
.rs-editar summary { cursor: pointer; list-style: none; }
.rs-editar summary::-webkit-details-marker { display: none; }
.rs-editar summary::after { content: ' ▾'; color: var(--muted); }
.rs-editar[open] summary { margin-bottom: 6px; }
.rs-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.rs-marca-cfg { margin-top: 16px; }
.rs-marca-cfg h2 { display: flex; align-items: center; gap: 10px; }
.rs-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.rs-cfg-estado { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 8px; }
.rs-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink); }
.rs-switch input { width: auto; }
@media (max-width: 900px) {
  .rs-flujo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-paso { border-right: 0; border-bottom: 1px solid var(--line); }
  .rs-paso:nth-child(odd) { border-right: 1px solid var(--line); }
  .rs-paso:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .rs-ficha { grid-template-columns: minmax(0, 1fr); }
  .rs-piezas { grid-template-columns: minmax(0, 1fr); }
  .rs-dl { grid-template-columns: minmax(0, 1fr); }
  .rs-partes li { grid-template-columns: 76px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rs-cal-wrap { margin: 0 -22px; }
  .rs-pieza { grid-template-columns: 76px minmax(0, 1fr); padding: 12px; }
}
/* Crédito · carga conjunta (solo este flujo; reutiliza card, btn, chip y banner) */
.crb-carga { border: 1px dashed var(--line); }
.crb-carga.crb-sobre { border-color: var(--azul); background: var(--azul-bg); }
.crb-tipos { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.crb-propuesta { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.crb-fuente { margin-top: 3px; line-height: 1.4; overflow-wrap: anywhere; }
.crb-fuente input[type=radio] { width: auto; margin: 0 4px 0 0; vertical-align: -2px; }
.crb-reemplazo { display: inline-block; vertical-align: middle; }
.crb-reemplazo summary { cursor: pointer; color: var(--azul); }
.crb-reemplazo form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.crb-bloque table td:first-child { width: 42%; color: var(--muted); }
.crb-carga input[type=file], [data-crb-estado] input[type=file], .crb-reemplazo input[type=file] { max-width: 100%; min-width: 0; }
.crb-eval fieldset { min-width: 0; }
.crb-desact { opacity: .55; cursor: not-allowed; }
.crb-mas > div { min-width: 0; max-width: 100%; }
/* Renovaciones de crédito (Etapa B) */
.login .card.crr-publico { max-width: 520px; }
.crr-publico ol { padding-left: 20px; }
.crr-publico input[type=file] { max-width: 100%; }
.crr-empresa { font-weight: 800; color: var(--muted); text-align: center; margin-bottom: 6px; letter-spacing: .02em; }
.crr-aviso { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; min-width: 0; }
.crr-aviso-cab { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.crr-texto { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg, #f6f7f9); border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.nowrap { white-space: nowrap; }
/* Clasificación comercial de productos */
.cc-head { align-items: flex-start; }
.cc-acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; position: relative; }
.cc-criterios > summary { list-style: none; cursor: pointer; }
.cc-criterios > summary::-webkit-details-marker { display: none; }
.cc-criterios > summary::after { content: ' ▾'; }
.cc-criterios[open] > summary::after { content: ' ▴'; }
.cc-criterios-caja { position: absolute; right: 0; top: 46px; z-index: 30; width: min(620px, 92vw); max-height: 70vh; overflow: auto; box-shadow: 0 12px 30px rgba(3, 32, 64, .18); }
.cc-criterios-caja table { margin: 6px 0 10px; }
.cc-letra { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 7px; font-weight: 800; font-size: 13px; }
.cc-A { background: #d9f2e6; color: #0b6b43; }
.cc-B { background: #fdecc8; color: #8a5a00; }
.cc-C { background: #fbdcdc; color: #a12626; }
.cc-nd { background: #eceff3; color: #5b6676; font-size: 11px; }
.cc-c { text-align: center; }
td.cc-c > div { margin-top: 3px; }
.cc-tabla thead th { vertical-align: bottom; }
.cc-tabla thead th .small { font-weight: 500; }
.cc-tabla tr.cc-sel td { background: #e6f6f8; }
.cc-tabla tr.cc-sel td:first-child { box-shadow: inset 4px 0 0 #1aa3b1; }
.cc-leyendas { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 10px 0 12px; }
.cc-ley { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-pie { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.cc-detalle { margin-top: 16px; border: 2px solid #9fdbe2; }
.cc-detalle-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.cc-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.cc-dato { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.cc-dato .l { color: var(--muted); font-size: 12px; font-weight: 700; }
.cc-dato .v { font-size: 18px; font-weight: 800; margin: 2px 0; overflow-wrap: anywhere; }
.cc-dato .s { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .cc-criterios-caja { position: static; width: auto; margin-top: 8px; } .cc-acciones { width: 100%; } }
.cc-tabla { font-size: 13.5px; }
.cc-tabla th, .cc-tabla td { padding: 9px 7px; }
.cc-tabla td.cc-prod { min-width: 160px; max-width: 240px; }
.cc-u { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.cc-dato .v { font-size: 17px; overflow-wrap: normal; word-break: normal; }
/* SEO y mejora web */
.seo-campo { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; min-width: 0; }
.seo-campo-cab { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.seo-comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seo-comparar > div { min-width: 0; }
.seo-comparar textarea { width: 100%; max-width: 100%; }
.seo-antes, .seo-despues { background: var(--bg); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; min-height: 42px; }
.seo-vista { margin-top: 8px; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; overflow-wrap: anywhere; }
.seo-google { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-width: 640px; overflow-wrap: anywhere; }
.seo-google .g-url { color: #1a6b32; font-size: 13px; margin-top: 4px; }
.seo-google .g-tit { color: #1a0dab; font-size: 18px; line-height: 1.3; }
.seo-google .g-desc { color: #4d5156; font-size: 14px; }
.seo-usuarios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seo-usuarios > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (max-width: 700px) { .seo-comparar, .seo-usuarios { grid-template-columns: 1fr; } }
.filtros-prod select, .filtros-prod input { max-width: 100%; }
.filtros-prod > div { max-width: 100%; }

/* ---------- Comex ---------- */
.cx-drop { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; border: 2px dashed var(--line); border-radius: 14px; background: var(--accent-soft); cursor: pointer; text-align: center; align-items: center; }
.cx-drop:hover, .cx-drop.sobre { border-color: var(--accent); }
.cx-drop input[type=file] { margin-top: 8px; max-width: 100%; }
.cx-exc .banner { margin: 0 0 8px; }
@media (max-width: 700px) { .subnav { width: 100%; } .subnav a { padding: 7px 10px; } }
.cx-dl .chip { white-space: normal; }
@media (max-width: 700px) { .cx-dl { grid-template-columns: 1fr; gap: 2px 0; } .cx-dl dd { margin-bottom: 10px; overflow-wrap: anywhere; } }
.pv-borrador { border: 1px solid var(--borde, #e3e7ee); border-radius: 9px; padding: 10px 12px; margin: 10px 0; }
.pv-texto { white-space: normal; background: #f4f6fa; border-radius: 9px; padding: 10px 12px; margin: 6px 0; }
.pv-responder .pv-form { margin: 6px 0; }
.pv-responder select, .pv-responder textarea { max-width: 100%; box-sizing: border-box; }
.pv-conv { min-width: 130px; max-width: 200px; }
.pv-envios li { padding: 8px 0; }
.login-recordar { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 12px 0 4px; cursor: pointer; }
.login-recordar input { width: auto; margin: 0; }
.cx-modo { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.cx-modo label { display: flex; gap: 8px; align-items: baseline; }
.cx-candidatos { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; background: var(--accent-soft); }
.cx-candidatos h2 { margin-top: 0; }
/* Comex: llegadas por mes y contenedores del mismo embarque */
.rojo-txt { color: var(--rojo-fuerte, #b42318); }
.cx-llegadas .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 10px; }
.cx-llegadas .kpi .v .small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cx-llegadas a.kpi.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cx-llegadas a.kpi.alerta .v { color: var(--rojo-fuerte, #b42318); }
tr.cx-mismo-emb td { border-top-style: dashed; }
tr.cx-mismo-emb td:first-child > a, tr.cx-mismo-emb td:first-child > .small:first-of-type { opacity: .55; }
.cx-bo-viejo td { background: #fff6f4; }
.cx-prov { min-width: 170px; }
/* Lista de embarques: 5 columnas sin scroll lateral; contenedores de un mismo embarque bajo su encabezado */
table.cx-lista { table-layout: fixed; width: 100%; }
table.cx-lista th:nth-child(1) { width: 27%; }
table.cx-lista td { overflow-wrap: anywhere; vertical-align: top; }
table.cx-lista .chip { white-space: normal; }
table.cx-lista .cx-docs { margin-top: 4px; }
.cx-prov-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; margin-bottom: 3px; }
tr.cx-grupo td { background: var(--accent-soft); font-size: 13px; padding-top: 8px; padding-bottom: 8px; border-top: 2px solid var(--line); }
tr.cx-grupo .cx-grupo-prov { font-weight: 600; }
tr.cx-en-grupo td:first-child { padding-left: 22px; }
@media (max-width: 700px) {
  .cx-llegadas .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cx-llegadas .kpi { padding: 12px 14px; }
  .cx-llegadas .kpi .v { font-size: 22px; }
}
/* Prospección por comunas: tarjetas legibles en el celular, selección conservada y ruta */
.ps-lista { display: grid; gap: 10px; }
.ps-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface, #fff); }
.ps-card-cuerpo { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ps-card-tit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-check { padding: 4px 2px; }
.ps-check input, .ps-ban-item input, .ps-check-lin input { width: 22px; height: 22px; }
a.chip.ps-fuente { text-decoration: none; font-weight: 800; min-width: 26px; text-align: center; }
.ps-barra-sel { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-top: 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -4px 16px rgba(15, 30, 60, .08); }
.ps-barra-sel label { display: flex; gap: 6px; align-items: center; margin: 0; }
.ps-comunas { display: grid; gap: 6px; }
.ps-comunas select { width: 100%; min-height: 160px; }
.ps-com-lista { overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--surface); }
.ps-com-grupo { margin-bottom: 6px; }
.ps-com-grupo[hidden], .ps-com[hidden] { display: none; }
.ps-com { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 15px; cursor: pointer; }
.ps-com input { width: 18px; height: 18px; margin: 0; }
.ps-fuentes { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 14px 0; display: grid; gap: 10px; }
.ps-fuente-op { display: block; margin: 0; }
.ps-fuente-op input { width: 20px; height: 20px; vertical-align: middle; }
.ps-sugerencias { margin: 12px 0; }
.ps-sug { display: block; margin: 6px 0; }
.ps-terminos { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 0 0 10px; }
.ps-rapido { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.ps-rapido p { margin: 0 0 8px; }
.ps-form { display: grid; gap: 8px; margin-top: 10px; }
.ps-form-lin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ps-check-lin { display: flex; gap: 8px; align-items: center; margin: 0; }
.ps-coin { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ps-coin li { display: block; line-height: 1.8; }
.ps-busq-lista { padding-left: 18px; }
.ps-busq-lista li { margin: 6px 0; }
.ps-fuente-res { padding: 8px 0; border-bottom: 1px solid var(--line-soft, #eef1f5); }
.ps-paradas { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ps-parada { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ps-parada-hora { min-width: 64px; }
.ps-parada-cuerpo { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ps-sin-permiso { opacity: .6; }
.ps-ban-item { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.ps-ban-item span { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .ps-barra-sel { bottom: 64px; }
  .ps-barra-sel .btn, .ps-barra-sel select { flex: 1 1 auto; }
  .ps-parada { flex-direction: column; gap: 4px; }
}
.ps-form label { display: grid; gap: 4px; margin: 0; }
.ps-form input:not([type=checkbox]):not([type=radio]), .ps-form select, .ps-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.ps-form .ps-check-lin { display: flex; }
.ps-mas-filtros { flex-basis: 100%; }
.ps-mas-filtros > summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.ps-barra-sel.vacia { display: none; }
.ps-elegidas { font-weight: 600; }
select { max-width: 100%; }
.ps-conf { display: grid; gap: 4px; }

/* Grilla de redes · imágenes con IA */
.rs-ia { margin-top: 18px; }
.rs-ia .rs-h3 { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.rs-ia-prods { margin: 4px 0 8px; padding-left: 18px; }
.rs-ia-lam { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; margin: 8px 0; background: var(--surface); }
.rs-ia-lam summary { cursor: pointer; }
.rs-ia-lam textarea { font: 13px/1.5 var(--font); width: 100%; }
.rs-ia-adv { margin: 6px 0; padding: 6px 10px 6px 26px; background: var(--naranjo-bg); color: var(--naranjo); border-radius: 8px; font-size: 12.5px; }
.rs-ia-fotos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.rs-ia-fotos label { display: grid; gap: 3px; justify-items: center; cursor: pointer; }
.rs-ia-fotos img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.rs-ia-gen select { min-width: 120px; }
.rs-ia-res { margin: 10px 0 14px; }
.rs-ia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 210px)); gap: 12px; margin-top: 6px; }
.rs-ia-var { display: grid; gap: 6px; cursor: pointer; }
.rs-ia-var > input { justify-self: start; }
.rs-ia-var:has(input:checked) .rs-marco { outline: 3px solid var(--accent); outline-offset: 2px; }
.rs-ia-pie { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-ia-tabla th { text-align: left; width: 34%; font-weight: 600; vertical-align: top; }
.rs-ia-tabla td form, .en-linea { display: inline; margin-left: 6px; }
.rs-ia-logo { height: 34px; vertical-align: middle; margin-right: 8px; background: repeating-conic-gradient(#e9edf1 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 4px; }
.rs-ia-logo.oscuro { background: #1f2a30; }
.rs-ia-minis { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-ia-minis figure { margin: 0; display: grid; gap: 2px; font-size: 11.5px; }
.rs-ia-minis img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.rs-ia-paleta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.rs-ia-paleta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 3px; }
.rs-ia-paleta i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); display: inline-block; }
.rs-ia-ficha textarea { width: 100%; }
.rs-ia-ficha input[type=color] { width: 64px; height: 34px; padding: 2px; }
.rs-ia-muestras { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.rs-ia-muestras img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.rs-ia-guia .rs-ficha-izq { grid-column: auto; }
@media (min-width: 1100px) { .rs-ia-guia { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }
.rs-ia-lam .rs-form-fila > div, .rs-ia-gen > div { min-width: 0; }
.rs-ia-lam .rs-form-fila input:not([type=checkbox]), .rs-ia-lam .rs-form-fila select { width: 100%; box-sizing: border-box; }
.sin-borde { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Grilla: aprobación por día */
.rs-dia-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; padding: 8px 12px; background: var(--head-bg); border-radius: var(--radius-s); }
.rs-dia-cab form { margin: 0; }
.rs-dia-cab .rs-rehacer { margin: 0; flex-basis: 100%; }
.rs-dia-cab .rs-rehacer summary { font-size: 13px; }
.rs-dia-cab .rs-rehacer form { display: grid; gap: 8px; margin-top: 6px; }
.rs-dia-cab .rs-rehacer textarea { width: 100%; }
.rs-dia-cab .rs-rehacer .btn { justify-self: start; }
/* Alertas: casilla por fila y barra "Marcar como leídas / Recordar" */
th.sel-alerta, td.sel-alerta { width: 28px; padding-right: 0; }
.sel-alerta input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.marcar-alertas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.marcar-alertas select { width: auto; padding: 4px 8px; }
.chart .sel-col { fill: var(--accent); opacity: .08; }
.chart.lineas a.mes-link:hover .zona { fill: var(--accent); fill-opacity: .05; }
/* Prospección: palabra clave en la fila de filtros, descartar en la tarjeta y palabras excluidas */
.ps-palabra { display: flex; flex-direction: column; gap: 2px; }
.ps-desc { margin-top: 6px; }
.ps-desc summary { font-size: 13px; color: var(--muted, #667); cursor: pointer; }
.ps-desc select { width: auto; margin-top: 4px; }
.ps-excluidos { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-excl { display: inline-flex; align-items: center; gap: 4px; background: #f1f3f7; border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; margin: 0; }
.ps-excl button { border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 6px; color: #8a2b2b; }
.ps-lista > .ps-card { min-width: 0; }
.ps-chips .chip { white-space: normal; }
/* Ventas en bodega: avance en 5 pasos (Impreso → Pickeado → Contado → Empaque → Despachado) */
.pasos-bodega { display: inline-flex; gap: 3px; vertical-align: middle; }
.pasos-bodega i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #dde3ec; }
.pasos-bodega i.ok { background: var(--accent); }
.pasos-bodega i.ok.mal { background: #b42318; }
/* Marketplaces: período (botones + rango de fechas) y panel de 13 meses */
.mk-filtros { flex-wrap: wrap; gap: 10px; }
.mk-periodo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-rango { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.mk-rango input[type=date] { width: auto; padding: 4px 8px; }
.mk-panel .mini-kpis { margin-top: 6px; }
.tabla-margen-mk td, .tabla-margen-mk th { padding: 4px 6px; font-size: 12px; }
.mk-panel .grid > div { min-width: 0; }
.mk-filtros { justify-content: flex-start; }
.mk-servicio { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
/* Tareas del equipo: grilla del mes */
.tg-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tg { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tg-cab, .tg-cuerpo { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tg-cab div { background: #f4f6fa; font-size: 12px; font-weight: 700; color: var(--muted, #667); padding: 6px 8px; text-align: center; }
.tg-dia { min-height: 96px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tg-dia:nth-child(7n+1) { border-left: 0; }
.tg-dia.fuera { background: #fafbfc; opacity: .6; }
.tg-dia.hoy { background: #eef4ff; }
.tg-num { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted, #667); }
.tg-mas { text-decoration: none; font-weight: 800; padding: 0 5px; border-radius: 6px; color: var(--accent); }
.tg-mas:hover { background: #e3ebfa; }
.tg-item { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: #e8eefb; color: #1e3a6b; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
p .tg-item { display: inline-block; }
.tg-item.alta { background: #fdf1e3; color: #8a4a07; }
.tg-item.vencida { background: #fbe9e7; color: #9a1c14; }
.tg-item.hecha { background: #e6f4ee; color: #0d5e46; text-decoration: line-through; }
/* Tareas de terreno en la grilla: solo para ver (otro color y etiqueta) */
.tg-item.terreno { background: #f1ecfb; color: #4b2a8a; border-left: 3px solid #7c5cc4; }
.tg-item.terreno.vencida { background: #fbe9e7; color: #9a1c14; border-left-color: #c2410c; }
.tg-item.terreno.hecha { background: #eef0f3; color: #5b6472; border-left-color: #9aa3ae; }
.tg-item.cotiz { background: #fff4e5; color: #7a4100; border-left: 3px solid #d97706; }
.tg-item.cotiz.vencida { background: #fbe9e7; color: #9a1c14; border-left-color: #c2410c; }
.tg-item.reunion { background: #fff7db; color: #7a5a00; border-left: 3px solid #e0b100; }
.tg-cal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; margin-bottom: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.tg-cal form { margin: 0; display: inline; }
.tg-etq { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.tg-quien { display: block; font-size: 10.5px; opacity: .75; }
.te-gente { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.te-gente label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.te-com { border-bottom: 1px solid var(--line); padding: 8px 0; }
.te-com.sistema { color: var(--muted, #667); font-size: 13px; }
@media (max-width: 720px) { .tg-dia { min-height: 64px; padding: 3px; } .tg-item { font-size: 10.5px; padding: 2px 3px; } .tg-cab div { padding: 4px 2px; font-size: 11px; } }

/* Prospección: la pestaña Configuración va al final, separada del trabajo diario */
.ps-tabs { width: 100%; }
.ps-tabs a.ps-tab-config { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.ps-config-nav { margin-top: -14px; background: var(--accent-soft); }
.ps-lista .ps-card { scroll-margin-bottom: 140px; }
@media (max-width: 700px) { .ps-tabs a.ps-tab-config { margin-left: 0; } }

/* "Ver como": banda fija arriba mientras administración ve Nexos como otra persona */
.ver-como-banda { position: sticky; top: 0; z-index: 70; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 8px 16px; background: #7c2d12; color: #fff; font-size: 14px; text-align: center; }
.ver-como-banda form { margin: 0; }
.ver-como-banda .btn { background: #fff; color: #7c2d12; border-color: #fff; }
.con-ver-como .side { top: 50px; height: calc(100vh - 50px); }
@media (max-width: 900px) { .ver-como-banda { position: static; font-size: 13px; } .con-ver-como .side { top: 0; height: 100vh; } }

/* Nivel de servicio diario */
.ns-tabla td.ns-hoy, .ns-tabla th.ns-hoy { background: var(--accent-soft); }
.ns-tabla tr.ns-total td { border-top: 2px solid var(--line); }
.ns-det { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.ns-det summary { cursor: pointer; }
.ns-det .tabla-wrap { margin-top: 8px; }
.ns-tabla tr.ns-sub td { font-size: 12.5px; padding-top: 4px; padding-bottom: 4px; background: #fafbfc; }
.ns-canales { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.ns-graf-wrap { position: relative; }
.ns-graf rect[data-tip] { cursor: pointer; }
.ns-tip { position: absolute; z-index: 5; background: #101828; color: #fff; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(16,24,40,.2); }
.ns-atrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 10px; }
.ns-atr { border: 1px solid var(--line); border-left: 3px solid #b42318; border-radius: 10px; padding: 10px 12px; background: #fff; }
.ns-atr-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.ns-atr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
/* Nivel de servicio: gráfico ancho y bajo en computador; el de 560×280 solo en el celular */
.ns-graf-movil { display: none !important; }
@media (max-width: 700px) { .ns-graf-pc { display: none !important; } .ns-graf-movil { display: block !important; } }
/* Nivel de servicio: cómo nos califica cada marketplace (sin columnas extra en la tabla diaria) */
.ns-ofi { display: grid; gap: 0; border-top: 1px solid var(--line, #e5e7eb); }
.ns-ofi-f { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(110px, .6fr) 2fr; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--line, #e5e7eb); align-items: start; }
.ns-ofi-v b { font-size: 18px; }
@media (max-width: 700px) { .ns-ofi-f { grid-template-columns: 1fr auto; } .ns-ofi-r { grid-column: 1 / -1; } }
/* Resumen: nivel de servicio de los marketplaces */
.ns-res { gap: 12px; }
.ns-res-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.ns-res-c { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.ns-res-c:hover { border-color: var(--accent); text-decoration: none; }
.ns-res-c .l { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-res-c .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ns-res-c .v.verde { color: var(--verde-fuerte, #15803d); } .ns-res-c .v.ambar { color: var(--naranjo, #b45309); } .ns-res-c .v.rojo { color: var(--rojo, #b42318); }
.ns-res-c .s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ns-res-of { display: flex; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
/* Administración → Roles */
.rol-card .rol-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rol-card h3 { margin: 0; }
.rol-menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rol-grupo { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; }
.rol-grupo legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
.rol-item { display: flex; gap: 6px; align-items: center; font-weight: 400; color: var(--ink); font-size: 14px; margin: 4px 0; }
/* Logística inversa */
.li-form { margin: 8px 0; }
.li-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 14px; margin-bottom: 10px; }
.li-campos label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.li-campos label .muted { font-weight: 400; }
.li-campos input, .li-campos select, .li-campos textarea { width: 100%; }
.li-campos .li-full { grid-column: 1 / -1; }
.li-scan-form { display: flex; gap: 8px; flex-wrap: wrap; }
.li-scan-form input { flex: 1; min-width: 220px; font-size: 18px; padding: 12px 14px; }
.li-video { margin-top: 10px; }
.li-video video { width: 100%; max-width: 420px; border-radius: 10px; background: #000; display: block; margin-bottom: 8px; }
.li-recibir { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.li-u-tit { margin-bottom: 6px; }
.li-datos { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.li-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 18px; }
.li-cod { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .03em; }
.li-plazos { margin-top: 12px; display: grid; gap: 4px; }
.li-plazo { font-size: 13.5px; padding: 6px 10px; border-radius: 8px; }
.li-plazo.ok { background: var(--verde-bg); }
.li-plazo.pronto { background: var(--amarillo-bg); }
.li-plazo.fuera { background: var(--rojo-bg); }
.li-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.li-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.li-foto-btn { position: relative; overflow: hidden; cursor: pointer; }
.li-foto-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.li-det summary { cursor: pointer; font-weight: 700; color: var(--accent); margin: 10px 0 6px; }
details.card.li-det > summary { margin: 0; }
.li-func { margin-bottom: 12px; }
.li-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.li-tabla td { vertical-align: top; }
@media (max-width: 640px) {
  .li-scan-form .btn { flex: 1; }
  .li-campos { grid-template-columns: 1fr; }
}
.li-pend { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); border-left: 5px solid var(--naranjo); }
.li-pend b { font-size: 16px; display: block; margin: 2px 0; }
.li-pend.rojo { border-left-color: var(--rojo); } .li-pend.verde { border-left-color: var(--verde); } .li-pend.azul { border-left-color: var(--azul); } .li-pend.amarillo { border-left-color: var(--amarillo); } .li-pend.gris { border-left-color: var(--gris); }
.li-falta { font-weight: 600; }
.li-falta.rojo { color: var(--rojo); } .li-falta.verde { color: var(--verde); } .li-falta.amarillo { color: var(--amarillo); } .li-falta.gris { color: var(--muted); } .li-falta.azul { color: var(--azul); }
.li-falta-td { min-width: 180px; max-width: 280px; }
.li-autoriza { background: var(--amarillo-bg); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.li-autoriza .li-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.li-mini { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0; }
.li-ejecutar { border-top: 1px solid var(--line); padding-top: 8px; }
.li-avance { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.li-av-td { min-width: 170px; }
.li-avance-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.comp-sitios { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.comp-sitios .card { margin: 0; }
.comp-lista { display: grid; gap: 10px; }
.comp-lista .card { margin: 0; }
.comp-lados { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
@media (max-width: 600px) { .comp-lados { grid-template-columns: 1fr; } }
.comp-acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.comp-fila { padding: 4px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.comp-par .comp-fila:first-of-type { border-top: 0; }
/* Competencia: propuestas de precio */
.cp-kpis { margin-top: 4px; }
.cp-tabs, .cp-filtros { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.cp-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.cp-lista { display: grid; gap: 10px; }
.cp-lista > .card { margin: 0; }
.cp-fila { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
.cp-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cp-prod { flex: 1 1 270px; }
.cp-precio { flex: 1 1 300px; }
.cp-margen { flex: 0 1 170px; }
.cp-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cp-tit { font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.cp-ids { overflow-wrap: anywhere; }
.cp-comp { color: var(--gris); font-weight: 600; }
.cp-nuevo { font-size: 18px; }
.cp-razon { color: var(--gris); line-height: 1.45; }
.cp-canales { font-size: 12.5px; color: var(--azul); background: var(--azul-bg); border-radius: 8px; padding: 6px 9px; line-height: 1.4; }
.cp-acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.cp-rechazo summary { cursor: pointer; color: var(--rojo); }
.cp-cab .cp-met { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.cp-met .l, .cp-canal-g .l, .cp-seg .l { font-size: 12px; font-weight: 700; color: var(--muted); }
.cp-met .v { font-size: 19px; font-weight: 800; }
.cp-met .s, .cp-canal-g .s { font-size: 12px; color: var(--muted); }
.cp-prop.activa { border: 2px solid var(--verde-fuerte); }
.cp-prop-t { font-size: 22px; font-weight: 800; margin-top: 8px; }
.cp-canal-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.cp-canal-g > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cp-canal-g b { font-size: 17px; }
.cp-h2 { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.cp-h2 h2 { margin: 0 0 6px; }
.cp-comp-f { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(150px, 2fr) minmax(130px, 1.6fr) minmax(110px, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.cp-clase > summary { list-style: none; cursor: pointer; }
.cp-clase > summary::-webkit-details-marker { display: none; }
.cp-clase .cp-clase-f { margin-top: 6px; gap: 6px; }
.cp-comp-f.tu { background: var(--azul-bg); border-radius: 10px; padding: 10px; }
.cp-comp-f > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .cp-comp-f { grid-template-columns: 1fr 1fr; } }
.cp-leyenda { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.cp-leyenda i { display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; }
.cp-graf { width: 100%; height: auto; max-height: 280px; }
.cp-dup { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-dup-i { flex: 1 1 240px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.cp-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.cp-seg > div { background: var(--head-bg); border-radius: 10px; padding: 8px 12px; }
.cp-reglas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .cp-reglas { grid-template-columns: 1fr; } }
.cp-regla { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.cp-regla label { font-size: 14px; font-weight: 600; }
.cp-regla input { max-width: 110px; text-align: right; }
.cp-claude { margin: 8px 0; color: #3d1d5c; background: #f3ecfb; border-radius: 8px; padding: 6px 9px; }
@media (max-width: 600px) {
  .cp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cp-kpis .kpi { padding: 12px 14px; }
  .cp-kpis .kpi .s { display: none; }
  .cp-cab .cp-met { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-met .v { font-size: 17px; }
}

/* Módulo en solo lectura: se ocultan los formularios que cambian datos (el servidor igual los rechaza) */
.solo-lectura form[method="post"], .solo-lectura form[method="POST"], .solo-lectura .solo-edicion { display: none !important; }
.li-motivo { margin-top: 3px; color: #7a4100; }
.cp-canales-sel { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; }
.cp-canal { display: inline-flex; gap: 4px; align-items: center; font-weight: 400; }

/* Fullneumáticos: texto solo para lectores de pantalla (etiquetas de formularios en tablas) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Venta por canal: Mercado Libre Full debajo de Mercado Libre, en el mismo bloque */
tr.con-full td { border-bottom: 0; padding-bottom: 4px; }
tr.sub-full td { padding-top: 2px; font-size: 13px; color: var(--muted); }

/* Grilla maestra: una fila por pieza, separadas por día */
.rm-tabla td { vertical-align: middle; }
.rm-tabla tr.rm-dia td { border-top: 2px solid var(--line); }
.rm-tabla tr.rm-mismo td { border-top: 0; }
.rm-tabla td img { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; border-radius: 4px; }
.rs-pasos { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.rs-paso { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); min-width: 140px; }
.rs-paso small { color: var(--muted); font-size: 12.5px; }
.rs-paso b { font-size: 22px; }
.rs-paso.on { border-color: var(--azul, #1f4fa3); box-shadow: 0 0 0 2px rgba(31, 79, 163, .15); }
/* Grilla de redes: cambios propuestos por la diseñadora (octubre 2026) */
.rs-dia .n { display: flex; align-items: center; gap: 4px; }
.rs-dia-mas { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--accent); background: var(--head-bg); text-decoration: none; }
.rs-dia-mas:hover { background: var(--accent); color: #fff; text-decoration: none; }
.rs-dia-cambio { font-size: 10.5px; font-weight: 700; color: var(--azul); background: var(--azul-bg); border-radius: 6px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.rs-cambios { margin-bottom: 16px; }
.rs-cambios ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rs-cambio-fila { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.rs-cambio-fila + .rs-cambio-fila { border-top: 1px solid var(--line); }
.rs-cambio-acc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rs-tabla-cambio td { vertical-align: top; }
.rs-dia-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rs-dia-lista li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-quitar { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rs-quitar label { flex-basis: 100%; margin: 0; }
.rs-quitar input { flex: 1; min-width: 200px; }
@media (max-width: 640px) { .rs-cambio-fila { grid-template-columns: 44px minmax(0, 1fr); } .rs-cambio-acc { grid-column: 2; justify-content: flex-start; } .rs-dia-cambio { display: none; } }

/* Cotizado vs cerrado (cotiz-cierre.js): barras de lo cotizado partidas en cerrado / abierto / perdido */
.cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cc-kpi { background: var(--head-bg); border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 9px 13px; }
.cc-kpi .t { font-size: 12px; color: var(--muted); }
.cc-kpi .v { font-size: 20px; font-weight: 800; }
.cc-kpi .s { font-size: 12px; font-weight: 600; color: var(--muted); }
.cc-barras { height: 250px; }
.cc-barras .stk { width: 100%; max-width: 40px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 5px 5px 0 0; overflow: hidden; flex-shrink: 0; }
.cc-barras .stk span { display: block; width: 100%; flex-shrink: 0; }
.cc-barras .pc { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.cc-barras .pc.parcial { color: var(--muted); }
.cc-barras a.col { gap: 3px; }
.cc-barras a.col:hover .stk { filter: brightness(0.92); }
.cc-barras.mini { height: 128px; gap: 4px; }
.cc-barras.mini .pc { font-size: 10px; }
.cc-barras.mini .stk { max-width: 22px; border-radius: 3px 3px 0 0; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cc-mini { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-mini .cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-mini .meses12 { gap: 4px; font-size: 10px; margin-top: -6px; }

/* Fullneumáticos: campos de formulario en grilla (se ajustan al ancho del celular) */
.fn-campo { min-width: 0; }
.fn-campo input, .fn-campo select { width: 100%; box-sizing: border-box; }

/* Rutas del camión (rutas-camion-web.js): carga en bodega y pantalla del chofer, pensadas para el celular */
.rt-cap { background: var(--verde-bg); border: 1px solid #bfe3d2; color: var(--verde); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.rt-cap.justo { background: var(--amarillo-bg); border-color: #efd99a; color: var(--amarillo); }
.rt-cap.no { background: var(--naranjo-bg); border-color: #f3d3a9; color: var(--naranjo); }
.rt-cap .fila { display: flex; justify-content: space-between; gap: 10px; }
.rt-cap .barra, .rt-top .barra { height: 10px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.rt-cap .barra span { display: block; height: 100%; background: currentColor; }
.rt-escanear form { display: flex; flex-direction: column; gap: 10px; }
.rt-fila { display: flex; gap: 8px; }
.rt-fila input { flex: 1; min-width: 0; height: 48px; font-size: 16px; }
.rt-btn-grande, .rt-btn { min-height: 52px; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; }
.rt-video { display: flex; flex-direction: column; gap: 8px; }
.rt-video[hidden], .rt-escanear [hidden] { display: none !important; }
.rt-video video { width: 100%; max-height: 320px; background: #000; border-radius: var(--radius-s); object-fit: cover; }
.rt-chofer { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.rt-chofer h1 { margin: 0; font-size: 22px; }
.rt-top { background: var(--side); color: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rt-top .fila { display: flex; justify-content: space-between; align-items: baseline; }
.rt-top h1 { color: #fff; }
.rt-top .barra { background: #20406a; }
.rt-top .barra span { display: block; height: 100%; background: var(--nexos-turquesa); }
.rt-actual { background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rt-actual .fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rt-cliente { font-size: 22px; font-weight: 800; line-height: 1.2; }
.rt-dir { font-size: 16px; color: var(--gris); }
.rt-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rt-verde { background: var(--verde-fuerte) !important; border-color: var(--verde-fuerte) !important; color: #fff !important; }
.rt-rojo { color: var(--rojo) !important; }
.rt-rojo-lleno { background: var(--rojo-fuerte) !important; border-color: var(--rojo-fuerte) !important; color: #fff !important; }
.rt-h2 { font-size: 15px; margin: 6px 0 0; color: var(--muted); }
.rt-sig { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
.rt-sig:hover { text-decoration: none; border-color: var(--accent); }
.rt-sig .n { width: 28px; height: 28px; border-radius: 999px; background: var(--gris-bg); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rt-sig .c { flex: 1; min-width: 0; font-weight: 600; }
.rt-sig .h { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rt-form { display: flex; flex-direction: column; gap: 10px; }
.rt-form label { font-weight: 700; }
.rt-form input[type=text], .rt-form input:not([type]), .rt-form input[type=file] { min-height: 48px; font-size: 16px; }
.rt-motivos { display: flex; flex-direction: column; gap: 8px; }
.rt-motivo { display: flex; gap: 10px; align-items: center; min-height: 50px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700 !important; font-size: 16px; }
.rt-motivo:has(input:checked) { border: 2px solid var(--rojo-fuerte); background: var(--rojo-bg); }

/* Mailing por marca (Marketing → Mailing) */
.ml-banda { background: var(--side); color: #fff; border-radius: 16px; padding: 18px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 16px; }
.ml-banda .ml-dato-t, .ml-banda .ml-dato-s { color: #9fb4cf; }
.ml-banda .ml-dato-v { font-size: 24px; }
.ml-banda .ml-acento { color: #5fe0c8; }
.ml-dato { min-width: 0; }
.ml-dato-t { font-size: 12px; color: var(--muted); }
.ml-dato-v { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.ml-dato-v.pos { color: var(--verde-fuerte); }
.ml-dato-s { font-size: 12px; color: var(--muted); }
.ml-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ml-kpis .ml-dato { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ml-kpis .ml-dato-v { font-size: 24px; }
.ml-marcas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ml-marca { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ml-marca:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.ml-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ml-nombre { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.ml-punto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ml-grande { font-size: 28px; font-weight: 800; line-height: 1.1; }
.ml-barra { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; display: flex; margin-top: 4px; }
.ml-barra span { display: block; height: 100%; }
.ml-barra.doble { height: 14px; border-radius: 4px; }
.ml-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.ml-link { font-size: 13px; font-weight: 700; color: var(--accent); }
.ml-leyenda { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.ml-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.ml-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.ml-cols { display: flex; align-items: flex-end; gap: 6px; height: 240px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.ml-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ml-col span { display: block; }
.ml-col .ml-col-v { font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 3px; white-space: nowrap; overflow: hidden; }
.ml-cols-x { display: flex; gap: 6px; margin-top: 4px; }
.ml-cols-x span { flex: 1 1 0; min-width: 0; font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.ml-titulo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 24px; }
.ml-dosc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.ml-dosc .card { margin: 0; }
.ml-paso { margin: 10px 0; }
.ml-corta { min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13px; }
.ml-lista { display: flex; flex-direction: column; gap: 10px; }
.ml-camp { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.ml-camp:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.ml-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ml-mini .ml-dato-v { font-size: 15px; }
.ml-vs { display: flex; gap: 24px; align-items: flex-end; height: 220px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.ml-vs > div { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; text-align: center; }
.ml-vs > div > span { display: block; width: 100%; border-radius: 8px 8px 0 0; min-height: 2px; }
.ml-vs { height: 180px; }
.ml-vs-x { display: flex; gap: 24px; margin-top: 6px; }
.ml-vs-x > div { flex: 1 1 0; text-align: center; }
.ml-linea { border-bottom: 1px solid var(--line-soft); padding: 7px 0; }
@media (max-width: 600px) { .ml-cols-x span:not(:nth-child(4n+1)) { visibility: hidden; } .ml-cols-x { gap: 3px; } .ml-cols { gap: 3px; } .ml-col .ml-col-v { display: none; } .ml-banda .ml-dato-v { font-size: 20px; } }

/* Áreas de negocio de la marca (grilla de redes y de mailing) */
.area-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.area-card { display: grid; gap: 8px; }
.area-card .rs-cab { margin: 0; flex-wrap: wrap; gap: 6px 12px; }
.area-barra { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #eef1f5; }
.area-barra span { display: block; height: 100%; }
.area-ley { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }

/* Grilla de mailing (Marketing → Mailing → Grilla) */
.mlg-propuesta { background: #fff7e6; border-color: #f1d9a6; }
.mlg-aprobada { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; background: #e6f4ee; border: 1px solid #c6e5d5; border-radius: var(--radius-s, 12px); padding: 12px 16px; margin: 12px 0; color: #0d5e46; }
.mlg-aprobada span { color: #1b4535; font-size: 14px; }
.mlg-aprobada .rs-det { flex-basis: 100%; margin: 0; }
.mlg-chip { display: grid; gap: 2px; font-size: 12px; line-height: 1.25; padding: 5px 7px; border-radius: 7px; color: var(--ink); }
.mlg-chip:hover { text-decoration: none; filter: brightness(.97); }
.mlg-chip small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mlg-chip span { font-weight: 700; }
.mlg-chip .mlg-chip-pie { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.mlg-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mlg-filtro { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.mlg-filtro:hover { text-decoration: none; background: var(--head-bg); }
.mlg-filtro.on { background: #032040; color: #fff; border-color: #032040; }
.mlg-lista { display: grid; gap: 10px; }
.mlg-fila { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s, 12px); padding: 12px 14px; color: var(--ink); }
.mlg-fila:hover { text-decoration: none; border-color: #c9d1dc; }
.mlg-fecha { width: 54px; text-align: center; display: grid; flex: none; }
.mlg-fecha b { font-size: 22px; line-height: 1.1; }
.mlg-fecha small { font-size: 12px; color: var(--muted); }
.mlg-thumb { width: 72px; height: 92px; flex: none; border-radius: 8px; border: 1px dashed #c9d1dc; background: #fafbfc; display: grid; place-items: center; overflow: hidden; font-size: 11px; color: var(--muted); text-align: center; padding: 4px; box-sizing: border-box; }
.mlg-thumb.lleno { border-style: solid; padding: 0; background: #eef4f8; }
.mlg-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mlg-txt { flex: 999 1 300px; min-width: 0; display: grid; gap: 3px; }
.mlg-txt b { font-size: 15.5px; }
.mlg-est { flex: 1 1 170px; display: grid; gap: 4px; justify-items: start; }
.mlg-ficha { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.mlg-col1 { flex: 1 1 340px; min-width: 0; display: grid; gap: 14px; }
.mlg-col2 { flex: 999 1 480px; min-width: 0; display: grid; gap: 14px; }
.mlg-col1 .card, .mlg-col2 .card { margin: 0; }
.mlg-diseno { display: grid; gap: 8px; margin-bottom: 6px; }
.mlg-diseno img { width: 100%; max-height: 900px; object-fit: contain; object-position: top; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mlg-subir { margin-top: 12px; }
.mlg-campo { display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid #eef1f5; padding: 8px 0; }
.mlg-campo > div:first-child { flex: 0 0 120px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mlg-campo > div:last-child { flex: 1 1 260px; min-width: 0; font-size: 14px; }
.mlg-bloques { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.mlg-envio { background: #eaf0fa; border-color: #d3def0; }
.mlg-codigo { display: inline-block; font-size: 15px; font-weight: 800; background: #fff; border-radius: 8px; padding: 8px 12px; margin: 4px 0 8px; word-break: break-word; }
.mlg-ia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mlg-ia-var { display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.mlg-ia-var.elegida { border-color: #13795b; box-shadow: inset 0 0 0 1px #13795b; }
.mlg-ia-var img { width: 100%; display: block; border-radius: 6px; }
.mlg-ia-acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mlg-ia-acc form { margin: 0; }
/* Revisión de Claude por marca */
.mlr-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mlr-area { border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.mlr-area-n { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.mlr-area-v { font-size: 20px; font-weight: 800; }
.mlr-sug { margin: 0 0 10px; display: grid; gap: 6px; }
.mlr-sug-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mlr-camp { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.mlr-camp-n { flex: 1 1 240px; min-width: 0; }
.mlr-camp-s { flex: 2 1 320px; min-width: 0; }
@media (max-width: 600px) { .mlg-fila { gap: 10px; } .mlg-thumb { width: 56px; height: 72px; } }
.mlg-vistas { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rs-mesnav .mlg-vistas .btn { font-size: 13.5px; min-width: 0; }
.mlg-subir input[type=file] { width: 100%; max-width: 100%; box-sizing: border-box; }
#ia.rs-ia { margin-top: 14px; }
#ia .rs-form-fila input:not([type=checkbox]) { width: 100%; box-sizing: border-box; }

/* Bodega Nexos (flujo de despacho) */
.bf-apagado { margin-bottom: 10px; }
.bf-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.bf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bf-kpi { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); }
.bf-kpi:hover { text-decoration: none; border-color: #c9d1dc; }
.bf-kpi.foco { border: 2px solid #d9a441; }
.bf-kpi .t { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.bf-kpi b { font-size: 28px; line-height: 1.1; }
.bf-kpi .d { font-size: 12px; color: var(--muted); }
.bf-kpi .ver { font-size: 12px; font-weight: 700; color: var(--accent, #1e4fa3); }
.bf-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.bf-dos .card { margin: 0 0 14px; }
.bf-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bf-cab h2 { margin: 0; }
.bf-fila { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.bf-fila:last-child { border-bottom: 0; }
.bf-equipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.bf-equipo > div { display: grid; gap: 2px; background: var(--head-bg); border-radius: 10px; padding: 10px 12px; }
.bf-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bf-filtro { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.bf-filtro:hover { text-decoration: none; }
.bf-filtro.on { background: #032040; color: #fff; border-color: #032040; }
.bf-repo { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.bf-repo .bf-lista { flex: 999 1 520px; min-width: 0; margin: 0; }
.bf-repo .bf-oleada { flex: 1 1 300px; min-width: 0; margin: 0; display: grid; gap: 10px; }
.bf-lista { padding: 4px 0; }
.bf-lista .bf-cab { padding: 8px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.bf-venta { display: flex; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); cursor: default; }
.bf-venta:last-child { border-bottom: 0; }
.bf-venta input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.bf-hora { width: 96px; flex: none; display: grid; }
.bf-hora b { font-size: 13px; }
.bf-hora.hoy b { color: #7a5300; }
.bf-hora small { font-size: 11px; color: var(--muted); }
.bf-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.bf-txt small { font-size: 12px; color: var(--muted); }
.bf-der { flex: none; text-align: right; }
/* Bodega: buscador, detalle por canal y filas con enlaces (18-10-2026) */
.bf-bq { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.bf-bq-in { display: flex; gap: 8px; }
.bf-bq-in input { flex: 1 1 auto; min-width: 0; font-size: 15px; }
.bf-bq-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-bq-sel select { width: auto; max-width: 100%; font-size: 13px; padding: 6px 8px; border-radius: 9px; background: var(--head-bg); font-weight: 600; }
.bf-bq-act { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.bf-bq-act b { color: var(--ink); }
.bf-tag { display: inline-flex; align-items: center; background: var(--azul-bg); color: var(--azul); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 12px; margin: 2px 2px 2px 0; }
.bf-tag:hover { text-decoration: none; background: #dbe5f6; }
.btn.bf-xls { background: var(--verde-fuerte); border-color: var(--verde-fuerte); color: #fff; }
.bf-est { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.bf-est a { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.bf-est a:hover { text-decoration: none; border-color: #c9d1dc; }
.bf-est a i { font-style: normal; font-size: 11.5px; background: var(--gris-bg); border-radius: 999px; padding: 0 7px; color: var(--gris); }
.bf-est a.on { background: #032040; color: #fff; border-color: #032040; }
.bf-est a.on i { background: var(--azul); color: #fff; }
.bf-est a.r i { background: var(--rojo-bg); color: var(--rojo); }
.bf-pc a.bf-num { display: inline-block; min-width: 30px; font-weight: 700; font-size: inherit; }
.bf-pc a.bf-num.r { color: var(--rojo-fuerte); }
.bf-pc-m { display: none; }
.bf-pc-c { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.bf-pc-c:hover { text-decoration: none; border-color: #c9d1dc; }
.bf-pc-c .nm { font-weight: 800; font-size: 15px; }
.bf-pc-c .vv { font-size: 12.5px; font-weight: 700; color: var(--azul); align-self: center; }
.bf-pc-c .ns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.bf-pc-c .ns span { font-size: 12px; background: var(--bg); border-radius: 8px; padding: 3px 8px; }
.bf-pc-c .ns span.r { background: var(--rojo-bg); color: var(--rojo); }
.bf-pc-r { display: none; }
.bf-pc-f { display: grid; grid-template-columns: 27% repeat(5, 1fr); align-items: center; border-top: 1px solid var(--line); font-size: 14px; }
.bf-pc-f > span { padding: 8px 2px; text-align: center; min-width: 0; }
.bf-pc-f > span:first-child { text-align: left; font-weight: 800; }
.bf-pc-f > span:first-child a { color: var(--ink); }
.bf-pc-f.cab { border-top: 0; }
.bf-pc-f.cab > span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); line-height: 1.2; padding: 4px 2px 6px; hyphens: manual; }
.bf-pc-f.tot { background: var(--head-bg); font-weight: 800; border-radius: 0 0 10px 10px; }
.bf-pc-f a.bf-num { min-width: 0; }
.bf-pc tr.bf-tot td { background: var(--head-bg); font-weight: 800; }
@media (max-width: 900px) { .bf-pc-t { display: none; } .bf-pc-r { display: block; margin-bottom: 14px; } .bf-pc-m { display: grid; gap: 8px; } }
.bf-vt { display: grid; grid-template-columns: 22px 96px minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.bf-vt.sinchk { grid-template-columns: 96px minmax(0, 1fr) auto; }
.bf-vt:last-child { border-bottom: 0; }
.bf-vt input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
.bf-vt .h b { display: block; font-size: 13px; }
.bf-vt .h small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.bf-vt .h.neg b { color: var(--rojo-fuerte); }
.bf-vt .h.hoy b { color: var(--amarillo); }
.bf-vt .x { min-width: 0; }
.bf-vt .p { font-weight: 700; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.bf-vt .ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bf-vt .ids > * { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 2px 8px; overflow-wrap: anywhere; }
.bf-vt .ids a { border: 1px solid #c9d6ea; background: #f4f7fc; color: var(--azul); }
.bf-vt .ids a:hover { text-decoration: none; background: var(--azul-bg); }
.bf-vt .ids .bol { border: 1px solid #bfe0d2; background: #eef8f3; color: var(--verde); }
.bf-vt .ids .sinbol { background: var(--amarillo-bg); color: var(--amarillo); }
.bf-vt .ids .vend { background: #efe7fb; color: #5b2a9e; }
.bf-vt .ids .vend.canal { background: var(--gris-bg); color: var(--gris); }
.bf-vt .d { display: grid; gap: 4px; justify-items: end; text-align: right; }
@media (max-width: 900px) {
  .bf-vt, .bf-vt.sinchk { grid-template-columns: 22px minmax(0, 1fr); }
  .bf-vt.sinchk { grid-template-columns: minmax(0, 1fr); }
  .bf-vt .h, .bf-vt .x, .bf-vt .d { grid-column: -2; }
  .bf-vt .h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .bf-vt .h b, .bf-vt .h small { display: inline; }
  .bf-vt .d { display: flex; flex-wrap: wrap; gap: 6px; justify-items: start; text-align: left; align-items: center; }
  .bf-vt input[type=checkbox] { grid-row: 1 / span 3; }
}
.bf-pag { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 4px 0 14px; }
.bf-personas { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-personas label { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.bf-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.bf-picks .card { margin: 0; }
.bf-estacion { max-width: 560px; display: grid; gap: 12px; }
.bf-estacion .card { margin: 0; }
.bf-scan { display: grid; gap: 8px; }
.bf-scan-fila { display: flex; gap: 8px; }
.bf-scan-fila input { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.bf-cam { min-height: 48px; }
.bf-video { display: grid; gap: 6px; }
.bf-video video { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; background: #0e1726; }
.bf-tv .bf-cab { margin: 0; }
.bf-items { padding: 4px 14px; }
.bf-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bf-item:last-child { border-bottom: 0; }
.bf-it-txt { flex: 1 1 auto; min-width: 0; display: grid; }
.bf-it-txt small { color: var(--muted); font-size: 12px; }
.bf-it-n { font-size: 18px; color: #7a5300; }
.bf-item.ok .bf-it-n { color: #0d5e46; }
.bf-it-acc { display: flex; gap: 4px; }
.bf-it-acc form { margin: 0; }
.bf-it-acc .btn { min-width: 44px; min-height: 40px; }
.bf-foto { display: grid; gap: 8px; }
.bf-foto img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; background: #f3f5f8; }
.bf-grande { width: 100%; min-height: 52px; font-size: 16px; }
.bf-grande[disabled] { opacity: .45; }
.bf-rojo { background: #b42318; color: #fff; border-radius: 16px; padding: 22px 20px; display: grid; gap: 8px; }
.bf-rojo .t { font-size: 26px; font-weight: 800; line-height: 1.15; }
.bf-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bf-grupo { margin: 0; display: grid; gap: 2px; color: var(--ink); }
.bf-grupo:hover { text-decoration: none; border-color: #c9d1dc; }
.bf-grupo.on { border: 2px solid #1e4fa3; }
.bf-n { font-size: 28px; font-weight: 800; }
.bf-cerrar { display: grid; gap: 6px; margin-top: 10px; }
.bf-dir form .btn { min-height: 36px; }
@media (max-width: 600px) { .bf-venta { gap: 8px; padding: 9px 10px; } .bf-hora { width: 72px; } .bf-der { display: none; } }
/* Hoja de pickeo y planilla de entrega (se imprimen) */
.bf-hoja { background: #fff; color: #0e1726; padding: 32px; max-width: 900px; margin: 0 auto; font-family: Manrope, system-ui, sans-serif; }
.bf-hoja-cab { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #0e1726; padding-bottom: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.bf-hoja-cab h1 { margin: 2px 0; font-size: 30px; }
.bf-hoja-cab .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6576; }
.bf-hoja-cab .der { text-align: right; display: grid; gap: 4px; justify-items: end; }
.bf-hoja-t { width: 100%; border-collapse: collapse; }
.bf-hoja-t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5b6576; border-bottom: 1px solid #c9d1dc; padding: 6px 4px; }
.bf-hoja-t td { border-bottom: 1px solid #e4e8ee; padding: 9px 4px; font-size: 15px; vertical-align: middle; }
.bf-hoja-t .n { text-align: right; font-size: 26px; font-weight: 800; }
.bf-hoja-t .ok { text-align: center; width: 60px; }
.bf-hoja-t .caja { display: inline-block; width: 24px; height: 24px; border: 2px solid #0e1726; border-radius: 5px; }
.bf-hoja-pie { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; border-top: 1px solid #c9d1dc; padding-top: 10px; font-size: 13px; }
@media print { .no-imprimir { display: none !important; } .bf-hoja { padding: 0; } }
.bf-video[hidden], .bf-cam[hidden] { display: none !important; }
.bf-it-n { white-space: nowrap; }

/* Buscador de pedidos del menú (Ficha del pedido) */
.menu-buscar { margin: 0 8px 14px; }
.menu-buscar input { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; }
.menu-buscar input::placeholder { color: rgba(255,255,255,.6); }
.menu-buscar input:focus { outline: 2px solid var(--nexos-turquesa); background: rgba(255,255,255,.14); }
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ficha-grid .card { margin: 0; }
@media (max-width: 900px) { .ficha-grid { grid-template-columns: 1fr; } }
/* Tesorería › Conciliación bancaria */
.cb-tabla td { vertical-align: top; }
.cb-tabla input { font-size: 13px; padding: 4px 6px; }
.cb-tabla tr.cb-pend td:first-child { box-shadow: inset 3px 0 0 var(--amarillo); }
.cb-tabla tr.cb-pend td { font-weight: 600; }
.cb-tabla tr.cb-guardando { opacity: .6; }
.cb-tabla tr.cb-ok td { background: var(--verde-bg, #e8f5ee); transition: background .3s; }
.cb-guardar[hidden] { display: none !important; }
/* Pagos y boletas: cruce con Logística y Logística inversa */
.mp-seg { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--gris-bg); font-size: 13px; }
.mp-seg-que { margin-bottom: 4px; }
.mp-seg-f { display: grid; grid-template-columns: 118px 1fr; gap: 8px; padding: 2px 0; }
@media (max-width: 640px) { .mp-seg-f { grid-template-columns: 1fr; gap: 0; } }
/* Bodega › Mis ventas: despacho o retiro */
.bf-mv { padding: 12px 14px; margin-bottom: 10px; }
.bf-mv-pend { box-shadow: inset 4px 0 0 var(--amarillo); }
.bf-mv-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.bf-mv-btn { margin: 10px 0 0; flex-wrap: wrap; }
.bf-mv-btn .btn:not(.chico) { min-width: 120px; }
/* Resumen: productos más vendidos */
.tp-tabla td { vertical-align: top; }
.tp-bajo { color: var(--naranjo, #b45309); font-weight: 600; }
/* Ficha del pedido: N° de seguimiento destacado (para copiarlo y mandárselo al cliente) */
.fp-seg { font-size: 1.1em; letter-spacing: .02em; user-select: all; }
.bf-max { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.bf-max input { width: 80px; }
/* Proveedores y logística › Courier */
.cr-env { padding: 14px 16px; margin-bottom: 10px; }
.cr-pend { box-shadow: inset 4px 0 0 var(--amarillo); }
.cr-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cr-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.cr-dato { display: flex; flex-direction: column; }
.cr-copia { cursor: copy; user-select: all; }
.cr-copia.cr-copiado { background: var(--verde-bg); border-radius: 4px; }
.cr-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 10px; align-items: end; margin-top: 6px; }
.cr-form label { display: flex; flex-direction: column; gap: 2px; }
.cr-form .cr-ancho { grid-column: 1 / -1; }
/* Bodega: cruce etiqueta ↔ boleta (16-10-2026) */
.bf-hoja-h2 { font-size: 16px; margin: 22px 0 6px; page-break-before: auto; }
.bf-cruce td { font-size: 13px; padding: 6px 4px; }
.bf-cruce .n { font-size: 16px; }
div.bf-cruce { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #eef6ee; border: 1px solid #b9dcb9; font-size: 14px; }
div.bf-cruce.bf-cruce-mal { background: #fff6e0; border-color: #f0d48a; }

/* Botones desactivados (Courier: Ecourier fuera de la RM, datos que faltan) */
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
/* Courier: punto de color de cada etapa en las pestañas */
.cr-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.cr-punto.cr-naranjo { background: #e8833a; } .cr-punto.cr-amarillo { background: #e3b31c; } .cr-punto.cr-verde { background: #2e9e5b; } .cr-punto.cr-violeta { background: #7b52c7; } .cr-punto.cr-rojo { background: #d0453b; }
/* Cotizador: documento y entrega */
.ent-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.ent-op { border: 2px solid #d5dce6; border-radius: 12px; padding: 12px 14px; background: #fff; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ent-op input { margin-top: 3px; flex: 0 0 auto; }
.ent-op b { display: block; }
.ent-op small { display: block; color: #5b6576; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ent-op.on { border-color: #1e4fa3; background: #f3f7fe; box-shadow: 0 0 0 3px rgba(30, 79, 163, .12); }
@media (max-width: 640px) { .ent-opciones { grid-template-columns: 1fr; } }
.velo-modal { position: fixed; inset: 0; background: rgba(10, 20, 40, .45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.modal-caja { background: #fff; color: #1d2433; border-radius: 16px; max-width: 460px; width: 100%; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal-caja h2 { margin: 0 0 6px; }
.resumen-ent { background: #f3f7fe; border: 1px solid #cfdcf3; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.resumen-ent .big { font-size: 17px; font-weight: 800; color: #1e4fa3; margin-bottom: 8px; }
.dl2 { display: grid; grid-template-columns: 90px 1fr; gap: 3px 10px; font-size: 14px; margin: 0; }
.dl2 dt { color: #5b6576; } .dl2 dd { margin: 0; }
#card-entrega [hidden] { display: none !important; }
/* Despachos: recuadros por transporte (rutas-courier.js) */
.cr-tr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
@media (max-width: 1100px) { .cr-tr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cr-tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.cr-tr { background: #fff; border: 2px solid #e3e8ef; border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; display: block; min-width: 0; }
.cr-tr.on { border-color: #1e4fa3; box-shadow: 0 0 0 3px rgba(30, 79, 163, .12); background: #f7faff; }
.cr-tr-t { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cr-tr-n { font-size: 24px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.cr-tr-et { display: grid; gap: 2px; margin-top: 8px; border-top: 1px solid #eef1f5; padding-top: 6px; font-size: 12.5px; }
.cr-tr-et span { display: flex; justify-content: space-between; gap: 6px; }
.cr-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cr-tag.api { background: #e7f6ec; color: #16794a; } .cr-tag.man { background: #fff4d6; color: #8a5a00; } .cr-tag.prop { background: #eef3fb; color: #1e4fa3; }
.cr-item { border: 1px solid #e3e8ef; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; background: #fff; }
.cr-item-c { display: flex; justify-content: space-between; gap: 10px; }

/* Mercado Libre → Full (ventas, envíos y agotados en una sola pantalla) */
.kpis.gf-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.gf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gf-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gf-h h2 { margin: 0; }
.gf-wrap { width: 100%; overflow: hidden; }
.gf-svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.gf-svg .gl { stroke: var(--line); stroke-width: 1; }
.gf-svg .yt { font-size: 10px; fill: var(--muted); }
.gf-svg .b { fill: #7f9cc9; }
.gf-svg .b-act { fill: var(--accent); }
.gf-svg .v { font-size: 10.5px; fill: var(--ink); }
.gf-svg .vp { font-size: 11px; font-weight: 700; fill: var(--accent); }
.gf-svg .meta { stroke: #e67e22; stroke-width: 2.5; stroke-dasharray: 5 3; }
.gf-svg .mt { font-size: 10.5px; font-weight: 700; fill: #e67e22; }
.gf-svg .mes { font-size: 11px; fill: var(--muted); }
.gf-svg .mes.sel { font-weight: 800; fill: var(--ink); }
.gf-ley { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.gf-ley i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.gf-ley i.ray { background: repeating-linear-gradient(45deg, #9fb6dd 0 3px, #dbe5f4 3px 6px); }
.gf-barra { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; position: relative; margin-top: 8px; }
.gf-barra .r { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.gf-barra .p { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #9fb6dd 0 6px, #c4d3ec 6px 12px); }
.gf-op { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
@media (max-width: 900px) { .gf-op { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gf-op > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.gf-op b { display: block; font-size: 22px; line-height: 1.15; }
.gf-op span { font-size: 12.5px; color: var(--muted); }
.gf-op .rojo { background: var(--rojo-bg, #fff5f4); border-color: #f3c9c4; }
.gf-op .rojo b, .gf-op .rojo strong { color: var(--rojo-fuerte); }
.gf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gf-tabs a { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.gf-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gf-tabs .n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); font-size: 12px; margin-left: 4px; text-align: center; }
.gf-tabs a.on .n { background: rgba(255, 255, 255, .25); color: #fff; }
.gf-tabs .n.r { background: #e74c3c; color: #fff; }
.gf-cuerpo { margin-top: 16px; }
.tf-envio th, .tf-envio td { padding-left: 7px; padding-right: 7px; }
.tabla-ml.tf-envio td:first-child { min-width: 150px; }
.tf-envio td:nth-child(11) { white-space: normal !important; min-width: 120px; }
.tf-envio td:nth-child(11) input { margin-top: 3px; }
.tf-envio td:nth-child(10) { min-width: 110px; }
.tf-envio th { font-size: 12px; white-space: normal !important; }
.tf-envio td:nth-child(2) { white-space: normal !important; }
@media (max-width: 700px) {
  .gf-svg .v, .gf-svg .yt { display: none; }
  .gf-svg .mes { font-size: 26px; }
  .gf-svg .mes.impar { display: none; }
  .gf-svg .vp, .gf-svg .mt { font-size: 24px; }
  .gf-tabs a { padding: 7px 10px; font-size: 12.5px; }
}
/* Tablas de Full en pantallas angostas: cada fila es una ficha (sin moverse hacia el lado) */
@media (max-width: 1150px) {
  .tabla-fichas thead { display: none; }
  .tabla-fichas, .tabla-fichas tbody, .tabla-fichas tr, .tabla-fichas td { display: block; width: 100%; }
  .tabla-fichas tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
  .tabla-fichas td { border: 0 !important; padding: 3px 0 !important; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
  .tabla-fichas td > div { text-align: right; }
  .tabla-fichas td:first-child { display: block; text-align: left; border-bottom: 1px solid var(--line) !important; padding-bottom: 6px !important; margin-bottom: 4px; }
  .tabla-fichas td:first-child > div { text-align: left; }
  .tabla-fichas td::before { color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; }
  .tabla-fichas td:first-child::before { content: none; }
  .tf-envio td:nth-child(2)::before { content: 'Vendidas por semana'; }
  .tf-envio td:nth-child(3)::before { content: 'Venta semanal'; }
  .tf-envio td:nth-child(4)::before { content: 'Stock Full'; }
  .tf-envio td:nth-child(5)::before { content: 'En camino'; }
  .tf-envio td:nth-child(6)::before { content: 'Cobertura'; }
  .tf-envio td:nth-child(7)::before { content: 'Objetivo'; }
  .tf-envio td:nth-child(8)::before { content: 'Enviar'; }
  .tf-envio td:nth-child(9)::before { content: 'Bodega'; }
  .tf-envio td:nth-child(10)::before { content: 'Aviso'; }
  .tf-envio td:nth-child(11)::before { content: 'En la lista'; }
  .tf-envio td:nth-child(10):empty { display: none; }
  .tf-agot td:nth-child(2)::before { content: 'Agotada desde'; }
  .tf-agot td:nth-child(3)::before { content: 'Vendidas 30 días'; }
  .tf-agot td:nth-child(4)::before { content: 'Stock bodega'; }
  .tf-agot td:nth-child(5)::before { content: 'Qué hacer'; }
  .tf-agot td:nth-child(6)::before { content: 'Aviso'; }
}
/* Couriers por mes (18-10-2026) */
.cm-mes { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.cm-mes h2 { margin: 0; font-size: 22px; min-width: 9ch; text-align: center; }
.cm-mes .btn { min-width: 38px; justify-content: center; }
.cm-leg { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cm-leg span { display: inline-flex; gap: 5px; align-items: center; }
.cm-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cm-dos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; margin-bottom: 14px; }
.cm-dos .card { margin: 0; }
@media (max-width: 1100px) { .cm-dos { grid-template-columns: minmax(0, 1fr); } }
.cm-t td, .cm-t th { padding: 8px 10px; font-size: 13px; }
.cm-t tr.bf-tot td { background: var(--head-bg); font-weight: 800; }
.cm-dif { border-top: 1px solid var(--line); padding: 8px 0; }
.cm-dif summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .cm-t td, .cm-t th { padding: 8px 5px; font-size: 12.5px; } .cm-t .cm-o { display: none; } }
/* Cotizador: "Despachar a los datos del cliente" */
.ent-mismos { display: flex; gap: 8px; align-items: center; margin: 2px 0 8px; font-weight: 600; cursor: pointer; flex-wrap: wrap; }
.ent-mismos input { width: auto; margin: 0; }
.ent-mismos small { font-weight: 400; }
#despacho-mismos-aviso { margin: -4px 0 8px; }
/* Bodega Nexos · etapa 1: celular del pickeador, estación de impresión, equipo y TV */
.e1-movil { max-width: 560px; margin: 0 auto; }
.e1-big { width: 100%; padding: 14px; font-size: 16px; font-weight: 800; border-radius: 14px; }
.e1-top { background: #0f2440; color: #fff; border-radius: 16px; padding: 14px 16px; margin: 10px 0 12px; }
.e1-top .k { font-size: 12px; opacity: .75; } .e1-top h2 { margin: 2px 0 8px; font-size: 20px; color: #fff; }
.e1-bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,.2); overflow: hidden; margin-bottom: 4px; } .e1-bar i { display: block; height: 100%; background: #2dd4bf; }
.e1-mini { display: flex; gap: 8px; margin-top: 10px; } .e1-mini div { flex: 1; background: rgba(255,255,255,.1); border-radius: 10px; padding: 6px 8px; font-size: 11px; } .e1-mini b { display: block; font-size: 16px; }
.e1-ln { background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 11px 12px; margin-bottom: 9px; }
.e1-ln .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .e1-ln .sku { font-weight: 800; font-size: 15px; } .e1-ln .qty { font-weight: 800; font-size: 22px; margin-left: auto; }
.e1-ln .p { font-size: 13px; color: #4b5567; margin: 2px 0 8px; } .e1-ln.listo { opacity: .6; } .e1-ln.listo .p { margin-bottom: 2px; }
.e1-urg { font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 2px 6px; }
.e1-btns { display: flex; gap: 8px; align-items: flex-start; } .e1-btns > form { flex: 1; margin: 0; } .e1-btns .b { width: 100%; }
.e1-ln .b { border: 0; border-radius: 10px; padding: 11px 6px; font-weight: 700; font-size: 14px; text-align: center; cursor: pointer; display: block; list-style: none; }
.e1-ln .b.ok { background: #0f766e; color: #fff; } .e1-ln .b.half { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; } .e1-ln .b.no { background: #be123c; color: #fff; width: 100%; }
.e1-falta { flex: 1; } .e1-falta summary::-webkit-details-marker { display: none; } .e1-falta[open] { flex-basis: 100%; }
.e1-sheet { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid #fecdd3; background: #fff1f2; border-radius: 12px; } .e1-sheet label { font-size: 14px; }
.e1-foot { position: sticky; bottom: 0; background: #f4f6f9; padding: 10px 0; text-align: center; }
.e1-link { background: none; border: 0; color: #5b6576; text-decoration: underline; font-size: 13px; cursor: pointer; padding: 0; }
.e1-empezar { text-align: center; }
.e1-kp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .e1-kc { background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 12px; } .e1-kc .k { font-size: 12px; color: #5b6576; } .e1-kc b { font-size: 26px; display: block; }
.e1-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 12px 0; }
.e1-per { background: #fff; border: 2px solid #e3e8ef; border-radius: 16px; padding: 16px; } .e1-per h3 { margin: 0; font-size: 19px; } .e1-per .st { font-size: 13px; color: #5b6576; margin: 4px 0 12px; min-height: 34px; }
.e1-per.ready { border-color: #0f766e; background: #f0fdfa; } .e1-per.off { opacity: .55; } .e1-per summary { list-style: none; text-align: center; }
.e1-pdf { width: 1px; height: 1px; border: 0; position: absolute; left: -9999px; }
.e1-alert { border: 2px solid #fecdd3; background: #fff1f2; border-radius: 14px; padding: 12px 14px; margin: 10px 0; } .e1-alert h4 { margin: 0 0 4px; color: #9f1239; }
.e1-bandeja { border: 2px solid #dc2626; background: #fef2f2; color: #7f1d1d; border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 14px; } .e1-bandeja .t { font-weight: 800; margin-bottom: 4px; color: #b91c1c; }
.e1-fv { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; } .e1-fv li { margin: 2px 0; }
.tv-body { background: #0b1424; color: #e6edf7; margin: 0; padding: 26px 30px; font-size: 18px; min-height: 100vh; }
.tv-h { display: flex; justify-content: space-between; align-items: baseline; } .tv-h h1 { margin: 0; font-size: 34px; color: #e6edf7; } .tv-h .t { font-size: 32px; font-weight: 800; color: #2dd4bf; }
.tv-est { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 20px 0; } .tv-e { background: #14213a; border-radius: 14px; padding: 14px; } .tv-e .k { font-size: 13px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; } .tv-e b { font-size: 44px; display: block; } .tv-e.red { background: #4c1424; } .tv-e.red b { color: #fda4af; }
.tv-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; } .tv-card { background: #14213a; border-radius: 14px; padding: 16px 18px; } .tv-card h3 { margin: 0 0 10px; font-size: 18px; color: #9fb0c9; text-transform: uppercase; letter-spacing: .06em; }
.tv-p { display: grid; grid-template-columns: 180px 1fr 100px 80px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #1f2d48; font-size: 20px; } .tv-p.off { opacity: .4; }
.tv-bar { height: 14px; background: #1f2d48; border-radius: 8px; overflow: hidden; } .tv-bar i { display: block; height: 100%; background: #2dd4bf; } .tv-bar i.w { background: #f59e0b; }
.tv-v { display: flex; justify-content: space-between; font-size: 20px; padding: 7px 0; border-bottom: 1px solid #1f2d48; } .tv-v.sub { font-size: 16px; opacity: .85; } .tv-v .h { color: #fbbf24; font-weight: 800; }
@media (max-width: 900px) { .tv-est { grid-template-columns: repeat(3, 1fr); } .tv-cols { grid-template-columns: 1fr; } .tv-p { grid-template-columns: 110px 1fr 70px 60px; font-size: 16px; } }
/* Marketing · Plan de pauta */
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 12px 0; }
.pp-kpi { background: #fff; border: 1px solid #e4e8ee; border-radius: 12px; padding: 14px 16px; } .pp-kpi .l { font-size: 12px; font-weight: 700; color: #5b6576; } .pp-kpi .v { font-size: 23px; font-weight: 800; } .pp-kpi .v .a { font-size: 13px; color: #5b6576; font-weight: 600; } .pp-kpi .d { font-size: 12.5px; font-weight: 700; color: #5b6576; } .pp-kpi .d.pos { color: #13795b; } .pp-kpi .d.neg { color: #b42318; }
.pp-aviso { border-left: 4px solid #b45309; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; } @media (max-width: 1050px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-tienda { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px; gap: 10px; align-items: center; margin: 10px 0; } .pp-tienda .r { text-align: right; } @media (max-width: 560px) { .pp-tienda { grid-template-columns: 1fr; } .pp-tienda .r { text-align: left; } }
.pp-bar { height: 9px; border-radius: 5px; margin: 3px 0; } .pp-bar.old, .pp-dot.old { background: #c9d1dc; } .pp-bar.new, .pp-dot.new { background: #07b6b6; } .pp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 4px 0 8px; }
.pp-paso { margin: 8px 0 12px; } .pp-check { display: flex; gap: 8px; align-items: flex-start; margin: 5px 0; font-size: 13px; } .pp-box { width: 20px; height: 20px; border: 2px solid #9aa6b8; border-radius: 5px; background: #fff; flex: 0 0 auto; cursor: pointer; font-weight: 800; line-height: 14px; padding: 0; color: #fff; } .pp-box.on { background: #07b6b6; border-color: #07b6b6; } .tachado { text-decoration: line-through; color: #5b6576; }
.pp-fils { display: flex; gap: 6px; flex-wrap: wrap; } .pp-fil { border: 1px solid #e4e8ee; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: #0e1726; background: #fff; } .pp-fil.on { background: #032040; border-color: #032040; color: #fff; }
.pp-t tr.pp-g td { background: #f7f9fc; font-weight: 800; }
.pp-plat { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 4px; padding: 1px 5px; margin-right: 6px; } .pp-plat.G { background: #eaf0fa; color: #1e4fa3; } .pp-plat.M { background: #eef1f5; color: #0e1726; }
.pp-det summary { cursor: pointer; list-style: none; } .pp-cajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; margin: 10px 0; font-size: 12.5px; color: #3f4a5c; } .pp-aj { margin-top: 6px; flex-wrap: wrap; }
.pp-chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pp-chip.up, .pp-track i.up { background: #e6f4ee; color: #13795b; } .pp-chip.keep, .pp-track i.keep { background: #eaf0fa; color: #1e4fa3; } .pp-chip.test, .pp-track i.test { background: #e0f7f7; color: #0a7f8f; } .pp-chip.rev, .pp-track i.rev { background: #fdf1e3; color: #b45309; } .pp-chip.down, .pp-track i.down { background: #fdf1e3; color: #b45309; } .pp-chip.stop, .pp-track i.stop { background: #fbe9e7; color: #b42318; } .pp-chip.done, .pp-track i.done { background: #eef1f5; color: #3f4a5c; }
.pp-track i.up { background: #13795b; } .pp-track i.keep { background: #1e4fa3; } .pp-track i.test { background: #07b6b6; } .pp-track i.rev, .pp-track i.down { background: #d97706; } .pp-track i.stop { background: #b42318; } .pp-track i.done { background: #9aa6b8; }
.pp-acos { min-width: 110px; } .pp-track { position: relative; height: 8px; border-radius: 4px; background: #eef1f5; } .pp-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; } .pp-track .eq { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #0e1726; }

.e1-ubic { font-size: 14px; background: #eef4ff; border-radius: 8px; padding: 4px 8px; margin-bottom: 6px; } .e1-cant { font-size: 13px; margin: -4px 0 8px; }
[data-cambio][hidden] { display: none !important; }

.rt-cap .rt-var { margin-top: 8px; } .rt-cap .rt-l { display: flex; justify-content: space-between; gap: 10px; color: var(--texto, #16233a); }
.rt-cap .barra span.ok { background: #13795b; } .rt-cap .barra span.justo { background: #d39b00; } .rt-cap .barra span.no { background: #b42318; }
.rt-cap .rt-chip { border-radius: 999px; padding: 3px 12px; font-weight: 700; color: #fff; } .rt-chip.ok { background: #13795b; } .rt-chip.justo { background: #c58a00; } .rt-chip.no { background: #b42318; }
.rt-cap .rt-res { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.08); color: var(--texto, #16233a); }
.rt-cap.ok { background: var(--verde-bg); border-color: #bfe3d2; color: var(--verde); }

.rt-razones { margin: 4px 0 8px 26px; display: flex; flex-direction: column; gap: 4px; } .rt-motivo.rt-sub { font-size: 14px; padding: 8px 10px; }
