﻿/* Theme overrides are opt-in; print surfaces always retain paper colors. */
html[data-nastar-theme="dark"] {color-scheme:dark;--bs-body-bg:#201c25;--bs-body-color:#eee6f2;--bs-secondary-color:#c2b5ca;--bs-border-color:#514258;--bs-tertiary-bg:#322938;--bs-secondary-bg:#302936;--bs-primary:#c7a6e2;--bs-primary-rgb:199,166,226}
html[data-nastar-theme="dark"] body {background:#201c25!important;color:#eee6f2!important}
html[data-nastar-theme="dark"] :is(.pc-header,.pc-sidebar,.pc-content,.pc-tab-wrapper,.pc-footer,.dropdown-menu,.modal-content,.offcanvas,.card,.list-group-item,.accordion-item,.accordion-button,.choices__inner,.choices__list--dropdown,.searchable-select-menu,.context-nav,.context-nav-track,.context-nav-item,.workspace-tabs,.workspace-setup) {background:#2c2432!important;color:#eee6f2!important;border-color:#514258!important}
html[data-nastar-theme="dark"] :is([class$="-workspace"],[class$="-hero"],.management-heading,.membership-heading,.project-dashboard-header,.modal-header,.card-header,.card-footer,.management-help,.membership-help,.module-caption,.project-module-nav,.inventory-module-nav,.quick-entry,.finance-quick-modal,.bg-light,.bg-white,.bg-body,.alert-light,.alert-info,.alert-secondary) {background:#352a3c!important;color:#eee6f2!important;border-color:#514258!important}
html[data-nastar-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.form-label,label,.text-dark,.text-body,.card-title,.nav-link,.pc-link,.dropdown-item,.context-nav-item,.management-statistics strong) {color:#eee6f2!important}
html[data-nastar-theme="dark"] :is(.text-muted,.text-secondary,small,.form-text,.management-heading p,.membership-heading p) {color:#c5b8cc!important}
html[data-nastar-theme="dark"] :is(.form-control,.form-select,.datatable-input,.datatable-selector,.input-group-text,.choices__input,.acc-search,.management-statistics>div) {background:#241e2a!important;color:#eee6f2!important;border-color:#64516e!important}
html[data-nastar-theme="dark"] input::placeholder,html[data-nastar-theme="dark"] textarea::placeholder {color:#b5a5c0!important;opacity:1}
html[data-nastar-theme="dark"] :is(.table,table) {--bs-table-bg:#2c2432;--bs-table-color:#eee6f2;--bs-table-border-color:#514258;--bs-table-hover-bg:#403247;--bs-table-hover-color:#fff;color:#eee6f2!important}
html[data-nastar-theme="dark"] :is(th,td) {background-color:#2c2432!important;color:#eee6f2!important;border-color:#514258!important}
html[data-nastar-theme="dark"] th {background-color:#3b2e44!important}
html[data-nastar-theme="dark"] :is(a:not(.btn):not(.badge),.btn-link) {color:#d6b4ef}
html[data-nastar-theme="dark"] .btn-primary {background:#785192!important;border-color:#a97bc5!important;color:white!important}
html[data-nastar-theme="dark"] :is(.btn-outline-primary,.btn-outline-secondary,.btn-outline-dark,.btn-light) {background:#352a3c!important;border-color:#9e81b0!important;color:#eee6f2!important}
html[data-nastar-theme="dark"] :is(.nav-link.active,.context-nav-item.active,.dropdown-item:hover,.list-group-item-action:hover) {background:#694780!important;color:white!important}
html[data-nastar-theme="dark"] .btn-close {filter:invert(1) grayscale(1) brightness(2)}
@media print {html,body {color-scheme:light!important;background:white!important;color:black!important}}

html[data-nastar-theme="dark"] :is(.modal-footer,.nav-tabs,.entry-lookup-panel,.entry-lookup-results,.store-lookup-menu) {background:#352a3c!important;color:#eee6f2!important;border-color:#514258!important}
html[data-nastar-theme="dark"] .alert-danger {background:#482b35!important;color:#ffd9e0!important;border-color:#925365!important}
html[data-nastar-theme="dark"] .alert-warning {background:#463924!important;color:#ffe2a2!important;border-color:#8c7342!important}
html[data-nastar-theme="dark"] .alert-success {background:#253e35!important;color:#cbf7dd!important;border-color:#4f846b!important}
html[data-nastar-theme="dark"] .text-danger {color:#ffa8b6!important}
html[data-nastar-theme="dark"] .text-success {color:#93deb3!important}
html[data-nastar-theme="dark"] .text-warning {color:#ffda8d!important}
