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

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

    .no-print {
        display: none !important;
    }

    .cabecera-fija-clon {
        display: none !important;
    }

    html {
        margin: 0 !important;
        overflow: visible !important;
    }

    body {
        background: #FFFFFF !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    main {
        display: block !important;
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .report-public-page {
        background: #FFFFFF !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .report-print-sheet {
        break-after: avoid !important;
        break-before: avoid !important;
        break-inside: avoid !important;
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: none !important;
        overflow: visible !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
        page-break-inside: avoid !important;
        padding-top: var(--print-top-offset, 0) !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        zoom: var(--print-scale, 1);
    }

    .report-public-layout {
        align-items: start !important;
        break-inside: avoid !important;
        display: grid !important;
        gap: 1.8mm !important;
        grid-template-columns: minmax(0, 1fr) 44mm !important;
        max-width: none !important;
        page-break-inside: avoid !important;
        width: 100% !important;
    }

    .report-card,
    .report-side-card {
        border-radius: 0 !important;
        break-inside: avoid !important;
        box-shadow: none !important;
        overflow: visible !important;
        page-break-inside: avoid !important;
        padding: 0 !important;
    }

    .report-table-shell {
        overflow: visible !important;
    }

    .report-official-header,
    .report-attendance-table {
        min-width: 0 !important;
    }

    .report-main-title {
        font-size: 12px !important;
        line-height: 1.1 !important;
        padding: 2px !important;
    }

    .report-header-grid {
        font-size: 7.2px !important;
        grid-template-columns: var(--w-left-block, 34%) 1fr 1fr 1.15fr 0.75fr 1.3fr !important;
    }

    .report-meta-cell {
        min-height: 6.8mm !important;
        padding: 1mm !important;
    }

    .report-meta-cell strong {
        font-size: 6.2px !important;
        line-height: 1.1 !important;
    }

    .report-meta-cell span {
        font-size: 7.4px !important;
        line-height: 1.1 !important;
    }

    .report-school-logo {
        height: 16mm !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        width: 16mm !important;
    }

    .report-school-block {
        gap: 1mm !important;
        grid-template-columns: 16mm 1fr !important;
        padding: 1mm !important;
    }

    .report-school-name {
        font-size: 8.3px !important;
        line-height: 1.15 !important;
        padding: 2px 4px !important;
    }

    .report-attendance-table {
        font-size: var(--print-table-font, 5.4px) !important;
        line-height: 1.05 !important;
    }

    .report-attendance-table th,
    .report-attendance-table td {
        padding: 1px !important;
    }

    .report-attendance-table thead th:nth-last-child(-n + 6),
    .report-attendance-table tbody td:nth-last-child(-n + 6) {
        max-width: 36px !important;
        min-width: 28px !important;
        width: 34px !important;
    }

    .resumen-header {
        font-size: 5.8px !important;
        height: 8mm !important;
        line-height: 1.05 !important;
        max-width: 36px !important;
        min-width: 28px !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        padding: 1px !important;
        text-align: center !important;
        text-overflow: clip !important;
        vertical-align: middle !important;
        white-space: normal !important;
        width: 34px !important;
        word-break: normal !important;
    }

    .resumen-header.largo {
        font-size: 5.1px !important;
        line-height: 1 !important;
    }

    .resumen-celda {
        font-size: 7.3px !important;
        max-width: 36px !important;
        min-width: 28px !important;
        font-weight: 800 !important;
        padding: 1px !important;
        text-align: center !important;
        vertical-align: middle !important;
        width: 34px !important;
    }

    .report-attendance-table tbody td {
        height: var(--print-row-height, 2.5mm) !important;
    }

    .nombre-alumno {
        font-size: 7.5px !important;
        line-height: 1 !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    .nombre-alumno.largo {
        font-size: 6.7px !important;
    }

    .nombre-alumno.muy-largo {
        font-size: 6px !important;
    }

    .report-summary-footer td {
        box-sizing: border-box !important;
        font-size: 5.8px !important;
        font-weight: 900 !important;
        height: 3mm !important;
        line-height: 1 !important;
        padding: 1px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .report-summary-footer .report-summary-day {
        max-width: var(--w-day) !important;
        min-width: var(--w-day) !important;
        width: var(--w-day) !important;
    }

    .fila-separador-totales td {
        background: transparent !important;
        border: none !important;
        height: 10px !important;
        padding: 0 !important;
    }

    .report-side-card {
        align-self: start !important;
        font-size: 7px !important;
    }

    .report-side-card .text-4xl {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .report-side-card .rounded-lg,
    .report-side-card .border {
        border-radius: 0 !important;
    }

    .report-side-card .p-4 {
        padding: 1.5mm !important;
    }

    .report-side-card .mt-4 {
        margin-top: 1.5mm !important;
    }

    .report-side-card .mb-4 {
        margin-bottom: 1mm !important;
    }

    .report-side-card .space-y-3 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.2mm !important;
    }

    .report-side-card .h-5 {
        height: 3mm !important;
    }

    .panel-derecho-info {
        font-size: 7px !important;
        line-height: 1.28 !important;
    }

    .panel-derecho-info strong {
        font-weight: 800 !important;
    }

    .report-qr-image {
        height: 19mm !important;
        width: 19mm !important;
    }

    .report-qr-box p:last-child {
        display: none !important;
    }
}

.login-page {
    background: #FFFFFF;
    color: #071A3D;
    display: grid;
    grid-template-columns: minmax(0, 56.6%) minmax(480px, 43.4%);
    min-height: 100svh;
    overflow: hidden;
}

.login-left-panel {
    background: #FFD200;
    min-height: 100svh;
    overflow: hidden;
    position: relative;
}

.login-square-rain {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.login-square-rain span {
    animation: login-square-fall var(--fall-duration, 12s) linear infinite;
    background: rgba(255, 243, 163, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.35rem;
    box-shadow: 0 12px 24px rgba(246, 180, 0, 0.12);
    height: var(--size, 18px);
    left: var(--left, 50%);
    opacity: 0;
    position: absolute;
    top: -12vh;
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    width: var(--size, 18px);
}

.login-square-rain span:nth-child(1) { --left: 7%; --size: 12px; --fall-duration: 11s; --drift: 26px; animation-delay: -1s; }
.login-square-rain span:nth-child(2) { --left: 14%; --size: 18px; --fall-duration: 14s; --drift: -18px; animation-delay: -6s; }
.login-square-rain span:nth-child(3) { --left: 22%; --size: 10px; --fall-duration: 10s; --drift: 34px; animation-delay: -3s; }
.login-square-rain span:nth-child(4) { --left: 31%; --size: 22px; --fall-duration: 16s; --drift: -28px; animation-delay: -9s; }
.login-square-rain span:nth-child(5) { --left: 39%; --size: 14px; --fall-duration: 12s; --drift: 22px; animation-delay: -4s; }
.login-square-rain span:nth-child(6) { --left: 47%; --size: 26px; --fall-duration: 18s; --drift: -34px; animation-delay: -11s; }
.login-square-rain span:nth-child(7) { --left: 54%; --size: 11px; --fall-duration: 13s; --drift: 20px; animation-delay: -7s; }
.login-square-rain span:nth-child(8) { --left: 61%; --size: 19px; --fall-duration: 15s; --drift: -16px; animation-delay: -2s; }
.login-square-rain span:nth-child(9) { --left: 68%; --size: 13px; --fall-duration: 10s; --drift: 30px; animation-delay: -8s; }
.login-square-rain span:nth-child(10) { --left: 76%; --size: 24px; --fall-duration: 17s; --drift: -26px; animation-delay: -5s; }
.login-square-rain span:nth-child(11) { --left: 83%; --size: 15px; --fall-duration: 12s; --drift: 16px; animation-delay: -10s; }
.login-square-rain span:nth-child(12) { --left: 91%; --size: 20px; --fall-duration: 19s; --drift: -38px; animation-delay: -13s; }
.login-square-rain span:nth-child(13) { --left: 18%; --size: 28px; --fall-duration: 20s; --drift: 42px; animation-delay: -15s; }
.login-square-rain span:nth-child(14) { --left: 35%; --size: 9px; --fall-duration: 9s; --drift: -14px; animation-delay: -5s; }
.login-square-rain span:nth-child(15) { --left: 50%; --size: 16px; --fall-duration: 13s; --drift: 24px; animation-delay: -12s; }
.login-square-rain span:nth-child(16) { --left: 66%; --size: 21px; --fall-duration: 16s; --drift: -22px; animation-delay: -1s; }
.login-square-rain span:nth-child(17) { --left: 80%; --size: 12px; --fall-duration: 11s; --drift: 18px; animation-delay: -7s; }
.login-square-rain span:nth-child(18) { --left: 94%; --size: 17px; --fall-duration: 14s; --drift: -20px; animation-delay: -4s; }

@keyframes login-square-fall {
    0% {
        background: rgba(255, 255, 255, 0.25);
        opacity: 0;
        transform: translate3d(0, -14vh, 0) rotate(0deg);
    }
    12% {
        opacity: 0.68;
    }
    38% {
        background: rgba(255, 243, 163, 0.55);
    }
    66% {
        background: rgba(246, 180, 0, 0.32);
        opacity: 0.5;
    }
    100% {
        background: rgba(255, 255, 255, 0.18);
        opacity: 0;
        transform: translate3d(var(--drift, 20px), 116vh, 0) rotate(420deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-square-rain span {
        animation: none;
        display: none;
    }
}

.login-left-content {
    margin-left: clamp(2.75rem, 8.7vw, 9.1rem);
    max-width: min(74%, 700px);
    padding: clamp(3.3rem, 7.6vh, 8.3rem) clamp(1.5rem, 4vw, 3rem) 1.25rem 0;
    position: relative;
    z-index: 2;
}

.login-dots {
    left: 3.6rem;
    opacity: 0.58;
    position: absolute;
    top: 3rem;
    width: 72px;
}

.login-arcs {
    opacity: 0.8;
    position: absolute;
    right: -0.5rem;
    top: -0.2rem;
    width: 286px;
}

.login-clipboard {
    opacity: 0.42;
    position: absolute;
    right: 2.1rem;
    top: 10rem;
    width: min(260px, 24vw);
}

.login-school {
    bottom: 0;
    left: 0;
    opacity: 0.42;
    position: absolute;
    width: min(180px, 18vw);
}

.login-brand-img {
    display: block;
    height: auto;
    margin-bottom: clamp(1.8rem, 3.8vh, 3.2rem);
    max-width: min(100%, 260px);
    object-fit: contain;
    width: clamp(205px, 16vw, 260px);
}

.login-title {
    color: #071A3D;
    font-size: clamp(3.1rem, 4.35vw, 4.6rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.98;
    max-width: 650px;
}

.login-copy {
    color: #071A3D;
    font-size: clamp(1rem, 1.13vw, 1.22rem);
    font-weight: 600;
    line-height: 1.5;
    margin-top: clamp(1rem, 2.3vh, 1.55rem);
    max-width: 600px;
}

.login-feature-grid {
    display: grid;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(1.6rem, 3.8vh, 2.9rem);
    max-width: 690px;
}

.login-feature-card {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    box-shadow: 0 24px 42px rgba(7, 26, 61, 0.12);
    display: flex;
    flex-direction: column;
    min-height: clamp(160px, 22.5vh, 212px);
    padding: clamp(1rem, 2vh, 1.45rem) 1rem clamp(0.9rem, 1.8vh, 1.25rem);
    text-align: center;
}

.login-feature-icon-wrap {
    align-items: center;
    background: #FFF4C7;
    border-radius: 999px;
    display: inline-flex;
    height: clamp(60px, 8.6vh, 80px);
    justify-content: center;
    margin-bottom: clamp(0.65rem, 1.6vh, 1rem);
    width: clamp(60px, 8.6vh, 80px);
}

.login-feature-icon-wrap img {
    height: clamp(40px, 5.5vh, 52px);
    width: clamp(40px, 5.5vh, 52px);
}

.login-feature-card h2 {
    color: #071A3D;
    font-size: clamp(1rem, 1.15vw, 1.16rem);
    font-weight: 900;
    line-height: 1.15;
}

.login-feature-card p {
    color: #071A3D;
    font-size: clamp(0.8rem, 0.85vw, 0.93rem);
    font-weight: 500;
    line-height: 1.45;
    margin-top: 0.55rem;
}

.login-credit {
    bottom: clamp(0.75rem, 1.7vh, 1.05rem);
    color: #071A3D;
    font-size: clamp(0.82rem, 0.85vw, 0.95rem);
    font-weight: 700;
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 3;
}

.login-right-panel {
    align-items: center;
    background:
        radial-gradient(circle at 42% 34%, rgba(246, 248, 252, 0.9) 0 18%, transparent 34%),
        #FFFFFF;
    display: flex;
    justify-content: center;
    min-height: 100svh;
    padding: clamp(1.4rem, 4.5vh, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #EEF2F7;
    border-radius: 1.15rem;
    box-shadow: 0 30px 70px rgba(7, 26, 61, 0.14);
    max-width: min(510px, 88%);
    padding: clamp(1.8rem, 4.2vh, 2.65rem) clamp(2rem, 3.2vw, 3rem) clamp(1.6rem, 3.6vh, 2.35rem);
    width: 100%;
}

.login-lock-img {
    display: block;
    height: clamp(68px, 9.3vh, 88px);
    margin: 0 auto clamp(0.75rem, 1.8vh, 1.15rem);
    width: clamp(68px, 9.3vh, 88px);
}

.login-card h2 {
    color: #071A3D;
    font-size: clamp(1.8rem, 2.4vw, 2.15rem);
    font-weight: 950;
    line-height: 1.05;
    text-align: center;
}

.login-form-copy {
    color: #66728B;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 500;
    margin-top: clamp(0.45rem, 1.1vh, 0.65rem);
    text-align: center;
}

.login-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.8rem;
    color: #B91C1C;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
}

.login-label {
    color: #071A3D;
    display: block;
    font-size: 0.93rem;
    font-weight: 900;
    margin-top: clamp(0.9rem, 2vh, 1.35rem);
}

.login-input-wrap {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #D8DFEA;
    border-radius: 0.65rem;
    display: flex;
    gap: 0.7rem;
    margin-top: clamp(0.35rem, 0.9vh, 0.55rem);
    min-height: clamp(44px, 5.5vh, 52px);
    padding: 0 1rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-input-wrap:focus-within {
    border-color: #F6B400;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.22);
}

.login-input-wrap input {
    background: transparent;
    border: 0;
    color: #071A3D;
    flex: 1;
    font-size: 0.98rem;
    font-weight: 600;
    min-width: 0;
    outline: 0;
}

.login-input-wrap img {
    height: 22px;
    opacity: 0.72;
    width: 22px;
}

.login-icon-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    transition: background 150ms ease, opacity 150ms ease;
    width: 32px;
}

.login-icon-button:hover,
.login-icon-button[aria-pressed="true"] {
    background: #F2F5FB;
}

.login-options {
    align-items: center;
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    margin-top: clamp(0.7rem, 1.6vh, 1rem);
}

.login-remember {
    align-items: center;
    color: #66728B;
    display: inline-flex;
    font-weight: 700;
    gap: 0.5rem;
    transition: color 150ms ease, opacity 150ms ease;
}

.login-remember:not(.is-active) {
    color: #9CA3AF;
}

.login-remember:not(.is-active) .login-check {
    background: linear-gradient(180deg, #E5E7EB 0%, #C0C7D2 100%);
    border: 1px solid #AEB7C4;
}

.login-remember:not(.is-active) .login-check img {
    opacity: 0;
    transform: scale(0.75);
}

.login-check {
    align-items: center;
    background: #58CC02;
    border-radius: 0.25rem;
    display: inline-flex;
    height: 18px;
    justify-content: center;
    transition: background 150ms ease, border-color 150ms ease;
    width: 18px;
}

.login-check img {
    height: 13px;
    opacity: 1;
    transition: opacity 150ms ease, transform 150ms ease;
    width: 13px;
}

.login-options a {
    color: #15A900;
    font-weight: 800;
    text-decoration: none;
}

.login-submit {
    align-items: center;
    background: linear-gradient(180deg, #19C900 0%, #12A900 100%);
    border-radius: 0.65rem;
    box-shadow: 0 14px 26px rgba(28, 185, 0, 0.34);
    color: #FFFFFF;
    display: flex;
    font-size: 1.15rem;
    font-weight: 950;
    gap: 0.65rem;
    justify-content: center;
    margin-top: clamp(1.15rem, 2.7vh, 1.9rem);
    min-height: clamp(48px, 6.1vh, 58px);
    transition: filter 150ms ease, transform 150ms ease;
    width: 100%;
}

.login-submit:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.login-submit img {
    height: 26px;
    width: 26px;
}

.login-divider {
    align-items: center;
    color: #77839A;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr auto 1fr;
    margin-top: clamp(1.3rem, 3vh, 2.25rem);
}

.login-divider span {
    background: #DDE3ED;
    height: 1px;
}

.login-divider strong {
    font-size: 1rem;
    font-weight: 600;
}

.login-secure {
    align-items: center;
    color: #66728B;
    display: flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.45rem;
    justify-content: center;
    margin-top: clamp(0.8rem, 2vh, 1.35rem);
}

.login-secure img {
    height: 18px;
    width: 18px;
}

@media (min-width: 1181px) and (max-height: 860px) {
    .login-left-content {
        margin-left: clamp(2.5rem, 8vw, 8.2rem);
        max-width: min(76%, 650px);
        padding-top: clamp(2.4rem, 6.2vh, 4.2rem);
    }

    .login-brand-img {
        margin-bottom: clamp(1.45rem, 2.8vh, 2.15rem);
        width: clamp(195px, 14.5vw, 240px);
    }

    .login-title {
        font-size: clamp(2.8rem, 3.85vw, 3.95rem);
        max-width: 590px;
    }

    .login-copy {
        font-size: clamp(0.94rem, 1vw, 1.08rem);
        line-height: 1.42;
        max-width: 560px;
    }

    .login-feature-grid {
        margin-top: clamp(1.15rem, 2.7vh, 1.75rem);
    }

    .login-feature-card {
        min-height: clamp(140px, 18.5vh, 166px);
        padding: 0.9rem 0.85rem 0.75rem;
    }

    .login-feature-icon-wrap {
        height: clamp(52px, 7vh, 64px);
        width: clamp(52px, 7vh, 64px);
    }

    .login-feature-icon-wrap img {
        height: clamp(34px, 4.7vh, 42px);
        width: clamp(34px, 4.7vh, 42px);
    }

    .login-feature-card h2 {
        font-size: 0.98rem;
    }

    .login-feature-card p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .login-card {
        max-width: min(500px, 86%);
        padding: clamp(1.45rem, 3vh, 2rem) clamp(1.8rem, 3vw, 2.6rem);
    }

    .login-lock-img {
        height: clamp(58px, 7.8vh, 74px);
        width: clamp(58px, 7.8vh, 74px);
    }

    .login-card h2 {
        font-size: clamp(1.65rem, 2.1vw, 1.95rem);
    }
}

@media (max-width: 1180px) {
    .login-page {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .login-left-panel,
    .login-right-panel {
        min-height: auto;
    }

    .login-left-content {
        margin: 0 auto;
        max-width: 820px;
        padding: 4rem 2rem;
    }

    .login-title {
        font-size: clamp(2.75rem, 8vw, 4.5rem);
    }

    .login-credit {
        margin-top: 2rem;
        position: static;
        width: auto;
    }

    .login-right-panel {
        padding: 3rem 1.5rem 4rem;
    }
}

@media (max-width: 720px) {
    .login-left-content {
        padding: 2.5rem 1.25rem;
    }

    .login-brand-img {
        max-width: 100%;
        width: clamp(190px, 68vw, 240px);
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .login-clipboard,
    .login-school {
        display: none;
    }

    .login-card {
        padding: 2rem 1.35rem;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }
}

.nav-link {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.nav-link:hover {
    background: #FFF3A3;
}

.nav-button {
    border-radius: 0.5rem;
    background: #58CC02;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    transition: background 150ms ease, transform 150ms ease;
}

.nav-button:hover {
    background: #3EA000;
    transform: translateY(-1px);
}

.btn-primary {
    border-radius: 0.5rem;
    background: #58CC02;
    color: #FFFFFF;
    font-weight: 800;
    padding: 0.65rem 1rem;
}

.btn-primary:hover {
    background: #3EA000;
}

.btn-cabecera {
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background: #FFFFFF;
    color: #1F2937;
    font-weight: 800;
    padding: 0.55rem 0.85rem;
}

.btn-cabecera:hover {
    background: #FFF3A3;
    border-color: #FFD600;
}

.estado-leyenda-grid {
    align-items: stretch;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem !important;
    justify-content: center;
}

.estado-leyenda-card {
    align-items: center;
    border: 1px solid #E5E7EB;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 180px;
    min-height: 3.6rem;
    min-width: 0;
    width: 180px;
}

.estado-leyenda-text {
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .estado-leyenda-grid {
        flex-wrap: nowrap;
    }

    .estado-leyenda-card {
        font-size: 0.72rem;
    }

    .estado-leyenda-card:nth-child(1) {
        flex-basis: 165px;
        width: 165px;
    }

    .estado-leyenda-card:nth-child(2) {
        flex-basis: 165px;
        width: 165px;
    }

    .estado-leyenda-card-largo {
        flex-basis: 245px;
        width: 245px;
    }

    .estado-leyenda-card:nth-child(4) {
        flex-basis: 140px;
        width: 140px;
    }

    .estado-leyenda-card:nth-child(5) {
        flex-basis: 230px;
        width: 230px;
    }

    .estado-leyenda-card:nth-child(6) {
        flex-basis: 165px;
        width: 165px;
    }
}

@media (max-width: 1023px) {
    .estado-leyenda-card {
        flex: 1 1 230px;
        min-width: 0;
        width: auto;
    }

    .estado-leyenda-card-largo {
        min-width: 0;
        width: auto;
    }

    .estado-leyenda-text {
        white-space: normal;
    }
}

.field {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    padding: 0.65rem 0.75rem;
}

.field:focus {
    outline: 3px solid #FFF3A3;
    border-color: #FFD600;
}

.asistencia-excel th,
.asistencia-excel td {
    white-space: nowrap;
}

.asistencia-excel th,
.asistencia-excel td {
    border-color: #E5E7EB;
}

.tabla-scroll-superior {
    height: 16px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.tabla-scroll-superior-contenido {
    height: 1px;
}

.tabla-scroll-principal {
    overflow-x: auto;
    overflow-y: visible;
}

.sticky-col-num,
.sticky-col-name,
.sticky-col-summary {
    position: sticky;
}

.asistencia-excel thead .sticky-col-num,
.asistencia-excel thead .sticky-col-name {
    background: #FFF3A3;
    z-index: 45;
}

.asistencia-excel tbody .sticky-col-num,
.asistencia-excel tbody .sticky-col-name {
    background: #FFFFFF;
    z-index: 25;
}

.sticky-col-num {
    left: 0;
    min-width: 4rem;
    width: 4rem;
}

.sticky-col-name {
    left: 4rem;
    min-width: 22rem;
    width: 22rem;
}

.sticky-col-summary {
    left: 0;
    min-width: 26rem;
    width: 26rem;
}

.cabecera-fija-clon {
    background: #FFFFFF;
    display: none;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 60;
}

.cabecera-fija-clon.is-visible {
    display: block;
}

.cabecera-fija-scroll {
    overflow: hidden;
    width: 100%;
}

.cabecera-fija-tabla {
    background: #FFFFFF;
    margin: 0;
}

.asistencia-cell {
    align-items: center;
    border-radius: 0.25rem;
    display: inline-flex;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    min-width: 2rem;
    padding: 0 0.35rem;
    transition: filter 120ms ease, transform 120ms ease;
}

.asistencia-cell:hover {
    filter: brightness(0.95);
    transform: scale(1.04);
}

.asistencia-cell.is-saving {
    opacity: 0.65;
}

.asistencia-excel tbody tr[data-student-row] td {
    height: 2.55rem;
}

.asistencia-excel thead th:nth-last-child(-n + 6),
.asistencia-excel tbody td.total-cell,
.asistencia-excel tbody td.total-general,
.asistencia-excel tfoot td:nth-last-child(-n + 6) {
    min-width: 28px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    width: 34px;
}

.asistencia-excel tfoot td {
    font-size: 0.72rem;
    padding-bottom: 0.35rem;
    padding-top: 0.35rem;
}

.resumen-header {
    font-size: 6px;
    line-height: 1.05;
    max-width: 36px;
    min-width: 32px;
    overflow: visible;
    overflow-wrap: normal;
    padding: 1px;
    text-align: center;
    text-overflow: clip;
    vertical-align: middle;
    white-space: normal !important;
    width: 32px;
    word-break: normal;
}

.resumen-header.largo {
    font-size: 5.5px;
    line-height: 1;
}

.resumen-celda {
    font-size: 7px;
    max-width: 36px;
    min-width: 32px;
    padding: 1px;
    text-align: center;
    vertical-align: middle;
    width: 32px;
}

.nombre-alumno {
    font-size: 7.5px;
    line-height: 1;
    overflow: hidden;
    text-overflow: clip;
    vertical-align: middle;
    white-space: nowrap;
}

.nombre-alumno.largo {
    font-size: 6.7px;
}

.nombre-alumno.muy-largo {
    font-size: 6px;
}

@media screen {
    .web-report-table .web-student-name {
        font-size: 11px;
        font-weight: 800;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
        white-space: nowrap;
    }

    .web-report-table .web-student-name.largo {
        font-size: 10px;
    }

    .web-report-table .web-student-name.muy-largo {
        font-size: 9px;
    }

    .web-report-table .web-row-number {
        font-size: 14px;
        font-weight: 800;
        line-height: 1;
        text-align: center;
        vertical-align: middle;
    }

    .web-report-table .web-summary-number {
        font-size: 12px;
        font-weight: 800;
        line-height: 1.1;
        text-align: center;
        vertical-align: middle;
    }

    .asistencia-excel.web-report-table .col-resumen-corto {
        max-width: 58px;
        min-width: 58px;
        width: 58px;
    }

    .asistencia-excel.web-report-table .col-resumen-medio {
        max-width: 68px;
        min-width: 68px;
        width: 68px;
    }

    .asistencia-excel.web-report-table .col-resumen-largo {
        max-width: 78px;
        min-width: 78px;
        width: 78px;
    }

    .web-report-table .resumen-header-cell {
        font-size: 7px;
        font-weight: 800;
        line-height: 1;
        overflow: hidden;
        overflow-wrap: normal;
        padding: 1px;
        text-align: center;
        text-overflow: clip;
        vertical-align: middle;
        white-space: normal !important;
        word-break: keep-all;
    }

    .web-report-table .resumen-header-cell.largo {
        font-size: 6px;
        line-height: 1;
    }
}

.estado-asistente {
    background: #00B050;
    color: #FFFFFF;
}

.estado-tardanza {
    background: #F4A261;
    color: #1F2937;
}

.estado-tardanza-justificada {
    background: #B39DDB;
    color: #1F2937;
}

.estado-falta {
    background: #FF0000;
    color: #FFFFFF;
}

.estado-falta-justificada {
    background: #FFF200;
    color: #1F2937;
}

.estado-sin-asistencia {
    background: #FFFFFF;
    color: #1F2937;
    box-shadow: inset 0 0 0 1px #D1D5DB;
}

.dia-no-habil {
    background: #E5E7EB;
    color: #6B7280;
}

.estado-total {
    background: #D1D5DB;
    color: #1F2937;
}

.report-official-header {
    border: 1px solid #111827;
    border-bottom: 0;
    box-sizing: border-box;
    min-width: 980px;
}

.report-official-header *,
.report-attendance-table,
.report-attendance-table * {
    box-sizing: border-box;
}

.report-main-title {
    background: #F3DFCF;
    border-bottom: 1px solid #111827;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
    padding: 0.45rem;
    text-align: center;
}

.report-header-grid {
    display: grid;
    grid-template-columns: var(--w-left-block, 34%) 1fr 1fr 1.15fr 0.75fr 1.3fr;
}

.report-school-block {
    align-items: center;
    border-right: 1px solid #111827;
    display: grid;
    gap: 0.5rem;
    grid-column: 1;
    grid-row: span 2;
    grid-template-columns: 4.5rem 1fr;
    padding: 0.45rem;
}

.bloque-institucion {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.report-school-logo {
    align-items: center;
    border: 1px solid #334155;
    border-radius: 0.25rem;
    display: flex;
    font-weight: 900;
    height: 4rem;
    justify-content: center;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 4rem;
}

.report-logo-fallback {
    background: linear-gradient(135deg, #ef4444, #1f4f8f);
    color: #FFFFFF;
    font-size: 1.2rem;
}

.report-school-name {
    align-items: center;
    background: #386397;
    color: #FFFFFF;
    display: flex;
    font-size: 1rem;
    font-weight: 900;
    justify-content: center;
    line-height: 1.2;
    min-height: 3.5rem;
    padding: 0.35rem 0.75rem;
    text-align: center;
}

.report-meta-cell {
    align-items: center;
    border-bottom: 1px solid #111827;
    border-right: 1px solid #111827;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    justify-content: center;
    min-height: 2.05rem;
    padding: 0.25rem;
    text-align: center;
}

.report-meta-cell strong {
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.report-meta-cell span {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
}

.report-period-cell {
    grid-column: 6;
    grid-row: span 2;
    min-height: 4.1rem;
}

.report-dre-cell {
    grid-column: 2 / span 2;
    grid-row: 1;
}

.report-level-cell {
    grid-column: 4 / span 2;
    grid-row: 1;
}

.report-grade-cell {
    grid-column: 2;
    grid-row: 2;
}

.report-teacher-cell {
    grid-column: 3;
    grid-row: 2;
}

.report-area-cell {
    grid-column: 4;
    grid-row: 2;
}

.report-turn-cell {
    grid-column: 5;
    grid-row: 2;
}

.report-table-shell {
    overflow-x: auto;
    overflow-y: visible;
}

.report-attendance-table {
    table-layout: fixed;
    width: 100%;
}

.report-attendance-table {
    min-width: 980px;
}

.report-attendance-table th,
.report-attendance-table td {
    border: 1px solid #111827;
    overflow: hidden;
    padding: 0.2rem;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.report-attendance-table thead th:nth-last-child(-n + 6),
.report-attendance-table tbody td:nth-last-child(-n + 6) {
    max-width: 36px;
    min-width: 28px;
    width: 34px;
}

.report-attendance-table .col-nro {
    max-width: var(--w-nro);
    min-width: var(--w-nro);
    width: var(--w-nro);
}

.report-attendance-table .col-nombre {
    max-width: var(--w-nombres);
    min-width: var(--w-nombres);
    width: var(--w-nombres);
}

.report-attendance-table .col-dia {
    max-width: var(--w-day);
    min-width: var(--w-day);
    width: var(--w-day);
}

.report-attendance-table .col-resumen {
    max-width: var(--w-summary);
    min-width: var(--w-summary);
    width: var(--w-summary);
}

.report-attendance-table .resumen-header {
    font-size: 6px;
    line-height: 1.05;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
}

.report-attendance-table .resumen-header.largo {
    font-size: 5.5px;
    line-height: 1;
}

.report-attendance-table .resumen-celda {
    font-size: 7px;
    padding: 1px;
}

.report-attendance-table tbody td {
    height: 1.45rem;
}

.report-student-cell {
    font-weight: 800;
    text-align: left !important;
}

.report-state-cell {
    font-weight: 900;
    vertical-align: middle;
}

.report-total-cell {
    font-weight: 800;
    vertical-align: middle;
}

.panel-derecho-info {
    font-size: 12px;
    line-height: 1.35;
}

.panel-derecho-info strong {
    font-weight: 700;
}

.report-month-cell,
.report-summary-label,
.report-summary-total {
    font-weight: 900;
}

.report-summary-footer td {
    box-sizing: border-box;
    font-size: 0.62rem;
    font-weight: 900;
    height: 22px;
    padding: 0.2rem;
    text-align: center;
    vertical-align: middle;
}

.report-summary-footer .report-summary-day {
    max-width: var(--w-day);
    min-width: var(--w-day);
    width: var(--w-day);
}

.fila-separador-totales td {
    background: transparent !important;
    border: none !important;
    height: 10px;
    padding: 0 !important;
}

@media (max-width: 1280px) {
    .report-public-layout {
        grid-template-columns: 1fr;
    }

    .report-side-card {
        max-width: 420px;
    }
}
