:root{--real-safe-bottom:env(safe-area-inset-bottom,0px)}
html{-webkit-text-size-adjust:100%}
body.pwa-mobile{overflow-wrap:anywhere}
body.pwa-mobile button,body.pwa-mobile .button,body.pwa-mobile input,body.pwa-mobile select,body.pwa-mobile textarea{font-family:inherit}
.real-pwa-install{position:fixed;right:16px;bottom:calc(16px + var(--real-safe-bottom));z-index:900;width:auto!important;margin:0!important;padding:10px 14px!important;border:0;border-radius:999px;background:#d8a827!important;color:#111827!important;font-size:13px!important;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.2);cursor:pointer}
body.pwa-mobile .table-wrap,body.pwa-mobile .card{max-width:100%}

@media(max-width:760px){
 body.pwa-mobile{padding-bottom:var(--real-safe-bottom)}
 body.pwa-mobile header{position:sticky;top:0;z-index:90;padding:11px 14px}
 body.pwa-mobile header .wrap{width:100%}
 body.pwa-mobile .header-inner,body.pwa-mobile .header{align-items:center;gap:9px}
 body.pwa-mobile .header-left,body.pwa-mobile .left{gap:11px;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 body.pwa-mobile .header-left::-webkit-scrollbar,body.pwa-mobile .left::-webkit-scrollbar{display:none}
 body.pwa-mobile header a{white-space:nowrap;font-size:13px}
 body.pwa-mobile .brand{position:sticky;left:0;background:#111827;padding-right:4px;z-index:1}
 body.pwa-mobile main{padding:18px 12px}
 body.pwa-mobile h1{font-size:25px;line-height:1.15}
 body.pwa-mobile h2{font-size:20px}
 body.pwa-mobile .card{padding:16px;border-radius:11px;margin-bottom:14px}
 body.pwa-mobile .topbar{align-items:flex-start;margin-bottom:14px}
 body.pwa-mobile input:not([type=checkbox]):not([type=radio]),body.pwa-mobile select,body.pwa-mobile textarea{min-height:46px;font-size:16px}
 body.pwa-mobile button,body.pwa-mobile .button{min-height:44px;padding:10px 13px}
 body.pwa-mobile .actions{gap:8px;width:100%}
 body.pwa-mobile .actions>.button,body.pwa-mobile .actions>button{flex:1;min-width:120px}
 body.pwa-mobile .grid{grid-template-columns:1fr!important}
 body.pwa-mobile .inline-form{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
 body.pwa-mobile .inline-form>div{min-width:0!important}
 body.pwa-mobile .inline-form>button{margin-top:0!important;width:100%}
 body.pwa-mobile table{max-width:100%}
 body.pwa-mobile .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
 body.pwa-mobile .modal-backdrop,body.pwa-mobile .real-modal{padding:10px}
 body.pwa-mobile .modal-card,body.pwa-mobile .real-modal-dialog{width:100%;max-height:90vh;border-radius:14px}
 body.pwa-mobile .savebar{position:sticky!important;bottom:0!important;z-index:70;margin:0 -12px!important;padding:10px 12px calc(10px + var(--real-safe-bottom))!important;background:rgba(245,246,248,.96);border-top:1px solid #d1d5db;box-shadow:0 -8px 22px rgba(0,0,0,.08)}
 body.pwa-mobile .savebar .button,body.pwa-mobile .savebar button{width:100%}

 body.page-activation-groups-index table,
 body.page-attendance-index table,
 body.page-homework-grade table,
 body.page-homework-intro table,
 body.page-homework-introduction table,
 body.page-attendance-session #attendanceStudentsTable{display:block;min-width:0!important}
 body.page-activation-groups-index thead,
 body.page-attendance-index thead,
 body.page-homework-grade thead,
 body.page-homework-intro thead,
 body.page-homework-introduction thead,
 body.page-attendance-session #attendanceStudentsTable thead{display:none}
 body.page-activation-groups-index tbody,
 body.page-attendance-index tbody,
 body.page-homework-grade tbody,
 body.page-homework-intro tbody,
 body.page-homework-introduction tbody,
 body.page-attendance-session #attendanceStudentsTable tbody{display:grid;gap:11px}
 body.page-activation-groups-index tr,
 body.page-attendance-index tr,
 body.page-homework-grade tr,
 body.page-homework-intro tr,
 body.page-homework-introduction tr,
 body.page-attendance-session #attendanceStudentsTable tr{display:grid;background:#fff;border:1px solid #e5e7eb;border-radius:11px;padding:13px;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-activation-groups-index td,
 body.page-attendance-index td,
 body.page-homework-grade td,
 body.page-homework-intro td,
 body.page-homework-introduction td,
 body.page-attendance-session #attendanceStudentsTable td{display:block;border:0!important;padding:5px 0!important}
 body.page-attendance-session #attendanceStudentsTable td:nth-child(1){font-size:16px;font-weight:700}
 body.page-attendance-session #attendanceStudentsTable td:nth-child(2){font-size:12px;color:#6b7280}
 body.page-attendance-session #attendanceStudentsTable td:nth-child(2)::before{content:'ID REAL: ';font-weight:700}
 body.page-attendance-session #attendanceStudentsTable .status-select{width:100%}
 body.page-attendance-session .student-search-wrap{display:grid!important;grid-template-columns:1fr!important}
 body.page-attendance-session .student-search-clear{width:100%}
 body.page-attendance-session #studentSearchNoResults{display:none!important}

 body.page-activation-groups-index td:last-child .button,
 body.page-attendance-index td:last-child .button{width:100%;margin-top:4px}
 body.page-activation-groups-view table{min-width:620px}

 body.page-attendance-phase table{display:block;width:100%;min-width:0}
 body.page-attendance-phase table thead{display:none}
 body.page-attendance-phase table tbody{display:grid;gap:12px}
 body.page-attendance-phase table tr.session-row{display:grid;width:100%;min-width:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:13px;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-attendance-phase table tr.session-row td{display:block;width:100%;min-width:0;border:0;padding:6px 0}
 body.page-attendance-phase table tr.session-row td::before{display:block;margin-bottom:4px;color:#6b7280;font-size:11px;font-weight:800;text-transform:uppercase}
 body.page-attendance-phase table tr.session-row td:nth-child(1)::before{content:'Semana'}
 body.page-attendance-phase table tr.session-row td:nth-child(2)::before{content:'Tipo'}
 body.page-attendance-phase table tr.session-row td:nth-child(3)::before{content:'Fecha'}
 body.page-attendance-phase table tr.session-row td:nth-child(4)::before{content:'Registros'}
 body.page-attendance-phase table tr.session-row td:last-child{padding-top:10px}
 body.page-attendance-phase table tr.session-row .actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}
 body.page-attendance-phase table tr.session-row .actions>.button,
 body.page-attendance-phase table tr.session-row .actions>button,
 body.page-attendance-phase table tr.session-row .actions>form,
 body.page-attendance-phase table tr.session-row .actions>form .button{display:flex;width:100%;max-width:100%;min-width:0;margin:0}
 body.page-attendance-phase table tr.session-row .actions>form .button{align-items:center;justify-content:center}
 body.page-attendance-phase #sessionFilterEmpty{display:none}
 body.page-homework-phase .task-card,body.page-homework-phase .homework-card{padding:15px}
}

@media(min-width:761px){
 .real-pwa-install{right:24px;bottom:24px}
}


/* Segunda etapa móvil: Estudiantes */
.student-contact-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.student-contact-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:9px;text-decoration:none;font-size:14px;font-weight:800}
.student-contact-button.call{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}
.student-contact-button.whatsapp{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
@media(max-width:760px){
 body.page-students-index .topbar{display:grid;grid-template-columns:1fr;width:100%}
 body.page-students-index .topbar>.button{width:100%;text-align:center}
 body.page-students-index .filters{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:13px}
 body.page-students-index .filters>div,body.page-students-index .search-field{width:100%!important;min-width:0!important}
 body.page-students-index .filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 body.page-students-index .filter-actions .button{width:100%;min-width:0;text-align:center}
 body.page-students-index .students-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-students-index .students-table thead{display:none}
 body.page-students-index .students-table tbody{display:grid;gap:11px}
 body.page-students-index .students-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,auto);width:100%;min-width:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:13px;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-students-index .students-table td{display:block!important;min-width:0;border:0!important;padding:5px!important;overflow-wrap:anywhere}
 body.page-students-index .students-table td:nth-child(1){font-size:16px}
 body.page-students-index .students-table td:nth-child(2){font-size:12px;color:#6b7280;text-align:right}
 body.page-students-index .students-table td:nth-child(2)::before{content:'ID REAL: ';font-weight:700}
 body.page-students-index .students-table td:nth-child(3),body.page-students-index .students-table td:nth-child(4),body.page-students-index .students-table td:nth-child(5){grid-column:1/-1}
 body.page-students-index .students-table td:nth-child(3)::before,body.page-students-index .students-table td:nth-child(4)::before,body.page-students-index .students-table td:nth-child(5)::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-students-index .students-table td:nth-child(3)::before{content:'Contacto'}
 body.page-students-index .students-table td:nth-child(4)::before{content:'Iglesia'}
 body.page-students-index .students-table td:nth-child(5)::before{content:'Ubicación'}
 body.page-students-index .students-table td:nth-child(6){grid-column:1/-1;padding-top:8px!important}
 body.page-students-index #load-more-sentinel{padding-bottom:70px!important}
 body.page-students-view .topbar{display:grid;grid-template-columns:1fr;align-items:stretch}
 body.page-students-view .top-actions{display:grid;grid-template-columns:1fr;width:100%}
 body.page-students-view .top-actions .button{width:100%;text-align:center}
 body.page-students-view .student-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 body.page-students-view .student-contact-button{min-height:44px}
 body.page-students-view .phase-head{display:grid;grid-template-columns:1fr;align-items:start}
 body.page-students-view .phase-title{display:grid;gap:4px}
 body.page-students-view .metrics{grid-template-columns:1fr!important}
 body.page-students-view .metric,body.page-students-view .metric:nth-child(3){border-left:0!important}
 body.page-students-view .attendance-split{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.page-students-view .attendance-box{min-width:0;padding:9px 8px}
 body.page-students-view .diploma-field{min-width:0;width:100%}
 body.page-students-view .diploma-form-row{display:grid;grid-template-columns:1fr;width:100%}
 body.page-students-view .diploma-save{width:100%;height:auto}
 body.page-students-view dl{margin:0}
 body.page-students-view dd{overflow-wrap:anywhere}
 body.page-students-view .detail-modal-backdrop{padding:0!important;align-items:stretch}
 body.page-students-view .detail-modal{width:100%!important;max-width:none!important;max-height:100dvh!important;border-radius:0!important}
 body.page-students-view .detail-modal-head{padding:14px}
 body.page-students-view .detail-modal-body{padding:12px}
 body.page-students-view .detail-panels{grid-template-columns:1fr!important}
 body.page-students-view .detail-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
 body.page-students-view .detail-table{min-width:520px}
}
@media(max-width:380px){
 body.page-students-index .filter-actions,body.page-students-view .student-contact-actions{grid-template-columns:1fr}
}


/* Tercera etapa móvil: Pagos y Cobranza */
@media(max-width:760px){
 body.page-payments-index .grid{grid-template-columns:1fr!important;gap:13px;margin-top:18px}
 body.page-payments-index .card{padding:20px}
 body.page-payments-index .icon{margin-bottom:10px}

 body.page-payments-students .filters{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
 body.page-payments-students .filters>div,body.page-payments-students .search{width:100%!important;min-width:0!important}
 body.page-payments-students .payment-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 body.page-payments-students .payment-filter-actions .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:0}
 body.page-payments-students .table-wrap{overflow:visible!important}
 body.page-payments-students .payments-students-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-payments-students .payments-students-table thead{display:none}
 body.page-payments-students .payments-students-table tbody{display:grid;gap:11px}
 body.page-payments-students .payments-students-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:13px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-payments-students .payments-students-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body.page-payments-students .payments-students-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-payments-students .payments-students-table td:nth-child(1){grid-column:1/-1;font-size:17px}
 body.page-payments-students .payments-students-table td:nth-child(2){grid-column:1/-1}
 body.page-payments-students .payments-students-table td:nth-child(2)::before{content:'Plan actual'}
 body.page-payments-students .payments-students-table td:nth-child(3)::before{content:'Estado'}
 body.page-payments-students .payments-students-table td:nth-child(4)::before{content:'Total'}
 body.page-payments-students .payments-students-table td:nth-child(5)::before{content:'Pagado'}
 body.page-payments-students .payments-students-table td:nth-child(6)::before{content:'Saldo'}
 body.page-payments-students .payments-students-table td:nth-child(7){grid-column:1/-1}
 body.page-payments-students .payments-students-table td:nth-child(7)::before{content:'Último pago'}
 body.page-payments-students .payments-students-table td:nth-child(8){grid-column:1/-1;padding-top:9px!important}
 body.page-payments-students .payments-students-table .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px}

 body.page-payments-student .topbar{display:grid;grid-template-columns:1fr;align-items:stretch}
 body.page-payments-student .topbar>.actions{display:grid;grid-template-columns:1fr}
 body.page-payments-student .topbar>.actions .button{width:100%;text-align:center}
 body.page-payments-student .card>.topbar{gap:12px}
 body.page-payments-student .card>.topbar>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 body.page-payments-student .card>.topbar>.actions>*{display:flex!important;align-items:center;justify-content:center;width:100%;min-width:0!important;min-height:42px;text-align:center}
 body.page-payments-student .summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 body.page-payments-student .metric{padding:12px;min-width:0}
 body.page-payments-student .metric strong{font-size:17px;overflow-wrap:anywhere}
 body.page-payments-student .plan-details{overflow:hidden}
 body.page-payments-student .section-title{align-items:stretch}
 body.page-payments-student .section-title .button{width:100%;text-align:center}
 body.page-payments-student .installments-table,
 body.page-payments-student .payments-history-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-payments-student .installments-table thead,
 body.page-payments-student .payments-history-table thead{display:none}
 body.page-payments-student .installments-table tbody,
 body.page-payments-student .payments-history-table tbody{display:grid;gap:10px}
 body.page-payments-student .installments-table tr,
 body.page-payments-student .payments-history-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:11px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
 body.page-payments-student .installments-table td,
 body.page-payments-student .payments-history-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body.page-payments-student .installments-table td::before,
 body.page-payments-student .payments-history-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-payments-student .installments-table td:nth-child(1)::before{content:'Cuota'}
 body.page-payments-student .installments-table td:nth-child(2){grid-column:1/-1}
 body.page-payments-student .installments-table td:nth-child(2)::before{content:'Descripción'}
 body.page-payments-student .installments-table td:nth-child(3)::before{content:'Cobertura'}
 body.page-payments-student .installments-table td:nth-child(4)::before{content:'Vencimiento'}
 body.page-payments-student .installments-table td:nth-child(5)::before{content:'Importe'}
 body.page-payments-student .installments-table td:nth-child(6)::before{content:'Pagado'}
 body.page-payments-student .installments-table td:nth-child(7)::before{content:'Crédito'}
 body.page-payments-student .installments-table td:nth-child(8)::before{content:'Estado'}
 body.page-payments-student .payments-history-table td:nth-child(1)::before{content:'Fecha'}
 body.page-payments-student .payments-history-table td:nth-child(2)::before{content:'Método'}
 body.page-payments-student .payments-history-table td:nth-child(3)::before{content:'Monto'}
 body.page-payments-student .payments-history-table td:nth-child(4)::before{content:'Referencia'}
 body.page-payments-student .payments-history-table td:nth-child(5){grid-column:1/-1}
 body.page-payments-student .payments-history-table td:nth-child(5)::before{content:'Notas'}
 body.page-payments-student .payments-history-table td:nth-child(6)::before{content:'Estado'}
 body.page-payments-student .payments-history-table td:nth-child(7)::before{content:'Acciones'}
 body.page-payments-student .payments-history-table td:last-child .button{width:100%;text-align:center}
 body.page-payments-student .modal-backdrop{padding:10px!important}
 body.page-payments-student .modal-card{width:100%;max-height:90dvh}

 body.page-payments-assign-plan .mobile-payment-form{padding:16px}
 body.page-payments-assign-plan .coverage-option{min-height:48px;align-items:flex-start}
 body.page-payments-assign-plan .coverage-option input{width:22px!important;height:22px;min-height:0!important;flex:0 0 auto}
 body.page-payments-assign-plan .hint{line-height:1.45}
 body.page-payments-assign-plan .mobile-form-actions{position:sticky;bottom:0;z-index:20;margin:18px -16px -16px;padding:10px 16px calc(10px + var(--real-safe-bottom));background:rgba(255,255,255,.96);border-top:1px solid #e5e7eb}
 body.page-payments-assign-plan .mobile-form-actions button{width:100%}
 body.page-payments-assign-plan .modal-backdrop{padding:10px!important}
 body.page-payments-assign-plan .modal-card{width:100%;max-height:92dvh;overflow:auto;padding:18px}
 body.page-payments-assign-plan .modal-actions{display:grid;grid-template-columns:1fr}
 body.page-payments-assign-plan .modal-actions button{width:100%}

 body.page-payments-record .grid{grid-template-columns:1fr!important}
 body.page-payments-record .mobile-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 body.page-payments-record .mobile-form-actions>*{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;margin:0}
 body.page-payments-record .pending-installments-card{overflow:hidden}
 body.page-payments-record .pending-installments-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-payments-record .pending-installments-table thead{display:none}
 body.page-payments-record .pending-installments-table tbody{display:grid;gap:10px}
 body.page-payments-record .pending-installments-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:11px;border:1px solid #e5e7eb;border-radius:10px}
 body.page-payments-record .pending-installments-table td{display:block!important;min-width:0;padding:5px!important;border:0!important}
 body.page-payments-record .pending-installments-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-payments-record .pending-installments-table td:nth-child(1)::before{content:'Cuota'}
 body.page-payments-record .pending-installments-table td:nth-child(2){grid-column:1/-1}
 body.page-payments-record .pending-installments-table td:nth-child(2)::before{content:'Descripción'}
 body.page-payments-record .pending-installments-table td:nth-child(3)::before{content:'Vencimiento'}
 body.page-payments-record .pending-installments-table td:nth-child(4)::before{content:'Importe'}
 body.page-payments-record .pending-installments-table td:nth-child(5)::before{content:'Pagado'}
 body.page-payments-record .pending-installments-table td:nth-child(6)::before{content:'Crédito'}
 body.page-payments-record .pending-installments-table td:nth-child(7)::before{content:'Pendiente'}
}
@media(max-width:390px){
 body.page-payments-students .payment-filter-actions,
 body.page-payments-student .card>.topbar>.actions,
 body.page-payments-record .mobile-form-actions{grid-template-columns:1fr}
}


/* Ajuste del selector de fecha en registro móvil */
@media(max-width:760px){
 body.page-payments-record,body.page-payments-record main,body.page-payments-record .mobile-payment-form{max-width:100%;overflow-x:hidden}
 body.page-payments-record .mobile-payment-form .grid,
 body.page-payments-record .mobile-payment-form .grid>div{width:100%;max-width:100%;min-width:0}
 body.page-payments-record input[type="date"]{display:block;width:100%!important;max-width:100%!important;min-width:0!important;inline-size:100%!important;box-sizing:border-box}
}


/* Cuarta etapa móvil: Módulos y ciclos */
@media(max-width:760px){
 body.page-modules-index .topbar{display:grid;grid-template-columns:1fr;align-items:stretch}
 body.page-modules-index .topbar>.actions{display:grid;grid-template-columns:1fr;width:100%}
 body.page-modules-index .topbar>.actions .button{width:100%;text-align:center}
 body.page-modules-index .modules-years-table,
 body.page-modules-index .modules-offerings-table,
 body.page-modules-index .modules-cycles-table,
 body.page-modules-index .modules-archive-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-modules-index .modules-years-table thead,
 body.page-modules-index .modules-offerings-table thead,
 body.page-modules-index .modules-cycles-table thead,
 body.page-modules-index .modules-archive-table thead{display:none}
 body.page-modules-index .modules-years-table tbody,
 body.page-modules-index .modules-offerings-table tbody,
 body.page-modules-index .modules-cycles-table tbody,
 body.page-modules-index .modules-archive-table tbody{display:grid;gap:11px}
 body.page-modules-index .modules-years-table tr,
 body.page-modules-index .modules-offerings-table tr,
 body.page-modules-index .modules-cycles-table tr,
 body.page-modules-index .modules-archive-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-modules-index .modules-years-table td,
 body.page-modules-index .modules-offerings-table td,
 body.page-modules-index .modules-cycles-table td,
 body.page-modules-index .modules-archive-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body.page-modules-index table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-modules-index .modules-years-table td:nth-child(1)::before{content:'Año'}
 body.page-modules-index .modules-years-table td:nth-child(2)::before{content:'Inicio'}
 body.page-modules-index .modules-years-table td:nth-child(3)::before{content:'Fin'}
 body.page-modules-index .modules-years-table td:nth-child(4)::before{content:'Estado'}
 body.page-modules-index .modules-offerings-table td:nth-child(1)::before,
 body.page-modules-index .modules-archive-table td:nth-child(1)::before{content:'Fase'}
 body.page-modules-index .modules-offerings-table td:nth-child(2)::before,
 body.page-modules-index .modules-archive-table td:nth-child(2)::before{content:'Inicio'}
 body.page-modules-index .modules-offerings-table td:nth-child(3)::before,
 body.page-modules-index .modules-archive-table td:nth-child(3)::before{content:'Fin'}
 body.page-modules-index .modules-offerings-table td:nth-child(4)::before,
 body.page-modules-index .modules-archive-table td:nth-child(4)::before{content:'Estado'}
 body.page-modules-index .modules-offerings-table td:last-child,
 body.page-modules-index .modules-archive-table td:last-child{grid-column:1/-1}
 body.page-modules-index .modules-offerings-table td:last-child .button,
 body.page-modules-index .modules-archive-table td:last-child .button{width:100%;text-align:center}
 body.page-modules-index .modules-cycles-table td:nth-child(1){grid-column:1/-1;font-size:17px}
 body.page-modules-index .modules-cycles-table td:nth-child(1)::before{content:'Ciclo'}
 body.page-modules-index .modules-cycles-table td:nth-child(2)::before{content:'Año del programa'}
 body.page-modules-index .modules-cycles-table td:nth-child(3)::before{content:'Estado'}
 body.page-modules-index .modules-cycles-table td:nth-child(4)::before{content:'Detalle'}
 body.page-modules-index .modules-cycles-table td:nth-child(5)::before{content:'Acciones'}
 body.page-modules-index .modules-cycles-table td:nth-child(4),
 body.page-modules-index .modules-cycles-table td:nth-child(5){grid-column:1/-1}
 body.page-modules-index .modules-cycles-table .sequence-badge,
 body.page-modules-index .modules-cycles-table .button{display:flex;width:100%;min-height:42px;align-items:center;justify-content:center;text-align:center}
 body.page-modules-index .extra-offering{display:none!important}
 body.page-modules-index .extra-offering.is-visible{display:grid!important}
 body.page-modules-index .archive-content{padding:0 12px 12px}
 body.page-modules-index .archive-toggle{padding:16px}
 body.page-modules-index .status-badge{margin:2px 3px 2px 0}

 body.page-modules-form .modules-mobile-form{padding:16px;overflow:hidden}
 body.page-modules-form .grid{grid-template-columns:1fr!important}
 body.page-modules-form .modules-mobile-form>*,body.page-modules-form .grid>div{max-width:100%;min-width:0}
 body.page-modules-form input:not([type="checkbox"]):not([type="radio"]),
 body.page-modules-form select,body.page-modules-form textarea{display:block;width:100%!important;max-width:100%!important;min-width:0!important}
 body.page-modules-form input[type="date"],body.page-modules-form input[type="number"]{inline-size:100%!important}
 body.page-modules-form .check,body.page-modules-form .visibility-box label{align-items:flex-start}
 body.page-modules-form input[type="checkbox"]{width:22px!important;height:22px;min-height:0!important;flex:0 0 auto}
 body.page-modules-form .actions{display:grid!important;grid-template-columns:1fr;width:100%}
 body.page-modules-form .actions>*{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;text-align:center}

 body.page-modules-years .topbar{display:grid;grid-template-columns:1fr;align-items:stretch}
 body.page-modules-years .topbar .button{width:100%;text-align:center}
 body.page-modules-years .mobile-year-row{display:grid!important;grid-template-columns:1fr!important;gap:11px}
 body.page-modules-years .mobile-year-row>*,body.page-modules-years .mobile-year-row input{width:100%!important;max-width:100%!important;min-width:0!important}
 body.page-modules-years .mobile-year-row button{width:100%}
 body.page-modules-years input[type="date"]{inline-size:100%!important}

 body.page-modules-cycle-view .sequence{gap:10px}
 body.page-modules-cycle-view .module{padding:14px}
 body.page-modules-cycle-view .module strong{font-size:18px}
}


/* Quinta etapa móvil: Grupos de Activación */
@media(max-width:760px){
 body.page-activation-groups-index .topbar{display:grid;grid-template-columns:1fr;align-items:stretch}
 body.page-activation-groups-index .topbar>.button{width:100%;min-height:44px}
 body.page-activation-groups-index .card{padding:15px;overflow:hidden}
 body.page-activation-groups-index .section-title h2{font-size:20px}
 body.page-activation-groups-index .activation-groups-table,
 body.page-activation-groups-view .group-members-table,
 body.page-activation-groups-view .group-staff-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-activation-groups-index .activation-groups-table thead,
 body.page-activation-groups-view .group-members-table thead,
 body.page-activation-groups-view .group-staff-table thead{display:none}
 body.page-activation-groups-index .activation-groups-table tbody,
 body.page-activation-groups-view .group-members-table tbody,
 body.page-activation-groups-view .group-staff-table tbody{display:grid;gap:11px}
 body.page-activation-groups-index .activation-groups-table tr,
 body.page-activation-groups-view .group-members-table tr,
 body.page-activation-groups-view .group-staff-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-activation-groups-index .activation-groups-table td,
 body.page-activation-groups-view .group-members-table td,
 body.page-activation-groups-view .group-staff-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body.page-activation-groups-index .activation-groups-table td::before,
 body.page-activation-groups-view .group-members-table td::before,
 body.page-activation-groups-view .group-staff-table td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-activation-groups-index .activation-groups-table td[data-label="Grupo"],
 body.page-activation-groups-index .activation-groups-table td[data-label="Horario"],
 body.page-activation-groups-index .activation-groups-table .group-card-action,
 body.page-activation-groups-view .group-members-table td[data-label="Alumno"],
 body.page-activation-groups-view .group-staff-table td[data-label="Persona"],
 body.page-activation-groups-view .group-card-action{grid-column:1/-1}
 body.page-activation-groups-index .activation-groups-table td[data-label="Grupo"]{font-size:17px}
 body.page-activation-groups-index .group-card-action .button,
 body.page-activation-groups-view .group-card-action .button{display:flex;width:100%;min-height:42px}
 body.page-activation-groups-view .topbar{display:grid;grid-template-columns:1fr;align-items:stretch}
 body.page-activation-groups-view .group-header-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
 body.page-activation-groups-view .group-header-actions>button,
 body.page-activation-groups-view .group-header-actions>form,
 body.page-activation-groups-view .group-header-actions>form button{width:100%;min-width:0}
 body.page-activation-groups-view .card{padding:15px;overflow:hidden}
 body.page-activation-groups-view .section-title{align-items:flex-start}
 body.page-activation-groups-view .section-title h2{font-size:20px;margin-right:8px}
 body.page-activation-groups-view .inline-form{display:grid!important;grid-template-columns:1fr;align-items:stretch}
 body.page-activation-groups-view .inline-form>div{width:100%;min-width:0}
 body.page-activation-groups-view #assignStudentForm>button,
 body.page-activation-groups-view #assignStaffForm>button{width:100%;min-height:44px;margin-top:0}
 body.page-activation-groups-view input,
 body.page-activation-groups-view select{width:100%!important;max-width:100%!important;min-width:0!important}
 body.page-activation-groups-view .real-modal-backdrop{padding:10px}
 body.page-activation-groups-view .real-modal-dialog{width:100%;max-width:520px;max-height:92dvh;overflow:auto}
 body.page-activation-groups-view .real-modal-actions{display:grid;grid-template-columns:1fr}
 body.page-activation-groups-view .real-modal-actions button{width:100%}
 body.page-activation-groups-add .activation-group-form{padding:16px;overflow:hidden}
 body.page-activation-groups-add .activation-group-form .grid{grid-template-columns:1fr!important}
 body.page-activation-groups-add .activation-group-form input,
 body.page-activation-groups-add .activation-group-form select{width:100%!important;max-width:100%!important;min-width:0!important}
 body.page-activation-groups-add .activation-group-form input[type="time"]{inline-size:100%!important}
 body.page-activation-groups-add .activation-group-form-actions{display:grid;grid-template-columns:1fr}
 body.page-activation-groups-add .activation-group-form-actions>*{width:100%;min-height:44px}
}
@media(max-width:390px){
 body.page-activation-groups-view .group-header-actions{grid-template-columns:1fr}
}


/* Sexta etapa móvil: Reportes académicos */
@media(max-width:760px){
 body.page-reports-attendance .filters,
 body.page-reports-progress .filters{display:grid!important;grid-template-columns:1fr;align-items:stretch}
 body.page-reports-attendance .filters>div,
 body.page-reports-progress .filters>div{width:100%;min-width:0}
 body.page-reports-attendance .filters select,
 body.page-reports-progress .filters select{width:100%!important;max-width:100%!important;min-width:0!important}
 body.page-reports-attendance .filters .btn,
 body.page-reports-progress .filters .btn{width:100%;min-height:44px}
 body.page-reports-attendance .card,
 body.page-reports-progress .card{padding:15px;overflow:hidden}
 body.page-reports-attendance .general-stats{grid-template-columns:1fr 1fr}
 body.page-reports-attendance .attendance-panels{grid-template-columns:1fr}
 body.page-reports-attendance .panel-stats{grid-template-columns:1fr 1fr 1fr}
 body.page-reports-attendance .attendance-panel{padding:15px}
 body.page-reports-attendance .attendance-panel .stat{padding:11px}
 body.page-reports-attendance .attendance-panel .stat-value{font-size:21px}
 body.page-reports-homework .filters{grid-template-columns:1fr!important;padding:15px}
 body.page-reports-homework .filters>div,
 body.page-reports-homework .filters select,
 body.page-reports-homework .filters input,
 body.page-reports-homework .filters .button{width:100%;min-width:0;max-width:100%}
 body.page-reports-homework .filters .button{min-height:44px}
 body.page-reports-homework .cards{grid-template-columns:1fr 1fr!important;gap:9px}
 body.page-reports-homework .stat{padding:13px}
 body.page-reports-homework .stat-value{font-size:21px}
 body.page-reports-homework .card{padding:15px;overflow:hidden}
 body.page-reports-attendance .table-wrap,
 body.page-reports-homework .table-wrap,
 body.page-reports-progress .table-wrap{overflow:visible}
 body .academic-report-table{display:block!important;width:100%!important;min-width:0!important}
 body .academic-report-table thead{display:none}
 body .academic-report-table tbody{display:grid;gap:11px}
 body .academic-report-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body .academic-report-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body .academic-report-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body .academic-report-table td[colspan]{grid-column:1/-1;text-align:center!important}
 body.page-reports-attendance .attendance-groups-table td:nth-child(1),
 body.page-reports-attendance .attendance-students-table td:nth-child(1),
 body.page-reports-homework .homework-students-table td:nth-child(1),
 body.page-reports-homework .homework-groups-table td:nth-child(1),
 body.page-reports-progress .progress-table td:nth-child(1){grid-column:1/-1}
 body.page-reports-attendance .attendance-groups-table td:nth-child(1)::before{content:'Grupo de Activación'}
 body.page-reports-attendance .attendance-groups-table td:nth-child(2)::before{content:'Alumnos'}
 body.page-reports-attendance .attendance-groups-table td:nth-child(3)::before{content:'Promedio CP'}
 body.page-reports-attendance .attendance-groups-table td:nth-child(4)::before{content:'Promedio GA'}
 body.page-reports-attendance .attendance-groups-table td:nth-child(5)::before{content:'En riesgo'}
 body.page-reports-attendance .attendance-students-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-attendance .attendance-students-table td:nth-child(2){grid-column:1/-1}
 body.page-reports-attendance .attendance-students-table td:nth-child(2)::before{content:'Grupo de Activación'}
 body.page-reports-attendance .attendance-students-table td:nth-child(3)::before{content:'Asistencia CP'}
 body.page-reports-attendance .attendance-students-table td:nth-child(4)::before{content:'Asistencia GA'}
 body.page-reports-attendance .attendance-students-table td:nth-child(5)::before{content:'Estado'}
 body.page-reports-attendance .attendance-detail{width:100%;min-width:0}
 body.page-reports-homework .homework-students-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-homework .homework-students-table td:nth-child(2)::before{content:'GA'}
 body.page-reports-homework .homework-students-table td:nth-child(3){grid-column:1/-1}
 body.page-reports-homework .homework-students-table td:nth-child(3)::before{content:'Tareas'}
 body.page-reports-homework .homework-students-table td:nth-child(4)::before{content:'No entregadas'}
 body.page-reports-homework .homework-students-table td:nth-child(5)::before{content:'Falta calificar'}
 body.page-reports-homework .homework-students-table td:nth-child(6)::before{content:'Incompletas'}
 body.page-reports-homework .homework-students-table td:nth-child(7)::before{content:'Cumplimiento al día'}
 body.page-reports-homework .homework-students-table .metric-link{width:100%}
 body.page-reports-homework .homework-groups-table td:nth-child(1)::before{content:'Grupo'}
 body.page-reports-homework .homework-groups-table td:nth-child(2)::before{content:'Alumnos'}
 body.page-reports-homework .homework-groups-table td:nth-child(3){grid-column:1/-1}
 body.page-reports-homework .homework-groups-table td:nth-child(3)::before{content:'Cumplimiento al día'}
 body.page-reports-homework .homework-groups-table td:nth-child(4)::before{content:'No entregadas'}
 body.page-reports-homework .homework-groups-table td:nth-child(5)::before{content:'Falta calificar'}
 body.page-reports-homework .homework-groups-table td:nth-child(6)::before{content:'Incompletas'}
 body.page-reports-homework .homework-groups-table td:nth-child(7)::before{content:'Próximas'}
 body.page-reports-progress .progress-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-progress .progress-table td:nth-child(2){grid-column:1/-1}
 body.page-reports-progress .progress-table td:nth-child(2)::before{content:'Grupo de Activación'}
 body.page-reports-progress .progress-table td:nth-child(3)::before{content:'Asistencia'}
 body.page-reports-progress .progress-table td:nth-child(4)::before{content:'Cumplimiento al día'}
 body.page-reports-progress .progress-table td:nth-child(5)::before{content:'Resultado'}
 body.page-reports-attendance .modal-backdrop,
 body.page-reports-homework .modal-backdrop{padding:0!important;align-items:stretch}
 body.page-reports-attendance .modal,
 body.page-reports-homework .modal{width:100%!important;max-width:none!important;max-height:100dvh!important;border-radius:0!important}
 body.page-reports-attendance .modal-body{padding:12px;max-height:calc(100dvh - 76px)}
 body.page-reports-attendance .history-table{display:block;min-width:0;width:100%}
 body.page-reports-attendance .history-table thead{display:none}
 body.page-reports-attendance .history-table tbody{display:grid;gap:9px}
 body.page-reports-attendance .history-table tr{display:grid;grid-template-columns:1fr 1fr;padding:10px;border:1px solid #e5e7eb;border-radius:10px}
 body.page-reports-attendance .history-table td{display:block;padding:5px;border:0}
 body.page-reports-attendance .history-table td:nth-child(1)::before{content:'Fecha'}
 body.page-reports-attendance .history-table td:nth-child(2)::before{content:'Semana'}
 body.page-reports-attendance .history-table td:nth-child(3)::before{content:'Sesión'}
 body.page-reports-attendance .history-table td:nth-child(4)::before{content:'Estado'}
 body.page-reports-attendance .history-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-reports-attendance .edit-actions,
 body.page-reports-homework .edit-actions{display:grid;grid-template-columns:1fr}
 body.page-reports-attendance .edit-actions .btn,
 body.page-reports-homework .edit-actions .button{width:100%}
 body.page-reports-homework .detail-list{padding:8px 14px 18px}
 body.page-reports-homework .detail-row{grid-template-columns:1fr}
 body.page-reports-homework .detail-row .badge-button{width:100%;min-height:40px}
}
@media(max-width:420px){
 body.page-reports-attendance .general-stats,
 body.page-reports-attendance .panel-stats,
 body.page-reports-homework .cards{grid-template-columns:1fr!important}
}


/* Séptima etapa móvil: Reportes financieros */
@media(max-width:760px){
 body.page-reports-overdue .card,
 body.page-reports-paused-plans .card,
 body.page-reports-income .card{padding:15px;overflow:hidden}
 body.page-reports-overdue .filters,
 body.page-reports-income .filters{grid-template-columns:1fr!important}
 body.page-reports-overdue .filters .search,
 body.page-reports-income .filters .search{grid-column:auto!important}
 body.page-reports-paused-plans .filters{display:grid!important;grid-template-columns:1fr;align-items:stretch}
 body.page-reports-paused-plans .filters label,
 body.page-reports-paused-plans .filters select,
 body.page-reports-paused-plans .filters .button{width:100%;max-width:100%;min-width:0}
 body.page-reports-overdue .filter-actions,
 body.page-reports-income .filter-actions{display:grid;grid-template-columns:1fr 1fr}
 body.page-reports-overdue .filter-actions>*,
 body.page-reports-income .filter-actions>*{width:100%;min-height:44px}
 body.page-reports-overdue .metrics{grid-template-columns:1fr 1fr!important}
 body.page-reports-paused-plans .metrics{grid-template-columns:1fr 1fr!important}
 body.page-reports-paused-plans .metrics .metric:last-child{grid-column:1/-1}
 body.page-reports-income .metrics{grid-template-columns:1fr 1fr!important}
 body.page-reports-income .metrics .total{grid-column:1/-1!important}
 body.page-reports-income .breakdowns{grid-template-columns:1fr!important;gap:0}
 body.page-reports-income input[type="date"]{display:block;width:100%!important;max-width:100%!important;min-width:0!important;inline-size:100%!important}
 body.page-reports-income .report-actions{display:grid;grid-template-columns:1fr 1fr}
 body.page-reports-income .report-actions>*{width:100%;min-height:44px}
 body.page-reports-overdue .table-wrap,
 body.page-reports-paused-plans .table-wrap,
 body.page-reports-income .table-wrap{overflow:visible}
 body .financial-report-table{display:block!important;width:100%!important;min-width:0!important}
 body .financial-report-table thead{display:none}
 body .financial-report-table tbody{display:grid;gap:11px}
 body .financial-report-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body .financial-report-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body .financial-report-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body .financial-report-table td[colspan]{grid-column:1/-1;text-align:center!important}
 body.page-reports-overdue .overdue-table td:nth-child(1),
 body.page-reports-overdue .overdue-table td:nth-child(2),
 body.page-reports-overdue .overdue-table td:nth-child(3),
 body.page-reports-overdue .overdue-table td:nth-child(9){grid-column:1/-1}
 body.page-reports-overdue .overdue-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-overdue .overdue-table td:nth-child(2)::before{content:'Contacto'}
 body.page-reports-overdue .overdue-table td:nth-child(3)::before{content:'Plan'}
 body.page-reports-overdue .overdue-table td:nth-child(4)::before{content:'Cuotas'}
 body.page-reports-overdue .overdue-table td:nth-child(5)::before{content:'Saldo vencido'}
 body.page-reports-overdue .overdue-table td:nth-child(6)::before{content:'Vencimiento más antiguo'}
 body.page-reports-overdue .overdue-table td:nth-child(7)::before{content:'Atraso'}
 body.page-reports-overdue .overdue-table td:nth-child(8)::before{content:'Último pago'}
 body.page-reports-overdue .overdue-table td:nth-child(9)::before{content:'Acciones'}
 body.page-reports-overdue .action-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}
 body.page-reports-overdue .action-buttons .button{width:100%;min-width:0;min-height:42px}
 body.page-reports-overdue .modal-backdrop{padding:0!important;align-items:stretch}
 body.page-reports-overdue .payment-modal{width:100%;height:100dvh;max-height:none;border-radius:0}
 body.page-reports-overdue .payment-modal-head{padding-top:calc(14px + var(--real-safe-top))}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(1),
 body.page-reports-paused-plans .paused-plans-table td:nth-child(2),
 body.page-reports-paused-plans .paused-plans-table td:nth-child(3),
 body.page-reports-paused-plans .paused-plans-table td:nth-child(8),
 body.page-reports-paused-plans .paused-plans-table td:nth-child(9){grid-column:1/-1}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(2)::before{content:'Contacto'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(3)::before{content:'Plan'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(4)::before{content:'Inicio de pausa'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(5)::before{content:'Regreso previsto'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(6)::before{content:'Próxima cuota'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(7)::before{content:'Saldo'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(8)::before{content:'Motivo'}
 body.page-reports-paused-plans .paused-plans-table td:nth-child(9)::before{content:'Acciones'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(1),
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(2),
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(3),
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(4),
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(7),
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(8){grid-column:1/-1}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(2)::before{content:'Contacto'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(3)::before{content:'Plan'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(4)::before{content:'Cambio'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(5)::before{content:'Inicio de sustituta'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(6)::before{content:'Fecha del cambio'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(7)::before{content:'Motivo'}
 body.page-reports-paused-plans .rescheduled-phases-table td:nth-child(8)::before{content:'Acciones'}
 body.page-reports-paused-plans .financial-report-table .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 body.page-reports-paused-plans .financial-report-table .actions .button{width:100%;min-width:0;min-height:42px;padding:8px 5px}
 body.page-reports-paused-plans .modal-backdrop{padding:0!important;align-items:stretch}
 body.page-reports-paused-plans .reason-modal{width:100%;max-height:100dvh;border-radius:0}
 body.page-reports-income .income-table td:nth-child(1)::before{content:'Fecha'}
 body.page-reports-income .income-table td:nth-child(2){grid-column:1/-1}
 body.page-reports-income .income-table td:nth-child(2)::before{content:'Alumno'}
 body.page-reports-income .income-table td:nth-child(3){grid-column:1/-1}
 body.page-reports-income .income-table td:nth-child(3)::before{content:'Concepto'}
 body.page-reports-income .income-table td:nth-child(4)::before{content:'Modalidad'}
 body.page-reports-income .income-table td:nth-child(5)::before{content:'Método'}
 body.page-reports-income .income-table td:nth-child(6){grid-column:1/-1}
 body.page-reports-income .income-table td:nth-child(6)::before{content:'Referencia'}
 body.page-reports-income .income-table td:nth-child(7)::before{content:'Monto'}
 body.page-reports-income .income-table td:nth-child(8)::before{content:'Registrado por'}
 body.page-reports-income .income-table td:nth-child(9){grid-column:1/-1}
 body.page-reports-income .income-table td:nth-child(9)::before{content:'Acciones'}
 body.page-reports-income .income-table .actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
 body.page-reports-income .income-table .actions .button{width:100%;min-height:42px}
}
@media(max-width:420px){
 body.page-reports-overdue .metrics,
 body.page-reports-paused-plans .metrics,
 body.page-reports-income .metrics,
 body.page-reports-overdue .filter-actions,
 body.page-reports-income .filter-actions,
 body.page-reports-income .report-actions,
 body.page-reports-overdue .action-buttons,
 body.page-reports-income .income-table .actions{grid-template-columns:1fr!important}
 body.page-reports-paused-plans .financial-report-table .actions{grid-template-columns:1fr}
}


/* Octava etapa móvil: Reportes de seguimiento */
@media(max-width:760px){
 body.page-reports-index .grid{grid-template-columns:1fr!important;gap:13px}
 body.page-reports-index .card{padding:18px;min-height:0}
 body.page-reports-index .card h2{font-size:19px}
 body.page-reports-index .icon{font-size:27px;margin-bottom:8px}
 body.page-reports-at-risk .card,
 body.page-reports-cycle-retention .card{padding:15px;overflow:hidden}
 body.page-reports-at-risk .filters,
 body.page-reports-cycle-retention .filters{display:grid!important;grid-template-columns:1fr;align-items:stretch}
 body.page-reports-at-risk .filters label,
 body.page-reports-at-risk .filters select,
 body.page-reports-at-risk .filters .btn,
 body.page-reports-cycle-retention .filters label,
 body.page-reports-cycle-retention .filters select,
 body.page-reports-cycle-retention .filters .button{width:100%;max-width:100%;min-width:0}
 body.page-reports-at-risk .filters .btn,
 body.page-reports-cycle-retention .filters .button{min-height:44px}
 body.page-reports-at-risk .summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
 body.page-reports-at-risk .mini{padding:11px;min-width:0}
 body.page-reports-at-risk .mini strong{font-size:21px}
 body.page-reports-cycle-retention .metrics{grid-template-columns:1fr 1fr!important}
 body.page-reports-cycle-retention .metrics .metric:nth-child(3){grid-column:1/-1}
 body.page-reports-cycle-retention .metric{padding:14px}
 body.page-reports-cycle-retention .funnel{grid-template-columns:1fr 1fr;gap:9px}
 body.page-reports-cycle-retention .funnel-step{padding:13px}
 body.page-reports-cycle-retention .report-actions{display:grid;grid-template-columns:1fr 1fr}
 body.page-reports-cycle-retention .report-actions>*{width:100%;min-height:44px}
 body.page-reports-at-risk .table-wrap,
 body.page-reports-cycle-retention .table-wrap{overflow:visible}
 body .followup-report-table{display:block!important;width:100%!important;min-width:0!important}
 body .followup-report-table thead{display:none}
 body .followup-report-table tbody{display:grid;gap:11px}
 body .followup-report-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body .followup-report-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body .followup-report-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body .followup-report-table td[colspan]{grid-column:1/-1;text-align:center!important}
 body.page-reports-at-risk .at-risk-table td:nth-child(1){grid-column:1/-1}
 body.page-reports-at-risk .at-risk-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-at-risk .at-risk-table td:nth-child(2){grid-column:1/-1}
 body.page-reports-at-risk .at-risk-table td:nth-child(2)::before{content:'GA'}
 body.page-reports-at-risk .at-risk-table td:nth-child(3)::before{content:'Asistencia'}
 body.page-reports-at-risk .at-risk-table td:nth-child(4)::before{content:'Tareas al día'}
 body.page-reports-at-risk .at-risk-table td:nth-child(5){grid-column:1/-1}
 body.page-reports-at-risk .at-risk-table td:nth-child(5)::before{content:'Necesita atención en'}
 body.page-reports-cycle-retention .cycle-retention-table td::before{content:attr(data-label)}
 body.page-reports-cycle-retention .cycle-retention-table td[data-label="Alumno"],
 body.page-reports-cycle-retention .cycle-retention-table td[data-label="Resultado"]{grid-column:1/-1}
}
@media(max-width:420px){
 body.page-reports-at-risk .summary,
 body.page-reports-cycle-retention .metrics,
 body.page-reports-cycle-retention .funnel,
 body.page-reports-cycle-retention .report-actions{grid-template-columns:1fr!important}
 body.page-reports-cycle-retention .metrics .metric:nth-child(3){grid-column:auto}
}


/* Novena etapa móvil: Diplomas */
@media(max-width:760px){
 body.page-reports-diplomas .card{padding:15px;overflow:hidden}
 body.page-reports-diplomas .filters{display:grid!important;grid-template-columns:1fr;align-items:stretch}
 body.page-reports-diplomas .filters label,
 body.page-reports-diplomas .filters select,
 body.page-reports-diplomas .filters .btn{width:100%;max-width:100%;min-width:0}
 body.page-reports-diplomas .filters .btn{min-height:44px}
 body.page-reports-diplomas .template-summary{display:grid;grid-template-columns:1fr}
 body.page-reports-diplomas .template-summary .badge{display:flex;width:100%;white-space:normal}
 body.page-reports-diplomas .table-wrap{overflow:visible}
 body.page-reports-diplomas .diploma-report-table{display:block!important;width:100%!important;min-width:0!important}
 body.page-reports-diplomas .diploma-report-table thead{display:none}
 body.page-reports-diplomas .diploma-report-table tbody{display:grid;gap:11px}
 body.page-reports-diplomas .diploma-report-table tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-width:0;padding:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
 body.page-reports-diplomas .diploma-report-table td{display:block!important;min-width:0;padding:5px!important;border:0!important;overflow-wrap:anywhere}
 body.page-reports-diplomas .diploma-report-table td::before{display:block;margin-bottom:3px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase}
 body.page-reports-diplomas .diploma-report-table td[colspan]{grid-column:1/-1;text-align:center!important}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(1),
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(2),
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(5),
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(6){grid-column:1/-1}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(2)::before{content:'Nombre para diploma'}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(3)::before{content:'Asistencia'}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(4)::before{content:'Tareas'}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(5)::before{content:'Tipo'}
 body.page-reports-diplomas .certified-diplomas-table td:nth-child(6)::before{content:'Diploma'}
 body.page-reports-diplomas .certified-diplomas-table .actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 body.page-reports-diplomas .certified-diplomas-table .actions>form,
 body.page-reports-diplomas .certified-diplomas-table .actions>form .btn,
 body.page-reports-diplomas .certified-diplomas-table .actions>.btn{width:100%;min-width:0;min-height:42px}
 body.page-reports-diplomas .certified-diplomas-table .whatsapp-diploma{width:100%;min-height:42px;padding:8px}
 body.page-reports-diplomas .pending-diplomas-table td:nth-child(1),
 body.page-reports-diplomas .pending-diplomas-table td:nth-child(4){grid-column:1/-1}
 body.page-reports-diplomas .pending-diplomas-table td:nth-child(1)::before{content:'Alumno'}
 body.page-reports-diplomas .pending-diplomas-table td:nth-child(2)::before{content:'Asistencia'}
 body.page-reports-diplomas .pending-diplomas-table td:nth-child(3)::before{content:'Tareas entregadas'}
 body.page-reports-diplomas .pending-diplomas-table td:nth-child(4)::before{content:'Situación'}
 body.page-reports-diplomas .pending-diplomas-table .badge{white-space:normal;line-height:1.35}
}
@media(max-width:380px){
 body.page-reports-diplomas .certified-diplomas-table .actions{grid-template-columns:1fr}
}


/* Detalles interactivos en Progreso por Módulo */
@media(max-width:760px){
 body.page-reports-progress-details .progress-attendance{grid-template-columns:1fr 1fr;gap:7px}
 body.page-reports-progress-details .progress-box{min-width:0;padding:9px}
 body.page-reports-progress-details .progress-box.tasks{min-width:0}
 body.page-reports-progress-details .progress-detail-table td:nth-child(3),
 body.page-reports-progress-details .progress-detail-table td:nth-child(4){grid-column:1/-1}
 body.page-reports-progress-details .detail-backdrop{padding:0;align-items:stretch}
 body.page-reports-progress-details .detail-modal{width:100%;max-width:none;max-height:100dvh;border-radius:0}
 body.page-reports-progress-details .detail-head{padding:calc(14px + var(--real-safe-top)) 14px 14px}
 body.page-reports-progress-details .detail-body{padding:12px;max-height:calc(100dvh - 86px)}
 body.page-reports-progress-details .detail-row{grid-template-columns:1fr;gap:8px}
 body.page-reports-progress-details .detail-status{justify-self:start}
}
@media(max-width:390px){
 body.page-reports-progress-details .progress-attendance{grid-template-columns:1fr}
}


/* Staff y permisos · móvil */
@media (max-width: 760px) {
  .page-staff-index header,
  .page-staff-add header,
  .page-staff-edit header {
    padding: 11px 14px;
  }

  .page-staff-index .header-inner,
  .page-staff-add .header-inner,
  .page-staff-edit .header-inner {
    align-items: flex-start;
    gap: 10px;
  }

  .page-staff-index .header-left,
  .page-staff-add .header-left,
  .page-staff-edit .header-left {
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px 13px;
  }

  .page-staff-index .brand,
  .page-staff-add .brand,
  .page-staff-edit .brand {
    flex-basis: 100%;
  }

  .page-staff-index header a,
  .page-staff-add header a,
  .page-staff-edit header a {
    line-height: 1.25;
  }

  .page-staff-index .main,
  .page-staff-add main,
  .page-staff-edit main {
    padding: 18px 12px 28px;
  }

  .page-staff-index h1,
  .page-staff-add h1,
  .page-staff-edit h1 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .page-staff-index .topbar {
    align-items: stretch;
  }

  .page-staff-index .topbar .button {
    width: 100%;
    text-align: center;
  }

  .page-staff-index .card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-staff-index .staff-table,
  .page-staff-index .staff-table tbody,
  .page-staff-index .staff-table tr,
  .page-staff-index .staff-table td {
    display: block;
    width: 100%;
  }

  .page-staff-index .staff-table {
    overflow: visible;
    white-space: normal;
  }

  .page-staff-index .staff-table thead {
    display: none;
  }

  .page-staff-index .staff-table tr {
    margin-bottom: 12px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .05);
  }

  .page-staff-index .staff-table td {
    display: grid;
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f3;
    overflow-wrap: anywhere;
  }

  .page-staff-index .staff-table td:last-child {
    border-bottom: 0;
  }

  .page-staff-index .staff-table td::before {
    content: attr(data-label);
    color: #6b7280;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
  }

  .page-staff-add .card,
  .page-staff-edit .card {
    padding: 17px 14px;
  }

  .page-staff-add .phone-control,
  .page-staff-edit .phone-control {
    flex-direction: column;
  }

  .page-staff-add .phone-control .phone-dial,
  .page-staff-edit .phone-control .phone-dial {
    width: 100%;
    flex: 0 0 auto;
  }

  .page-staff-add .actions,
  .page-staff-edit .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-staff-add .actions .button,
  .page-staff-edit .actions .button,
  .page-staff-edit #toggleStaffForm .button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .page-staff-add .role,
  .page-staff-edit .role-card {
    padding: 12px;
  }

  .page-staff-edit .topbar {
    align-items: flex-start;
  }

  .page-staff-edit .perms {
    overflow-wrap: anywhere;
  }
}


/* Configuración de pagos · móvil */
@media (max-width: 760px) {
  .page-payments-setup header,
  .page-module-prices header,
  .page-payment-plan-form header,
  .page-module-price-edit header {
    padding: 11px 14px;
  }

  .page-payments-setup .header-inner {
    align-items: flex-start;
    gap: 10px;
  }

  .page-payments-setup .header-left {
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px 13px;
  }

  .page-payments-setup .brand {
    flex-basis: 100%;
  }

  .page-payments-setup main,
  .page-module-prices main,
  .page-payment-plan-form main,
  .page-module-price-edit main {
    padding: 18px 12px 30px;
  }

  .page-payments-setup h1,
  .page-module-prices h1,
  .page-payment-plan-form h1,
  .page-module-price-edit h1 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .page-payments-setup h2,
  .page-module-prices h2 {
    font-size: 1.25rem;
  }

  .page-payments-setup .topbar {
    align-items: stretch;
  }

  .page-payments-setup .topbar .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-payments-setup .topbar .button {
    width: 100%;
    text-align: center;
  }

  .page-payments-setup .card,
  .page-module-prices .card,
  .page-payment-plan-form .card,
  .page-module-price-edit .card {
    padding: 17px 14px;
  }

  .page-payments-setup .rule-form {
    align-items: stretch;
  }

  .page-payments-setup .rule-form label,
  .page-payments-setup .rule-form input,
  .page-payments-setup .rule-form .button {
    width: 100%;
  }

  .page-payments-setup input,
  .page-payments-setup select,
  .page-module-prices input,
  .page-module-prices select,
  .page-payment-plan-form input,
  .page-payment-plan-form select,
  .page-module-price-edit input,
  .page-module-price-edit select {
    min-height: 44px;
    font-size: 16px;
  }

  .page-payments-setup .payment-config-table,
  .page-payments-setup .payment-config-table tbody,
  .page-payments-setup .payment-config-table tr,
  .page-payments-setup .payment-config-table td,
  .page-module-prices .payment-config-table,
  .page-module-prices .payment-config-table tbody,
  .page-module-prices .payment-config-table tr,
  .page-module-prices .payment-config-table td {
    display: block;
    width: 100%;
  }

  .page-payments-setup .payment-config-table thead,
  .page-module-prices .payment-config-table thead {
    display: none;
  }

  .page-payments-setup .payment-config-table tr,
  .page-module-prices .payment-config-table tr {
    margin-bottom: 12px;
    padding: 8px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(17, 24, 39, .045);
  }

  .page-payments-setup .payment-config-table td,
  .page-module-prices .payment-config-table td {
    display: grid;
    grid-template-columns: minmax(102px, 38%) minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f3;
    overflow-wrap: anywhere;
  }

  .page-payments-setup .payment-config-table td:last-child,
  .page-module-prices .payment-config-table td:last-child {
    border-bottom: 0;
  }

  .page-payments-setup .payment-config-table td::before,
  .page-module-prices .payment-config-table td::before {
    content: attr(data-label);
    color: #6b7280;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
  }

  .page-payments-setup .payment-config-table .button,
  .page-module-prices .payment-config-table .button {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }

  .page-payments-setup .modal-backdrop {
    padding: 12px;
  }

  .page-payments-setup .modal-card {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 20px 16px;
  }

  .page-payments-setup .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-payments-setup .modal-actions .button {
    width: 100%;
    min-height: 44px;
  }

  .page-payment-plan-form .summary {
    padding: 14px 12px;
  }

  .page-payment-plan-form .summary-row {
    align-items: flex-start;
    gap: 10px;
  }

  .page-payment-plan-form .summary-row > :last-child {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .page-payment-plan-form .summary-row.monthly {
    font-size: 1.05rem;
  }

  .page-payment-plan-form form.card > p:last-child,
  .page-module-price-edit form.card > p:last-child,
  .page-module-prices form > p:last-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .page-payment-plan-form form.card > p:last-child button,
  .page-payment-plan-form form.card > p:last-child .button,
  .page-module-price-edit form.card > p:last-child button,
  .page-module-price-edit form.card > p:last-child .button,
  .page-module-prices form > p:last-child button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }
}


/* Formularios de estudiantes · móvil */
@media (max-width: 760px) {
  .page-students-form header,
  .page-students-enroll header {
    padding: 11px 14px;
  }

  .page-students-form main,
  .page-students-enroll main {
    padding: 18px 12px 30px;
  }

  .page-students-form h1,
  .page-students-enroll h1 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .page-students-form h2,
  .page-students-enroll h2 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .page-students-form .card,
  .page-students-enroll .card {
    padding: 17px 14px;
  }

  .page-students-form .section {
    margin-top: 25px;
  }

  .page-students-form input,
  .page-students-form select,
  .page-students-enroll input,
  .page-students-enroll select {
    min-height: 44px;
    font-size: 16px;
  }

  .page-students-form .phone-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .page-students-form .phone-control .phone-dial {
    width: 100%;
    flex: 0 0 auto;
  }

  .page-students-form .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-students-form .actions button,
  .page-students-form .actions .button,
  .page-students-form .danger-zone .button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .page-students-form .danger-zone {
    padding: 16px 14px;
  }

  .page-students-enroll .header-inner {
    align-items: flex-start;
    gap: 10px;
  }

  .page-students-enroll .header-left {
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px 13px;
  }

  .page-students-enroll .brand {
    flex-basis: 100%;
  }

  .page-students-enroll .grid {
    gap: 12px;
  }

  .page-students-enroll .grid .card {
    margin-bottom: 0;
  }

  .page-students-enroll .grid form > p:last-child {
    display: grid;
  }

  .page-students-enroll .grid form > p:last-child button {
    width: 100%;
    min-height: 44px;
  }

  .page-students-enroll .student-enrollment-table,
  .page-students-enroll .student-enrollment-table tbody,
  .page-students-enroll .student-enrollment-table tr,
  .page-students-enroll .student-enrollment-table td {
    display: block;
    width: 100%;
  }

  .page-students-enroll .student-enrollment-table thead {
    display: none;
  }

  .page-students-enroll .student-enrollment-table tr {
    margin-bottom: 12px;
    padding: 8px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(17, 24, 39, .045);
  }

  .page-students-enroll .student-enrollment-table td {
    display: grid;
    grid-template-columns: minmax(108px, 39%) minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f3;
    overflow-wrap: anywhere;
  }

  .page-students-enroll .student-enrollment-table td:last-child {
    border-bottom: 0;
  }

  .page-students-enroll .student-enrollment-table td::before {
    content: attr(data-label);
    color: #6b7280;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
  }

  .page-students-enroll .student-enrollment-table form {
    width: 100%;
  }

  .page-students-enroll .student-enrollment-table .button {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }

  .page-students-enroll main > .card > p:last-child .button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }
}


/* Pantallas móviles finales */
@media (max-width: 760px) {
  .page-payments-pause header,
  .page-payments-reschedule header {
    padding: 11px 14px;
  }

  .page-payments-pause main,
  .page-payments-reschedule main {
    padding: 18px 12px 30px;
  }

  .page-payments-pause h1,
  .page-payments-reschedule h1 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .page-payments-pause .card,
  .page-payments-reschedule .card {
    padding: 17px 14px;
  }

  .page-payments-pause .info,
  .page-payments-reschedule .info {
    padding: 14px;
    line-height: 1.5;
  }

  .page-payments-pause input,
  .page-payments-pause textarea,
  .page-payments-reschedule input,
  .page-payments-reschedule select,
  .page-payments-reschedule textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .page-payments-pause textarea,
  .page-payments-reschedule textarea {
    min-height: 120px;
  }

  .page-payments-pause form.card > p:last-child,
  .page-payments-reschedule form.card > p:last-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .page-payments-pause form.card > p:last-child button,
  .page-payments-pause form.card > p:last-child .button,
  .page-payments-reschedule form.card > p:last-child button,
  .page-payments-reschedule form.card > p:last-child .button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .page-payments-reschedule button:disabled {
    opacity: .55;
    cursor: not-allowed;
  }

  .page-auth-recovery {
    padding:
      max(14px, env(safe-area-inset-top, 0px))
      12px
      max(14px, env(safe-area-inset-bottom, 0px));
  }

  .page-auth-recovery .card {
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 13px;
  }

  .page-auth-recovery h1 {
    font-size: 1.65rem;
    line-height: 1.18;
  }

  .page-auth-recovery input,
  .page-auth-recovery button,
  .page-auth-recovery .button {
    min-height: 46px;
    font-size: 16px;
  }

  .page-auth-recovery .notice,
  .page-auth-recovery .error {
    overflow-wrap: anywhere;
  }
}


/* Horario de miembros GA */
@media (max-width: 760px) {
 body.page-activation-groups-view .member-schedule-form{display:grid;grid-template-columns:1fr;gap:7px;width:100%}
 body.page-activation-groups-view .member-schedule-form select,
 body.page-activation-groups-view .member-schedule-form .button{width:100%;min-width:0;min-height:40px}
}


/* Asignación GA · distribución de escritorio y móvil */
@media (max-width: 760px) {
 body.page-activation-groups-view #assignStudentForm .assign-student-row{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
 body.page-activation-groups-view #assignStudentForm .assign-student-row>div{width:100%;min-width:0}
 body.page-activation-groups-view #assignStudentForm .assign-student-row>button{width:100%;min-height:44px;margin-top:0}
}

/* Recuperación de contraseña · límite de escritorio */
body.page-auth-recovery .card{width:min(100%,440px);max-width:440px}
