/* Quento Visión — panel. Sin fuentes externas ni JavaScript. Siempre en modo oscuro
   (claro solo al imprimir). Los tokens son los mismos que local-agent/web/comun.css.
   Íconos: trazos de Lucide (https://lucide.dev), licencia ISC, © Lucide Contributors. */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }

:root {
  --ground: #0F1315;
  --surface: #171C1F;
  --surface-2: #1E2529;
  --ink: #E9ECEB;
  --ink-2: #A9B3B5;
  --ink-3: #8A9497;
  --line: #283033;
  --line-strong: #3A4448;
  --accent: #4BB6C1;
  --accent-hover: #6CC6CF;
  --accent-ink: #83D2DA;
  --accent-soft: #11343A;
  --on-accent: #0F1315;
  --ok: #62C074;
  --ok-soft: #153120;
  --warn: #D8A03F;
  --warn-soft: #332811;
  --bad: #E4796A;
  --bad-soft: #37191A;
  --on-bad: #0F1315;
  --bar-on: #4BB6C1;
  --bar-bg: #242B2F;
  --bar-future: #1A2023;
  --bar-pause: #D8A03F;     /* sin medición: la cámara estaba movida (02/10) */
  --bar-horario: #1D4A51;   /* horario de trabajo, de fondo en la barra (23/10) */
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -18px rgba(0, 0, 0, .75);
  --f-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  /* íconos (Lucide, ISC) */
  --i-tablero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Crect width='7' height='9' x='3' y='3' rx='1' /%3E%3Crect width='7' height='5' x='14' y='3' rx='1' /%3E%3Crect width='7' height='9' x='14' y='12' rx='1' /%3E%3Crect width='7' height='5' x='3' y='16' rx='1' /%3E%3C/svg%3E");
  --i-grafico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 3v16a2 2 0 0 0 2 2h16' /%3E%3Cpath d='M18 17V9' /%3E%3Cpath d='M13 17V5' /%3E%3Cpath d='M8 17v-3' /%3E%3C/svg%3E");
  --i-ajustes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915' /%3E%3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E");
  --i-usuario: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Ccircle cx='12' cy='10' r='3' /%3E%3Cpath d='M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662' /%3E%3C/svg%3E");
  --i-salir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m16 17 5-5-5-5' /%3E%3Cpath d='M21 12H9' /%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' /%3E%3C/svg%3E");
  --i-entrar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m10 17 5-5-5-5' /%3E%3Cpath d='M15 12H3' /%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4' /%3E%3C/svg%3E");
  --i-camara: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97' /%3E%3Cpath d='M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z' /%3E%3Cpath d='M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15' /%3E%3Cpath d='M2 21v-4' /%3E%3Cpath d='M7 9h.01' /%3E%3C/svg%3E");
  --i-externo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M15 3h6v6' /%3E%3Cpath d='M10 14 21 3' /%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' /%3E%3C/svg%3E");
  --i-ant: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m15 18-6-6 6-6' /%3E%3C/svg%3E");
  --i-sig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m9 18 6-6-6-6' /%3E%3C/svg%3E");
  --i-arriba: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m18 15-6-6-6 6' /%3E%3C/svg%3E");
  --i-abajo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m6 9 6 6 6-6' /%3E%3C/svg%3E");
  --i-cal-buscar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M16 2v3' /%3E%3Cpath d='M21 10.69V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h7.25' /%3E%3Cpath d='m22 21-1.875-1.875' /%3E%3Cpath d='M3 9h18' /%3E%3Cpath d='M8 2v3' /%3E%3Ccircle cx='18' cy='17' r='3' /%3E%3C/svg%3E");
  --i-hoy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M8 2v3' /%3E%3Cpath d='M16 2v3' /%3E%3Crect x='3' y='3' width='18' height='18' rx='2' /%3E%3Cpath d='M3 9h18' /%3E%3Cpath d='m9 15 2 2 4-4' /%3E%3C/svg%3E");
  --i-filtro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M2 5h20' /%3E%3Cpath d='M6 12h12' /%3E%3Cpath d='M9 19h6' /%3E%3C/svg%3E");
  --i-planilla: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z' /%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5' /%3E%3Cpath d='M8 13h2' /%3E%3Cpath d='M14 13h2' /%3E%3Cpath d='M8 17h2' /%3E%3Cpath d='M14 17h2' /%3E%3C/svg%3E");
  --i-llave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z' /%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='currentColor' /%3E%3C/svg%3E");
  --i-clave-reinicio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 7v6' /%3E%3Cpath d='M12 9h2' /%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.74 9.74 0 0 0-6.74 2.74L3 8' /%3E%3Cpath d='M3 3v5h5' /%3E%3Ccircle cx='12' cy='15' r='2' /%3E%3C/svg%3E");
  --i-encendido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 2v10' /%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.77.04' /%3E%3C/svg%3E");
  --i-apagar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M18.36 6.64A9 9 0 0 1 20.77 15' /%3E%3Cpath d='M6.16 6.16a9 9 0 1 0 12.68 12.68' /%3E%3Cpath d='M12 2v4' /%3E%3Cpath d='m2 2 20 20' /%3E%3C/svg%3E");
  --i-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5' /%3E%3Crect x='2' y='6' width='14' height='12' rx='2' /%3E%3C/svg%3E");
  --i-video-no: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196' /%3E%3Cpath d='M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2' /%3E%3Cpath d='m2 2 20 20' /%3E%3C/svg%3E");
  --i-activar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='m16 9-5.5 5.5L8 12' /%3E%3C/svg%3E");
  --i-bloquear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M4.929 4.929 19.07 19.071' /%3E%3C/svg%3E");
  --i-agregar-usuario: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' /%3E%3Ccircle cx='9' cy='7' r='4' /%3E%3Cline x1='19' x2='19' y1='8' y2='14' /%3E%3Cline x1='22' x2='16' y1='11' y2='11' /%3E%3C/svg%3E");
  --i-usuarios: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' /%3E%3Cpath d='M16 3.128a4 4 0 0 1 0 7.744' /%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87' /%3E%3Ccircle cx='9' cy='7' r='4' /%3E%3C/svg%3E");
  --i-operario: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5' /%3E%3Cpath d='M14 6a6 6 0 0 1 6 6v3' /%3E%3Cpath d='M4 15v-3a6 6 0 0 1 6-6' /%3E%3Crect x='2' y='15' width='20' height='4' rx='1' /%3E%3C/svg%3E");
  --i-puesto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0' /%3E%3Ccircle cx='12' cy='10' r='3' /%3E%3C/svg%3E");
  --i-agregar-puesto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738' /%3E%3Ccircle cx='12' cy='10' r='3' /%3E%3Cpath d='M16 18h6' /%3E%3Cpath d='M19 15v6' /%3E%3C/svg%3E");
  --i-pc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Crect width='20' height='14' x='2' y='3' rx='2' /%3E%3Cline x1='8' x2='16' y1='21' y2='21' /%3E%3Cline x1='12' x2='12' y1='17' y2='21' /%3E%3C/svg%3E");
  --i-registro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M15 12h-5' /%3E%3Cpath d='M15 8h-5' /%3E%3Cpath d='M19 17V5a2 2 0 0 0-2-2H4' /%3E%3Cpath d='M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3' /%3E%3C/svg%3E");
  --i-mas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 12h14' /%3E%3Cpath d='M12 5v14' /%3E%3C/svg%3E");
  --i-menos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 12h14' /%3E%3C/svg%3E");
  --i-cerrar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M18 6 6 18' /%3E%3Cpath d='m6 6 12 12' /%3E%3C/svg%3E");
  --i-papelera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10 11v6' /%3E%3Cpath d='M14 11v6' /%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6' /%3E%3Cpath d='M3 6h18' /%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2' /%3E%3C/svg%3E");
  --i-descargar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 15V3' /%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' /%3E%3Cpath d='m7 10 5 5 5-5' /%3E%3C/svg%3E");
  --i-reproducir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z' /%3E%3C/svg%3E");
  --i-mira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cline x1='2' x2='5' y1='12' y2='12' /%3E%3Cline x1='19' x2='22' y1='12' y2='12' /%3E%3Cline x1='12' x2='12' y1='2' y2='5' /%3E%3Cline x1='12' x2='12' y1='19' y2='22' /%3E%3Ccircle cx='12' cy='12' r='7' /%3E%3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E");
  --i-ojo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0' /%3E%3Ccircle cx='12' cy='12' r='3' /%3E%3C/svg%3E");
  --i-ojo-no: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49' /%3E%3Cpath d='M14.084 14.158a3 3 0 0 1-4.242-4.242' /%3E%3Cpath d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143' /%3E%3Cpath d='m2 2 20 20' /%3E%3C/svg%3E");
  --i-editar-area: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z' /%3E%3Cpath d='m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18' /%3E%3Cpath d='m2.3 2.3 7.286 7.286' /%3E%3Ccircle cx='11' cy='11' r='2' /%3E%3C/svg%3E");
  --i-radar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M19.07 4.93A10 10 0 0 0 6.99 3.34' /%3E%3Cpath d='M4 6h.01' /%3E%3Cpath d='M2.29 9.62A10 10 0 1 0 21.31 8.35' /%3E%3Cpath d='M16.24 7.76A6 6 0 1 0 8.23 16.67' /%3E%3Cpath d='M12 18h.01' /%3E%3Cpath d='M17.99 11.66A6 6 0 0 1 15.77 16.67' /%3E%3Ccircle cx='12' cy='12' r='2' /%3E%3Cpath d='m13.41 10.59 5.66-5.66' /%3E%3C/svg%3E");
  --i-recargar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8' /%3E%3Cpath d='M21 3v5h-5' /%3E%3C/svg%3E");
  --i-lapiz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z' /%3E%3Cpath d='m15 5 4 4' /%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M20 6 9 17l-5-5' /%3E%3C/svg%3E");
  --i-alerta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3' /%3E%3Cpath d='M12 9v4' /%3E%3Cpath d='M12 17h.01' /%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M12 16v-4' /%3E%3Cpath d='M12 8h.01' /%3E%3C/svg%3E");
  --i-volver: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m12 19-7-7 7-7' /%3E%3Cpath d='M19 12H5' /%3E%3C/svg%3E");
  --i-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 12h14' /%3E%3Cpath d='m12 5 7 7-7 7' /%3E%3C/svg%3E");
  --i-reloj: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Ccircle cx='12' cy='12' r='10' /%3E%3Cpath d='M12 6v6l4 2' /%3E%3C/svg%3E");
  --i-espera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 22h14' /%3E%3Cpath d='M5 2h14' /%3E%3Cpath d='M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22' /%3E%3Cpath d='M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2' /%3E%3C/svg%3E");
  --i-idas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M8 3 4 7l4 4' /%3E%3Cpath d='M4 7h16' /%3E%3Cpath d='m16 21 4-4-4-4' /%3E%3Cpath d='M20 17H4' /%3E%3C/svg%3E");
  --i-pantalla: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z' /%3E%3Cpath d='M12 17v4' /%3E%3Cpath d='M8 21h8' /%3E%3Crect x='2' y='3' width='20' height='14' rx='2' /%3E%3C/svg%3E");
}

body {
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 4.5vw, 32px); font-weight: 700; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.lead { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.eyebrow {
  font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap-text { overflow-wrap: anywhere; max-width: 36ch; }

/* ------------------------------------------------------------ estructura */

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap;
}
@media (min-width: 700px) { .top-in { padding-inline: 24px; } }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 18px; height: 18px; border-radius: 4px; background: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 9px var(--on-accent);
}
.brand-lg { font-size: 18px; margin-bottom: 26px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .who a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 550;
}
.nav a:hover, .who a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"], .who a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.who { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.who form { margin: 0; }

.head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 699px) { .head-side { align-items: flex-start; } }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.block { margin-top: 40px; }
.section-title {
  font: 650 17px/1.3 var(--f-body); letter-spacing: -.01em;
  color: var(--ink); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.section-title.ico { display: flex; align-items: center; gap: 9px; }
.section-title.ico::before { color: var(--accent); }
.summary-line { margin-bottom: 14px; color: var(--ink-2); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; box-shadow: var(--shadow);
}
.empty { color: var(--ink-2); }
.empty p + p { margin-top: 6px; }

/* ------------------------------------------------------------- mensajes */

.msg {
  padding: 11px 14px; border-radius: 6px; margin-bottom: 18px; border: 1px solid;
  display: flex; gap: 10px; align-items: flex-start;
}
.msg::before {
  content: ""; flex: none; width: 1.2em; height: 1.2em; margin-top: .12em; background-color: currentColor;
  -webkit-mask: var(--i-info) center / contain no-repeat; mask: var(--i-info) center / contain no-repeat;
}
.msg.ok::before { color: var(--ok); -webkit-mask-image: var(--i-activar); mask-image: var(--i-activar); }
.msg.bad::before { color: var(--bad); -webkit-mask-image: var(--i-alerta); mask-image: var(--i-alerta); }
.msg.warn::before { color: var(--warn); -webkit-mask-image: var(--i-alerta); mask-image: var(--i-alerta); }
.msg.ok { background: var(--ok-soft); border-color: var(--ok); }
.msg.bad { background: var(--bad-soft); border-color: var(--bad); }
.msg.warn { background: var(--warn-soft); border-color: var(--warn); }

.issued { border-color: var(--warn); background: var(--warn-soft); margin-bottom: 24px; }
.issued p + p { margin-top: 6px; }
.secret {
  display: inline-block; font-size: 22px; letter-spacing: .08em; padding: 8px 12px;
  background: var(--surface); border: 1px dashed var(--warn); border-radius: 6px; user-select: all;
}

/* ------------------------------------------------------------ controles */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 8px 15px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.btn.plain { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.plain:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.btn.danger-solid:hover { filter: brightness(1.08); color: var(--on-bad); border-color: var(--bad); }
.btn.danger:focus-visible, .btn.danger-solid:focus-visible { outline-color: var(--bad); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; gap: 5px; }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; filter: none; pointer-events: none;
}
@media (pointer: coarse) { .btn, .btn.small { min-height: 44px; } }
.link {
  background: none; border: 0; padding: 7px 11px; border-radius: 6px; font: inherit;
  color: var(--ink-2); cursor: pointer; font-weight: 550;
}
.link:hover { background: var(--surface-2); color: var(--ink); }

/* Grupos de botones: .toolbar (con .fin a la derecha) y .seg (pegados). */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .fin { margin-left: auto; }
.seg { display: inline-flex; }
.seg > .btn { border-radius: 0; }
.seg > .btn:first-child { border-radius: 6px 0 0 6px; }
.seg > .btn:last-child { border-radius: 0 6px 6px 0; }
.seg > .btn + .btn { margin-left: -1px; }

/* ---------------------------------------------------------------- íconos
   Máscara CSS con el SVG en data: (la CSP permite img-src data:). El ícono toma el color del
   texto y no agrega nada al HTML. Uso: class="btn ghost ico i-descargar". */

.ico::before, .ico-fin::after {
  content: ""; flex: none; display: inline-block; width: 1.15em; height: 1.15em;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.ico::before { -webkit-mask-image: var(--ico); mask-image: var(--ico); }
.ico-fin::after { -webkit-mask-image: var(--ico-fin); mask-image: var(--ico-fin); }
@media (forced-colors: active) {
  .ico::before, .ico-fin::after { forced-color-adjust: none; background-color: ButtonText; }
}
.i-tablero { --ico: var(--i-tablero); }            .i-grafico { --ico: var(--i-grafico); }
.i-ajustes { --ico: var(--i-ajustes); }            .i-usuario { --ico: var(--i-usuario); }
.i-salir { --ico: var(--i-salir); }                .i-entrar { --ico: var(--i-entrar); }
.i-camara { --ico: var(--i-camara); }              .i-ant { --ico: var(--i-ant); }
.i-arriba { --ico: var(--i-arriba); }              .i-abajo { --ico: var(--i-abajo); }
.i-cal-buscar { --ico: var(--i-cal-buscar); }      .i-hoy { --ico: var(--i-hoy); }
.i-filtro { --ico: var(--i-filtro); }              .i-planilla { --ico: var(--i-planilla); }
.i-llave { --ico: var(--i-llave); }                .i-clave-reinicio { --ico: var(--i-clave-reinicio); }
.i-encendido { --ico: var(--i-encendido); }        .i-apagar { --ico: var(--i-apagar); }
.i-video { --ico: var(--i-video); }                .i-video-no { --ico: var(--i-video-no); }
.i-activar { --ico: var(--i-activar); }            .i-bloquear { --ico: var(--i-bloquear); }
.i-agregar-usuario { --ico: var(--i-agregar-usuario); } .i-usuarios { --ico: var(--i-usuarios); }
.i-operario { --ico: var(--i-operario); }          .i-puesto { --ico: var(--i-puesto); }
.i-agregar-puesto { --ico: var(--i-agregar-puesto); } .i-pc { --ico: var(--i-pc); }
.i-registro { --ico: var(--i-registro); }          .i-mas { --ico: var(--i-mas); }
.i-menos { --ico: var(--i-menos); }                .i-cerrar { --ico: var(--i-cerrar); }
.i-papelera { --ico: var(--i-papelera); }          .i-descargar { --ico: var(--i-descargar); }
.i-reproducir { --ico: var(--i-reproducir); }      .i-mira { --ico: var(--i-mira); }
.i-ojo { --ico: var(--i-ojo); }                    .i-ojo-no { --ico: var(--i-ojo-no); }
.i-editar-area { --ico: var(--i-editar-area); }    .i-radar { --ico: var(--i-radar); }
.i-lapiz { --ico: var(--i-lapiz); }
.i-recargar { --ico: var(--i-recargar); }          .i-check { --ico: var(--i-check); }
.i-alerta { --ico: var(--i-alerta); }              .i-info { --ico: var(--i-info); }
.i-volver { --ico: var(--i-volver); }              .i-sig { --ico: var(--i-sig); }
.i-reloj { --ico: var(--i-reloj); }                .i-espera { --ico: var(--i-espera); }
.i-idas { --ico: var(--i-idas); }               .i-pantalla { --ico: var(--i-pantalla); }
/* Botón solo con ícono (08/10): el texto va en .sr y en el title. */
.btn.solo-ico { padding: 4px 9px; }
.btn.solo-ico::before { width: 20px; height: 20px; }
.fin-externo { --ico-fin: var(--i-externo); }      .fin-sig { --ico-fin: var(--i-sig); }

/* ---------------------------------------------- confirmaciones (sin JavaScript)
   <details class="confirmar"><summary class="btn ...">Desactivar</summary><div class="confirmar-caja">
   <p>¿Seguro?</p><form>...<button class="btn small danger-solid">Sí, desactivar</button></form></div></details> */
details.confirmar { display: inline-block; }
details.confirmar > summary { list-style: none; }
details.confirmar > summary::-webkit-details-marker { display: none; }
details.confirmar[open] > summary { --ico: var(--i-cerrar); }
details.confirmar:not([open]) .abierto, details.confirmar[open] .cerrado { display: none; }
.confirmar-caja {
  margin-top: 8px; padding: 10px 12px; border: 1px solid var(--bad); border-radius: 6px;
  background: var(--bad-soft); display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  white-space: normal; max-width: 34ch; text-align: left;
}
.confirmar-caja.suave { border-color: var(--line-strong); background: var(--surface-2); }
.confirmar-caja p { font-size: 13px; color: var(--ink); }
.confirmar-caja form { margin: 0; }

/* Altas plegadas en administración: el botón abre el formulario. */
details.alta > summary { list-style: none; display: inline-flex; }
details.alta > summary::-webkit-details-marker { display: none; }
details.alta[open] > summary { --ico: var(--i-cerrar); }
details.alta:not([open]) .abierto, details.alta[open] .cerrado { display: none; }
details.alta > form { margin-top: 12px; }

input, select {
  font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 10px; min-height: 38px;
  max-width: 100%;
}
input:focus, select:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 550; font-size: 14px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form.narrow { max-width: 440px; }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.inline-form h3 { flex-basis: 100%; }
.inline-form label { flex: 1 1 200px; }
.inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.filters label { flex: 1 1 160px; }
.full { flex-basis: 100%; }

/* ---------------------------------------------------------------- login */

.bare .wrap { max-width: 420px; padding-top: 12vh; }
.login h1 { margin-bottom: 18px; }
.login .lead { margin-bottom: 20px; }
.login .hint { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* Ver/ocultar la contraseña. El botón lo muestra login.js (arranca hidden); al
   alternar cambia aria-pressed y, con eso, el ícono de ojo a ojo tachado. */
.clave-campo { position: relative; }
.clave-campo input#clave { padding-right: 40px; }
.ver-clave {
  position: absolute; right: 6px; bottom: 6px; padding: 4px;
  background: none; border: 0; cursor: pointer; color: var(--ink-3);
}
.ver-clave:hover { color: var(--ink); }
.ver-clave:focus-visible { outline: 2px solid var(--accent-soft); border-radius: 4px; }
.ver-clave[aria-pressed="true"] { --ico: var(--i-ojo-no); color: var(--ink); }

/* ----------------------------------------------------------- instalación */

/* La instalación tiene más campos que el login: más ancho y menos aire arriba. */
.bare .wrap:has(.instalar) { max-width: 640px; padding-top: 5vh; }
.instalar h2 { font-size: 15px; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.instalar h2:first-of-type { border-top: 0; padding-top: 0; }
.instalar .form .muted.small { margin: -8px 0 0; }
/* La lista de zonas horarias tiene textos largos: que no estire el formulario. */
.instalar label { min-width: 0; }
.instalar input, .instalar select { width: 100%; }
/* .check: casilla con la etiqueta al lado (login e instalación). */
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.instalar .actions { justify-content: flex-start; margin-top: 8px; }
.instalar .break { word-break: break-all; }
.instalar .card p { margin: 6px 0; }

/* --------------------------------------------------------------- tablero */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.station { display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--line-strong); }
.station.is-on { border-top-color: var(--ok); }
.station-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.station-head h2 a { color: var(--ink); text-decoration: none; }
.station-head h2 a:hover { text-decoration: underline; }
.operator { color: var(--ink-2); margin-top: -6px; }
.station-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto;
}
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.cams { display: flex; flex-direction: column; gap: 6px; }
.live { margin: 0; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 3px; }

.badge {
  display: inline-block; padding: 4px 9px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.badge.on { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: var(--surface-2); color: var(--ink-2); }
.badge.none { background: var(--surface-2); color: var(--ink-3); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

/* Marcas de llegó tarde / se fue temprano en los informes (22/10). */
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--warn-soft); color: var(--warn);
}
.tag.temprano { background: var(--bad-soft); color: var(--bad); }

/* Horarios de trabajo: días del turno y horas en el formulario. */
.turno-form .dias {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0;
}
.turno-form .dias legend { padding: 0 6px; color: var(--ink-2); font-size: 13px; }
.turno-form .dia {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 500;
}
.turno-form label { flex: 1 1 130px; }
.turno-form input[type="time"] { width: 100%; }

.cam { font-size: 13px; color: var(--ink-2); }
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px;
  vertical-align: 0; background: var(--ink-3);
}
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }
.dot.mute { background: var(--line-strong); }

.kpis { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.kpis-wide { margin: 14px 0 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-size: 12px; color: var(--ink-3); font-weight: 550; }
.kpi-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-value.sm { font-size: 18px; font-weight: 600; }

/* ------------------------------------------------------- línea de tiempo */

.tl { width: 100%; }
.tl-bar { display: block; width: 100%; height: 22px; border-radius: 4px; overflow: hidden; }
.tl-lg .tl-bar { height: 44px; }
.tl-bg { fill: var(--bar-bg); }
.tl-horario { fill: var(--bar-horario); }
.tl-future { fill: var(--bar-future); }
.tl-on { fill: var(--bar-on); }
.tl-pause { fill: url(#rayado); }    /* franjas: el patrón está en Timeline::defs() */
.tl-rayado { fill: var(--bar-pause); }
.tl-now { fill: var(--ink); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tl-tick { fill: var(--ground); opacity: .7; }
.tl-hours {
  display: grid; margin-top: 4px;
  font: 500 11px/1 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.tl-hours span { margin-left: -1px; white-space: nowrap; overflow: visible; }
.cols-1 { grid-template-columns: repeat(1, 1fr); }   .cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }   .cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }   .cols-6 { grid-template-columns: repeat(6, 1fr); }
.cols-7 { grid-template-columns: repeat(7, 1fr); }   .cols-8 { grid-template-columns: repeat(8, 1fr); }
.cols-9 { grid-template-columns: repeat(9, 1fr); }   .cols-10 { grid-template-columns: repeat(10, 1fr); }
.cols-11 { grid-template-columns: repeat(11, 1fr); } .cols-12 { grid-template-columns: repeat(12, 1fr); }
.cols-13 { grid-template-columns: repeat(13, 1fr); } .cols-14 { grid-template-columns: repeat(14, 1fr); }
.cols-15 { grid-template-columns: repeat(15, 1fr); } .cols-16 { grid-template-columns: repeat(16, 1fr); }
.cols-17 { grid-template-columns: repeat(17, 1fr); } .cols-18 { grid-template-columns: repeat(18, 1fr); }
.cols-19 { grid-template-columns: repeat(19, 1fr); } .cols-20 { grid-template-columns: repeat(20, 1fr); }
.cols-21 { grid-template-columns: repeat(21, 1fr); } .cols-22 { grid-template-columns: repeat(22, 1fr); }
.cols-23 { grid-template-columns: repeat(23, 1fr); } .cols-24 { grid-template-columns: repeat(24, 1fr); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.sw.on { background: var(--bar-on); }
.sw.off { background: var(--bar-bg); }
.sw.future { background: var(--bar-future); border: 1px solid var(--line); }
.sw.pause { background: repeating-linear-gradient(90deg, var(--bar-pause) 0 3px, transparent 3px 6px); }
.sw.now { width: 2px; height: 12px; border-radius: 0; background: var(--ink); }
.sw.horario { background: var(--bar-horario); }
.sw.esperado { width: 2px; height: 12px; border-radius: 0; background: var(--ink-2); }
.legend-tablero { margin: 0 0 12px; }

/* ------------------------------------------------------------- estación */

.daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; }
.day-title { margin-bottom: 4px; }
.events { margin-top: 14px; }
.events summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.events ul { margin: 10px 0 0; padding-left: 18px; columns: 2 260px; }
.events li { margin-bottom: 3px; }

/* --------------------------------------------------------------- tablas */

.table-wrap {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
th.num { text-align: right; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.gap td { color: var(--ink-3); background: var(--ground); font-size: 13px; }
tr.sin-medicion td { color: var(--warn); background: var(--warn-soft); font-size: 13px; }
tr.dim td { color: var(--ink-3); }
tr.alert td { background: var(--bad-soft); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions details.alta[open] { flex-basis: 100%; }
.actions details.alta > form { justify-content: flex-end; }

/* -------------------------------------------------------------- reportes */

.report-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 22px 0 4px;
}
.report-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.report-head h2 a { color: var(--ink); }
.block .kpis + .table-wrap { margin-top: 14px; }
.barcol { width: 32%; min-width: 90px; }
.hbar { display: block; width: 100%; height: 12px; border-radius: 3px; overflow: hidden; }
.hbar-bg { fill: var(--bar-bg); }
.hbar-on { fill: var(--bar-on); }
.hbar-esperado { fill: var(--ink-2); }   /* hasta dónde llegaba la jornada esperada (23/10) */

.toc { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 14px; }

/* ------------------------------------------------ tablero (30/09, segunda vuelta) */

/* Tarjeta de estación: nombre, estado en grande con su hora aparte, cifras, línea y cámara. */
.station .station-head { display: block; }
.station .operator { margin-top: 2px; font-size: 14px; }
.station.estado-sin { border-top-color: var(--bad); }
.station.estado-pausa { border-top-color: var(--warn); }
.estado {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
  padding: 9px 12px; border-radius: 6px; background: var(--surface-2);
}
.estado-nombre { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.estado-nombre::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.estado-desde { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.estado.on { background: var(--ok-soft); }
.estado.on .estado-nombre { color: var(--ok); }
.estado.off .estado-nombre { color: var(--ink-2); }
.estado.sin { background: var(--bad-soft); }
.estado.sin .estado-nombre { color: var(--bad); }
.estado.pausa { background: var(--warn-soft); }
.estado.pausa .estado-nombre { color: var(--warn); }
.estado.pausa .estado-nombre::before {          /* «no ve» en lugar del punto */
  width: 16px; height: 16px; border-radius: 0; background: currentColor;
  -webkit-mask: var(--i-ojo-no) center / contain no-repeat; mask: var(--i-ojo-no) center / contain no-repeat;
}
.estado.none .estado-nombre { color: var(--ink-3); }

/* Pie: estado de la cámara a la izquierda y «Ver en vivo» siempre a la derecha. */
.station-foot .cams {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px;
}
.station-foot .cam { grid-column: 1; }
.station-foot .live { grid-column: 2; justify-self: end; }

/* Cifras dentro de la tarjeta, en dos filas parejas: Trabajando | Ausente y Llegó | Entradas. */
.kpis-tarjeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.kpis-tarjeta .kpi-value { font-size: 24px; white-space: nowrap; }
.kpis-tarjeta .kpi-value.sm { font-size: 18px; }
.station.estado-on .kpi.trabajando .kpi-value { color: var(--ok); }
.kpis-tarjeta .tag { vertical-align: 3px; }
.station-entradas { margin: 6px 0 0; }

/* Resumen de la fábrica arriba del tablero (23/10). */
.resumen-fabrica { margin-bottom: 16px; }
.resumen-fabrica .kpis { gap: 10px 32px; }
.resumen-fabrica .kpi-value { font-size: 24px; }
/* Rótulos con ícono chico (08/10): el texto sigue, el ícono ayuda a encontrar el dato. */
.kpi-label.ico { display: inline-flex; align-items: center; gap: 5px; }
.kpi-label.ico::before { width: 14px; height: 14px; }
.station .operator.ico { display: inline-flex; align-items: center; gap: 6px; }
.station .operator.ico::before { width: 15px; height: 15px; color: var(--ink-3); }
.cam.ico { display: inline-flex; align-items: center; gap: 6px; }
.cam.ico::before { width: 15px; height: 15px; }
.cam.ok::before { background-color: var(--ok); }
.cam.bad::before { background-color: var(--bad); }
.cam.warn::before { background-color: var(--warn); }
.cam.mute::before { background-color: var(--ink-3); }

/* ------------------------------------------------------- administración */

/* Índice de la página: chips que quedan fijos arriba al bajar. */
.subnav {
  position: sticky; top: 0; z-index: 5; background: var(--ground);
  flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px 0 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.subnav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); text-decoration: none;
  font-weight: 550; font-size: 13px;
}
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
.block[id] { scroll-margin-top: 64px; }

/* Título de sección con su acción (alta) a la derecha. */
.section-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px;
}
.section-head .section-title {
  border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; min-height: 32px;
}
.section-head details.alta[open] { flex-basis: 100%; }
.section-head + .muted.small { margin: -4px 0 12px; }
.block > .muted.small + .table-wrap, .block > .muted.small + .muted { margin-top: 12px; }

/* Registro largo: con alto máximo y encabezado fijo. */
.table-wrap.alto { max-height: 60vh; overflow: auto; }
.table-wrap.alto th { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* Reportes: la descarga va en el pie del filtro. */
.filters-pie { border-top: 1px solid var(--line); padding-top: 12px; }

/* Encabezado en pantallas chicas: marca y cuenta arriba, secciones abajo con desplazamiento. */
@media (max-width: 699px) {
  .top-in { gap: 6px 10px; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .who a { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .who a.ico::before { vertical-align: -3px; margin-right: 6px; }
  .daynav .fin { margin-left: 0; }

  /* Tablas apilables: cada fila es una tarjeta, con el nombre de la columna a la izquierda
     (data-label) y las acciones abajo, a lo ancho. Así no se esconden de costado. */
  .apilable { background: transparent; border: 0; overflow: visible; }
  .table-wrap.alto.apilable { max-height: none; }
  .apilable table, .apilable tbody, .apilable tr, .apilable td { display: block; width: 100%; }
  .apilable thead { display: none; }
  .apilable tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    margin-bottom: 10px; padding: 6px 12px;
  }
  .apilable tr.alert { background: var(--bad-soft); }
  /* El nombre de la columna flota a la izquierda y el contenido va a la derecha, entero
     (con flex, «Nombre (vos)» se partía en dos). */
  .apilable td { border: 0; padding: 6px 0; text-align: right; overflow-wrap: anywhere; }
  .apilable td::after { content: ""; display: block; clear: both; }
  .apilable td[data-label]::before {
    content: attr(data-label); float: left; margin-right: 12px; text-align: left;
    font: 600 12px/1.9 var(--f-body); letter-spacing: 0; color: var(--ink-3);
  }
  .apilable td:not([data-label]) { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
  .apilable td .actions { justify-content: flex-start; width: 100%; }
  .apilable td .inline { justify-content: flex-end; }
  .apilable .wrap-text { max-width: none; }
}

@media print {
  :root {
    --ground: #FFFFFF; --surface: #FFFFFF; --surface-2: #EEF0ED; --ink: #15191B; --ink-2: #4A5356;
    --ink-3: #5F686B; --line: #D6DAD6; --line-strong: #B7BEB9; --accent: #0E6B75; --accent-ink: #0A525A;
    --accent-soft: #DCEAEC; --ok: #276B34; --ok-soft: #DEEDE1; --warn: #8A5A07; --warn-soft: #F3E7CD;
    --bad: #A93123; --bad-soft: #F6DFDB; --bar-on: #0E6B75; --bar-bg: #E1E5E1; --bar-future: #EEF0ED;
  }
  html { color-scheme: light; }
  .top, .daynav, .filters, .report-bar .btn, .toc, .subnav, .confirmar, .alta, .filters-pie .btn { display: none; }
  body { background: #fff; }
  .card, .table-wrap { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
