:root {
    --principal: #c6b388;
    --principal-oscuro: #5d5036;
    --secundario: #f2ede1;
    --borde: #ded7c8;
    --texto: #3f382d;
    --error: #8d2727;
    --error-fondo: #f8e6e6;
    --exito: #27643b;
    --exito-fondo: #e6f4ea;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f7f5f0;
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.contenedor {
    width: min(100% - 24px, 760px);
    margin: 24px auto;
}

.acceso { max-width: 520px; }
.encabezado { margin-bottom: 20px; text-align: center; }
.encabezado h1 { margin-bottom: 4px; }
.encabezado p { margin-top: 0; }

.panel,
form {
    padding: 20px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    background: #fff;
}

.panel + .panel { margin-top: 18px; }
.campo { margin-bottom: 18px; }
.campo label { display: block; margin-bottom: 6px; font-weight: 700; }

.campo input,
.campo select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #899ba3;
    border-radius: 5px;
    font-size: 1rem;
    background: #fff;
}

.acciones,
.opciones-acceso {
    display: grid;
    gap: 12px;
}

.boton {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.boton-principal { background: var(--principal); color: var(--texto); }
.boton-principal:hover { background: #a9956b; color: var(--texto); }

.boton-secundario {
    border-color: var(--principal);
    background: var(--secundario);
    color: var(--principal-oscuro);
}

.boton-enlace { background: transparent; color: var(--principal-oscuro); }

.mensaje {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 5px;
}

.mensaje-error { border-color: #d39b9b; background: var(--error-fondo); color: var(--error); }
.mensaje-exito { border-color: #95c4a2; background: var(--exito-fondo); color: var(--exito); }

.datos-usuario {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
}

.datos-usuario dt { font-weight: 700; }
.datos-usuario dd { margin: 0; }
.form-salir { margin-top: 18px; padding: 0; border: 0; background: transparent; text-align: center; }
.modulos .boton { width: 100%; }

/* Menús de trámites. Esta capa se comparte entre los índices migrados y
   permite que cada módulo conserve únicamente su contenido específico. */
.pagina-menu {
    background: #f7f5f0;
}

.cabecera-sistema {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.cabecera-sistema img {
    width: min(200px, 38vw);
    height: auto;
}

.cabecera-sistema h1 { margin: 0; }
.cabecera-sistema p { margin: 4px 0 0; }

.contenedor-menu { max-width: 860px; }

.menu-tramite > h2 {
    margin: 0 0 18px;
    text-align: center;
}

/* Las fichas agrupan el título y las opciones de cada trámite. */
.menu-tramite ul { line-height: 1.45; }
.menu-tramite li { margin: 8px 0; }
.menu-tramite li ul { margin: 6px 0 0; padding-left: 22px; color: #6f6a61; }
.menu-tramite a { color: var(--principal-oscuro); font-weight: 700; }
.menu-tramite a:hover { color: var(--principal); }

.menu-tramite > p,
.menu-tramite > blockquote {
    margin: 18px 0;
}

.menu-tramite > hr { display: none; }

.menu-tramite .aviso-importante {
    padding: 14px 16px;
    border: 1px solid #d39b9b;
    border-radius: 7px;
    background: var(--error-fondo);
    color: var(--error);
}

.navegacion-menu,
.pie-menu {
    margin-top: 24px;
    text-align: center;
}

.pie-menu {
    padding: 18px;
    border-top: 1px solid var(--borde);
    color: #6f6a61;
    font-size: .94rem;
}

.panel-menu > ul { margin: 0; padding-left: 22px; }
.panel-menu h3 { margin-top: 0; color: var(--principal-oscuro); }
.panel-menu h4 { color: var(--principal-oscuro); }
.panel-menu li { margin: 10px 0; }
.panel-menu li > div { margin-top: 3px; color: #6f6a61; font-size: .94rem; }

@media (max-width: 560px) {
    .cabecera-sistema { flex-direction: column; }
    .cabecera-sistema img { width: 170px; }
    .menu-tramite > h3,
    .menu-tramite > h4 { padding-right: 14px; padding-left: 14px; }
    .menu-tramite > h3 + ul,
    .menu-tramite > h4 + ul { padding-right: 14px; padding-left: 32px; }
}

/* Componentes de selección y nómina de solo lectura (Etapa 4.2). */
.form-filtros {
    display: grid;
    gap: 16px;
    align-items: end;
}

.form-filtros .campo { margin-bottom: 0; }
.campo-fecha { max-width: 18rem; }

.ayuda {
    margin-top: 0;
    color: #52606d;
    font-size: 0.94rem;
}

.grilla-bloques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 12px;
}

.opcion-bloque {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
}

.opcion-bloque input { width: auto; min-height: 0; margin: 0; }
.opcion-bloque strong { display: block; }

.mensaje-aviso {
    border-color: #d6a545;
    background: #fff8e6;
    color: #684c14;
}

.datos-seleccion { grid-template-columns: minmax(7rem, 10rem) 1fr; }
.tabla-responsive { overflow-x: auto; }

.contenedor-amplio { width: min(100% - 24px, 1180px); }

.form-continuar {
    margin-top: 18px;
    text-align: center;
}

.form-continuar .boton { width: 100%; }

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
}

.tabla-datos th,
.tabla-datos td {
    padding: 11px;
    border-bottom: 1px solid #dbe3ea;
    text-align: left;
    vertical-align: top;
}

.tabla-datos th { background: #eef3f6; }

/* Matriz de estados de la Etapa 4.3. Los controles todavía no se envían. */
.tabla-planilla-contenedor {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #dbe3ea;
}

.tabla-planilla { min-width: 720px; }

.tabla-planilla thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.tabla-planilla th:first-child,
.tabla-planilla td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 15rem;
    background: #fff;
}

.tabla-planilla thead th:first-child {
    z-index: 3;
    background: #eef3f6;
}

.tabla-planilla th small {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    font-weight: 400;
}

.etiqueta-situacion {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--secundario);
    color: var(--principal-oscuro);
    font-size: 0.78rem;
    font-weight: 700;
}

.control-estado {
    width: 100%;
    min-width: 8.5rem;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #899ba3;
    border-radius: 5px;
    background: #fff;
    font: inherit;
}

.fila-informativa th,
.fila-informativa td { background: #f8fafc; }

.fila-informativa th:first-child { background: #f8fafc; }

.estado-no-computable {
    display: block;
    min-width: 8.5rem;
    color: #52606d;
    font-size: 0.9rem;
    text-align: center;
}

.acciones-planilla { margin-top: 18px; }

.boton:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

@media (min-width: 600px) {
    .acciones { grid-template-columns: auto auto; justify-content: start; }
    .modulos .boton { width: auto; }
    .form-continuar .boton { width: auto; }
}

@media (min-width: 720px) {
    .form-filtros { grid-template-columns: minmax(15rem, 2fr) minmax(10rem, 1fr) auto; }
}

/* Presentación móvil de la planilla de asistencias (Etapa 4.5).
   En escritorio continúa utilizándose la tabla; en pantallas angostas cada
   alumno se muestra como una ficha con sus horas y controles visibles. */
@media (max-width: 719px) {
    .planilla-asistencia {
        padding: 14px;
    }

    .tabla-planilla-contenedor {
        max-height: none;
        overflow: visible;
        border: 0;
    }

    .tabla-planilla {
        display: block;
        min-width: 0;
    }

    .tabla-planilla thead {
        display: none;
    }

    .tabla-planilla tbody,
    .tabla-planilla tr,
    .tabla-planilla th,
    .tabla-planilla td {
        display: block;
        width: 100%;
    }

    .tabla-planilla tbody tr {
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
        background: #fff;
    }

    .tabla-planilla th:first-child,
    .tabla-planilla td:first-child {
        position: static;
        left: auto;
        min-width: 0;
    }

    .tabla-planilla tbody th[scope="row"] {
        padding: 12px;
        border-bottom: 1px solid #cbd5e1;
        background: #eef3f6;
    }

    .tabla-planilla tbody td {
        display: grid;
        grid-template-columns: minmax(5.5rem, 0.8fr) minmax(0, 1.2fr);
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        border-bottom: 1px solid #e3e8ec;
    }

    .tabla-planilla tbody td:last-child {
        border-bottom: 0;
    }

    .tabla-planilla tbody td::before {
        content: attr(data-hora);
        font-weight: 700;
    }

    .control-estado {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .estado-no-computable {
        min-width: 0;
        text-align: left;
    }

    .fila-informativa th,
    .fila-informativa td,
    .fila-informativa th:first-child {
        background: #f8fafc;
    }
}


/* Consulta y corrección operativa de clases (Etapa 5). */
.form-filtros-clases {
    display: grid;
    gap: 14px;
}

.form-filtros-clases .campo {
    margin-bottom: 0;
}

.acciones-filtros,
.acciones-tabla {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tabla-clases {
    min-width: 1040px;
}

.tabla-clases small,
.tabla-auditoria small {
    display: block;
    margin-top: 4px;
    color: #52606d;
    font-size: 0.82rem;
}

.estado-clase {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.estado-activa {
    border-color: #95c4a2;
    background: var(--exito-fondo);
    color: var(--exito);
}

.estado-anulada {
    border-color: #d39b9b;
    background: var(--error-fondo);
    color: var(--error);
}

.texto-secundario {
    color: #52606d;
}

.boton-compacto {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.form-accion-tabla,
.form-accion-detalle {
    padding: 0;
    border: 0;
    background: transparent;
}

.form-accion-detalle {
    margin-top: 18px;
}

.cabecera-clase {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.cabecera-clase h2 {
    margin-top: 0;
    margin-bottom: 4px;
}

@media (min-width: 820px) {
    .form-filtros-clases {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .acciones-filtros {
        grid-column: 1 / -1;
    }
}

/* Administración operativa de clases (Etapa 5.3). */
.estado-reabierta {
    border-color: #7aa6c2;
    background: #edf6fb;
    color: #24536d;
}

.estado-reapertura-vencida {
    border-color: #c5a96b;
    background: #fff8e7;
    color: #76561b;
}

.estado-reapertura {
    display: block;
    margin-top: 5px;
    font-weight: 700;
}

.reapertura-vigente {
    color: #24536d;
}

.reapertura-vencida {
    color: #76561b;
}

.estado-reapertura-listado {
    margin-top: 6px;
}

.form-administrar-clases {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.form-administrar-clases fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
}

.form-administrar-clases legend {
    padding: 0 6px;
    font-weight: 700;
}

.selector-horas-admin {
    display: grid;
    gap: 8px;
}

.selector-horas-admin label,
.confirmacion-administrativa {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.selector-horas-admin input,
.confirmacion-administrativa input {
    width: auto;
    margin-top: 3px;
}

.form-administrar-clases textarea {
    width: 100%;
    resize: vertical;
}

.tabla-auditoria-operativa {
    min-width: 980px;
}

@media (min-width: 720px) {
    .selector-horas-admin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Primer reporte cuatrimestral de asistencias por materia. */
.contenedor-reporte {
    width: calc(100% - 16px);
    max-width: 1680px;
}

.form-filtros-reporte {
    display: grid;
    gap: 14px;
    align-items: end;
}

.form-filtros-reporte .campo {
    margin-bottom: 0;
}

.acciones-reporte {
    grid-column: 1 / -1;
}

.panel-reporte {
    margin-top: 18px;
    padding: 16px;
}

.cabecera-reporte {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.cabecera-reporte h2,
.titulo-reporte-impresion h1 {
    margin: 0 0 4px;
}

.cabecera-reporte p,
.titulo-reporte-impresion p {
    margin: 0;
    color: #52606d;
}

.reporte-datos-generales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 8px 16px;
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #dbe3ea;
    border-radius: 7px;
    background: #f8fafc;
}

.reporte-datos-generales div {
    min-width: 0;
}

.reporte-datos-generales dt {
    color: #52606d;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reporte-datos-generales dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.dato-materia,
.dato-docentes {
    grid-column: span 2;
}

.barra-reporte {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: end;
    justify-content: space-between;
    margin: 12px 0;
}

.campo-busqueda-reporte {
    flex: 1 1 18rem;
    max-width: 34rem;
}

.campo-busqueda-reporte label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.campo-busqueda-reporte input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #899ba3;
    border-radius: 5px;
    font: inherit;
}

.campo-busqueda-reporte .ayuda {
    display: block;
    min-height: 1.35em;
    margin-top: 4px;
}

.tabla-reporte-contenedor {
    max-height: 72vh;
    overflow: auto;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.tabla-reporte-cuatrimestral {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.tabla-reporte-cuatrimestral th,
.tabla-reporte-cuatrimestral td {
    box-sizing: border-box;
    padding: 5px 4px;
    border-right: 1px solid #dbe3ea;
    border-bottom: 1px solid #dbe3ea;
    background: #fff;
    vertical-align: middle;
}

.tabla-reporte-cuatrimestral thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #eef3f6;
    text-align: center;
}

.tabla-reporte-cuatrimestral .reporte-col-alumno {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 16rem;
    min-width: 16rem;
    max-width: 16rem;
    padding-left: 8px;
    text-align: left;
    white-space: normal;
}

.tabla-reporte-cuatrimestral thead .reporte-col-alumno {
    z-index: 5;
    background: #eef3f6;
}

.tabla-reporte-cuatrimestral .reporte-col-situacion {
    position: sticky;
    left: 16rem;
    z-index: 2;
    width: 4.2rem;
    min-width: 4.2rem;
    max-width: 4.2rem;
    text-align: center;
}

.tabla-reporte-cuatrimestral thead .reporte-col-situacion {
    z-index: 5;
    background: #eef3f6;
}

.tabla-reporte-cuatrimestral .reporte-col-hora {
    width: 1.55rem;
    min-width: 1.55rem;
    max-width: 1.55rem;
    padding: 1px 0;
    line-height: 1.02;
}

.reporte-col-hora span {
    display: block;
    font-size: 0.67rem;
}

.reporte-col-hora span:last-child {
    margin-top: 2px;
    font-weight: 800;
}

.tabla-reporte-cuatrimestral .reporte-col-estado {
    width: 1.55rem;
    min-width: 1.55rem;
    max-width: 1.55rem;
    padding: 1px 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

.tabla-reporte-cuatrimestral .reporte-col-porcentaje {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
    padding: 3px 2px;
    border-left: 2px solid #b8c4cc;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

.tabla-reporte-cuatrimestral thead .reporte-col-porcentaje {
    z-index: 5;
    background: #eef3f6;
}

.tabla-reporte-cuatrimestral .reporte-col-porcentaje span {
    display: block;
}

/* Anchos explícitos: evitan redistribuciones automáticas del navegador. */
.tabla-reporte-cuatrimestral col.reporte-ancho-alumno { width: 16rem; }
.tabla-reporte-cuatrimestral col.reporte-ancho-situacion { width: 4.2rem; }
.tabla-reporte-cuatrimestral col.reporte-ancho-hora { width: 1.55rem; }
.tabla-reporte-cuatrimestral col.reporte-ancho-porcentaje { width: 3.5rem; }

.fila-reporte-informativa th,
.fila-reporte-informativa td,
.fila-reporte-informativa .reporte-col-alumno,
.fila-reporte-informativa .reporte-col-situacion,
.fila-reporte-informativa .reporte-col-porcentaje {
    background: #f8fafc;
}

.leyenda-reporte {
    margin: 10px 0 0;
    color: #52606d;
    font-size: 0.82rem;
}

.reporte-impresion {
    display: none;
}

/* Reporte de asistencia resumido y cronológico por alumno. */
.contenedor-reporte-alumno {
    width: min(100% - 16px, 1180px);
}

.form-filtros-reporte-alumno {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campo-busqueda-alumno {
    grid-column: 1 / -1;
}

.panel-resultados-alumnos,
.panel-reporte-alumno {
    margin-top: 18px;
}

.tabla-resultados-alumnos {
    min-width: 720px;
}

.tabla-resultados-alumnos th:last-child,
.tabla-resultados-alumnos td:last-child {
    width: 8.5rem;
    text-align: center;
}

.reporte-alumno-datos .dato-alumno,
.reporte-alumno-datos .dato-carrera {
    grid-column: span 2;
}

.tabla-resumen-alumno-contenedor {
    border: 1px solid #cbd5e1;
}

.tabla-resumen-alumno {
    min-width: 760px;
    font-variant-numeric: tabular-nums;
}

.tabla-resumen-alumno th:not(:first-child),
.tabla-resumen-alumno td:not(:first-child) {
    text-align: center;
}

.tabla-resumen-alumno th:first-child {
    min-width: 15rem;
}

.detalle-reporte-alumno td {
    padding: 7px 12px 13px;
    background: #f8fafc;
}

.detalle-reporte-alumno details {
    max-width: 40rem;
}

.detalle-reporte-alumno summary {
    cursor: pointer;
    color: var(--principal-oscuro);
    font-weight: 700;
}

.detalle-reporte-alumno details[open] summary {
    margin-bottom: 9px;
}

.detalle-reporte-alumno p {
    margin: 8px 0 0;
}

.tabla-detalle-alumno {
    width: 100%;
    min-width: 360px;
}

.tabla-detalle-alumno th,
.tabla-detalle-alumno td {
    text-align: left;
}

@media (min-width: 860px) {
    .form-filtros-reporte {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .campo-materia-reporte {
        grid-column: span 2;
    }

    .form-filtros-reporte.form-filtros-reporte-alumno {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-filtros-reporte-alumno .campo-busqueda-alumno {
        grid-column: auto;
    }
}

@media (max-width: 719px) {
    .contenedor-reporte {
        width: calc(100% - 10px);
        margin-top: 10px;
    }

    .panel-reporte {
        padding: 10px;
    }

    .dato-materia,
    .dato-docentes {
        grid-column: auto;
    }

    .tabla-reporte-cuatrimestral .reporte-col-alumno {
        width: 12rem;
        min-width: 12rem;
        max-width: 12rem;
    }

    .tabla-reporte-cuatrimestral .reporte-col-situacion {
        left: 12rem;
    }

    .form-filtros-reporte.form-filtros-reporte-alumno {
        grid-template-columns: 1fr;
    }

    .reporte-alumno-datos .dato-alumno,
    .reporte-alumno-datos .dato-carrera {
        grid-column: auto;
    }
}

@page {
    /* Oficio/Legal: 14 × 8,5 pulgadas, orientación horizontal. */
    size: 356mm 216mm;
    margin: 5mm;
}

@media print {
    html,
    body {
        margin: 0;
        padding: 0;
        background: #fff;
        color: #000;
        font-size: 8pt;
    }

    .no-imprimir,
    .reporte-pantalla {
        display: none !important;
    }

    .reporte-impresion {
        display: block !important;
    }

    .contenedor-reporte {
        width: auto;
        max-width: none;
        margin: 0;
    }

    .hoja-reporte-impresion {
        break-after: auto;
        page-break-after: auto;
    }

    .nueva-hoja-horizontal {
        break-before: page;
        page-break-before: always;
    }

    .titulo-reporte-impresion {
        margin-bottom: 3mm;
        text-align: center;
    }

    .titulo-reporte-impresion h1 {
        font-size: 13pt;
    }

    .titulo-reporte-impresion p {
        font-size: 8pt;
    }

    .reporte-datos-generales {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.2mm 4mm;
        margin: 0 0 3mm;
        padding: 2mm;
        border: 0.3mm solid #777;
        border-radius: 0;
        background: #fff;
    }

    .reporte-datos-generales dt {
        font-size: 6.5pt;
    }

    .reporte-datos-generales dd {
        font-size: 7.5pt;
        font-weight: 600;
    }

    .dato-materia,
    .dato-docentes {
        grid-column: span 2;
    }

    .tabla-reporte-cuatrimestral {
        width: var(--reporte-ancho-impresion);
        min-width: var(--reporte-ancho-impresion);
        max-width: var(--reporte-ancho-impresion);
        table-layout: fixed;
        border-collapse: collapse;
        font-size: 7pt;
    }

    .tabla-reporte-cuatrimestral thead {
        display: table-header-group;
    }

    .tabla-reporte-cuatrimestral tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .tabla-reporte-cuatrimestral th,
    .tabla-reporte-cuatrimestral td,
    .tabla-reporte-cuatrimestral thead th,
    .tabla-reporte-cuatrimestral .reporte-col-alumno,
    .tabla-reporte-cuatrimestral .reporte-col-situacion {
        position: static;
        padding: 0.8mm 0.35mm;
        border: 0.2mm solid #777;
        background: #fff;
    }

    .tabla-reporte-cuatrimestral .reporte-col-alumno {
        width: 48mm;
        min-width: 48mm;
        max-width: none;
        font-size: 7.5pt;
    }

    .tabla-reporte-cuatrimestral .reporte-col-situacion {
        width: 9mm;
        min-width: 9mm;
        max-width: none;
    }

    .tabla-reporte-cuatrimestral .reporte-col-hora,
    .tabla-reporte-cuatrimestral .reporte-col-estado {
        width: 6.5mm;
        min-width: 6.5mm;
        max-width: 6.5mm;
        padding-right: 0.15mm;
        padding-left: 0.15mm;
        overflow: hidden;
        white-space: nowrap;
        font-size: 5.8pt;
    }

    .tabla-reporte-cuatrimestral col.reporte-ancho-alumno { width: 48mm; }
    .tabla-reporte-cuatrimestral col.reporte-ancho-situacion { width: 9mm; }
    .tabla-reporte-cuatrimestral col.reporte-ancho-hora { width: 6.5mm; }
    .tabla-reporte-cuatrimestral col.reporte-ancho-porcentaje { width: 13mm; }

    .tabla-reporte-cuatrimestral .reporte-col-porcentaje {
        position: static;
        width: 13mm;
        min-width: 13mm;
        max-width: none;
        padding: 0.8mm 0.35mm;
        border-left: 0.3mm solid #777;
        background: #fff;
        font-size: 6.2pt;
    }

    .reporte-col-hora span {
        font-size: 5.5pt;
    }

    .fila-reporte-informativa th,
    .fila-reporte-informativa td,
    .fila-reporte-informativa .reporte-col-alumno,
    .fila-reporte-informativa .reporte-col-situacion {
        background: #f2f2f2;
    }

    .leyenda-reporte {
        margin-top: 2mm;
        color: #000;
        font-size: 6.5pt;
    }
}

@page reporte-alumno {
    size: A4 portrait;
    margin: 12mm;
}

@media print {
    .contenedor-reporte-alumno {
        page: reporte-alumno;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .contenedor-reporte-alumno .panel-reporte-alumno {
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .contenedor-reporte-alumno .cabecera-reporte {
        margin-bottom: 3mm;
        justify-content: center;
        text-align: center;
    }

    .contenedor-reporte-alumno .cabecera-reporte h2 {
        font-size: 14pt;
    }

    .contenedor-reporte-alumno .reporte-datos-generales {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5mm 4mm;
        margin: 0 0 4mm;
        padding: 2.5mm;
        border: 0.3mm solid #777;
        border-radius: 0;
        background: #fff;
    }

    .contenedor-reporte-alumno .reporte-alumno-datos .dato-alumno,
    .contenedor-reporte-alumno .reporte-alumno-datos .dato-carrera {
        grid-column: span 2;
    }

    .contenedor-reporte-alumno .tabla-resumen-alumno-contenedor {
        overflow: visible;
        border: 0;
    }

    .contenedor-reporte-alumno .tabla-resumen-alumno {
        width: 100%;
        min-width: 0;
        border-collapse: collapse;
        font-size: 8pt;
    }

    .contenedor-reporte-alumno .tabla-resumen-alumno th,
    .contenedor-reporte-alumno .tabla-resumen-alumno td {
        padding: 1.2mm;
        border: 0.2mm solid #777;
        background: #fff;
    }

    .contenedor-reporte-alumno .tabla-resumen-alumno th:first-child {
        min-width: 0;
        text-align: left;
    }

    .contenedor-reporte-alumno .fila-reporte-informativa th,
    .contenedor-reporte-alumno .fila-reporte-informativa td {
        background: #f2f2f2;
    }

    .contenedor-reporte-alumno .leyenda-reporte {
        margin-top: 3mm;
        font-size: 7pt;
    }
}
