@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap");

:root {
    --font-base: Arial, Helvetica, sans-serif;
    --font-login-base: "Instrument Sans", Arial, Helvetica, sans-serif;
    --font-login-display: "Space Grotesk", "Instrument Sans", Arial, Helvetica, sans-serif;

    --brand-primary: #0052A5;
    --brand-secondary: #030B8E;
    --brand-accent: #04B1E9;
    --brand-accent-soft: #5ACEEF;
    --brand-white: #FFFFFF;
    --brand-neutral: #DADADA;

    --brand-primary-rgb: 0, 82, 165;
    --brand-secondary-rgb: 3, 11, 142;
    --brand-accent-rgb: 4, 177, 233;
    --brand-accent-soft-rgb: 90, 206, 239;
    --brand-white-rgb: 255, 255, 255;
    --brand-neutral-rgb: 218, 218, 218;

    --bg: #f5f8fc;
    --surface: rgba(255, 255, 255, .96);
    --surface-2: rgba(90, 206, 239, .09);
    --surface-3: rgba(0, 82, 165, .06);
    --line: rgba(0, 82, 165, .15);
    --line-strong: rgba(0, 82, 165, .26);
    --text: #030B8E;
    --text-soft: rgba(3, 11, 142, .72);
    --muted: rgba(3, 11, 142, .58);
    --green: #12805c;
    --green-soft: #e5f6ef;
    --blue: var(--brand-primary);
    --blue-soft: rgba(90, 206, 239, .2);
    --amber: #a86504;
    --amber-soft: #fff2d8;
    --red: #b42318;
    --red-soft: #fde7e5;
    --shadow: 0 18px 46px rgba(3, 11, 142, .10);
    --shadow-strong: 0 26px 68px rgba(3, 11, 142, .18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255,255,255,.74), rgba(245,248,252,.9)),
        url("../img/FONDO%20AZUL.jpg") center center / cover fixed no-repeat;
    color: var(--text);
    font-family: var(--font-base);
    font-size: 14px;
    line-height: 1.45;
}

body.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(13, 46, 110, .98), rgba(3, 11, 142, .92)),
        url("../img/FONDO%20AZUL.jpg") center center / cover fixed no-repeat;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

@keyframes lite-sidebar-drift {
    0% { background-position: 0 0; }
    50% { background-position: 0 100%; }
    100% { background-position: 0 0; }
}

@keyframes lite-active-pulse {
    0%, 100% {
        box-shadow: inset 4px 0 0 var(--brand-accent), 0 0 12px rgba(var(--brand-accent-rgb), .14);
    }
    50% {
        box-shadow: inset 4px 0 0 var(--brand-accent-soft), 0 0 24px rgba(var(--brand-accent-rgb), .30);
    }
}

@keyframes lite-strip {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes lite-view-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lite-card-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lite-shimmer-sweep {
    0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
    18%, 82% { opacity: 1; }
    100% { transform: translateX(430%) skewX(-18deg); opacity: 0; }
}

@keyframes lite-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lite-fichador-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: .48;
    }
    50% {
        transform: scale(1.55);
        opacity: .12;
    }
}

@keyframes lite-fichador-dot {
    0%,
    100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@keyframes lite-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lite-dialog-in {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lite-capture-spin {
    to { transform: rotate(360deg); }
}

@keyframes lite-progress-flow {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

.login-shell {
    width: min(1000px, 100%);
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
    min-height: 430px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(var(--brand-accent-rgb), .28);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
    animation: lite-card-in .42s var(--ease-out) both;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 72px 58px 44px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, rgba(13, 46, 110, .98), rgba(19, 85, 197, .92));
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: lite-shimmer-sweep 8s ease-in-out infinite;
    pointer-events: none;
}

.login-brand-panel img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    padding: 7px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.login-brand-panel strong {
    display: block;
    max-width: 440px;
    background: linear-gradient(130deg, #ffffff 0%, #b9f0ff 30%, #5aceef 72%, #04b1e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #b9f0ff;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-login-display);
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .94;
}

.login-brand-panel span {
    display: block;
    margin-top: 2px;
    background: linear-gradient(130deg, #b9f0ff 0%, #5aceef 48%, #04b1e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--brand-accent-soft);
    -webkit-text-fill-color: transparent;
    font-family: var(--font-login-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .96;
}

.login-brand-panel p {
    max-width: 380px;
    margin-top: 22px;
    color: rgba(90, 206, 239, .68);
    font-family: var(--font-login-base);
    font-size: 14px;
    line-height: 1.6;
}

.login-brand-panel small {
    margin-top: 18px;
    color: rgba(90, 206, 239, .9);
    font-family: var(--font-login-base);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.login-brand-panel b {
    position: absolute;
    right: -8px;
    bottom: -22px;
    color: rgba(4, 177, 233, .10);
    font-family: var(--font-login-display);
    font-size: 126px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 54px;
    background: rgba(255,255,255,.98);
    font-family: var(--font-login-base);
}

.login-kicker {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 13px;
    color: var(--brand-secondary);
    background: rgba(var(--brand-primary-rgb), .07);
    border: 1px solid rgba(var(--brand-primary-rgb), .20);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.login-icon,
.login-input-icon,
.login-submit-icon {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-icon {
    width: 14px;
    height: 14px;
}

.login-form h1 {
    color: var(--text);
    font-family: var(--font-login-display);
    font-size: 30px;
    letter-spacing: 0;
    line-height: 1.08;
}

.login-form p {
    margin-top: -12px;
    color: rgba(3, 11, 142, .58);
}

.login-form label {
    gap: 8px;
    color: #3f4960;
    font-size: 13px;
}

.login-form input {
    min-height: 48px;
    padding: 12px 14px;
    border-color: rgba(3, 11, 142, .12);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .03), 0 8px 18px rgba(3, 11, 142, .05);
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: var(--brand-primary);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.login-body .login-form .login-input-wrap > input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 12px 16px 12px 56px;
    line-height: 1.2;
}

.login-input-wrap:focus-within .login-input-icon {
    color: var(--brand-secondary);
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
}

.login-submit-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.6;
}

.login-recovery {
    align-self: center;
    color: var(--brand-primary);
    font-weight: 800;
    text-decoration: none;
}

.login-recovery:hover {
    text-decoration: underline;
}

.login-error {
    padding: 10px 12px;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid rgba(180, 35, 24, .18);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 266px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 18px;
    color: #fff;
    background: linear-gradient(180deg, #0d2e6e 0%, #1045ad 46%, #1355c5 100%);
    background-size: 100% 200%;
    border-right: 1px solid rgba(var(--brand-accent-rgb), .22);
    box-shadow: 4px 0 34px rgba(0, 0, 0, .24);
    animation: lite-sidebar-drift 18s ease-in-out infinite;
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    padding: 5px 0 19px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.brand::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary), transparent);
    transform-origin: left center;
    animation: lite-strip .65s var(--ease-out) .25s both;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18), 0 0 0 1px rgba(255,255,255,.42);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 16px;
    letter-spacing: .01em;
}

.brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.nav {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.nav-item {
    width: 100%;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 13px;
    text-align: left;
    color: rgba(255, 255, 255, .88);
    background: transparent;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease-out), box-shadow .18s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(var(--brand-accent-rgb), .14);
    border-color: rgba(var(--brand-accent-rgb), .24);
    transform: translateX(3px);
    box-shadow: 0 2px 14px rgba(var(--brand-accent-rgb), .12);
}

.nav-item.is-active {
    color: #fff;
    background: rgba(var(--brand-accent-rgb), .20);
    border-color: rgba(var(--brand-accent-rgb), .32);
    animation: lite-active-pulse 3s ease-in-out infinite;
}

.session-card {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 12px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
}

.session-card span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.session-card strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
}

.session-card a {
    justify-self: start;
    color: var(--brand-accent-soft);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.session-card a:hover {
    color: #fff;
    text-decoration: underline;
}

.app-footer {
    margin-top: auto;
    padding-top: 18px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    line-height: 1.45;
}

.app-footer span,
.app-footer strong {
    display: block;
}

.app-footer strong {
    color: #fff;
    font-weight: 800;
}

.content {
    min-width: 0;
    padding: 24px;
}

.topbar {
    position: relative;
    top: auto;
    z-index: 8;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 15px 18px;
    overflow: hidden;
    color: #fff;
    background: rgba(13, 46, 110, .97);
    border: 1px solid rgba(var(--brand-accent-rgb), .22);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
    backdrop-filter: blur(14px);
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    animation: lite-shimmer-sweep 9s ease-in-out infinite;
    pointer-events: none;
}

h1,
h2 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: 26px;
    color: #fff;
}

h2 {
    font-size: 17px;
    color: var(--text);
}

p {
    margin: 6px 0 0;
    color: var(--muted);
}

.topbar p {
    color: rgba(255,255,255,.62);
}

.print-header {
    display: none;
}

.top-actions,
.form-actions,
.panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-actions[style*="display: block"] {
    display: flex !important;
}

.btn {
    position: relative;
    border: 1px solid transparent;
    border-radius: 10px;
    min-height: 38px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease-out), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: scale(.98);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-primary) 46%, var(--brand-secondary) 100%);
    box-shadow: 0 12px 26px rgba(var(--brand-primary-rgb), .30), 0 2px 8px rgba(var(--brand-accent-rgb), .18);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 18px 38px rgba(var(--brand-primary-rgb), .38), 0 4px 14px rgba(var(--brand-accent-rgb), .26);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255,255,255,.92);
    border-color: rgba(var(--brand-primary-rgb), .16);
    box-shadow: 0 4px 14px rgba(var(--brand-secondary-rgb), .06);
}

.btn-secondary:hover:not(:disabled) {
    color: var(--brand-primary);
    border-color: rgba(var(--brand-accent-rgb), .38);
    background: rgba(var(--brand-accent-soft-rgb), .18);
}

.btn-dark {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    box-shadow: 0 12px 24px rgba(var(--brand-secondary-rgb), .22);
}

.filters,
.panel {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.filters::before,
.panel::before,
.table-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary), transparent);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 15px;
    margin-bottom: 16px;
    animation: lite-card-in .48s var(--ease-out) both;
}

.filters[style*="display: block"] {
    display: grid !important;
}

.filters .btn {
    min-width: 150px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    border: 1px solid rgba(var(--brand-accent-rgb), .28);
    border-radius: 10px;
    padding: 9px 10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,250,255,.94));
    color: var(--text);
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.92),
        0 4px 12px rgba(var(--brand-primary-rgb), .035);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: rgba(var(--brand-accent-rgb), .70);
    background:
        linear-gradient(180deg, #fff, rgba(241,252,255,.98));
    box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), .16), 0 6px 18px rgba(var(--brand-primary-rgb), .08);
}

select,
input[type="date"],
input[type="time"],
input[type="number"] {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,248,255,.96));
}

input:not([type="checkbox"]):not([type="radio"]):disabled,
select:disabled,
textarea:disabled {
    border-color: rgba(var(--brand-primary-rgb), .12);
    background: rgba(var(--brand-neutral-rgb), .25);
    color: var(--text-soft);
    cursor: not-allowed;
}

.field-help-bubble {
    position: fixed;
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px) scale(.98);
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(13, 46, 110, .98), rgba(3, 11, 142, .96));
    border: 1px solid rgba(var(--brand-accent-rgb), .35);
    border-radius: 9px;
    box-shadow: 0 14px 34px rgba(3, 11, 142, .26);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    transition: opacity .14s ease, transform .14s ease;
}

.field-help-bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.field-help-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    background: rgba(3, 11, 142, .96);
    border: 1px solid rgba(var(--brand-accent-rgb), .35);
    transform: translateX(-50%) rotate(45deg);
}

.field-help-bubble[data-placement="top"]::after {
    bottom: -5px;
    border-top: 0;
    border-left: 0;
}

.field-help-bubble[data-placement="bottom"]::after {
    top: -5px;
    border-right: 0;
    border-bottom: 0;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: rgba(180, 35, 24, .75);
    background: rgba(253, 231, 229, .82);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

textarea {
    resize: vertical;
}

.novedad-horario-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(var(--brand-accent-rgb), .42);
    border-left: 4px solid var(--brand-accent);
    border-radius: 10px;
    background: rgba(var(--brand-accent-soft-rgb), .16);
}

.novedad-horario-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.novedad-horario-note {
    display: block;
    margin-top: 3px;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 800;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    min-height: 38px;
    white-space: nowrap;
}

.check input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--brand-primary);
}

.check.is-disabled {
    color: var(--text-soft);
    opacity: .72;
}

.check.is-disabled input {
    cursor: not-allowed;
}

.view {
    display: none;
}

.view.is-active {
    display: block;
    animation: lite-view-in .36s var(--ease-out) both;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

#control-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(var(--brand-secondary-rgb), .06);
}

#control-reporte-hint,
#reporte-empleado-hint {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

[data-selection-status] {
    min-width: 260px;
}

[data-selection-status] span,
[data-selection-status] strong {
    display: block;
}

[data-selection-status] span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

[data-selection-status] strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 15px;
}

[data-selection-actions] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

[data-selection-actions] p {
    min-width: 0;
}

[data-action="control-select-employee"],
[data-action="reporte-select-employee"] {
    color: var(--text);
    cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

[data-action="control-select-employee"]:hover,
[data-action="control-select-employee"]:focus,
[data-action="reporte-select-employee"]:hover,
[data-action="reporte-select-employee"]:focus {
    color: var(--brand-primary);
    background: rgba(var(--brand-accent-soft-rgb), .22);
    box-shadow: inset 4px 0 0 rgba(var(--brand-accent-rgb), .6);
    outline: 0;
}

[data-action="control-select-employee"][data-selected="1"],
[data-action="reporte-select-employee"][data-selected="1"] {
    color: var(--brand-secondary);
    background: rgba(var(--brand-accent-soft-rgb), .28);
    box-shadow: inset 4px 0 0 var(--brand-accent);
}

.metric {
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(var(--brand-accent-soft-rgb), .14));
    border: 1px solid rgba(var(--brand-primary-rgb), .13);
    border-radius: var(--radius-md);
    padding: 14px;
    font: inherit;
    box-shadow: 0 8px 22px rgba(var(--brand-secondary-rgb), .07);
    animation: lite-card-in .46s var(--ease-out) both;
    cursor: pointer;
    transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease;
}

.metric:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--brand-accent-rgb), .36);
    box-shadow: var(--shadow);
}

.metric:focus-visible,
.metric.is-active {
    outline: 0;
    border-color: rgba(var(--brand-accent-rgb), .72);
    box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .18), var(--shadow);
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.metric strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

.table-wrap {
    position: relative;
    max-height: calc(100vh - 270px);
    min-height: 360px;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    scrollbar-color: rgba(var(--brand-primary-rgb), .42) rgba(var(--brand-neutral-rgb), .35);
}

.table-wrap.is-focus-pulse,
.js-novedades-list.is-focus-pulse {
    animation: lite-focus-pulse 1.25s ease-out both;
}

@keyframes lite-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--brand-accent-rgb), .36), var(--shadow);
    }
    100% {
        box-shadow: 0 0 0 14px rgba(var(--brand-accent-rgb), 0), var(--shadow);
    }
}

.table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
    background: rgba(218,218,218,.35);
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-primary-rgb), .42);
    border-radius: 999px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1040px;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .10);
    text-align: left;
    vertical-align: middle;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #fff, rgba(var(--brand-accent-soft-rgb), .18));
    color: var(--text-soft);
    font-size: 12px;
    text-transform: uppercase;
}

.data-table .nowrap {
    white-space: nowrap;
    overflow-wrap: normal;
}

.control-table {
    min-width: 1290px;
    table-layout: fixed;
}

.control-table .control-col-fecha { width: 118px; }
.control-table .control-col-legajo { width: 78px; }
.control-table .control-col-empleado { width: 180px; }
.control-table .control-col-sector { width: 160px; }
.control-table .control-col-hora { width: 68px; }
.control-table .control-col-estado { width: 116px; }
.control-table .control-col-obs { width: 230px; }

.control-sector-cell {
    color: var(--brand-primary);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.control-observacion {
    color: var(--text-soft);
}

#control-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(var(--brand-primary-rgb), .13);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(var(--brand-secondary-rgb), .06);
}

#control-pagination[hidden] {
    display: none;
}

#control-pagination > div:first-child {
    min-width: 230px;
}

#control-page-info,
#control-page-range {
    display: block;
}

#control-page-info {
    color: var(--text);
    font-size: 13px;
}

#control-page-range {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

#control-pagination label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

#control-page-size {
    min-height: 36px;
    min-width: 92px;
}

[data-control-pagination-actions] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.print-control-pages {
    display: none;
}

.data-table tbody tr {
    cursor: pointer;
    transition: background .16s ease, transform .18s var(--ease-out), box-shadow .18s ease;
}

.data-table tbody tr:hover {
    background: rgba(var(--brand-accent-soft-rgb), .14);
    box-shadow: inset 3px 0 0 var(--brand-accent);
}

.data-table tbody tr[data-weekend="1"] td {
    color: #33456f;
    background: rgba(91, 106, 154, .13);
}

.data-table tbody tr[data-weekend="1"] td:first-child {
    font-weight: 700;
    box-shadow: inset 4px 0 0 rgba(var(--brand-secondary-rgb), .45);
}

.data-table tbody tr[data-weekend="1"]:hover td {
    background: rgba(var(--brand-accent-soft-rgb), .27);
}

.data-table tbody tr[data-future="1"] td {
    color: #364fc7;
    background: #eef4ff;
}

.data-table tbody tr[data-future="1"] td:first-child {
    font-weight: 700;
    box-shadow: inset 4px 0 0 #8da2fb;
}

.data-table tbody tr[data-future="1"]:hover td {
    background: #e4edff;
}

.data-table tbody tr[data-selected-row="1"] td {
    background: rgba(var(--brand-accent-soft-rgb), .30);
    box-shadow: inset 0 1px 0 rgba(var(--brand-accent-rgb), .18), inset 0 -1px 0 rgba(var(--brand-accent-rgb), .18);
}

.data-table tbody tr[data-selected-row="1"] td:first-child {
    box-shadow: inset 4px 0 0 var(--brand-accent), inset 0 1px 0 rgba(var(--brand-accent-rgb), .18), inset 0 -1px 0 rgba(var(--brand-accent-rgb), .18);
}

.js-personal-row[data-selected-row="1"] .employee-cell strong {
    color: var(--brand-primary);
}

.data-table td[data-fichada-edge] {
    position: relative;
    font-weight: 800;
}

.data-table td[data-fichada-edge="primera"],
.data-table td[data-fichada-edge="ultima"],
.data-table td[data-fichada-edge="ambas"] {
    color: var(--brand-primary);
    background: linear-gradient(180deg, rgba(var(--brand-accent-soft-rgb), .45), rgba(255, 255, 255, .72));
    box-shadow: inset 0 -2px 0 rgba(var(--brand-accent-rgb), .48);
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.employee-cell strong,
.employee-cell span {
    display: block;
}

.employee-cell span {
    color: var(--muted);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.ok {
    color: var(--green);
    background: var(--green-soft);
}

.badge.info {
    color: var(--blue);
    background: var(--blue-soft);
}

.badge.warn {
    color: var(--amber);
    background: var(--amber-soft);
}

.badge.bad {
    color: var(--red);
    background: var(--red-soft);
}

.badge.muted {
    color: var(--muted);
    background: rgba(var(--brand-primary-rgb), .06);
}

.badge.future {
    color: #364fc7;
    background: #eef4ff;
}

.report-wrap .is-report-alerts .badge.future {
    white-space: normal;
    text-align: center;
}

.origin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.origin-badge--manual {
    color: #875500;
    background: rgba(255, 184, 77, .24);
    border: 1px solid rgba(255, 184, 77, .45);
}

.origin-note {
    vertical-align: middle;
}

.mobile-command-bar,
.mobile-card-list,
.mobile-segment {
    display: none;
}

.split-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 16px;
}

.process-manual-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.rostros-toolbar {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.rostros-toolbar label {
    min-width: 170px;
}

.rostros-toolbar input,
.rostros-toolbar select {
    min-height: 38px;
}

.photo-sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(var(--brand-primary-rgb), .16);
    border-radius: 8px;
    background: rgba(237, 251, 255, .72);
}

.photo-sync-bar strong {
    display: block;
    color: var(--brand-ink);
    font-size: 13px;
}

.photo-sync-bar span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.photo-sync-status {
    margin-top: 3px;
}

.photo-sync-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.photo-sync-list {
    margin-top: 8px;
    overflow-x: auto;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: 8px;
}

.photo-sync-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 12px;
}

.photo-sync-table th,
.photo-sync-table td {
    padding: 7px 9px;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .1);
    text-align: left;
}

.photo-sync-table th {
    color: var(--brand-primary);
    background: rgba(224, 248, 255, .8);
    font-size: 11px;
    text-transform: uppercase;
}

.sync-more {
    margin: 7px 9px 9px;
}

.rostros-summary {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    margin: 10px 0 14px;
}

.rostros-summary .metric {
    padding: 12px;
}

.rostros-summary .metric strong {
    font-size: 20px;
}

.rostros-wrap {
    min-height: 390px;
    max-height: calc(100vh - 405px);
}

.rostros-table {
    min-width: 980px;
}

.panel {
    padding: 17px;
    animation: lite-card-in .42s var(--ease-out) both;
}

.panel.grow {
    min-width: 0;
}

.panel form,
.js-empleado-form,
.js-historico-form,
.js-novedad-form,
.js-personal-form,
.js-feriado-form,
.js-manual-form,
.js-reporte-form {
    display: grid;
    gap: 12px;
}

.personal-photo {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--brand-accent-soft-rgb), .34), rgba(255, 255, 255, .9));
}

.personal-photo-frame {
    position: relative;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(var(--brand-primary-rgb), .18);
    background: var(--brand-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
}

.personal-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.personal-photo-frame img[hidden] {
    display: none !important;
}

.personal-photo-meta {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.personal-photo-name {
    appearance: none;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.18;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.personal-photo-name:disabled {
    cursor: default;
    opacity: 1;
}

.personal-photo-name:not(:disabled):hover,
.personal-photo-name:not(:disabled):focus-visible {
    color: var(--brand-primary);
    text-decoration: underline;
}

.personal-photo-meta span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.personal-photo[data-status="ok"] .personal-photo-frame {
    background: #fff;
}

.personal-photo[data-status="warn"] .personal-photo-frame {
    background: #fff7e5;
    color: #815705;
}

.personal-photo-preview {
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    z-index: 25;
    width: min(220px, calc(100% - 20px));
    padding: 10px;
    border: 1px solid rgba(var(--brand-primary-rgb), .22);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(0, 24, 80, .18);
}

.personal-photo-preview[hidden] {
    display: none !important;
}

.personal-photo-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 7px;
    background: #f5f9fc;
}

.personal-photo-preview span {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.personal-photo-preview-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(var(--brand-primary-rgb), .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 20px;
    cursor: pointer;
}

[data-view-panel="reportes"] .split-layout {
    align-items: start;
}

[data-view-panel="historico"] .split-layout {
    align-items: start;
}

[data-view-panel="reportes"] .js-reporte-form {
    align-self: start;
    align-content: start;
    gap: 10px;
}

[data-view-panel="reportes"] .js-reporte-form label {
    gap: 5px;
}

[data-view-panel="reportes"] .js-reporte-form input,
[data-view-panel="reportes"] .js-reporte-form select {
    height: 38px;
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
}

[data-view-panel="reportes"] .js-reporte-form .form-actions {
    gap: 7px;
}

[data-view-panel="reportes"] .js-reporte-form .btn {
    min-height: 36px;
    padding: 8px 12px;
}

.two-cols,
.compact-grid,
.inline-filters {
    display: grid;
    gap: 10px;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
    grid-template-columns: 1.35fr .8fr .8fr;
}

#sector-selector,
#horario-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

#horario-selector {
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
}

.horario-actions {
    display: grid;
    gap: 8px;
}

.horario-actions .btn {
    justify-content: center;
    white-space: nowrap;
}

#sector-nuevo-panel,
#horario-nuevo-panel {
    display: grid;
    gap: 10px;
    margin-top: -2px;
    padding: 12px;
    border: 1px solid rgba(var(--brand-accent-rgb), .30);
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(var(--brand-accent-soft-rgb), .16));
    box-shadow: inset 4px 0 0 rgba(var(--brand-accent-rgb), .50), 0 10px 22px rgba(var(--brand-secondary-rgb), .07);
    animation: lite-card-in .28s var(--ease-out) both;
}

#sector-nuevo-panel[hidden],
#horario-nuevo-panel[hidden] {
    display: none;
}

#sector-nuevo-panel strong,
#horario-nuevo-panel strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

#sector-nuevo-panel p,
#horario-nuevo-panel p {
    margin: -4px 0 2px;
    font-size: 12px;
}

#sector-nuevo-panel .check,
#horario-nuevo-panel .check {
    min-height: 26px;
}

#per-tarjeta-historial {
    min-height: 34px;
    padding: 9px 11px;
    border: 1px solid rgba(var(--brand-primary-rgb), .13);
    border-radius: var(--radius-sm);
    background: rgba(var(--brand-accent-soft-rgb), .10);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

#per-tarjeta-historial strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 12px;
}

#per-tarjeta-historial ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 15px;
}

.calendar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-box {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(var(--brand-primary-rgb), .14);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(var(--brand-accent-soft-rgb), .11));
}

.calendar-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.calendar-title-row strong {
    color: var(--text);
    font-size: 16px;
}

.calendar-title-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.calendar-weekday {
    padding: 5px 4px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2px;
    position: relative;
    min-height: 56px;
    padding: 6px;
    border: 1px solid rgba(var(--brand-primary-rgb), .13);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.90);
    color: var(--text);
    text-align: left;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s var(--ease-out);
}

.calendar-day::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: transparent;
}

.calendar-day span {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.calendar-day small {
    min-height: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day-count {
    position: absolute;
    right: 6px;
    top: 6px;
    min-width: 18px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(var(--brand-primary-rgb), .12);
    color: var(--brand-secondary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.calendar-day:hover,
.calendar-day:focus {
    border-color: rgba(var(--brand-accent-rgb), .55);
    background: rgba(var(--brand-accent-soft-rgb), .18);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-accent-rgb), .18);
    outline: 0;
    transform: translateY(-1px);
}

.calendar-day.has-event {
    border-color: rgba(var(--brand-primary-rgb), .30);
    background: rgba(var(--brand-accent-soft-rgb), .24);
}

.calendar-day.has-event::before {
    background: var(--brand-accent);
}

.calendar-day.has-event small {
    color: var(--brand-secondary);
}

.calendar-day.is-selected {
    border-color: rgba(var(--brand-accent-rgb), .80);
    background: rgba(var(--brand-accent-soft-rgb), .28);
    box-shadow: inset 0 0 0 2px rgba(var(--brand-accent-rgb), .40), 0 8px 18px rgba(var(--brand-secondary-rgb), .08);
}

.calendar-day.is-linked {
    border-color: rgba(var(--brand-primary-rgb), .56);
    box-shadow: inset 0 0 0 2px rgba(var(--brand-primary-rgb), .22), 0 8px 18px rgba(var(--brand-secondary-rgb), .10);
}

.calendar-day.is-weekend {
    background: rgba(91, 106, 154, .12);
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(var(--brand-accent-rgb), .55);
}

.calendar-day.is-empty {
    min-height: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.calendar-day[data-calendar-scope="feriados"].has-event {
    border-color: rgba(18, 128, 92, .38);
    background: linear-gradient(145deg, rgba(229, 246, 239, .92), rgba(var(--brand-accent-soft-rgb), .20));
}

.calendar-day[data-calendar-scope="feriados"].has-event::before {
    background: var(--green);
}

.calendar-day[data-calendar-scope="feriados"].has-event small {
    color: var(--green);
}

.calendar-day[data-calendar-scope="feriados"].is-selected {
    border-color: rgba(var(--brand-accent-rgb), .90);
    background: linear-gradient(145deg, rgba(var(--brand-accent-soft-rgb), .30), rgba(255,255,255,.95));
}

.calendar-day[data-calendar-scope="feriados"].is-selected::before {
    background: var(--brand-accent);
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-license {
    border-color: rgba(var(--brand-primary-rgb), .32);
    background: linear-gradient(145deg, rgba(var(--brand-accent-soft-rgb), .18), rgba(255,255,255,.96));
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-license::before {
    background: var(--brand-primary);
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-time {
    border-color: rgba(168, 101, 4, .36);
    background: linear-gradient(145deg, rgba(255, 242, 216, .88), rgba(255,255,255,.94));
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-time::before {
    background: var(--amber);
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-schedule {
    border-color: rgba(18, 128, 92, .38);
    background: linear-gradient(145deg, rgba(229, 246, 239, .90), rgba(255,255,255,.94));
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-schedule::before {
    background: var(--green);
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-warning {
    border-color: rgba(180, 35, 24, .42);
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-warning::before {
    background: var(--red);
}

.calendar-day[data-calendar-scope="novedades"].is-novedad-warning small {
    color: var(--red);
}

.calendar-day[data-calendar-scope="novedades"].is-selected::before {
    background: var(--brand-accent);
}

.calendar-selection-note {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid rgba(var(--brand-accent-rgb), .24);
    border-radius: var(--radius-sm);
    background: rgba(var(--brand-accent-soft-rgb), .12);
}

.calendar-selection-note strong {
    color: var(--text);
    font-size: 13px;
}

.calendar-selection-note span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

.holiday-calendar-footer,
.event-calendar-footer {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.calendar-legend,
.holiday-calendar-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-legend span,
.holiday-calendar-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.calendar-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(var(--brand-secondary-rgb), .10);
}

.calendar-legend [data-cal="holiday"] { background: var(--green); }
.calendar-legend [data-cal="weekend"] { background: rgba(91, 106, 154, .30); }
.calendar-legend [data-cal="today"] { background: var(--brand-accent); }
.calendar-legend [data-cal="selected"] { background: var(--brand-secondary); }
.calendar-legend [data-cal="novedad-license"] { background: var(--brand-primary); }
.calendar-legend [data-cal="novedad-time"] { background: var(--amber); }
.calendar-legend [data-cal="novedad-schedule"] { background: var(--green); }
.calendar-legend [data-cal="novedad-warning"] { background: var(--red); }

.holiday-calendar-stats strong {
    color: var(--text);
}

.holiday-calendar-detail,
.event-calendar-detail {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(var(--brand-accent-rgb), .20);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.76);
}

.holiday-calendar-detail > div:first-child,
.event-calendar-detail > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.holiday-calendar-detail strong,
.event-calendar-detail strong {
    color: var(--text);
}

.holiday-calendar-detail span,
.holiday-detail-item p,
.event-calendar-detail span,
.event-detail-item p {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.holiday-detail-list,
.event-detail-list {
    display: grid;
    gap: 6px;
}

.holiday-detail-item,
.event-detail-item {
    display: grid;
    gap: 3px;
    padding: 8px 9px;
    border-left: 3px solid var(--green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(229, 246, 239, .62);
}

.event-detail-item.is-license {
    border-left-color: var(--brand-primary);
    background: rgba(var(--brand-accent-soft-rgb), .14);
}

.event-detail-item.is-time {
    border-left-color: var(--amber);
    background: rgba(255, 242, 216, .70);
}

.event-detail-item.is-schedule {
    border-left-color: var(--green);
    background: rgba(229, 246, 239, .66);
}

.event-detail-item.is-warning {
    border-left-color: var(--red);
    background: rgba(253, 231, 229, .58);
}

.holiday-detail-item p,
.event-detail-item p {
    margin: 0;
    line-height: 1.25;
}

.inline-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(155px, 210px) minmax(170px, 230px) minmax(120px, 150px) auto;
    align-items: end;
    margin-bottom: 12px;
}

.panel-head {
    justify-content: space-between;
    margin-bottom: 12px;
}

.empty,
.muted,
.hint {
    color: var(--muted);
}

.empty {
    padding: 22px;
    text-align: center;
}

.hint {
    font-size: 12px;
}

.form-note {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.muted {
    font-size: 12px;
}

.suggestions {
    display: grid;
    gap: 6px;
}

.suggestion {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    padding: 9px;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .18s var(--ease-out);
}

.suggestion:hover {
    background: rgba(var(--brand-accent-soft-rgb), .22);
    border-color: rgba(var(--brand-accent-rgb), .38);
    transform: translateX(3px);
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    width: min(520px, 96vw);
    height: 100vh;
    overflow: auto;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 48px rgba(var(--brand-secondary-rgb), .22);
    transform: translateX(105%);
    transition: transform .22s var(--ease-out);
    padding: 18px;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer-close {
    float: right;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text);
}

.detail-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .10);
}

.detail-row span {
    color: var(--muted);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.mini-table th,
.mini-table td {
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .10);
    padding: 8px;
    text-align: left;
}

.mini-table tbody tr.js-feriado-row,
.mini-table tbody tr.js-novedad-row {
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease;
}

.mini-table tbody tr.js-feriado-row:hover td,
.mini-table tbody tr.js-feriado-row.is-linked td,
.mini-table tbody tr.js-novedad-row:hover td,
.mini-table tbody tr.js-novedad-row.is-linked td {
    background: rgba(var(--brand-accent-soft-rgb), .16);
}

.mini-table tbody tr.js-feriado-row.is-selected td {
    background: rgba(229, 246, 239, .62);
    box-shadow: inset 3px 0 0 var(--green);
}

.mini-table tbody tr.js-novedad-row.is-selected td {
    background: rgba(var(--brand-accent-soft-rgb), .13);
    box-shadow: inset 3px 0 0 var(--brand-primary);
}

.mini-table tbody tr.js-novedad-row.is-time.is-selected td {
    box-shadow: inset 3px 0 0 var(--amber);
}

.mini-table tbody tr.js-novedad-row.is-schedule.is-selected td {
    box-shadow: inset 3px 0 0 var(--green);
}

.mini-table tbody tr.js-novedad-row.is-warning td {
    background: rgba(253, 231, 229, .32);
}

.mini-table tbody tr.js-novedad-row.is-warning.is-selected td {
    box-shadow: inset 3px 0 0 var(--red);
}

.mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.report-summary:empty {
    display: none;
    margin-bottom: 0;
}

#reporte-control-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #fff, rgba(var(--brand-accent-soft-rgb), .12));
}

#reporte-control-toolbar[hidden] {
    display: none;
}

.report-employee-header {
    margin-bottom: 12px;
}

.report-meta-grid {
    display: grid;
    grid-template-columns: minmax(190px, 1.28fr) minmax(145px, .8fr) minmax(70px, .36fr) minmax(70px, .36fr) minmax(160px, 1fr) minmax(140px, .82fr) minmax(95px, .5fr) minmax(86px, .46fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--brand-primary-rgb), .22);
    border-radius: var(--radius-md);
    background: #fff;
}

.report-meta-grid > div {
    min-width: 0;
    border-right: 1px solid rgba(var(--brand-primary-rgb), .14);
}

.report-meta-grid > div:last-child {
    border-right: 0;
}

.report-meta-grid span,
.report-meta-grid strong {
    display: block;
    padding: 6px 8px;
}

.report-meta-grid span {
    background: rgba(var(--brand-accent-soft-rgb), .32);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.report-meta-grid strong {
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.report-wrap,
.personal-wrap {
    max-height: calc(100vh - 330px);
    min-height: 420px;
    box-shadow: none;
}

.report-wrap .data-table {
    font-size: 12px;
}

.report-wrap .data-table th,
.report-wrap .data-table td {
    padding: 6px 7px;
    vertical-align: top;
}

.report-wrap .data-table th {
    font-size: 10px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow-wrap: normal;
}

.report-wrap .data-table.is-report-control {
    min-width: 1010px;
    table-layout: fixed;
}

.report-wrap .data-table.is-report-control-summary {
    min-width: 1180px;
}

.report-wrap .data-table.is-report-absence {
    min-width: 900px;
    table-layout: fixed;
}

.report-wrap .data-table.is-report-absence-month {
    min-width: 980px;
    table-layout: fixed;
}

.report-wrap .data-table.is-report-work-summary {
    min-width: 1120px;
    table-layout: fixed;
}

.report-wrap .data-table.is-report-extra-hours {
    min-width: 1040px;
    table-layout: fixed;
}

.report-wrap .data-table.is-report-night-hours {
    min-width: 960px;
    table-layout: fixed;
}

.report-wrap .col-date { width: 74px; }
.report-wrap .col-day { width: 66px; }
.report-wrap .col-grupo { width: 108px; }
.report-wrap .col-legajo { width: 56px; }
.report-wrap .col-legajo-tarjeta { width: 92px; }
.report-wrap .col-empleado { width: 170px; }
.report-wrap .col-sector { width: 132px; }
.report-wrap .col-tarjeta { width: 70px; }
.report-wrap .col-count { width: 62px; }
.report-wrap .col-hours { width: 86px; }
.report-wrap .col-horario { width: 116px; }
.report-wrap .col-time { width: 44px; }
.report-wrap .col-just { width: 42px; }
.report-wrap .col-status { width: 86px; }
.report-wrap .col-obs { width: 250px; }

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) {
    min-width: 1080px;
    border: 1px solid #cfe1f1;
    border-collapse: collapse;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) th,
.report-wrap .data-table.is-report-control:not(.is-report-control-summary) td {
    border-right: 1px solid #e1ebf4;
    border-bottom: 1px solid #dbe5ee;
    text-align: center;
    vertical-align: middle;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) th {
    color: #283fa6;
    background: #e7f5fb;
    font-size: 10px;
    font-weight: 900;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) td:first-child,
.report-wrap .data-table.is-report-control:not(.is-report-control-summary) td:last-child {
    text-align: left;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) th:nth-child(7),
.report-wrap .data-table.is-report-control:not(.is-report-control-summary) td:nth-child(7),
.report-wrap .data-table.is-report-control:not(.is-report-control-summary) th:nth-child(11),
.report-wrap .data-table.is-report-control:not(.is-report-control-summary) td:nth-child(11) {
    border-right: 1px solid #0052a5;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) tbody tr[data-weekend="1"] td {
    color: #33456f;
    background: #dfe8f0;
    font-weight: 700;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) tbody tr[data-future="1"] td {
    color: #364fc7;
    background: #eef4ff;
    font-weight: 700;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) td[data-fichada-edge] {
    color: #0d2e6e;
    background: #dff5fd;
    box-shadow: inset 0 -2px 0 rgba(var(--brand-accent-rgb), .55);
    font-weight: 900;
}

.report-wrap .data-table.is-report-control:not(.is-report-control-summary) .report-control-status .badge {
    justify-content: center;
    min-height: 22px;
    min-width: 74px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 900;
}

.report-wrap .report-text,
.report-wrap .report-note {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.report-wrap .report-note {
    color: var(--text-soft);
}

.report-wrap .report-group-row td {
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    background: rgba(var(--brand-accent-soft-rgb), .28);
    border-top: 1px solid rgba(var(--brand-primary-rgb), .14);
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .14);
}

.report-wrap .report-sector-row td {
    color: #fff;
    background: var(--brand-primary);
    border-color: rgba(var(--brand-primary-rgb), .40);
}

.report-sector-toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    width: 100%;
    min-height: 30px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.report-sector-toggle strong,
.report-sector-toggle span {
    display: inline-flex;
    align-items: center;
}

.report-sector-chevron {
    min-width: 14px;
    font-size: 13px;
}

.report-wrap .report-employee-row td {
    cursor: pointer;
    background: #eaf8fd;
    color: var(--text);
    text-transform: none;
}

.report-wrap .report-control-person-row td {
    background: #fff;
}

.report-wrap .report-control-person {
    cursor: pointer;
}

.report-wrap .report-control-person strong,
.report-wrap .report-control-person span {
    display: block;
}

.report-wrap .report-control-person span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.report-wrap .report-control-person:hover,
.report-wrap .report-control-person:focus {
    color: var(--brand-primary);
    background: rgba(var(--brand-accent-soft-rgb), .24);
    outline: 0;
}

.report-wrap .report-control-detail-row td {
    padding: 0 8px 10px;
    background: #fbfdff;
}

.report-control-detail {
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: var(--radius-sm);
    background: rgba(var(--brand-accent-soft-rgb), .10);
}

.report-control-detail summary {
    cursor: pointer;
    padding: 8px 10px;
    color: var(--brand-secondary);
    font-size: 11px;
    font-weight: 900;
}

.control-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 0 10px 8px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.control-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.control-calendar-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.control-calendar-legend [data-cal="attendance"] { background: #dff8e7; }
.control-calendar-legend [data-cal="absence"] { background: #ffdcd7; }
.control-calendar-legend [data-cal="late"] { background: #fff1bc; }
.control-calendar-legend [data-cal="other"] { background: #e8f0ff; }

.control-calendar-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 0 10px 10px;
}

.control-calendar-month {
    padding: 9px;
    border: 1px solid rgba(var(--brand-primary-rgb), .10);
    border-radius: var(--radius-sm);
    background: #fff;
}

.control-calendar-month > strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
}

.control-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(20px, 1fr));
    gap: 3px;
}

.control-weekday,
.control-day {
    min-height: 24px;
    border-radius: 5px;
    text-align: center;
    font-size: 10px;
    line-height: 24px;
}

.control-weekday {
    color: var(--muted);
    font-weight: 900;
}

.control-day {
    position: relative;
    color: rgba(var(--brand-secondary-rgb), .50);
    background: rgba(var(--brand-neutral-rgb), .30);
}

.control-day.is-empty {
    background: transparent;
}

.control-day.is-attendance {
    color: #12613f;
    background: #dff8e7;
    font-weight: 900;
}

.control-day.is-absence {
    color: #9a160d;
    background: #ffdcd7;
    font-weight: 900;
}

.control-day.is-late {
    color: #815705;
    background: #fff1bc;
    box-shadow: inset 0 0 0 1px rgba(129, 87, 5, .20);
}

.control-day.is-holiday,
.control-day.is-novelty {
    color: var(--brand-primary);
    background: #e8f0ff;
    font-weight: 900;
}

.control-day.is-weekend {
    color: rgba(var(--brand-secondary-rgb), .58);
    background: #eef1f6;
}

.control-day small {
    position: absolute;
    right: 2px;
    bottom: 1px;
    min-width: 10px;
    font-size: 8px;
    line-height: 1;
}

.report-control-observations {
    margin: 0 10px 10px;
    padding: 9px 10px;
    border: 1px solid rgba(var(--brand-primary-rgb), .10);
    border-radius: var(--radius-sm);
    background: #fff;
}

.report-control-observations strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-secondary);
    font-size: 11px;
}

.report-control-observations ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-control-observations li {
    color: var(--text-soft);
    font-size: 11px;
}

.report-control-observations li span {
    display: inline-block;
    min-width: 88px;
    color: var(--brand-primary);
    font-weight: 900;
}

.report-detail-scroll {
    overflow: auto;
    padding: 0 10px 10px;
}

.report-detail-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

.report-detail-table th,
.report-detail-table td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), .10);
    font-size: 11px;
}

.report-detail-table th {
    color: var(--brand-primary);
    background: rgba(var(--brand-accent-soft-rgb), .32);
    text-align: left;
}

.report-wrap .report-absence-person-row td {
    background: #fff;
}

.report-wrap .report-absence-person {
    cursor: pointer;
}

.report-wrap .report-absence-person strong,
.report-wrap .report-absence-person span {
    display: block;
}

.report-wrap .report-absence-person span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.report-wrap .report-absence-person:hover,
.report-wrap .report-absence-person:focus {
    color: var(--brand-primary);
    background: rgba(var(--brand-accent-soft-rgb), .24);
    outline: 0;
}

.report-wrap .report-absence-count strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #9a160d;
    background: #ffe8e3;
}

.report-wrap .report-absence-calendar-row td {
    padding: 0 8px 10px;
    background: #fbfdff;
}

.report-wrap .report-absence-person-row.is-linked-active td,
.report-wrap .report-absence-calendar-row.is-linked-active td {
    background: #e3f8ff;
}

.report-wrap .report-absence-person-row.is-linked-selected td,
.report-wrap .report-absence-calendar-row.is-linked-selected td {
    background: #c9f1fb;
    box-shadow: inset 4px 0 0 var(--brand-accent);
}

.report-wrap .report-absence-person-row.is-linked-active .report-absence-person,
.report-wrap .report-absence-person-row.is-linked-selected .report-absence-person {
    color: var(--brand-primary);
}

.absence-calendar-details {
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: var(--radius-sm);
    background: rgba(var(--brand-accent-soft-rgb), .12);
}

.absence-calendar-details summary {
    cursor: pointer;
    padding: 8px 10px;
    color: var(--brand-secondary);
    font-size: 11px;
    font-weight: 900;
}

.absence-calendar-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 0 10px 10px;
}

.absence-month {
    padding: 9px;
    border: 1px solid rgba(var(--brand-primary-rgb), .10);
    border-radius: var(--radius-sm);
    background: #fff;
}

.absence-month > strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
}

.absence-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(18px, 1fr));
    gap: 3px;
}

.absence-weekday,
.absence-day {
    min-height: 22px;
    border-radius: 5px;
    text-align: center;
    font-size: 10px;
    line-height: 22px;
}

.absence-weekday {
    color: var(--muted);
    font-weight: 900;
}

.absence-day {
    color: rgba(var(--brand-secondary-rgb), .48);
    background: rgba(var(--brand-neutral-rgb), .30);
}

.absence-day.is-empty {
    background: transparent;
}

.absence-day.is-absent {
    color: #9a160d;
    background: #ffe0dc;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(154, 22, 13, .16);
}

.absence-day.is-absent.is-justified {
    color: #0b6b3c;
    background: #dff8e7;
    box-shadow: inset 0 0 0 1px rgba(11, 107, 60, .18);
}

.report-wrap .is-report-extra-hours .extra-50 {
    color: #815705;
    background: #fff7e5;
    font-weight: 800;
}

.report-wrap .is-report-extra-hours .extra-100 {
    color: #12613f;
    background: #eefaf4;
    font-weight: 800;
}

.report-wrap .is-report-night-hours .night-40 {
    color: #0052a5;
    background: #f1f6ff;
    font-weight: 800;
}

.report-extra-meta-grid {
    grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .8fr) minmax(70px, .42fr) minmax(130px, .8fr) minmax(160px, 1fr) minmax(82px, .5fr) minmax(82px, .5fr) minmax(82px, .5fr);
}

.report-night-meta-grid {
    grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .8fr) minmax(70px, .42fr) minmax(130px, .8fr) minmax(160px, 1fr) minmax(90px, .55fr) minmax(80px, .45fr) minmax(82px, .5fr);
}

.report-wrap .js-row-nomina {
    cursor: default;
}

.system-status-layout {
    display: grid;
    grid-template-columns: minmax(320px, 980px);
    align-items: start;
}

.fichador-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.fichador-panel-head h3 {
    margin: 0;
    color: var(--brand-secondary);
    font-size: 18px;
}

.fichador-panel-head p {
    margin: 4px 0 0;
    color: var(--text-soft);
}

.fichador-device-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fichador-device {
    min-width: 0;
}

.fichador-status {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(var(--brand-accent-rgb), .22);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,252,255,.92)),
        radial-gradient(circle at 100% 0%, rgba(var(--brand-accent-soft-rgb), .22), transparent 34%);
    box-shadow: 0 18px 42px rgba(3, 11, 142, .08);
}

.fichador-status::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
}

.fichador-status-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.fichador-orb {
    position: relative;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.fichador-orb::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    animation: lite-fichador-pulse 1.7s ease-in-out infinite;
}

.fichador-orb span {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(255,255,255,.76), 0 14px 28px rgba(0,0,0,.16);
    animation: lite-fichador-dot 1.7s ease-in-out infinite;
}

.fichador-status.is-online .fichador-orb {
    background: rgba(18, 128, 92, .10);
}

.fichador-status.is-online .fichador-orb::before,
.fichador-status.is-online .fichador-orb span {
    background: var(--green);
}

.fichador-status.is-offline .fichador-orb {
    background: rgba(180, 35, 24, .10);
}

.fichador-status.is-offline .fichador-orb::before,
.fichador-status.is-offline .fichador-orb span {
    background: var(--red);
}

.fichador-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.fichador-status strong {
    display: block;
    color: var(--brand-secondary);
    font-size: 34px;
    line-height: 1.05;
}

.fichador-status p {
    max-width: 460px;
    margin: 10px 0 0;
    color: var(--text-soft);
}

.fichador-status .btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.fichador-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.fichador-device .fichador-status {
    min-height: 172px;
    align-items: flex-start;
    padding: 24px;
}

.fichador-device .fichador-orb {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
}

.fichador-device .fichador-orb::before {
    inset: 16px;
}

.fichador-device .fichador-status strong {
    font-size: 28px;
}

.fichador-device .fichador-status p {
    max-width: none;
}

.fichador-device .fichador-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-table tbody tr.is-static {
    cursor: default;
}

.data-table tbody tr.is-static:hover {
    background: transparent;
    box-shadow: none;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    max-width: 420px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    display: none;
}

.toast[style*="display: block"] {
    animation: lite-toast-in .22s var(--ease-out) both;
}

.toast.is-error {
    background: linear-gradient(135deg, var(--red), #6f1611);
}

body.has-modal-open {
    overflow: hidden;
}

.capture-modal {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(3, 11, 142, .38);
    backdrop-filter: blur(8px);
}

.capture-modal.is-open {
    display: flex;
    animation: lite-modal-in .18s ease both;
}

.capture-dialog {
    position: relative;
    width: min(520px, 100%);
    overflow: hidden;
    padding: 26px;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,252,255,.95)),
        radial-gradient(circle at 100% 0%, rgba(var(--brand-accent-soft-rgb), .24), transparent 38%);
    border: 1px solid rgba(var(--brand-accent-rgb), .30);
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(3, 11, 142, .28);
    animation: lite-dialog-in .24s var(--ease-out) both;
}

.capture-dialog::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
}

.capture-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 76px;
}

.capture-loader {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(var(--brand-accent-soft-rgb), .22);
}

.capture-loader::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(var(--brand-primary-rgb), .12);
    border-top-color: var(--brand-accent);
    animation: lite-capture-spin .85s linear infinite;
}

.capture-loader span {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 8px rgba(255,255,255,.72);
}

.capture-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.capture-dialog h2 {
    color: var(--brand-secondary);
    font-size: 22px;
}

.capture-dialog p {
    color: var(--text-soft);
}

.capture-progress {
    height: 10px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--brand-primary-rgb), .10);
}

.capture-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    animation: lite-progress-flow 1.15s ease-in-out infinite;
}

.capture-modal.is-print .capture-progress span {
    width: 12%;
    animation: none;
    transform: none;
    transition: width .28s var(--ease-out);
}

.capture-detail {
    min-height: 21px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.capture-close {
    position: absolute;
    top: 18px;
    right: 18px;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--text);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(var(--brand-primary-rgb), .16);
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(var(--brand-secondary-rgb), .08);
}

.capture-modal.is-busy .capture-close {
    display: none;
}

.capture-modal.is-done .capture-loader {
    background: rgba(18, 128, 92, .12);
}

.capture-modal.is-done .capture-loader::before {
    border-color: rgba(18, 128, 92, .16);
    border-top-color: var(--green);
    animation: none;
}

.capture-modal.is-done .capture-loader span,
.capture-modal.is-done .capture-progress span {
    background: var(--green);
}

.capture-modal.is-done .capture-progress span,
.capture-modal.is-error .capture-progress span {
    width: 100%;
    animation: none;
    transform: none;
}

.capture-modal.is-error .capture-loader {
    background: rgba(180, 35, 24, .10);
}

.capture-modal.is-error .capture-loader::before {
    border-color: rgba(180, 35, 24, .16);
    border-top-color: var(--red);
    animation: none;
}

.capture-modal.is-error .capture-loader span,
.capture-modal.is-error .capture-progress span {
    background: var(--red);
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.system-box {
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: 12px;
    padding: 12px;
    background: rgba(var(--brand-accent-soft-rgb), .12);
}

.system-box span {
    color: var(--muted);
    font-size: 12px;
}

.system-box strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
}

.empleado-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
    margin: 12px 0 10px;
}

.empleado-kpi {
    min-width: 0;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-left: 4px solid rgba(var(--brand-primary-rgb), .32);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 6px 16px rgba(var(--brand-secondary-rgb), .05);
}

.empleado-kpi span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.empleado-kpi strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.empleado-kpi small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.empleado-kpi[data-tone="ok"] {
    border-left-color: #19a974;
    background: #f1fbf7;
}

.empleado-kpi[data-tone="bad"] {
    border-left-color: #d64545;
    background: #fff5f5;
}

.empleado-kpi[data-tone="warn"] {
    border-left-color: #d98b00;
    background: #fff8e8;
}

.empleado-kpi[data-tone="work"] {
    border-left-color: #008bc7;
    background: #eefaff;
}

.empleado-kpi[data-tone="extra"] {
    border-left-color: #12875a;
    background: #eefaf4;
}

.empleado-kpi[data-tone="holiday"] {
    border-left-color: #4d59be;
    background: #f2f5ff;
}

.empleado-kpi[data-tone="muted"] {
    border-left-color: #98a4bf;
    background: #f7f9fc;
}

.empleado-table-wrap {
    max-height: 420px;
    margin-top: 12px;
}

.empleado-data-table {
    min-width: 1060px;
}

.empleado-data-table th,
.empleado-data-table td {
    text-align: center;
}

.empleado-data-table th:first-child,
.empleado-data-table td:first-child,
.empleado-data-table th:last-child,
.empleado-data-table td:last-child {
    text-align: left;
}

.historico-head {
    align-items: flex-start;
}

[data-view-panel="historico"] .panel {
    background: #fff;
}

.historico-summary {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
    margin: 10px 0 8px;
}

.historico-summary .system-box {
    min-height: auto;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: #eaf8fd;
}

.historico-summary .system-box span {
    font-size: 11px;
}

.historico-summary .system-box strong {
    margin-top: 2px;
    font-size: 17px;
    line-height: 1.15;
}

.historico-note {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--brand-accent-rgb), .28);
    border-radius: var(--radius-sm);
    background: #eaf8fd;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.historico-identidad {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(90px, .45fr) minmax(160px, 1fr);
    gap: 8px;
    margin: 0 0 10px;
}

.historico-identidad div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: var(--radius-sm);
    background: #eefbff;
}

.historico-identidad span,
.historico-identidad strong {
    display: block;
}

.historico-identidad span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.historico-identidad strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
}

.historico-wrap {
    max-height: 560px;
    background: #fff;
}

.historico-table {
    background: #fff;
}

.historico-table th {
    background: #e7f5fb;
}

.historico-table td {
    background: #fff;
    vertical-align: top;
}

.historico-table tbody tr:nth-child(even) td {
    background: #f8fbfe;
}

.historico-table th,
.historico-table td {
    white-space: nowrap;
}

.historico-table .historico-col-concepto,
.historico-table .historico-col-observacion {
    white-space: normal;
}

.historico-table .historico-col-fecha {
    width: 186px;
    min-width: 186px;
}

.historico-table .historico-col-tipo {
    width: 92px;
    min-width: 92px;
}

.historico-table .historico-col-concepto {
    min-width: 260px;
}

.historico-table .historico-col-observacion {
    min-width: 220px;
}

.historico-table .historico-col-tarjeta,
.historico-table .historico-col-hora {
    width: 86px;
    min-width: 86px;
    text-align: center;
}

.historico-fecha {
    display: inline-grid;
    gap: 2px;
    min-width: 126px;
    padding: 6px 8px;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: var(--radius-sm);
    background: #eefbff;
    color: var(--text);
    line-height: 1.12;
}

.historico-fecha strong {
    font-size: 12px;
    font-weight: 800;
}

.historico-fecha span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
}

.historico-fecha-rango {
    background: #e8f7fd;
}

.js-historico-form {
    align-self: start;
}

.js-historico-form .btn {
    width: 100%;
}

.historico-selected {
    display: grid;
    gap: 3px;
    min-height: 50px;
    margin-top: 2px;
    padding: 9px 10px;
    border: 1px solid rgba(var(--brand-accent-rgb), .24);
    border-radius: var(--radius-sm);
    background: #eefbff;
    color: var(--text);
    text-align: center;
    box-shadow: 0 6px 18px rgba(var(--brand-secondary-rgb), .06);
}

.historico-selected[hidden] {
    display: none;
}

.historico-selected strong,
.historico-selected span {
    display: block;
}

.historico-selected strong {
    font-size: 13px;
}

.historico-selected span {
    color: var(--text-soft);
    font-size: 12px;
}

@media (max-width: 860px) {
    .historico-identidad {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .login-card {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    }

    .login-brand-panel,
    .login-form {
        padding: 42px;
    }

    .filters,
    .status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .empleado-summary {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 860px) {
    body.login-body {
        padding: 16px;
        place-items: start center;
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-brand-panel {
        min-height: 250px;
        padding: 30px;
    }

    .login-brand-panel strong {
        font-size: 38px;
    }

    .login-brand-panel span {
        font-size: 30px;
    }

    .login-brand-panel small {
        letter-spacing: .28em;
    }

    .login-brand-panel b {
        font-size: 78px;
    }

    .login-form {
        padding: 30px;
    }

    .app-shell {
        grid-template-columns: 1fr;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
    }

    .sidebar {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        gap: 10px;
        padding: 12px;
    }

    .drawer {
        width: min(420px, 100vw);
        max-width: 100vw;
    }

    .brand {
        padding-bottom: 10px;
    }

    .brand img {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .nav {
        display: flex;
        gap: 8px;
        margin: 0 -4px;
        padding: 0 4px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex: 0 0 auto;
        width: auto;
        min-height: 38px;
        border-radius: 999px;
        text-align: center;
        padding: 9px 13px;
        white-space: nowrap;
        animation: none;
    }

    .session-card {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
        margin-top: 0;
        padding: 9px 10px;
        border-radius: 10px;
    }

    .session-card span {
        display: none;
    }

    .session-card strong,
    .session-card a {
        font-size: 12px;
    }

    .app-footer {
        display: none;
    }

    .mobile-command-bar.is-active {
        position: sticky;
        top: 0;
        z-index: 11;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: -4px 0 12px;
        padding: 8px;
        background: rgba(245, 251, 255, .92);
        border: 1px solid rgba(var(--brand-primary-rgb), .14);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(var(--brand-secondary-rgb), .12);
        backdrop-filter: blur(14px);
    }

    .mobile-command-bar .btn {
        justify-content: center;
        min-width: 0;
        min-height: 42px;
        padding: 9px 8px;
        white-space: normal;
    }

    .js-control-filters {
        display: none !important;
    }

    .js-control-filters.is-mobile-open {
        display: grid !important;
        position: sticky;
        top: 58px;
        z-index: 10;
        margin-bottom: 12px;
        border-color: rgba(var(--brand-accent-rgb), .36);
        box-shadow: 0 18px 36px rgba(var(--brand-secondary-rgb), .16);
    }

    [data-view-panel="control"] > .table-wrap {
        display: none;
    }

    [data-view-panel="control"] .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    [data-view-panel="control"] .metric {
        min-height: 74px;
        padding: 11px;
        border-radius: 10px;
    }

    [data-view-panel="control"] .metric strong {
        margin-top: 3px;
        font-size: 22px;
    }

    .js-control-mobile-list {
        display: grid;
        gap: 10px;
        margin-bottom: 10px;
    }

    .mobile-control-card,
    .mobile-personal-card {
        display: grid;
        gap: 10px;
        padding: 12px;
        background: rgba(255, 255, 255, .94);
        border: 1px solid rgba(var(--brand-primary-rgb), .15);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(var(--brand-secondary-rgb), .08);
        animation: lite-card-in .28s var(--ease-out) both;
    }

    .mobile-control-card[data-selected-row="1"],
    .mobile-personal-card[data-selected-row="1"] {
        border-color: rgba(var(--brand-accent-rgb), .68);
        background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(var(--brand-accent-soft-rgb), .24));
        box-shadow: inset 4px 0 0 var(--brand-accent), 0 12px 28px rgba(var(--brand-secondary-rgb), .12);
    }

    .mobile-card-main {
        min-width: 0;
        display: grid;
        gap: 3px;
        color: var(--text);
        cursor: pointer;
    }

    .mobile-card-main:focus-visible {
        outline: 3px solid rgba(var(--brand-accent-rgb), .26);
        outline-offset: 3px;
        border-radius: 8px;
    }

    .mobile-card-main span,
    .mobile-card-main small,
    .mobile-personal-meta small,
    .mobile-time-grid small {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.15;
    }

    .mobile-card-main strong {
        color: var(--text);
        font-size: 15px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .mobile-card-status {
        display: flex;
        justify-content: flex-start;
    }

    .mobile-time-grid,
    .mobile-personal-meta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .mobile-personal-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-time-grid span,
    .mobile-personal-meta span {
        min-width: 0;
        padding: 8px;
        background: rgba(var(--brand-primary-rgb), .045);
        border: 1px solid rgba(var(--brand-primary-rgb), .09);
        border-radius: 8px;
    }

    .mobile-time-grid strong,
    .mobile-personal-meta strong {
        display: block;
        margin-top: 2px;
        color: var(--text);
        font-size: 13px;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .mobile-alert-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .mobile-alert-row span {
        min-height: 28px;
        padding: 6px 7px;
        border-radius: 999px;
        background: rgba(var(--brand-primary-rgb), .06);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-alert-row .is-warn {
        color: var(--amber);
        background: var(--amber-soft);
    }

    .mobile-alert-row .is-bad {
        color: var(--red);
        background: var(--red-soft);
    }

    .mobile-alert-row .is-info {
        color: var(--blue);
        background: var(--blue-soft);
    }

    .mobile-card-detail {
        border-top: 1px solid rgba(var(--brand-primary-rgb), .10);
        padding-top: 8px;
    }

    .mobile-card-detail summary {
        color: var(--brand-primary);
        font-size: 12px;
        font-weight: 900;
        cursor: pointer;
    }

    .mobile-card-detail div {
        margin-top: 7px;
        color: var(--text-soft);
        font-size: 12px;
        line-height: 1.35;
    }

    .mobile-empty {
        padding: 18px;
        background: rgba(255, 255, 255, .92);
        border: 1px solid rgba(var(--brand-primary-rgb), .12);
        border-radius: 12px;
        color: var(--muted);
        font-weight: 800;
        text-align: center;
    }

    .table-wrap:not([data-keep-mobile-table]),
    .report-wrap:not([data-keep-mobile-table]) {
        max-height: none;
        min-height: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .mobile-card-table {
        display: block;
        min-width: 0 !important;
        width: 100%;
        table-layout: auto !important;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    .mobile-card-table colgroup,
    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody {
        display: grid;
        gap: 10px;
    }

    .mobile-card-table tr {
        display: grid;
        gap: 7px;
        padding: 11px;
        background: rgba(255, 255, 255, .95);
        border: 1px solid rgba(var(--brand-primary-rgb), .13);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(var(--brand-secondary-rgb), .08);
        cursor: default;
    }

    .mobile-card-table tr[hidden] {
        display: none !important;
    }

    .mobile-card-table td {
        display: block;
        padding: 0;
        border: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mobile-card-table td[data-label] {
        display: grid;
        grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        min-height: 22px;
    }

    .mobile-card-table td[data-label]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1 / span 4;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        line-height: 1.2;
    }

    .mobile-card-table td[data-label] > * {
        grid-column: 2;
        min-width: 0;
    }

    .mobile-card-table .num {
        text-align: left;
    }

    .mobile-card-table .empty {
        padding: 10px;
        text-align: center;
    }

    .mobile-card-table tr.mobile-table-section {
        padding: 0;
        overflow: hidden;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .mobile-card-table tr.mobile-table-section td {
        padding: 0;
    }

    .mobile-card-table .report-sector-toggle {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px 10px;
        min-height: 42px;
        padding: 9px 11px;
        border-radius: 10px;
        background: var(--brand-primary);
    }

    .mobile-card-table .report-sector-toggle strong,
    .mobile-card-table .report-sector-toggle span {
        min-width: 0;
        line-height: 1.2;
    }

    .mobile-card-table .report-sector-toggle span:not(.report-sector-chevron) {
        grid-column: span 2;
        font-size: 11px;
        opacity: .92;
    }

    .mobile-card-table .report-control-detail-row,
    .mobile-card-table .report-absence-calendar-row {
        margin-top: -6px;
    }

    .mobile-card-table .report-detail-scroll {
        overflow-x: auto;
        padding: 0 0 8px;
    }

    .mobile-card-table .absence-calendar-months,
    .mobile-card-table .control-calendar-months {
        grid-template-columns: 1fr;
    }

    .mobile-card-table .mini-actions {
        justify-content: stretch;
    }

    .mobile-card-table .mini-actions .btn {
        flex: 1 1 120px;
        justify-content: center;
    }

    .mobile-personal-switch {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 12px;
        padding: 6px;
        background: rgba(255,255,255,.88);
        border: 1px solid rgba(var(--brand-primary-rgb), .14);
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(var(--brand-secondary-rgb), .08);
    }

    .mobile-personal-switch button {
        min-height: 40px;
        border: 1px solid transparent;
        border-radius: 9px;
        background: transparent;
        color: var(--text-soft);
        font-weight: 900;
    }

    .mobile-personal-switch button.is-active,
    .mobile-command-bar [data-mobile-personal-tab].is-active {
        color: #fff;
        background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
        box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), .22);
    }

    [data-view-panel="personal"][data-mobile-personal-mode="list"] .personal-form-panel,
    [data-view-panel="personal"][data-mobile-personal-mode="form"] .personal-list-panel {
        display: none;
    }

    .personal-wrap {
        display: none;
    }

    .mobile-personal-list {
        display: grid;
        gap: 10px;
    }

    .mobile-personal-card {
        cursor: pointer;
    }

    .mobile-personal-card:focus-visible {
        outline: 3px solid rgba(var(--brand-accent-rgb), .28);
        outline-offset: 3px;
    }

    .personal-form-panel .form-actions,
    .js-reporte-form .form-actions,
    .js-novedad-form .form-actions,
    .js-feriado-form .form-actions {
        position: sticky;
        bottom: 8px;
        z-index: 8;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
        margin: 4px -6px -6px;
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(var(--brand-primary-rgb), .12);
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(var(--brand-secondary-rgb), .14);
        backdrop-filter: blur(12px);
    }

    .personal-form-panel .form-actions .btn,
    .js-reporte-form .form-actions .btn,
    .js-novedad-form .form-actions .btn,
    .js-feriado-form .form-actions .btn {
        justify-content: center;
        min-width: 0;
    }

    .js-reporte-form .form-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .js-empleado-form > .btn,
    .js-historico-form > .btn,
    .js-manual-form > .btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }

    .content {
        padding: 16px;
    }

    .topbar,
    .split-layout,
    .process-manual-layout {
        display: block;
    }

    .topbar {
        position: relative;
        top: auto;
    }

    .top-actions {
        margin-top: 12px;
    }

    .filters,
    .status-grid,
    #control-toolbar,
    #control-pagination,
    #sector-selector,
    #horario-selector,
    #reporte-control-toolbar,
    .system-grid,
    .empleado-summary,
    .fichador-meta,
    .fichador-device-list,
    .fichador-device .fichador-meta,
    .two-cols,
    .compact-grid,
    .inline-filters,
    .report-summary,
    .report-meta-grid {
        grid-template-columns: 1fr;
    }

    .fichador-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-title-row,
    .calendar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-actions .btn {
        justify-content: center;
    }

    .rostros-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .rostros-toolbar label {
        min-width: 0;
    }

    .photo-sync-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .photo-sync-actions {
        justify-content: stretch;
    }

    .photo-sync-actions .btn {
        width: 100%;
    }

    .calendar-day {
        min-height: 48px;
        padding: 5px;
    }

    .holiday-calendar-detail > div:first-child,
    .event-calendar-detail > div:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-legend span,
    .holiday-calendar-stats span {
        flex: 1 1 135px;
        justify-content: center;
    }

    #reporte-control-toolbar {
        display: grid;
        align-items: stretch;
    }

    #control-pagination {
        display: grid;
        align-items: stretch;
    }

    #control-pagination > div:first-child {
        min-width: 0;
    }

    #control-pagination label,
    [data-control-pagination-actions] {
        justify-content: stretch;
    }

    [data-control-pagination-actions] .btn {
        flex: 1 1 120px;
    }

    [data-selection-actions] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    #control-toolbar {
        display: grid;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    [data-selection-status] {
        min-width: 0;
    }

    [data-selection-actions] p {
        grid-column: 1 / -1;
        text-align: left;
    }

    [data-selection-actions] .btn {
        justify-content: center;
        min-width: 0;
    }

    .report-meta-grid > div {
        border-right: 0;
        border-bottom: 1px solid rgba(var(--brand-primary-rgb), .14);
    }

    .report-meta-grid > div:last-child {
        border-bottom: 0;
    }

    .system-status-layout {
        grid-template-columns: 1fr;
    }

    .fichador-status {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .fichador-status-main {
        align-items: flex-start;
    }

    .fichador-orb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .fichador-status strong {
        font-size: 28px;
    }

    .capture-dialog {
        padding: 22px;
    }

    .capture-head {
        align-items: flex-start;
        padding-right: 0;
    }

    .capture-loader {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .capture-loader::before {
        width: 54px;
        height: 54px;
    }

    .panel {
        margin-bottom: 14px;
    }

    .table-wrap,
    .report-wrap,
    .personal-wrap {
        min-height: 320px;
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .sidebar,
    .nav-item.is-active,
    .fichador-orb::before,
    .fichador-orb span,
    .capture-modal.is-open,
    .capture-dialog,
    .capture-loader::before,
    .capture-progress span {
        animation: none !important;
    }
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary) {
    border: 1px solid #cfe1f1;
    border-collapse: collapse;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary) th,
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary) td {
    border-right: 1px solid #e1ebf4;
    border-bottom: 1px solid #dbe5ee;
    text-align: center;
    vertical-align: middle;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary) td:first-child,
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary) td:last-child {
    text-align: left;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(8),
.js-reporte-table.data-table.is-report-control-printlike tbody tr:not([data-weekend="1"]):not([data-future="1"]) td[data-report-control-tone="work"] {
    color: #063c66 !important;
    background: #eefaff !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(8) {
    background: #d8f2fb !important;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(9),
.js-reporte-table.data-table.is-report-control-printlike tbody tr:not([data-weekend="1"]):not([data-future="1"]) td[data-report-control-tone="late"] {
    color: #815705 !important;
    background: #fff7e5 !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(9) {
    background: #ffefc7 !important;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(10),
.js-reporte-table.data-table.is-report-control-printlike tbody tr:not([data-weekend="1"]):not([data-future="1"]) td[data-report-control-tone="exit"] {
    color: #8a3f14 !important;
    background: #fff0e8 !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(10) {
    background: #ffe2d4 !important;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(11),
.js-reporte-table.data-table.is-report-control-printlike tbody tr:not([data-weekend="1"]):not([data-future="1"]) td[data-report-control-tone="extra"] {
    color: #12613f !important;
    background: #eefaf4 !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control-printlike th:nth-child(11) {
    background: #dff5ea !important;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(8),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) tbody tr:not([data-weekend="1"]):not([data-future="1"]) td:nth-child(8) {
    color: #815705 !important;
    background: #fff7e5 !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(8) {
    background: #ffefc7 !important;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(9),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) tbody tr:not([data-weekend="1"]):not([data-future="1"]) td:nth-child(9),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(12),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) tbody tr:not([data-weekend="1"]):not([data-future="1"]) td:nth-child(12) {
    color: #063c66 !important;
    background: #eefaff !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(9),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(12) {
    background: #d8f2fb !important;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(10),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) tbody tr:not([data-weekend="1"]):not([data-future="1"]) td:nth-child(10) {
    color: #8a3f14 !important;
    background: #fff0e8 !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(10) {
    background: #ffe2d4 !important;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(11),
.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) tbody tr:not([data-weekend="1"]):not([data-future="1"]) td:nth-child(11) {
    color: #12613f !important;
    background: #eefaf4 !important;
    font-weight: 900;
}

.js-reporte-table.data-table.is-report-control:not(.is-report-control-summary):not(.is-report-control-printlike) th:nth-child(11) {
    background: #dff5ea !important;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 4mm 6mm 5mm;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .capture-modal,
    .sidebar,
    .topbar,
    .top-actions,
    .filters,
    .print-header,
    .status-grid,
    #control-toolbar,
    #control-pagination,
    #reporte-control-toolbar,
    .js-reporte-form,
    .panel-head,
    .report-summary,
    .report-employee-header,
    .table-wrap,
    .drawer,
    .toast {
        display: none !important;
    }

    .mobile-command-bar,
    .mobile-card-list,
    .mobile-segment {
        display: none !important;
    }

    body {
        margin: 0;
        background: #fff;
        color: #061846;
        font-size: 9pt;
        line-height: 1.25;
    }

    .app-shell {
        display: block;
    }

    .content {
        padding: 0;
    }

    .split-layout,
    .panel.grow {
        display: block;
    }

    .panel.grow {
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .print-control-pages {
        display: block;
        width: 100%;
    }

    body.is-printing-report .app-shell,
    body.is-printing-report .drawer,
    body.is-printing-report .toast,
    body.is-printing-report .capture-modal {
        display: none !important;
    }

    body.is-printing-report .print-control-pages {
        display: block !important;
    }

    .print-control-page {
        position: relative;
        width: 100%;
        max-width: 285mm;
        margin: 0 auto;
        box-sizing: border-box;
        overflow: hidden;
        break-after: auto;
        page-break-after: auto;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-control-page + .print-control-page {
        break-before: page;
        page-break-before: always;
    }

    .print-control-person-page {
        height: 198mm;
        display: flex;
        flex-direction: column;
    }

    .print-control-page:last-child {
        break-after: avoid;
        page-break-after: avoid;
    }

    .print-control-page::after {
        content: "";
        display: none;
    }

    .print-control-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(60mm, 1.1fr) minmax(0, 1fr);
        align-items: center;
        gap: 4mm;
        margin: 0 0 2.2mm;
        padding: 3.2mm 4.8mm 3mm;
        color: #fff;
        background: #0052a5;
        border-bottom: .75mm solid #04b1e9;
        border-radius: 2mm 2mm .6mm .6mm;
        box-shadow: none;
    }

    .print-control-brand {
        display: block;
        min-width: 0;
    }

    .print-control-logo {
        display: flex;
        align-items: center;
        gap: 2.2mm;
        min-width: 0;
    }

    .print-control-logo img {
        width: 10mm;
        height: 10mm;
        object-fit: contain;
        padding: 1mm;
        background: #fff;
        border-radius: 1.2mm;
    }

    .print-control-logo div {
        min-width: 0;
    }

    .print-control-logo strong {
        display: block;
        color: #fff;
        font-size: 12pt;
        font-weight: 800;
        line-height: 1.05;
    }

    .print-control-logo span {
        display: block;
        color: #fff;
        font-size: 6.4pt;
        font-weight: 600;
        line-height: 1.1;
        margin-top: 1.1mm;
    }

    .print-section-title {
        display: none;
    }

    .print-control-title {
        color: #fff;
        font-size: 13.5pt;
        font-weight: 800;
        line-height: 1;
        text-align: center;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .print-control-generated {
        color: rgba(255, 255, 255, .86);
        font-size: 5.6pt;
        font-weight: 700;
        line-height: 1.35;
        text-align: right;
    }

    .print-control-generated span {
        display: block;
    }

    .print-employee-meta {
        display: grid;
        grid-template-columns: 1.8fr 1.1fr .5fr .5fr 1.9fr 1.45fr .8fr .72fr;
        overflow: hidden;
        border: 1px solid #cfe1f1;
        border-radius: 1.2mm;
        margin-bottom: 1mm;
    }

    .print-employee-meta div {
        min-width: 0;
        border-right: 1px solid #d7e7f4;
        text-align: center;
    }

    .print-employee-meta div:last-child {
        border-right: 0;
    }

    .print-employee-meta span,
    .print-employee-meta strong {
        display: block;
        padding: .45px 2px;
    }

    .print-employee-meta span {
        background: #e7f5fb;
        color: #4d59be;
        border-bottom: 1px solid #d7e7f4;
        font-size: 5.3pt;
        font-weight: 800;
    }

    .print-employee-meta strong {
        color: #030b8e;
        background: #fff;
        font-size: 5.7pt;
        font-weight: 800;
        line-height: 1.02;
        min-height: 7px;
        overflow-wrap: break-word;
    }

    .print-control-table {
        width: 100%;
        min-width: 0;
        height: auto;
        table-layout: fixed;
        border-collapse: collapse;
        border: 1px solid #cfe1f1;
        font-size: 6.2pt;
    }

    .print-control-person-page .print-control-table {
        flex: 1 1 auto;
        height: auto;
    }

    .print-control-person-page .print-report-version {
        flex: 0 0 auto;
    }

    .print-control-table th,
    .print-control-table td {
        box-sizing: border-box;
        border-right: 1px solid #e1ebf4;
        border-bottom: 1px solid #dbe5ee;
        padding: .25px 1.3px;
        color: #030b8e;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .print-control-table th {
        background: #e7f5fb;
        color: #283fa6;
        border-bottom: 1px solid #cfe1f1;
        font-size: 5.7pt;
        font-weight: 800;
        white-space: nowrap;
        text-align: center;
    }

    .print-control-table th:last-child,
    .print-control-table td:last-child {
        border-right: 0;
    }

    .print-control-table tr {
        break-inside: avoid;
    }

    .print-control-table tbody tr {
        height: 5.05mm;
    }

    .print-control-table tfoot tr {
        height: 5.05mm;
    }

    .print-control-table tfoot td {
        color: #0d2e6e;
        background: #edf8fd;
        border-top: 1px solid #9ccbe8;
        font-weight: 800;
        text-align: center;
    }

    .print-control-table tfoot td:first-child {
        text-align: left;
    }

    .print-control-table tbody tr:nth-child(even) {
        background: #f7fbfe;
    }

    .print-control-table tbody tr[data-weekend="1"] td {
        color: #33456f;
        background: #dfe8f0;
        font-weight: 700;
    }

    .print-control-table tbody tr[data-future="1"] td {
        color: #364fc7;
        background: #eef4ff;
        font-weight: 700;
    }

    .print-control-person-page .print-control-table th:nth-child(7),
    .print-control-person-page .print-control-table td:nth-child(7) {
        border-right: 1px solid #0052a5;
    }

    .print-control-person-page .print-control-table th:nth-child(8),
    .print-control-person-page .print-control-table td:nth-child(8) {
        background: #eefaff;
        border-left: 1px solid #0052a5;
        color: #063c66;
        font-weight: 800;
    }

    .print-control-person-page .print-control-table th:nth-child(8) {
        background: #d8f2fb;
        color: #06496f;
    }

    .print-control-person-page .print-control-table th:nth-child(9),
    .print-control-person-page .print-control-table td:nth-child(9) {
        background: #fff7e5;
        color: #815705;
        font-weight: 800;
    }

    .print-control-person-page .print-control-table th:nth-child(9) {
        background: #ffefc7;
    }

    .print-control-person-page .print-control-table th:nth-child(10),
    .print-control-person-page .print-control-table td:nth-child(10) {
        background: #fff0e8;
        color: #8a3f14;
        font-weight: 800;
    }

    .print-control-person-page .print-control-table th:nth-child(10) {
        background: #ffe2d4;
    }

    .print-control-person-page .print-control-table th:nth-child(11),
    .print-control-person-page .print-control-table td:nth-child(11) {
        background: #eefaf4;
        border-right: 1px solid #0052a5;
        color: #12613f;
        font-weight: 800;
    }

    .print-control-person-page .print-control-table th:nth-child(11) {
        background: #dff5ea;
    }

    .print-control-person-page .print-control-table tbody tr[data-future="1"] td:nth-child(8),
    .print-control-person-page .print-control-table tbody tr[data-future="1"] td:nth-child(9),
    .print-control-person-page .print-control-table tbody tr[data-future="1"] td:nth-child(10),
    .print-control-person-page .print-control-table tbody tr[data-future="1"] td:nth-child(11) {
        color: #364fc7;
        background: #eef4ff;
        font-weight: 700;
    }

    .print-control-table td[data-fichada-edge] {
        font-weight: 800;
    }

    .print-control-table td[data-fichada-edge="primera"],
    .print-control-table td[data-fichada-edge="ultima"],
    .print-control-table td[data-fichada-edge="ambas"] {
        color: #0d2e6e;
        background: #dff5fd;
    }

    .print-control-table th:nth-child(1),
    .print-control-table td:nth-child(1) { width: 9%; }
    .print-control-table th:nth-child(2),
    .print-control-table th:nth-child(3),
    .print-control-table th:nth-child(4),
    .print-control-table th:nth-child(5),
    .print-control-table th:nth-child(6),
    .print-control-table th:nth-child(7),
    .print-control-table td:nth-child(2),
    .print-control-table td:nth-child(3),
    .print-control-table td:nth-child(4),
    .print-control-table td:nth-child(5),
    .print-control-table td:nth-child(6),
    .print-control-table td:nth-child(7) {
        width: 5.5%;
        white-space: nowrap;
        text-align: center;
    }
    .print-control-table th:nth-child(8),
    .print-control-table th:nth-child(9),
    .print-control-table th:nth-child(10),
    .print-control-table th:nth-child(11),
    .print-control-table td:nth-child(8) {
        width: 6%;
        white-space: nowrap;
        text-align: center;
    }
    .print-control-table td:nth-child(9),
    .print-control-table td:nth-child(10),
    .print-control-table td:nth-child(11) {
        width: 6%;
        white-space: nowrap;
        text-align: center;
    }
    .print-control-table th:nth-child(12),
    .print-control-table td:nth-child(12) {
        width: 10%;
        text-align: center;
    }
    .print-control-table th:nth-child(13),
    .print-control-table td:nth-child(13) { width: 24%; }

    .print-novedades-dia-meta {
        grid-template-columns: 1fr .75fr .75fr .85fr .9fr .7fr;
    }

    .print-control-table.print-novedades-dia-table {
        height: auto;
        min-height: 0;
        table-layout: fixed;
        font-size: 6.1pt;
    }

    .print-control-table.print-novedades-dia-table tbody tr {
        height: auto;
        min-height: 5.8mm;
    }

    .print-control-table.print-novedades-dia-table td {
        padding-top: 1.2mm;
        padding-bottom: 1.2mm;
        vertical-align: top;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(1),
    .print-control-table.print-novedades-dia-table td:nth-child(1) {
        width: 11%;
        text-align: left;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(2),
    .print-control-table.print-novedades-dia-table td:nth-child(2) {
        width: 6.5%;
        text-align: center;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(3),
    .print-control-table.print-novedades-dia-table td:nth-child(3) {
        width: 16%;
        text-align: left;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(4),
    .print-control-table.print-novedades-dia-table td:nth-child(4) {
        width: 13%;
        text-align: left;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(5),
    .print-control-table.print-novedades-dia-table td:nth-child(5) {
        width: 9%;
        text-align: center;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(6),
    .print-control-table.print-novedades-dia-table td:nth-child(6) {
        width: 13%;
        text-align: left;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(7),
    .print-control-table.print-novedades-dia-table td:nth-child(7) {
        width: 6%;
        text-align: center;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(8),
    .print-control-table.print-novedades-dia-table td:nth-child(8) {
        width: 12%;
        text-align: left;
    }

    .print-control-table.print-novedades-dia-table th:nth-child(9),
    .print-control-table.print-novedades-dia-table td:nth-child(9) {
        width: 13.5%;
        text-align: left;
    }

    .print-report-meta {
        grid-template-columns: 1.2fr .8fr 1fr .8fr .75fr .75fr .7fr;
    }

    .print-control-table.print-report-table {
        height: auto;
        min-height: 0;
        table-layout: fixed;
        font-size: 6pt;
    }

    .print-control-table.print-report-table tbody tr {
        height: 5.2mm;
    }

    .print-control-table.print-report-table td[data-print-wrap="1"] {
        white-space: normal;
        line-height: 1.12;
        text-overflow: clip;
    }

    .print-control-table.print-work-summary-table th,
    .print-control-table.print-work-summary-table td {
        text-align: center;
    }

    .print-control-table.print-work-summary-table th:nth-child(1),
    .print-control-table.print-work-summary-table td:nth-child(1) {
        width: 10%;
        text-align: left;
    }

    .print-control-table.print-work-summary-table th:nth-child(2),
    .print-control-table.print-work-summary-table td:nth-child(2) {
        width: 5.5%;
    }

    .print-control-table.print-work-summary-table th:nth-child(3),
    .print-control-table.print-work-summary-table td:nth-child(3) {
        width: 17%;
        text-align: left;
    }

    .print-control-table.print-work-summary-table th:nth-child(4),
    .print-control-table.print-work-summary-table td:nth-child(4) {
        width: 13%;
        text-align: left;
    }

    .print-control-table.print-work-summary-table th:nth-child(5),
    .print-control-table.print-work-summary-table td:nth-child(5) {
        width: 6%;
    }

    .print-control-table.print-work-summary-table th:nth-child(6),
    .print-control-table.print-work-summary-table td:nth-child(6),
    .print-control-table.print-work-summary-table th:nth-child(7),
    .print-control-table.print-work-summary-table td:nth-child(7),
    .print-control-table.print-work-summary-table th:nth-child(8),
    .print-control-table.print-work-summary-table td:nth-child(8),
    .print-control-table.print-work-summary-table th:nth-child(9),
    .print-control-table.print-work-summary-table td:nth-child(9),
    .print-control-table.print-work-summary-table th:nth-child(10),
    .print-control-table.print-work-summary-table td:nth-child(10) {
        width: 5.3%;
    }

    .print-control-table.print-work-summary-table th:nth-child(11),
    .print-control-table.print-work-summary-table td:nth-child(11),
    .print-control-table.print-work-summary-table th:nth-child(12),
    .print-control-table.print-work-summary-table td:nth-child(12),
    .print-control-table.print-work-summary-table th:nth-child(13),
    .print-control-table.print-work-summary-table td:nth-child(13) {
        width: 7.7%;
    }

    .print-control-table.print-extra-hours-table th,
    .print-control-table.print-extra-hours-table td {
        text-align: center;
    }

    .print-control-table.print-extra-hours-table th:nth-child(1),
    .print-control-table.print-extra-hours-table td:nth-child(1) {
        width: 8%;
        text-align: left;
    }

    .print-control-table.print-extra-hours-table th:nth-child(2),
    .print-control-table.print-extra-hours-table td:nth-child(2) {
        width: 6%;
    }

    .print-control-table.print-extra-hours-table th:nth-child(3),
    .print-control-table.print-extra-hours-table td:nth-child(3),
    .print-control-table.print-extra-hours-table th:nth-child(4),
    .print-control-table.print-extra-hours-table td:nth-child(4) {
        width: 6.5%;
    }

    .print-control-table.print-extra-hours-table th:nth-child(5),
    .print-control-table.print-extra-hours-table td:nth-child(5) {
        width: 8%;
        background: #fff7e5;
        color: #815705;
        font-weight: 800;
    }

    .print-control-table.print-extra-hours-table th:nth-child(6),
    .print-control-table.print-extra-hours-table td:nth-child(6) {
        width: 8%;
        background: #eefaf4;
        color: #12613f;
        font-weight: 800;
    }

    .print-control-table.print-extra-hours-table th:nth-child(7),
    .print-control-table.print-extra-hours-table td:nth-child(7) {
        width: 8%;
        font-weight: 800;
    }

    .print-control-table.print-extra-hours-table th:nth-child(8),
    .print-control-table.print-extra-hours-table td:nth-child(8) {
        width: 49%;
        text-align: left;
    }

    .print-control-table.print-extra-hours-table .print-group-row td {
        text-align: left;
        font-weight: 800;
    }

    .print-control-table.print-extra-hours-table .print-sector-row td {
        color: #fff;
        background: #0052a5;
    }

    .print-control-table.print-extra-hours-table .print-employee-row td {
        color: #030b8e;
        background: #eaf8fd;
    }

    .print-control-table.print-night-hours-table th,
    .print-control-table.print-night-hours-table td {
        text-align: center;
    }

    .print-control-table.print-night-hours-table th:nth-child(1),
    .print-control-table.print-night-hours-table td:nth-child(1) {
        width: 9%;
        text-align: left;
    }

    .print-control-table.print-night-hours-table th:nth-child(2),
    .print-control-table.print-night-hours-table td:nth-child(2) {
        width: 6%;
    }

    .print-control-table.print-night-hours-table th:nth-child(3),
    .print-control-table.print-night-hours-table td:nth-child(3),
    .print-control-table.print-night-hours-table th:nth-child(4),
    .print-control-table.print-night-hours-table td:nth-child(4) {
        width: 7%;
    }

    .print-control-table.print-night-hours-table th:nth-child(5),
    .print-control-table.print-night-hours-table td:nth-child(5),
    .print-control-table.print-night-hours-table th:nth-child(6),
    .print-control-table.print-night-hours-table td:nth-child(6) {
        width: 8%;
        font-weight: 800;
    }

    .print-control-table.print-night-hours-table th:nth-child(6),
    .print-control-table.print-night-hours-table td:nth-child(6) {
        background: #f1f6ff;
        color: #0052a5;
    }

    .print-control-table.print-night-hours-table th:nth-child(7),
    .print-control-table.print-night-hours-table td:nth-child(7) {
        width: 55%;
        text-align: left;
    }

    .print-control-table.print-night-hours-table .print-group-row td {
        text-align: left;
        font-weight: 800;
    }

    .print-control-table.print-night-hours-table .print-sector-row td {
        color: #fff;
        background: #0052a5;
    }

    .print-control-table.print-night-hours-table .print-employee-row td {
        color: #030b8e;
        background: #eaf8fd;
    }

    .print-control-table.print-alerts-table {
        font-size: 6.1pt;
    }

    .print-control-table.print-alerts-table tbody tr {
        height: 4.35mm;
    }

    .print-control-table.print-alerts-table th,
    .print-control-table.print-alerts-table td {
        text-align: center;
        padding: .45px 1.4px;
    }

    .print-control-table.print-alerts-table th:nth-child(1),
    .print-control-table.print-alerts-table td:nth-child(1) {
        width: 9%;
        text-align: left;
    }

    .print-control-table.print-alerts-table th:nth-child(2),
    .print-control-table.print-alerts-table td:nth-child(2) {
        width: 18%;
        text-align: left;
    }

    .print-control-table.print-alerts-table th:nth-child(3),
    .print-control-table.print-alerts-table td:nth-child(3) {
        width: 9%;
    }

    .print-control-table.print-alerts-table th:nth-child(4),
    .print-control-table.print-alerts-table td:nth-child(4) {
        width: 16%;
        text-align: left;
    }

    .print-control-table.print-alerts-table th:nth-child(5),
    .print-control-table.print-alerts-table td:nth-child(5) {
        width: 17%;
        text-align: left;
    }

    .print-control-table.print-alerts-table th:nth-child(6),
    .print-control-table.print-alerts-table td:nth-child(6),
    .print-control-table.print-alerts-table th:nth-child(7),
    .print-control-table.print-alerts-table td:nth-child(7) {
        width: 6.3%;
        background: #eefaf4;
        color: #09703f;
        font-weight: 800;
    }

    .print-control-table.print-alerts-table th:nth-child(8),
    .print-control-table.print-alerts-table td:nth-child(8) {
        width: 6.5%;
        background: #fff5cf;
        color: #7a4b00;
        font-weight: 900;
    }

    .print-control-table.print-alerts-table th:nth-child(9),
    .print-control-table.print-alerts-table td:nth-child(9) {
        width: 6.5%;
        background: #ffe6e4;
        color: #9e1b16;
        font-weight: 900;
    }

    .print-control-table.print-alerts-table th:nth-child(10),
    .print-control-table.print-alerts-table td:nth-child(10) {
        width: 12%;
        text-align: left;
    }

    .print-control-table.print-alerts-table .print-alert-sector-row td {
        background: #0052a5;
        color: #fff;
        border-top: 1px solid #003b78;
        border-bottom: 1px solid #003b78;
        padding: 1.2px 2.4px;
        font-size: 6.5pt;
        font-weight: 900;
    }

    .print-alert-group {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 100%;
    }

    .print-alert-group strong {
        color: #fff;
        min-width: 36%;
    }

    .print-alert-group span {
        color: #e8f8ff;
        white-space: nowrap;
    }

    .print-alert-summary {
        display: flex;
        gap: 3px;
        margin-left: auto;
    }

    .print-alert-chip,
    .print-alert-count {
        display: inline-block;
        border: 1px solid transparent;
        border-radius: 7px;
        padding: .7px 4px;
        margin: 0 1px 1px 0;
        font-size: 5.8pt;
        font-weight: 900;
        line-height: 1.05;
        white-space: nowrap;
    }

    .print-alert-count strong {
        color: inherit;
    }

    .print-alert-chip[data-alert="tarde"],
    .print-alert-count[data-alert="tarde"] {
        background: #fff0b8;
        border-color: #f5c84f;
        color: #7a4b00;
    }

    .print-alert-chip[data-alert="retiro"],
    .print-alert-count[data-alert="retiro"] {
        background: #ffe1df;
        border-color: #ff9b93;
        color: #9e1b16;
    }

    .print-alert-chip[data-alert="marca_unica"],
    .print-alert-count[data-alert="marca_unica"] {
        background: #ffd8d4;
        border-color: #ff8b80;
        color: #94140f;
    }

    .print-alert-chip[data-alert="info"] {
        background: #eaf8fd;
        border-color: #bce5f4;
        color: #0052a5;
    }

    .print-alert-chip[data-alert="future"],
    .print-alert-count[data-alert="future"] {
        background: #eef4ff;
        border-color: #bed0ff;
        color: #364fc7;
    }

    .print-control-table.print-alerts-table .print-alert-item-row td:nth-child(2) {
        color: #00158a;
        font-weight: 900;
    }

    .print-control-table.print-alerts-table .print-alert-chip-cell {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .print-control-table.print-absence-table th:nth-child(1),
    .print-control-table.print-absence-table td:nth-child(1) {
        width: 10%;
        text-align: left;
    }

    .print-control-table.print-absence-table th:nth-child(2),
    .print-control-table.print-absence-table td:nth-child(2) {
        width: 7%;
        text-align: center;
    }

    .print-control-table.print-absence-table th:nth-child(3),
    .print-control-table.print-absence-table td:nth-child(3) {
        width: 18%;
        text-align: left;
    }

    .print-control-table.print-absence-table th:nth-child(4),
    .print-control-table.print-absence-table td:nth-child(4) {
        width: 14%;
        text-align: left;
    }

    .print-control-table.print-absence-table th:nth-child(5),
    .print-control-table.print-absence-table td:nth-child(5) {
        width: 16%;
        text-align: left;
    }

    .print-control-table.print-absence-table th:nth-child(6),
    .print-control-table.print-absence-table td:nth-child(6) {
        width: 10%;
        text-align: center;
    }

    .print-control-table.print-absence-table th:nth-child(7),
    .print-control-table.print-absence-table td:nth-child(7) {
        width: 25%;
        text-align: left;
    }

    .print-control-table.print-absence-summary-table tbody tr {
        height: auto;
        min-height: 4.25mm;
    }

    .print-control-table.print-absence-summary-table {
        font-size: 5.75pt;
    }

    .print-control-table.print-absence-summary-table td {
        vertical-align: top;
        padding-top: .45mm;
        padding-bottom: .45mm;
    }

    .print-control-table.print-absence-summary-table th:nth-child(1),
    .print-control-table.print-absence-summary-table td:nth-child(1) {
        width: 17%;
        text-align: left;
    }

    .print-control-table.print-absence-summary-table th:nth-child(2),
    .print-control-table.print-absence-summary-table td:nth-child(2) {
        width: 9%;
        text-align: center;
    }

    .print-control-table.print-absence-summary-table th:nth-child(3),
    .print-control-table.print-absence-summary-table td:nth-child(3) {
        width: 17%;
        text-align: left;
    }

    .print-control-table.print-absence-summary-table th:nth-child(4),
    .print-control-table.print-absence-summary-table td:nth-child(4) {
        width: 7%;
        text-align: center;
    }

    .print-control-table.print-absence-summary-table th:nth-child(5),
    .print-control-table.print-absence-summary-table td:nth-child(5) {
        width: 5%;
        text-align: center;
    }

    .print-control-table.print-absence-summary-table th:nth-child(6),
    .print-control-table.print-absence-summary-table td:nth-child(6) {
        width: 30%;
        text-align: left;
    }

    .print-control-table.print-absence-summary-table th:nth-child(7),
    .print-control-table.print-absence-summary-table td:nth-child(7) {
        width: 15%;
        text-align: left;
    }

    .print-control-table.print-absence-summary-table .print-absence-sector-row td {
        color: #fff;
        background: #0052a5;
        font-weight: 800;
        text-align: left;
        padding: .85mm 1.2mm;
        font-size: 6.45pt;
    }

    .print-absence-group {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 100%;
    }

    .print-absence-group strong {
        color: #fff;
        min-width: 45%;
    }

    .print-absence-group span {
        color: #e8f8ff;
        white-space: nowrap;
    }

    .print-control-table.print-absence-summary-table .print-absence-dates {
        font-size: 5.45pt;
        line-height: 1.32;
        white-space: normal;
    }

    .print-control-table.print-absence-summary-table .print-absence-day-token {
        display: inline-block;
        border: 1px solid transparent;
        border-radius: 7px;
        margin: 0 .7mm .45mm 0;
        padding: .45px 3.2px;
        white-space: nowrap;
        font-weight: 800;
    }

    .print-control-table.print-absence-summary-table .print-absence-day-token strong {
        color: inherit;
        font-weight: 900;
    }

    .print-control-table.print-absence-summary-table .print-absence-day-token[data-justificado="si"] {
        background: #e7f8ee;
        border-color: #95dcb5;
        color: #0b6b3c;
    }

    .print-control-table.print-absence-summary-table .print-absence-day-token[data-justificado="no"] {
        background: #ffe5e2;
        border-color: #ffaaa2;
        color: #a01b15;
    }

    .print-control-table.print-absence-summary-table .print-absence-justified {
        font-size: 5.75pt;
        line-height: 1.25;
        white-space: normal;
    }

    .print-control-table.print-absence-summary-table .print-absence-just-chip {
        display: inline-block;
        border: 1px solid transparent;
        border-radius: 8px;
        margin: 0 .6mm .45mm 0;
        padding: .7px 4px;
        font-size: 5.8pt;
        font-weight: 900;
        white-space: nowrap;
    }

    .print-control-table.print-absence-summary-table .print-absence-just-chip strong {
        color: inherit;
    }

    .print-control-table.print-absence-summary-table .print-absence-just-chip[data-justificado="si"] {
        background: #e7f8ee;
        border-color: #95dcb5;
        color: #0b6b3c;
    }

    .print-control-table.print-absence-summary-table .print-absence-just-chip[data-justificado="no"] {
        background: #ffe5e2;
        border-color: #ffaaa2;
        color: #a01b15;
    }

    .print-historico-meta {
        grid-template-columns: 1.35fr .5fr 1fr .8fr .62fr .52fr .62fr .72fr .5fr;
    }

    .print-historico-page {
        height: 198mm;
        display: flex;
        flex-direction: column;
    }

    .print-control-table.print-historico-table {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        table-layout: fixed;
        font-size: 6.05pt;
    }

    .print-control-table.print-historico-table tbody tr {
        height: 4.65mm;
    }

    .print-control-table.print-historico-table td {
        padding-top: .45mm;
        padding-bottom: .45mm;
        vertical-align: top;
    }

    .print-control-table.print-historico-table .print-filler-row td {
        color: transparent;
    }

    .print-control-table.print-historico-table .historico-col-fecha {
        width: 13%;
        text-align: left;
    }

    .print-control-table.print-historico-table .historico-col-tipo {
        width: 8%;
        text-align: center;
    }

    .print-control-table.print-historico-table .historico-col-concepto {
        width: 24%;
        text-align: left;
    }

    .print-control-table.print-historico-table .historico-col-observacion {
        width: 25%;
        text-align: left;
    }

    .print-control-table.print-historico-table .historico-col-tarjeta,
    .print-control-table.print-historico-table .historico-col-hora {
        width: 7.5%;
        text-align: center;
    }

    .print-control-generated {
        font-size: 6.1pt;
    }

    .print-employee-meta span {
        font-size: 6.05pt;
        line-height: 1.08;
        padding: .35mm .65mm;
    }

    .print-employee-meta strong {
        font-size: 6.55pt;
        line-height: 1.14;
        min-height: 2.8mm;
        padding: .42mm .65mm;
    }

    .print-control-table {
        font-size: 6.85pt;
    }

    .print-control-table th,
    .print-control-table td {
        padding: .45mm .65mm;
        line-height: 1.12;
    }

    .print-control-table th {
        font-size: 6.35pt;
        line-height: 1.08;
    }

    .print-control-table tbody tr,
    .print-control-table tfoot tr {
        height: 5.65mm;
    }

    .print-control-person-page.print-control-one-page {
        height: 198mm;
        min-height: 0;
    }

    .print-control-person-page.print-control-one-page .print-control-top {
        margin-bottom: 1.25mm;
        padding: 2.35mm 4.2mm 2.1mm;
    }

    .print-control-person-page.print-control-one-page .print-control-logo img {
        width: 8.8mm;
        height: 8.8mm;
    }

    .print-control-person-page.print-control-one-page .print-control-logo strong {
        font-size: 11pt;
    }

    .print-control-person-page.print-control-one-page .print-control-logo span {
        font-size: 5.9pt;
        margin-top: .65mm;
    }

    .print-control-person-page.print-control-one-page .print-control-title {
        font-size: 12.4pt;
    }

    .print-control-person-page.print-control-one-page .print-control-generated {
        font-size: 5.45pt;
        line-height: 1.2;
    }

    .print-control-person-page.print-control-one-page .print-employee-meta {
        margin-bottom: .7mm;
    }

    .print-control-person-page.print-control-one-page .print-employee-meta span {
        font-size: 5.35pt;
        line-height: 1.02;
        padding: .22mm .5mm;
    }

    .print-control-person-page.print-control-one-page .print-employee-meta strong {
        font-size: 5.85pt;
        line-height: 1.05;
        min-height: 2.35mm;
        padding: .25mm .5mm;
    }

    .print-control-person-page.print-control-one-page .print-control-table {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        font-size: 5.95pt;
    }

    .print-control-person-page.print-control-one-page .print-control-table th,
    .print-control-person-page.print-control-one-page .print-control-table td {
        padding: .25mm .45mm;
        line-height: 1.03;
    }

    .print-control-person-page.print-control-one-page .print-control-table th {
        font-size: 5.45pt;
    }

    .print-control-person-page.print-control-one-page .print-control-table thead tr,
    .print-control-person-page.print-control-one-page .print-control-table tbody tr,
    .print-control-person-page.print-control-one-page .print-control-table tfoot tr {
        height: var(--control-print-row-height, 5.25mm);
    }

    .print-control-person-page.print-control-one-page [data-print-estado] {
        min-height: 2.25mm;
        padding: .14mm .65mm;
        font-size: 5.35pt;
    }

    .print-control-table.print-report-table {
        font-size: 6.75pt;
    }

    .print-control-table.print-report-table tbody tr {
        height: 5.7mm;
    }

    .print-control-table.print-report-table td[data-print-wrap="1"] {
        line-height: 1.18;
    }

    .print-control-table.print-novedades-dia-table {
        font-size: 6.75pt;
    }

    .print-control-table.print-novedades-dia-table tbody tr {
        min-height: 6.4mm;
    }

    .print-control-table.print-absence-summary-table {
        font-size: 5.65pt;
        table-layout: fixed;
    }

    .print-control-table.print-absence-summary-table tbody tr {
        height: auto;
        min-height: 4.25mm;
    }

    .print-control-table.print-absence-summary-table .print-absence-sector-row td {
        padding-top: .5mm;
        padding-bottom: .5mm;
    }

    .print-control-table.print-absence-summary-table .print-absence-dates {
        font-size: 5.35pt;
        line-height: 1.08;
    }

    .print-control-table.print-absence-summary-table .print-absence-day-token {
        margin-right: .7mm;
        margin-bottom: .25mm;
        padding: .25px 2.6px;
    }

    .print-control-table.print-absence-summary-table .print-absence-justified {
        font-size: 5.35pt;
        line-height: 1.08;
    }

    .print-control-table.print-absence-summary-table .print-absence-just-chip {
        margin-right: .35mm;
        margin-bottom: .25mm;
        padding: .35px 3px;
        font-size: 5.25pt;
    }

    .print-control-table.print-historico-table {
        font-size: 6.65pt;
    }

    .print-control-table.print-historico-table tbody tr {
        height: 5.35mm;
    }

    [data-print-estado] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.35mm;
        padding: .12mm .9mm;
        border-radius: 999px;
        font-size: 6pt;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    [data-print-estado="ok"] {
        color: #12805c;
        background: #e5f6ef;
    }

    [data-print-estado="warn"] {
        color: #a86504;
        background: #fff2d8;
    }

    [data-print-estado="bad"] {
        color: #b42318;
        background: #fde7e5;
    }

    [data-print-estado="info"] {
        color: #0052a5;
        background: #e4f6fd;
    }

    [data-print-estado="future"] {
        color: #364fc7;
        background: #eef4ff;
    }

    [data-print-estado="muted"] {
        color: #5b6a9a;
        background: #edf3f8;
    }

    .print-report-version {
        margin-top: .8mm;
        color: #5b6a9a;
        font-size: 6pt;
        font-weight: 800;
        line-height: 1;
        text-align: left;
    }

    .print-empty {
        margin-top: 30mm;
        color: #061846;
        font-size: 13pt;
        font-weight: 800;
        text-align: center;
    }

}
