/* Precision light theme. Presentation only; operational geometry stays intact. */
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body){color-scheme:light;--bg-dark:#faf9f4;--bg-card:#fffefa;--bg-primary:#fffefa;--bg-input:#fffefa;--bg-hover:#e9eee5;--border-color:#96a396;--border-light:#bdc9bd;--text-primary:#232421;--text-secondary:#424d43;--primary-color:#004c42;--accent:#004c42;--accent-hover:#12675a;--on-primary:#fff;--danger:#922d2a;--danger-color:#922d2a;--danger-hover:#792622;color:var(--text-primary)}
body,.content-area{background:#faf9f4}
.tab-content:not(:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout)){background:var(--bg-dark)}
.nav-bar,.nav-bar .user-profile{background:#fafaf6;backdrop-filter:none;color:#343b38}
.nav-bar .logo{color:#183d33}.nav-links li{color:#424d43}.nav-links li:hover{background:#eaf0e8;color:#183d33}.nav-links li.active{background:#e4ece5;color:#004c42;border-right-color:#004c42;box-shadow:inset 3px 0 #004c42}
#nav-admin-settings.cs-gear{background:#e4ece5;color:#004c42;border-color:#96a396;border-radius:2px}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :is(.card,.form-card,.stat-card,.dashboard-panel){box-shadow:none;border-radius:2px!important;background:var(--bg-card);border-color:#96a396}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :is(input,select,textarea){color:#232421;background:#fffefa;border-color:#7a887c!important;color-scheme:light}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :is(input,textarea)::placeholder{color:#57675e;opacity:1}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :is(button,.btn){border-radius:2px;box-shadow:none}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :is(.btn-secondary,.btn-outline){color:#234e3d;background:#f5f4ef;border-color:#7a887c}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) .btn-primary{color:white;background:#004c42;border-color:#004c42}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :is(button,.btn):hover{filter:none}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) :focus-visible{outline:3px solid #004c42!important;outline-offset:3px}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) th{background:#e9eee5;color:#343f35;border-color:#bdc9bd}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) td{border-color:#d5ddd2}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) tbody tr:hover{background:#edf2e9}
#dashboard-view .header h2{font-weight:500;letter-spacing:-.045em}
#dashboard-view .dashboard-actions .btn,#dashboard-view .btn-secondary,#dashboard-view .btn-outline{background:#f5f4ef;color:#234e3d;border-color:#7a887c;border-radius:2px}
#dashboard-view input{color:#232421}
#dashboard-view .stat-card{background:transparent;border-radius:0;border-top:2px solid #274e3d;box-shadow:none}
/* Keep metric interactions on light surfaces; inherited hover uses dark navy. */
#dashboard-view .stat-card:is(:hover,:active,:focus-visible){background:#e9eee5}
#dashboard-view .stat-card:active{background:#e4ece5}
#dashboard-view .stat-card:focus-visible{box-shadow:none}
#dashboard-view .stat-card h3{font-family:Georgia,serif;font-weight:500!important;color:#184e3c!important}
#dashboard-view .panel-header{background:transparent;border-color:#bdc9bd!important}
#dashboard-view .dashboard-panel{border-radius:0!important;background:#fffefa!important}
#dashboard-view .dashboard-main-grid>.dashboard-panel:last-child{background:#fffefa!important;border-color:#96a396!important}
#dashboard-view .cs-schedules h2{color:#004c42}
#dashboard-view .cs-schedules li button{background:transparent;color:#232421;border-color:#bdc9bd}
#dashboard-view .cs-schedules li button:hover{background:#e9eee5}
#dashboard-view .cs-schedules small{color:#424d43}
#dashboard-view .cs-schedule-filters [aria-pressed=true]{background:#004c42;color:#fff;border-color:#004c42}
#customerStatusCounters>span:first-child{color:#07523e!important}
#customerStatusCounters>span:nth-child(3),#customerStatusCounters>span[role=status]{color:#922d2a!important}
#customer-management button[onclick*=openOttManageModal]{color:#922d2a!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #94a3b8"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#94a3b8"]{color:#57675e!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #a4abba"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#a4abba"]{color:#57675e!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #f8fafc"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#f8fafc"]{color:#232421!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #e2e8f0"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#e2e8f0"]{color:#232421!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #cbd5e1"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#cbd5e1"]{color:#424d43!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #79b7ff"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#79b7ff"]{color:#004c42!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #38bdf8"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#38bdf8"]{color:#00556b!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #60a5fa"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#60a5fa"]{color:#174e88!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #3b82f6"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#3b82f6"]{color:#174e88!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #10b981"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#10b981"]{color:#07523e!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #34d399"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#34d399"]{color:#07523e!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #22c55e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#22c55e"]{color:#07523e!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #f59e0b"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#f59e0b"]{color:#795000!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #fbbf24"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#fbbf24"]{color:#795000!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #fcd34d"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#fcd34d"]{color:#795000!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #d97706"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#d97706"]{color:#795000!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #ef4444"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#ef4444"]{color:#922d2a!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #f43f5e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#f43f5e"]{color:#922d2a!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #fb7185"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#fb7185"]{color:#922d2a!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #ec4899"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#ec4899"]{color:#8a285e!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #a855f7"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#a855f7"]{color:#66358d!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #8b5cf6"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#8b5cf6"]{color:#66358d!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #a78bfa"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#a78bfa"]{color:#66358d!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color: #c4b5fd"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="color:#c4b5fd"]{color:#66358d!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #0f172a"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#0f172a"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #0f172a"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#0f172a"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #13131a"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#13131a"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #13131a"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#13131a"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #181824"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#181824"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #181824"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#181824"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1e1e2c"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1e1e2c"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1e1e2c"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1e1e2c"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1a1a24"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1a1a24"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1a1a24"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1a1a24"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1e293b"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1e293b"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1e293b"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1e293b"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1e2235"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1e2235"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1e2235"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1e2235"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1e1e2d"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1e1e2d"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1e1e2d"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1e1e2d"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1e1e2e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1e1e2e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1e1e2e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1e1e2e"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #111322"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#111322"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #111322"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#111322"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1b1e2e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1b1e2e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1b1e2e"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1b1e2e"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background: #1b1b26"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background:#1b1b26"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color: #1b1b26"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) [style*="background-color:#1b1b26"]{background:#f5f4ef!important;color:#232421}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout,.nav-bar,body) .btn-primary[style*=background]{background:#004c42!important;color:white!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) :is(input,textarea,select):focus{background:#fffefa!important;color:#232421!important;box-shadow:0 0 0 3px #004c4226}
/* Restore pre-stack Proposal 2 columns; override base CSS hiding operational panels. */
#dashboard-view .dashboard-triple-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)!important}
#dashboard-view .dashboard-triple-grid>.dashboard-panel{display:block!important;min-width:0}
#dashboard-view .dashboard-triple-grid>.dashboard-panel:has(#dashboard-recent-works-tbody)>div:has(>table){overflow-x:auto!important;max-width:100%}
#dashboard-view .dashboard-triple-grid>.dashboard-panel:has(#dashboard-recent-works-tbody) table{min-width:480px}
#dashboard-view .dashboard-actions .btn{background:#f5f4ef!important;color:#234e3d!important}
.mobile-header{background:#fafaf6;color:#183d33;border-color:#96a396}.mobile-header .logo{color:#183d33}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) [style*="color: #facc15"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) [style*="color:#facc15"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) [style*="color: #f97316"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) [style*="color:#f97316"]{color:#795000!important}
:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) [style*="color: #93c5fd"],:is(#dashboard-view,#customer-management,#crm-dashboard,#inv-stockin,#inv-stockout) [style*="color:#93c5fd"]{color:#174e88!important}
#inv-stockout button[style*="rgba(0,0,0"],#inv-stockout button[style*="rgba(0, 0, 0"]{background:#f5f4ef!important;color:#234e3d!important}
.mobile-header>span{color:#183d33!important}
/* Precision dashboard hierarchy; operational views retain original geometry. */
#dashboard-view.active{display:flex!important;flex-direction:column}
#dashboard-view>.header{order:0}#dashboard-view>.search-container{order:1}
#dashboard-view>.dashboard-main-grid{order:2;grid-template-columns:minmax(0,2fr) minmax(260px,1fr)!important;align-items:start;gap:24px!important}
#dashboard-view>.dashboard-stats-grid{order:3}#dashboard-view>.dashboard-triple-grid{order:4}
#dashboard-view .dashboard-main-grid>.dashboard-panel:last-child{order:-1}
#dashboard-view .dashboard-main-grid>.dashboard-panel:first-child{display:flex!important;flex-direction:column;align-items:stretch}
#dashboard-view .dashboard-main-grid>.dashboard-panel:first-child .panel-header{margin-bottom:12px!important}
#dashboard-view .stat-card>div:first-child>div{display:none}
#dashboard-view .dashboard-panel{border:0!important;border-top:1px solid #96a396!important;background:transparent!important}
#dashboard-view .dashboard-main-grid>.dashboard-panel:last-child{background:transparent!important}
#dashboard-view .panel-header h3{border-left-color:#004c42!important}
@media(max-width:700px){#dashboard-view>.dashboard-main-grid{grid-template-columns:minmax(0,1fr)!important}}
#dashboard-view .stat-card>div:first-child>div{display:none!important}

/* Each notice category owns its header and unchanged scrollable list. */
#dashboard-view .dashboard-triple-grid>.dashboard-panel:has(>.notice-sections){grid-column:1 / -1}
#dashboard-view .notice-sections{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;align-items:start}
#dashboard-view .notice-section{width:100%;min-width:0;border:1px solid #96a396;border-radius:2px;overflow:hidden}
#dashboard-view .notice-section>.notice-section-header{margin-top:0!important;border:0!important;border-bottom:1px solid #bdc9bd!important;border-radius:0!important;flex-wrap:wrap;gap:6px}
#dashboard-view .notice-section .board-list{min-width:0}
#dashboard-view .notice-section .board-list strong{min-width:0}
@media(max-width:760px){#dashboard-view .dashboard-triple-grid{grid-template-columns:minmax(0,1fr)!important}#dashboard-view .notice-sections{grid-template-columns:minmax(0,1fr)}}

/* Reference top dashboard: compact header/search, 2:1 schedule/tasks, four-cell strip. */
#dashboard-view>.header{margin-bottom:18px!important}
#dashboard-view>.header h2{font-size:26px!important;line-height:1.25;font-weight:650;letter-spacing:-.04em}
#dashboard-view .cs-current-date{font-size:11px;color:#57675e;margin-top:8px}
#dashboard-view .dashboard-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px!important}
#dashboard-view .dashboard-actions .btn{font-size:12px!important;padding:9px 12px!important;min-height:34px}
#dashboard-view .dashboard-actions .btn:first-child{background:#12675a!important;color:white!important;border-color:#12675a}
#dashboard-view>.card:has(#dashboardQuickSearchInput){order:1;margin:0 0 28px!important;padding:12px 14px!important;border:0!important;border-top:1px solid #96a396!important;border-bottom:1px solid #bdc9bd!important;background:transparent!important}
#dashboard-view>.dashboard-main-grid{gap:30px!important;margin-bottom:28px!important}
#dashboard-view .dashboard-main-grid>.dashboard-panel{padding:16px 0 0!important;min-width:0}
#dashboard-view .panel-header h3{font-size:14px!important;border:0!important;padding-left:0!important}
#dashboard-view .cs-week-nav{display:flex;justify-content:flex-end;gap:6px;margin:0 0 8px}
#dashboard-view .cs-week-nav .btn{font-size:11px;padding:5px 8px}
#dashboard-view .cs-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid #bdc9bd;margin-bottom:14px}
#dashboard-view .cs-weekdays button{font-size:11px;min-height:44px;padding:5px 2px;border:0;background:transparent}
#dashboard-view .cs-weekdays [aria-pressed=true]{background:#004c42;color:white}
#dashboard-view .cs-schedule-filters button{font-size:11px;padding:7px 9px}
#dashboard-view .cs-schedule-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
#dashboard-view .cs-schedules h3{font-size:11px;margin:6px 0 12px}
#dashboard-view .cs-schedules ul{margin:0;padding:0}
#dashboard-view .cs-schedules li button{padding:13px 0!important;border:0;border-bottom:1px solid #d5ddd2;border-radius:0;min-height:65px;font-size:13px;line-height:1.5}
#dashboard-view .cs-schedules small{font-size:11px}
#dashboard-view .cs-action-row{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;background:transparent;border:0;border-bottom:1px solid #d5ddd2;padding:16px 0;color:#232421;cursor:pointer;font:inherit}
#dashboard-view .cs-action-row strong{display:block;font-size:12px;line-height:1.6}
#dashboard-view .cs-action-row small{display:block;font-size:11px;color:#57675e;margin-top:7px}
#dashboard-view .cs-action-row:hover{background:#e9eee5}
#dashboard-view>.dashboard-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;border-top:2px solid #274e3d;border-bottom:1px solid #bdc9bd;margin-bottom:28px!important}
#dashboard-view .dashboard-stats-grid>.stat-card{border:0!important;border-right:1px solid #bdc9bd!important;padding:16px 20px!important;min-width:0;min-height:100px}
#dashboard-view .dashboard-stats-grid>.stat-card:last-child{border-right:0!important}
#dashboard-view .stat-card>div>span:first-child{font-size:11px!important;white-space:normal!important}
#dashboard-view .stat-card h3{font-size:24px!important;line-height:1.3!important}
#dashboard-view #stat-my-pending-state{font-size:10px!important;max-width:130px}
#dashboard-view .notice-sections{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#dashboard-view .notice-tabs{display:none}
@media(max-width:760px){
 #dashboard-view .notice-tabs:not([hidden]){display:flex;gap:4px;margin-bottom:8px}
 #dashboard-view .notice-tabs button{flex:1;min-width:0;min-height:40px;padding:6px 4px;border:1px solid #96a396;border-radius:2px;background:var(--bg-card);color:var(--text-primary);font:inherit;font-size:12px;cursor:pointer}
 #dashboard-view .notice-tabs button[aria-selected="true"]{background:#e0eee0;border-color:#426c49;color:#203e26;font-weight:700}
 #dashboard-view .notice-tabs button:focus-visible,#dashboard-view .notice-section:focus-visible{outline:2px solid #315c9b;outline-offset:2px}
 #dashboard-view .notice-sections{grid-template-columns:minmax(0,1fr)!important}
 #dashboard-view .notice-section[hidden]{display:none!important}
}
@media(max-width:700px){
 #dashboard-view>.header{align-items:flex-start!important}
 #dashboard-view>.header h2{font-size:23px!important}
 #dashboard-view .dashboard-actions{justify-content:flex-start}
 #dashboard-view .dashboard-actions .btn{font-size:11px!important;padding:8px!important}
 #dashboard-view .cs-schedule-columns{gap:14px}
 #dashboard-view>.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #dashboard-view .dashboard-stats-grid>.stat-card{padding:12px!important;border-bottom:1px solid #bdc9bd!important}
 #dashboard-view .notice-section-header{padding:8px 5px!important}
 #dashboard-view .notice-section-header h4{font-size:11px!important}
 #dashboard-view .notice-section-header .btn{font-size:10px!important;padding:4px!important;white-space:normal}
}
#dashboard-view .cs-schedules li button{display:block!important}
#dashboard-view #dashboard-action-items-list>[role=status]{font-size:11px;line-height:1.5;color:#57675e;margin:8px 0}
#dashboard-view .cs-week-nav .btn{min-height:28px}
#dashboard-view .dashboard-main-grid .panel-header .btn{padding:5px 8px!important;font-size:11px!important;min-height:28px}
@media(max-width:700px){
 #dashboard-view>.header>div.dashboard-actions:last-child{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%}
 #dashboard-view .dashboard-actions .btn{width:auto!important;min-width:0!important;justify-content:center}
 #dashboard-view>.card:has(#dashboardQuickSearchInput)>div{flex-direction:row!important}
 #dashboard-view>.card:has(#dashboardQuickSearchInput) button{width:auto!important;min-width:76px;padding:8px!important;font-size:11px!important}
}

/* Existing counts beside the replaceable heading. */
#dashboard-view>.header>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
#dashboard-view .cs-current-date{margin:0;white-space:nowrap}
#dashboard-view .dashboard-heading-counts{order:0;margin:0 0 8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
#dashboard-view .dashboard-heading-counts button{font:inherit;font-size:12px;color:#234d40;background:transparent;border:0;padding:4px 0;cursor:pointer}
#dashboard-view .dashboard-heading-counts strong{font-size:14px;margin-left:3px;font-variant-numeric:tabular-nums}
#dashboard-view .dashboard-heading-counts button:hover{text-decoration:underline}
#dashboard-view .dashboard-heading-counts button:focus-visible{outline:3px solid #00594c;outline-offset:3px}
#dashboard-view .dashboard-triple-grid{grid-template-columns:minmax(0,1fr)!important}

#dashboard-view>#dashboard-billing-summary{order:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;border:0;padding:0;margin:0 0 16px;color:#183d33;background:transparent;font-size:12px;min-width:0}
#dashboard-billing-summary small{font-size:11px;overflow-wrap:anywhere}
#dashboard-billing-summary p{margin:0}
#dashboard-billing-summary button{color:#004c42;background:#fff;border:1px solid #6d897d;padding:6px 10px;cursor:pointer}
#dashboard-billing-summary button:focus-visible{outline:3px solid #00594c;outline-offset:3px}

/* Heading/date and actions share the first row; metrics own the next rows. */
#dashboard-view>.header{margin-bottom:8px!important}
#dashboard-view>.header>div:first-child{gap:6px 14px}
#dashboard-view>.header>.dashboard-actions{margin-left:auto}
@media(max-width:700px){
 #dashboard-view>.header>div.dashboard-actions:last-child{display:flex!important;width:auto;justify-content:flex-end}
}

/* Shared semantic roles for every CS menu and body-level overlay. */
:root{color-scheme:light;--bg-dark:#faf9f4;--bg-card:#fffefa;--bg-primary:#fffefa;--bg-input:#fffefa;--bg-hover:#e9eee5;--border-color:#96a396;--border-light:#bdc9bd;--text-primary:#232421;--text-secondary:#424d43;--primary-color:#004c42;--accent:#004c42;--accent-hover:#12675a;--on-primary:#fff;--danger:#922d2a;--danger-color:#922d2a;--danger-hover:#792622}
body :is(.modal-content,.billing-dialog){background:#fffefa;color:#232421;border-color:#96a396;color-scheme:light}
body :is(.billing-detail-metrics>div,pre,code,.ql-toolbar,.ql-container){background:#f5f4ef;color:#232421;border-color:#96a396}
body .billing-tabs [aria-current=page]{background:#004c42;color:#fff;border-color:#004c42}
body .billing-workspace [role=alert]{color:#922d2a}
body .billing-receipts-primary caption{color:#424d43}
body .billing-receipt-action>summary{background:#004c42;color:#fff}
body .billing-workspace :focus-visible{outline:3px solid #004c42;outline-offset:3px}
body .billing-toolbar>button{background:#004c42;color:#fff}
body [style*="background:#070f19" i],body [style*="background: #070f19" i],body [style*="background-color:#070f19" i],body [style*="background-color: #070f19" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#0c141f" i],body [style*="background: #0c141f" i],body [style*="background-color:#0c141f" i],body [style*="background-color: #0c141f" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#121a25" i],body [style*="background: #121a25" i],body [style*="background-color:#121a25" i],body [style*="background-color: #121a25" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#18202b" i],body [style*="background: #18202b" i],body [style*="background-color:#18202b" i],body [style*="background-color: #18202b" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#1e2632" i],body [style*="background: #1e2632" i],body [style*="background-color:#1e2632" i],body [style*="background-color: #1e2632" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#0f172a" i],body [style*="background: #0f172a" i],body [style*="background-color:#0f172a" i],body [style*="background-color: #0f172a" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#1e293b" i],body [style*="background: #1e293b" i],body [style*="background-color:#1e293b" i],body [style*="background-color: #1e293b" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#1a1a24" i],body [style*="background: #1a1a24" i],body [style*="background-color:#1a1a24" i],body [style*="background-color: #1a1a24" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#1e2235" i],body [style*="background: #1e2235" i],body [style*="background-color:#1e2235" i],body [style*="background-color: #1e2235" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#13131a" i],body [style*="background: #13131a" i],body [style*="background-color:#13131a" i],body [style*="background-color: #13131a" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#181824" i],body [style*="background: #181824" i],body [style*="background-color:#181824" i],body [style*="background-color: #181824" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#0f1720" i],body [style*="background: #0f1720" i],body [style*="background-color:#0f1720" i],body [style*="background-color: #0f1720" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#111827" i],body [style*="background: #111827" i],body [style*="background-color:#111827" i],body [style*="background-color: #111827" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#020617" i],body [style*="background: #020617" i],body [style*="background-color:#020617" i],body [style*="background-color: #020617" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#161b22" i],body [style*="background: #161b22" i],body [style*="background-color:#161b22" i],body [style*="background-color: #161b22" i]{background:#f5f4ef!important;color:#232421}
body [style*="background:#0d1117" i],body [style*="background: #0d1117" i],body [style*="background-color:#0d1117" i],body [style*="background-color: #0d1117" i]{background:#f5f4ef!important;color:#232421}

/* Legacy runtime inline colors serialize to RGB after tab/calendar updates. */
:is(body,#unified-board,#inv-dashboard) [style*="color: #ef4444" i],:is(body,#unified-board,#inv-dashboard) [style*="color:#ef4444" i],:is(body,#unified-board,#inv-dashboard) [style*="color: rgb(239, 68, 68)"]{color:#922d2a!important}
:is(body,#unified-board,#inv-dashboard) [style*="color: #3b82f6" i],:is(body,#unified-board,#inv-dashboard) [style*="color:#3b82f6" i],:is(body,#unified-board,#inv-dashboard) [style*="color: rgb(59, 130, 246)"]{color:#174e88!important}
:is(body,#unified-board,#inv-dashboard) [style*="color: #facc15" i],:is(body,#unified-board,#inv-dashboard) [style*="color:#facc15" i],:is(body,#unified-board,#inv-dashboard) [style*="color: rgb(250, 204, 21)"]{color:#795000!important}
:is(body,#unified-board,#inv-dashboard) [style*="color: #f472b6" i],:is(body,#unified-board,#inv-dashboard) [style*="color:#f472b6" i],:is(body,#unified-board,#inv-dashboard) [style*="color: rgb(244, 114, 182)"]{color:#8a285e!important}
:is(body,#unified-board,#inv-dashboard) [style*="color: #fca5a5" i],:is(body,#unified-board,#inv-dashboard) [style*="color:#fca5a5" i],:is(body,#unified-board,#inv-dashboard) [style*="color: rgb(252, 165, 165)"]{color:#922d2a!important}
:is(body,#unified-board,#inv-dashboard) [style*="color: #a7f3d0" i],:is(body,#unified-board,#inv-dashboard) [style*="color:#a7f3d0" i],:is(body,#unified-board,#inv-dashboard) [style*="color: rgb(167, 243, 208)"]{color:#07523e!important}
body #btn-sub-tab-calendar,body #btn-sub-tab-board,body #btn-sub-tab-memo{color:var(--text-primary)!important;background:var(--bg-input)!important}
body .btn-sub-tab.active{background:#004c42!important;color:white!important}
body #unified-calendar-grid>div{background:#fffefa!important}
body #inv-dashboard [style*="rgba(255, 255, 255, 0.2)"],body #inv-dashboard [style*="rgba(255,255,255,0.2)"]{color:#57675e!important}

body :is(#btn-sub-tab-calendar,#btn-sub-tab-board,#btn-sub-tab-memo,#btn-sub-tab-todo,#btn-sub-tab-bulk).active{background:#004c42!important;color:white!important}
body .mobile-header{background:#fafaf6;color:#232421;border-color:#96a396}
body #mobile-menu-btn{background:#f5f4ef;color:#004c42;border-color:#7a887c}

body .calendar-cell:nth-child(7n+1) .date-num{color:#922d2a}
body .calendar-cell:nth-child(7n) .date-num{color:#174e88}
body #unified-calendar-grid>.other-month{background:#f5f4ef!important}
body #unified-calendar-grid>.today{background:#e4ece5!important}
body input::-webkit-calendar-picker-indicator{filter:none}

/* Focus must retain a light input surface; inherited focus used dark !important. */
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{background:#fffefa!important;color:#232421!important;border-color:#004c42!important}
body .franchise-account-panel a{color:#174e88}
body .crm-timeline-card,body .crm-mobile-toolbar{background:#fffefa;color:#232421}
body #customer-table span[style*="background-color:"]{background:#174e88!important;color:#fff!important}

/* Audit fixes: scoped to admin configuration and HW conversation only. */
#admin-settings .admin-scroll-hint{color:#424d43;font-size:13px;margin:0 0 6px}
#admin-settings .admin-tab-strip{padding:5px 3px 12px;scrollbar-width:auto;scrollbar-color:#57675e #e9eee5;scroll-padding-inline:8px;overscroll-behavior-x:contain}
#admin-settings .admin-tab-strip::-webkit-scrollbar{height:12px}
#admin-settings .admin-tab-strip::-webkit-scrollbar-track{background:#e9eee5;border-radius:6px}
#admin-settings .admin-tab-strip::-webkit-scrollbar-thumb{background:#57675e;border:2px solid #e9eee5;border-radius:6px}
#admin-settings .admin-tab-strip>button{flex:0 0 auto;min-height:44px}
#admin-settings .admin-tab-strip:focus-visible,#admin-settings .admin-tab-strip>button:focus-visible{outline:3px solid #004c42;outline-offset:-3px}
:is(#tab-game-bravo-req,#bravo-physical-inbox) :is(button,textarea){font:inherit;border:1px solid #7a887c;border-radius:6px;padding:10px 12px;min-height:44px;box-sizing:border-box}
:is(#tab-game-bravo-req,#bravo-physical-inbox) button{background:#004c42;color:#fff;cursor:pointer;white-space:normal}
:is(#tab-game-bravo-req,#bravo-physical-inbox) textarea{background:#fffefa;color:#232421;line-height:1.5;margin:8px 0;resize:vertical}
:is(#tab-game-bravo-req,#bravo-physical-inbox) :is(button,textarea):disabled{background:#e9eee5!important;color:#424d43!important;border-color:#7a887c!important;opacity:1!important;cursor:not-allowed;-webkit-text-fill-color:#424d43}
:is(#tab-game-bravo-req,#bravo-physical-inbox) textarea:disabled::placeholder{color:#424d43;opacity:1}
:is(#tab-game-bravo-req,#bravo-physical-inbox) :focus-visible{outline:3px solid #004c42;outline-offset:2px}
@media(max-width:700px){
 #admin-tab-solapi>.form-card .form-grid,#admin-tab-solapi>div[style*="display: grid"]{grid-template-columns:minmax(0,1fr)!important}
 #admin-tab-solapi .card{min-width:0;overflow-wrap:anywhere}
 #admin-tab-solapi .card input{min-width:0;max-width:100%;box-sizing:border-box}
 #admin-tab-solapi .card>div:has(>input){flex-wrap:wrap}
 #admin-tab-solapi .card>div:has(>input)>input{flex:1 1 180px!important}
 #admin-tab-solapi .card>div:has(>input)>button{min-height:44px}
}
#bravo-physical-inbox input{font:inherit;background:#fffefa;color:#232421;border:1px solid #7a887c;border-radius:6px;padding:10px;min-height:44px;max-width:100%;box-sizing:border-box}
#bravo-physical-inbox label{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#gameCenterModal>.card,#gameCenterModal>.card>div,#tab-game-bravo-req{background:#fffefa!important;color:#232421!important}
#gameCenterModal h3,#bravoRequestContractNotice{color:#004c42!important}
#gameCenterModal .gc-tab-btn{color:#424d43!important}
#gameCenterModal .gc-tab-btn.active{background:#e9eee5!important;color:#004c42!important}
#tab-game-bravo-req section{border-color:#96a396!important}
:is(#tab-game-bravo-req,#bravo-physical-inbox) :is(button,textarea){flex-shrink:0;height:auto;line-height:1.5}
#gameCenterModal>.card h3,#gameCenterModal #bravoRequestContractNotice{color:#004c42!important}
