/* Catálogo de horarios (horas.php) */
.hr {
  --hr-surface: #ffffff;
  --hr-fondo: #f6f7f9;
  --hr-borde: #e1e4e8;
  --hr-texto: #1f2328;
  --hr-texto-2: #57606a;
  --hr-muted: #8c959f;
  --hr-acento: #2a78d6;
  --hr-acento-suave: #eef5fd;
  color: var(--hr-texto);
}
.hr [hidden] { display: none !important; }
.demo, #demo-setting { display: none !important; }
.hr .hr-muted { color: var(--hr-muted); }

.hr-head { margin-bottom: 12px; }
.hr-head .page-title { margin: 0 0 2px; }
.hr-head p { margin: 0; max-width: 760px; }
.hr-card { background: var(--hr-surface); border: 1px solid var(--hr-borde); border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.hr-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.hr-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); gap: 14px; align-items: start; }

/* sistema.css fuerza height:20px !important en .form-control */
.hr .form-control { height: 32px !important; padding: 4px 10px; }
.hr .input-sm { height: 30px !important; }

.hr-campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.hr-campo label { font-size: 12px; font-weight: 600; color: var(--hr-texto-2); margin: 0; }
.hr-horas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hr-previa { min-height: 22px; font-size: 12px; color: var(--hr-texto-2); margin-bottom: 10px; }
.hr-nota { margin: 12px 0 0; font-size: 11px; }

.hr-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 6px; border: 1px solid #d4a72c; background: #fff8c5; margin-bottom: 10px; }
.hr-aviso .fa { margin-top: 3px; }
.hr-aviso.error { border-color: #f5a3a8; background: #ffebe9; color: #82071e; }
.hr-aviso.ok { border-color: #8ddb9e; background: #dafbe1; color: #116329; }

.hr-lista { padding: 0; }
.hr-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--hr-borde); }
.hr-toolbar h3 { margin: 0; }
.hr-toolbar input { max-width: 260px; }
.hr-tabla-wrap { max-height: 68vh; overflow: auto; }
.hr-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.hr-tabla th, .hr-tabla td { padding: 8px 12px; border-bottom: 1px solid var(--hr-borde); vertical-align: middle; }
.hr-tabla thead th { background: var(--hr-fondo); font-size: 12px; font-weight: 600; color: var(--hr-texto-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.hr-tabla tbody tr:hover td { background: #f8fafc; }
.hr-tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr-tabla .col-acc { text-align: right; width: 1%; }
.hr-rango { font-variant-numeric: tabular-nums; font-weight: 600; }
.hr-sin-datos { text-align: center; padding: 22px !important; }
.hr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.hr-chip.especial { background: #efedfb; color: #4a3aa7; }
.hr-chip.noche { background: #e8ecf5; color: #3d4a6b; }

@media (max-width: 991px) {
  .hr-grid { grid-template-columns: minmax(0, 1fr); }
}
