/* Apariencia oscura global y preferencia por usuario */
.theme-toggle-button{display:inline-flex;align-items:center;gap:8px;height:42px;border:1px solid #e1e7ef;border-radius:13px;background:#f5f7fa;color:#31435e;padding:0 13px;font-size:.7rem;font-weight:850;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}.theme-toggle-button:hover{background:#eaf0f7;transform:translateY(-1px)}.theme-toggle-button:focus-visible{outline:3px solid rgba(82,133,205,.28);outline-offset:2px}.theme-toggle-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#fff;font-size:.9rem;box-shadow:0 2px 6px rgba(26,40,65,.08)}.theme-toggle-button.is-saving{cursor:wait;opacity:.65}.theme-toggle-button.save-error{border-color:#ef5b68;animation:theme-shake .3s ease}.theme-toggle-label{line-height:1}@keyframes theme-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

[data-bs-theme=dark]{--pf-navy:#9fb4ff;--pf-navy-dark:#111a2c;--pf-ink:#e7edf7;--pf-muted:#91a0b8;--pf-silver:#202b3d;--bs-body-bg:#0d1421;--bs-body-color:#dce4ef;--bs-border-color:#2a374a;--bs-secondary-bg:#182234;--bs-tertiary-bg:#202b3d;--bs-emphasis-color:#fff;--bs-link-color:#8eb7ff;--bs-link-hover-color:#b7d0ff;color-scheme:dark}
[data-bs-theme=dark] body,[data-bs-theme=dark] body.admin-layout,[data-bs-theme=dark] .admin-main{background:#0d1421!important;color:#dce4ef}
[data-bs-theme=dark] .admin-topbar{background:rgba(17,26,42,.94)!important;border-color:#283449!important;box-shadow:0 4px 22px rgba(0,0,0,.28)!important}
[data-bs-theme=dark] .topbar-school b,[data-bs-theme=dark] .topbar-user b{color:#eef3fb!important}[data-bs-theme=dark] .topbar-school small,[data-bs-theme=dark] .topbar-user small{color:#8fa0b8!important}
[data-bs-theme=dark] .theme-toggle-button{border-color:#334157;background:#202b3d;color:#dfe8f5}[data-bs-theme=dark] .theme-toggle-button:hover{background:#29364a}[data-bs-theme=dark] .theme-toggle-icon{background:#111a29;box-shadow:none}
[data-bs-theme=dark] .logout-button{background:#372129;color:#ff818c}[data-bs-theme=dark] .sidebar-toggle,[data-bs-theme=dark] .mobile-menu{background:#202b3d;color:#d8e3f2}
[data-bs-theme=dark] .school-sidebar{background:#111a29!important;border-color:#283449!important;box-shadow:8px 0 30px rgba(0,0,0,.3)!important;color:#dce5f2!important}
[data-bs-theme=dark] .school-brand{border-color:#29364a!important}[data-bs-theme=dark] .school-brand strong{color:#eef3fb!important}[data-bs-theme=dark] .school-brand small{color:#8999b1!important}
[data-bs-theme=dark] .nav-group summary{color:#aebcd0}[data-bs-theme=dark] .nav-group summary:hover,[data-bs-theme=dark] .nav-group[open]:not(.is-active)>summary{background:#202c3f;color:#fff}[data-bs-theme=dark] .nav-group.is-active>summary{background:#2b3a51;color:#fff;box-shadow:0 7px 16px rgba(0,0,0,.25)}
[data-bs-theme=dark] .nav-submenu{border-color:#344158}[data-bs-theme=dark] .submenu-link{color:#98a9c0}[data-bs-theme=dark] .submenu-link:hover{background:#1c283a;color:#eaf0fa}[data-bs-theme=dark] .submenu-link.active{background:#24334a;color:#a9c8ff}[data-bs-theme=dark] .offcanvas-header{background:#111a29;color:#eaf1fb;border-color:#2b384c!important}[data-bs-theme=dark] .offcanvas-header .btn-close{filter:invert(1) grayscale(1)}

[data-bs-theme=dark] :is(.card,.content-card,.graphic-panel,.student-table-card,.student-form-card,.enrollment-form-card,.payment-form-card,.payment-summary,.expense-form-main,.expense-table-card,.scholarship-directory,.group-directory,.catalog-card,.catalog-form-card,.academic-card,.security-card,.inventory-card,.payroll-card,.breakfast-card,.uniform-card,.account-card,.receipt-card,.printable-receipt){background:#151f30!important;border-color:#2a374a!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important;color:#dce4ef}
[data-bs-theme=dark] :is(.expense-stats,.scholarship-metrics,.group-metrics,.graphic-metrics,.account-metrics,.finance-metrics)>article,[data-bs-theme=dark] .metric-card,[data-bs-theme=dark] .graphic-stat{background:#162235!important;border-color:#2c3a50!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important}
[data-bs-theme=dark] section[class*="-hero"],[data-bs-theme=dark] .catalog-heading,[data-bs-theme=dark] .security-hero{background:linear-gradient(120deg,#17243a,#1b293d 58%,#202b3f)!important;border-color:#33435a!important;color:#edf3fb!important}
[data-bs-theme=dark] section[class*="-hero"] p,[data-bs-theme=dark] section[class*="-hero"] small{color:#a5b3c7!important}
[data-bs-theme=dark] :is(h1,h2,h3,h4,h5,h6){color:#eef3fb}
[data-bs-theme=dark] :is(.content-card,.graphic-panel,.student-table-card,.expense-table-card,.scholarship-directory,.group-directory,.catalog-card,.payment-form-card,.payment-summary,.enrollment-form-card) :is(h1,h2,h3,b,strong,label){color:#e8eef8}
[data-bs-theme=dark] :is(p,small,.text-muted,.text-body-secondary,.form-text){color:#93a3ba}

[data-bs-theme=dark] :is(.expense-filters,.scholarship-filters,.group-filters,.academic-filter,.enrollment-search,.filter-panel,.search-panel){background:#151f30!important;border-color:#2a374a!important}
[data-bs-theme=dark] :is(input,select,textarea,.form-control,.form-select){background-color:#101a29!important;border-color:#344158!important;color:#e3eaf5!important}
[data-bs-theme=dark] :is(input,select,textarea,.form-control,.form-select)::placeholder{color:#74859d!important}
[data-bs-theme=dark] :is(input,select,textarea,.form-control,.form-select):focus{background-color:#121e2f!important;border-color:#6686b5!important;box-shadow:0 0 0 3px rgba(91,132,188,.2)!important;color:#fff!important}
[data-bs-theme=dark] input[type=date],[data-bs-theme=dark] input[type=time],[data-bs-theme=dark] input[type=month]{color-scheme:dark}
[data-bs-theme=dark] .form-check-input{background-color:#253248!important;border-color:#53647d!important}[data-bs-theme=dark] .form-check-input:checked{background-color:#ef4351!important;border-color:#ef4351!important}
[data-bs-theme=dark] .dropdown-menu,[data-bs-theme=dark] .modal-content{background:#172234;border-color:#334056;color:#dce5f1}

[data-bs-theme=dark] :is(table,.table,.student-table,.expense-table,.scholarship-table,.group-table){color:#d9e2ef!important;--bs-table-bg:transparent;--bs-table-color:#d9e2ef;--bs-table-border-color:#29364a;--bs-table-hover-bg:#1c293c;--bs-table-hover-color:#fff}
[data-bs-theme=dark] :is(table,.table,.student-table,.expense-table,.scholarship-table,.group-table) thead th{background:#1c283a!important;border-color:#2c394d!important;color:#9eacc1!important}
[data-bs-theme=dark] :is(table,.table,.student-table,.expense-table,.scholarship-table,.group-table) td{background:transparent!important;border-color:#283549!important;color:#cfdae9!important}
[data-bs-theme=dark] :is(table,.table,.student-table,.expense-table,.scholarship-table,.group-table) tbody tr:hover{background:#1b283a!important}
[data-bs-theme=dark] :is(.expense-table-card,.scholarship-directory,.group-directory,.student-table-card)>header{border-color:#2b384c!important}
[data-bs-theme=dark] code{background:#202d41!important;color:#a8c9ff!important}

[data-bs-theme=dark] :is(.chart-placeholder,.friendly-empty,.table-empty,.expense-empty,.scholarship-empty,.group-empty,.empty-chart){background:linear-gradient(180deg,#172235,#121c2c)!important;color:#9dacbf!important}
[data-bs-theme=dark] :is(.quick-card button,.shortcut-list button,.catalog-action,.action-view,.action-edit,.scholarship-edit,.group-actions a){background:#1d2a3d!important;border-color:#334157!important;color:#c9d9ed!important}
[data-bs-theme=dark] :is(.quick-card button,.shortcut-list button,.catalog-action,.action-view,.action-edit,.scholarship-edit,.group-actions a):hover{background:#27364b!important;color:#fff!important}
[data-bs-theme=dark] :is(.group-cycle,.scholarship-cycle,.expense-method,.group-name>span,.scholarship-student>span,.table-student>span,.panel-emoji){background:#213047!important;color:#a9c8f5!important}
[data-bs-theme=dark] :is(.expense-cash-box,.generation-notice,.cash-ready,.preserved-data,.scholarship-source,.receipt-preferences){background:#172c29!important;border-color:#31554d!important;color:#cce8df!important}
[data-bs-theme=dark] .expense-upload,[data-bs-theme=dark] .payment-dropzone{background:#152a27!important;border-color:#43816c!important}
[data-bs-theme=dark] .breadcrumb{--bs-breadcrumb-divider-color:#708198;--bs-breadcrumb-item-active-color:#9aabc1}
[data-bs-theme=dark] .pagination{--bs-pagination-bg:#172234;--bs-pagination-border-color:#334157;--bs-pagination-color:#a9c8ff;--bs-pagination-hover-bg:#24334a;--bs-pagination-hover-border-color:#40516a;--bs-pagination-active-bg:#4b6ea8;--bs-pagination-active-border-color:#4b6ea8}
[data-bs-theme=dark] .alert{border-color:#34445b;background:#1c293b;color:#dbe5f1}
[data-bs-theme=dark] hr{border-color:#344158}

/* Cobertura completa de módulos auditados */
[data-bs-theme=dark] :is(
 .student-summary,.academic-metrics,.receivable-metrics,.breakfast-metrics,.finance-metrics,
 .hr-metrics,.inventory-metrics,.medical-stats,.re-enrollment-summary,.uniform-metrics,
 .report-kpis,.notification-grid,.profile-data,.graphic-metrics,.account-metrics
)>article{background:#162235!important;border-color:#2c3a50!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important;color:#dce5f2!important}
[data-bs-theme=dark] :is(
 .student-summary,.academic-metrics,.receivable-metrics,.breakfast-metrics,.finance-metrics,
 .hr-metrics,.inventory-metrics,.medical-stats,.re-enrollment-summary,.uniform-metrics,
 .report-kpis,.notification-grid,.profile-data
) :is(strong,b){color:#eef3fb!important}
[data-bs-theme=dark] :is(
 .student-summary,.academic-metrics,.receivable-metrics,.breakfast-metrics,.finance-metrics,
 .hr-metrics,.inventory-metrics,.medical-stats,.re-enrollment-summary,.uniform-metrics,
 .report-kpis,.notification-grid,.profile-data
) :is(small,em,p){color:#91a2b9!important}

[data-bs-theme=dark] :is(
 .student-filter-panel,.student-search,.enrollment-search,.academic-filter,.breakfast-filter,
 .receivable-filters,.tuition-matrix-filters,.program-calendar-filter,.pos-toolbar,.pos-search,
 .medical-filter,.account-filter,.student-select-search-box
){background:#151f30!important;border-color:#2b394d!important;box-shadow:0 7px 20px rgba(0,0,0,.14)!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.filter-search,.receivable-search,.student-select-search-box .student-select-search-input){background:#101a29!important;border-color:#344158!important;color:#e5edf8!important}
[data-bs-theme=dark] :is(.filter-search input,.student-search input){background:transparent!important;color:#e4ebf6!important}
[data-bs-theme=dark] :is(.filter-clear,.clear-search){color:#91a5c1!important}

/* Cuentas por cobrar: el estado vencido pinta cada celda para evitar filas claras. */
[data-bs-theme=dark] .receivable-table tbody tr.is-overdue,
[data-bs-theme=dark] .receivable-table tbody tr.is-overdue:hover{background:#251a22!important}
[data-bs-theme=dark] .receivable-table tbody tr.is-overdue>td{background:linear-gradient(90deg,#2d1c25,#251a22 42%,#1d1c26)!important;border-color:#49303c!important}
[data-bs-theme=dark] .receivable-table tbody tr.is-overdue>td:first-child{box-shadow:inset 4px 0 #ef6673!important}
[data-bs-theme=dark] .receivable-table tbody tr:not(.is-overdue)>td{background:#151f30!important}
[data-bs-theme=dark] .receivable-table tbody tr:not(.is-overdue):hover>td{background:#1b293c!important}
[data-bs-theme=dark] .receivable-table :is(.table-student b,.charge-concept b,.due-date b,.charge-amounts b,.balance){color:#edf3fb!important}
[data-bs-theme=dark] .receivable-table :is(.table-student small,.due-date small,.charge-amounts small){color:#91a3bc!important}
[data-bs-theme=dark] .receivable-table .due-date.late b,[data-bs-theme=dark] .receivable-table .due-date.late small{color:#ff8c98!important}
[data-bs-theme=dark] .receivable-table .balance.pending{color:#ffb06f!important}
[data-bs-theme=dark] .receivable-table .balance.settled{color:#77dbb0!important}
[data-bs-theme=dark] .receivable-table .cycle-pill{background:#22344d!important;color:#b8d3fa!important}
[data-bs-theme=dark] .receivable-table .charge-pay{background:#263955!important;border:1px solid #3b506e!important;box-shadow:0 5px 13px rgba(0,0,0,.24)!important}
[data-bs-theme=dark] .receivable-table .charge-pay:hover{background:#304766!important}
[data-bs-theme=dark] .receivable-table .charge-view{background:#22344d!important;color:#b8d3fa!important}

/* Directorio de planes de colegiatura. */
[data-bs-theme=dark] .tuition-plan-summary article,[data-bs-theme=dark] .tuition-plan-directory{background:#151f30!important;border-color:#2b394d!important;box-shadow:0 9px 25px rgba(0,0,0,.16)!important}
[data-bs-theme=dark] .tuition-plan-summary strong,[data-bs-theme=dark] .tuition-plan-directory-head h2,[data-bs-theme=dark] .tuition-plan-name strong,[data-bs-theme=dark] .tuition-plan-empty strong{color:#edf3fb!important}
[data-bs-theme=dark] .tuition-plan-summary small,[data-bs-theme=dark] .tuition-plan-directory-head p,[data-bs-theme=dark] .tuition-plan-name small,[data-bs-theme=dark] .tuition-plan-empty p{color:#91a2b9!important}
[data-bs-theme=dark] .tuition-plan-directory-head{border-color:#2d3b50!important}
[data-bs-theme=dark] .tuition-plan-table th{background:#1c293c!important;color:#9daec5!important}
[data-bs-theme=dark] .tuition-plan-table td{background:#151f30!important;border-color:#29374b!important;color:#d4dfed!important}
[data-bs-theme=dark] .tuition-plan-table tbody tr:hover td{background:#1b293c!important}
[data-bs-theme=dark] .tuition-cycle-pill{background:#22344d!important;color:#b9d4fb!important}
[data-bs-theme=dark] .tuition-plan-cost{color:#a9caff!important}
[data-bs-theme=dark] .tuition-due-day b{background:#3a2b1e!important;color:#ffc17d!important}
[data-bs-theme=dark] .tuition-due-day small{color:#92a2b7!important}
[data-bs-theme=dark] .tuition-month{background:#202b3a!important;color:#64758b!important}
[data-bs-theme=dark] .tuition-month.is-active{background:#19382e!important;color:#8ee0bb!important}
[data-bs-theme=dark] .tuition-auto-note,[data-bs-theme=dark] .tuition-plan-status.is-active{background:#19382e!important;color:#8ee0bb!important}
[data-bs-theme=dark] .tuition-auto-note i{background:#245441!important}
[data-bs-theme=dark] .tuition-plan-status.is-inactive{background:#242e3b!important;color:#9ba9bb!important}

[data-bs-theme=dark] :is(
 .academic-form,.academic-shortcut,.teacher-grid article,.period-grid article,.incident-list article,
 .report-card,.breakfast-form-card,.breakfast-calendar-card,.program-calendar-card,
 .reschedule-summary,.reschedule-form-card,.inventory-form,.payroll-form,.payroll-receipt,
 .settings-card,.multi-charge-list,.multi-payment-form,.uniform-sale-card,.uniform-form-card,
 .tuition-plan-card,.monthly-group-card,.uniform-groups-card,.pos-catalog,.pos-ticket,
 .uniform-table-card,.student-form-tabs section,.student-form-panels>section,.form-stepper,
 .student-profile-header,.profile-sections article,.related-form-card
){background:#151f30!important;border-color:#2b394d!important;box-shadow:0 9px 25px rgba(0,0,0,.16)!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(
 .academic-form,.teacher-grid article,.period-grid article,.incident-list article,.report-card,
 .breakfast-form-card,.reschedule-summary,.reschedule-form-card,.inventory-form,.payroll-form,
 .payroll-receipt,.settings-card,.uniform-sale-card,.uniform-form-card,.tuition-plan-card,
 .monthly-group-card,.uniform-groups-card,.pos-catalog,.pos-ticket,.student-form-tabs section,
 .student-form-panels>section,.student-profile-header,.profile-sections article,.related-form-card
) :is(h1,h2,h3,b,strong,label){color:#eaf0f9!important}

[data-bs-theme=dark] :is(.student-card,.student-empty,.profile-card,.profile-side>section,.catalog-card){background:#151f30!important;border-color:#2b394d!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.student-meta,.student-actions,.student-form-panels>section>header){border-color:#2c394d!important}
[data-bs-theme=dark] :is(.profile-tabs,.form-sticky-actions){background:rgba(21,31,48,.94)!important;border-color:#2b394d!important}
[data-bs-theme=dark] :is(.profile-card-action,.student-actions a,.digital-files-link){background:#213047!important;color:#afd0ff!important;border-color:#33445c!important}
[data-bs-theme=dark] :is(.detail-grid div,.medical-details div,.address-display,.inline-empty,.document-list>div){background:#1b2739!important;border-color:#344158!important;color:#cfdae8!important}
[data-bs-theme=dark] :is(.detail-grid b,.medical-details b,.address-display b,.profile-sections dd,.student-info h2,.student-table .table-student b){color:#e4ecf7!important}
[data-bs-theme=dark] :is(.medical-profile-card,.medical-card){background:#291c27!important;border-color:#603744!important}
[data-bs-theme=dark] .completion-ring:before{background:#151f30!important}
[data-bs-theme=dark] .stepper-note{background:#302b1d!important}[data-bs-theme=dark] .stepper-note p{color:#d8c58b!important}
[data-bs-theme=dark] .form-stepper>a>span{background:#202c40!important;color:#b9c8dc!important}

[data-bs-theme=dark] :is(.breakfast-calendar-days button,.program-calendar-day,.program-calendar-week,.selected-dates-preview,.calendar-student-event,.reschedule-date-field,.reschedule-notice,.reschedule-availability,.scheduled-breakfast-grid article,.inventory-grid article){background:#192638!important;border-color:#304058!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.breakfast-calendar-days button:hover,.program-calendar-day:hover){background:#223249!important}
[data-bs-theme=dark] .breakfast-calendar-days button.blank,[data-bs-theme=dark] .program-calendar-day.blank{background:#111a29!important;color:#53647c!important}
[data-bs-theme=dark] :is(.breakfast-calendar-days button.weekend:not(.selected),.program-calendar-day.weekend){background:#202537!important}
[data-bs-theme=dark] :is(.food-alert,.scheduled-breakfast-grid article.has-alert,.group-student-card.has-alert,.inventory-grid .low-stock){background:#35251f!important;border-color:#704333!important;color:#ffc5a8!important}
[data-bs-theme=dark] :is(.reschedule-button,.calendar-student-event){box-shadow:none!important}

[data-bs-theme=dark] :is(.enrollment-steps,.enrollment-form-card,.enrollment-receipt,.receipt-grid div,.promotion-path article,.preserved-data){background:#151f30!important;border-color:#2b394d!important;color:#dce5f1!important}
[data-bs-theme=dark] .enrollment-receipt>header{background:#1c293b!important;border-color:#344158!important}
[data-bs-theme=dark] .enrollment-form-card>header>span{background:#213047!important}
[data-bs-theme=dark] :is(.scholarship-summary,.scholarship-check .form-check,.scholarship-source,.receipt-preferences,.receipt-option){background:#192638!important;border-color:#304058!important;color:#dce5f1!important}

[data-bs-theme=dark] :is(.finance-card,.cash-status,.finance-empty,.finance-shortcuts a){background:#172335!important;border-color:#2d3b50!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.cash-open,.cash-ready){background:#173128!important;border-color:#315d4c!important;color:#86ddb7!important}
[data-bs-theme=dark] :is(.cash-required,.expense-errors){background:#352128!important;border-color:#6c3745!important;color:#ffb0b9!important}
[data-bs-theme=dark] :is(.selected-evidence,.evidence-heading>span,.expense-upload output){background:#1b293c!important;border-color:#35455d!important;color:#c8d8eb!important}
[data-bs-theme=dark] :is(.charge-concept code,.student-table code,.expense-table td>code){background:#203047!important;color:#aad0ff!important}

[data-bs-theme=dark] :is(.monthly-matrix .student-col,.monthly-matrix tfoot td,.monthly-matrix tfoot .student-col){background:#182436!important;border-color:#2d3b50!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.month-payment.pendiente,.month-payment.parcial,.matrix-legend .pending){background:#352d1c!important;border-color:#6b5730!important;color:#ffd47d!important}
[data-bs-theme=dark] :is(.month-payment.vencida,.matrix-legend .overdue,.account-state.vencida,.account-status-legend .vencida){background:#392129!important;border-color:#713745!important;color:#ff9eaa!important}
[data-bs-theme=dark] :is(.month-payment.bonificada,.account-row-pagada){background:#173128!important;color:#8be0b9!important}
[data-bs-theme=dark] :is(.month-payment.no-generated,.account-state.no-aplica,.account-status-legend .no-aplica,.account-row-no-aplica){background:#222b38!important;color:#9cabbc!important}
[data-bs-theme=dark] :is(.account-row-pendiente,.account-row-vencida){background:#211d24!important}
[data-bs-theme=dark] .month-checkbox-grid label{background:#192638!important;border-color:#33445b!important;color:#cdd9e8!important}

[data-bs-theme=dark] :is(.pos-cycle,.pos-product-group-card,.pos-product,.pos-customer,.pos-ticket-line,.uniform-grid article,.stock-line,.uniform-variants-collapse){background:#182537!important;border-color:#304057!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.pos-product-group-card.selected,.pos-product.selected){background:#203551!important;border-color:#5782bd!important}
[data-bs-theme=dark] :is(.pos-product-group-card.sold-out,.pos-product.sold-out){background:#202630!important;color:#77869a!important}
[data-bs-theme=dark] :is(.uniform-size-chips span.low,.uniform-group-state.low,.uniform-status.low,.uniform-minimum){background:#39242a!important;color:#ffa5b0!important}
[data-bs-theme=dark] .stock-line{background:#233147!important}

[data-bs-theme=dark] :is(.diagnostic-list article,.settings-card,.report-export-card){background:#162235!important;border-color:#2c3a50!important;color:#dce5f1!important}
[data-bs-theme=dark] :is(.diagnostic-list article.warning,.security-hero.danger){background:#36261e!important;border-color:#714936!important;color:#ffc19c!important}
[data-bs-theme=dark] :is(.health-alert,.grade-state.failed,.absence-count,.inventory-type.salida,.inventory-type.ajuste){background:#392229!important;color:#ffa3af!important}
[data-bs-theme=dark] :is(.health-clear,.blood-type,.file-progress.complete){background:#173128!important;color:#8be0b9!important}
[data-bs-theme=dark] :is(.file-progress,.breakfast-state.pendiente,.status-pendiente,.scholarship-status.suspendida){background:#352d1d!important;color:#ffd37c!important}
[data-bs-theme=dark] :is(.status-vencida,.scholarship-status.cancelada){background:#392229!important;color:#ffa3af!important}

[data-bs-theme=dark] .school-sidebar .sidebar-content{scrollbar-color:#4d5e75 #111a29}
[data-bs-theme=dark] ::-webkit-scrollbar-track{background:#111a29}[data-bs-theme=dark] ::-webkit-scrollbar-thumb{background:#44546a;border-radius:999px;border:2px solid #111a29}

/* Acceso: también respeta la preferencia guardada después de cerrar sesión. */
[data-bs-theme=dark] :is(.guest-layout,.pf-login-shell){background:radial-gradient(circle at 8% 5%,rgba(239,51,64,.12),transparent 28%),radial-gradient(circle at 95% 90%,rgba(104,139,196,.15),transparent 32%),#0d1421!important}
[data-bs-theme=dark] .pf-login-card{background:#151f30!important;border:1px solid #2b394e;box-shadow:0 28px 80px rgba(0,0,0,.42)!important}
[data-bs-theme=dark] .pf-login-form h1{color:#eef3fb!important}
[data-bs-theme=dark] .pf-login-form .form-label{color:#cbd7e7!important}
[data-bs-theme=dark] .pf-login-form .form-control{background:#101a29!important;border-color:#344158!important;color:#eef3fb!important}
[data-bs-theme=dark] .pf-login-form .form-control:focus{background:#121e2f!important;border-color:#6e91c2!important}
[data-bs-theme=dark] .login-intro,[data-bs-theme=dark] .support-copy{color:#93a3ba!important}
[data-bs-theme=dark] option{background:#101a29;color:#e3eaf5}
[data-bs-theme=dark] input:-webkit-autofill{-webkit-text-fill-color:#eef3fb!important;-webkit-box-shadow:0 0 0 1000px #101a29 inset!important;caret-color:#fff}

@media(max-width:700px){.theme-toggle-label{display:none}.theme-toggle-button{width:42px;padding:0;justify-content:center}.theme-toggle-icon{background:transparent;box-shadow:none}}
@media print{[data-bs-theme=dark] body,[data-bs-theme=dark] .admin-main,[data-bs-theme=dark] .printable-receipt{background:#fff!important;color:#111!important}}
