/* =====================================================================
   HOJAS DE RUTA (13/10/2026): vista previa en pantalla (hojas blancas sobre
   fondo oscuro) y, al imprimir, solo las hojas, una por página.
   ===================================================================== */
.hr-modal { position: fixed; z-index: 9600; top: 0; left: 0; right: 0; bottom: 0; background: #1f2937; overflow: auto; color: #111;
  font-family: 'Segoe UI', Arial, sans-serif; }
.hr-ctl { position: -webkit-sticky; position: sticky; top: 0; z-index: 2; background: #0b1626; color: #e2e8f0; padding: 10px 18px; border-bottom: 1px solid #22d3ee; font-size: 14px; }
.hr-ctl b { color: #67e8f9; letter-spacing: 2px; margin-right: 10px; }
.hr-ctl label { display: inline-block; margin: 2px 10px 2px 0; cursor: pointer; }
.hr-ctl label small { color: #64748b; }
.hr-ctl .hr-op { margin-left: 10px; color: #fcd34d; }
.hr-imp { margin-left: 10px; background: #22d3ee !important; color: #030a14 !important; border: none; border-radius: 6px; padding: 7px 16px; font-weight: 700; cursor: pointer; font-size: 14px; }
.hr-cerrar { margin-left: 6px; background: #0b1626 !important; color: #94a3b8 !important; border: 1px solid #475569; border-radius: 6px; padding: 6px 14px; cursor: pointer; }
.hr-ayuda { font-size: 12px; color: #64748b; margin-top: 4px; }
.hr-hojas { padding: 20px 0 40px; }
.hr-hoja { width: 277mm; min-height: 180mm; margin: 0 auto 24px; background: #fff; padding: 10mm; box-sizing: border-box; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.hr-cab { border-left: 8px solid; padding: 2px 0 6px 12px; margin-bottom: 8px; }
.hr-tit { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.hr-tit i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hr-sub { font-size: 12px; color: #444; margin-top: 2px; }
.hr-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
.hr-tabla th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: #555; border-bottom: 2px solid #222; padding: 4px 5px; }
.hr-tabla td { border-bottom: 1px solid #ccc; padding: 5px 5px; vertical-align: top; }
.hr-tabla td small { display: block; color: #555; font-size: 10.5px; }
.hr-tabla td b { font-size: 13px; }
.hr-tabla td i { color: #777; }
.hr-tabla tr { page-break-inside: avoid; }
.hr-dia td { background: #eee; font-weight: 800; letter-spacing: 2px; font-size: 11px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hr-tilde span { display: inline-block; width: 16px; height: 16px; border: 2px solid #222; border-radius: 3px; }
.hr-hora { font-weight: 700; white-space: nowrap; }
.hr-ent { white-space: nowrap; }
.hr-mal td { background: #fde8e8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hr-mal .hr-ent small { color: #b91c1c; font-weight: 700; }
.hr-qr { width: 54px; height: 54px; image-rendering: pixelated; }
.hr-pie { margin-top: 8px; font-size: 10px; color: #888; text-align: right; }

@page { size: A4 landscape; margin: 8mm; }
@media print {
  body.hr-imprimiendo > * { display: none !important; }
  body.hr-imprimiendo > .hr-modal { display: block !important; position: static; background: #fff; overflow: visible; }
  body.hr-imprimiendo .hr-ctl { display: none !important; }
  body.hr-imprimiendo .hr-hojas { padding: 0; }
  body.hr-imprimiendo .hr-hoja { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; page-break-after: always; }
  body.hr-imprimiendo .hr-hoja:last-child { page-break-after: auto; }
}

/* Viene de impresión: celda marcada (14/10/2026) */
.hr-desde-imp { background: #e0f7fb; border-left: 4px solid #0891b2; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hr-desde-imp.falta { background: #fff7e0; border-left-color: #d97706; }

/* Hoja de impresión: la hora límite resaltada (14/10/2026) */
.hr-limite { font-size: 15px; color: #0e7490; }
