﻿body.dark-only .finance-dashboard-page, body.dark-only .finance-dashboard-page .card-title, body.dark-only .finance-dashboard-page .text-dark, body.dark-only .finance-dashboard-page .text-muted, body.dark-only .finance-dashboard-page h1, body.dark-only .finance-dashboard-page h2, body.dark-only .finance-dashboard-page h3, body.dark-only .finance-dashboard-page h4, body.dark-only .finance-dashboard-page h5, body.dark-only .finance-dashboard-page h6, body.dark-only .finance-dashboard-page p, body.dark-only .finance-dashboard-page table td, body.dark-only .finance-dashboard-page table th, html[data-bs-theme="dark"] .finance-dashboard-page, html[data-bs-theme="dark"] .finance-dashboard-page .card-title, html[data-bs-theme="dark"] .finance-dashboard-page .text-dark, html[data-bs-theme="dark"] .finance-dashboard-page .text-muted, html[data-bs-theme="dark"] .finance-dashboard-page h1, html[data-bs-theme="dark"] .finance-dashboard-page h2, html[data-bs-theme="dark"] .finance-dashboard-page h3, html[data-bs-theme="dark"] .finance-dashboard-page h4, html[data-bs-theme="dark"] .finance-dashboard-page h5, html[data-bs-theme="dark"] .finance-dashboard-page h6, html[data-bs-theme="dark"] .finance-dashboard-page p, html[data-bs-theme="dark"] .finance-dashboard-page table td, html[data-bs-theme="dark"] .finance-dashboard-page table th { color: #fff !important; }
body.dark-only .safe-details-page .safe-hero-actions .btn-light,html.dark-only .safe-details-page .safe-hero-actions .btn-light,html[data-bs-theme="dark"] .safe-details-page .safe-hero-actions .btn-light{color:#fff!important;background-color:#2c3054!important;border-color:#50567f!important}body.dark-only .safe-details-page .safe-hero-actions .btn-light:hover,body.dark-only .safe-details-page .safe-hero-actions .btn-light:focus,html.dark-only .safe-details-page .safe-hero-actions .btn-light:hover,html.dark-only .safe-details-page .safe-hero-actions .btn-light:focus,html[data-bs-theme="dark"] .safe-details-page .safe-hero-actions .btn-light:hover,html[data-bs-theme="dark"] .safe-details-page .safe-hero-actions .btn-light:focus{color:#fff!important;background-color:#3b406f!important;border-color:#6a70a0!important}

/* Keep inactive tabs readable across dark theme palettes and page overrides. */
:is(body.dark-only, html[data-bs-theme="dark"]) :is(.nav-tabs, .nav-pills, .nav-material) .nav-link:not(.active):not(.disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not(.show > .nav-link) {
    color: #d9deef !important;
    background-color: #2c3054 !important;
}
:is(body.dark-only, html[data-bs-theme="dark"]) :is(.nav-tabs, .nav-pills, .nav-material) .nav-link:not(.active):not(.disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not(.show > .nav-link) :is(i, svg, .text-muted) {
    color: inherit !important;
}
:is(body.dark-only, html[data-bs-theme="dark"]) :is(.nav-tabs, .nav-pills, .nav-material) .nav-link:not(.active):not(.disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not(.show > .nav-link):hover,
:is(body.dark-only, html[data-bs-theme="dark"]) :is(.nav-tabs, .nav-pills, .nav-material) .nav-link:not(.active):not(.disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not(.show > .nav-link):focus-visible {
    color: #ffffff !important;
    background-color: #3b4064 !important;
}
:is(body.dark-only, html[data-bs-theme="dark"]) :is(.nav-tabs, .nav-pills, .nav-material) .nav-link:not(.active):not(.disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not(.show > .nav-link):focus-visible {
    outline: 2px solid #b9b0ff;
    outline-offset: -2px;
}

/* Use white form labels in every dark theme palette. */
:is(body.dark-only, html[data-bs-theme="dark"]) :is(label, .col-form-label, .form-label, .control-label) {
    color: #ffffff !important;
}

/* Keep student section icons distinct from dark card headers. */
:is(body.dark-only, html[data-bs-theme="dark"]) .student-section-icon {
    background-color: #45406b !important;
    color: #ffffff !important;
    border: 1px solid #8175bd;
}
:is(body.dark-only, html[data-bs-theme="dark"]) .student-section-icon :is(i, svg) {
    color: #ffffff !important;
}

/* Admission Student Editor Theme-Integrated Hero & Selected Tab */
.student-editor-hero.bg-primary {
    background-color: #7366ff !important;
    border: 0 !important;
    color: #ffffff !important;
}

.student-editor-navigation .nav-link.active,
.student-editor-navigation .nav-pills .nav-link.active {
    background-color: #7366ff !important;
    color: #ffffff !important;
}

:is(body.dark-only, html[data-bs-theme="dark"]) .student-editor-hero.bg-primary {
    background-color: #7366ff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

:is(body.dark-only, html[data-bs-theme="dark"]) .student-editor-navigation .nav-link.active,
:is(body.dark-only, html[data-bs-theme="dark"]) .student-editor-navigation .nav-pills .nav-link.active {
    background-color: #7366ff !important;
    color: #ffffff !important;
}
