/* ============================================================================
   rrhh.css — CSS del módulo Recursos Humanos
   Creado en E1 (Insi Trabajador). Regla del proyecto: UN css por módulo, no por
   pantalla. Todo lo nuevo de RRHH se amplía acá, con prefijo propio por
   componente para no chocar con las reglas globales heredadas del legacy.

   Prefijos en uso:
     .rboleta-   Panel de boletas publicadas al portal (BoletasPortalPage)
     .rsol-      Bandeja de solicitudes de ausencia (SolicitudesPage)

   Colores: SIEMPRE var(--primario)/var(--secundario) con fallback corporativo.
   ============================================================================ */

/* ── Panel de boletas: barra de acciones ─────────────────────────────────── */

.rboleta-toolbar .card-body {
    padding: 14px 16px;
}

.rboleta-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--primario, #1e3a5f);
    margin-bottom: 4px;
}

.rboleta-lbl-chk {
    font-size: 12px;
    color: #445266;
}

.rboleta-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #7b8794;
}

.rboleta-alerta {
    margin-top: 12px;
    padding: 8px 12px;
    border-left: 3px solid #c77700;
    background: #fff8ec;
    border-radius: 4px;
    font-size: 12px;
    color: #6b4c12;
}

.rboleta-alerta i {
    color: #c77700;
    margin-right: 6px;
}

/* ── KPIs de entrega ────────────────────────────────────────────────────── */

.rboleta-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
}

.rboleta-kpi {
    flex: 1 1 130px;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-top: 3px solid var(--primario, #1e3a5f);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}

.rboleta-kpi-val {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primario, #1e3a5f);
}

.rboleta-kpi-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #7b8794;
    margin-top: 2px;
}

.rboleta-kpi--pend { border-top-color: #97a3b4; }
.rboleta-kpi--pend .rboleta-kpi-val { color: #6b7a90; }

.rboleta-kpi--vista { border-top-color: var(--secundario, #fe7800); }
.rboleta-kpi--vista .rboleta-kpi-val { color: #c77700; }

.rboleta-kpi--ok { border-top-color: #2e7d32; }
.rboleta-kpi--ok .rboleta-kpi-val { color: #2e7d32; }

.rboleta-kpi--obs { border-top-color: #c62828; }
.rboleta-kpi--obs .rboleta-kpi-val { color: #c62828; }

/* ── Tabla ──────────────────────────────────────────────────────────────── */

.rboleta-tabla-wrap {
    position: relative;
    min-height: 120px;
}

.rboleta-tabla-wrap thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.rboleta-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.rboleta-badge--pend  { background: #eef1f5; color: #5b6878; }
.rboleta-badge--vista { background: #fff3e0; color: #c77700; }
.rboleta-badge--ok    { background: #e8f5e9; color: #2e7d32; }
.rboleta-badge--obs   { background: #fdecea; color: #c62828; }

.rboleta-badge--rep {
    background: #fff8ec;
    color: #8a6100;
    border: 1px solid #f0dcb4;
    margin-left: 6px;
    font-weight: 500;
}

.rboleta-hash {
    font-size: 10.5px;
    color: #6b7a90;
    background: #f5f7fb;
    padding: 1px 5px;
    border-radius: 3px;
    cursor: help;
}

.rboleta-ip {
    font-size: 10px;
    color: #97a3b4;
}

.rboleta-obs {
    font-size: 11px;
    color: #a33;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Vacío ──────────────────────────────────────────────────────────────── */

.rboleta-vacio {
    padding: 34px 16px;
    text-align: center;
    color: #7b8794;
}

.rboleta-vacio i {
    font-size: 34px;
    color: #cfd6e0;
    margin-bottom: 10px;
    display: block;
}

.rboleta-vacio p {
    margin: 0;
    font-size: 13px;
}

.rboleta-vacio-hint {
    font-size: 12px;
    color: #97a3b4;
    margin-top: 4px !important;
}

/* ── Resultado de la publicación ────────────────────────────────────────── */

.rboleta-resultado {
    border-left: 3px solid var(--secundario, #fe7800);
}

.rboleta-res-tit {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--primario, #1e3a5f);
    margin-bottom: 6px;
}

.rboleta-res-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12px;
    color: #445266;
}

.rboleta-res-nums b {
    color: var(--primario, #1e3a5f);
    font-size: 14px;
}

.rboleta-res-errores {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 12px;
    color: #c62828;
}

/* ══════════════════════════════════════════════════════════════════════════
   Bandeja de solicitudes de ausencia (SolicitudesPage, E2)
   ══════════════════════════════════════════════════════════════════════════ */

.rsol-tabs {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rsol-tab {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 8px 14px;
    font-size: 13px;
    color: #6b7a90;
    cursor: pointer;
}

.rsol-tab--sel {
    color: var(--primario, #1e3a5f);
    font-weight: 700;
    border-bottom-color: var(--secundario, #fe7800);
}

.rsol-tab-bad {
    display: inline-block;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--secundario, #fe7800);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.rsol-tabla-wrap {
    position: relative;
    min-height: 120px;
}

.rsol-tabla-wrap thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.rsol-doc { font-size: 10.5px; color: #97a3b4; }

.rsol-motivo {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rsol-coment {
    font-size: 10.5px;
    color: #6b7a90;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rsol-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.rsol-badge--pend  { background: #eef1f5; color: #5b6878; }
.rsol-badge--rrhh  { background: #fff3e0; color: #c77700; }
.rsol-badge--ok    { background: #e8f5e9; color: #2e7d32; }
.rsol-badge--mal   { background: #fdecea; color: #c62828; }
.rsol-badge--nulo  { background: #f2f4f7; color: #97a3b4; }

.rsol-badge--nr {
    background: #fff8ec;
    color: #8a6100;
    border: 1px solid #f0dcb4;
    margin-left: 6px;
    font-weight: 500;
}

.rsol-ausencia { font-size: 11px; color: #2e7d32; }

.rsol-vacio { padding: 34px 16px; text-align: center; color: #7b8794; }
.rsol-vacio i { display: block; font-size: 32px; color: #cfd6e0; margin-bottom: 10px; }
.rsol-vacio p { margin: 0; font-size: 13px; }

.rsol-nota {
    margin-top: 10px;
    padding: 9px 13px;
    border-left: 3px solid var(--primario, #1e3a5f);
    background: #eef3fb;
    border-radius: 4px;
    font-size: 12px;
    color: #33445c;
}

.rsol-nota i { margin-right: 6px; color: var(--primario, #1e3a5f); }

/* ══════════════════════════════════════════════════════════════════════════
   Monitor de asistencia (MonitorAsistenciaPage, E4)
   ══════════════════════════════════════════════════════════════════════════ */

.rmon-toolbar .card-body { padding: 14px 16px; }

.rmon-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--primario, #1e3a5f);
    margin-bottom: 4px;
}

.rmon-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 12px; }

.rmon-kpi {
    flex: 1 1 120px;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-top: 3px solid var(--primario, #1e3a5f);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}

.rmon-kpi-val { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--primario, #1e3a5f); }
.rmon-kpi-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: #7b8794; margin-top: 2px; }

.rmon-kpi--pend { border-top-color: #97a3b4; }
.rmon-kpi--pend .rmon-kpi-val { color: #6b7a90; }
.rmon-kpi--ok { border-top-color: #2e7d32; }
.rmon-kpi--ok .rmon-kpi-val { color: #2e7d32; }
.rmon-kpi--alerta { border-top-color: var(--secundario, #fe7800); }
.rmon-kpi--alerta .rmon-kpi-val { color: #c77700; }
.rmon-kpi--mal { border-top-color: #c62828; }
.rmon-kpi--mal .rmon-kpi-val { color: #c62828; }

.rmon-tabla-wrap { position: relative; min-height: 120px; }

.rmon-tabla-wrap thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

/* La fila con GPS simulado se ve distinta a propósito: es la bandera de fraude
   y tiene que saltar sin que nadie tenga que leer columna por columna. */
.rmon-fila--mock { background: #fff5f4 !important; }

.rmon-doc, .rmon-precision, .rmon-desfase { font-size: 10.5px; color: #97a3b4; }
.rmon-sindato { font-size: 11px; color: #b0bac6; font-style: italic; }
.rmon-mapa { font-size: 12px; color: var(--primario, #1e3a5f); text-decoration: underline; }

.rmon-motivo {
    font-size: 10.5px;
    color: #c62828;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rmon-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 4px;
}

.rmon-badge--pend { background: #eef1f5; color: #5b6878; }
.rmon-badge--ok { background: #e8f5e9; color: #2e7d32; }
.rmon-badge--mal { background: #fdecea; color: #c62828; }
.rmon-badge--nulo { background: #f2f4f7; color: #97a3b4; }
.rmon-badge--alerta { background: #fff3e0; color: #c77700; }

.rmon-vacio { padding: 34px 16px; text-align: center; color: #7b8794; }
.rmon-vacio i { display: block; font-size: 32px; color: #cfd6e0; margin-bottom: 10px; }
.rmon-vacio p { margin: 0; font-size: 13px; }

.rmon-nota {
    margin-top: 10px;
    padding: 9px 13px;
    border-left: 3px solid var(--primario, #1e3a5f);
    background: #eef3fb;
    border-radius: 4px;
    font-size: 12px;
    color: #33445c;
}

.rmon-nota i { margin-right: 6px; color: var(--primario, #1e3a5f); }

/* ══════════════════════════════════════════════════════════════════════════
   Zonas de marcación (GeocercasPage, E4)
   ══════════════════════════════════════════════════════════════════════════ */

.rgeo-form { border-top: 3px solid var(--secundario, #fe7800); }
.rgeo-form .card-body { padding: 14px 16px; }

.rgeo-form-tit {
    font-size: 13px;
    font-weight: 700;
    color: var(--primario, #1e3a5f);
    margin-bottom: 10px;
}

.rgeo-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--primario, #1e3a5f);
    margin-bottom: 4px;
}

.rgeo-ayuda {
    margin-top: 12px;
    padding: 9px 13px;
    border-left: 3px solid #97a3b4;
    background: #f5f7fb;
    border-radius: 4px;
    font-size: 12px;
    color: #445266;
}

.rgeo-ayuda i { margin-right: 6px; color: var(--secundario, #fe7800); }

.rgeo-form-acciones { margin-top: 12px; display: flex; gap: 8px; }

.rgeo-tabla-wrap { position: relative; min-height: 120px; }

.rgeo-tabla-wrap thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.rgeo-mapa { font-size: 12px; color: var(--primario, #1e3a5f); text-decoration: underline; }

.rgeo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.rgeo-badge--ok { background: #e8f5e9; color: #2e7d32; }
.rgeo-badge--off { background: #f2f4f7; color: #97a3b4; }

.rgeo-vacio { padding: 34px 16px; text-align: center; color: #7b8794; }
.rgeo-vacio i { display: block; font-size: 32px; color: #cfd6e0; margin-bottom: 10px; }
.rgeo-vacio p { margin: 0; font-size: 13px; }
.rgeo-vacio-hint { font-size: 12px; color: #97a3b4; margin-top: 4px !important; }

/* [E6] Indicador de tiempo real del monitor */
.rmon-vivo {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 10px 3px 20px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #97a3b4;
    font-size: 11px;
    position: relative;
}

.rmon-vivo::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    margin-top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cfd6e0;
}

.rmon-vivo--on { background: #e8f5e9; color: #2e7d32; }
.rmon-vivo--on::before { background: #2e7d32; }
