/* Checador Lite — tema «Azul Checador» (1.15.0, 19-nov-2026; sustituye a «Marino y jade» de la 1.8.0)
   Lateral en degradado azul profundo con onda verde, encabezado claro, fondo azul muy tenue y tarjetas blancas
   redondeadas. El color de acción es azul (botones, pestaña activa, enfoque); el verde queda para la marca
   («Lite», App Colaborador, Nuevo). Las variables --jade* conservan su nombre por compatibilidad con los estilos
   en línea de las páginas, pero ahora valen azul. Los alias viejos (--azul, --azul-claro…) siguen igual. */
:root {
  --marino: #0b2a5b; --marino-2: #123a7a; --marino-3: #2a5298;
  --jade: #1769e8; --jade-osc: #0f55c4; --jade-claro: #e8f0fe; --jade-borde: #bcd3fb;
  --marca-verde: #1fbf4f; --marca-verde-osc: #17a142;
  --verde: #1aa84f; --rojo: #e5484d; --amarillo: #f2a900; --morado: #7c5cd6; --gris: #5b6b82; --gris-claro: #f0f4fa;
  --borde: #e3e9f2; --texto: #13213a; --fondo: #f2f6fc;
  --sidebar-w: 250px; --header-h: 70px; --radio: 16px; --sombra: 0 2px 10px rgba(23, 60, 130, .07);
  /* alias del tema anterior */
  --azul: var(--jade); --azul-osc: var(--jade-osc); --azul-claro: var(--jade-claro); --azul-sidebar: var(--marino); --azul-sidebar2: var(--marino-2);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 13px; color: var(--texto); background: var(--fondo); }
a { color: var(--jade-osc); }
a:hover { color: var(--jade); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--marino); }
.text-azul { color: var(--jade-osc) !important; }
.bg-azul { background: var(--jade) !important; color: #fff; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-11 { font-size: 11px; } .text-12 { font-size: 12px; } .text-14 { font-size: 14px; } .text-16 { font-size: 16px; } .text-18 { font-size: 18px; } .text-24 { font-size: 24px; } .text-32 { font-size: 32px; } .text-40 { font-size: 40px; }
.cursor { cursor: pointer; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.rh-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); color: #fff; z-index: 1030; display: flex; flex-direction: column; transition: transform .2s; overflow: hidden;
  background: linear-gradient(180deg, #0a2350 0%, #0d2f6b 45%, #1146a6 100%); }
/* Onda verde y azul al pie del lateral (decorativa, no tapa el menú) */
.rh-sidebar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 190' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2300c2ff'/%3E%3Cstop offset='.55' stop-color='%2322d36b'/%3E%3Cstop offset='1' stop-color='%2335f07a'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%231a5fd6' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%230b3fa8' stop-opacity='.9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 120 C70 120 120 60 250 40 L250 190 L0 190Z' fill='url(%23h)'/%3E%3Cpath d='M0 128 C80 126 130 70 250 46' stroke='url(%23g)' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 150 C90 150 150 100 250 82' stroke='%2300c2ff' stroke-opacity='.35' stroke-width='3' fill='none'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%; }
.rh-sidebar > * { position: relative; z-index: 1; }
.rh-brand { height: 96px; display: flex; align-items: center; padding: 0 22px; gap: 12px; }
.rh-brand .logo { color: #fff; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.rh-brand .logo:hover { color: #fff; }
.rh-brand .logo > i, .rh-brand .logo .logo-ico { flex: none; font-size: 26px; width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.rh-brand .logo img.logo-ico { border: 0; object-fit: contain; }
.rh-brand .logo .marca { display: flex; flex-direction: column; line-height: .95; font-weight: 800; font-size: 26px; letter-spacing: -0.6px; }
.rh-brand .logo .marca b { color: var(--marca-verde); font-weight: 800; }
.rh-brand .toggle { display: none; }
.rh-menu { list-style: none; margin: 4px 0 10px; padding: 0 12px; overflow-y: auto; flex: 1; }
.rh-menu::-webkit-scrollbar { width: 5px; } .rh-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
.rh-menu > li > a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; color: rgba(255,255,255,.92); text-decoration: none; font-weight: 500; font-size: 14.5px; border-radius: 10px; margin: 3px 0; position: relative; line-height: 1.2; }
.rh-menu > li > a i.ico { width: 24px; text-align: center; font-size: 18px; color: #fff; flex: none; }
.rh-menu > li > a .arrow { margin-left: auto; font-size: 11px; transition: transform .2s; }
.rh-menu > li.open > a .arrow { transform: rotate(90deg); }
.rh-menu > li > a:hover { background: rgba(255,255,255,.09); color: #fff; }
.rh-menu > li.active > a { background: linear-gradient(90deg, #1f7bff, #2f8cff); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(20, 110, 255, .45); }
.rh-menu > li.active > a i.ico, .rh-menu > li > a:hover i.ico { color: #fff; }
.rh-menu ul { list-style: none; padding: 0 0 4px 36px; margin: 0; display: none; }
.rh-menu li.open ul { display: block; }
.rh-menu ul a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); text-decoration: none; padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.rh-menu ul a:hover, .rh-menu ul a.active { color: #fff; background: rgba(255,255,255,.1); }
.badge-nuevo { background: var(--marca-verde); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 6px; font-weight: 700; margin-left: auto; flex: none; }
.rh-sidebar .footer-side { padding: 12px 22px; font-size: 10.5px; opacity: .55; }

.rh-header { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h); color: var(--texto); display: flex; align-items: center; padding: 0 22px 0 26px; z-index: 1020;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(214, 226, 245, .8); }
.rh-header .rh-burger { display: inline-flex; margin-right: 18px; color: var(--marino-2); font-size: 22px; }
.rh-header .user { line-height: 1.25; min-width: 0; }
.rh-header .user .n { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .2px; color: var(--marino); }
.rh-header .user .e { font-size: 15px; font-weight: 700; color: var(--marino); }
.rh-header .user .text-11 { color: var(--marino); }
.rh-header .user a, .rh-header .hdr-link { color: var(--jade-osc) !important; }
.rh-header .pill-sus { display: inline-block; background: var(--marca-verde); color: #fff !important; font-weight: 600; font-size: 10.5px; padding: 2px 10px; border-radius: 20px; margin-left: 8px; text-decoration: none !important; }
.rh-header .pill-sus:hover { background: var(--marca-verde-osc); }
@media (max-width: 575px) {
  .rh-header .user .text-11 { display: none; }
  .rh-header .rh-burger { margin-right: 10px; }
  .pag-hero h1 { font-size: 26px; } .pag-hero .ic { width: 52px; height: 52px; font-size: 22px; } .pag-hero p { font-size: 13px; }
}
.rh-header .acciones { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rh-header .acciones .ico, .rh-header .ico { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--marino-2); font-size: 21px; cursor: pointer; text-decoration: none; }
.rh-header .acciones .ico:hover, .rh-header .ico:hover { background: var(--jade-claro); color: var(--jade-osc); }
.rh-header .acciones .btn-verde { background: linear-gradient(180deg, #25c95a, #17a142); color: #fff; border: 0; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 10px; margin-right: 18px; box-shadow: 0 4px 12px rgba(31,191,79,.35); }
.rh-header .acciones .btn-verde:hover { filter: brightness(1.05); }
.rh-main { margin-left: var(--sidebar-w); margin-top: var(--header-h); min-height: calc(100vh - var(--header-h)); padding: 22px 26px 40px;
  background: radial-gradient(1200px 380px at 85% -60px, #d8e7ff 0%, rgba(216,231,255,0) 70%), var(--fondo); }
body.side-cerrado .rh-sidebar { transform: translateX(-100%); }
body.side-cerrado .rh-header { left: 0; } body.side-cerrado .rh-main { margin-left: 0; }

/* Encabezado de página grande (Dashboard) */
.pag-hero { display: flex; align-items: center; gap: 18px; margin: 4px 0 18px; }
.pag-hero .ic { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(160deg, #2f8cff, #1257d6); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 8px 18px rgba(23,105,232,.35); flex: none; }
.pag-hero h1 { font-size: 32px; font-weight: 800; color: var(--marino); margin: 0; letter-spacing: -0.6px; line-height: 1.1; }
.pag-hero p { margin: 2px 0 0; color: var(--marino-2); font-size: 15px; }

/* Barra de filtros dentro de tarjeta */
.filtros-card { background: rgba(255,255,255,.92); border-radius: var(--radio); box-shadow: var(--sombra); padding: 12px 20px 14px; margin-bottom: 18px; }
.filtros-card .filtro-label { font-size: 13px; font-weight: 600; color: var(--texto); margin-bottom: 6px; }
.filtros-card .patron-pill, .filtros-card .sel-filtro, .filtros-card .ms-wrap > button { width: 100%; }
.sel-filtro, .filtros-card .ms-wrap > button.sel-azul { background: #fff !important; border: 1.5px solid #c9d6ea !important; border-radius: 10px !important; color: var(--texto) !important; font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; height: 40px; padding: 6px 12px !important; }
.filtros-card .ms-wrap > button.sel-azul { padding-left: 38px !important; position: relative; }
.filtros-card .ms-wrap { position: relative; }
.filtros-card .ms-wrap .ms-ico { position: absolute; left: 14px; top: 12px; z-index: 2; color: var(--marino-2); font-size: 15px; pointer-events: none; }
.sel-ico-wrap { position: relative; }
.sel-ico-wrap > i { position: absolute; left: 14px; top: 12px; color: var(--marino-2); font-size: 15px; pointer-events: none; z-index: 2; }
.sel-ico-wrap > select { padding-left: 40px !important; }
.filtros-card .patron-pill { border: 1.5px solid #c9d6ea; border-radius: 10px; height: 40px; }
.filtros-card .patron-pill .lbl { background: transparent; color: var(--marino-2); padding: 0 2px 0 14px; font-size: 0; }
.filtros-card .patron-pill .lbl i { font-size: 15px; }
.filtros-card .patron-pill select { flex: 1; max-width: none; font-weight: 600; font-size: 13px; padding-left: 8px; }

/* Tarjetas de indicador (Dashboard) */
.kpi2 { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radio); box-shadow: var(--sombra); height: 100%; border: 1px solid rgba(255,255,255,.7); }
.kpi2 .ic { font-size: 40px; flex: none; width: 54px; text-align: center; }
.kpi2 .t { font-size: 15px; font-weight: 700; color: var(--texto); }
.kpi2 .v { font-size: 34px; font-weight: 800; color: var(--texto); line-height: 1.1; letter-spacing: -0.5px; }
.kpi2 .s { font-size: 13px; color: var(--marino); }
.kpi2.rojo { background: linear-gradient(135deg, #fff 0%, #fde8e9 100%); } .kpi2.rojo .ic { color: var(--rojo); }
.kpi2.verde { background: linear-gradient(135deg, #fff 0%, #dff6e6 100%); } .kpi2.verde .ic { color: var(--verde); }
.kpi2.azul { background: linear-gradient(135deg, #fff 0%, #e1ecfd 100%); } .kpi2.azul .ic { color: var(--jade); }
.kpi2.amarillo { background: linear-gradient(135deg, #fff 0%, #fdf1cf 100%); } .kpi2.amarillo .ic { color: var(--amarillo); }
.kpi2 .s.chico { font-size: 11.5px; }
.card-dash { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); height: 100%; padding: 16px; }
.card-dash .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-dash .hd .tt { font-size: 16px; font-weight: 700; color: var(--texto); }
.card-dash .hd .tt i { color: var(--verde); margin-right: 8px; }
.card-dash .hd .mas { margin-left: auto; color: var(--marino); cursor: default; padding: 0 6px; }
.tabs-top { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; padding: 0 0 2px; list-style: none; scrollbar-width: none; }
.tabs-top::-webkit-scrollbar { display: none; }
.tabs-top a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 10px; font-weight: 600; font-size: 12px; white-space: nowrap; color: var(--texto); background: var(--gris-claro); text-decoration: none !important; }
.tabs-top a.active { background: var(--jade); color: #fff; box-shadow: 0 4px 12px rgba(23,105,232,.35); }
.tabs-top a:not(.active):hover { background: var(--jade-claro); color: var(--jade-osc); }
.top-lista { width: 100%; font-size: 14px; }
.top-lista td { padding: 9px 6px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.top-lista tr:last-child td { border-bottom: 0; }
.top-lista .avatar { background: var(--marino-2); width: 36px; height: 36px; font-size: 13px; }
.top-lista .fw-600 { font-weight: 600; }
.pill-cuenta { display: inline-block; background: #fde3e4; color: #d4343a; font-weight: 600; font-size: 13px; padding: 3px 14px; border-radius: 6px; white-space: nowrap; }
.pill-cuenta.amarillo { background: #fdf1cf; color: #9a6b00; } .pill-cuenta.azul { background: var(--jade-claro); color: var(--jade-osc); }
.inc-card { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid rgba(255,255,255,.7); }
.inc-card .ic { font-size: 40px; width: 46px; text-align: center; flex: none; }
.inc-card .t { font-size: 14px; font-weight: 600; color: var(--texto); }
.inc-card .v { font-size: 34px; font-weight: 800; color: var(--texto); line-height: 1.1; }
.inc-card .v small { font-size: 19px; font-weight: 500; margin-left: 8px; }
.inc-card .v.fecha { font-size: 24px; font-weight: 700; }
.inc-card .s { font-size: 14px; color: var(--marino); }
.inc-card.rojo { background: linear-gradient(135deg, #fff 0%, #fde8e9 100%); } .inc-card.rojo .ic { color: var(--rojo); }
.inc-card.amarillo { background: linear-gradient(135deg, #fff 0%, #fdf1cf 100%); } .inc-card.amarillo .ic { color: var(--amarillo); }
.inc-card.azul { background: linear-gradient(135deg, #fff 0%, #e1ecfd 100%); } .inc-card.azul .ic { color: var(--jade); }
.apexcharts-legend-text { color: var(--texto) !important; font-weight: 500 !important; }
.rh-burger { display: none; }
@media (max-width: 991px) {
  .rh-sidebar { transform: translateX(-100%); } body.side-open .rh-sidebar { transform: none; }
  .rh-header { left: 0; padding-left: 14px; } .rh-main { margin-left: 0; padding: 14px 12px 40px; }
  .rh-burger { display: inline-flex; margin-right: 12px; }
  .rh-header .user .e { font-size: 13px; }
}

/* ---------- Componentes ---------- */
.page-title { font-size: 19px; font-weight: 700; color: var(--marino); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.card { border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); background: #fff; }
.card-body { padding: 16px 18px; }
.card .heading { font-size: 12px; font-weight: 700; color: var(--marino); margin: 0 0 6px; }
.kpi { text-align: center; padding: 18px 12px; }
.kpi i { font-size: 26px; color: var(--jade); }
.kpi .v { font-size: 18px; font-weight: 700; margin: 6px 0 2px; color: var(--marino); }
.kpi .s { font-size: 12px; color: var(--gris); }
.kpi.rojo i { color: var(--rojo); } .kpi.verde i { color: var(--verde); } .kpi.amarillo i { color: var(--amarillo); } .kpi.morado i { color: var(--morado); }

.filtro-label { font-size: 12px; font-weight: 700; margin-bottom: 4px; display: block; color: var(--marino); }
/* Botones: tres niveles. Lleno (jade) = la acción principal; contorno = secundaria; blanco con borde = de apoyo. */
.btn { font-family: inherit; font-weight: 600; border-radius: 8px; font-size: 12.5px; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 .18rem rgba(14,148,136,.25); }
.btn-primary { background: var(--jade); border-color: var(--jade); color: #fff; box-shadow: 0 1px 2px rgba(14,148,136,.3); }
.btn-primary:hover, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active { background: var(--jade-osc); border-color: var(--jade-osc); color: #fff; }
.btn-outline-primary { color: var(--jade-osc); border-color: var(--jade); background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:not(:disabled):not(.disabled):active { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn-success { background: var(--verde); border-color: var(--verde); } .btn-success:hover { background: #1a8558; border-color: #1a8558; }
.btn-outline-success { color: #1a8558; border-color: var(--verde); background: #fff; } .btn-outline-success:hover { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-danger { background: var(--rojo); border-color: var(--rojo); } .btn-danger:hover { background: #b93a2e; border-color: #b93a2e; }
.btn-outline-danger { color: #b93a2e; border-color: #e8a39c; background: #fff; } .btn-outline-danger:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.btn-warning { background: #f5b300; border-color: #f5b300; color: #3b2a00; } .btn-warning:hover { background: #d99e00; border-color: #d99e00; color: #3b2a00; }
.btn-outline-warning { color: #9a6b00; border-color: #e9c35c; background: #fff; } .btn-outline-warning:hover { background: #f5b300; border-color: #f5b300; color: #3b2a00; }
.btn-info { background: var(--marino-2); border-color: var(--marino-2); color: #fff; } .btn-info:hover { background: var(--marino); border-color: var(--marino); color: #fff; }
.btn-outline-info { color: var(--marino-2); border-color: var(--marino-3); background: #fff; } .btn-outline-info:hover { background: var(--marino-2); border-color: var(--marino-2); color: #fff; }
.btn-light { background: #fff; border-color: var(--borde); color: var(--texto); } .btn-light:hover { background: var(--gris-claro); border-color: #cbd5e1; color: var(--marino); }
.btn-secondary { background: #e2e8f0; border-color: #e2e8f0; color: var(--marino); } .btn-secondary:hover { background: #cbd5e1; border-color: #cbd5e1; color: var(--marino); }
.btn-outline-secondary { color: var(--gris); border-color: #cbd5e1; background: #fff; } .btn-outline-secondary:hover { background: var(--gris-claro); border-color: #94a3b8; color: var(--marino); }
.btn-pill { border-radius: 30px; padding: 6px 18px; }
.btn-circle { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 16px; }
.btn-ico-round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--borde); background: #fff; color: var(--gris); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; margin-right: 6px; box-shadow: var(--sombra); }
.btn-ico-round:hover { color: var(--jade-osc); border-color: var(--jade); background: var(--jade-claro); }
.form-control, .custom-select { font-family: inherit; font-size: 12.5px; border-radius: 8px; border-color: #cbd5e1; height: calc(1.5em + .75rem + 4px); color: var(--texto); }
.form-control:focus, .custom-select:focus { border-color: var(--jade); box-shadow: 0 0 0 .18rem rgba(14,148,136,.18); }
.form-control-sm { height: calc(1.5em + .5rem + 2px); }
label { font-size: 12px; margin-bottom: 4px; }
/* Selectores de filtro: contorno, para que no se confundan con los botones de acción */
.sel-azul { background: #fff !important; color: var(--marino) !important; border: 1.5px solid #c9d6ea !important; font-weight: 600; font-size: 12.5px; }
.sel-azul option { background: #fff; color: var(--texto); text-transform: none; font-weight: 500; }
.sel-verde { background: #fff !important; color: #1a8558 !important; border: 1.5px solid var(--verde) !important; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .3px; }
.sel-verde option { background: #fff; color: var(--texto); font-weight: 500; }
.patron-pill { display: inline-flex; align-items: stretch; border: 1px solid var(--borde); border-radius: 30px; overflow: hidden; background: #fff; }
.patron-pill .lbl { background: var(--marino); color: #fff; padding: 7px 14px; font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.patron-pill select { border: 0; background: #fff; padding: 0 12px; font-family: inherit; font-size: 12.5px; max-width: 320px; outline: none; color: var(--texto); }

/* Tabs: subrayado jade en vez de pestaña rellena */
.nav-tabs { border-bottom: 1px solid var(--borde); margin-bottom: 14px; }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--gris); font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 0; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.nav-tabs .nav-link i { font-size: 15px; }
.nav-tabs .nav-link.active { background: transparent; color: var(--jade-osc); border-bottom-color: var(--jade); }
.nav-tabs .nav-link:hover:not(.active) { color: var(--marino); background: var(--gris-claro); border-radius: 8px 8px 0 0; }
.nav-pills .nav-link { color: var(--marino); font-weight: 600; border-radius: 8px; padding: 6px 14px; }
.nav-pills .nav-link.active { background: var(--jade); color: #fff; }

/* Switch */
.switch { position: relative; display: inline-block; width: 42px; height: 22px; vertical-align: middle; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 22px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--jade); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch-lbl { font-size: 11px; color: var(--gris); display: block; text-align: center; }
.help { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: var(--marino-3); color: #fff; font-size: 10px; align-items: center; justify-content: center; margin-left: 4px; cursor: help; font-weight: 700; }

/* Tablas */
.tabla-azul { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.tabla-azul thead th { background: var(--marino-2); color: #fff; font-weight: 600; padding: 9px 10px; font-size: 11px; letter-spacing: .2px; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.tabla-azul thead th:first-child { border-top-left-radius: 8px; } .tabla-azul thead th:last-child { border-top-right-radius: 8px; }
.tabla-azul tbody td { padding: 8px 10px; border-bottom: 1px solid var(--borde); vertical-align: middle; background: #fff; }
.tabla-azul tbody tr:hover td { background: #f6f9fb; }
.tabla-azul .sub { font-size: 11px; color: var(--gris); }
.tabla-blanca { width: 100%; font-size: 12px; }
.tabla-blanca thead th { font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--borde); font-size: 11px; color: var(--marino); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.tabla-blanca tbody td { padding: 8px 10px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla-blanca tbody tr:hover td { background: #f6f9fb; }
.tabla-scroll { overflow: auto; max-height: 62vh; border-radius: 8px; border: 1px solid var(--borde); background: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--marino-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; object-fit: cover; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 16px; }
.avatar.xl { width: 110px; height: 110px; font-size: 30px; }
.badge-est { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.est-A, .est-Asistencia, .est-Aprobada, .est-sync, .est-Activo { background: #dcf5e9; color: #1a7a4f; }
.est-R, .est-Retardo, .est-pending, .est-Pendiente, .est-P { background: #fff1cc; color: #8a5a00; }
.est-F, .est-Falta, .est-Rechazada, .est-error, .est-Baja, .est-SS, .est-\.Sin\ salida { background: #fde4e1; color: #b3372b; }
.est-D, .est-Descanso, .est-none { background: #eef0f5; color: #64748b; }
.est-HE, .est-EJ, .est-En\ jornada { background: var(--jade-claro); color: var(--jade-osc); }
.punto { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.punto.on { background: var(--jade); }
.dot-color { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Horarios (cards) */
.horario-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--borde); border-left: 4px solid var(--jade); background: #fff; border-radius: 8px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--sombra); }
.horario-card.sel { background: var(--jade-claro); border-color: var(--jade-borde); border-left-color: var(--jade); }
.horario-card .t { font-weight: 700; color: var(--marino); font-size: 13px; text-transform: uppercase; }
.horario-card .s { font-size: 11px; color: var(--gris); }
.horario-card .s b { color: var(--texto); }
.horario-card .edit { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--jade); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 0; }
.radio-circ { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #94a3b8; display: inline-block; flex: none; position: relative; }
.radio-circ.on { border-color: var(--jade); } .radio-circ.on::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--jade); }
.plan { border: 1px solid var(--borde); border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer; height: 100%; position: relative; background: #fff; }
.plan i { font-size: 34px; color: var(--marino-3); margin-bottom: 6px; display: block; }
.plan .t { font-size: 15px; font-weight: 600; color: var(--marino); } .plan .d { font-size: 11px; color: var(--gris); }
.plan.sel { border-color: var(--jade); background: var(--jade-claro); box-shadow: 0 0 0 1px var(--jade); }
.plan.sel i { color: var(--jade-osc); }
.plan.sel::after { content: '●'; position: absolute; right: 10px; top: 6px; color: var(--jade); font-size: 14px; }
.acordeon .item { border: 1px solid var(--borde); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.acordeon .hd { padding: 12px 16px; font-size: 15px; color: var(--marino); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.acordeon .hd::before { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--jade); }
.acordeon .item.open .hd::before { content: '\f077'; }
.acordeon .bd { display: none; padding: 6px 16px 16px; border-top: 1px solid var(--borde); }
.acordeon .item.open .bd { display: block; }

/* Jornada */
.j-kpi { border: 1px solid var(--borde); border-left: 4px solid var(--jade); border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; background: #fff; }
.j-kpi .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--jade-claro); color: var(--jade-osc); display: inline-flex; align-items: center; justify-content: center; }
.j-kpi .l { font-size: 9.5px; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.j-kpi .v { font-size: 16px; font-weight: 700; color: var(--marino); } .j-kpi .s { font-size: 10px; color: var(--gris); }
.j-kpi.verde { border-left-color: var(--verde); } .j-kpi.verde .ic { background: #dcf5e9; color: #1a7a4f; }
.j-kpi.amarillo { border-left-color: var(--amarillo); } .j-kpi.amarillo .ic { background: #fff1cc; color: #8a5a00; }
.j-kpi.morado { border-left-color: var(--morado); } .j-kpi.morado .ic { background: #efeafc; color: var(--morado); }
.j-kpi.rojo { border-left-color: var(--rojo); } .j-kpi.rojo .ic { background: #fde4e1; color: #b3372b; }
.j-kpi.gris { border-left-color: #94a3b8; } .j-kpi.gris .ic { background: #eef0f5; color: #64748b; }
.tabla-jornada { width: 100%; font-size: 11.5px; border-collapse: collapse; }
.tabla-jornada thead th { background: var(--marino-2); color: #fff; padding: 8px 6px; text-align: center; font-size: 10.5px; }
.tabla-jornada thead th.hoy { background: var(--jade); }
.tabla-jornada thead th.emp { text-align: left; padding-left: 12px; min-width: 200px; }
.tabla-jornada tbody td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--borde); }
.tabla-jornada tbody td.emp { text-align: left; padding-left: 12px; }
.tabla-jornada .dob { color: #8a5a00; font-weight: 700; } .tabla-jornada .tri { color: var(--rojo); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 14px; font-size: 11px; font-weight: 600; border: 1px solid; }
.tabla-azul tr.q-sin td { background: #fff6f5; }   /* ¿Quién da clase?: profesor que debía checar y no checó */
.chip.rojo { color: var(--rojo); border-color: #f2c4bf; background: #fff5f4; } .chip.amarillo { color: #8a5a00; border-color: #f3dc9a; background: #fffaf0; } .chip.verde { color: #1a7a4f; border-color: #b4e7cc; background: #f2fcf6; }
.sem-rebaso { background: var(--rojo); } .sem-proximo { background: var(--amarillo); } .sem-ok { background: var(--verde); }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dh { text-align: center; font-weight: 700; font-size: 11px; color: var(--gris); padding: 6px 0; }
.cal .dc { min-height: 88px; border: 1px solid var(--borde); border-radius: 6px; padding: 4px; font-size: 11px; cursor: pointer; background: #fff; }
.cal .dc.otro { background: #fafbfd; color: #b7c0d0; } .cal .dc.hoy { border-color: var(--jade); box-shadow: inset 0 0 0 1px var(--jade); }
.cal .dc .n { font-weight: 700; margin-bottom: 3px; }
.cal .ev { display: block; color: #fff; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.ev-green { background: var(--verde); } .ev-blue { background: var(--jade); } .ev-red { background: var(--rojo); } .ev-pink { background: #e84393; } .ev-orange { background: #f39c12; } .ev-purple { background: var(--morado); } .ev-info { background: var(--marino-3); }
.turno-week { display: grid; grid-template-columns: 200px repeat(7, 1fr); font-size: 11px; border: 1px solid var(--borde); border-radius: 8px; overflow: hidden; background: #fff; }
.turno-week .h { background: var(--gris-claro); font-weight: 700; padding: 8px; text-align: center; border-bottom: 1px solid var(--borde); color: var(--marino); }
.turno-week .c { padding: 6px; border-bottom: 1px solid var(--borde); border-left: 1px solid var(--borde); min-height: 44px; cursor: pointer; }
.turno-week .c:hover { background: #f6f9fb; }
.turno-week .c.hoy { background: var(--jade-claro); }
.turno-week .n { font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--borde); display: flex; align-items: center; }
.turno-tag { display: block; color: #fff; border-radius: 4px; padding: 3px 6px; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Organigrama */
.org { display: flex; flex-direction: column; align-items: center; }
.org ul { list-style: none; padding-top: 20px; position: relative; display: flex; justify-content: center; margin: 0; }
.org li { padding: 20px 6px 0; position: relative; text-align: center; }
.org li::before, .org li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 20px; border-top: 2px solid #cbd5e1; }
.org li::after { right: auto; left: 50%; border-left: 2px solid #cbd5e1; }
.org li:only-child::before, .org li:only-child::after { display: none; } .org li:only-child { padding-top: 0; }
.org li:first-child::before, .org li:last-child::after { border: 0; }
.org li:last-child::before { border-right: 2px solid #cbd5e1; border-radius: 0 5px 0 0; } .org li:first-child::after { border-radius: 5px 0 0 0; }
.org ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #cbd5e1; height: 20px; }
.org .node { display: inline-block; border: 1px solid var(--borde); border-radius: 10px; padding: 8px 12px; background: #fff; box-shadow: var(--sombra); min-width: 150px; }
.org .node .nm { font-weight: 700; font-size: 12px; color: var(--marino); } .org .node .pu { font-size: 10.5px; color: var(--gris); }

/* Biométricos */
.bio-side { border-radius: 10px; border: 1px solid var(--borde); overflow: hidden; background: #fff; }
.bio-side .hd { background: var(--marino-2); color: #fff; padding: 10px 14px; font-weight: 700; display: flex; align-items: center; }
.bio-dev { padding: 10px 14px; border-bottom: 1px solid var(--borde); cursor: pointer; }
.bio-dev.sel, .bio-dev:hover { background: var(--jade-claro); }
.bio-dev .n { font-weight: 600; } .bio-dev .s { font-size: 11px; color: var(--gris); }
.online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; } .online.on { background: var(--verde); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a2350 0%, #0d2f6b 50%, #1769e8 120%); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-card .logo { font-size: 28px; font-weight: 800; color: var(--marino); text-align: center; margin-bottom: 4px; letter-spacing: -0.4px; }
.login-card .logo i { color: var(--jade); }

/* Misc */
.toast-rh { position: fixed; right: 20px; bottom: 20px; z-index: 2000; min-width: 260px; max-width: 380px; background: var(--marino); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 13px; display: flex; gap: 10px; align-items: center; animation: up .2s; }
.toast-rh.ok { background: var(--verde); } .toast-rh.err { background: var(--rojo); } .toast-rh.warn { background: var(--amarillo); color: #2b2000; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.modal-header { background: #fff; border-bottom: 1px solid var(--borde); }
.modal-title { color: var(--marino); font-weight: 700; font-size: 17px; }
.modal-content { border-radius: 12px; border: 0; }
.modal-footer { border-top: 1px solid var(--borde); }
.empty { text-align: center; color: var(--gris); padding: 40px 10px; }
.empty i { font-size: 44px; color: #cbd5e1; margin-bottom: 8px; display: block; }
.loading { text-align: center; padding: 40px; color: var(--gris); }
.loading i { font-size: 28px; color: var(--jade); }
.foto-drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 18px; text-align: center; color: var(--gris); cursor: pointer; }
.foto-drop img { max-width: 150px; max-height: 150px; border-radius: 50%; object-fit: cover; }
.primeros-pasos { position: fixed; right: 0; top: 45%; background: #fff; border: 1px solid var(--borde); border-right: 0; border-radius: 10px 0 0 10px; padding: 14px 8px; writing-mode: vertical-rl; transform: rotate(180deg); color: #d97706; font-weight: 700; font-size: 11px; letter-spacing: 1px; cursor: pointer; box-shadow: var(--sombra); z-index: 1010; }
.mapa { height: 420px; border-radius: 10px; border: 1px solid var(--borde); }
.mapa-sm { height: 260px; border-radius: 10px; border: 1px solid var(--borde); }
.canal-ico { font-size: 12px; color: var(--gris); margin-left: 4px; }
.leaflet-container { font-family: inherit; }
.check-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; cursor: pointer; }
.qr-box { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--borde); border-radius: 10px; }
.dt-length { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.dt-length select { width: auto; }
.pag { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pag .btn { padding: 3px 10px; }
.ayuda-chat { position: fixed; right: 26px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%; background: var(--jade); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 8px 20px rgba(14,148,136,.4); cursor: pointer; z-index: 1010; }
.progress { height: 8px; border-radius: 6px; background: #e2e8f0; }
.progress-bar { background: var(--jade); }
.badge-primary { background: var(--jade); }
.border-primary { border-color: var(--jade) !important; }
.alert-primary { background: var(--jade-claro); border-color: var(--jade-borde); color: var(--jade-osc); }
.dropdown-menu { border-color: var(--borde); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.12); font-size: 12.5px; }
.dropdown-item:active { background: var(--jade); }

/* Pestañas de sección (2.0): arriba de cada pantalla, sustituyen a las barras de pestañas de ruta de cada página */
.sec-tabs { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 6px; margin: 0 0 18px; background: rgba(255,255,255,.92); border-radius: 14px; box-shadow: var(--sombra); }
.sec-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--marino-2); text-decoration: none !important; white-space: nowrap; }
.sec-tabs a i { font-size: 14px; opacity: .85; }
.sec-tabs a:hover:not(.active) { background: var(--jade-claro); color: var(--jade-osc); }
.sec-tabs a.active { background: var(--jade); color: #fff; box-shadow: 0 4px 12px rgba(23,105,232,.3); }
#pagina > .nav-tabs:has(a[href^="#/"]), #pagina > ul.nav-tabs.ruta { display: none; }
@media (max-width: 575px) { .sec-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sec-tabs::-webkit-scrollbar { display: none; } }
