:root {
    --rh-primary: #4b1d95;
    --rh-navy: #12233f;
    --rh-blue: #1f6feb;
    --rh-green: #16805b;
    --rh-red: #c43d4b;
    --rh-bg: #f3f6fa;
    --rh-card: #ffffff;
    --rh-border: #dce3ec;
    --rh-muted: #637083;
    --rh-text: #172033;
    --rh-shadow: 0 14px 34px rgba(18, 35, 63, .09);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--rh-bg); }
body.rh-body { margin: 0; min-height: 100vh; color: var(--rh-text); background: var(--rh-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--rh-blue); }
.rh-shell { width: min(1080px, 100%); margin: 0 auto; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.rh-brand { display: block; color: var(--rh-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rh-brand-logo { display: block; width: 164px; height: auto; margin: 0 0 14px; padding: 0; background: transparent; }

.rh-context-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 16px; padding: 14px 18px; border: 1px solid #e7e2f3; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(50,16,107,.06); }
.rh-context-heading h1 { margin: 0; color: #171827; font-size: 22px; line-height: 1.18; }
.rh-context-heading > span { display: block; max-width: 460px; margin-top: 3px; color: #6b7280; font-size: 12px; line-height: 1.35; }
.rh-context-nav { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.rh-context-nav-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.rh-context-nav-group + .rh-context-nav-group { padding-left: 12px; border-left: 1px solid #ece6f5; }
.rh-context-nav-group-admin { margin-left: auto; }
.rh-context-settings { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e6def3; border-radius: 10px; color: #5a33a6; background: #fbf8ff; }
.rh-context-settings:hover { border-color: #cdb7ef; background: #f2ebff; color: #35116f; }
.rh-context-settings svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.rh-context-link { display: inline-flex; align-items: center; min-height: 34px; padding: 8px 12px; border: 1px solid #e6def3; border-radius: 11px; background: #fbf8ff; color: #35116f; font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; }
.rh-context-link:hover { border-color: #cdb7ef; background: #f2ebff; }
.rh-context-link.is-active { border-color: #4b1d95; background: #4b1d95; color: #fff; }
.rh-context-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; color: #fff; background: #b42338; font-size: 10px; line-height: 1; }
.rh-context-link.is-active .rh-context-badge { color: #4b1d95; background: #fff; }
.rh-context-home { gap: 6px; }
.rh-context-home-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #efe7ff; color: #4b1d95; font-size: 13px; font-weight: 900; line-height: 1; }
.rh-context-link.is-active .rh-context-home-icon { background: rgba(255,255,255,.2); color: #fff; }
.rh-context-meta { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid #f0edf6; color: #71717a; font-size: 11px; line-height: 1.35; }
.rh-context-meta span:not(:last-child)::after { content: "\00b7"; margin-left: 8px; color: #b6adc8; }
.rh-context-meta .is-strong { color: #4b1d95; font-weight: 800; }
.rh-device-reference { max-width: 100%; overflow-wrap: anywhere; }
.rh-device-reference code { color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

.rh-login-page .rh-shell { min-height: 100vh; display: grid; place-items: center; }
.rh-login-card { width: min(420px, 100%); padding: 30px; background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 22px; box-shadow: var(--rh-shadow); }
.rh-login-card h1 { margin: 6px 0; font-size: 2rem; }
.rh-login-card > p { margin: 0 0 24px; color: var(--rh-muted); }
body.rh-employee-login-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 13%, rgba(30, 143, 161, .13) 0 2px, transparent 2.5px),
        radial-gradient(circle at 87% 78%, rgba(30, 143, 161, .11) 0 2px, transparent 2.5px),
        linear-gradient(135deg, #e6f6f8 0%, #f5f8fa 47%, #fff 100%);
}
.rh-employee-login-page::before,
.rh-employee-login-page::after {
    position: fixed;
    z-index: -1;
    display: block;
    width: clamp(210px, 32vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(30, 143, 161, .13);
    border-radius: 28% 72% 65% 35% / 35% 37% 63% 65%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(230, 246, 248, .12));
    content: '';
    pointer-events: none;
}
.rh-employee-login-page::before { top: -15vw; right: -9vw; transform: rotate(18deg); }
.rh-employee-login-page::after { bottom: -18vw; left: -13vw; transform: rotate(-34deg); }
.rh-employee-login-page .rh-shell {
    width: min(460px, 100%);
    padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
}
.rh-employee-login-page .rh-login-card {
    position: relative;
    width: min(420px, 100%);
    padding: 30px;
    overflow: hidden;
    border-color: #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(18, 32, 51, .11), 0 3px 10px rgba(30, 143, 161, .06);
}
.rh-employee-login-page .rh-login-card::before {
    position: absolute;
    top: 0;
    right: 30px;
    left: 30px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: #1e8fa1;
    content: '';
}
.rh-employee-login-page .rh-brand-logo { width: 156px; margin-bottom: 16px; }
.rh-employee-login-page .rh-login-card h1 { color: #122033; }
.rh-employee-login-page .rh-form input {
    min-height: 48px;
    border-color: #d7e1e9;
    background: rgba(255, 255, 255, .96);
}
.rh-employee-login-page .rh-form input:focus {
    border-color: #1e8fa1;
    outline-color: rgba(30, 143, 161, .16);
}
.rh-employee-login-page .rh-button { min-height: 48px; }
@media (max-width: 430px) {
    .rh-employee-login-page .rh-shell { padding-right: 16px; padding-left: 16px; }
    .rh-employee-login-page .rh-login-card { padding: 27px 20px 24px; border-radius: 18px; }
    .rh-employee-login-page .rh-login-card::before { right: 20px; left: 20px; }
    .rh-employee-login-page .rh-brand-logo { width: 145px; }
    .rh-employee-login-page::before { top: -28vw; right: -28vw; }
    .rh-employee-login-page::after { bottom: -35vw; left: -34vw; }
}
.rh-suite-access-notice { width: min(500px, 100%); }
.rh-access-notice-eyebrow { margin: 20px 0 6px !important; color: #4b1d95 !important; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rh-access-notice-details { display: grid; gap: 0; margin: 20px 0; overflow: hidden; border: 1px solid #e4e0ec; border-radius: 12px; }
.rh-access-notice-details > div { display: grid; gap: 4px; padding: 12px 14px; background: #fcfbff; }
.rh-access-notice-details > div + div { border-top: 1px solid #e4e0ec; }
.rh-access-notice-details dt { color: var(--rh-muted); font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.rh-access-notice-details dd { margin: 0; color: var(--rh-navy); font-size: .95rem; font-weight: 800; overflow-wrap: anywhere; }
.rh-suite-access-notice .rh-button { display: block; width: 100%; margin-top: 18px; }

.rh-form { display: grid; gap: 11px; }
.rh-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.rh-form input, .rh-form select, .rh-inline-filter input, .rh-inline-filter select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--rh-text); background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.rh-form label small { color: var(--rh-muted); font-weight: 500; }
.rh-field-optional { color: var(--rh-muted); font-weight: 500; }
.rh-input-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.rh-input-unit input { border: 0; border-radius: 0; }
.rh-input-unit:focus-within { border-color: var(--rh-blue); outline: 3px solid rgba(31, 111, 235, .13); }
.rh-input-unit input:focus { outline: 0; }
.rh-input-unit b { display: grid; place-items: center; min-width: 54px; padding: 0 12px; color: var(--rh-muted); background: #f3f6fa; border-left: 1px solid #dbe3ed; font-size: .85rem; }
.rh-form input:focus, .rh-form select:focus { border-color: var(--rh-blue); outline: 3px solid rgba(31, 111, 235, .13); }
.rh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.rh-form-grid .rh-button { align-self: end; }
.rh-form-span { grid-column: 1 / -1; }
.rh-button { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 11px; color: #fff; background: var(--rh-blue); font: inherit; font-weight: 800; cursor: pointer; }
.rh-button:hover { filter: brightness(.94); }
.rh-button:disabled { opacity: .55; cursor: not-allowed; }
.rh-button.is-small { min-height: 40px; }
.rh-button.is-secondary { color: var(--rh-navy); background: #e8edf4; text-align: center; text-decoration: none; }
.rh-form-actions { display: flex; gap: 8px; align-items: center; }
.rh-form-actions .rh-button { flex: 1; }
.rh-help { margin-top: -6px; color: var(--rh-muted); font-size: .9rem; }
.rh-link-button { padding: 0; border: 0; color: var(--rh-red); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.rh-link-button.is-restore { color: var(--rh-green); }
.rh-link-button.is-save { color: #4b1d95; }
.rh-permission-form { display: grid; gap: 6px; min-width: 220px; }
.rh-permission-form label { display: flex; gap: 7px; align-items: center; color: var(--rh-muted); font-size: 12px; white-space: nowrap; }
.rh-permission-form input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4b1d95; }
.rh-back { display: inline-block; margin-bottom: 16px; font-weight: 700; text-decoration: none; }

.rh-alert { margin: 14px 0; padding: 12px 14px; border-radius: 11px; font-size: .92rem; }
.rh-alert.is-error { color: #8f2430; background: #fff0f2; border: 1px solid #f1bdc3; }
.rh-alert.is-success { color: #0c6546; background: #ecfbf5; border: 1px solid #abe4cf; }
.rh-alert.is-warning { color: #704b00; background: #fff8e2; border: 1px solid #ead28b; }
.rh-list-plain { margin: 10px 0; padding-left: 20px; }
.rh-list-plain li { margin: 5px 0; }
.rh-mobile-module-notice { display: none; gap: 6px; margin: 0 0 16px; padding: 14px; color: #7b4b00; background: #fff7e5; border: 1px solid #efd29a; border-radius: 12px; line-height: 1.4; }
.rh-mobile-module-notice strong, .rh-mobile-module-notice span { display: block; }

.rh-check-card, .rh-today-card, .rh-content-card { margin-bottom: 18px; padding: 24px; background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 18px; box-shadow: var(--rh-shadow); }
.rh-check-card { text-align: center; }
.rh-clock { color: var(--rh-navy); font-size: clamp(2.6rem, 12vw, 4.7rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.rh-date { margin-top: -6px; color: var(--rh-muted); }
.rh-office { margin: 22px 0 14px; color: var(--rh-muted); }
.rh-schedule-confirmation, .rh-exit-context { display: grid; gap: 4px; max-width: 420px; margin: 16px auto; padding: 13px 15px; color: var(--rh-navy); background: #f5f0ff; border: 1px solid #d9caf9; border-radius: 12px; text-align: left; }
.rh-schedule-confirmation strong, .rh-exit-context strong { font-size: .93rem; }
.rh-schedule-confirmation span { font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rh-schedule-confirmation small, .rh-exit-context span { color: var(--rh-muted); }
.rh-punch-button { width: min(220px, 70vw); aspect-ratio: 1; border: 9px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; box-shadow: 0 15px 34px rgba(18,35,63,.18); font: inherit; font-size: 1.6rem; font-weight: 900; cursor: pointer; }
.rh-punch-button.is-entrada { background: var(--rh-green); }
.rh-punch-button.is-salida { background: var(--rh-red); }
.rh-punch-button.is-schedule-confirmation { width: min(340px, 88vw); min-height: 88px; padding: 18px 24px; aspect-ratio: auto; border-width: 5px; border-radius: 17px; font-size: 1.05rem; line-height: 1.25; }
.rh-punch-button:disabled { opacity: .6; }
.rh-location-help { color: var(--rh-muted); font-size: .86rem; }
.rh-apple-location-help { display: grid; gap: 8px; margin-top: 12px; padding: 11px 12px; color: #663e00; background: #fff8e9; border: 1px solid #e9ce96; border-radius: 10px; text-align: left; line-height: 1.45; }
.rh-apple-location-help summary { cursor: pointer; color: #633f00; font-weight: 800; }
.rh-apple-location-help[open] summary { margin-bottom: 2px; }
.rh-apple-location-help strong { color: #4f3200; }
.rh-apple-location-help ol { display: grid; gap: 4px; margin: 0; padding-left: 21px; }
.rh-apple-location-help p { margin: 0; color: #75541d; }
.rh-day-complete { display: grid; gap: 6px; margin: 22px auto 0; padding: 20px; max-width: 420px; color: var(--rh-green); background: #ecfbf5; border-radius: 14px; }
.rh-day-complete span { color: var(--rh-muted); }
.rh-today-card h2, .rh-content-card h2 { margin-top: 0; }
.rh-streak-card { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 16px 18px; color: #174d3a; background: #effaf5; border: 1px solid #ccebdc; border-radius: 16px; }
.rh-streak-card div { display: grid; gap: 2px; }
.rh-streak-card span, .rh-streak-card small { color: #4c7161; font-size: .82rem; font-weight: 700; }
.rh-streak-card strong { color: #0c6546; font-size: 1.35rem; line-height: 1.1; }
.rh-punch-list { display: grid; gap: 8px; }
.rh-punch-list > div { display: flex; gap: 10px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--rh-border); }
.rh-punch-list > div > span, .rh-punch-list > div > strong, .rh-punch-list > div > small { display: block; }
.rh-punch-list > div > small { margin-left: auto; color: var(--rh-muted); font-size: .78rem; text-align: right; }

.rh-history-list { display: grid; gap: 10px; }
.rh-history-item { display: flex; gap: 13px; align-items: center; padding: 12px; border: 1px solid var(--rh-border); border-radius: 12px; }
.rh-history-item div { display: grid; gap: 2px; }
.rh-history-item small { color: var(--rh-muted); }
.rh-type { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.rh-type.is-entrada { color: #0c6546; background: #dff7ee; }
.rh-type.is-salida { color: #8f2430; background: #ffeaed; }
.rh-type.is-inicio_pausa { color: #6f4b00; background: #fff2ca; }
.rh-type.is-fin_pausa { color: #235b83; background: #e2f2fb; }

.rh-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.rh-stat-grid > div { display: grid; padding: 20px; background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 15px; box-shadow: var(--rh-shadow); }
.rh-stat-grid strong { font-size: 2rem; }
.rh-stat-grid span { color: var(--rh-muted); }
.rh-dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.rh-dashboard-intro h2 { margin: 0; color: var(--rh-text); font-size: 1.55rem; line-height: 1.15; }
.rh-dashboard-intro p { margin: 4px 0 0; color: var(--rh-muted); font-size: .9rem; }
.rh-dashboard-date { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid #e5ddf2; border-radius: 10px; color: #4b1d95; background: #fff; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.rh-attendance-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 8px; border: 1px solid #e7e1f2; border-radius: 15px; background: #fff; box-shadow: 0 10px 24px rgba(50,16,107,.045); }
.rh-module-access { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 9px 8px; border: 1px solid #ebe5f5; border-radius: 10px; color: #332259; background: #fbfaff; font-size: .8rem; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; white-space: nowrap; }
.rh-module-access:hover { border-color: #cfb9ef; background: #f6f1ff; color: #35116f; }
.rh-module-access.is-active { border-color: #ddcef7; color: #40157f; background: #eee7ff; }
.rh-module-access-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #5a33a6; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.rh-module-access-icon.is-aqua { color: #278aa0; }
.rh-enrollment-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rh-employee-filter { margin: 0 0 18px; }
.rh-employee-filter label { min-width: 0; }
.rh-employee-filter input, .rh-employee-filter select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--rh-text); background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.rh-employee-filter .rh-button { width: auto; min-width: 110px; align-self: end; }
.rh-admin-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rh-admin-links a { display: flex; align-items: center; padding: 16px 20px; color: var(--rh-text); background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 15px; box-shadow: var(--rh-shadow); text-decoration: none; }
.rh-admin-links a:hover { border-color: var(--rh-blue); }
.rh-admin-links span { color: var(--rh-muted); font-size: .88rem; }
.rh-department-list { display: grid; gap: 13px; }
.rh-department-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(150px, 1.4fr) minmax(150px, .9fr); gap: 12px; align-items: center; }
.rh-department-label { display: grid; gap: 2px; min-width: 0; }
.rh-department-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-department-label span, .rh-department-summary, .rh-empty-note { color: var(--rh-muted); font-size: .82rem; }
.rh-department-progress { margin: 0; height: 10px; }
.rh-department-summary { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.rh-department-summary .is-puntual { color: #0c6546; }
.rh-department-summary .is-retardo { color: #8f2430; }
.rh-coverage-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: -5px 0 12px; color: var(--rh-muted); font-size: .75rem; font-weight: 700; }
.rh-coverage-legend span, .rh-coverage-group .rh-department-summary span { display: inline-flex; align-items: center; gap: 5px; }
.rh-coverage-legend span::before, .rh-coverage-group .rh-department-summary span::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ''; }
.rh-coverage-legend .is-puntual, .rh-coverage-group .rh-department-summary .is-puntual { color: #0c6546; }
.rh-coverage-legend .is-retardo, .rh-coverage-group .rh-department-summary .is-retardo { color: #8f2430; }
.rh-coverage-legend .is-sin-horario, .rh-coverage-group .rh-department-summary .is-sin-horario { color: #637083; }
.rh-coverage-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rh-coverage-groups > :only-child { grid-column: 1 / -1; }
.rh-coverage-group { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 11px 12px; border: 1px solid #eee8f8; border-radius: 12px; background: #fdfcff; }
.rh-coverage-group .rh-department-label { align-self: center; }
.rh-coverage-group .rh-department-progress { grid-column: 1 / -1; width: 100%; }
.rh-coverage-group .rh-department-summary { align-self: center; justify-content: flex-end; gap: 8px; font-weight: 800; }
.rh-dashboard-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.rh-dashboard-filter label { display: grid; gap: 4px; color: var(--rh-muted); font-size: .76rem; font-weight: 700; }
.rh-dashboard-filter select { min-height: 34px; padding: 6px 8px; color: var(--rh-text); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.rh-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rh-card-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.rh-card-heading h2 { margin: 0 0 4px; font-size: 18px; }
.rh-card-heading p { margin: 0; color: var(--rh-muted); font-size: 12px; line-height: 1.35; }
.rh-card-heading > strong { color: #4b1d95; font-size: 28px; }
.rh-card-heading > a { white-space: nowrap; font-size: 12px; font-weight: 800; }
.rh-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rh-heading-actions .rh-button { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.rh-manager-approvals-card { border-color: #d9c8f6; background: #fbf8ff; }
.rh-manager-approvals-card .rh-button { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; text-decoration: none; }
.rh-do-pending-card { border-color: #cfe1fb; background: linear-gradient(135deg, #f9fcff, #f1f7ff); }
.rh-do-pending-card .rh-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rh-resolution-notice-card { border-color: #bad5f6; border-left: 4px solid #2f78c4; background: linear-gradient(135deg, #f8fcff, #edf6ff); }
.rh-resolution-notice-card .rh-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rh-resolution-notice-label { margin: 0 0 4px; color: #1e5d9f; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rh-ev-pending-card { border-color: #d9c8f6; background: linear-gradient(135deg, #fcfaff, #f5f1ff); }
.rh-ev-pending-card .rh-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rh-do-progress { margin-bottom: 12px; color: #4b1d95; font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.rh-do-question { margin: 0 0 18px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--rh-border); }
.rh-do-question:last-of-type { border-bottom: 0; }
.rh-do-question legend { width: 100%; margin-bottom: 11px; color: var(--rh-text); font-weight: 750; line-height: 1.42; }
.rh-do-number { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--rh-navy); font-size: .75rem; }
.rh-do-options { display: grid; gap: 8px; }
.rh-do-options label { display: grid; grid-template-columns: 18px 30px 1fr; gap: 9px; align-items: center; min-height: 42px; padding: 8px 10px; border: 1px solid var(--rh-border); border-radius: 10px; cursor: pointer; }
.rh-do-options label:has(input:checked) { border-color: #7f5bb5; background: #f7f2ff; }
.rh-do-options input { width: 17px; height: 17px; margin: 0; accent-color: #4b1d95; }
.rh-do-option-value { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #4b1d95; background: #efe7ff; font-size: .8rem; font-weight: 900; }
.rh-do-question textarea, .rh-do-create textarea { width: 100%; padding: 10px 12px; color: var(--rh-text); background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; resize: vertical; }
.rh-do-actions { margin-top: 16px; }
.rh-do-confirm { flex: 1; color: var(--rh-muted); font-size: .85rem; }
.rh-do-complete .rh-button { display: inline-flex; text-decoration: none; }
.rh-table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rh-table-actions form { display: inline; margin: 0; }
.rh-table-actions .rh-map-link { padding: 0; border: 0; color: var(--rh-blue); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.rh-do-create { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rh-border); }
.rh-do-create summary { color: var(--rh-blue); font-weight: 800; cursor: pointer; }
.rh-do-create .rh-form { margin-top: 14px; }
.rh-do-audience-form select[multiple] { min-height: 138px; }
.rh-do-audience-form option { padding: 4px 6px; }
.rh-do-audience-help { margin: 0; color: var(--rh-muted); font-size: .86rem; line-height: 1.4; }
.rh-do-test-label { display: inline-flex; margin-right: 7px; padding: 2px 7px; border-radius: 999px; color: #5a2a00; background: #fff0c2; font-size: .7rem; font-weight: 900; text-transform: uppercase; vertical-align: middle; }
.rh-do-danger-zone { display: grid; gap: 9px; margin-top: 16px; padding: 14px; border: 1px solid #efc0c7; border-radius: 10px; background: #fff8f8; }
.rh-do-danger-zone small { color: var(--rh-muted); }
.rh-do-danger-zone label { display: grid; gap: 5px; max-width: 320px; font-weight: 700; }
.rh-do-danger-zone input { min-height: 40px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.rh-do-danger-zone .rh-button { justify-self: start; }
.rh-do-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.rh-do-score-grid.is-compact { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.rh-do-score-card { display: grid; gap: 10px; min-height: 188px; padding: 16px; border: 1px solid var(--rh-border); border-top: 4px solid #6b7280; border-radius: 12px; background: #fff; }
.rh-do-score-card.is-strong { border-top-color: #157347; }
.rh-do-score-card.is-positive { border-top-color: #2273d6; }
.rh-do-score-card.is-attention { border-top-color: #d17c00; }
.rh-do-score-card.is-priority { border-top-color: #c23c4c; }
.rh-do-score-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.rh-do-score-head h3, .rh-do-score-head h4 { margin: 0 0 5px; color: var(--rh-navy); font-size: 1rem; }
.rh-do-score-head h4 { font-size: .92rem; }
.rh-do-score-head span { color: var(--rh-muted); font-size: .76rem; font-weight: 800; }
.rh-do-score-head > strong { color: var(--rh-navy); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.rh-do-score-head > strong small { color: var(--rh-muted); font-size: .68rem; font-weight: 700; }
.rh-do-score-track { height: 11px; overflow: hidden; border-radius: 999px; background: #e8edf3; }
.rh-do-score-track span { display: block; height: 100%; border-radius: inherit; background: #6b7280; }
.is-strong .rh-do-score-track span { background: #157347; }
.is-positive .rh-do-score-track span { background: #2273d6; }
.is-attention .rh-do-score-track span { background: #d17c00; }
.is-priority .rh-do-score-track span { background: #c23c4c; }
.rh-do-score-scale { display: flex; justify-content: space-between; color: var(--rh-muted); font-size: .68rem; }
.rh-do-score-card p { margin: 0; color: var(--rh-text); font-size: .84rem; line-height: 1.38; }
.rh-do-score-card > small { color: var(--rh-muted); font-size: .76rem; }
.rh-do-reading-guide { margin-top: 16px; padding: 13px 15px; border: 1px solid #d9c8f6; border-radius: 10px; background: #fbf9ff; }
.rh-do-reading-guide summary { color: #4b1d95; font-weight: 850; cursor: pointer; }
.rh-do-reading-guide div { max-width: 960px; color: var(--rh-text); font-size: .88rem; line-height: 1.45; }
.rh-do-reading-guide p { margin: 10px 0 0; }
.rh-do-sample-note { display: grid; gap: 6px; padding: 16px; border: 1px solid #d9c8f6; border-radius: 10px; color: var(--rh-text); background: #fbf9ff; line-height: 1.4; }
.rh-do-sample-note strong { color: #4b1d95; }
.rh-do-sample-note span { color: var(--rh-muted); font-size: .88rem; }
.rh-do-segment-group { margin-top: 18px; }
.rh-do-segment-group h3 { margin: 0 0 10px; color: var(--rh-navy); font-size: 1rem; }
.rh-do-likert-legend, .rh-do-likert-counts { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.rh-do-likert-legend { margin: 16px 0; }
.rh-do-likert-legend span, .rh-do-likert-counts span { color: var(--rh-muted); font-size: .78rem; }
.rh-do-likert-legend span::before, .rh-do-likert-counts span::before { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: #6b7280; content: ''; }
.rh-do-likert-legend .is-option-1::before, .rh-do-likert-counts .is-option-1::before, .rh-do-likert-bar .is-option-1 { background: #c23c4c; }
.rh-do-likert-legend .is-option-2::before, .rh-do-likert-counts .is-option-2::before, .rh-do-likert-bar .is-option-2 { background: #e58b28; }
.rh-do-likert-legend .is-option-3::before, .rh-do-likert-counts .is-option-3::before, .rh-do-likert-bar .is-option-3 { background: #8793a1; }
.rh-do-likert-legend .is-option-4::before, .rh-do-likert-counts .is-option-4::before, .rh-do-likert-bar .is-option-4 { background: #3985cc; }
.rh-do-likert-legend .is-option-5::before, .rh-do-likert-counts .is-option-5::before, .rh-do-likert-bar .is-option-5 { background: #21835a; }
.rh-do-likert-list { display: grid; gap: 15px; }
.rh-do-likert-row { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--rh-border); border-radius: 11px; }
.rh-do-likert-title { display: flex; justify-content: space-between; gap: 12px; }
.rh-do-likert-title strong { color: var(--rh-navy); }
.rh-do-likert-title span { color: var(--rh-muted); font-size: .8rem; }
.rh-do-likert-bar { display: flex; min-height: 32px; overflow: hidden; border-radius: 8px; background: #edf0f4; }
.rh-do-likert-bar span { display: grid; place-items: center; min-width: 0; color: #fff; font-size: .72rem; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.rh-do-executive-card { border-color: #d9c8f6; background: linear-gradient(135deg, #fcfbff, #f6f2ff); }
.rh-do-executive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rh-do-executive-grid > div { display: grid; gap: 4px; padding: 13px; border: 1px solid #e2d9f4; border-radius: 10px; background: rgba(255,255,255,.7); }
.rh-do-executive-grid span { color: var(--rh-muted); font-size: .76rem; font-weight: 700; }
.rh-do-executive-grid strong { color: var(--rh-navy); font-size: .9rem; line-height: 1.25; }
.rh-do-executive-grid b { color: #4b1d95; font-size: .83rem; }
.rh-do-executive-question { display: -webkit-box; overflow: hidden; color: var(--rh-text); font-size: .78rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rh-do-block-detail { margin-top: 2px; }
.rh-do-block-detail summary, .rh-do-segment-analysis summary { color: var(--rh-blue); font-size: .78rem; font-weight: 800; cursor: pointer; }
.rh-do-block-detail div, .rh-do-segment-analysis div { color: var(--rh-text); font-size: .8rem; line-height: 1.4; }
.rh-do-block-detail p, .rh-do-segment-analysis p { margin: 9px 0 0; }
.rh-do-block-detail p small { display: block; margin-top: 4px; color: var(--rh-muted); font-size: .74rem; }
.rh-do-insight-grid, .rh-do-signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rh-do-question-list { display: grid; gap: 10px; }
.rh-do-question-insight { display: grid; grid-template-columns: 58px 1fr; gap: 11px; align-items: start; padding: 12px; border: 1px solid var(--rh-border); border-left: 4px solid #6b7280; border-radius: 9px; background: #fff; }
.rh-do-question-insight.is-strong { border-left-color: #157347; }
.rh-do-question-insight.is-positive { border-left-color: #2273d6; }
.rh-do-question-insight.is-attention { border-left-color: #d17c00; }
.rh-do-question-insight.is-priority { border-left-color: #c23c4c; }
.rh-do-question-insight-score { display: grid; gap: 1px; padding-top: 2px; color: var(--rh-navy); text-align: center; }
.rh-do-question-insight-score strong { font-size: 1.08rem; }
.rh-do-question-insight-score span { color: var(--rh-muted); font-size: .68rem; }
.rh-do-question-block { color: #4b1d95; font-size: .72rem; font-weight: 850; }
.rh-do-question-insight p { margin: 5px 0; color: var(--rh-text); font-size: .87rem; line-height: 1.36; }
.rh-do-question-insight small { color: var(--rh-muted); font-size: .74rem; line-height: 1.3; }
.rh-do-signal-grid { margin-top: 14px; }
.rh-do-signal-card { padding: 15px; border: 1px solid var(--rh-border); border-radius: 10px; background: #fff; }
.rh-do-signal-card h3 { margin: 0 0 5px; color: var(--rh-navy); font-size: 1rem; }
.rh-do-signal-card p { margin: 0 0 9px; color: var(--rh-muted); font-size: .84rem; line-height: 1.38; }
.rh-do-signal-card > small { color: var(--rh-muted); font-size: .82rem; }
.rh-do-signal-card ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; }
.rh-do-signal-card li { color: var(--rh-text); font-size: .83rem; line-height: 1.35; }
.rh-do-signal-card li span { display: block; margin-top: 2px; color: var(--rh-muted); font-size: .75rem; }
.rh-do-comparison { display: block; color: var(--rh-muted); font-size: .74rem; font-weight: 750; line-height: 1.3; }
.rh-do-comparison.is-above { color: #157347; }
.rh-do-comparison.is-below { color: #a55300; }
.rh-do-segment-analysis { margin-top: 12px; padding: 12px; border: 1px solid #d9c8f6; border-radius: 9px; background: #fbf9ff; }
.rh-do-comments { display: grid; gap: 10px; }
.rh-do-comments article { padding: 13px 15px; border: 1px solid var(--rh-border); border-radius: 10px; background: #fff; }
.rh-do-comments span { color: #4b1d95; font-size: .75rem; font-weight: 800; }
.rh-do-comments blockquote { margin: 7px 0 0; color: var(--rh-text); font-size: .9rem; line-height: 1.45; }
.rh-employee-form { width: min(1280px, 100%); margin: 0 auto; gap: 18px; }
.rh-employee-form fieldset { margin: 0; padding: 18px; border: 1px solid var(--rh-border); border-radius: 14px; }
.rh-employee-form legend { padding: 0 8px; color: var(--rh-navy); font-weight: 800; }
.rh-employee-form .rh-form-grid { align-items: start; }
.rh-employee-form input:not([type="checkbox"]):not([type="radio"]), .rh-employee-form select { height: 44px; min-height: 44px; }
.rh-form-note { margin: 10px 0 0; color: var(--rh-muted); font-size: .8rem; line-height: 1.35; }
.rh-employee-tabs { display: grid; gap: 14px; }
.rh-employee-tab-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 7px; border: 1px solid #e5ddf2; border-radius: 14px; background: #fbfaff; }
.rh-employee-tab-list button { min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; color: #4d3777; background: transparent; font: inherit; font-size: .8rem; font-weight: 800; line-height: 1.15; cursor: pointer; }
.rh-employee-tab-list button:hover { color: #35116f; background: #f3edff; }
.rh-employee-tab-list button[aria-selected="true"] { border-color: #d9c9f5; color: #40157f; background: #eee7ff; box-shadow: inset 0 0 0 1px rgba(75,29,149,.04); }
.rh-employee-tab-list button:focus-visible { outline: 3px solid rgba(75,29,149,.2); outline-offset: 2px; }
.rh-employee-tab-panel { display: grid; gap: 14px; }
.rh-employee-tab-panel[hidden] { display: none; }
.rh-restricted-section { background: #fffaf0; }
.rh-related-fields { display: grid; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid; border-radius: 12px; }
.rh-related-fields-heading { display: grid; gap: 3px; }
.rh-related-fields-heading strong { color: var(--rh-navy); }
.rh-related-fields-heading small { color: var(--rh-muted); }
.rh-related-fields.is-recruitment { background: #f7f3ff; border-color: #dfd2f7; }
.rh-related-fields.is-payroll { background: #fffaf0; border-color: #f1ddb0; }
.rh-access-summary { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; align-content: center; padding: 10px 12px; border-radius: 10px; background: #f5f1fb; }
.rh-access-summary span { color: var(--rh-muted); font-size: 12px; }
.rh-dialog { width: min(540px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 22px; color: var(--rh-ink); box-shadow: 0 20px 60px rgba(17, 35, 68, .24); }
.rh-dialog::backdrop { background: rgba(11, 28, 58, .42); }
.rh-dialog h2 { margin: 0 0 8px; font-size: 1.18rem; }
.rh-dialog > label { display: grid; gap: 6px; margin-top: 16px; font-weight: 700; }
.rh-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.rh-email-principal { display: grid; gap: 7px; align-content: start; padding: 12px; border: 1px solid #ded3f1; border-radius: 10px; background: #faf8ff; }
.rh-email-principal > small { color: var(--rh-muted); line-height: 1.35; }
.rh-email-options { display: flex; flex-wrap: wrap; gap: 12px; }
.rh-email-options label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .88rem; font-weight: 700; }
.rh-email-options input { width: 16px; min-height: 16px; accent-color: #4b1d95; }
.rh-check-option { display: flex !important; align-items: center; gap: 9px !important; }
.rh-check-option input { width: 18px; min-height: 18px; accent-color: #4b1d95; }
.rh-column-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.rh-column-tags span { padding: 6px 9px; border-radius: 999px; color: #5f6673; background: #edf0f4; font-size: 11px; font-weight: 700; }
.rh-column-tags span.is-required { color: #35116f; background: #efe7ff; }
.rh-import-form { grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.5fr) minmax(220px, .7fr); align-items: end; }
.rh-import-form label { min-width: 0; }
.rh-import-form input[type="file"] { min-width: 0; padding: 6px; overflow: hidden; }
.rh-import-form input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 5px 10px; border: 1px solid #b8c4d4; border-radius: 7px; background: #f5f7fa; cursor: pointer; }
.rh-import-form .rh-button { min-height: 44px; }
.rh-import-file-help { grid-column: 1 / -1; margin: 0; line-height: 1.4; }
.rh-import-flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--rh-muted); font-size: 12px; font-weight: 700; }
.rh-import-flow span { padding: 7px 10px; border-radius: 999px; background: #f2f4f8; }
.rh-import-flow i { font-style: normal; color: #9aa3b2; }
.rh-import-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rh-import-group { border: 1px solid var(--rh-border); border-radius: 12px; background: #fff; }
.rh-import-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; color: var(--rh-navy); font-weight: 800; cursor: pointer; }
.rh-import-group summary strong { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; color: #4b1d95; background: #efe7ff; font-size: 12px; }
.rh-import-group .rh-column-tags { padding: 0 14px 14px; }
.rh-import-note { margin: 16px 0 0; line-height: 1.45; }
.rh-import-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rh-import-rules > div { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--rh-border); border-radius: 12px; }
.rh-import-rules span { color: var(--rh-muted); font-size: 12px; }
.rh-import-resolution { display: block; width: min(100%, 520px); min-width: 280px; margin-top: 9px; padding: 9px 10px; border: 1px solid var(--rh-border); border-radius: 9px; background: #fff; color: var(--rh-navy); font: inherit; }
.rh-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #eee9f6; }
.rh-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b1d95, #7c4bc4); }
.rh-mini-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; color: var(--rh-muted); font-size: 12px; }
.rh-mini-stats strong { color: var(--rh-text); }
.rh-week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 135px; align-items: end; }
.rh-week-bars > div { display: grid; grid-template-rows: 18px 82px 18px; gap: 4px; text-align: center; }
.rh-week-bars strong, .rh-week-bars small { font-size: 10px; }
.rh-week-bars small { color: var(--rh-muted); }
.rh-week-bar { display: flex; align-items: end; justify-content: center; overflow: hidden; border-radius: 7px; background: #f3eff9; }
.rh-week-bar i { display: block; width: 100%; min-height: 5px; border-radius: 7px 7px 0 0; background: #4b1d95; }
.rh-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rh-status.is-neutral { color: #5f6673; background: #edf0f4; }
.rh-status.is-open { color: #7b4b00; background: #fff3d6; }
.rh-status.is-complete { color: #0c6546; background: #dff7ee; }
.rh-status.is-warning { color: #8f2430; background: #ffeaed; }

.rh-table-wrap { width: 100%; overflow-x: auto; }
.rh-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rh-table th, .rh-table td { padding: 11px 10px; border-bottom: 1px solid var(--rh-border); text-align: left; vertical-align: middle; }
.rh-table th { color: var(--rh-muted); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.rh-cell-note { display: block; margin-top: 4px; color: var(--rh-muted); white-space: nowrap; }
.rh-schedule-compact { color: var(--rh-muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.rh-schedule-table input[type="time"] { min-width: 118px; }
.rh-schedule-table input[type="number"] { width: 84px; }
.rh-schedule-view-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.rh-schedule-view-meta > div { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--rh-border); border-radius: 11px; background: #fbfcfe; }
.rh-schedule-view-meta span { color: var(--rh-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rh-schedule-view-meta strong { color: var(--rh-navy); font-size: 1rem; }
.rh-subsection-title { margin: 22px 0 10px; color: var(--rh-navy); font-size: 1rem; }
.rh-schedule-assign { grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(150px, .7fr) auto; align-items: end; }
.rh-schedule-assign .rh-button { min-height: 42px; }
.rh-schedule-editor { padding: 0; overflow: hidden; }
.rh-schedule-editor-toggle { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 24px; color: var(--rh-primary); font-weight: 800; cursor: pointer; list-style: none; }
.rh-schedule-editor-toggle::-webkit-details-marker { display: none; }
.rh-schedule-editor-toggle::before { content: '+'; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; background: var(--rh-primary); font-size: 18px; font-weight: 500; line-height: 1; }
.rh-schedule-editor[open] .rh-schedule-editor-toggle { border-bottom: 1px solid var(--rh-border); }
.rh-schedule-editor[open] .rh-schedule-editor-toggle::before { content: '−'; }
.rh-schedule-editor-body { padding: 18px 24px 24px; }
.rh-schedule-editor-body .rh-card-heading { margin-bottom: 14px; }
.rh-schedule-editor-body .rh-card-heading p { margin-bottom: 0; }
.rh-schedule-template-fields { margin-bottom: 12px; }
.rh-schedule-table th, .rh-schedule-table td { padding-top: 8px; padding-bottom: 8px; }
.rh-report-filter-card { padding-bottom: 20px; }
.rh-report-filter-heading { margin: 12px 0 8px; }
.rh-report-filter-card .rh-help-text { max-width: 900px; margin: 0 0 16px; }
.rh-report-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: stretch; }
.rh-report-filter-group { min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--rh-border); border-radius: 12px; }
.rh-report-filter-group legend { padding: 0 4px; color: var(--rh-muted); font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rh-report-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rh-report-filters label { display: grid; min-width: 0; gap: 5px; color: var(--rh-text); font-size: .78rem; font-weight: 700; }
.rh-report-filters .rh-report-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .82rem; line-height: 1.3; }
.rh-report-filters .rh-report-checkbox input { width: auto; margin: 0; }
.rh-report-filters select, .rh-report-filters input { min-width: 0; }
.rh-report-filter-actions { display: flex; flex-direction: column; justify-content: end; gap: 8px; }
.rh-report-filter-actions .rh-button { min-width: 132px; white-space: nowrap; }
.rh-report-overview { margin-bottom: 18px; padding: 22px 24px; background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 18px; box-shadow: var(--rh-shadow); }
.rh-report-overview .rh-card-heading { margin-bottom: 14px; }
.rh-report-stats { gap: 10px; }
.rh-report-stats-primary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rh-report-stats-primary > div { min-height: 102px; border-color: #d9e4ef; background: #fbfdff; }
.rh-report-stats-primary > div.is-attention { border-color: #ead9a4; background: #fffdf7; }
.rh-report-stats-primary strong { color: var(--rh-navy); font-size: clamp(1.2rem, 2vw, 1.65rem); }
.rh-report-stats-secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.rh-report-stats-secondary > div { min-height: 0; padding: 10px 12px; box-shadow: none; }
.rh-report-stats-secondary strong { font-size: 1rem; }
.rh-report-employee-card { padding-top: 20px; padding-bottom: 20px; }
.rh-report-employee-card .rh-card-heading { margin-bottom: 10px; }
.rh-report-employee-table { font-size: .82rem; }
.rh-report-employee-table th, .rh-report-employee-table td { padding: 8px 9px; }
.rh-report-detail-card { padding: 26px 24px; }
.rh-report-detail-card .rh-card-heading { margin-bottom: 18px; }
.rh-report-detail-table { min-width: 1370px; font-size: .9rem; }
.rh-report-detail-table th, .rh-report-detail-table td { padding: 13px 11px; vertical-align: top; }
.rh-report-detail-table thead tr:not(.rh-table-group-heading) th { background: #f8fafc; }
.rh-report-detail-table .rh-table-group-heading th { padding-top: 9px; padding-bottom: 8px; color: var(--rh-blue); background: #f1f6fb; border-bottom-color: #d9e4ef; font-size: .68rem; }
.rh-report-detail-table td { line-height: 1.35; }
.rh-report-detail-table .rh-status { margin-top: 1px; }
.rh-report-detail-table .rh-cell-note { white-space: normal; }
.rh-report-detail-table a { font-weight: 800; }
.rh-attendance-incident-heading { margin-bottom: 20px; }
.rh-attendance-incident-meta { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px 14px; margin: 0; }
.rh-attendance-incident-meta span { min-width: 0; padding: 10px 12px; border: 1px solid var(--rh-border); border-radius: 10px; background: #fbfcfe; line-height: 1.35; }
.rh-attendance-incident-schedule { margin: 16px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--rh-border); }
.rh-map-link { white-space: nowrap; font-weight: 700; text-decoration: none; }
.rh-map-link:hover { text-decoration: underline; }
.rh-inline-filter { display: flex; gap: 10px; align-items: end; margin-bottom: 18px; }
.rh-inline-filter label { display: grid; gap: 5px; font-size: .82rem; font-weight: 700; }
.rh-inline-filter.rh-checkins-filter { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)) auto auto auto; align-items: end; }
.rh-checkin-history-list { display: grid; gap: 14px; }
.rh-checkin-history { overflow: hidden; border: 1px solid var(--rh-border); border-radius: 12px; background: #fff; }
.rh-checkin-history-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--rh-border); background: #fbfdff; }
.rh-checkin-history-heading h2 { margin: 0; color: var(--rh-blue); font-size: 1rem; }
.rh-checkin-history-heading p { margin: 3px 0 0; color: var(--rh-muted); font-size: .82rem; }
.rh-checkin-history-heading > span { flex: 0 0 auto; padding: 4px 8px; color: var(--rh-muted); border: 1px solid #dce6ef; border-radius: 999px; background: #fff; font-size: .75rem; font-weight: 800; }

/* UI 03.3 — consulta operativa de Registros. No cambia la fuente ni las
   reglas de la cronología; sólo ordena la presentación de sus resultados. */
.rh-records-page { display: grid; gap: 16px; padding: 2px 0; }
.rh-records-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rh-records-mobile-title { display: none; }
.rh-records-heading h2 { margin: 0; color: var(--nxia-text); font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
.rh-records-heading p { margin: 4px 0 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-records-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rh-records-filters { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.25fr) auto; gap: 10px; align-items: stretch; margin: 0; padding: 12px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-sm); }
.rh-records-filter-group { min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); }
.rh-records-filter-group legend { padding: 0 4px; color: var(--nxia-text-muted); font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.rh-records-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rh-records-filter-fields label { display: grid; min-width: 0; gap: 5px; color: var(--nxia-text); font-size: .78rem; font-weight: 750; }
.rh-records-filter-fields input,
.rh-records-filter-fields select { min-width: 0; width: 100%; }
.rh-records-filter-actions { display: flex; flex-direction: column; justify-content: end; gap: 7px; }
.rh-records-filter-actions .rh-button { min-width: 102px; white-space: nowrap; }
.rh-records-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--nxia-text-muted); font-size: .82rem; }
.rh-records-summary strong { color: var(--nxia-text); }
.rh-records-summary span + span { padding-left: 12px; border-left: 1px solid var(--nxia-border); }
.rh-records-history { border-color: var(--nxia-border); border-radius: var(--nxia-radius-md); box-shadow: var(--nxia-shadow-sm); }
.rh-records-history-heading { padding: 12px 14px; background: var(--nxia-surface); }
.rh-records-history-heading h2 { color: var(--nxia-text); }
.rh-records-history-heading p { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.rh-records-history-heading p span + span { padding-left: 10px; border-left: 1px solid var(--nxia-border); }
.rh-records-table th,
.rh-records-table td { padding: 12px 14px; }
.rh-records-table th { color: var(--nxia-text-muted); background: #fbfcfe; }
.rh-records-table td { line-height: 1.35; }
.rh-records-table td[data-label="Fecha y hora"] { white-space: nowrap; }
.rh-records-table td[data-label="Fecha y hora"] strong,
.rh-records-table td[data-label="Fecha y hora"] span { display: block; }
.rh-records-table td[data-label="Fecha y hora"] span { margin-top: 2px; color: var(--nxia-text-muted); font-size: .82rem; }
.rh-records-table .rh-type { margin-bottom: 4px; }
.rh-records-meta { display: block; margin-top: 5px; color: var(--nxia-text-muted); font-size: .78rem; line-height: 1.35; }
.rh-records-meta strong { color: var(--nxia-text); font-weight: 750; }
.rh-records-meta .rh-status { margin-left: 3px; vertical-align: middle; }
.rh-records-no-context { color: var(--nxia-text-muted); font-size: .8rem; }
.rh-records-empty-note { margin: 0; padding: 20px 0; border-top: 1px solid var(--nxia-border); }
.rh-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rh-subnav .rh-context-link { color: var(--rh-primary); background: #faf8ff; border-color: #e5dcf7; }
.rh-subnav .rh-context-link.is-active { color: #fff; background: var(--rh-primary); border-color: var(--rh-primary); }
.rh-do-survey progress { width: 100%; height: 13px; accent-color: var(--rh-primary); }
.rh-inline-filter.rh-employee-filter { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(150px, 1fr)) auto auto; align-items: end; }
.rh-resolution-form { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-width: 280px; }
.rh-resolution-form input, .rh-resolution-form select { flex: 1 1 170px; min-height: 36px; padding: 7px 9px; border: 1px solid var(--rh-border); border-radius: 8px; color: var(--rh-text); background: #fff; font: inherit; }
.rh-resolution-form label { display: grid; gap: 4px; min-width: 130px; color: var(--rh-muted); font-size: 11px; font-weight: 700; }
.rh-resolution-form .rh-check-option { display: flex; min-width: auto; color: var(--rh-text); }
.rh-resolution-panel { scroll-margin-top: 18px; }
.rh-resolution-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.rh-resolution-summary > div { display: grid; gap: 4px; min-width: 0; padding: 12px; background: #f7f5fb; border: 1px solid #ece5f8; border-radius: 10px; }
.rh-resolution-summary span { color: var(--rh-muted); font-size: .75rem; font-weight: 700; }
.rh-resolution-summary strong { overflow-wrap: anywhere; font-size: .9rem; }
.rh-resolution-summary-wide { grid-column: 1 / -1; }
.rh-resolution-form-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rh-border); }
.rh-resolution-original { padding: 10px 12px; color: var(--rh-muted); background: #f8fafc; border-radius: 10px; }
.rh-resolution-actions { display: flex; gap: 10px; padding-top: 6px; }
.rh-resolution-actions .rh-button { flex: 1; }
.rh-button.is-danger { background: #b42338; }
.rh-exception-panel { margin-top: 16px; padding: 14px; border: 1px solid #f1c7ce; border-radius: 12px; background: #fff8f8; }
.rh-exception-panel summary { color: #8f2430; font-weight: 800; cursor: pointer; }
.rh-exception-panel[open] summary { margin-bottom: 12px; }
.rh-resolution-history { display: grid; gap: 8px; margin-top: 18px; }
.rh-resolution-history h3 { margin: 0; font-size: 1rem; }
.rh-resolution-history > div { padding: 10px 12px; border-left: 3px solid #d9c9f5; background: #faf9fd; }
.rh-resolution-history span { display: block; margin-top: 3px; color: var(--rh-muted); font-size: .78rem; }
.rh-resolution-history p { margin: 6px 0 0; }
.rh-admin-pending-card { margin-bottom: 18px; border-color: #d6e3f1; background: #fbfdff; }
.rh-admin-pending-group + .rh-admin-pending-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e9f0; }
.rh-admin-pending-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.rh-admin-pending-group-heading h3 { margin: 0; color: var(--rh-navy); font-size: .95rem; }
.rh-admin-pending-group-heading p { margin: 0; color: var(--rh-muted); font-size: .78rem; line-height: 1.35; text-align: right; }
.rh-admin-pending-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.rh-admin-pending-item { padding: 12px; border: 1px solid var(--rh-border); border-radius: 10px; background: #fff; }
.rh-admin-pending-item.is-critico { border-color: #efc9c1; background: #fffaf8; }
.rh-admin-pending-item.is-atencion { border-color: #ead9a4; background: #fffdf7; }
.rh-admin-pending-item.is-informativo { border-color: #d7e4ef; background: #fcfdff; }
.rh-admin-pending-item-title { display: flex; align-items: start; gap: 8px; }
.rh-admin-pending-count { display: inline-grid; flex: 0 0 auto; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; color: #fff; background: var(--rh-blue); border-radius: 999px; font-size: .8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rh-admin-pending-item.is-critico .rh-admin-pending-count { background: #a43b2d; }
.rh-admin-pending-item.is-atencion .rh-admin-pending-count { color: #624800; background: #f3c84b; }
.rh-admin-pending-item strong { display: block; color: var(--rh-blue); font-size: .9rem; line-height: 1.3; }
.rh-admin-pending-item p { margin: 8px 0 9px; color: var(--rh-muted); font-size: .84rem; line-height: 1.4; }
.rh-pause-card { display: grid; gap: 8px; max-width: 460px; margin: 16px auto 0; padding: 14px; border: 1px solid #d7e4ef; border-radius: 12px; background: #fbfdff; text-align: left; }
.rh-pause-card.is-active { border-color: #e3c46b; background: #fffdf5; }
.rh-pause-card strong { color: var(--rh-navy); }
.rh-pause-card span, .rh-pause-card small { color: var(--rh-muted); line-height: 1.35; }
.rh-pause-card label { display: grid; gap: 5px; color: var(--rh-text); font-size: .82rem; font-weight: 700; }
.rh-pause-card select { min-height: 38px; }
.rh-pause-card .rh-button { justify-self: start; }
.rh-pause-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rh-pause-list li { display: grid; grid-template-columns: minmax(130px, 1fr) auto auto; gap: 8px; padding: 8px 10px; border: 1px solid var(--rh-border); border-radius: 9px; background: #fbfdff; font-size: .85rem; }
.rh-pause-list small { color: var(--rh-muted); }

/* La tabla inicial de Gerencia privilegia respuesta rápida en pantalla móvil. */
.rh-manager-approval-table { table-layout: fixed; }
.rh-manager-approval-table th:nth-child(1) { width: 28%; }
.rh-manager-approval-table th:nth-child(2) { width: 19%; }
.rh-manager-approval-table th:nth-child(3) { width: 30%; }
.rh-manager-approval-table th:nth-child(4) { width: 23%; }
body.rh-manager-approvals-page { display: flex; flex-direction: column; min-height: 100dvh; }
body.rh-manager-approvals-page .main-content { flex: 1 0 auto; }
body.rh-manager-approvals-page .footer { flex: 0 0 auto; margin-top: auto; }

@media (max-width: 820px) {
    .rh-context-bar { grid-template-columns: 1fr; padding: 14px; }
    .rh-context-nav { justify-content: flex-start; }
    .rh-context-nav-group-admin { margin-left: 0; }
    .rh-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) and (min-width: 701px) {
    .rh-attendance-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rh-employee-tab-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rh-import-form { grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr); }
    .rh-import-form .rh-button { grid-column: 1 / -1; }
    .rh-inline-filter.rh-employee-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rh-inline-filter.rh-checkins-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rh-records-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-records-filter-actions { flex-direction: row; grid-column: 1 / -1; justify-content: flex-start; }
    .rh-employee-filter .rh-button { width: 100%; }
    .rh-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-report-filter-actions { flex-direction: row; grid-column: 1 / -1; justify-content: flex-start; }
    .rh-report-stats-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* UI 03.2 — Dashboard operativo. Las reglas están acotadas para no cambiar
   los demás reportes, catálogos ni el portal del empleado. */
.rh-dashboard { display: grid; gap: 18px; }
.rh-dashboard .rh-dashboard-intro { align-items: center; margin: 0; padding: 2px 0; }
.rh-dashboard-eyebrow { margin: 0 0 3px; color: var(--nxia-module-accent); font-size: .73rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.rh-dashboard .rh-dashboard-intro h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.rh-dashboard .rh-dashboard-intro p:not(.rh-dashboard-eyebrow) { font-size: .84rem; }
.rh-dashboard .rh-dashboard-date { border-color: var(--nxia-border); color: var(--nxia-text-muted); box-shadow: var(--nxia-shadow-xs); }
.rh-dashboard-stat-strip { margin: 0; }
.rh-dashboard-stat-strip > div { min-height: 78px; padding: 13px 15px; }
.rh-dashboard-stat-strip > div.is-attention { border-color: #ead9a4; background: #fffdf7; }
.rh-dashboard-stat-strip > div.is-attention strong { color: #7b4b00; }
.rh-dashboard-pending { padding: 2px 0; }
.rh-dashboard-pending.is-empty { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); }
.rh-dashboard-pending.is-empty .rh-dashboard-section-heading { margin: 0; }
.rh-dashboard-pending.is-empty .rh-empty-note { margin: 0; text-align: right; }
.rh-dashboard-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.rh-dashboard-section-heading h2 { margin: 0 0 3px; color: var(--nxia-text); font-size: 1rem; }
.rh-dashboard-section-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .8rem; line-height: 1.35; }
.rh-dashboard-pending .rh-admin-pending-group + .rh-admin-pending-group { margin-top: 12px; padding-top: 12px; }
.rh-dashboard-pending .rh-admin-pending-group-heading { margin-bottom: 7px; }
.rh-dashboard-pending .rh-admin-pending-group-heading h3 { color: var(--nxia-text); font-size: .86rem; }
.rh-dashboard-pending .rh-admin-pending-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.rh-dashboard-pending .rh-admin-pending-item { padding: 10px 11px; border-radius: var(--nxia-radius-sm); }
.rh-dashboard-pending .rh-admin-pending-item p { margin: 6px 0 7px; font-size: .8rem; }
.rh-dashboard-pending .rh-admin-pending-item strong { color: var(--nxia-text); }
.rh-dashboard-pending .rh-admin-pending-count { background: var(--nxia-module-accent); }
.rh-dashboard-attention { min-width: 0; padding: 14px 16px; }
.rh-dashboard-attention-heading { align-items: center; margin-bottom: 8px; }
.rh-dashboard-attention-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; border-radius: 999px; color: #fff; background: var(--nxia-module-accent); font-size: .75rem; vertical-align: 1px; }
.rh-dashboard-attention-list { display: grid; min-width: 0; border-top: 1px solid var(--nxia-border); }
.rh-dashboard-attention-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--nxia-border); }
.rh-dashboard-attention-item:last-child { border-bottom: 0; }
.rh-dashboard-attention-copy { min-width: 0; }
.rh-dashboard-attention-copy strong { margin-left: 6px; color: var(--nxia-text); font-size: .88rem; }
.rh-dashboard-attention-copy p { margin: 4px 0; color: var(--nxia-text); font-size: .86rem; overflow-wrap: anywhere; }
.rh-dashboard-attention-copy small { color: var(--nxia-text-muted); font-size: .75rem; }
.rh-dashboard-attention-type { color: var(--nxia-module-accent); font-size: .71rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.rh-dashboard-attention-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 460px; }
.rh-dashboard-attention-action { position: relative; }
.rh-dashboard-attention-action > summary { min-height: 30px; padding: 6px 8px; border: 1px solid var(--nxia-border); border-radius: 7px; color: var(--nxia-module-accent); background: var(--nxia-surface); cursor: pointer; font-size: .75rem; font-weight: 800; list-style: none; }
.rh-dashboard-attention-action > summary::-webkit-details-marker { display: none; }
.rh-dashboard-attention-action[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rh-dashboard-attention-action form, .rh-dashboard-attention-action > p, .rh-dashboard-attention-action > small { display: grid; gap: 6px; width: min(270px, calc(100vw - 48px)); margin: 0; padding: 9px; border: 1px solid var(--nxia-border); border-radius: 0 0 8px 8px; color: var(--nxia-text-muted); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-sm); font-size: .75rem; }
.rh-dashboard-attention-action form { position: absolute; z-index: 2; right: 0; }
.rh-dashboard-attention-action form label { display: grid; gap: 4px; color: var(--nxia-text-muted); font-size: .74rem; font-weight: 750; }
.rh-dashboard-attention-action input, .rh-dashboard-attention-action select { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid var(--nxia-border); border-radius: 6px; font: inherit; }
.rh-dashboard-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--nxia-text-muted); font-size: .76rem; font-weight: 750; }
.rh-dashboard-pagination a { color: var(--nxia-module-accent); text-decoration: none; }
.rh-dashboard-pagination a:hover { text-decoration: underline; }
.rh-attention-portal-card { border-color: var(--nxia-border); }
.rh-attention-portal-list { display: grid; gap: 10px; margin-top: 14px; }
.rh-attention-portal-item { padding: 13px; border: 1px solid var(--nxia-border); border-radius: 10px; background: var(--nxia-page); }
.rh-attention-portal-item header span { color: var(--nxia-module-accent); font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.rh-attention-portal-item h3 { margin: 4px 0 2px; color: var(--nxia-text); font-size: .95rem; }
.rh-attention-portal-item p { margin: 0; color: var(--nxia-text-muted); font-size: .82rem; }
.rh-attention-portal-actions { margin-top: 10px; }
.rh-attention-portal-result { display: grid; gap: 8px; margin-top: 10px; }
.rh-attention-portal-result label { display: grid; gap: 5px; color: var(--nxia-text-muted); font-size: .8rem; font-weight: 750; }
.rh-attention-portal-result textarea { min-height: 76px; padding: 8px; border: 1px solid var(--nxia-border); border-radius: 7px; font: inherit; resize: vertical; }
.rh-attention-portal-outcome { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--nxia-border); }
.rh-dashboard-insights { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 22px; align-items: stretch; }
.rh-dashboard-surface { padding: 18px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-lg); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-xs); }
.rh-dashboard-coverage .rh-dashboard-section-heading { margin-bottom: 8px; }
.rh-dashboard-percentage { color: var(--nxia-module-accent); font-size: 1.5rem; line-height: 1; }
.rh-dashboard .rh-context-link { color: var(--nxia-text-muted); }
.rh-dashboard .rh-context-link.is-active { color: var(--nxia-module-accent); }
.rh-dashboard .rh-progress { background: var(--nxia-module-soft); }
.rh-dashboard .rh-progress span { background: var(--nxia-module-accent); }
.rh-dashboard .rh-coverage-groups { gap: 8px; }
.rh-dashboard .rh-coverage-group { border-color: var(--nxia-border); background: var(--nxia-page); }
.rh-dashboard-activity { display: grid; align-content: start; gap: 8px; padding: 7px 0 7px 20px; border-left: 1px solid var(--nxia-border); }
.rh-dashboard-activity .rh-dashboard-section-heading { margin: 0; }
.rh-dashboard-activity .rh-week-bars { height: 122px; }
.rh-dashboard-activity .rh-week-bars > div { grid-template-rows: 17px 74px 17px; }
.rh-dashboard .rh-week-bar { background: var(--nxia-module-soft); }
.rh-dashboard .rh-week-bar i { background: var(--nxia-module-accent); }
.rh-dashboard-records { padding: 15px; }
.rh-dashboard-records-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.rh-dashboard-records-heading h2 { margin: 0 0 3px; color: var(--nxia-text); font-size: 1.1rem; }
.rh-dashboard-records-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .8rem; line-height: 1.35; }
.rh-dashboard-records-summary { margin-top: 3px !important; font-size: .72rem !important; }
.rh-dashboard-records-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 6px; }
.rh-dashboard-records-tools > a { padding: 5px 0; color: var(--nxia-module-accent); font-size: .76rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.rh-dashboard-records-tools > a:hover { text-decoration: underline; }
.rh-dashboard-records .rh-dashboard-filter { gap: 4px; }
.rh-dashboard-records .rh-dashboard-filter label { gap: 2px; font-size: .7rem; }
.rh-dashboard-records .rh-dashboard-filter select { min-height: 30px; padding: 4px 6px; font-size: .76rem; }
.rh-dashboard-records .rh-dashboard-filter .rh-button { min-height: 30px; padding: 5px 7px; font-size: .74rem; }
.rh-dashboard-records-wrap { border: 1px solid var(--nxia-border); border-radius: 8px; box-shadow: 0 1px 3px rgba(14, 31, 45, .06); }
.rh-dashboard-records-table { table-layout: fixed; background: #fff; }
.rh-dashboard-records .rh-table th,
.rh-dashboard-records .rh-table td { padding: 7px 8px; font-size: .78rem; line-height: 1.25; overflow-wrap: anywhere; }
.rh-dashboard-records .rh-table th { padding: 7px 8px; color: var(--nxia-text-muted); background: #F5F8FA; font-size: .7rem; }
.rh-dashboard-records .rh-table td:first-child { color: var(--nxia-text); font-weight: 800; }
.rh-dashboard-records .rh-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.rh-dashboard-records .rh-table tbody tr:hover td { background: #E6F6F8; }
.rh-dashboard-records-table th:nth-child(1) { width: 20%; }
.rh-dashboard-records-table th:nth-child(2) { width: 14%; }
.rh-dashboard-records-table th:nth-child(3) { width: 15%; }
.rh-dashboard-records-table th:nth-child(4) { width: 13%; }
.rh-dashboard-records-table th:nth-child(5) { width: 18%; }
.rh-dashboard-records-table th:nth-child(6) { width: 8%; }
.rh-dashboard-records-table th:nth-child(7) { width: 12%; }
.rh-dashboard-records .rh-cell-note { margin-top: 2px; font-size: .68rem; }
.rh-dashboard-records-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--nxia-text-muted); font-size: .72rem; }
.rh-dashboard-records-pagination > div { display: flex; gap: 5px; }
.rh-dashboard-records-pagination a { padding: 4px 7px; border: 1px solid var(--nxia-border); border-radius: 6px; color: var(--nxia-module-accent); font-weight: 800; text-decoration: none; }
.rh-dashboard-records-pagination a:hover { border-color: #9ededa; background: #f1fbfa; }

/* UI 03 — lectura operativa más visual. Se limita al contenido del Dashboard
   RH y conserva las dimensiones y tipografías compactas existentes. */
.rh-dashboard-stat-strip > .rh-dashboard-stat { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 12px 13px; overflow: hidden; }
.rh-dashboard-stat > div { display: grid; min-width: 0; gap: 2px; }
.rh-dashboard-stat-icon { display: inline-grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 10px; }
.rh-dashboard-stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rh-dashboard-stat.is-employees { border-color: #b7e2df; background: linear-gradient(135deg, #f8fffe, #eefafa); }
.rh-dashboard-stat.is-employees .rh-dashboard-stat-icon { color: #0c6f70; background: #dff5f3; }
.rh-dashboard-stat.is-checkin { border-color: #c7dcf5; background: linear-gradient(135deg, #fbfdff, #f0f7ff); }
.rh-dashboard-stat.is-checkin .rh-dashboard-stat-icon { color: #2468aa; background: #e2efff; }
.rh-dashboard-stat.is-complete { border-color: #c9e7d5; background: linear-gradient(135deg, #fbfffc, #f0faf3); }
.rh-dashboard-stat.is-complete .rh-dashboard-stat-icon { color: #26724b; background: #e1f5e8; }
.rh-dashboard-stat.is-pending { border-color: #ded1f1; background: linear-gradient(135deg, #fefcff, #f5f0fc); }
.rh-dashboard-stat.is-pending .rh-dashboard-stat-icon { color: #6841a4; background: #ede5fb; }
.rh-dashboard-stat.is-pending.is-attention { border-color: #ead9a4; background: linear-gradient(135deg, #fffefa, #fff7e5); }
.rh-dashboard-stat.is-pending.is-attention .rh-dashboard-stat-icon { color: #8b5a00; background: #fff0c9; }
.rh-dashboard-stat-strip { grid-template-columns: minmax(330px, 2fr) repeat(3, minmax(0, 1fr)); }
.rh-dashboard-stat-strip > .rh-dashboard-stat { height: 78px; box-sizing: border-box; }
.rh-dashboard-stat-strip > .rh-dashboard-staff-stat { gap: 8px; padding-right: 11px; border-color: #9ee4df; background: linear-gradient(135deg, #fbffff, #effcfb); }
.rh-dashboard-staff-stat .rh-dashboard-stat-icon { flex-basis: 28px; width: 28px; height: 28px; color: #087f81; background: #d8f8f5; }
.rh-dashboard-staff-stat .rh-dashboard-stat-icon svg { width: 17px; height: 17px; }
.rh-dashboard-staff-content { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.rh-dashboard-staff-title { overflow: hidden; color: var(--nxia-text); font-size: .67rem; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.rh-dashboard-staff-metrics { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rh-dashboard-staff-active { display: inline-grid; flex: 0 0 auto; gap: 0; min-width: 34px; padding-right: 7px; border-right: 1px solid #c9ece9; }
.rh-dashboard-staff-active strong { color: var(--nxia-text); font-size: 1.18rem; line-height: .95; }
.rh-dashboard-staff-active small { color: var(--nxia-text-muted); font-size: .62rem; font-weight: 750; line-height: 1.15; }
.rh-dashboard-staff-movements { display: grid; flex: 0 0 auto; gap: 1px; font-size: .65rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.rh-dashboard-staff-movements .is-hires { color: #187143; }
.rh-dashboard-staff-movements .is-terminations { color: #9a6200; }
.rh-dashboard-staff-variation { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; margin-left: auto; padding: 5px 6px; border-radius: 7px; font-size: .65rem; font-weight: 850; line-height: 1.1; white-space: nowrap; }
.rh-dashboard-staff-variation small { margin-left: 3px; color: inherit; font-size: .59rem; font-weight: 750; }
.rh-dashboard-staff-variation.is-positive { color: #176e42; background: #e0f7e9; }
.rh-dashboard-staff-variation.is-negative { color: #a32836; background: #fee9ec; }
.rh-dashboard-staff-variation.is-neutral { color: #5f6978; background: #edf1f5; }
.rh-dashboard-staff-variation.is-unavailable { color: #647080; background: #edf1f5; }

.rh-dashboard-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rh-dashboard-trends { min-width: 0; }
.rh-dashboard-trend-card { min-width: 0; padding: 14px 16px; }
.rh-dashboard-trend-card .rh-dashboard-section-heading { margin-bottom: 9px; }
.rh-dashboard-mini-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.rh-dashboard-mini-chart { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); background: linear-gradient(150deg, #fff, #f8fbfb); }
.rh-dashboard-mini-chart figcaption { display: grid; gap: 2px; min-width: 0; }
.rh-dashboard-mini-chart figcaption strong { color: var(--nxia-text); font-size: .82rem; line-height: 1.25; }
.rh-dashboard-mini-chart figcaption span { color: var(--nxia-text-muted); font-size: .71rem; line-height: 1.3; }
.rh-dashboard-chart-legend { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 8px 0 5px; color: var(--nxia-text-muted); font-size: .68rem; font-weight: 750; }
.rh-dashboard-chart-legend span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.rh-dashboard-chart-legend span::before { width: 6px; height: 6px; border-radius: 999px; background: currentColor; content: ''; }
.rh-dashboard-chart-legend .is-attendance { color: #0d7b7e; }
.rh-dashboard-chart-legend .is-punctuality { color: #276fc4; }
.rh-dashboard-chart-legend .is-expected { color: #7352aa; }
.rh-dashboard-chart-legend .is-recorded { color: #278052; }
.rh-dashboard-dual-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; height: 98px; align-items: end; }
.rh-dashboard-dual-bars > div { display: grid; grid-template-rows: 14px 65px 13px; gap: 3px; min-width: 0; text-align: center; }
.rh-dashboard-dual-bars-values, .rh-dashboard-dual-bars small { overflow: hidden; color: var(--nxia-text-muted); font-size: 9px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.rh-dashboard-dual-bars-track { display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-width: 0; height: 65px; padding: 3px; border-radius: 6px 6px 2px 2px; background: #eff5f5; }
.rh-dashboard-dual-bars-track i { display: block; width: min(8px, 42%); min-height: 0; border-radius: 4px 4px 1px 1px; }
.rh-dashboard-dual-bars-track .is-attendance { background: linear-gradient(180deg, #2daba9, #0c7778); }
.rh-dashboard-dual-bars-track .is-punctuality { background: linear-gradient(180deg, #65a8ed, #286fc3); }
.rh-dashboard-dual-bars-track .is-expected { background: linear-gradient(180deg, #ac90d8, #7352aa); }
.rh-dashboard-dual-bars-track .is-recorded { background: linear-gradient(180deg, #70c990, #287e52); }
.rh-dashboard-attention { max-width: none; min-width: 0; padding: 14px 15px; }
.rh-dashboard-attention-item { gap: 9px; padding: 8px 0 8px 9px; border-left: 3px solid var(--rh-attention-category, #94A3B8); background: #fff; }
.rh-dashboard-attention-item.is-category-asistencia { --rh-attention-category: #1E8FA1; }
.rh-dashboard-attention-item.is-category-permisos { --rh-attention-category: #F59E0B; }
.rh-dashboard-attention-item.is-category-vacaciones { --rh-attention-category: #3B82F6; }
.rh-dashboard-attention-item.is-category-evaluaciones { --rh-attention-category: #6B5CE7; }
.rh-dashboard-attention-item.is-category-otros { --rh-attention-category: #94A3B8; }
.rh-dashboard-attention-item.is-category-asistencia .rh-dashboard-attention-type { color: #1E8FA1; }
.rh-dashboard-attention-item.is-category-permisos .rh-dashboard-attention-type { color: #a85c00; }
.rh-dashboard-attention-item.is-category-vacaciones .rh-dashboard-attention-type { color: #3B82F6; }
.rh-dashboard-attention-item.is-category-evaluaciones .rh-dashboard-attention-type { color: #6B5CE7; }
.rh-dashboard-attention-item.is-category-otros .rh-dashboard-attention-type { color: #64748B; }
.rh-dashboard-attention-copy strong { font-size: .84rem; }
.rh-dashboard-attention-copy p { margin: 3px 0; font-size: .8rem; }
.rh-dashboard-attention-actions { gap: 5px; max-width: 206px; }
.rh-dashboard-attention-actions .rh-button { min-height: 29px; padding: 5px 7px; font-size: .72rem; }
.rh-dashboard-attention-action > summary { min-height: 29px; padding: 5px 7px; font-size: .72rem; }
.rh-dashboard-calendar-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rh-dashboard-calendar-row > article { min-width: 0; padding: 14px 15px; }
.rh-dashboard-calendar-heading { align-items: center; margin-bottom: 7px; }
.rh-dashboard-calendar-nav { display: inline-flex; align-items: center; gap: 8px; color: var(--nxia-text); font-size: .76rem; white-space: nowrap; }
.rh-dashboard-calendar-nav a { display: inline-grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--nxia-border); border-radius: 6px; color: var(--nxia-module-accent); font-size: 1rem; line-height: 1; text-decoration: none; }
.rh-dashboard-calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; color: var(--nxia-text-muted); font-size: .68rem; }
.rh-dashboard-calendar-legend span::before, .rh-dashboard-calendar-detail li span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 99px; background: currentColor; content: ''; }
.rh-dashboard-calendar-legend .is-birthday, .rh-dashboard-calendar-markers .is-cumpleanos, .rh-dashboard-calendar-detail .is-cumpleanos { color: #1E8FA1; }
.rh-dashboard-calendar-legend .is-event, .rh-dashboard-calendar-markers .is-evento, .rh-dashboard-calendar-detail .is-evento { color: #3B82F6; }
.rh-dashboard-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.rh-dashboard-calendar-weekday { padding-bottom: 2px; color: var(--nxia-text-muted); font-size: .66rem; font-weight: 800; text-align: center; }
.rh-dashboard-calendar-empty, .rh-dashboard-calendar-day { min-height: 30px; }
.rh-dashboard-calendar-day { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3px 1px; border: 1px solid transparent; border-radius: 6px; color: var(--nxia-text); font-size: .7rem; line-height: 1; text-decoration: none; }
.rh-dashboard-calendar-day.has-events { cursor: pointer; font-weight: 800; }
.rh-dashboard-calendar-day:hover, .rh-dashboard-calendar-day.is-selected { border-color: #9ededa; background: #f1fbfa; }
.rh-dashboard-calendar-day.is-today > span { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 99px; color: #fff; background: var(--nxia-module-accent); }
.rh-dashboard-calendar-markers { display: flex; justify-content: center; gap: 2px; min-height: 5px; margin-top: 2px; }
.rh-dashboard-calendar-markers b { width: 4px; height: 4px; border-radius: 99px; background: currentColor; }
.rh-dashboard-calendar-detail, .rh-dashboard-calendar-upcoming { display: grid; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--nxia-border); color: var(--nxia-text-muted); font-size: .72rem; }
.rh-dashboard-calendar-detail[hidden], .rh-dashboard-calendar-upcoming[hidden] { display: none; }
.rh-dashboard-calendar-detail strong, .rh-dashboard-calendar-upcoming strong { color: var(--nxia-text); font-size: .74rem; }
.rh-dashboard-calendar-detail ul, .rh-dashboard-calendar-upcoming ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.rh-dashboard-calendar-detail li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px; align-items: start; min-width: 0; }
.rh-dashboard-calendar-detail li > div { display: grid; gap: 2px; min-width: 0; }
.rh-dashboard-calendar-detail li b { color: var(--nxia-text); font-size: .72rem; }
.rh-dashboard-calendar-detail li small { overflow-wrap: anywhere; font-size: .68rem; line-height: 1.25; }
.rh-dashboard-calendar-upcoming li { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-dashboard-calendar-upcoming li span { color: var(--nxia-text-muted); font-weight: 800; }
.rh-dashboard-vacation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 9px; }
.rh-dashboard-vacation-summary > div { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 3px; align-items: center; min-width: 0; padding: 5px 6px; border-radius: 7px; background: #f7fafc; color: var(--nxia-text-muted); }
.rh-dashboard-vacation-summary > div > span { width: 6px; color: #4f9da3; font-size: .55rem; }
.rh-dashboard-vacation-summary > div > strong { color: var(--nxia-text); font-size: .78rem; }
.rh-dashboard-vacation-summary > div > small { overflow: hidden; font-size: .64rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rh-dashboard-vacation-summary .is-current { background: #eaf8f3; }
.rh-dashboard-vacation-summary .is-current > span { color: #2b9b68; }
.rh-dashboard-vacation-summary .is-upcoming { background: #eef5ff; }
.rh-dashboard-vacation-summary .is-upcoming > span { color: #3b82f6; }
.rh-dashboard-vacation-summary .is-pending { background: #fff7e8; }
.rh-dashboard-vacation-summary .is-pending > span { color: #d98b16; }
.rh-dashboard-absence-groups { display: grid; gap: 9px; }
.rh-dashboard-absence-groups section + section { padding-top: 8px; border-top: 1px solid var(--nxia-border); }
.rh-dashboard-absence-groups h3 { margin: 0 0 5px; color: var(--nxia-text); font-size: .78rem; }
.rh-dashboard-absence-groups ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.rh-dashboard-absence-groups li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; color: var(--nxia-text-muted); font-size: .73rem; }
.rh-dashboard-absence-groups li strong { overflow: hidden; color: var(--nxia-text); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.rh-dashboard-absence-groups li small { grid-column: 1 / -1; color: var(--nxia-text-muted); font-size: .68rem; }
.rh-dashboard-absence-type { padding: 2px 5px; border-radius: 99px; font-size: .64rem; font-weight: 800; }
.rh-dashboard-absence-type.is-vacaciones { color: #2169b8; background: #e9f2ff; }
.rh-dashboard-absence-type.is-permiso { color: #a85c00; background: #fff3d7; }
.rh-dashboard-absence-type.is-incapacidad { color: #6B5CE7; background: #f0edff; }
.rh-dashboard-absence-groups .rh-empty-note { margin: 0; font-size: .72rem; }
.rh-dashboard-insights { grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.rh-dashboard-activity { display: grid; align-content: start; gap: 8px; padding: 14px 15px; border-left: 0; }
.rh-dashboard-activity .rh-dashboard-section-heading { margin: 0; }
.rh-dashboard-activity .rh-week-bars { height: 122px; }
.rh-dashboard-activity .rh-week-bars > div { grid-template-rows: 17px 74px 17px; }
.rh-dashboard-activity .rh-week-bars > div > span:first-child { color: var(--nxia-text-muted); font-size: 10px; font-weight: 700; }
.rh-dashboard-records { width: 100%; box-sizing: border-box; }
.rh-dashboard-insights .rh-dashboard-coverage { min-width: 0; }

@media (max-width: 1040px) {
    .rh-dashboard-workspace { grid-template-columns: minmax(0, 1fr); }
    .rh-dashboard-calendar-row { grid-template-columns: minmax(0, 1fr); }
    .rh-dashboard-attention-actions { max-width: none; }
}

@media (max-width: 1100px) and (min-width: 701px) {
    .rh-dashboard-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rh-dashboard-stat-strip > .rh-dashboard-staff-stat { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .rh-dashboard-mini-charts { grid-template-columns: minmax(0, 1fr); }
    .rh-dashboard-stat-strip > .rh-dashboard-stat { height: 72px; min-height: 72px; padding: 10px; }
    .rh-dashboard-staff-variation { padding: 4px 5px; }
    .rh-dashboard-staff-variation small { display: none; }
    .rh-dashboard-vacation-summary { gap: 4px; }
    .rh-dashboard-vacation-summary > div { grid-template-columns: auto auto; padding: 5px; }
    .rh-dashboard-vacation-summary > div > small { grid-column: 1 / -1; overflow: visible; text-overflow: clip; white-space: normal; }
}

@media (max-width: 700px) {
    .rh-dashboard-stat-strip > .rh-dashboard-staff-stat { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .rh-dashboard-insights { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 700px) {
    .rh-shell { padding: 10px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
    .rh-context-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; gap: 6px; overflow: visible; padding-bottom: 0; }
    .rh-context-nav-group { display: contents; }
    .rh-context-nav-group + .rh-context-nav-group { padding-left: 0; border-left: 0; }
    .rh-context-link { justify-content: center; min-width: 0; min-height: 40px; padding: 8px 6px; font-size: 11.5px; line-height: 1.15; text-align: center; white-space: normal; }
    .rh-context-home { gap: 4px; }
    .rh-context-home-icon { flex: 0 0 18px; }
    .rh-context-meta { grid-column: auto; }
    .rh-check-card, .rh-today-card, .rh-content-card { padding: 17px; border-radius: 14px; }
    .rh-dashboard-intro { align-items: start; flex-direction: column; }
    .rh-dashboard-date { min-height: 34px; }
    .rh-attendance-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
    .rh-module-access { min-height: 42px; padding: 8px 6px; font-size: .76rem; }
    .rh-employee-tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
    .rh-employee-tab-list button { min-height: 40px; padding: 7px 6px; font-size: .75rem; }
    .rh-admin-pending-group-heading { align-items: start; flex-direction: column; gap: 3px; }
    .rh-admin-pending-group-heading p { text-align: left; }
    .rh-form-grid, .rh-stat-grid, .rh-admin-links, .rh-dashboard-grid, .rh-report-filters, .rh-report-stats { grid-template-columns: 1fr; }
    .rh-report-filter-group { padding: 9px 10px 10px; }
    .rh-report-filter-fields { grid-template-columns: 1fr; }
    .rh-report-filter-actions { flex-direction: row; }
    .rh-report-filter-actions .rh-button { flex: 1; min-width: 0; }
    .rh-report-overview, .rh-report-detail-card { padding: 17px; border-radius: 14px; }
    .rh-report-stats-secondary { margin-top: 8px; }
    .rh-report-detail-table { font-size: .84rem; }
    .rh-attendance-incident-meta { grid-template-columns: 1fr; gap: 8px; }
    .rh-department-row { grid-template-columns: 1fr; gap: 5px; }
    .rh-coverage-groups { grid-template-columns: 1fr; }
    .rh-coverage-group .rh-department-summary { justify-content: flex-start; }
    .rh-dashboard { gap: 14px; }
    .rh-dashboard .rh-dashboard-intro { align-items: flex-start; }
    .rh-dashboard-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-dashboard-stat-strip > div { min-height: 72px; padding: 12px; }
    .rh-dashboard-pending.is-empty { grid-template-columns: 1fr; }
    .rh-dashboard-pending.is-empty .rh-empty-note { text-align: left; }
    .rh-dashboard-section-heading,
    .rh-dashboard-records-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .rh-dashboard-attention { padding: 13px; }
    .rh-dashboard-attention-item { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .rh-dashboard-attention-actions { justify-content: flex-start; max-width: none; }
    .rh-dashboard-attention-action form { right: auto; left: 0; }
    .rh-dashboard-records-tools { width: 100%; justify-content: flex-start; }
    .rh-dashboard-records-tools > a { padding: 8px 0; }
    .rh-dashboard-records-wrap { overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
    .rh-dashboard-records-table { min-width: 760px; }
    .rh-resolution-summary { grid-template-columns: 1fr; }
    .rh-resolution-summary-wide { grid-column: auto; }
    .rh-resolution-actions { flex-direction: column; }
    .rh-import-form, .rh-import-groups, .rh-import-rules { grid-template-columns: 1fr; }
    .rh-inline-filter.rh-employee-filter { grid-template-columns: 1fr; }
    .rh-inline-filter.rh-checkins-filter { grid-template-columns: 1fr; }
    .rh-checkin-history-heading { align-items: start; flex-direction: column; gap: 6px; }
    .rh-records-page { gap: 14px; }
    .rh-records-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .rh-records-heading-actions { width: 100%; justify-content: flex-start; }
    .rh-records-heading-actions .rh-button { flex: 1 1 auto; text-align: center; }
    .rh-records-filters { grid-template-columns: 1fr; padding: 10px; }
    .rh-records-filter-fields { grid-template-columns: 1fr; }
    .rh-records-filter-actions { flex-direction: row; }
    .rh-records-filter-actions .rh-button { flex: 1; min-width: 0; text-align: center; }
    .rh-records-summary { gap: 4px 8px; line-height: 1.4; }
    .rh-records-summary strong { width: 100%; }
    .rh-records-summary span + span { padding-left: 8px; }
    .rh-records-table-wrap { overflow: visible; }
    .rh-records-table,
    .rh-records-table tbody,
    .rh-records-table tr,
    .rh-records-table td { display: block; width: 100%; }
    .rh-records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rh-records-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--nxia-border); }
    .rh-records-table tr:last-child { border-bottom: 0; }
    .rh-records-table td { min-width: 0; padding: 0; border: 0; }
    .rh-records-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--nxia-text-muted); font-size: .71rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
    .rh-records-table td[data-label="Fecha y hora"],
    .rh-records-table td[data-label="Evento"] { grid-column: span 1; }
    .rh-records-table td[data-label="Jornada"],
    .rh-records-table td[data-label="Contexto"] { grid-column: 1 / -1; }
    .rh-records-table td[data-label="Fecha y hora"] { white-space: normal; }
    .rh-records-history-heading { padding: 12px 14px; }
    .rh-records-history-heading > span { align-self: flex-start; }
    .rh-employee-filter .rh-button { width: 100%; }
    .rh-import-flow { justify-content: flex-start; overflow-x: auto; }
    .rh-punch-button { width: min(190px, 62vw); }
    .rh-login-card { padding: 24px 20px; }
    .rh-mobile-module-notice { display: grid; }
    .rh-manager-approval-table-wrap { overflow-x: hidden; }
    .rh-manager-approval-table { width: 100%; font-size: .78rem; }
    .rh-manager-approval-table th, .rh-manager-approval-table td { padding: 10px 5px; overflow-wrap: anywhere; }
    .rh-manager-approval-table th { font-size: .64rem; letter-spacing: .02em; }
    .rh-manager-approval-table .rh-cell-note { white-space: normal; font-size: .72rem; }
    .rh-manager-approval-table .rh-map-link { white-space: normal; font-size: .76rem; }
    .rh-do-actions { flex-direction: column; }
    .rh-do-actions .rh-button { width: 100%; }
    .rh-do-score-grid { grid-template-columns: 1fr; }
    .rh-do-likert-title { align-items: start; flex-direction: column; gap: 2px; }
    .rh-do-likert-legend, .rh-do-likert-counts { gap: 6px 9px; }
    .rh-do-insight-grid, .rh-do-signal-grid { grid-template-columns: 1fr; gap: 16px; }
    .rh-do-executive-grid { grid-template-columns: 1fr; }
}

/* UI 03.2 / 03.3B — patrón compacto reutilizable para contexto y accesos
   operativos. El Dashboard RH fue el primer consumidor; Registros reutiliza
   la misma composición sin duplicar una variante propia. */
.rh-context-unified { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 14px; padding: 8px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-xs); }
.rh-context-unified .rh-context-bar-compact { display: flex; flex: 0 1 auto; align-items: center; gap: 12px; min-height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rh-context-bar-compact .rh-context-heading { flex: 0 0 auto; }
.rh-context-bar-compact .rh-context-heading h1 { font-size: 1rem; line-height: 1.2; }
.rh-context-bar-compact .rh-context-nav { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.rh-context-unified .rh-attendance-nav.rh-attendance-nav-compact { display: flex; flex: 1 1 470px; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rh-attendance-nav.rh-attendance-nav-compact .rh-module-access { flex: 0 0 auto; width: auto; min-height: 38px; padding: 8px 10px; font-size: .77rem; }
.rh-attendance-nav.rh-attendance-nav-compact .rh-module-access-icon { flex-basis: 17px; width: 17px; height: 17px; }
/* UI 04.3.1 — puente exclusivo del piloto Zonas. Las dimensiones replican la
 * barra aprobada; las reglas heredadas siguen siendo la fuente para las demás
 * pantallas RH hasta su migración explícita. */
.rh-context-unified--ui04 .rh-context-nav.nxia-context-links--legacy { gap: 8px 12px; }
.rh-context-unified--ui04 .rh-attendance-nav.nxia-context-links--legacy { gap: 8px; }

/* UI 04 — Incidencias y solicitudes. El flujo conserva sus secciones y
 * formularios; sólo adopta superficies y jerarquía compactas de Suite. */
.rh-incidents-page { display: grid; gap: 16px; padding: 2px 0; }
.rh-incidents-notices { display: grid; gap: 8px; }
.rh-incidents-notices .rh-alert { margin: 0; }
.rh-incidents-intro { margin: 0; color: var(--nxia-text-muted); font-size: .88rem; line-height: 1.45; }
.rh-incidents-page > .rh-content-card {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border-color: var(--nxia-border);
    border-radius: var(--nxia-radius-md);
    background: var(--nxia-surface);
    box-shadow: var(--nxia-shadow-xs);
}
.rh-incidents-page > .rh-content-card > h2,
.rh-incidents-page .rh-card-heading h2 { color: var(--nxia-text); font-size: 1rem; }
.rh-incidents-page .rh-card-heading { gap: 12px; margin-bottom: 12px; }
.rh-incidents-page .rh-card-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
.rh-incidents-page .rh-resolution-summary > div { border-color: var(--nxia-border); background: var(--nxia-module-soft); }
.rh-incidents-page .rh-resolution-history > div { border-left-color: var(--nxia-module-accent); background: var(--nxia-surface); }
.rh-incidents-page .rh-resolution-form-panel { border-top-color: var(--nxia-border); }
.rh-incidents-page .rh-map-link { color: var(--nxia-module-accent); }
.rh-incidents-page .rh-button.is-secondary { color: var(--nxia-text); border: 1px solid var(--nxia-border); background: #e8edf4; }

@media (max-width: 700px) {
    .rh-incidents-page { gap: 12px; }
    .rh-incidents-page > .rh-content-card { padding: 14px; }
    .rh-incidents-page .rh-card-heading { align-items: flex-start; flex-direction: column; }
}

/* UI 04 — Desarrollo organizacional. Las campañas, instrumentos y resultados
 * conservan sus flujos; estas reglas sólo sustituyen las superficies heredadas. */
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) {
    display: grid;
    gap: 16px;
    padding: 2px 0;
}
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) > .rh-content-card {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border-color: var(--nxia-border);
    border-radius: var(--nxia-radius-md);
    background: var(--nxia-surface);
    box-shadow: var(--nxia-shadow-xs);
}
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-card-heading { gap: 12px; margin-bottom: 12px; }
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-card-heading h2 { color: var(--nxia-text); font-size: 1rem; }
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-card-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-do-progress { color: var(--nxia-module-accent); }
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-do-executive-card,
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-do-pending-card { border-color: var(--nxia-border); background: var(--nxia-module-soft); }
:is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-button.is-secondary { color: var(--nxia-text); border: 1px solid var(--nxia-border); background: #e8edf4; }
.rh-development-page .rh-do-campaign-heading { flex-wrap: wrap; align-items: flex-start; }
.rh-development-page .rh-do-create--campaign { flex: 0 0 auto; margin: 0 0 0 auto; padding: 0; border: 0; }
.rh-development-page .rh-do-create--campaign > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 13px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); color: var(--nxia-text); background: #e8edf4; font-size: .84rem; font-weight: 800; cursor: pointer; list-style: none; }
.rh-development-page .rh-do-create--campaign > summary::-webkit-details-marker { display: none; }
.rh-development-page .rh-do-create--campaign[open] { flex-basis: 100%; width: 100%; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--nxia-border); }
.rh-development-page .rh-do-create--campaign[open] > summary { margin-bottom: 12px; color: #fff; border-color: var(--nxia-module-accent); background: var(--nxia-module-accent); }
.rh-development-page .rh-do-create--campaign .rh-form { margin-top: 0; }

@media (max-width: 700px) {
    :is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) { gap: 12px; }
    :is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) > .rh-content-card { padding: 14px; }
    :is(.rh-development-page, .rh-development-preview-page, .rh-development-results-page) .rh-card-heading { align-items: flex-start; flex-direction: column; }
    .rh-development-page .rh-do-create--campaign { margin-left: 0; }
}

/* UI 04 — Evaluaciones. Se conserva el cálculo y la revisión; el alcance
 * visual evita que las sub-vistas recuperen cabeceras y tarjetas heredadas. */
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) {
    display: grid;
    gap: 16px;
    padding: 2px 0;
}
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) > .rh-content-card {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border-color: var(--nxia-border);
    border-radius: var(--nxia-radius-md);
    background: var(--nxia-surface);
    box-shadow: var(--nxia-shadow-xs);
}
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-card-heading { gap: 12px; margin-bottom: 12px; }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-card-heading h2 { color: var(--nxia-text); font-size: 1rem; }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-card-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-subnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-color: var(--nxia-border); background: var(--nxia-surface); }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-subnav .rh-context-link { min-height: 36px; padding: 8px 11px; border-color: var(--nxia-border); background: #f8fafc; font-size: .8rem; }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-subnav .rh-context-link.is-active { color: var(--nxia-module-accent); border-color: var(--nxia-module-accent); background: var(--nxia-module-soft); }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-ev-pending-card { border-color: var(--nxia-border); background: var(--nxia-module-soft); }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-button.is-secondary { color: var(--nxia-text); border: 1px solid var(--nxia-border); background: #e8edf4; }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-alert { margin: 10px 0; padding: 9px 11px; line-height: 1.38; }
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-form,
:is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-inline-filter { max-width: none; }

@media (max-width: 700px) {
    :is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) { gap: 12px; }
    :is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) > .rh-content-card { padding: 14px; }
    :is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-card-heading { align-items: flex-start; flex-direction: column; }
    :is(.rh-evaluations-page, .rh-evaluation-result-page, .rh-evaluation-review-page) .rh-subnav .rh-context-link { flex: 1 1 132px; text-align: center; }
}

/* UI 04 — Pantallas auxiliares RH. La captura, importación y bandejas siguen
 * sus flujos propios; comparten únicamente el contrato de presentación. */
.rh-auxiliary-page { display: grid; gap: 16px; padding: 2px 0; }
.rh-auxiliary-page > .rh-content-card {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border-color: var(--nxia-border);
    border-radius: var(--nxia-radius-md);
    background: var(--nxia-surface);
    box-shadow: var(--nxia-shadow-xs);
}
.rh-auxiliary-page .rh-card-heading { gap: 12px; margin-bottom: 12px; }
.rh-auxiliary-page .rh-card-heading h2,
.rh-auxiliary-page > .rh-content-card > h2 { color: var(--nxia-text); font-size: 1rem; }
.rh-auxiliary-page .rh-card-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
.rh-auxiliary-page .rh-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-auxiliary-page .rh-button.is-secondary { color: var(--nxia-text); border: 1px solid var(--nxia-border); background: #e8edf4; }
.rh-auxiliary-page .rh-import-group summary strong { color: var(--nxia-module-accent); background: var(--nxia-module-soft); }
.rh-auxiliary-page .rh-import-flow span { color: var(--nxia-text); background: var(--nxia-module-soft); }

@media (max-width: 700px) {
    .rh-auxiliary-page { gap: 12px; }
    .rh-auxiliary-page > .rh-content-card { padding: 14px; }
    .rh-auxiliary-page .rh-card-heading { align-items: flex-start; flex-direction: column; }
}

/* UI 04 — Vistas secundarias del expediente. El expediente, ficha y ciclo
 * protegido preservan sus controles; se limita la intervención a contexto y
 * superficies administrativas, sin afectar el Portal independiente. */
body.suite-module-rh :is(.rh-employee-profile, .rh-employee-record, .rh-employee-cycle-page) { gap: 16px; padding: 2px 0; }
body.suite-module-rh :is(.rh-employee-profile, .rh-employee-record, .rh-employee-cycle-page) .rh-content-card {
    margin-bottom: 0;
    border-color: var(--nxia-border);
    border-radius: var(--nxia-radius-md);
    background: var(--nxia-surface);
    box-shadow: var(--nxia-shadow-xs);
}
body.suite-module-rh :is(.rh-employee-profile, .rh-employee-record, .rh-employee-cycle-page) :is(h1, h2, h3) { color: var(--nxia-text); }
body.suite-module-rh .rh-employee-record-nav a { color: var(--nxia-text); border: 1px solid var(--nxia-border); background: #e8edf4; }
body.suite-module-rh .rh-employee-record-nav a:hover { color: var(--nxia-module-accent); background: var(--nxia-module-soft); }
body.suite-module-rh .rh-employee-cycle-page > .rh-content-card { margin: 0; padding: 18px; }
body.suite-module-rh .rh-employee-cycle-page .rh-button.is-secondary { color: var(--nxia-text); border: 1px solid var(--nxia-border); background: #e8edf4; }

@media (max-width: 700px) {
    body.suite-module-rh :is(.rh-employee-profile, .rh-employee-record, .rh-employee-cycle-page) { gap: 12px; }
    body.suite-module-rh .rh-employee-cycle-page > .rh-content-card { padding: 14px; }
}

/* UI 03.9 — Bitácora: la fuente, límite, filtro y orden siguen siendo los
 * existentes; estas reglas sólo convierten la consulta en lectura operativa. */
.rh-audit-page { display: grid; gap: 16px; padding: 2px 0; }
.rh-audit-heading { padding: 3px 0; }
.rh-audit-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-audit-mobile-title { display: none; margin: 0 0 3px; color: var(--nxia-text); font-size: 1.1rem; }
.rh-audit-query { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; padding: 12px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-xs); }
.rh-audit-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 0; }
.rh-audit-filter label { display: grid; gap: 5px; min-width: min(310px, 100%); color: var(--nxia-text); font-size: .78rem; font-weight: 750; }
.rh-audit-filter select { width: 100%; min-width: 0; }
.rh-audit-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-audit-note { flex: 1 1 280px; max-width: 480px; margin: 0 0 2px; color: var(--nxia-text-muted); font-size: .78rem; line-height: 1.35; }
.rh-audit-list { min-width: 0; }
.rh-audit-table-wrap { overflow: hidden; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-sm); }
.rh-audit-table { margin: 0; }
.rh-audit-table th, .rh-audit-table td { padding: 12px 14px; }
.rh-audit-table th { color: var(--nxia-text-muted); background: #fbfcfe; }
.rh-audit-table td { line-height: 1.35; vertical-align: top; }
.rh-audit-table td[data-label="Fecha y hora"] { white-space: nowrap; }
.rh-audit-table code { color: var(--nxia-text-muted); font-size: .74rem; overflow-wrap: anywhere; }
.rh-audit-action { width: 1%; padding-block: 8px !important; white-space: nowrap; }
.rh-audit-action .rh-button { display: inline-flex; width: auto; margin: 0; text-decoration: none; }
.rh-audit-dialog { width: min(700px, calc(100vw - 32px)); }
.rh-audit-dialog-description { margin: 5px 0 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-audit-dialog .nxia-detail-dialog-sections section { min-width: 0; }
.rh-audit-observation { grid-column: 1 / -1; }
.rh-audit-change-values details + details { margin-top: 8px; }
.rh-audit-change-values summary, .rh-audit-technical summary { color: var(--nxia-text); font-weight: 750; cursor: pointer; }
.rh-audit-change-values pre { max-height: 250px; margin: 9px 0 0; padding: 10px; overflow: auto; color: var(--nxia-text); border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); background: #f8fafc; font: .76rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.rh-audit-technical details[open] summary { margin-bottom: 11px; }

@media (max-width: 700px) {
    .rh-audit-filter, .rh-audit-filter-actions { width: 100%; }
    .rh-audit-filter-actions .rh-button { flex: 1 1 auto; text-align: center; }
    .rh-audit-note { flex-basis: 100%; }
    .rh-audit-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .rh-audit-table, .rh-audit-table tbody, .rh-audit-table tr, .rh-audit-table td { display: block; width: 100%; }
    .rh-audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rh-audit-table tr { margin-bottom: 10px; padding: 12px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-xs); }
    .rh-audit-table tr:last-child { margin-bottom: 0; }
    .rh-audit-table td { display: grid; grid-template-columns: minmax(96px, 35%) minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; }
    .rh-audit-table td::before { content: attr(data-label); color: var(--nxia-text-muted); font-size: .72rem; font-weight: 800; }
    .rh-audit-table td[data-label="Fecha y hora"] { display: block; padding-bottom: 7px; }
    .rh-audit-table td[data-label="Fecha y hora"]::before { display: none; }
    .rh-audit-action { width: auto; margin-top: 5px; padding: 5px 0 0 !important; }
    .rh-audit-action::before { display: none; }
    .rh-audit-dialog { width: min(100vw - 20px, 700px); max-height: calc(100dvh - 20px); }
}

/* UI 03.4 — Horarios: la definición de una plantilla, sus vigencias y su
 * editor son flujos distintos. Estas clases sólo cambian su presentación. */
.rh-schedules-page { display: grid; gap: 16px; }
.rh-schedules-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 3px 0; }
.rh-schedules-heading h2 { margin: 0; color: var(--nxia-text); font-size: 1.1rem; }
.rh-schedules-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-schedules-mobile-title { display: none; }
.rh-schedules-operational-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); align-items: start; gap: 16px; }
.rh-schedules-panel { margin: 0; padding: 18px; }
.rh-schedules-panel .rh-card-heading { margin-bottom: 12px; }
.rh-schedules-panel .rh-card-heading h2 { margin-bottom: 3px; font-size: 1.05rem; }
.rh-schedules-panel .rh-card-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .83rem; line-height: 1.35; }
.rh-schedules-template-table { min-width: 0; }
.rh-schedules-template-table th:nth-child(2), .rh-schedules-template-table th:nth-child(3), .rh-schedules-template-table th:nth-child(4) { white-space: nowrap; }
.rh-schedule-template-action { width: 1%; white-space: nowrap; }
.rh-schedule-template-action .rh-button { min-width: 0; text-decoration: none; }
.rh-schedules-assignment .rh-schedule-assign { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); align-items: end; gap: 12px; }
.rh-schedule-assign-employee { grid-column: 1 / -1; }
.rh-schedule-assign-template, .rh-schedule-assign-date { min-width: 0; }
.rh-schedule-assign-submit { grid-column: 1 / -1; justify-self: start; width: auto; }
.nxia-employees-mobile-title { display: none; }
.rh-schedule-assignment-note { margin: 12px 0 0; color: var(--nxia-text-muted); font-size: .78rem; line-height: 1.4; }
.rh-schedule-impact { margin: 0; }
.rh-schedule-impact .rh-card-heading { margin-bottom: 8px; }
.rh-schedule-editor { margin: 0; }
.rh-schedule-editor-toggle { min-height: 50px; padding: 0 18px; }
.rh-schedule-editor-body { padding: 18px; }
.rh-schedule-week-wrap { overflow-x: auto; }
.rh-schedule-table { min-width: 620px; }
.rh-schedule-table input[type="time"] { min-width: 108px; }
.rh-schedule-checkbox { display: inline-flex; align-items: center; gap: 6px; color: var(--rh-text); font-size: .8rem; font-weight: 700; }
.rh-schedule-checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--nxia-module-accent); }
.rh-schedule-tolerance { display: inline-grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; max-width: 104px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.rh-schedule-tolerance input[type="number"] { width: 100%; min-width: 0; border: 0; border-radius: 0; }
.rh-schedule-tolerance b { display: grid; place-items: center; min-width: 31px; color: var(--rh-muted); background: #f3f6fa; border-left: 1px solid #dbe3ed; font-size: .72rem; font-weight: 700; }
.rh-schedule-detail-dialog { width: min(840px, calc(100vw - 32px)); max-height: min(780px, calc(100dvh - 32px)); }
.rh-schedule-detail-description { max-width: 590px; margin: 5px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
.rh-schedule-detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.rh-schedule-detail-section-heading h3 { margin: 0; }
.rh-schedule-detail-section-heading .rh-button { text-decoration: none; }
.rh-schedule-detail-dialog .nxia-detail-dialog-sections section { min-width: 0; }
.rh-schedule-detail-dialog .rh-table { margin: 0; }

@media (max-width: 860px) {
    .rh-schedules-operational-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .rh-context-bar-compact { align-items: center; gap: 10px; min-height: 42px; }
    .rh-context-bar-compact .rh-context-heading h1 { font-size: .95rem; }
    .rh-context-bar-compact .rh-context-nav { display: flex; flex: 1 1 auto; flex-basis: auto; width: auto; }
    .rh-attendance-nav.rh-attendance-nav-compact { display: flex; gap: 6px; }
    .rh-attendance-nav.rh-attendance-nav-compact .rh-module-access { flex: 0 0 auto; width: auto; min-height: 38px; padding: 8px 9px; font-size: .74rem; }
    .rh-schedules-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .rh-schedules-heading > .rh-button { width: 100%; text-align: center; text-decoration: none; }
    .rh-schedules-mobile-title { display: block; }
    .nxia-employees-mobile-title { display: block; }
    .rh-schedules-template-wrap, .rh-schedule-week-wrap, .rh-schedule-detail-table-wrap { overflow: visible; }
    .rh-schedules-template-table,
    .rh-schedules-template-table tbody,
    .rh-schedules-template-table tr,
    .rh-schedules-template-table td,
    .rh-schedule-table,
    .rh-schedule-table tbody,
    .rh-schedule-table tr,
    .rh-schedule-table td,
    .rh-schedule-detail-table,
    .rh-schedule-detail-table tbody,
    .rh-schedule-detail-table tr,
    .rh-schedule-detail-table td,
    .rh-schedule-assignment-history,
    .rh-schedule-assignment-history tbody,
    .rh-schedule-assignment-history tr,
    .rh-schedule-assignment-history td { display: block; width: 100%; }
    .rh-schedules-template-table thead,
    .rh-schedule-table thead,
    .rh-schedule-detail-table thead,
    .rh-schedule-assignment-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rh-schedules-template-table tr,
    .rh-schedule-detail-table tr,
    .rh-schedule-assignment-history tr { padding: 10px 0; border-bottom: 1px solid var(--nxia-border); }
    .rh-schedules-template-table tr:last-child,
    .rh-schedule-detail-table tr:last-child,
    .rh-schedule-assignment-history tr:last-child { border-bottom: 0; }
    .rh-schedules-template-table td,
    .rh-schedule-detail-table td,
    .rh-schedule-assignment-history td { display: grid; grid-template-columns: minmax(106px, 38%) minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; }
    .rh-schedules-template-table td::before,
    .rh-schedule-detail-table td::before,
    .rh-schedule-assignment-history td::before { content: attr(data-label); color: var(--nxia-text-muted); font-size: .72rem; font-weight: 800; }
    .rh-schedules-template-table td[data-label="Plantilla"] { display: block; padding-bottom: 7px; }
    .rh-schedules-template-table td[data-label="Plantilla"]::before { display: none; }
    .rh-schedule-template-action { width: auto; margin-top: 5px; }
    .rh-schedule-template-action .rh-button { width: auto; text-align: center; }
    .rh-schedules-assignment .rh-schedule-assign { grid-template-columns: minmax(0, 1fr); }
    .rh-schedule-assign-submit { width: 100%; }
    .rh-schedule-table { min-width: 0; }
    .rh-schedule-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 13px 0; border-bottom: 1px solid var(--nxia-border); }
    .rh-schedule-table tr:last-child { border-bottom: 0; }
    .rh-schedule-table td { min-width: 0; padding: 0; border: 0; }
    .rh-schedule-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--nxia-text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
    .rh-schedule-table .rh-schedule-day-cell { grid-column: 1 / -1; padding-bottom: 1px; }
    .rh-schedule-table .rh-schedule-day-cell::before { display: none; }
    .rh-schedule-table input[type="time"] { width: 100%; min-width: 0; }
    .rh-schedule-tolerance { max-width: none; }
    .rh-schedule-detail-dialog { width: min(100vw - 20px, 840px); max-height: calc(100dvh - 20px); }
    .rh-schedule-detail-section-heading { align-items: flex-start; flex-direction: column; }
    .rh-schedule-detail-section-heading .rh-button { width: 100%; text-align: center; }
}

@media (max-width: 959px) {
    /* El menú contextual móvil ya contiene las funciones de RH autorizadas. */
    body.nxia-context-mobile-ready .rh-context-unified { display: none; }
    .rh-context-bar-compact { display: none; }
    .rh-records-mobile-title { display: block; }
    .rh-audit-mobile-title { display: block; }
    .rh-schedules-mobile-title { display: block; }
    .nxia-employees-mobile-title { display: block; }
}

/* UI 03.5 — Pausas: políticas y registros compactos. Las políticas siguen
 * alimentando el motor existente; estas reglas sólo organizan su consulta. */
.rh-pauses-page { display: grid; gap: 16px; }
.rh-pauses-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 3px 0; }
.rh-pauses-heading h2 { margin: 0; color: var(--nxia-text); font-size: 1.1rem; }
.rh-pauses-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-pauses-mobile-title { display: none; }
.rh-pauses-panel { margin: 0; padding: 18px; }
.rh-pauses-panel .rh-card-heading { align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.rh-pauses-panel .rh-card-heading h2 { margin-bottom: 3px; font-size: 1.05rem; }
.rh-pauses-panel .rh-card-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .83rem; line-height: 1.35; }
.rh-pauses-setting-state,
.rh-pauses-attention-count { flex: 0 0 auto; margin-top: 1px; padding: 5px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.rh-pauses-setting-state.is-enabled { color: #166b5d; background: #e7f6f3; }
.rh-pauses-setting-state.is-disabled { color: #7a5a13; background: #fff6db; }
.rh-pauses-attention-count { color: #8a5813; background: #fff2d6; }
.rh-pauses-policy-table { min-width: 0; }
.rh-pauses-policy-table th:last-child,
.rh-pauses-policy-action { width: 1%; white-space: nowrap; }
.rh-pauses-policy-action { padding-top: 8px !important; padding-bottom: 8px !important; }
.rh-pauses-policy-action .rh-button { display: inline-flex; min-height: 30px; text-decoration: none; }
.rh-pauses-filters { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; margin: 0 0 14px; padding: 12px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: #fbfdff; }
.rh-pauses-filters label { min-width: 0; margin: 0; }
.rh-pauses-filters input,
.rh-pauses-filters select { width: 100%; }
.rh-pauses-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rh-pauses-filter-actions .rh-button { min-height: 36px; text-decoration: none; white-space: nowrap; }
.rh-pauses-records-table { min-width: 760px; }
.rh-pauses-records-table th:nth-child(4),
.rh-pauses-records-table th:nth-child(5),
.rh-pauses-records-table th:nth-child(6) { white-space: nowrap; }
.rh-pauses-attention-panel { border-color: #f0d29a; }
.rh-pauses-review-table { min-width: 650px; }
.rh-pauses-review-table .nxia-table-actions { white-space: nowrap; }
.rh-pause-dialog { width: min(680px, calc(100vw - 32px)); }
.rh-pause-dialog-description { max-width: 520px; margin: 5px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
.rh-pause-policy-form,
.rh-pause-regularization-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 18px; }
.rh-pause-policy-form > label,
.rh-pause-regularization-form > label { min-width: 0; margin: 0; }
.rh-pause-policy-form input,
.rh-pause-policy-form select,
.rh-pause-regularization-form input { width: 100%; }
.rh-pause-policy-form .rh-check-option { display: flex; align-items: center; gap: 7px; }
.rh-pause-policy-form .rh-check-option input { width: 16px; height: 16px; margin: 0; }
.rh-pause-policy-form small,
.rh-pause-regularization-form .rh-help-text { grid-column: 1 / -1; }
.rh-pause-policy-form label:has(.rh-input-unit),
.rh-pause-regularization-form label:nth-of-type(2) { grid-column: 1 / -1; }
.rh-pause-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; grid-column: 1 / -1; padding-top: 4px; }
.rh-pause-detail-actions { display: flex; justify-content: flex-end; }
.rh-pause-detail-actions .rh-button { text-decoration: none; }

@media (max-width: 1120px) {
    .rh-pauses-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rh-pauses-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .rh-pauses-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .rh-pauses-heading .nxia-inline-actions { width: 100%; }
    .rh-pauses-heading .rh-button { flex: 1 1 auto; text-align: center; }
    .rh-pauses-mobile-title { display: block; }
    .rh-pauses-panel { padding: 14px; }
    .rh-pauses-panel .rh-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .rh-pauses-policy-wrap,
    .rh-pauses-records-wrap,
    .rh-pauses-review-wrap { overflow: visible; }
    .rh-pauses-policy-table,
    .rh-pauses-policy-table tbody,
    .rh-pauses-policy-table tr,
    .rh-pauses-policy-table td,
    .rh-pauses-records-table,
    .rh-pauses-records-table tbody,
    .rh-pauses-records-table tr,
    .rh-pauses-records-table td,
    .rh-pauses-review-table,
    .rh-pauses-review-table tbody,
    .rh-pauses-review-table tr,
    .rh-pauses-review-table td { display: block; width: 100%; }
    .rh-pauses-policy-table thead,
    .rh-pauses-records-table thead,
    .rh-pauses-review-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rh-pauses-policy-table tr,
    .rh-pauses-records-table tr,
    .rh-pauses-review-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 12px 0; border-bottom: 1px solid var(--nxia-border); }
    .rh-pauses-policy-table tr:last-child,
    .rh-pauses-records-table tr:last-child,
    .rh-pauses-review-table tr:last-child { border-bottom: 0; }
    .rh-pauses-policy-table td,
    .rh-pauses-records-table td,
    .rh-pauses-review-table td { min-width: 0; padding: 0; border: 0; }
    .rh-pauses-policy-table td::before,
    .rh-pauses-records-table td::before,
    .rh-pauses-review-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--nxia-text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
    .rh-pauses-policy-table td[data-label="Nombre"],
    .rh-pauses-records-table td[data-label="Empleado"],
    .rh-pauses-review-table td[data-label="Empleado"] { grid-column: 1 / -1; }
    .rh-pauses-policy-table td[data-label="Nombre"]::before,
    .rh-pauses-records-table td[data-label="Empleado"]::before,
    .rh-pauses-review-table td[data-label="Empleado"]::before { display: none; }
    .rh-pauses-policy-action { width: auto; padding: 4px 0 0 !important; }
    .rh-pauses-policy-action .rh-button { min-height: 34px; }
    .rh-pauses-filters { grid-template-columns: 1fr; padding: 10px; }
    .rh-pauses-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-pauses-filter-actions .rh-button { text-align: center; }
    .rh-pauses-records-table { min-width: 0; }
    .rh-pauses-records-table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-pauses-records-table td[data-label="Tipo"],
    .rh-pauses-records-table td[data-label="Estado"] { grid-column: 1 / -1; }
    .rh-pauses-review-table { min-width: 0; }
    .rh-pauses-review-table td[data-label="Pausa"],
    .rh-pauses-review-table td[data-label="Estado"],
    .rh-pauses-review-table td[data-label="Acción"] { grid-column: 1 / -1; }
    .rh-pause-dialog { width: min(100vw - 20px, 680px); max-height: calc(100dvh - 20px); }
    .rh-pause-policy-form,
    .rh-pause-regularization-form { grid-template-columns: 1fr; }
    .rh-pause-policy-form label:has(.rh-input-unit),
    .rh-pause-regularization-form label:nth-of-type(2) { grid-column: auto; }
    .rh-pause-dialog-actions { justify-content: stretch; }
    .rh-pause-dialog-actions .rh-button { flex: 1 1 0; text-align: center; }
}

/* UI 03.6 — Zonas: Core conserva la ubicación física; RH sólo presenta y
 * ajusta cobertura de asistencia. Las reglas no modifican coordenadas ni IANA. */
.rh-zones-page { display: grid; gap: 16px; }
.rh-zones-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 3px 0; }
.rh-zones-heading h2 { margin: 0; color: var(--nxia-text); font-size: 1.1rem; }
.rh-zones-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-zones-mobile-title { display: none; }
.rh-zones-panel { margin: 0; padding: 18px; }
.rh-zones-panel .rh-card-heading { align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.rh-zones-panel .rh-card-heading h2 { margin-bottom: 3px; font-size: 1.05rem; }
.rh-zones-panel .rh-card-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .83rem; line-height: 1.35; }
.rh-zones-empty { display: grid; gap: 12px; justify-items: start; }
.rh-zones-empty .rh-button { text-decoration: none; }
.rh-zones-table { min-width: 0; }
.rh-zones-table th:last-child,
.rh-zone-action { width: 1%; white-space: nowrap; }
.rh-zone-action { padding-top: 8px !important; padding-bottom: 8px !important; }
.rh-zone-action .rh-button { display: inline-flex; min-height: 30px; text-decoration: none; }
.rh-zone-dialog-description { max-width: 530px; margin: 5px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
.rh-zone-detail-actions { display: flex; justify-content: flex-end; }
.rh-zone-detail-actions .rh-button { text-decoration: none; }
.rh-zone-inline-detail { display: grid; gap: 14px; margin: 0; padding: 18px; border-color: var(--nxia-border); background: var(--nxia-surface); }
.rh-zone-inline-detail[hidden] { display: none; }
.rh-zone-inline-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--nxia-border); }
.rh-zone-inline-detail-header h2 { margin: 0; color: var(--nxia-text); font-size: 1.05rem; }
.rh-zone-inline-detail-header p:not(.nxia-detail-dialog-eyebrow) { margin: 4px 0 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-zone-inline-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rh-zone-inline-detail-grid section { min-width: 0; padding: 13px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); }
.rh-zone-inline-detail-grid h3 { margin: 0 0 10px; color: var(--nxia-text); font-size: .88rem; }
.rh-zone-inline-detail-grid dl { display: grid; gap: 9px; margin: 0; }
.rh-zone-inline-detail-grid dt { margin-bottom: 2px; color: var(--nxia-text-muted); font-size: .72rem; }
.rh-zone-inline-detail-grid dd { margin: 0; overflow-wrap: anywhere; color: var(--nxia-text); font-size: .85rem; font-weight: 700; }
.rh-zone-edit-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.rh-zone-core-notice { padding: 11px 12px; border: 1px solid var(--nxia-border); border-left: 3px solid var(--nxia-module-accent); border-radius: var(--nxia-radius-sm); background: var(--nxia-module-soft); color: var(--nxia-text); font-size: .84rem; line-height: 1.4; }
.rh-zone-core-notice p { margin: 4px 0 0; }
.rh-zone-core-notice a { display: inline-block; margin-top: 7px; color: var(--nxia-module-accent); font-weight: 800; }
.rh-zone-coverage-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 18px; }
.rh-zone-coverage-form label { min-width: 0; margin: 0; }
.rh-zone-coverage-form input { width: 100%; }
.rh-zone-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; grid-column: 1 / -1; padding-top: 4px; }

@media (max-width: 700px) {
    .rh-zones-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .rh-zones-heading .nxia-inline-actions { width: 100%; }
    .rh-zones-heading .rh-button { flex: 1 1 auto; text-align: center; }
    .rh-zones-mobile-title { display: block; }
    .rh-zones-panel { padding: 14px; }
    .rh-zones-panel .rh-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .rh-zones-table-wrap { overflow: visible; }
    .rh-zones-table,
    .rh-zones-table tbody,
    .rh-zones-table tr,
    .rh-zones-table td { display: block; width: 100%; }
    .rh-zones-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rh-zones-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 12px 0; border-bottom: 1px solid var(--nxia-border); }
    .rh-zones-table tr:last-child { border-bottom: 0; }
    .rh-zones-table td { min-width: 0; padding: 0; border: 0; }
    .rh-zones-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--nxia-text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
    .rh-zones-table td[data-label="Zona"] { grid-column: 1 / -1; }
    .rh-zones-table td[data-label="Zona"]::before { display: none; }
    .rh-zone-action { width: auto; padding: 4px 0 0 !important; }
    .rh-zone-action .rh-button { min-height: 34px; }
    .rh-zone-inline-detail { padding: 14px; }
    .rh-zone-inline-detail-grid { grid-template-columns: 1fr; }
    .rh-zone-edit-dialog { width: min(100vw - 20px, 620px); max-height: calc(100dvh - 20px); }
    .rh-zone-coverage-form { grid-template-columns: 1fr; }
    .rh-zone-dialog-actions { justify-content: stretch; }
    .rh-zone-dialog-actions .rh-button { flex: 1 1 0; text-align: center; }
}

@media (max-width: 959px) {
    .rh-zones-mobile-title { display: block; }
}

/* UI 03.7 — Dispositivos: los equipos controlados y los accesos iOS se
 * presentan por separado sin alterar su política de autorización. */
.rh-devices-page { display: grid; gap: 16px; }
.rh-devices-heading { padding: 3px 0; }
.rh-devices-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-devices-mobile-title { display: none; margin: 0 0 3px; color: var(--nxia-text); font-size: 1.1rem; }
.rh-devices-panel { margin: 0; padding: 18px; }
.rh-devices-panel .rh-card-heading { align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.rh-devices-panel .rh-card-heading h2 { margin-bottom: 3px; font-size: 1.05rem; }
.rh-devices-panel .rh-card-heading p { max-width: 720px; margin: 0; color: var(--nxia-text-muted); font-size: .83rem; line-height: 1.35; }
.rh-devices-ios-panel { background: color-mix(in srgb, var(--nxia-surface) 94%, var(--nxia-module-soft)); }
.rh-devices-table { min-width: 0; }
.rh-devices-table th:last-child,
.rh-device-action { width: 1%; white-space: nowrap; }
.rh-device-action { padding-top: 8px !important; padding-bottom: 8px !important; }
.rh-device-action .rh-button { display: inline-flex; min-height: 30px; text-decoration: none; }
.rh-device-channel { display: inline-flex; align-items: center; gap: 6px; }
.rh-device-channel svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--nxia-module-accent); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.rh-devices-empty-row td { color: var(--nxia-text-muted); }
.rh-device-dialog { width: min(660px, calc(100vw - 32px)); }
.rh-device-dialog-description { max-width: 530px; margin: 5px 0 0; color: var(--nxia-text-muted); font-size: .84rem; line-height: 1.4; }
.rh-device-technical { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--nxia-border); }
.rh-device-technical summary { color: var(--nxia-text-muted); font-size: .8rem; font-weight: 800; cursor: pointer; }
.rh-device-technical code { display: block; max-width: 100%; margin-top: 8px; overflow-wrap: anywhere; color: var(--nxia-text-muted); font-size: .75rem; line-height: 1.4; white-space: normal; }
.rh-device-detail-actions { display: grid; gap: 10px; border-top: 1px solid var(--nxia-border); }
.rh-device-detail-actions h3 { margin: 0; }
.rh-device-detail-actions form { margin: 0; }

@media (max-width: 700px) {
    .rh-devices-mobile-title { display: block; }
    .rh-devices-panel { padding: 14px; }
    .rh-devices-panel .rh-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .rh-devices-table-wrap { overflow: visible; }
    .rh-devices-table,
    .rh-devices-table tbody,
    .rh-devices-table tr,
    .rh-devices-table td { display: block; width: 100%; }
    .rh-devices-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rh-devices-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 12px 0; border-bottom: 1px solid var(--nxia-border); }
    .rh-devices-table tr:last-child { border-bottom: 0; }
    .rh-devices-table td { min-width: 0; padding: 0; border: 0; }
    .rh-devices-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--nxia-text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
    .rh-devices-table td[data-label="Empleado / número"] { grid-column: 1 / -1; }
    .rh-devices-table td[data-label="Empleado / número"]::before { display: none; }
    .rh-device-action { width: auto; padding: 4px 0 0 !important; }
    .rh-device-action .rh-button { min-height: 34px; }
    .rh-devices-empty-row { display: block !important; }
    .rh-devices-empty-row td { display: block !important; }
    .rh-devices-empty-row td::before { display: none; }
    .rh-device-dialog { width: min(100vw - 20px, 660px); max-height: calc(100dvh - 20px); }
}

@media (max-width: 959px) {
    .rh-devices-mobile-title { display: block; }
}

/* UI 03.8 — Informes: conserva el informe factual y sus filtros; sólo
 * reorganiza su lectura para escritorio y elimina el desplazamiento móvil. */
.rh-reports-page { display: grid; gap: 16px; }
.rh-reports-heading { padding: 3px 0; }
.rh-reports-heading p { margin: 0; color: var(--nxia-text-muted); font-size: .84rem; }
.rh-reports-mobile-title { display: none; margin: 0 0 3px; color: var(--nxia-text); font-size: 1.1rem; }
.rh-reports-query,
.rh-reports-overview,
.rh-reports-panel { margin: 0; padding: 18px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); box-shadow: var(--nxia-shadow-xs); }
.rh-reports-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.rh-reports-section-heading h2 { margin: 0 0 3px; color: var(--nxia-text); font-size: 1.05rem; }
.rh-reports-section-heading p { max-width: 760px; margin: 0; color: var(--nxia-text-muted); font-size: .83rem; line-height: 1.4; }
.rh-reports-query .rh-report-filters { grid-template-columns: minmax(225px, .72fr) minmax(260px, .88fr) minmax(360px, 1.35fr) auto; gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rh-reports-query .rh-report-filter-group { border-color: var(--nxia-border); background: #fbfdff; }
.rh-reports-query .rh-report-filter-fields-person { grid-template-columns: minmax(150px, 1.3fr) repeat(2, minmax(110px, .8fr)); }
.rh-reports-query .rh-report-filter-actions { flex-direction: column; justify-content: end; gap: 8px; }
.rh-reports-query .rh-report-filter-actions .rh-button { min-width: 128px; text-decoration: none; }
.rh-report-pending-note { margin: 12px 0 0; padding: 9px 11px; color: #765410; border: 1px solid #ead9a4; border-radius: var(--nxia-radius-sm); background: #fffdf7; font-size: .8rem; line-height: 1.4; }
.rh-report-method-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--nxia-border); color: var(--nxia-text-muted); font-size: .8rem; line-height: 1.45; }
.rh-report-method-note summary { color: var(--nxia-text); font-weight: 750; cursor: pointer; }
.rh-report-method-note div { max-width: 820px; margin-top: 8px; }
.rh-report-method-note p { margin: 0 0 6px; }
.rh-report-method-note p:last-child { margin-bottom: 0; }
.rh-reports-overview { padding-bottom: 16px; }
.rh-reports-overview .rh-reports-section-heading { margin-bottom: 10px; }
.rh-reports-overview .rh-report-stats { gap: 8px; }
.rh-reports-overview .rh-report-stats-primary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rh-reports-overview .rh-report-stats-primary > div { min-height: 76px; padding: 11px 12px; border-color: var(--nxia-border); background: #fbfdff; box-shadow: none; }
.rh-reports-overview .rh-report-stats-primary > div.is-attention { border-color: #ead9a4; background: #fffdf7; }
.rh-reports-overview .rh-report-stats-primary strong { color: var(--nxia-text); font-size: clamp(1.05rem, 1.65vw, 1.4rem); }
.rh-reports-overview .rh-report-stats-secondary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.rh-reports-overview .rh-report-stats-secondary > div { min-height: 0; padding: 8px 10px; border-color: var(--nxia-border); box-shadow: none; }
.rh-reports-overview .rh-report-stats-secondary strong { font-size: .9rem; }
.rh-report-factual-note { margin: 10px 0 0; color: var(--nxia-text-muted); font-size: .79rem; line-height: 1.42; }
.rh-report-employee-card .rh-reports-section-heading,
.rh-report-detail-card .rh-reports-section-heading { margin-bottom: 10px; }
.rh-report-employee-table { font-size: .8rem; }
.rh-report-employee-table th,
.rh-report-employee-table td { padding: 8px 9px; }
.rh-report-detail-card { padding: 18px; }
.rh-report-detail-table { min-width: 1370px; font-size: .84rem; }
.rh-report-detail-table th,
.rh-report-detail-table td { padding: 10px 9px; }
.rh-report-detail-table .rh-table-group-heading th { color: var(--nxia-module-accent); background: var(--nxia-module-soft); }
.rh-report-detail-mobile-list,
.rh-report-employee-mobile-list { display: none; }

@media (max-width: 1120px) and (min-width: 701px) {
    .rh-reports-query .rh-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-reports-query .rh-report-filter-actions { flex-direction: row; grid-column: 1 / -1; justify-content: flex-start; }
    .rh-reports-overview .rh-report-stats-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .rh-reports-page { gap: 14px; }
    .rh-reports-heading { padding: 2px 0; }
    .rh-reports-mobile-title { display: block; }
    .rh-reports-query,
    .rh-reports-overview,
    .rh-reports-panel { padding: 14px; border-radius: var(--nxia-radius-md); }
    .rh-reports-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 10px; }
    .rh-reports-query .rh-report-filters { grid-template-columns: 1fr; gap: 9px; }
    .rh-reports-query .rh-report-filter-fields-person { grid-template-columns: 1fr; }
    .rh-reports-query .rh-report-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-reports-query .rh-report-filter-actions .rh-button { min-width: 0; text-align: center; }
    .rh-reports-overview .rh-report-stats-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-reports-overview .rh-report-stats-primary > div { min-height: 70px; }
    .rh-reports-overview .rh-report-stats-primary > div:last-child { grid-column: 1 / -1; }
    .rh-reports-overview .rh-report-stats-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-report-employee-table-wrap,
    .rh-report-detail-table-wrap { display: none; }
    .rh-report-employee-mobile-list,
    .rh-report-detail-mobile-list { display: grid; gap: 10px; }
    .rh-report-employee-mobile-card,
    .rh-report-detail-mobile-card { min-width: 0; padding: 12px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); background: #fbfdff; }
    .rh-report-employee-mobile-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 10px; }
    .rh-report-employee-mobile-card header strong { color: var(--nxia-text); }
    .rh-report-employee-mobile-card header span { color: var(--nxia-text-muted); font-size: .78rem; }
    .rh-report-employee-mobile-card dl,
    .rh-report-detail-mobile-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; margin: 0; }
    .rh-report-employee-mobile-card dl > div,
    .rh-report-detail-mobile-card dl > div { min-width: 0; }
    .rh-report-employee-mobile-card dt,
    .rh-report-detail-mobile-card dt,
    .rh-report-detail-mobile-primary span { color: var(--nxia-text-muted); font-size: .69rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
    .rh-report-employee-mobile-card dd,
    .rh-report-detail-mobile-card dd { margin: 3px 0 0; color: var(--nxia-text); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
    .rh-report-detail-mobile-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
    .rh-report-detail-mobile-card header > div { display: grid; gap: 2px; min-width: 0; }
    .rh-report-detail-mobile-card header strong { color: var(--nxia-text); }
    .rh-report-detail-mobile-card header span:not(.rh-status) { color: var(--nxia-text); font-size: .9rem; font-weight: 750; }
    .rh-report-detail-mobile-card header small { color: var(--nxia-text-muted); font-size: .75rem; line-height: 1.35; }
    .rh-report-detail-mobile-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 10px 0; border-top: 1px solid var(--nxia-border); border-bottom: 1px solid var(--nxia-border); }
    .rh-report-detail-mobile-primary > div { display: grid; gap: 3px; min-width: 0; }
    .rh-report-detail-mobile-primary > div:first-child { grid-column: 1 / -1; }
    .rh-report-detail-mobile-primary strong { color: var(--nxia-text); font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere; }
    .rh-report-detail-mobile-card details { margin-top: 10px; }
    .rh-report-detail-mobile-card summary { color: var(--nxia-module-accent); font-size: .82rem; font-weight: 800; cursor: pointer; }
    .rh-report-detail-mobile-card details[open] summary { margin-bottom: 10px; }
    .rh-report-detail-mobile-card a { color: var(--nxia-module-accent); font-weight: 800; text-decoration: none; }
    .rh-report-detail-mobile-card .rh-status { max-width: 150px; text-align: center; }
}

@media (max-width: 959px) {
    .rh-reports-mobile-title { display: block; }
}

/* UI 03.10.1 — Expediente de empleado. La estructura, pestañas, campos y
 * flujos siguen siendo los existentes; se homologa sólo la presentación RH. */
.rh-employee-form-page { display: grid; gap: 14px; padding: 2px 0; }
.rh-employee-form-heading { display: none; padding: 2px 0; }
.rh-employee-form-heading h2 { margin: 0; color: var(--nxia-text); font-size: 1.1rem; }
.rh-employee-form-heading p { margin: 3px 0 0; color: var(--nxia-text-muted); font-size: .82rem; line-height: 1.4; }
.rh-employee-form-page > .rh-alert { margin: 0; }
.rh-employee-form-page .rh-employee-form { width: 100%; max-width: none; margin: 0; gap: 14px; }
.rh-employee-form-page .rh-employee-tabs { gap: 12px; }
.rh-employee-form-page .rh-employee-tab-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-color: var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); }
.rh-employee-form-page .rh-employee-tab-list button { flex: 1 1 145px; min-height: 40px; padding: 8px 11px; border-color: transparent; border-radius: var(--nxia-radius-sm); color: var(--nxia-text); background: var(--nxia-surface); font-size: .78rem; }
.rh-employee-form-page .rh-employee-tab-list button:hover { color: var(--nxia-rh-reference); background: #f5f8fa; }
.rh-employee-form-page .rh-employee-tab-list button[aria-selected="true"] { border-color: var(--nxia-rh-reference); color: var(--nxia-rh-reference); background: var(--nxia-rh-soft); box-shadow: inset 0 -2px 0 var(--nxia-rh-reference); }
.rh-employee-form-page .rh-employee-tab-list button:focus-visible { outline-color: var(--nxia-module-focus-ring); }
.rh-employee-form-page .rh-employee-tab-panel { gap: 12px; }
.rh-employee-form-page .rh-employee-form fieldset { padding: 16px; border-color: var(--nxia-border); border-radius: var(--nxia-radius-md); background: var(--nxia-surface); }
.rh-employee-form-page .rh-employee-form legend { padding: 0 6px; color: var(--nxia-text); font-size: .92rem; }
.rh-employee-form-page .rh-employee-form input:not([type="checkbox"]):not([type="radio"]),
.rh-employee-form-page .rh-employee-form select { height: 42px; min-height: 42px; border-color: var(--nxia-border-strong); border-radius: var(--nxia-radius-sm); }
.rh-employee-form-page .rh-employee-form .rh-form-grid { gap: 12px 14px; }
.rh-employee-form-page .rh-related-fields { gap: 10px; margin-top: 12px; padding: 12px; border-color: var(--nxia-border); border-radius: var(--nxia-radius-sm); background: var(--nxia-surface); }
.rh-employee-form-page .rh-related-fields.is-recruitment { border-color: var(--nxia-border); background: var(--nxia-surface); }
.rh-employee-form-page .rh-related-fields-heading strong { color: var(--nxia-text); }
.rh-employee-form-page .rh-email-principal { padding: 11px 12px; border-color: var(--nxia-border); border-radius: var(--nxia-radius-sm); background: var(--nxia-surface); }
.rh-employee-form-page .rh-email-options input,
.rh-employee-form-page .rh-check-option input { accent-color: var(--nxia-module-accent); }
.rh-employee-form-page .rh-access-summary { gap: 5px 12px; padding: 11px 12px; border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-sm); background: var(--nxia-surface); }
.rh-employee-form-page .rh-dialog { color: var(--nxia-text); border: 1px solid var(--nxia-border); border-radius: var(--nxia-radius-md); box-shadow: var(--nxia-shadow-lg); }
.rh-employee-form-page .rh-dialog::backdrop { background: rgba(14, 31, 45, .52); }
.rh-employee-form-page .rh-form-actions { gap: 10px; padding-top: 2px; }
.rh-employee-form-page .rh-form-actions .rh-button { flex: 0 1 auto; min-width: 154px; text-decoration: none; }

@media (max-width: 959px) {
    .rh-employee-form-heading { display: block; }
}

@media (max-width: 700px) {
    .rh-employee-form-page { gap: 12px; }
    .rh-employee-form-page .rh-employee-tab-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .rh-employee-form-page .rh-employee-tab-list button { min-width: 0; min-height: 42px; padding: 8px 7px; font-size: .74rem; }
    .rh-employee-form-page .rh-employee-form fieldset { padding: 14px; }
    .rh-employee-form-page .rh-form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-employee-form-page .rh-form-actions .rh-button { width: 100%; min-width: 0; }
}

/* UI 04.8 — Inicio del Portal del Empleado. Estas reglas están aisladas del
   shell Suite y de las demás pantallas del Portal. */
body.rh-portal-home-page,
.rh-portal-home {
    --rh-primary: #1e8fa1;
    --rh-navy: #122033;
    --rh-blue: #1e8fa1;
    --rh-bg: #f5f8fa;
    --rh-card: #fff;
    --rh-border: #e2e8f0;
    --rh-muted: #5f7083;
    --rh-text: #122033;
    --rh-shadow: 0 16px 36px rgba(14, 31, 45, .08);
}
body.rh-portal-home-page .rh-shell { width: min(920px, 100%); padding-top: 16px; }
.rh-context-bar-portal-home {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-color: #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(14, 31, 45, .045);
}
.rh-context-bar-portal-home .rh-context-heading h1 { color: #122033; font-size: 1rem; }
.rh-context-bar-portal-home .rh-context-nav { justify-content: flex-end; gap: 6px; }
.rh-context-bar-portal-home .rh-context-link {
    min-height: 34px;
    padding: 8px 10px;
    border-color: #e2e8f0;
    border-radius: 9px;
    color: #334155;
    background: #fff;
    font-size: .78rem;
}
.rh-context-bar-portal-home .rh-context-link:hover { border-color: #8bcbd5; color: #087f91; background: #f5fbfc; }
.rh-context-bar-portal-home .rh-context-link.is-active { border-color: #8bcbd5; color: #087f91; background: #e6f6f8; }
.rh-context-bar-portal-home .rh-context-home-icon { color: #087f91; background: #e6f6f8; }
.rh-context-bar-portal-home .rh-context-link.is-active .rh-context-home-icon { color: #087f91; background: transparent; }
.rh-context-bar-portal-home .rh-context-meta {
    grid-column: 1 / -1;
    align-items: center;
    gap: 6px 10px;
    margin-top: -2px;
    padding-top: 9px;
    border-top-color: #e2e8f0;
}
.rh-context-bar-portal-home .rh-context-meta .is-strong { color: #122033; }
.rh-context-bar-portal-home .rh-device-reference-portal { margin-left: auto; color: #5f7083; font-size: .74rem; }
.rh-context-bar-portal-home .rh-device-reference-portal summary { cursor: pointer; }
.rh-context-bar-portal-home .rh-device-reference-portal code { display: block; max-width: min(100%, 310px); margin-top: 5px; overflow-wrap: anywhere; }
.rh-runtime-apk .rh-context-bar-portal-home .rh-context-nav { display: none; }

.rh-portal-home { display: grid; gap: 14px; }
.rh-portal-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    overflow: hidden;
    color: #122033;
    border: 1px solid #cce9ee;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6f6f8 0%, #f7fcfd 60%, #fff 100%);
}
.rh-portal-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: clamp(76px, 11vw, 92px);
    height: clamp(76px, 11vw, 92px);
    border: 4px solid rgba(255, 255, 255, .86);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #1e8fa1, #087f91);
    box-shadow: 0 8px 20px rgba(8, 127, 145, .2);
    font-size: 1.5rem;
    font-weight: 850;
    letter-spacing: .04em;
}
.rh-portal-identity-copy { display: grid; gap: 3px; min-width: 0; }
.rh-portal-identity-copy p { margin: 0; color: #087f91; font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.rh-portal-identity-copy h2 { margin: 0; color: #122033; font-size: clamp(1.08rem, 2.6vw, 1.42rem); line-height: 1.15; overflow-wrap: anywhere; }
.rh-portal-identity-copy span,
.rh-portal-identity time { color: #5f7083; font-size: .82rem; }
.rh-portal-identity time { align-self: start; white-space: nowrap; }
.rh-portal-notices { display: grid; gap: 10px; }
.rh-portal-notices .rh-content-card { margin: 0; padding: 14px 16px; border-radius: 14px; }
.rh-portal-notices .rh-card-heading { margin: 0; }
.rh-portal-notices .rh-card-heading h2 { font-size: .98rem; }
.rh-portal-notices .rh-card-heading p { font-size: .8rem; }
.rh-portal-notices .rh-button { min-height: 40px; padding: 9px 13px; background: #087f91; }

.rh-portal-home .rh-check-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 0;
    padding: 18px;
    border-color: #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(14, 31, 45, .08);
}
.rh-journey-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    text-align: left;
}
.rh-journey-summary > div { display: grid; gap: 4px; min-width: 0; padding: 12px 13px; }
.rh-journey-summary > div + div { border-left: 1px solid #e2e8f0; }
.rh-journey-summary span { color: #5f7083; font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.rh-journey-summary strong { color: #122033; font-size: .91rem; line-height: 1.25; overflow-wrap: anywhere; }
.rh-journey-summary small { color: #5f7083; font-size: .75rem; line-height: 1.35; overflow-wrap: anywhere; }
.rh-check-action { display: grid; justify-items: center; gap: 11px; }
.rh-portal-home .rh-clock { color: #122033; font-size: clamp(3rem, 9vw, 4.7rem); }
.rh-portal-home .rh-date { margin: -10px 0 4px; color: #5f7083; }
.rh-portal-home .rh-schedule-confirmation,
.rh-portal-home .rh-exit-context { width: min(100%, 480px); margin: 0; color: #122033; border-color: #cce9ee; background: #f5fbfc; }
.rh-portal-home .rh-schedule-confirmation strong,
.rh-portal-home .rh-exit-context strong { color: #087f91; }
.rh-portal-home .rh-alert { width: min(100%, 620px); margin: 0; text-align: left; }
.rh-portal-home .rh-day-complete { width: min(100%, 480px); margin: 0; border: 1px solid #ccebdc; }
.rh-portal-home .rh-punch-button,
.rh-portal-home .rh-location-help { order: 4; }
.rh-portal-home .rh-pause-card { order: 5; width: min(100%, 480px); margin: 0; padding: 12px 14px; text-align: left; }
.rh-portal-home .rh-pause-card .rh-button { min-height: 40px; background: #e6f6f8; color: #087f91; }
.rh-portal-home .rh-pause-card.is-active .rh-button { background: #087f91; color: #fff; }
.rh-portal-home .rh-punch-button { width: min(224px, 70vw); margin-top: 2px; }
.rh-portal-home .rh-punch-button.is-entrada { background: #16805b; }
.rh-portal-home .rh-punch-button.is-salida { background: #c43d4b; }
.rh-portal-home .rh-punch-button:focus-visible,
.rh-context-bar-portal-home .rh-context-link:focus-visible { outline: 3px solid rgba(30, 143, 161, .26); outline-offset: 2px; }
.rh-portal-home .rh-today-card { margin: 0; padding: 16px 18px; border-color: #e2e8f0; border-radius: 15px; box-shadow: 0 10px 24px rgba(14, 31, 45, .05); }
.rh-portal-home .rh-today-card h2 { margin-bottom: 8px; color: #122033; font-size: 1rem; }
.rh-portal-home .rh-punch-list { gap: 0; }
.rh-portal-home .rh-punch-list > div { padding: 10px 0; }
.rh-portal-home .rh-streak-card { margin: 0; border-color: #ccebdc; border-radius: 14px; }

@media (max-width: 700px) {
    body.rh-portal-home-page .rh-shell { padding: 10px 12px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .rh-context-bar-portal-home { grid-template-columns: 1fr; gap: 9px; margin-bottom: 10px; padding: 10px; }
    .rh-context-bar-portal-home .rh-context-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .rh-context-bar-portal-home .rh-context-link { justify-content: center; min-width: 0; padding: 8px 6px; font-size: .72rem; white-space: normal; text-align: center; }
    .rh-context-bar-portal-home .rh-context-meta { display: flex; justify-content: space-between; padding-top: 7px; }
    .rh-context-bar-portal-home .rh-device-reference-portal { margin-left: 0; }
    .rh-portal-home { gap: 11px; }
    .rh-portal-identity { grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 13px; }
    .rh-portal-avatar { width: 76px; height: 76px; font-size: 1.27rem; }
    .rh-portal-identity time { grid-column: 2; align-self: auto; font-size: .76rem; }
    .rh-portal-notices .rh-content-card { padding: 13px; }
    .rh-portal-notices .rh-card-heading { align-items: stretch; flex-direction: column; gap: 10px; }
    .rh-portal-notices .rh-card-heading .rh-button { width: 100%; text-align: center; }
    .rh-portal-home .rh-check-card { gap: 13px; padding: 14px; border-radius: 15px; }
    .rh-journey-summary { grid-template-columns: 1fr; }
    .rh-journey-summary > div { padding: 10px 11px; }
    .rh-journey-summary > div + div { border-top: 1px solid #e2e8f0; border-left: 0; }
    .rh-portal-home .rh-clock { font-size: clamp(3rem, 16vw, 4.1rem); }
    .rh-portal-home .rh-punch-button { width: min(212px, 68vw); }
    .rh-portal-home .rh-punch-button.is-schedule-confirmation { width: min(100%, 340px); }
    .rh-portal-home .rh-pause-card { width: 100%; }
    .rh-portal-home .rh-streak-card { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* UI 04.8.1 — El Inicio conserva los datos y acciones de UI 04.8, pero
   concentra el estado administrativo dentro de la identidad y revela el
   historial disponible sólo bajo demanda. */
.rh-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
body.rh-portal-home-page .rh-shell { width: min(860px, 100%); padding-top: 12px; }
.rh-context-bar-portal-home {
    display: block;
    margin-bottom: 10px;
    padding: 5px 7px;
    border: 1px solid #cce9ee;
    border-top: 3px solid #1e8fa1;
    border-radius: 11px;
    background: #e6f6f8;
    box-shadow: none;
}
.rh-context-bar-portal-home .rh-context-heading { display: none; }
.rh-context-bar-portal-home .rh-context-nav {
    justify-content: flex-start;
    gap: 3px;
}
.rh-context-bar-portal-home .rh-context-link {
    min-height: 30px;
    padding: 5px 8px;
    border-color: transparent;
    border-radius: 7px;
    background: transparent;
    color: #36536a;
    font-size: .74rem;
}
.rh-context-bar-portal-home .rh-context-link:hover { border-color: #a6d8df; background: #f8fdfe; }
.rh-context-bar-portal-home .rh-context-link.is-active {
    border-color: #9bd2da;
    color: #087f91;
    background: #fff;
    box-shadow: inset 0 -2px 0 #1e8fa1;
}
.rh-context-bar-portal-home .rh-context-home-icon { margin-right: 2px; background: transparent; }
.rh-context-bar-portal-home .rh-context-privacy { min-width: 30px; justify-content: center; font-size: 1rem; }
.rh-context-bar-portal-home .rh-context-meta {
    display: flex;
    justify-content: flex-end;
    margin: 3px 2px 0;
    padding: 0;
    border: 0;
}
.rh-context-bar-portal-home .rh-device-reference-portal { margin: 0; font-size: .68rem; }

.rh-portal-home { gap: 10px; }
.rh-portal-identity {
    gap: 11px;
    padding: 12px 14px;
    border-top: 3px solid #1e8fa1;
    border-radius: 14px;
    background: linear-gradient(135deg, #e6f6f8 0%, #f7fcfd 68%, #fff 100%);
}
.rh-portal-avatar { width: clamp(62px, 9vw, 76px); height: clamp(62px, 9vw, 76px); font-size: 1.2rem; }
.rh-portal-identity-copy { gap: 2px; }
.rh-portal-identity-copy p { font-size: .65rem; }
.rh-portal-identity-copy h2 { font-size: clamp(1rem, 2.4vw, 1.26rem); }
.rh-portal-identity-copy span,
.rh-portal-identity-copy small,
.rh-portal-identity time { color: #526a7d; font-size: .76rem; }
.rh-portal-identity-copy small { display: block; line-height: 1.35; }
.rh-portal-identity-copy .rh-portal-journey-meta strong { color: #122033; font-weight: 800; }
.rh-portal-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: #526a7d; font-size: .75rem; font-weight: 750; }
.rh-portal-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a99a8; }
.rh-portal-status.is-open { color: #1b6f4b; }
.rh-portal-status.is-open i { background: #16805b; }
.rh-portal-status.is-paused { color: #946b17; }
.rh-portal-status.is-paused i { background: #d59a19; }
.rh-portal-status.is-pending { color: #216b9a; }
.rh-portal-status.is-pending i { background: #2b82b8; }

.rh-portal-home .rh-check-card { gap: 9px; padding: 14px; border-radius: 16px; }
.rh-check-action { gap: 8px; }
.rh-portal-home .rh-clock { display: flex; align-items: baseline; gap: 8px; font-size: clamp(2.75rem, 8vw, 4.1rem); line-height: 1; }
.rh-portal-home .rh-clock-period { color: #5f7083; font-size: .28em; font-weight: 750; text-transform: lowercase; }
.rh-portal-home .rh-date { margin: -2px 0 1px; font-size: .78rem; }
.rh-portal-home .rh-schedule-confirmation,
.rh-portal-home .rh-exit-context,
.rh-portal-home .rh-day-complete { width: min(100%, 490px); padding: 9px 11px; font-size: .82rem; }
.rh-portal-home .rh-exit-context { display: block; }
.rh-portal-home .rh-exit-context span { display: inline; }
.rh-portal-home .rh-pause-card {
    display: flex;
    align-items: center;
    gap: 7px 10px;
    width: min(100%, 520px);
    padding: 9px 11px;
    border-color: #cce9ee;
    border-radius: 11px;
    background: #f8fdfe;
}
.rh-portal-home .rh-pause-card strong { color: #122033; font-size: .82rem; }
.rh-portal-home .rh-pause-card span { font-size: .78rem; }
.rh-portal-home .rh-pause-card .rh-button { min-height: 34px; margin-left: auto; padding: 7px 10px; font-size: .78rem; white-space: nowrap; }
.rh-portal-home .rh-pause-card small { flex: 1 0 100%; font-size: .7rem; }
.rh-portal-home .rh-punch-button { width: min(205px, 64vw); min-height: 205px; margin: 2px 0 0; }
.rh-portal-home .rh-punch-button.is-schedule-confirmation { width: min(100%, 340px); min-height: 58px; border-radius: 13px; }
.rh-portal-home .rh-location-help { max-width: 360px; margin: 0; font-size: .75rem; }

.rh-portal-disclosures { display: grid; gap: 7px; }
.rh-portal-disclosure { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.rh-portal-disclosure-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 43px;
    padding: 9px 12px;
    border: 0;
    color: #122033;
    background: #fff;
    font: inherit;
    font-size: .83rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}
.rh-portal-disclosure-trigger > span:last-child { color: #5f7083; font-size: .74rem; font-weight: 600; }
.rh-portal-disclosure-trigger b { display: inline-block; transition: transform .16s ease; }
.rh-portal-disclosure-trigger[aria-expanded="true"] { color: #087f91; background: #f8fdfe; box-shadow: inset 3px 0 0 #1e8fa1; }
.rh-portal-disclosure-trigger[aria-expanded="true"] b { transform: rotate(180deg); }
.rh-portal-disclosure-content { padding: 0 12px 11px; border-top: 1px solid #e2e8f0; }
.rh-portal-disclosure-content .rh-punch-list { gap: 0; }
.rh-portal-disclosure-content .rh-punch-list > div { padding: 8px 0; }
.rh-portal-disclosure-content .rh-streak-card { margin: 10px 0 0; }

@media (max-width: 700px) {
    body.rh-portal-home-page .rh-shell { padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .rh-context-bar-portal-home { margin-bottom: 8px; padding: 5px; }
    .rh-context-bar-portal-home .rh-context-nav { display: flex; width: 100%; flex-wrap: wrap; gap: 3px; }
    .rh-context-bar-portal-home .rh-context-link { min-width: 0; padding: 5px 7px; font-size: .7rem; white-space: nowrap; }
    .rh-context-bar-portal-home .rh-context-meta { display: flex; justify-content: flex-end; }
    .rh-portal-home { gap: 9px; }
    .rh-portal-identity { gap: 10px; padding: 11px; }
    .rh-portal-avatar { width: 58px; height: 58px; font-size: 1.05rem; }
    .rh-portal-identity time { grid-column: 2; align-self: auto; font-size: .72rem; }
    .rh-portal-home .rh-check-card { padding: 12px; }
    .rh-portal-home .rh-clock { font-size: clamp(2.65rem, 15vw, 3.7rem); }
    .rh-portal-home .rh-punch-button { width: min(190px, 60vw); min-height: 190px; }
    .rh-portal-home .rh-pause-card { align-items: flex-start; flex-wrap: wrap; width: 100%; }
    .rh-portal-home .rh-pause-card .rh-button { margin-left: 0; }
}

/* UI 04.8.2 — Una sola cabecera sólida integra la navegación Web y la ficha
   del empleado. Los cambios se limitan al Inicio del Portal. */
.rh-context-bar-portal-home {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding: 7px 9px 22px;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: #1e8fa1;
}
.rh-context-bar-portal-home .rh-context-nav { gap: 4px; }
.rh-context-bar-portal-home .rh-context-link {
    border-color: rgba(255, 255, 255, .78);
    color: #122033;
    background: rgba(255, 255, 255, .92);
    box-shadow: none;
}
.rh-context-bar-portal-home .rh-context-link:hover { border-color: #fff; color: #0e5261; background: #fff; }
.rh-context-bar-portal-home .rh-context-link.is-active {
    border-color: #fff;
    color: #0e5261;
    background: #fff;
    box-shadow: inset 0 -2px 0 #0e6f7e;
}
.rh-context-bar-portal-home .rh-context-home-icon { color: #0e6f7e; }
.rh-context-bar-portal-home .rh-context-privacy { color: #0e5261; }
.rh-context-bar-portal-home .rh-context-meta {
    color: #fff;
}
.rh-context-bar-portal-home .rh-device-reference-portal { color: rgba(255, 255, 255, .94); }
/* La APK conserva la franja institucional, no la navegación Web. La ficha
   puede apoyarse en ella sin quedar debajo de la barra nativa. */
.rh-runtime-apk .rh-context-bar-portal-home {
    display: block;
    min-height: 64px;
    padding: 6px 7px 26px;
}
.rh-runtime-apk .rh-context-bar-portal-home .rh-context-nav,
.rh-runtime-apk .rh-context-bar-portal-home .rh-context-meta { display: none; }

/* Inicio dentro de la APK: la barra nativa aporta la safe area turquesa y el
   Portal prolonga esa misma superficie, sin alterar el layout del navegador. */
.rh-runtime-apk body.rh-portal-home-page .rh-shell {
    width: 100%;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.rh-runtime-apk body.rh-portal-home-page .rh-context-bar-portal-home {
    min-height: 88px;
    margin: 0;
    padding: 15px 16px 34px;
    border-radius: 0;
}
.rh-runtime-apk .rh-context-bar-portal-home .rh-context-heading {
    display: block;
    text-align: center;
}
.rh-runtime-apk .rh-context-bar-portal-home .rh-context-heading h1 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.rh-runtime-apk body.rh-portal-home-page .rh-portal-home { padding: 0 10px; }

.rh-portal-home { position: relative; z-index: 2; }
.rh-portal-identity {
    margin: -16px 12px 0;
    padding: 13px 15px;
    border-top: 1px solid #cce9ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fcfd 0%, #fff 72%);
    box-shadow: 0 7px 18px rgba(14, 31, 45, .08);
}
.rh-portal-home .rh-check-card {
    gap: 7px;
    padding: 11px 14px 13px;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(14, 31, 45, .055);
}
.rh-check-action { gap: 6px; }
.rh-portal-home .rh-clock { margin-top: 1px; }
.rh-portal-home .rh-date { margin: -1px 0 0; }
.rh-portal-home .rh-schedule-confirmation,
.rh-portal-home .rh-exit-context,
.rh-portal-home .rh-day-complete { margin: 1px 0; }
.rh-portal-home .rh-punch-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: min(210px, 64vw);
    min-height: 210px;
    margin: 4px 0 2px;
    border: 2px solid rgba(255, 255, 255, .82);
    box-shadow: 0 0 0 3px rgba(18, 32, 51, .07), 0 12px 22px rgba(14, 31, 45, .16);
    font-size: .87rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.rh-portal-home .rh-punch-button .rh-punch-icon { font-size: 2rem; font-weight: 400; line-height: 1; }
.rh-portal-home .rh-punch-button strong { font-size: .72rem; letter-spacing: .12em; }
.rh-portal-home .rh-punch-button.is-entrada { background: linear-gradient(145deg, #159c74, #16805b); }
.rh-portal-home .rh-punch-button.is-salida { background: linear-gradient(145deg, #d55460, #b83b47); }
.rh-portal-home .rh-punch-button:hover:not(:disabled) { box-shadow: 0 0 0 4px rgba(18, 32, 51, .09), 0 15px 28px rgba(14, 31, 45, .2); filter: brightness(1.02); transform: translateY(-1px); }
.rh-portal-home .rh-punch-button:active:not(:disabled) { box-shadow: 0 0 0 3px rgba(18, 32, 51, .08), 0 7px 14px rgba(14, 31, 45, .16); transform: translateY(1px); }
.rh-portal-home .rh-punch-button:disabled { border-color: #d8e0e7; color: #697b89; background: #aeb9c2; box-shadow: none; }
.rh-portal-home .rh-punch-button.is-schedule-confirmation { display: block; min-height: 52px; box-shadow: none; }
.rh-portal-home .rh-pause-card {
    gap: 8px 10px;
    padding: 8px 10px;
    border-color: #d7e7ea;
    border-radius: 10px;
    background: #fbfdfd;
}
.rh-portal-home .rh-pause-card strong,
.rh-portal-home .rh-pause-card label { display: inline-flex; align-items: center; gap: 6px; color: #294456; font-size: .8rem; }
.rh-portal-home .rh-pause-icon { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 6px; color: #087f91; background: #e6f6f8; font-size: .68rem; font-weight: 900; }
.rh-portal-home .rh-pause-card .rh-button,
.rh-portal-home .rh-pause-card.is-active .rh-button { min-height: 32px; padding: 6px 10px; color: #fff; background: #087f91; box-shadow: none; }
.rh-portal-home .rh-pause-card small { margin-top: -2px; }
@media (prefers-reduced-motion: reduce) {
    .rh-portal-home .rh-punch-button,
    .rh-portal-disclosure-trigger b { transition: none; }
}
@media (max-width: 700px) {
    .rh-context-bar-portal-home { padding: 6px 7px 20px; border-radius: 12px 12px 0 0; }
    .rh-context-bar-portal-home .rh-context-link { padding: 5px 7px; }
    .rh-portal-identity { margin: -13px 7px 0; padding: 11px 12px; }
    .rh-portal-home .rh-check-card { padding: 10px 12px 12px; }
    .rh-portal-home .rh-punch-button { width: min(192px, 58vw); min-height: 192px; }
    .rh-portal-home .rh-pause-card { align-items: center; }
    .rh-portal-home .rh-pause-card .rh-button { margin-left: auto; }
}

/* UI 04.8.3 / 04.8.5 — El siguiente marcaje usa una única huella circular,
   incluida la confirmación y sus estados transitorios. Sólo cambia
   presentación, no su operación. */
.rh-portal-home .rh-punch-button,
.rh-portal-home .rh-punch-button.is-schedule-confirmation {
    display: flex;
    width: min(178px, 58vw);
    min-height: 178px;
    aspect-ratio: 1;
    padding: 14px;
    border-radius: 50%;
}
.rh-portal-home .rh-punch-button.is-schedule-confirmation {
    gap: 3px;
    background: linear-gradient(145deg, #159c74, #16805b);
    box-shadow: 0 0 0 3px rgba(18, 32, 51, .07), 0 12px 22px rgba(14, 31, 45, .16);
    font-size: .72rem;
    line-height: 1.2;
}
.rh-portal-home .rh-punch-button.is-schedule-confirmation .rh-punch-icon { font-size: 1.7rem; }
.rh-portal-home .rh-punch-button.is-schedule-confirmation strong { max-width: 132px; font-size: .57rem; letter-spacing: .08em; line-height: 1.25; }
.rh-portal-home .rh-punch-button:disabled {
    opacity: 1;
    color: #f8fbfc;
    background: linear-gradient(145deg, #758692, #5b6a75);
    border-color: #d5dee5;
    box-shadow: 0 0 0 3px rgba(18, 32, 51, .05), 0 8px 18px rgba(14, 31, 45, .1);
    cursor: not-allowed;
}
@media (max-width: 700px) {
    .rh-portal-home .rh-punch-button,
    .rh-portal-home .rh-punch-button.is-schedule-confirmation {
        width: min(164px, 55vw);
        min-height: 164px;
    }
}

/* UI 04.8.6 / 04.9 — Ajustes puntuales del aviso GPS y ficha propia.
   Reutilizan la cabecera del Portal; no participan en reglas de asistencia. */
.rh-portal-home #rhResult:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px 10px;
    width: min(100%, 520px);
    padding: 8px 10px;
    font-size: .875rem;
    line-height: 1.35;
}
.rh-portal-home #rhResult .rh-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: .78rem;
    white-space: nowrap;
}
body.rh-portal-profile-page .rh-shell { width: min(860px, 100%); padding-top: 12px; }
body.rh-portal-profile-page .rh-employee-profile.rh-portal-profile { display: grid; gap: 10px; }
body.rh-portal-profile-page .rh-portal-profile .rh-employee-profile-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity {
    grid-template-columns: auto minmax(0, 1fr);
    position: relative;
    z-index: 2;
    margin: -16px 12px 0;
    padding: 13px 15px;
    border-top: 1px solid #cce9ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fcfd 0%, #fff 72%);
    box-shadow: 0 7px 18px rgba(14, 31, 45, .08);
}
body.rh-portal-profile-page .rh-portal-profile .rh-portal-avatar { width: clamp(62px, 9vw, 76px); height: clamp(62px, 9vw, 76px); font-size: 1.2rem; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity-copy { gap: 2px; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity-copy p { font-size: .65rem; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity-copy h2 { font-size: clamp(1rem, 2.4vw, 1.26rem); }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity-copy span,
body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity-copy small { color: #526a7d; font-size: .76rem; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-location-summary { color: #294456; font-weight: 700; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-weight: 750; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a99a8; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-status.is-complete { color: #1b6f4b; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-status.is-complete i { background: #16805b; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section > summary {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 9px 12px;
    color: #122033;
    font-size: .84rem;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section > summary::-webkit-details-marker { display: none; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section > summary::after { content: '⌄'; margin-left: auto; color: #5f7083; font-size: 1rem; transition: transform .16s ease; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section[open] > summary { color: #087f91; background: #f8fdfe; box-shadow: inset 3px 0 0 #1e8fa1; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section[open] > summary::after { transform: rotate(180deg); }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section-content { padding: 0 12px 12px; border-top: 1px solid #e2e8f0; }
body.rh-portal-profile-page .rh-portal-profile .rh-employee-profile-list { gap: 9px 14px; padding-top: 10px; }
body.rh-portal-profile-page .rh-portal-profile .rh-employee-profile-list dt { font-size: .72rem; }
body.rh-portal-profile-page .rh-portal-profile .rh-employee-profile-list dd { font-size: .86rem; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section-note { margin: 10px 0 0; color: #5f7083; font-size: .76rem; }
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section-content > p:last-child { margin-bottom: 0; }
/* Mi ficha conserva sólo el expediente personal esencial. Las consultas de
   actividad y solicitudes se concentran al final en Web; la APK ya las ofrece
   desde su navegación nativa. */
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section--portal,
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section--attendance,
body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section--incidents { display: none; }
body.rh-portal-profile-page .rh-portal-profile-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.rh-portal-profile-page .rh-portal-profile-quick-actions .rh-button { flex: 1 1 150px; min-height: 38px; padding: 8px 10px; color: #087f91; background: #e6f6f8; border: 1px solid #cce9ee; font-size: .79rem; text-align: center; text-decoration: none; }
.rh-runtime-apk body.rh-portal-profile-page .rh-portal-profile-quick-actions { display: none; }
.rh-context-bar-portal-home .rh-device-reference-detail { display: block; margin-top: 4px; color: inherit; font-size: .72rem; }

@media (max-width: 700px) {
    body.rh-portal-profile-page .rh-shell { padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px)); }
    body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity { margin: -13px 7px 0; padding: 11px 12px; }
    body.rh-portal-profile-page .rh-portal-profile .rh-portal-avatar { width: 58px; height: 58px; font-size: 1.05rem; }
    body.rh-portal-profile-page .rh-portal-profile .rh-employee-profile-list { grid-template-columns: 1fr; gap: 7px; }
    body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section-content { padding: 0 11px 10px; }
    body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section--suite-user .rh-employee-profile-list > div:nth-child(n+3) { display: none; }
    .rh-portal-home #rhResult:not([hidden]) { align-items: stretch; flex-direction: column; }
    .rh-portal-home #rhResult .rh-button { width: 100%; }
}

@media (min-width: 360px) and (max-width: 700px) {
    body.rh-portal-profile-page .rh-portal-profile .rh-portal-profile-section--labor .rh-employee-profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* UI 04.10 — Solicitudes conserva el flujo existente y lo presenta como
   historial consultable; no reemplaza autorizaciones ni validaciones. */
body.rh-portal-requests-page .rh-shell { width: min(860px, 100%); padding-top: 12px; }
.rh-portal-requests { display: grid; gap: 10px; }
.rh-portal-requests > .rh-alert { margin: 0; }
.rh-portal-request-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rh-portal-request-heading h1 { margin: 0; color: #122033; font-size: clamp(1.15rem, 3vw, 1.4rem); }
.rh-portal-request-heading p { margin: 3px 0 0; color: #5f7083; font-size: .82rem; }
.rh-portal-request-heading .rh-button { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; background: #087f91; text-decoration: none; }
.rh-portal-request-heading .rh-button.is-secondary { color: #087f91; background: #e6f6f8; border: 1px solid #cce9ee; }
.rh-portal-eyebrow { color: #087f91 !important; font-size: .66rem !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.rh-portal-request-form-card,
.rh-portal-requests-history,
.rh-portal-request-secondary { margin: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgba(14, 31, 45, .045); }
.rh-portal-request-flow { margin: 12px 0; padding: 9px 11px; border: 1px solid #d7e7ea; border-radius: 10px; background: #f8fdfe; }
.rh-portal-request-flow summary { color: #087f91; font-size: .8rem; font-weight: 800; cursor: pointer; }
.rh-portal-request-flow p { margin: 7px 0 0; color: #526a7d; font-size: .78rem; line-height: 1.42; }
.rh-portal-request-form { gap: 10px 12px; }
.rh-portal-request-form input,
.rh-portal-request-form select { min-width: 0; }
.rh-portal-request-form .rh-button { min-height: 42px; padding: 9px 13px; background: #087f91; }
.rh-portal-request-empty { display: grid; justify-items: start; gap: 10px; padding: 20px 0 4px; color: #526a7d; }
.rh-portal-request-empty .rh-button { min-height: 38px; padding: 8px 12px; background: #087f91; text-decoration: none; }
.rh-portal-request-list { display: grid; gap: 8px; margin-top: 12px; }
.rh-portal-request { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.rh-portal-request.is-new { border-color: #8bcbd5; box-shadow: 0 0 0 3px rgba(30, 143, 161, .12); }
.rh-portal-request > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 55px; padding: 9px 11px; color: #122033; cursor: pointer; list-style: none; }
.rh-portal-request > summary::-webkit-details-marker { display: none; }
.rh-portal-request > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.rh-portal-request > summary strong { font-size: .87rem; }
.rh-portal-request > summary small { color: #5f7083; font-size: .74rem; line-height: 1.3; overflow-wrap: anywhere; }
.rh-portal-request > summary > b { color: #5f7083; transition: transform .16s ease; }
.rh-portal-request[open] > summary { background: #f8fdfe; box-shadow: inset 3px 0 0 #1e8fa1; }
.rh-portal-request[open] > summary > b { transform: rotate(180deg); }
.rh-portal-request-status { white-space: nowrap; font-size: .72rem; font-weight: 800; }
.rh-portal-request-status.is-complete { color: #0c6546; }
.rh-portal-request-status.is-open { color: #946b17; }
.rh-portal-request-status.is-rejected { color: #a42e3c; }
.rh-portal-request-status.is-cancelled { color: #667482; }
.rh-portal-request-status.is-review { color: #216b9a; }
.rh-portal-request-detail { display: grid; gap: 10px; padding: 11px; border-top: 1px solid #e2e8f0; }
.rh-portal-request-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.rh-portal-request-data > div { display: grid; gap: 2px; min-width: 0; }
.rh-portal-request-data dt { color: #5f7083; font-size: .7rem; }
.rh-portal-request-data dd { margin: 0; color: #122033; font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.rh-portal-request-resolution,
.rh-portal-request-notes,
.rh-portal-request-files { display: grid; gap: 5px; margin: 0; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fbfdff; color: #334155; font-size: .78rem; line-height: 1.4; }
.rh-portal-request-resolution strong,
.rh-portal-request-notes > strong,
.rh-portal-request-files > strong { color: #122033; font-size: .75rem; }
.rh-portal-request-notes p { display: grid; gap: 2px; margin: 0; }
.rh-portal-request-notes span { color: #526a7d; }
.rh-portal-request-files a,
.rh-portal-request-secondary a { color: #087f91; font-weight: 750; overflow-wrap: anywhere; }
.rh-portal-request-secondary { display: grid; gap: 7px; }
.rh-portal-request-secondary h2 { margin: 0; color: #122033; font-size: .9rem; }
.rh-portal-request-secondary p { margin: 0; color: #5f7083; font-size: .76rem; line-height: 1.4; }

@media (max-width: 700px) {
    body.rh-portal-requests-page .rh-shell { padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .rh-portal-request-heading { align-items: stretch; flex-direction: column; }
    .rh-portal-request-heading .rh-button { align-self: flex-start; }
    .rh-portal-request-form { grid-template-columns: 1fr; }
    .rh-portal-request-form .rh-form-span { grid-column: auto; }
    .rh-portal-request > summary { grid-template-columns: minmax(0, 1fr) auto; }
    .rh-portal-request > summary > b { grid-column: 2; grid-row: 1; }
    .rh-portal-request-status { grid-column: 1; grid-row: 2; }
    .rh-portal-request-data { grid-template-columns: 1fr; }
}

/* UI 04.10.1 — Solicitudes comparte la ficha de identidad del Portal. El
   formulario conserva sus mismos controles nativos y sólo ajusta su rejilla. */
body.rh-portal-requests-page .rh-portal-requests { position: relative; z-index: 2; }
body.rh-portal-requests-page .rh-portal-identity {
    grid-template-columns: auto minmax(0, 1fr);
    position: relative;
    z-index: 2;
    margin: -16px 12px 0;
    padding: 13px 15px;
    border-top: 1px solid #cce9ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fcfd 0%, #fff 72%);
    box-shadow: 0 7px 18px rgba(14, 31, 45, .08);
}
body.rh-portal-requests-page .rh-portal-identity .rh-portal-avatar { width: clamp(62px, 9vw, 76px); height: clamp(62px, 9vw, 76px); font-size: 1.2rem; }
body.rh-portal-requests-page .rh-portal-identity-copy { gap: 2px; }
body.rh-portal-requests-page .rh-portal-identity-copy p { font-size: .65rem; }
body.rh-portal-requests-page .rh-portal-identity-copy h2 { font-size: clamp(1rem, 2.4vw, 1.26rem); }
body.rh-portal-requests-page .rh-portal-identity-copy span,
body.rh-portal-requests-page .rh-portal-identity-copy small { color: #526a7d; font-size: .76rem; }
body.rh-portal-requests-page .rh-portal-identity-copy small { display: block; line-height: 1.35; }
body.rh-portal-requests-page .rh-portal-profile-location-summary { color: #294456; font-weight: 700; }
body.rh-portal-requests-page .rh-portal-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-weight: 750; }
body.rh-portal-requests-page .rh-portal-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a99a8; }
body.rh-portal-requests-page .rh-portal-status.is-complete { color: #1b6f4b; }
body.rh-portal-requests-page .rh-portal-status.is-complete i { background: #16805b; }
body.rh-portal-requests-page .rh-portal-request-form-card { padding: 12px 14px 14px; }
body.rh-portal-requests-page .rh-portal-request-form-card .rh-portal-request-heading { align-items: center; }
body.rh-portal-requests-page .rh-portal-request-form-card .rh-portal-request-heading p { margin-top: 2px; }
body.rh-portal-requests-page .rh-portal-request-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
body.rh-portal-requests-page .rh-portal-request-form .rh-form-span { grid-column: 1 / -1; }
body.rh-portal-requests-page .rh-portal-request-form .rh-button.rh-form-span { width: 100%; }

@media (min-width: 360px) and (max-width: 700px) {
    body.rh-portal-requests-page .rh-portal-identity { margin: -13px 7px 0; padding: 11px 12px; }
    body.rh-portal-requests-page .rh-portal-identity .rh-portal-avatar { width: 58px; height: 58px; font-size: 1.05rem; }
    body.rh-portal-requests-page .rh-portal-request-form-card .rh-portal-request-heading { flex-direction: row; align-items: center; }
    body.rh-portal-requests-page .rh-portal-request-form-card .rh-portal-request-heading .rh-button { align-self: auto; min-height: 34px; padding: 7px 10px; }
    body.rh-portal-requests-page .rh-portal-request-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.rh-portal-requests-page .rh-portal-request-form .rh-form-span { grid-column: 1 / -1; }
}

@media (max-width: 359px) {
    body.rh-portal-requests-page .rh-portal-request-form { grid-template-columns: 1fr; }
    body.rh-portal-requests-page .rh-portal-request-form .rh-form-span { grid-column: auto; }
}

/* UI 04.8 — Fotografía de perfil y vistas complementarias del Portal. */
.rh-portal-avatar { position: relative; overflow: visible; }
.rh-portal-avatar-image { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.rh-portal-avatar-edit {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #087f91;
    box-shadow: 0 3px 8px rgba(14, 31, 45, .2);
    cursor: pointer;
}
.rh-portal-avatar-edit svg { width: 15px; height: 15px; fill: currentColor; }
.rh-portal-avatar-edit:focus-visible { outline: 3px solid rgba(8, 127, 145, .3); outline-offset: 2px; }
.rh-portal-photo-modal {
    width: min(440px, calc(100vw - 24px));
    max-height: min(680px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    border: 1px solid #cce9ee;
    border-radius: 16px;
    color: #122033;
    background: #fff;
    box-shadow: 0 20px 48px rgba(14, 31, 45, .25);
}
.rh-portal-photo-modal::backdrop { background: rgba(14, 31, 45, .45); }
.rh-portal-photo-form { display: grid; gap: 14px; padding: 18px; }
.rh-portal-photo-modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.rh-portal-photo-modal-heading h2 { margin: 0; color: #122033; font-size: 1.05rem; line-height: 1.25; }
.rh-portal-photo-modal-close {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #526a7d;
    background: #fff;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}
.rh-portal-photo-modal-close:hover,
.rh-portal-photo-modal-close:focus-visible { color: #087f91; border-color: #9edce5; background: #e6f6f8; outline: none; }
.rh-portal-photo-notice { margin: 0; color: #526a7d; font-size: .83rem; line-height: 1.48; }
.rh-portal-photo-choices,
.rh-portal-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-portal-photo-choices .rh-button,
.rh-portal-photo-actions .rh-button { min-height: 38px; padding: 8px 12px; background: #087f91; font-size: .82rem; }
.rh-portal-photo-choices .rh-button.is-secondary,
.rh-portal-photo-actions .rh-button.is-secondary { color: #087f91; border: 1px solid #cce9ee; background: #e6f6f8; }
.rh-portal-photo-selection { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.rh-portal-photo-selection img { width: 84px; height: 84px; border: 2px solid #e2e8f0; border-radius: 50%; object-fit: cover; }
.rh-portal-photo-feedback { margin: 0; }
.rh-employee-record-photo { float: left; width: 54px; height: 54px; margin: 0 11px 4px 0; border: 2px solid #e2e8f0; border-radius: 50%; object-fit: cover; }
.rh-employee-record-photo-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-top: 12px; }
.rh-employee-record-photo-form label { display: grid; min-width: min(100%, 260px); gap: 4px; color: #526a7d; font-size: .78rem; }
.rh-employee-record-photo-form input[type="file"] { max-width: 100%; font-size: .78rem; }

body.rh-portal-adjustments-page .rh-shell,
body.rh-portal-activity-page .rh-shell { width: min(860px, 100%); padding-top: 12px; }
.rh-portal-adjustments,
.rh-portal-activity { display: grid; gap: 10px; position: relative; z-index: 2; }
body.rh-portal-adjustments-page .rh-portal-identity,
body.rh-portal-activity-page .rh-portal-identity {
    grid-template-columns: auto minmax(0, 1fr);
    position: relative;
    z-index: 2;
    margin: -16px 12px 0;
    padding: 13px 15px;
    border-top: 1px solid #cce9ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fcfd 0%, #fff 72%);
    box-shadow: 0 7px 18px rgba(14, 31, 45, .08);
}
body.rh-portal-adjustments-page .rh-portal-identity.has-help { grid-template-columns: auto minmax(0, 1fr) auto; }
.rh-portal-identity-help {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: #087f91;
    border: 1px solid #b9e1e7;
    border-radius: 50%;
    background: #e6f6f8;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    cursor: pointer;
}
.rh-portal-identity-help:hover,
.rh-portal-identity-help:focus-visible { color: #fff; border-color: #087f91; background: #087f91; outline: none; }
.rh-portal-identity-help:focus-visible { outline: 3px solid rgba(8, 127, 145, .3); outline-offset: 2px; }
body.rh-portal-adjustments-page .rh-portal-identity .rh-portal-avatar,
body.rh-portal-activity-page .rh-portal-identity .rh-portal-avatar { width: clamp(62px, 9vw, 76px); height: clamp(62px, 9vw, 76px); font-size: 1.2rem; }
body.rh-portal-adjustments-page .rh-portal-identity-copy,
body.rh-portal-activity-page .rh-portal-identity-copy { gap: 2px; }
body.rh-portal-adjustments-page .rh-portal-identity-copy p,
body.rh-portal-activity-page .rh-portal-identity-copy p { font-size: .65rem; }
body.rh-portal-adjustments-page .rh-portal-identity-copy h2,
body.rh-portal-activity-page .rh-portal-identity-copy h2 { font-size: clamp(1rem, 2.4vw, 1.26rem); }
body.rh-portal-adjustments-page .rh-portal-identity-copy span,
body.rh-portal-adjustments-page .rh-portal-identity-copy small,
body.rh-portal-activity-page .rh-portal-identity-copy span,
body.rh-portal-activity-page .rh-portal-identity-copy small { color: #526a7d; font-size: .76rem; }
body.rh-portal-adjustments-page .rh-portal-identity-copy small,
body.rh-portal-activity-page .rh-portal-identity-copy small { display: block; line-height: 1.35; }
body.rh-portal-adjustments-page .rh-portal-profile-location-summary,
body.rh-portal-activity-page .rh-portal-profile-location-summary { color: #294456; font-weight: 700; }
body.rh-portal-adjustments-page .rh-portal-status,
body.rh-portal-activity-page .rh-portal-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-weight: 750; }
body.rh-portal-adjustments-page .rh-portal-status i,
body.rh-portal-activity-page .rh-portal-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a99a8; }
body.rh-portal-adjustments-page .rh-portal-status.is-complete,
body.rh-portal-activity-page .rh-portal-status.is-complete { color: #1b6f4b; }
body.rh-portal-adjustments-page .rh-portal-status.is-complete i,
body.rh-portal-activity-page .rh-portal-status.is-complete i { background: #16805b; }
.rh-portal-adjustments > .rh-content-card { margin: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgba(14, 31, 45, .045); }
.rh-portal-adjustments .rh-card-heading { gap: 10px; }
.rh-portal-adjustments .rh-card-heading h2 { color: #122033; font-size: 1rem; }
.rh-portal-adjustments .rh-card-heading p,
.rh-portal-adjustments .rh-help { color: #526a7d; font-size: .8rem; line-height: 1.42; }
.rh-portal-adjustments .rh-card-heading .rh-button,
.rh-portal-adjustments .rh-table-actions .rh-button { min-height: 36px; padding: 7px 10px; color: #087f91; border: 1px solid #cce9ee; background: #e6f6f8; }
.rh-portal-adjustments .rh-resolution-history { display: grid; gap: 8px; margin: 10px 0 0; padding: 11px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fbfdff; }
.rh-portal-adjustments .rh-resolution-history h3 { margin: 0; color: #122033; font-size: .88rem; }
.rh-portal-adjustments .rh-resolution-history p { margin: 0 0 6px; color: #334155; font-size: .8rem; line-height: 1.42; }
.rh-portal-adjustments .rh-schedule-editor { margin-top: 8px; border: 1px solid #d7e7ea; border-radius: 10px; background: #f8fdfe; }
.rh-portal-adjustments .rh-schedule-editor-toggle { padding: 9px 10px; color: #087f91; font-size: .8rem; font-weight: 800; cursor: pointer; }
.rh-portal-adjustments .rh-schedule-editor .rh-form { padding: 0 10px 10px; }
.rh-portal-help-modal {
    width: min(420px, calc(100vw - 24px));
    max-height: min(620px, calc(100dvh - 24px));
    margin: auto;
    padding: 0;
    overflow: auto;
    color: #122033;
    border: 1px solid #cce9ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(14, 31, 45, .25);
}
.rh-portal-help-modal::backdrop { background: rgba(14, 31, 45, .45); }
.rh-portal-help-content { display: grid; gap: 14px; padding: 18px; }
.rh-portal-help-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.rh-portal-help-heading h2 { margin: 0; color: #122033; font-size: 1.05rem; line-height: 1.25; }
.rh-portal-help-heading p { margin: 4px 0 0; color: #526a7d; font-size: .82rem; line-height: 1.4; }
.rh-portal-help-close {
    display: grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    color: #526a7d;
    border: 1px solid #d7e7ea;
    border-radius: 50%;
    background: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.rh-portal-help-close:hover,
.rh-portal-help-close:focus-visible { color: #087f91; border-color: #9edce5; background: #e6f6f8; outline: none; }
.rh-portal-help-section { display: grid; gap: 7px; padding: 12px; border: 1px solid #d7e7ea; border-radius: 11px; background: #f8fdfe; }
.rh-portal-help-section h3 { margin: 0; color: #122033; font-size: .87rem; }
.rh-portal-help-section p { margin: 0; color: #526a7d; font-size: .81rem; line-height: 1.45; }
.rh-portal-help-section code { display: block; padding: 8px; overflow-wrap: anywhere; color: #122033; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: .77rem; }
.rh-portal-help-section .rh-button { justify-self: start; min-height: 36px; padding: 7px 10px; }
.rh-portal-help-feedback { min-height: 1.2em; color: #087f91 !important; font-weight: 700; }
.rh-portal-help-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; color: #087f91; border: 1px solid #cce9ee; border-radius: 10px; background: #e6f6f8; font-size: .85rem; font-weight: 800; text-decoration: none; }
.rh-portal-help-link:hover,
.rh-portal-help-link:focus-visible { color: #066775; border-color: #9edce5; background: #d9f1f4; outline: none; }
.rh-portal-help-actions { display: flex; justify-content: end; }
@media (max-width: 700px) {
    body.rh-portal-adjustments-page .rh-shell,
    body.rh-portal-activity-page .rh-shell { padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px)); }
    body.rh-portal-adjustments-page .rh-portal-identity,
    body.rh-portal-activity-page .rh-portal-identity { margin: -13px 7px 0; padding: 11px 12px; }
    body.rh-portal-adjustments-page .rh-portal-identity .rh-portal-avatar,
    body.rh-portal-activity-page .rh-portal-identity .rh-portal-avatar { width: 58px; height: 58px; font-size: 1.05rem; }
    .rh-portal-identity-help { width: 44px; min-width: 44px; height: 44px; }
    .rh-portal-help-modal { width: min(420px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); }
    .rh-portal-help-content { gap: 12px; padding: 16px; }
    .rh-portal-photo-modal { width: min(440px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); }
    .rh-portal-photo-form { padding: 16px; }
    .rh-portal-photo-choices .rh-button,
    .rh-portal-photo-actions .rh-button { flex: 1 1 140px; }
    .rh-employee-record-photo-form { align-items: stretch; }
    .rh-employee-record-photo-form label,
    .rh-employee-record-photo-form .rh-button { width: 100%; }
    .rh-portal-adjustments .rh-card-heading { align-items: flex-start; flex-direction: column; }
}

/* Compatibilidad APK Android: el bridge preserva el fondo institucional y
   oculta únicamente controles HTML. La ficha recupera la superposición Web
   sobre una franja visible, sin depender de márgenes de la barra del sistema. */
.rh-runtime-apk .rh-portal-identity { margin-top: -16px; }
.rh-runtime-apk body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity,
.rh-runtime-apk body.rh-portal-requests-page .rh-portal-identity,
.rh-runtime-apk body.rh-portal-activity-page .rh-portal-identity { margin-top: -16px; }
@media (max-width: 700px) {
    .rh-runtime-apk .rh-context-bar-portal-home { min-height: 88px; }
    .rh-runtime-apk .rh-portal-identity,
    .rh-runtime-apk body.rh-portal-profile-page .rh-portal-profile .rh-portal-identity,
    .rh-runtime-apk body.rh-portal-requests-page .rh-portal-identity,
    .rh-runtime-apk body.rh-portal-activity-page .rh-portal-identity { margin-top: -13px; }
}

/* Accesibilidad APK: sólo el bridge nativo recibe esta escala adicional. */
.rh-runtime-apk .rh-portal-identity-copy span,
.rh-runtime-apk .rh-portal-identity-copy small,
.rh-runtime-apk .rh-portal-identity time {
    font-size: .88rem;
    line-height: 1.38;
}
.rh-runtime-apk .rh-portal-status { font-size: .86rem; }
.rh-runtime-apk body.rh-portal-home-page .rh-date { font-size: .9rem; line-height: 1.35; }
.rh-runtime-apk body.rh-portal-home-page .rh-journey-summary small { font-size: .84rem; }
.rh-runtime-apk body.rh-portal-home-page .rh-portal-disclosure-trigger { font-size: .92rem; }
.rh-runtime-apk body.rh-portal-home-page .rh-portal-disclosure-trigger > span:last-child { font-size: .84rem; }
@media (max-width: 360px) {
    .rh-runtime-apk .rh-portal-identity-copy span,
    .rh-runtime-apk .rh-portal-identity-copy small,
    .rh-runtime-apk .rh-portal-identity time { font-size: .84rem; }
}

/* Portal dentro de APK: cada destino conserva la misma franja institucional.
   Está limitado al bridge Android; la navegación Web no cambia. */
.rh-runtime-apk body.rh-portal-profile-page .rh-shell,
.rh-runtime-apk body.rh-portal-requests-page .rh-shell,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-shell,
.rh-runtime-apk body.rh-portal-activity-page .rh-shell {
    width: 100%;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.rh-runtime-apk body.rh-portal-profile-page .rh-context-bar,
.rh-runtime-apk body.rh-portal-requests-page .rh-context-bar,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-context-bar,
.rh-runtime-apk body.rh-portal-activity-page .rh-context-bar {
    position: relative;
    z-index: 1;
    min-height: 88px;
    margin: 0;
    padding: 15px 16px 34px;
    border: 0;
    border-radius: 0;
    background: #1e8fa1;
}
.rh-runtime-apk body.rh-portal-profile-page .rh-context-bar .rh-context-nav,
.rh-runtime-apk body.rh-portal-requests-page .rh-context-bar .rh-context-nav,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-context-bar .rh-context-nav,
.rh-runtime-apk body.rh-portal-activity-page .rh-context-bar .rh-context-nav,
.rh-runtime-apk body.rh-portal-profile-page .rh-context-bar .rh-context-meta,
.rh-runtime-apk body.rh-portal-requests-page .rh-context-bar .rh-context-meta,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-context-bar .rh-context-meta,
.rh-runtime-apk body.rh-portal-activity-page .rh-context-bar .rh-context-meta { display: none; }
.rh-runtime-apk body.rh-portal-profile-page .rh-context-bar .rh-context-heading,
.rh-runtime-apk body.rh-portal-requests-page .rh-context-bar .rh-context-heading,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-context-bar .rh-context-heading,
.rh-runtime-apk body.rh-portal-activity-page .rh-context-bar .rh-context-heading {
    display: block;
    text-align: center;
}
.rh-runtime-apk body.rh-portal-profile-page .rh-context-bar .rh-context-heading h1,
.rh-runtime-apk body.rh-portal-requests-page .rh-context-bar .rh-context-heading h1,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-context-bar .rh-context-heading h1,
.rh-runtime-apk body.rh-portal-activity-page .rh-context-bar .rh-context-heading h1 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.rh-runtime-apk body.rh-portal-profile-page .rh-portal-identity,
.rh-runtime-apk body.rh-portal-requests-page .rh-portal-identity,
.rh-runtime-apk body.rh-portal-adjustments-page .rh-portal-identity,
.rh-runtime-apk body.rh-portal-activity-page .rh-portal-identity { margin-top: -16px; }
@media (max-width: 700px) {
    .rh-runtime-apk body.rh-portal-profile-page .rh-portal-identity,
    .rh-runtime-apk body.rh-portal-requests-page .rh-portal-identity,
    .rh-runtime-apk body.rh-portal-adjustments-page .rh-portal-identity,
    .rh-runtime-apk body.rh-portal-activity-page .rh-portal-identity { margin-top: -13px; }
}
