/* CSPC brand color override - replaces the theme's default violet (#5156be) with the
   navy blue sampled from the CSPC seal (assets/images/logo.png -> #003080) everywhere the
   theme uses it. Loaded last (see templates1/header.php) so these rules win on source order
   for selectors of equal specificity to the ones they're overriding in bootstrap.min.css/
   app.min.css/preloader.min.css - mirrors each original selector and !important usage
   exactly, just swapping the color.

   Shades used, derived from the base the same way the theme derives its own hover/active/
   focus shades from #5156be:
     base   #003080  rgb(0,48,128)
     hover  #002B73  rgb(0,43,115)   ~10% darker
     active #002666  rgb(0,38,102)   ~20% darker
     active border #002460  rgb(0,36,96)  ~25% darker
     focus-ring tint  rgb(77,110,166)  ~30% lighter, for the soft focus glow */

:root {
    --bs-primary: #003080;
    --bs-primary-rgb: 0, 48, 128;
    --bs-blue: #003080;
    --bs-link-color: #003080;
    --bs-link-hover-color: #003080;
    --bs-menu-item-active-color: #003080;
    --bs-sidebar-alert: rgba(0, 48, 128, 0.1);
    /* :root's own (light-mode) values only - deliberately NOT touching the
       [data-layout-mode=dark] block's versions of these same variables (#5b73e8 etc.),
       since dark mode is a legitimate separate color scheme, not "the violet" being
       replaced here. Several component rules read these via var(...)!important (e.g.
       .mm-active .active{color:var(--bs-sidebar-menu-item-active-color)!important} for the
       active sidebar item), so overriding the variable is what actually wins - a plain
       color override on .active itself loses to that !important every time. */
    --bs-sidebar-menu-item-active-color: #003080;
    --bs-sidebar-menu-item-active-effact-color: rgba(0, 48, 128, 0.2);
    --bs-sidebar-menu-item-hover-color: #003080;
    --bs-sidebar-menu-item-hover-effact-color: rgba(0, 48, 128, 0.2);
}

/* ===================== bootstrap.min.css ===================== */

.form-check-input:checked {
    background-color: #003080;
    border-color: #003080;
}
.form-range::-webkit-slider-thumb {
    background-color: #003080;
}
.form-range::-moz-range-thumb {
    background-color: #003080;
}
.btn-primary {
    --bs-btn-bg: #003080;
    --bs-btn-border-color: #003080;
    --bs-btn-hover-bg: #002B73;
    --bs-btn-hover-border-color: #002666;
    --bs-btn-focus-shadow-rgb: 77, 110, 166;
    --bs-btn-active-bg: #002666;
    --bs-btn-active-border-color: #002460;
    --bs-btn-disabled-bg: #003080;
    --bs-btn-disabled-border-color: #003080;
}
.btn-primary {
    box-shadow: 0 2px 6px 0 rgba(0, 48, 128, .5);
}
.btn-outline-primary {
    --bs-btn-color: #003080;
    --bs-btn-border-color: #003080;
    --bs-btn-hover-bg: #003080;
    --bs-btn-hover-border-color: #003080;
    --bs-btn-focus-shadow-rgb: 0, 48, 128;
    --bs-btn-active-bg: #003080;
    --bs-btn-active-border-color: #003080;
    --bs-btn-disabled-color: #003080;
    --bs-btn-disabled-border-color: #003080;
}
.nav-pills {
    --bs-nav-pills-link-active-bg: #003080;
}
.pagination {
    --bs-pagination-focus-box-shadow: 0 0 0 0.15rem rgba(0, 48, 128, 0.25);
    --bs-pagination-active-bg: #003080;
    --bs-pagination-active-border-color: #003080;
}
.progress {
    --bs-progress-bar-bg: #003080;
}
.list-group {
    --bs-list-group-active-bg: #003080;
    --bs-list-group-active-border-color: #003080;
}
.link-primary {
    color: #003080 !important;
}
.alert-outline.alert-primary {
    color: #003080;
}
.alert-border-left.alert-primary {
    border-left-color: #003080;
}
.alert-top-border.alert-primary {
    border-top-color: #003080 !important;
}
.label-arrow.alert-primary .label-icon {
    background-color: #003080;
}
.label-arrow.alert-primary .label-icon:after {
    border-left-color: #003080 !important;
}
.badge-soft-primary {
    color: #003080;
    background-color: rgba(0, 48, 128, .18);
}
.btn-soft-primary {
    color: #003080;
    background-color: rgba(0, 48, 128, .1);
}
.btn-soft-primary:active,
.btn-soft-primary:focus,
.btn-soft-primary:hover {
    background-color: #003080;
}
.dropdownmenu-primary .dropdown-item.active,
.dropdownmenu-primary .dropdown-item:focus,
.dropdownmenu-primary .dropdown-item:hover {
    background-color: rgba(0, 48, 128, .07) !important;
    color: #003080;
}
.nav-tabs-custom .nav-item .nav-link::after {
    background: #003080;
}
.nav-tabs-custom .nav-item .nav-link.active {
    color: #003080;
}

/* ===================== app.min.css ===================== */

.sidebar-alert .alertcard-title {
    color: #003080;
}
/* Collapsed-sidebar hover-peek text color (default/light mode only - dark/brand variants
   have their own separate rules this app doesn't reach, same reasoning as above). */
body[data-sidebar-size=sm] .vertical-menu #sidebar-menu > ul > li:hover > a {
    color: #003080;
}
body[data-sidebar-size=sm] .vertical-menu #sidebar-menu > ul > li:hover > a i {
    color: #003080;
}
/* These four are gated behind theme-customizer variants this app doesn't turn on by
   default (footer.php's sidebar/topbar color pickers, plus a horizontal layout mode with no
   toggle in this app at all) - kept scoped exactly like the originals rather than made
   global, since making them unconditional made the whole sidebar/topbar solid blue with
   illegible dark-on-blue text even in the app's normal (light) mode. */
body[data-sidebar=brand] .vertical-menu {
    background-color: #003080;
}
body[data-sidebar=brand] .navbar-brand-box {
    background-color: #003080;
    box-shadow: 0 1px 0 #003080;
}
.topnav .dropdown .dropdown-item.active,
.topnav .dropdown .dropdown-item:active {
    color: #003080;
}
body[data-layout=horizontal][data-topbar=colored] #page-topbar {
    background-color: #003080;
}
@media (min-width: 992px) {
    body[data-layout=horizontal][data-topbar=colored] .topnav {
        background-color: #003080;
    }
}
.avatar-title {
    background-color: #003080;
}
.form-check-primary .form-check-input:checked {
    background-color: #003080;
    border-color: #003080;
}
.form-radio-primary .form-check-input:checked {
    border-color: #003080;
    background-color: #003080;
}
.form-radio-primary .form-check-input:checked:after {
    background-color: #003080;
}
.icon-demo-content .col-lg-4:hover i {
    background-color: rgba(0, 48, 128, .2);
    color: #003080;
}
.card-radio-input:checked + .card-radio {
    border-color: #003080 !important;
}
.fc-state-active,
.fc-state-disabled,
.fc-state-down {
    background-color: #003080;
}
.fc-event,
.fc-event-dot {
    background-color: #003080;
}
#blue .noUi-connect {
    background: #003080;
}
.c-4-color {
    background: #003080;
}
.swal2-progress-steps .swal2-progress-step {
    background: #003080;
}
.swal2-progress-step.swal2-active-progress-step {
    background: #003080;
}
.swal2-progress-steps .swal2-progress-step-line {
    background: #003080;
}
.swal2-loader {
    border-color: #003080 transparent #003080 transparent;
}
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok {
    color: #003080;
}
.alertify-notifier .ajs-message {
    background-color: #003080;
    border-color: #003080;
}
.choices__list--multiple .choices__item {
    background-color: #003080;
    border-color: #003080;
}
.choices__list--multiple .choices__item.is-highlighted {
    background-color: #003080;
    border: 1px solid #003080;
}
.flatpickr-months,
.flatpickr-weekdays {
    background-color: #003080;
}
.flatpickr-day.today {
    border-color: #003080 !important;
    background-color: rgba(0, 48, 128, .1);
}
.flatpickr-day.selected {
    background-color: #003080 !important;
    border-color: #003080 !important;
}
.twitter-bs-wizard .twitter-bs-wizard-nav .step-icon {
    border: 1px solid rgba(0, 48, 128, .2);
    color: #003080;
}
.twitter-bs-wizard-nav .nav-item .nav-link.done .step-icon {
    background-color: #003080;
}
.twitter-bs-wizard-nav .nav-link.active .step-icon {
    background-color: rgba(0, 48, 128, .2);
    color: #003080;
    border-color: rgba(0, 48, 128, .2);
}
.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    background-color: #003080;
}
.table-rep-plugin .btn-group .btn-default.btn-primary {
    background-color: #003080;
    border-color: #003080;
    box-shadow: 0 0 0 2px rgba(0, 48, 128, .5);
}
.table-rep-plugin .fixed-solution .sticky-table-header {
    background-color: #003080;
}
.table-rep-plugin table.focus-on tbody tr.focused th {
    background: #003080;
    border-color: #003080;
}
.gmaps-overlay {
    background: #003080;
}
.gmaps-overlay_arrow.above {
    border-top: 16px solid #003080;
}
.gmaps-overlay_arrow.below {
    border-bottom: 16px solid #003080;
}
.message-list li.active,
.message-list li.active:hover {
    box-shadow: inset 3px 0 0 #003080;
}
.chat-leftsidebar .chat-leftsidebar-nav .nav .nav-link.active {
    color: #003080;
}
.chat-conversation .conversation-list .ctext-wrap-content {
    background-color: #003080;
}
.conversation-list .ctext-wrap-content:before {
    border-right-color: #003080;
    border-top-color: #003080;
}
.timeline .timeline-start p,
.timeline .timeline-year p {
    background-color: #003080;
}
.timeline .timeline-continue:after {
    background: #003080;
}
.timeline .timeline-icon::after {
    background: #003080;
}
.pricing-badge .badge {
    color: #003080;
}
.pricing-tab-box .nav-link.active {
    border: 1px solid #003080 !important;
}
.pricing-tab-box .nav-link.active i {
    color: #003080 !important;
}
.pricing-tab-box .nav-link.active h1 {
    color: #003080 !important;
}

/* ===================== preloader.min.css ===================== */

.pace .pace-progress {
    background: linear-gradient(to right, #003080 20%, #2ab57d 40%, #4ba6ef 60%, #ffbf53 80%, #fd625e 100%);
}
.pace .pace-activity {
    background: #003080;
}

/* ===================== unrelated readability fix ===================== */
/* Not part of the violet -> blue rebrand above - a separate, pre-existing theme bug found
   while auditing for readability issues. bootstrap.min.css has an unconditional
   ".btn-warning{color:#fff!important}" rule that forces white text on EVERY warning button
   app-wide, overriding .btn-warning's own intended default (--bs-btn-color:#000, decent
   contrast on the warning color #ffbf53 - a light orange). White-on-#ffbf53 fails contrast
   badly. Restores the component's own intended default color. */
.btn-warning {
    color: #000 !important;
}
