/* Nanaimo Movers 24.8.0 — full White/Dark readability completion */
:root[data-nm-theme="white"]{
 --nm248-bg:#f4f7fa;--nm248-surface:#ffffff;--nm248-surface2:#f8fbfd;--nm248-text:#102233;--nm248-muted:#53677a;--nm248-line:#d6e0e8;--nm248-blue:#0d4d7d;--nm248-shadow:0 8px 24px rgba(20,46,68,.08);
 color-scheme:light;
}
:root[data-nm-theme="dark"]{
 --nm248-bg:#07111b;--nm248-surface:#0e1b27;--nm248-surface2:#132332;--nm248-text:#f5f9fc;--nm248-muted:#b2c2d0;--nm248-line:#294052;--nm248-blue:#78b9ef;--nm248-shadow:0 12px 30px rgba(0,0,0,.30);
 color-scheme:dark;
}
:root[data-nm-theme="white"] body,
:root[data-nm-theme="white"] body.nm-theme,
:root[data-nm-theme="white"] .main,
:root[data-nm-theme="white"] .page,
:root[data-nm-theme="white"] #page,
:root[data-nm-theme="white"] #app{background:var(--nm248-bg)!important;color:var(--nm248-text)!important}

/* True white surfaces — override legacy premium-dark boxes throughout the app */
:root[data-nm-theme="white"] :is(
.card,.nm-panel,.nm247-panel,.nm247-command,.nm248-card,.nm248-command,
.metric,.commandMetric,.moneyCard,.healthCard,.connectCard,.nm-job-card,.jobCard,
.jobCommandHero,.commandTop,.notice,.alertBar,.setupStrip,.flowStep,.listRow,
.tableWrap,.tableCard,.formStatus,.messageLayout,.threadList,.threadView,.threadCard,
.nm-gcal-shell,.nm-gcal-toolbar,.nm-gcal-cell,.nm-agenda-date,.nm-agenda-job,.nm-empty-slot,
.nm-calendar-drawer,.nm-drawer-job,.nm-mini-form,.nm-job-facts>div,.nm-customer-card,
.nm-modal-card,.nm-form-card,.nm-portal-tile,.nm-side-peek,.nm-customer-search,
.nm-form-section,.nm-form-evidence,.nm-signature-block,.nm-inspection-grid>div,
.nm246-control-row,.nm246-check,.nm246-skill-row,.nm246-feature,.nm246-provider-block,
.nm246-area,.nm246-theme-card,.nm246-owner-card,.nm246-thread-list,
.nm247-provider-card,.nm247-mail-shell,.nm247-mail-left,.nm247-mail-view,.nm247-thread-card,
.nm247-clock-hero,.nm247-row,.nm247-resource-card,.nm247-resource-board>section,
.nm247-prejob,.nm247-supplies,.nm247-feedback,.nm247-attention,.nm247-empty,
.nm248-row,.nm248-calendar-board>section,.nm248-cal-job,.nm248-wall-job,.nm248-empty
){
 background:var(--nm248-surface)!important;
 color:var(--nm248-text)!important;
 border-color:var(--nm248-line)!important;
 box-shadow:none!important;
}
:root[data-nm-theme="white"] :is(.nm247-provider-card.warning,.notice.warn,.notice.warning,.pill.yellow,.nm248-row.warning){
 background:#fff8e8!important;color:#694a08!important;border-color:#e8c96e!important
}
:root[data-nm-theme="white"] :is(.notice.error,.alertBar.error,.pill.red,.nm247-attention.urgent){
 background:#fff0f0!important;color:#7a1d1d!important;border-color:#e3a1a1!important
}
:root[data-nm-theme="white"] :is(.pill.green,.btn.green){
 background:#eaf8f0!important;color:#135d38!important;border-color:#9bcfb0!important
}
:root[data-nm-theme="white"] :is(.nm246-rule-ok){
 background:#edf8f4!important;color:#174f43!important;border-color:#a7d3c6!important
}
:root[data-nm-theme="white"] .sidebar,
:root[data-nm-theme="white"] .mobileNav,
:root[data-nm-theme="white"] .sideFoot{background:#fff!important;color:#173149!important;border-color:var(--nm248-line)!important}
:root[data-nm-theme="white"] :is(.sidebar .nav button,.sidebar .nav a,.sideFoot,.mobileNav button){color:#29465d!important}
:root[data-nm-theme="white"] :is(.sidebar .nav button.active,.viewSwitch button.active,.settingsTabs .active,.booksNav button.active,.nm246-owner-nav .active){
 background:#e5f1fa!important;color:#0a416d!important;border-color:#b9d8ee!important
}
:root[data-nm-theme="white"] .topbar{background:#fff!important;color:#102233!important;border-color:var(--nm248-line)!important}
:root[data-nm-theme="white"] :is(h1,h2,h3,h4,h5,h6,b,strong,.jobCommandHero h1,.jobCommandHero h2,.commandTop h1,.commandTop h2,.nm247-page-title h1,.nm248-command h2){color:#102233!important}
:root[data-nm-theme="white"] :is(p,small,.muted,.sub,.hint,.nm247-row span,.nm248-row span,.threadCard span,.threadCard small){color:#53677a!important}
:root[data-nm-theme="white"] :is(input,select,textarea,.globalSearch input,.nm-form-evidence input[type=file]){
 background:#fff!important;color:#102233!important;border:1px solid #b9c8d4!important;box-shadow:none!important
}
:root[data-nm-theme="white"] :is(input:disabled,textarea:disabled,select:disabled){background:#edf2f5!important;color:#637687!important}
:root[data-nm-theme="white"] :is(.btn,.iconBtn,.threadCard,.nm247Filter,.nm248-cal-job,.nm248-row.clickable){
 background:#fff!important;color:#173149!important;border-color:#bdcad5!important
}
:root[data-nm-theme="white"] :is(.btn:hover,.threadCard:hover,.nm248-row.clickable:hover,.nm248-cal-job:hover){background:#eef5fa!important;color:#0a416d!important}
:root[data-nm-theme="white"] :is(.btn.primary,.nm247Filter.active){
 background:#0d5f98!important;color:#fff!important;border-color:#0d5f98!important
}
:root[data-nm-theme="white"] .toast{background:#173149!important;color:#fff!important}
:root[data-nm-theme="white"] .nm-modal,
:root[data-nm-theme="white"] #nm247ModalOverlay .nm247-modal{background:#fff!important;color:#102233!important;border-color:#cbd7e0!important}
:root[data-nm-theme="white"] .nm247-modal-overlay{background:rgba(23,43,62,.25)!important}
:root[data-nm-theme="white"] .nm-drawer-shade,
:root[data-nm-theme="white"] .nm-modal-shade,
:root[data-nm-theme="white"] .nm-nav-shade{background:rgba(23,43,62,.22)!important}
:root[data-nm-theme="white"] :is(.nm246-control-row,.nm246-check,.nm246-skill-row,.nm246-feature,.nm246-owner-card .nm246-sizes label,.nm246-area,.nm246-theme-card,.nm246-provider-block){
 background:#fff!important;color:#173149!important;border-color:#d4dee6!important
}
:root[data-nm-theme="white"] .nm246-owner-card .btn:not(.primary){background:#fff!important;color:#173149!important;border-color:#bdcad5!important}
:root[data-nm-theme="white"] .nm246-owner-card .btn.primary{background:#0d5f98!important;color:#fff!important}
:root[data-nm-theme="white"] .nm-smart-address-menu,
:root[data-nm-theme="white"] .globalSearchResults,
:root[data-nm-theme="white"] .searchResults{background:#fff!important;color:#102233!important;border-color:#bdcad5!important}
:root[data-nm-theme="white"] :is(.searchResult,.nm246-thread-list){background:#fff!important;color:#102233!important}
:root[data-nm-theme="white"] :is(.searchResult:hover,.nm246-thread-list .active){background:#eef5fa!important}
:root[data-nm-theme="white"] .estimateSummary{background:#eaf3f9!important;color:#102233!important;border-color:#c6d9e7!important}
:root[data-nm-theme="white"] .aiMsg.user{background:#eaf3f9!important;color:#102233!important}
:root[data-nm-theme="white"] .nm-theme .jobCommandHero{background:#fff!important;color:#102233!important}
:root[data-nm-theme="white"] .nm-theme .nm-login{background:#f4f7fa!important}
:root[data-nm-theme="white"] .profileChip{background:#fff!important;color:#102233!important;border-color:#d4dee6!important}

/* 24.8 structural UI */
.nm248-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.nm248-card,.nm248-command{border:1px solid var(--nm248-line);border-radius:16px;padding:16px;background:var(--nm248-surface);color:var(--nm248-text);box-shadow:var(--nm248-shadow)}
.nm248-command{margin:16px 0}
.nm248-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.nm248-head h2,.nm248-head h3{margin:0 0 4px;font-size:19px;line-height:1.2}
.nm248-head p{margin:0;font-size:13px;line-height:1.45;color:var(--nm248-muted)}
.nm248-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--nm248-line)}
.nm248-row:last-child{border-bottom:0}.nm248-row>div{min-width:0}.nm248-row b{display:block;font-size:14px;line-height:1.35}.nm248-row span:not(.pill){display:block;font-size:12px;line-height:1.4;color:var(--nm248-muted);margin-top:2px}
.nm248-row.clickable,.nm248-cal-job{width:100%;text-align:left;border:1px solid var(--nm248-line);border-radius:12px;padding:11px;margin:6px 0;cursor:pointer}
.nm248-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.nm248-metrics>div{background:var(--nm248-surface2);border:1px solid var(--nm248-line);border-radius:12px;padding:12px}.nm248-metrics span{display:block;font-size:11px;color:var(--nm248-muted)}.nm248-metrics b{display:block;font-size:20px;margin-top:4px;color:var(--nm248-text)}
.nm248-empty{padding:18px;border:1px dashed var(--nm248-line);border-radius:12px;color:var(--nm248-muted);text-align:center}
.nm248-table{overflow:auto;border:1px solid var(--nm248-line);border-radius:12px}.nm248-tr{display:grid;grid-template-columns:120px 180px 90px minmax(180px,1fr) 120px;gap:10px;padding:9px 12px;border-bottom:1px solid var(--nm248-line);align-items:center;min-width:720px}.nm248-tr.head{font-weight:700;background:var(--nm248-surface2)}
.nm248-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nm248-calendar-board{display:grid;grid-template-columns:repeat(7,minmax(170px,1fr));gap:10px;overflow:auto;padding-bottom:6px}.nm248-calendar-board>section{min-height:180px;border:1px solid var(--nm248-line);border-radius:12px;padding:10px;background:var(--nm248-surface)}.nm248-calendar-board h3{font-size:13px;margin:0 0 8px}.nm248-cal-job{display:block}.nm248-cal-job>div{display:block}.nm248-cal-job b,.nm248-cal-job span{display:block}.nm248-viewbar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.nm248-wall{font-size:18px}.nm248-wall-job{padding:16px;border:1px solid var(--nm248-line);border-radius:14px;margin:10px 0}.nm248-wall-job b{display:block;font-size:22px}.nm248-wall-job span{display:block;margin-top:6px}
:root[data-nm-theme="dark"] :is(.nm248-card,.nm248-command,.nm248-calendar-board>section,.nm248-cal-job,.nm248-row.clickable,.nm248-empty,.nm248-tr,.nm248-wall-job){background:var(--nm248-surface)!important;color:var(--nm248-text)!important;border-color:var(--nm248-line)!important}
:root[data-nm-theme="dark"] .nm248-metrics>div{background:var(--nm248-surface2)!important;border-color:var(--nm248-line)!important}
@media(max-width:1000px){.nm248-grid{grid-template-columns:1fr}.nm248-metrics{grid-template-columns:repeat(2,1fr)}.nm248-calendar-board{grid-template-columns:repeat(3,minmax(190px,1fr))}}
@media(max-width:650px){.nm248-metrics,.nm248-action-grid{grid-template-columns:1fr}.nm248-calendar-board{grid-template-columns:1fr}.nm248-row{align-items:flex-start;flex-direction:column}.nm248-row .actionRow{width:100%}.nm248-row .actionRow .btn{flex:1}.nm248-head{flex-direction:column}.nm248-tr{font-size:12px}}

/* Auto-audited legacy dark surfaces: force light in White mode */
:root[data-nm-theme="white"] .aiMsg.user,
:root[data-nm-theme="white"] .estimateSummary,
:root[data-nm-theme="white"] .nm-agenda-date,
:root[data-nm-theme="white"] .nm-agenda-job,
:root[data-nm-theme="white"] .nm-calendar-drawer,
:root[data-nm-theme="white"] .nm-customer-card,
:root[data-nm-theme="white"] .nm-customer-search,
:root[data-nm-theme="white"] .nm-drawer-job,
:root[data-nm-theme="white"] .nm-empty-slot,
:root[data-nm-theme="white"] .nm-form-card,
:root[data-nm-theme="white"] .nm-form-evidence,
:root[data-nm-theme="white"] .nm-form-evidence input[type=file],
:root[data-nm-theme="white"] .nm-form-section,
:root[data-nm-theme="white"] .nm-gcal-cell,
:root[data-nm-theme="white"] .nm-gcal-cell:hover,
:root[data-nm-theme="white"] .nm-gcal-shell,
:root[data-nm-theme="white"] .nm-gcal-toolbar,
:root[data-nm-theme="white"] .nm-inspection-grid>div,
:root[data-nm-theme="white"] .nm-job-facts div,
:root[data-nm-theme="white"] .nm-mini-form,
:root[data-nm-theme="white"] .nm-modal-card,
:root[data-nm-theme="white"] .nm-portal-tile,
:root[data-nm-theme="white"] .nm-portal-tile:hover,
:root[data-nm-theme="white"] .nm-side-peek,
:root[data-nm-theme="white"] .nm-signature-block,
:root[data-nm-theme="white"] .nm-smart-address-menu,
:root[data-nm-theme="white"] .nm246-area,
:root[data-nm-theme="white"] .nm246-area:hover,
:root[data-nm-theme="white"] .nm246-check,
:root[data-nm-theme="white"] .nm246-control-row,
:root[data-nm-theme="white"] .nm246-feature,
:root[data-nm-theme="white"] .nm246-owner-card .nm246-sizes label,
:root[data-nm-theme="white"] .nm246-provider-block,
:root[data-nm-theme="white"] .nm246-rule-ok,
:root[data-nm-theme="white"] .nm246-skill-row,
:root[data-nm-theme="white"] .nm246-theme-card,
:root[data-nm-theme="white"] .nm246-thread-list,
:root[data-nm-theme="white"] body.nm-theme .globalSearch,
:root[data-nm-theme="white"] body.nm-theme .jobTabs .btn,
:root[data-nm-theme="white"] body.nm-theme .notice,
:root[data-nm-theme="white"] body.nm-theme input,
:root[data-nm-theme="white"] body.nm-theme input:disabled,
:root[data-nm-theme="white"] body.nm-theme select,
:root[data-nm-theme="white"] body.nm-theme textarea,
:root[data-nm-theme="white"] body.nm-theme textarea:disabled{
 background:#fff!important;color:#102233!important;border-color:#d6e0e8!important;
}

:root[data-nm-theme="white"] :is(.nm-gcal-cell,.nm-agenda-job,.nm-drawer-job,.nm-mini-form,.nm-job-facts div,.nm-customer-card,.nm-form-card,.nm-side-peek,.nm-form-section,.nm-form-evidence,.nm-signature-block,.nm246-area,.nm246-check,.nm246-control-row,.nm246-feature,.nm246-skill-row,.nm246-theme-card,.nm246-thread-list) :is(b,strong,h1,h2,h3,h4,label){color:#102233!important}
:root[data-nm-theme="white"] :is(.nm-gcal-cell,.nm-agenda-job,.nm-drawer-job,.nm-mini-form,.nm-job-facts div,.nm-customer-card,.nm-form-card,.nm-side-peek,.nm-form-section,.nm-form-evidence,.nm-signature-block,.nm246-area,.nm246-check,.nm246-control-row,.nm246-feature,.nm246-skill-row,.nm246-theme-card,.nm246-thread-list) :is(span,small,p){color:#53677a!important}

:root[data-nm-theme="white"] .nm-hero-orbit{background:#e8f2fa!important;border-color:#bfd9ec!important}
:root[data-nm-theme="white"] .nm-tag.good{background:#eaf8f0!important;color:#135d38!important;border-color:#9bcfb0!important}
:root[data-nm-theme="white"] body.nm-theme .nm-approved-proof,
:root[data-nm-theme="white"] body.nm-theme .nm-billing-total,
:root[data-nm-theme="white"] body.nm-theme .nm-tip-separation{background:#fff!important;color:#102233!important;border-color:#d6e0e8!important}
