/* Estilo común de todas las apps de Grupo Pasalto.
   Colores, letras y piezas tomados del prototipo (app/index.html), para que
   la versión definitiva se vea igual. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("vendor/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("vendor/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("vendor/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("vendor/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("vendor/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("vendor/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("vendor/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("vendor/plex-mono-500.woff2") format("woff2"); }

:root {
  --bg: #E9ECEB; --surface: #FFFFFF; --surface-2: #E1E5E4; --ink: #15191B; --muted: #596267; --line: #CBD1D0;
  --accent: #F2B705; --accent-ink: #1C1700; --accent-soft: #FBEBB0;
  --good: #23794C; --good-soft: #D6EEDF; --warn: #A86200; --warn-soft: #F8E4C4; --crit: #B4302A; --crit-soft: #F6D7D4;
  --app-bg: #F4F6F5; --marino: #1f3a5f;
  --primario: var(--accent); --primario-texto: var(--accent-ink);
  --r-grande: 16px; --r-medio: 14px; --r-chico: 11px;
  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121517; --surface: #1C2023; --surface-2: #262B2F; --ink: #E8ECEB; --muted: #9AA4A8; --line: #343B40;
    --accent: #F5C02A; --accent-ink: #1C1700; --accent-soft: #3D3410;
    --good: #52C489; --good-soft: #173525; --warn: #F0A43C; --warn-soft: #3B2A12; --crit: #FF6F61; --crit-soft: #3E1C1A;
    --app-bg: #171B1D; --marino: #3a6496;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
h1, h2 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0 0 10px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
p { margin: 0 0 10px; }
small { color: var(--muted); }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .42; cursor: not-allowed; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-chico); padding: 11px 12px; min-height: 48px;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
label input, label select, label textarea { margin-top: 6px; font-weight: 400; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.etiqueta { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cargando { text-align: center; color: var(--muted); padding: 40px 16px; }
.nota { color: var(--muted); font-size: 13.5px; }

/* Tarjetas, botones, píldoras y avisos (mismas piezas que el prototipo) */
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-grande); padding: 14px; margin: 0 0 14px; }
.boton {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px;
  border-radius: var(--r-medio); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--f-body); font-weight: 600; font-size: 16px; padding: 10px 14px; text-align: center;
}
.boton.principal { background: var(--primario); color: var(--primario-texto); border-color: var(--primario); }
.boton.peligro, .boton.rechazar { background: var(--crit); color: #fff; border-color: var(--crit); }
.boton.aceptar { background: var(--good); color: #fff; border-color: var(--good); }
.boton.chico, .acciones .boton { width: auto; min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: var(--r-chico); }
.enlace { background: none; border: 0; color: inherit; text-decoration: underline; padding: 6px; font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok, .chip.aceptada, .chip.presente { background: var(--good-soft); color: var(--good); }
.chip.observada, .chip.pendiente, .chip.sin_salida { background: var(--warn-soft); color: var(--warn); }
.chip.rechazada, .chip.anulada { background: var(--crit-soft); color: var(--crit); }
.aviso { border-radius: var(--r-medio); padding: 12px 14px; margin: 0 0 12px; font-size: 14px; border: 1px solid transparent; font-weight: 500; }
.aviso.ok { background: var(--good-soft); border-color: var(--good); }
.aviso.error { background: var(--crit-soft); border-color: var(--crit); }
.aviso.atencion { background: var(--warn-soft); border-color: var(--warn); }
.aviso.acento { background: var(--accent-soft); border-color: var(--accent); }

table { border-collapse: collapse; width: 100%; }
th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); }
td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:first-child td { border-top: 0; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

/* ── Teléfono ─────────────────────────────────────────────── */
body.telefono { background: var(--app-bg); }
body.telefono main { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
.logo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-grande); padding: 14px; text-align: center; margin: 8px 0 14px; }
.logo img { max-width: 230px; width: 100%; height: auto; display: block; margin: 0 auto; }
.barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.barra b { display: block; font-family: var(--f-display); font-size: 24px; line-height: 1.05; }
.barra span { color: var(--muted); font-size: 13.5px; }
.senal { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; border-radius: var(--r-chico); padding: 7px 12px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); }
.senal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.senal.no { background: var(--warn-soft); border-color: var(--warn); }
.senal.no::before { background: var(--crit); }

.estado { border-radius: var(--r-grande); padding: 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.estado .hoy { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.estado .donde { font-family: var(--f-display); font-size: 30px; font-weight: 700; margin: 4px 0 14px; }
.estado.adentro { border-color: var(--good); }
.estado.adentro .donde b { color: var(--good); }
.boton.fichar { font-size: 20px; min-height: 72px; border-radius: var(--r-grande); }
.boton.fichar.entrada { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.boton.fichar.salida { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.boton.fichar.secundario { background: var(--surface); color: var(--ink); border-color: var(--line); }
.boton.qr { gap: 10px; }
.boton.qr svg { width: 22px; height: 22px; }

.fichadas { list-style: none; margin: 0; padding: 0; }
.fichadas li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fichadas li:first-child { border-top: 0; }
.fichadas small { grid-column: 1 / -1; }
.fichadas .cuando b { font-family: var(--f-mono); }
.tipo { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); }
.tipo.entrada { background: var(--accent-soft); border-color: var(--accent); }
.tipo.salida { background: var(--surface-2); }
.horas td:first-child { white-space: nowrap; }
.horas td:nth-child(2) { font-family: var(--f-mono); }

.velo { position: fixed; inset: 0; background: rgba(16, 19, 21, .55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; z-index: 5; }
.teclado { width: 100%; max-width: 420px; text-align: center; margin: 0; }
.puntos { display: flex; justify-content: center; gap: 10px; margin: 8px 0 16px; }
.puntos i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.puntos i.lleno { background: var(--ink); border-color: var(--ink); }
.teclas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tecla { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-medio); min-height: 58px; font-family: var(--f-mono); font-size: 22px; font-weight: 500; }
.tecla.chica { font-family: var(--f-body); font-size: 14px; font-weight: 600; }

/* ── Teléfono igual al prototipo (sbar, appbar, hero, fichas con luz, teclado) ── */
body.telefono main.pantalla-tel { max-width: 520px; margin: 0 auto; padding: 0 0 28px; min-height: 100vh; background: var(--app-bg); display: flex; flex-direction: column; }
.telefono .sbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 6px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.telefono .sbar .sig { display: flex; gap: 6px; align-items: center; }
.telefono .bars { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.telefono .bars i { display: block; width: 3px; background: var(--ink); border-radius: 1px; }
.telefono .bars i:nth-child(1) { height: 4px; } .telefono .bars i:nth-child(2) { height: 6px; } .telefono .bars i:nth-child(3) { height: 8px; } .telefono .bars i:nth-child(4) { height: 11px; }
.telefono .sbar.off .bars i { background: var(--line); }
.telefono .off-txt { color: var(--crit); }
.telefono .sbar.navy { background: #1E3A5F; color: #fff; }
.telefono .sbar.navy .bars i { background: #fff; }
.telefono .appbar { display: flex; align-items: center; gap: 10px; padding: 6px 18px 10px; }
.telefono .appbar h2 { font-family: var(--f-display); font-weight: 700; font-size: 26px; margin: 0; line-height: 1.05; }
.telefono .back { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 40px; height: 40px; border-radius: 12px; font-size: 20px; cursor: pointer; flex: none; }
.telefono .content { flex: 1; padding: 4px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.telefono .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.telefono .center { text-align: center; }
.telefono .lgcard img { max-width: 220px; width: 100%; height: auto; margin: 0 auto; display: block; }
.telefono .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--f-body); font-weight: 600; font-size: 16px; cursor: pointer; padding: 10px 14px; text-align: center; }
.telefono .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.telefono .btn:disabled { opacity: .42; cursor: not-allowed; }
.telefono .qrph { width: 150px; height: 150px; margin: 6px auto; border-radius: 12px; border: 6px solid var(--surface); outline: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 18px, var(--ink) 18px 24px, transparent 24px 36px), repeating-linear-gradient(0deg, transparent 0 14px, var(--surface) 14px 22px); opacity: .85; }
.telefono .banner { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.telefono .banner b { display: block; }
.telefono .banner .btn { min-height: 40px; width: auto; font-size: 14px; margin-top: 8px; }
.telefono .banner.accent { background: var(--accent-soft); border-color: var(--accent); }
.telefono .banner.warn { background: var(--warn-soft); color: var(--ink); border-color: var(--warn); }
.telefono .banner.crit { background: var(--crit-soft); border-color: var(--crit); }
.telefono .banner.good { background: var(--good-soft); border-color: var(--good); }
.telefono .hero { background: #1E3A5F; color: #fff; margin: 0 0 4px; padding: 6px 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.telefono .hero span { font-size: 13px; opacity: .78; }
.telefono .hero b { font-family: var(--f-display); font-size: 28px; line-height: 1.05; }
.telefono .hlogo { align-self: flex-start; height: 30px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; margin: 2px 0 6px; }
.telefono .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.telefono .kv dt { color: var(--muted); }
.telefono .kv dd { margin: 0; font-weight: 600; text-align: right; }
.telefono .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.telefono .grid2 .ancho { grid-column: 1 / -1; }
.telefono .tile { min-height: 92px; flex-direction: column; font-size: 15px; line-height: 1.2; }
.telefono .tile.ttile { position: relative; overflow: hidden; align-items: center; justify-content: center; text-align: center; border: 0; background: var(--surface); gap: 2px; --c: #9AA4A8; --ci: #9AA4A8;
  box-shadow: inset 0 0 0 2px var(--c), inset 0 0 18px color-mix(in srgb, var(--c) 25%, transparent); }
.telefono .ttile.st-g { --c: #2FA36B; --ci: #2FA36B; }
.telefono .ttile.st-y { --c: #F5C02A; --ci: #D9A400; animation: pulY 2.4s ease-in-out infinite; }
.telefono .ttile.st-r { --c: #E0483D; --ci: #E0483D; animation: pulR 1.3s ease-in-out infinite, shk 3.5s ease-in-out infinite; }
.telefono .ttile.st-n { opacity: .6; }
.telefono .twm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; fill: none; stroke: var(--ci); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .16; pointer-events: none; }
.telefono .ttile.st-y .twm { animation: wmY 2.4s ease-in-out infinite; } .telefono .ttile.st-r .twm { animation: wmR 1.3s ease-in-out infinite; }
.telefono .ttile .tled { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.telefono .ttile.st-y .tled { animation: ldY 2.4s ease-in-out infinite; } .telefono .ttile.st-r .tled { animation: ldR 1s ease-in-out infinite; }
.telefono .ttxt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 600; }
.telefono .ttxt small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.telefono .semleg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: -4px; }
.telefono .semleg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.telefono .semleg .lf { background: #2FA36B; box-shadow: 0 0 6px #2FA36B; }
.telefono .semleg .ly { background: #F5C02A; animation: ldY 2.4s ease-in-out infinite; }
.telefono .semleg .lr { background: #E0483D; animation: ldR 1s ease-in-out infinite; }
.telefono .dots { display: flex; justify-content: center; gap: 14px; margin: 8px 0; }
.telefono .dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.telefono .dots i.on { background: var(--ink); }
.telefono .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.telefono .key { min-height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 26px; cursor: pointer; }
.telefono .btn > svg { width: 22px; height: 22px; flex: none; }
.telefono .key.chica { font-family: var(--f-body); font-size: 16px; }
.telefono .key:disabled { opacity: .4; cursor: not-allowed; }
.telefono .content label { display: block; font-weight: 600; margin-bottom: 12px; }
@keyframes pulY { 0%, 100% { box-shadow: inset 0 0 0 2px #F5C02A, inset 0 0 14px rgba(245,192,42,.35); } 50% { box-shadow: inset 0 0 0 2px #F5C02A, inset 0 0 26px rgba(245,192,42,.75); } }
@keyframes pulR { 0%, 100% { box-shadow: inset 0 0 0 2px #E0483D, inset 0 0 16px rgba(224,72,61,.4); } 50% { box-shadow: inset 0 0 0 3px #E0483D, inset 0 0 30px rgba(224,72,61,.85); } }
@keyframes shk { 0%, 86%, 100% { transform: translateX(0); } 88% { transform: translateX(-3px); } 90% { transform: translateX(3px); } 92% { transform: translateX(-2px); } 94% { transform: translateX(2px); } 96% { transform: translateX(0); } }
@keyframes wmY { 0%, 100% { opacity: .18; } 50% { opacity: .38; } }
@keyframes wmR { 0%, 100% { opacity: .2; } 50% { opacity: .45; } }
@keyframes ldY { 0%, 100% { opacity: 1; box-shadow: 0 0 10px #F5C02A; } 50% { opacity: .25; box-shadow: 0 0 0 rgba(245,192,42,0); } }
@keyframes ldR { 0%, 100% { opacity: 1; box-shadow: 0 0 12px #E0483D; } 50% { opacity: .2; box-shadow: 0 0 0 rgba(224,72,61,0); } }
@media (prefers-reduced-motion: reduce) { .telefono .ttile.st-y, .telefono .ttile.st-r, .telefono .ttile .twm, .telefono .ttile .tled { animation: none !important; } }

/* Lector de QR */
.lector { position: relative; border-radius: var(--r-grande); overflow: hidden; background: #000; aspect-ratio: 1; margin-bottom: 12px; }
.lector video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lector .marco { position: absolute; inset: 18%; border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.lector .leyenda { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 3px #000; }

/* ── Puesto de fichada en planta ──────────────────────────── */
body.puesto { background: var(--app-bg); }
body.puesto main { max-width: 640px; margin: 0 auto; padding: 16px; }
.reloj { font-family: var(--f-mono); font-size: 56px; font-weight: 500; text-align: center; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.saludo { font-family: var(--f-display); font-size: 34px; font-weight: 700; text-align: center; margin: 8px 0 4px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.resultado { text-align: center; padding: 28px 16px; }
.resultado .grande { font-family: var(--f-display); font-size: 40px; font-weight: 700; margin: 0; }
.resultado.ok { border-color: var(--good); background: var(--good-soft); }
.resultado.atencion { border-color: var(--warn); background: var(--warn-soft); }
.resultado.error { border-color: var(--crit); background: var(--crit-soft); }
.oculto-lector { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Oficina ──────────────────────────────────────────────── */
body.oficina main { max-width: 1220px; margin: 0 auto; padding: 24px 16px 48px; }
#ingreso { max-width: 440px; margin: 40px auto; }
.oficina .cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 16px; }
.oficina .cabecera h1 { font-size: 40px; margin: 6px 0 0; }
.oficina .cabecera small { font-size: 14px; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: 4px; }
.solapas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 16px; }
.solapas button { font-weight: 600; font-size: 14.5px; padding: 10px 12px; border: 0; background: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.solapas button.activa { color: var(--ink); border-bottom-color: var(--accent); }
.solapas .num { font-family: var(--f-mono); font-size: 12px; background: var(--crit); color: #fff; border-radius: 999px; padding: 0 7px; }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filtros label { margin: 0; min-width: 160px; flex: 1 1 160px; }
.filtros .boton { width: auto; min-height: 48px; }
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.resumen div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-medio); padding: 12px 14px; font-size: 13px; color: var(--muted); }
.resumen b { display: block; font-family: var(--f-display); font-size: 34px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.resumen .bien b { color: var(--good); }
.resumen .atencion b { color: var(--warn); }
.tabla { overflow-x: auto; padding: 4px 6px; }
.tabla table { min-width: 680px; }
.acciones { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acciones input { min-height: 38px; padding: 6px 10px; flex: 1 1 200px; }
.grilla2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.pin-grande { font-family: var(--f-mono); font-size: 34px; font-weight: 500; letter-spacing: .2em; }

/* ── Marco del panel, copiado del prototipo (.ph, .tabs, .tab, .count, .tabgrp, .pb, .vsub) ── */
body.marco-panel { background: var(--surface); }
.ph { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ph h2 { font-family: var(--f-display); font-size: 26px; margin: 0; line-height: 1; display: flex; align-items: center; }
.ph .clock { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.ph-der { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.plogo { height: 26px; width: auto; vertical-align: middle; margin-right: 12px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.webas { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 0; font-weight: 400; }
.webas select { width: auto; padding: 5px 8px; font-size: 13px; border-radius: 8px; min-height: 0; margin: 0; }
.tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--surface); }
.tab { font-family: var(--f-body); font-weight: 600; font-size: 14.5px; padding: 10px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.tab.pendiente { opacity: .55; }
.tab.pendiente::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.count { font-family: var(--f-mono); font-size: 11.5px; background: var(--crit); color: #fff; border-radius: 999px; padding: 1px 6px; }
.tabgrp { align-self: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 4px 0 10px; white-space: nowrap; }
.pb { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); min-height: calc(100vh - 140px); }
.pb > iframe { width: 100%; border: 0; display: block; min-height: 400px; background: transparent; }
.banner { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.banner b { display: block; }
.banner.accent { background: var(--accent-soft); border-color: var(--accent); }
.vsub { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.vsub button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 600 13.5px var(--f-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.vsub button.on { background: #1E3A5F; border-color: #1E3A5F; color: #fff; }
.vsub .num { font-family: var(--f-mono); font-size: 11.5px; background: var(--crit); color: #fff; border-radius: 999px; padding: 0 6px; }
/* Dentro del marco, cada sección no repite su encabezado. */
body.embebido main { padding: 0 !important; max-width: none !important; }
body.embebido { background: var(--bg); }
.novedades-caja { position: absolute; right: 20px; top: 64px; z-index: 6; width: min(420px, calc(100vw - 40px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-grande); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); padding: 12px 14px; }

/* Navegación entre áreas */
.areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.areas a, .areas span { font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--surface); }
.areas .activa { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Recursos humanos: listas, secciones numeradas con tilde (como el prototipo) */
.fila { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); }
.fila:first-of-type { border-top: 0; }
button.fila:hover { background: var(--surface-2); }
.fila b { font-size: 15.5px; }
.fila small { grid-column: 1; }
.fila > .chip { justify-self: start; }
.fila .derecha { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.paso { border-top: 1px solid var(--line); padding: 14px 0; }
.paso:first-of-type { border-top: 0; }
.paso-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.paso-h b { font-size: 16px; }
.tilde { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.tilde.ok { background: var(--good); border-color: var(--good); color: #fff; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.casilla input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; }
.opciones { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.opciones label { margin: 0; font-weight: 500; }
.opciones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opciones span { display: inline-block; font-size: 13.5px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.opciones input:checked + span { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.opciones input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.reservado { border-left: 3px solid var(--crit); padding-left: 10px; }
fieldset.sin-borde { border: 0; padding: 0; margin: 0; min-width: 0; }
details.tarjeta summary { cursor: pointer; font-weight: 600; }
.historial { font-size: 13.5px; }
.historial div { padding: 5px 0; border-top: 1px dashed var(--line); }
.cajas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.volver { margin-bottom: 10px; }
.dato { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 4px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.dato:first-child { border-top: 0; }
.dato span:first-child { color: var(--muted); font-size: 13.5px; }

/* Personal y legajos: lista a la izquierda, legajo a la derecha (como el prototipo) */
.cgrid2 { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
@media (max-width: 760px) { .cgrid2 { grid-template-columns: minmax(0, 1fr); } }
.clist2 { display: flex; flex-direction: column; gap: 8px; }
.clist2 input[type="search"] { margin-bottom: 4px; }
.secH { font: 700 11.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 0; }
.secH:first-of-type { margin-top: 2px; }
.secH small { font: inherit; }
.vcard { position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 0; border-radius: 14px; background: var(--surface); padding: 12px 14px; cursor: pointer; font-family: var(--f-body); color: var(--ink);
  --c: #2FA36B; box-shadow: inset 0 0 0 1.5px var(--c), inset 0 0 14px color-mix(in srgb, var(--c) 18%, transparent); }
.vcard.st-y { --c: #E8A50C; }
.vcard.st-r { --c: #E0483D; }
.vcard.sel { outline: 3px solid #1E3A5F; outline-offset: 2px; }
.vcard b { font-size: 14.5px; padding-right: 16px; }
.vcard .vmeta { font-size: 12.5px; color: var(--muted); }
.vcard .tled { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.vcard.st-y .tled { animation: ldY 2.4s ease-in-out infinite; }
.vcard.st-r .tled { animation: ldR 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .vcard .tled { animation: none !important; } }
.valerta { font-size: 12px; font-weight: 600; border-radius: 7px; padding: 2px 7px; align-self: flex-start; margin-top: 2px; background: var(--warn-soft); }
.vdet { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; background: var(--surface); min-width: 0; }
.vdet > * { margin-top: 0; margin-bottom: 0; }
.vdet-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.vdet-h h2 { margin: 2px 0; font-family: var(--f-display); font-size: 28px; }
.vdet-h small { display: block; }
.datos .dato { grid-template-columns: max-content 1fr; gap: 6px 14px; border-top: 0; padding: 3px 0; font-size: 13.5px; }
.datos .dato span:first-child { font-size: 13.5px; }
.datos .dato span:last-child { text-align: right; font-weight: 600; }
.vsec { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-top: 1px solid var(--line); margin: 0; padding-top: 10px; }
.vsec small { color: var(--muted); }
.caprow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ausrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ausform, .horbox { background: var(--app-bg); border: 1px solid var(--line); border-radius: var(--r-medio); padding: 12px; margin-top: 10px; }
.ausform .acciones, .horbox .acciones { margin: 6px 0; }
.ausform label, .horbox label { margin: 0; }
.horl { min-width: 70px; font-weight: 600; font-size: 13.5px; }
.horbox select { width: auto; min-height: 38px; padding: 6px 10px; }
.horbox input[type="date"], .ausform input[type="date"] { width: auto; min-height: 38px; padding: 6px 10px; }
.horit { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 0; font-size: 14px; }
.horit.cx { opacity: .6; text-decoration: line-through; }
.horlist { margin-bottom: 8px; }
.vdet .resumen { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.vdet .resumen div { padding: 8px 12px; font-size: 12.5px; }
.vdet .resumen b { font-size: 26px; }
.vdet .filtros label { flex: 0 1 220px; }
table.jornadas td, table.jornadas th { padding: 7px 8px; }
table.jornadas tr.apagada td { color: var(--muted); }
.solo-impresion { display: none; }
@media print {
  body.informe .informe-horas, body.informe .informe-horas * { visibility: visible; }
  body.informe .informe-horas { position: absolute; left: 0; top: 0; width: 100%; }
  body.informe .imprimir, body.informe .imprimir * { visibility: hidden; }
  .solo-impresion { display: block; }
}

/* Rankings (como el prototipo) */
.destacados { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.destacado { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-medio); padding: 10px 12px; }
.destacado span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.destacado b { display: block; font-size: 16px; margin-top: 2px; }
.destacado.pos { border-left-color: var(--good); background: var(--good-soft); }
.destacado.neg { border-left-color: var(--crit); background: var(--crit-soft); }
.rank { display: grid; grid-template-columns: 34px minmax(140px, 1.2fr) 2fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.rank .enlace { text-align: left; text-decoration: none; padding: 0; }
.rank.top .mono:first-child { color: var(--good); font-weight: 700; }
.rank.bot .mono:first-child { color: var(--crit); font-weight: 700; }
.barra-rk { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.barra-rk i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.rank.bot .barra-rk i { background: var(--crit); }
.mes-titulo { font-family: var(--f-display); font-size: 26px; }

/* Notificación de sanción en dos ejemplares */
.solo-notif { display: none; }
.notif-hoja { background: #fff; color: #15191B; padding: 14mm 16mm; font-size: 12pt; line-height: 1.5; page-break-after: always; }
.notif-top { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid #15191B; padding-bottom: 8px; margin-bottom: 14px; }
.notif-top img { width: 46mm; height: auto; }
.notif-top b { display: block; font-size: 13pt; }
.notif-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 16mm; margin-top: 18mm; font-size: 10pt; }
.notif-firmas span { display: block; border-top: 1px solid #15191B; margin-bottom: 4px; }
@media print {
  body.notif * { visibility: hidden; }
  body.notif .solo-notif, body.notif .solo-notif * { visibility: visible; }
  body.notif .solo-notif { display: block; position: absolute; left: 0; top: 0; width: 100%; }
}

/* Carnet de ingreso, como en el prototipo: tamaño tarjeta (85 × 54 mm), frente y dorso */
.carnets { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.carnet { width: 85.6mm; height: 54mm; box-sizing: border-box; border-radius: 3.5mm; background: #fff; color: #111; border: 1px solid #bbb; padding: 3mm; font: 9pt/1.25 Arial, Helvetica, sans-serif; display: flex; flex-direction: column; overflow: hidden; page-break-inside: avoid; break-inside: avoid; }
.cn-top { border-bottom: 1.2mm solid #F2B705; padding-bottom: 1.5mm; }
.cn-top img { height: 7mm; width: auto; display: block; }
.cn-body { display: flex; gap: 2.5mm; flex: 1; align-items: center; margin-top: 2mm; }
.cn-foto { width: 17mm; height: 21mm; border-radius: 2mm; background: #e8ecf1; display: grid; place-items: center; flex: none; color: #1E3A5F; font-size: 14pt; overflow: hidden; }
.cn-foto img { width: 100%; height: 100%; object-fit: cover; }
.cn-datos { flex: 1; display: flex; flex-direction: column; gap: .6mm; min-width: 0; }
.cn-datos b { font-size: 10.5pt; color: #1E3A5F; }
.cn-datos span { font-size: 8pt; }
.cn-n { font-family: 'Courier New', monospace; font-weight: 700; }
.cn-qr { width: 23mm; flex: none; }
.cn-qr svg { width: 100%; height: auto; display: block; }
.cn-pie { font-size: 7pt; color: #555; border-top: .3mm solid #ddd; padding-top: 1mm; }
.carnet.dorso { justify-content: flex-start; gap: 1.2mm; }
.carnet.dorso b { color: #1E3A5F; font-size: 10pt; }
.carnet.dorso ol { margin: 0; padding-left: 5mm; font-size: 8pt; }
.carnet.dorso p { margin: 0; font-size: 7.5pt; }
.cn-chico { color: #666; }
.vista-impresion { border: 2px solid var(--accent); }
#ingreso .center { text-align: center; margin: 10px 0 0; }
.vi-barra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.vi-barra span { flex: 1; color: var(--muted); font-size: 13px; }
.vi-barra h2 { margin: 0; }
.vi-barra label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; flex-direction: row; }
.vi-barra input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; }
/* Solapa «Credenciales QR» */
.credgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 8px 0; }
.credmini { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); }
.credmini.off { opacity: .7; }
.credmini input[type=checkbox] { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.credmini .cm-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.credmini small { font-size: 11.5px; color: var(--muted); }
.credmini .acciones { margin-top: 6px; }
.cm-foto { width: 40px; height: 50px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; flex: none; font-weight: 700; color: var(--muted); overflow: hidden; }
.cm-foto img { width: 100%; height: 100%; object-fit: cover; }
.maestros { display: grid; gap: 6px; }
.maestros div { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
/* «Usuarios y accesos», copiado del prototipo (.acgrid, .acrow, .acsteps, .acsec, .ftchips, .rogrid, .rocard, .romatrix, .roseg) */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.acgrid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 12px; align-items: start; }
@media (max-width: 760px) { .acgrid { grid-template-columns: 1fr; } }
.aclist { display: flex; flex-direction: column; gap: 6px; max-height: 75vh; overflow: auto; }
.aclist input[type=search] { margin: 0 0 4px; }
.acrow { display: grid; grid-template-columns: 1fr; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink); font-family: var(--f-body); cursor: pointer; }
.acrow.sel { border-color: var(--marino); box-shadow: inset 0 0 0 1px var(--marino); }
.acrow b { font-size: 14px; }
.acrow small { font-size: 12px; color: var(--muted); }
.acrow .pill { justify-self: start; margin-top: 3px; }
.acsteps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.acsteps span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border-radius: 99px; padding: 4px 10px 4px 4px; }
.acsteps i { width: 20px; height: 20px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.acsteps span.ok i { background: var(--good); color: #fff; }
.acsec { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.acsec > b { display: block; margin-bottom: 4px; }
.acfoto { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.ftchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ftchips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 11px; font: 500 13px var(--f-body); cursor: pointer; text-align: left; }
.ftchips button.on { background: var(--marino); border-color: var(--marino); color: #fff; }
.ftchips button:disabled { opacity: .5; cursor: not-allowed; }
.fgrp-h { font: 700 12px var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 4px; }
.rogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.rocard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.rocard.on { grid-column: 1 / -1; border-color: var(--marino); }
.rocard .cab { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.rochips { display: flex; gap: 6px; flex-wrap: wrap; }
.roform { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.romatrix { margin-top: 8px; display: flex; flex-direction: column; }
.rorow { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 6px 0; flex-wrap: wrap; }
.rorow > span:first-child { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; flex: 1; min-width: 200px; }
.rorow small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.roseg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.roseg button { border: 0; background: var(--surface); color: var(--ink); font: 600 12.5px var(--f-body); padding: 6px 13px; cursor: pointer; }
.roseg button + button { border-left: 1px solid var(--line); }
.roseg button.on.no { background: var(--surface-2); }
.roseg button.on.si { background: var(--marino); color: #fff; }
.roseg button:disabled { cursor: not-allowed; opacity: .55; }
.acclog { display: grid; grid-template-columns: 112px 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 7px 0; font-size: 13.5px; }
.acclog .mono { font-size: 12px; color: var(--muted); }
.acclog.fail b { color: var(--crit); }
.acclog small { display: block; color: var(--muted); font-size: 12px; }
.crit-txt { color: var(--crit); }
/* «Presentes», como el prototipo (.lgbar, .prbar, .lgk, .lgout, tr.live, .who, .sub, .prit, .pill.rsre) */
.lgbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: end; margin-bottom: 8px; }
.lgbar input[type=search] { min-height: 44px; padding: 9px 12px; border-radius: 12px; }
.lgk { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lgk button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 12px; font: 600 13px var(--f-body); cursor: pointer; }
.lgk button.on { background: #1E3A5F; border-color: #1E3A5F; color: #fff; }
.lgk small { color: inherit; opacity: .7; font-weight: 500; }
.lgout { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.lgout > span { margin-right: auto; }
tr.live td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.who { font-weight: 600; }
.sub { font-size: 12.5px; color: var(--muted); }
.prit { margin-top: 3px; }
.prit .pill { white-space: normal; text-align: left; }
.pill.rsre { background: #DCE6F5; color: #24467A; }

/* ── Oficina igual al prototipo: las mismas piezas y medidas que el panel de app/index.html
   (.pb blanco, .tablewrap, table/th/td, .chip-sm, .linkbtn, .note, .small, .muted, .empty). ── */
/* Fondo gris con los recuadros en blanco (lo eligió la empresa; el prototipo tenía el panel todo blanco). */
.oficina .tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 6px; }
/* Como .pb del prototipo: 14 px entre cada bloque de la pantalla. */
body.oficina.embebido main > * { margin-top: 0; margin-bottom: 0; }
body.oficina.embebido main > * + * { margin-top: 14px; }
.tablewrap { overflow-x: auto; }
.oficina table { width: 100%; border-collapse: collapse; font-size: 14px; }
.oficina th { font-family: var(--f-body); font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.oficina td { padding: 10px; border-top: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.oficina tbody tr:last-child td { border-bottom: 0; }
.chip-sm { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--ink); cursor: pointer; font-family: var(--f-body); }
.chip-sm.on { background: #1E3A5F; color: #fff; border-color: #1E3A5F; }
.chip-sm.aux { border-color: var(--crit); background: var(--crit-soft); color: var(--crit); }
/* Los botones chicos de la oficina son los «chip-sm» del prototipo. */
.oficina .boton.chico { display: inline-flex; width: auto; min-height: 0; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--ink); }
.oficina .boton.chico.principal { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.oficina .boton.chico.peligro, .oficina .boton.chico.rechazar { border-color: var(--crit); background: var(--crit-soft); color: var(--crit); }
.oficina .boton.chico.aceptar { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.linkbtn { border: 0; background: none; color: var(--muted); text-decoration: underline; font: 500 13px var(--f-body); cursor: pointer; padding: 0; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.oficina .nota { font-size: 13px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.oficina input[type=search] { min-height: 44px; padding: 9px 12px; border-radius: 12px; }
.oficina .etiqueta { font: 700 11.5px var(--f-body); letter-spacing: .08em; }
.pr-hoja { display: none; }
@media print {
  .pr-hoja { display: block; width: 100%; font: 11px var(--f-body); color: #000; }
  .pr-hoja-cab { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
  .pr-hoja-cab img { height: 34px; }
  .pr-hoja-cab span { display: block; font-size: 10px; }
  .pr-hoja table { border-collapse: collapse; width: 100%; }
  .pr-hoja th, .pr-hoja td { border: 1px solid #999; padding: 3px 5px; text-align: left; vertical-align: top; }
}
@media print {
  body * { visibility: hidden; }
  .imprimir, .imprimir * { visibility: visible; }
  .imprimir { position: absolute; left: 0; top: 0; }
  .no-imprimir { display: none !important; }
}
