/* STEP 97 — opt-in Day / Night / Auto appearance.
   Only applies when html[data-ld97-theme="day"] is set. Legacy night styles
   are intentionally untouched; financial, navigation, and layout data remain as-is. */

/* Compact theme picker, visible in both RPM divisions and in both themes. */
#main-app .ld97-theme-picker{position:relative;display:flex;align-items:center;flex:0 0 auto;align-self:center;z-index:3;font-family:inherit}
#main-app .ld97-theme-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;height:36px;padding:0 11px!important;white-space:nowrap;background:#0c263a!important;border:1px solid #238ac3!important;border-radius:9px!important;color:#e9f7ff!important;box-shadow:none!important;font-size:11px!important;font-weight:850!important;letter-spacing:.02em;cursor:pointer;transition:border-color .18s,background-color .18s!important}
#main-app .ld97-theme-trigger:hover,#main-app .ld97-theme-trigger[aria-expanded="true"]{border-color:#34d8fc!important;background:#113550!important}
#main-app .ld97-theme-trigger .ld97-theme-icon{font-size:17px;line-height:1;color:#36dbf5}
#main-app .ld97-theme-trigger .ld97-theme-caret{font-size:12px;opacity:.7;margin-left:2px}
#main-app .ld97-theme-menu{position:absolute;z-index:99999;top:calc(100% + 7px);right:0;min-width:176px;overflow:hidden;padding:5px;border:1px solid #2b769b;border-radius:10px;background:#092336;color:#e6f7ff;box-shadow:0 16px 30px #0008}
#main-app .ld97-theme-menu[hidden]{display:none!important}
#main-app .ld97-theme-menu button{display:flex;align-items:center;gap:10px;padding:10px 12px!important;width:100%;min-height:38px;border:0!important;border-radius:6px!important;background:transparent!important;color:#d8edfc!important;text-align:left;font-size:12px!important;box-shadow:none!important;cursor:pointer;font-weight:750!important}
#main-app .ld97-theme-menu button:hover,#main-app .ld97-theme-menu button[aria-checked="true"]{background:#11466a!important;color:#fff!important}
#main-app .ld97-theme-menu button[aria-checked="true"]::after{content:'✓';margin-left:auto;color:#46dbef;font-weight:900}
body.parts-green-theme #main-app .ld97-theme-trigger{background:#052b1c!important;border-color:#168b58!important;color:#eafff3!important}
body.parts-green-theme #main-app .ld97-theme-trigger .ld97-theme-icon{color:#54f3a1}
body.parts-green-theme #main-app .ld97-theme-menu{background:#09291d;border-color:#1c8854}
body.parts-green-theme #main-app .ld97-theme-menu button:hover,body.parts-green-theme #main-app .ld97-theme-menu button[aria-checked="true"]{background:#0d5332!important}
body.parts-green-theme #main-app .ld97-theme-menu button[aria-checked="true"]::after{color:#6ef4a8}
@media(max-width:980px){#main-app .ld97-theme-trigger{padding:0 8px!important;min-height:34px;height:34px}}
@media(max-width:570px){#main-app .ld97-theme-trigger{height:33px;min-height:33px;font-size:11px!important}#main-app .ld97-theme-trigger .ld97-theme-icon{font-size:16px}#main-app .ld97-theme-menu{right:auto;left:0}}

html[data-ld97-theme="day"]{color-scheme:light!important}
html[data-ld97-theme="day"] body{--bg:#f2f7fd;--panel:#fff;--ink:#182b41;--muted:#60768e;--line:#cbdceb;--navy:#edf5ff;--navy2:#dceaf7;--blue:#1267d0;--blue-light:#e4effd;--green:#087a4a;--green-bg:#d9f4e8;--amber:#93621a;--amber-bg:#fff2d8;--red:#b12e3c;--red-bg:#fff0ef;--ld97-bg:#f1f6fc;--ld97-surface:#fff;--ld97-soft:#eaf2fc;--ld97-border:#c4d7ed;--ld97-ink:#17324e;--ld97-secondary:#587089;--ld97-accent:#166ad5;--ld97-hover:#e4f0fd;--ld97-accent-soft:#d5eaff;background:linear-gradient(150deg,#f6faff,#edf4fb)!important;color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body.parts-green-theme{--bg:#eff8f2;--panel:#fff;--ink:#143528;--muted:#527364;--line:#c1decf;--navy:#e8f8ee;--blue:#0b874c;--blue-light:#e4f5e9;--green:#087d45;--ld93-bg:#eff8f2;--ld93-panel:#fff;--ld93-border:#bddfcc;--ld93-muted:#597969;--ld97-bg:#eff8f2;--ld97-surface:#fff;--ld97-soft:#e9f6ec;--ld97-border:#b6dbc7;--ld97-ink:#183a2b;--ld97-secondary:#547462;--ld97-accent:#12834b;--ld97-hover:#e0f2e7;--ld97-accent-soft:#d4f0e0;background:linear-gradient(150deg,#f7fbf8,#edf8f2)!important;color:var(--ld97-ink)!important}

/* Main application structure: preserve dimensions, spacing, and exact navigation layout. */
html[data-ld97-theme="day"] body #main-app,html[data-ld97-theme="day"] body #main-app .main,html[data-ld97-theme="day"] body #main-app .content,html[data-ld97-theme="day"] body #main-app .combined-overview,html[data-ld97-theme="day"] body #main-app .overview-page{background:var(--ld97-bg)!important;color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app .topbar{background:linear-gradient(115deg,#f8fbff,#e8f1fb)!important;border-bottom:1px solid var(--ld97-border)!important;box-shadow:0 4px 17px #21477316!important;color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .topbar{background:linear-gradient(115deg,#f5fcf7,#e0f4e8)!important;border-bottom:1px solid #93cbb0!important}
html[data-ld97-theme="day"] body #main-app .sidebar,html[data-ld97-theme="day"] body #main-app .sidebar .nav{background:var(--ld97-soft)!important;border-color:var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav>button,html[data-ld97-theme="day"] body #main-app .sidebar .nav button:not(.primary){background:transparent!important;background-image:none!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;text-shadow:none!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav>button:hover:not(.active){background:var(--ld97-hover)!important;color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav>button.active{background:var(--ld97-accent-soft)!important;color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav>button.active::after{background:var(--ld97-accent)!important;box-shadow:0 0 5px var(--ld97-accent-soft)!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav .rpm-nav-icon,html[data-ld97-theme="day"] body #main-app .sidebar .nav .rpm-nav-label{color:inherit!important}
html[data-ld97-theme="day"] body #main-app .header-clock{background:var(--ld97-surface)!important;border-color:var(--ld97-border)!important;color:var(--ld97-ink)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .header-clock strong,html[data-ld97-theme="day"] body #main-app .header-clock small{color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body #main-app #mylotdesk-logged-in-employee,html[data-ld97-theme="day"] body #main-app #lotdesk-account-menu{background:#fff!important;color:var(--ld97-ink)!important;border:1px solid var(--ld97-border)!important;box-shadow:0 3px 10px #22334410!important}
html[data-ld97-theme="day"] body #main-app #mylotdesk-logged-in-employee :is(.lotdesk-account-caption,.lotdesk-account-name,.lotdesk-account-chevron){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app .ld97-theme-trigger{background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app .ld97-theme-trigger .ld97-theme-icon{color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .ld97-theme-menu{background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:0 12px 24px #1c3a5826!important}
html[data-ld97-theme="day"] body #main-app .ld97-theme-menu button{color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app .ld97-theme-menu button:hover,html[data-ld97-theme="day"] body #main-app .ld97-theme-menu button[aria-checked="true"]{background:var(--ld97-hover)!important;color:var(--ld97-accent)!important}

/* Common content surfaces, input fields, tables and cards. */
html[data-ld97-theme="day"] body #main-app :is(.panel,.stat,.card,.overview-stat,.overview-metric,.overview-inventory-panel,.parts-value-card,.ops-workspace-panel,.ops-register-table,.ops-summary,.ops-card,.ld83-sidebar,.ld83-detail,.ld83-summary-column,.ld87-metric,.ld87-cost,.ld87-payout-hero,.ld90-service-line,.ld91-gross-breakdown,.donor-cost-card,.ld92-panel,.ld93-card){background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:0 2px 8px #2845670c!important}
html[data-ld97-theme="day"] body #main-app :is(.panel-head,.stat-head,.ops-workspace-panel .panel-head,.report-center-inventory-style>.panel-head,.ld83-cost-head,.ld83-cost-basis,.ld87-cost-strip){background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app :is(.heading h2,.panel-head h3,.stat-num,.stat-value,.ops-register-heading h3,.ld83-header h1,.ld83-detail-head h2,.ld83-item-name,.ld83-summary h3,.ld87-vehicle-head h2,.ld87-payout-value,.ld61-heading h2,.ld93-header h2,.ld85-regular-linked h4){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.heading p,.stat-label,.stat-foot,.ld83-searchlabel,.ld83-side-note,.ld83-small,.ld83-field>span,.ld83-header p,.ld83-detail-head p,.ld83-item-bottom>span,.ld87-eyebrow,.ld87-hero-label,.ld87-formula,.ops-register-heading p){color:var(--ld97-secondary)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.stat,.panel,.overview-snapshot,.overview-content-grid,.report-center-grid,.ops-workspace,.ld83-workspace,.ld85-page,.ld87-snapshot){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app table,html[data-ld97-theme="day"] body #main-app table :is(thead,tbody,tr,td),html[data-ld97-theme="day"] body #main-app .ops-register-table,html[data-ld97-theme="day"] body #main-app .ld61-table{background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app :is(th,table thead th,.ops-register-table thead th,.ld61-table thead th){background:var(--ld97-soft)!important;color:var(--ld97-secondary)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app table tbody tr:hover td{background:var(--ld97-hover)!important}
html[data-ld97-theme="day"] body #main-app :is(input,textarea,select,.search,.field input,.field textarea,.field select,.ops-register-filters input,.ops-register-filters select,.ld83-field input,.ld83-field textarea,.ld83-sidebar input){background:#fff!important;color:var(--ld97-ink)!important;border:1px solid var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(input,textarea)::placeholder{color:#74859a!important}
html[data-ld97-theme="day"] body #main-app :is(select option){background:#fff!important;color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app :is(button.secondary,.secondary,.ld83-filters button,.ld83-item,.ld61-filters button,.vehicle-tab,.lotdesk-deal-tabs button,.ops-workspace-tabs button){background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:none!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(button.primary,.primary){background:var(--ld97-accent)!important;color:#fff!important;border-color:var(--ld97-accent)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.link,a){color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app :is(.ld83-item-top,.ld83-item-bottom b,.ld83-cost-row strong,.ld83-sum-row strong,.ld87-cost-items strong,.ops-amount,.ops-vendor-cell strong,.ld83-stats strong){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app :is(.ld83-item.active,.ld83-filters button.active){background:var(--ld97-accent-soft)!important;border-color:var(--ld97-accent)!important;color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app :is(.ld83-cost-head,.ld83-cost-row,.ld83-cost-list,.ld83-summary-column,.ld83-cost-basis,.ld83-item){background:var(--ld97-surface)!important;border-color:var(--ld97-border)!important;color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app :is(.ld83-sum-row,.ld83-expenses-head,.ld83-detail-head,.ld87-fin-rows,.ld87-section-title,.ld87-id-divider){border-color:var(--ld97-border)!important}

/* Additional dark-only inner workspace selectors from earlier approved designs. */
html[data-ld97-theme="day"] body #main-app :is(.dealer-overview,.inventory-workspace,.deals-workspace,.buyers-workspace,.report-center,.overhead-workspace,.dealer-management-new-style,.ops-workspace,.recycle-workspace,.ld61-page,.ld85-page) :is(.panel-body,.ops-workspace-panel,.ops-register-filter,.ops-register-count,.ops-payment-status,.ops-area,.report-center-grid,.report-center-inventory-style,.ld61-panel,.ld61-filters,.ld61-register,.ld61-table-wrap){background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app :is(.overhead-workspace,.dealer-management-new-style,.inventory-workspace,.deals-workspace) :is(h1,h2,h3,h4,label,strong,.ops-register-count,.ops-amount,.ops-register-heading h3,.ops-vendor-cell strong){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.overhead-workspace,.dealer-management-new-style,.inventory-workspace,.deals-workspace) :is(p,small,.ops-area,.ops-workspace-tabs button,.ops-register-filters label){color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body #main-app .overhead-workspace .ops-workspace-tabs button.active,html[data-ld97-theme="day"] body #main-app .sidebar .nav button.active{color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .overhead-workspace .ops-workspace-tabs button.active::after{background:var(--ld97-accent)!important;box-shadow:0 0 5px var(--ld97-accent-soft)!important}

/* Dialogs and forms across Car, Deals, Check, Titles, investor and general modals. */
html[data-ld97-theme="day"] body .modal-backdrop{background:rgba(37,63,89,.43)!important;backdrop-filter:blur(4px)}
html[data-ld97-theme="day"] body :is(#modal-root,.modal-root) :is(.modal,.modal-content,.modal-head,.modal-foot,.modal-body,.modal-footer,.vehicle-tab-panel,.lotdesk-deal-summary,.lotdesk-deal-metric,.deal-financial-panel,.deal-financial-grid>div,.ld85-investor-modal,.ld87-snapshot,.ld87-metric,.ld87-payout-hero,.ld87-cost,.ld87-cost-strip,.ld90-service-line,.ld91-gross-breakdown,.ld86-cost-details){background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #modal-root .modal:has(.vehicle-tabs),html[data-ld97-theme="day"] body #modal-root .modal:has(.lotdesk-deal-tabs),html[data-ld97-theme="day"] body #modal-root .ld85-investor-modal{background:var(--ld97-surface)!important;border-color:var(--ld97-accent)!important;color:var(--ld97-ink)!important;box-shadow:0 22px 65px #21344c25!important}
html[data-ld97-theme="day"] body #modal-root .modal:has(.vehicle-tabs) :is(.modal-head,.modal-content,.modal-foot),html[data-ld97-theme="day"] body #modal-root .modal:has(.lotdesk-deal-tabs) :is(.modal-head,.modal-content,.modal-foot),html[data-ld97-theme="day"] body #modal-root .ld85-investor-modal :is(.modal-head,.modal-content,.modal-foot){background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #modal-root :is(h1,h2,h3,h4,strong,label,.deal-financial-grid strong,.ld87-payout-value,.ld91-gross-title,.ld91-gross-total b,.lotdesk-deal-metric strong){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #modal-root :is(p,small,.field label,.deal-financial-grid small,.lotdesk-deal-metric small,.ld87-hero-label,.ld87-formula,.ld87-eyebrow){color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body #modal-root :is(input,textarea,select,.field input,.field textarea,.field select){background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #modal-root :is(select option){background:#fff!important;color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #modal-root :is(table,table td,.deal-expense-scroll,.ld85-regular-linked,.ld91-gross-row){background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #modal-root :is(table th,.deal-expense-scroll thead th){background:var(--ld97-soft)!important;color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body #modal-root :is(.lotdesk-deal-tabs button,.vehicle-tab,.secondary,.ld85-investor-modal .ld85-modal-nav button){background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #modal-root :is(.lotdesk-deal-tabs button.active,.vehicle-tab.active){background:var(--ld97-accent-soft)!important;color:var(--ld97-accent)!important;border-color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #modal-root :is(.primary,button.primary){background:var(--ld97-accent)!important;color:#fff!important;border-color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #modal-root :is(.deal-financial-panel,.ld85-regular-linked,.ld91-gross-breakdown){border-top-color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #modal-root .ld87-payout-hero{background:#e4f7ed!important;border:1px solid #a9ddc0!important}
html[data-ld97-theme="day"] body #modal-root .ld87-payout-value,html[data-ld97-theme="day"] body #modal-root .ld87-calc-result{color:#087943!important}

/* Recycling dark-only surfaces need a second, explicitly green daylight cascade. */
html[data-ld97-theme="day"] body.parts-green-theme #main-app :is(.ld93-summary,.ld93-summary-row,.ld93-metrics,.ld93-metric,.ld93-table-wrap,.ld93-section,.ld93-table,.ld93-part-item,.ld93-donor-item){background:var(--ld97-surface)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app :is(.ld93-summary,.ld93-page,.ld93-content,.ld93-header,.ld93-workspace){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav>button:not([data-page="overview"]){background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-right-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav>button:not([data-page="overview"]).active{background:var(--ld97-accent-soft)!important;color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav>button:not([data-page="overview"]):hover{background:var(--ld97-hover)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav>button[data-page="overview"] svg{color:var(--ld97-accent)!important;filter:drop-shadow(0 0 2px #9cd9b5)!important}

/* Other standalone popups and login screen. */
html[data-ld97-theme="day"] body :is(.lotdesk-month-pop,.dialog,.dialog-card,.popover,.dropdown-menu,#lotdesk-account-menu,#lotdesk-inventory-menu){background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:0 12px 30px #20425a25!important}
html[data-ld97-theme="day"] body :is(.lotdesk-month-pop,.dialog,.dialog-card,.popover,.dropdown-menu) button:not(.primary){background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body :is(.auth-gate,.auth-card){background:#f3f8fe!important;color:#17314c!important}
html[data-ld97-theme="day"] body .auth-card :is(input,select){background:#fff!important;color:#17314c!important;border-color:#b7cae0!important}
html[data-ld97-theme="day"] body :is(.toast,.notice){color:var(--ld97-ink)!important}
@media print{html[data-ld97-theme="day"] body{background:white!important}}
@media(prefers-reduced-motion:reduce){#main-app .ld97-theme-trigger{transition:none!important}}

/* Step 97 contrast QA: historical KPI styles use very specific dark !important rules. */
html[data-ld97-theme="day"] body #main-app .stats>.stat,
html[data-ld97-theme="day"] body #main-app .stats .stat,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .stats>.stat,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .stats .stat,
html[data-ld97-theme="day"] body.ld63-autoworks #main-app .stats>.stat{background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .stats .stat :is(.stat-label,.stat-num,.stat-value,.stat-foot),
html[data-ld97-theme="day"] body.parts-green-theme #main-app .stats .stat :is(.stat-label,.stat-num,.stat-value,.stat-foot){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .stats .stat :is(.stat-label,.stat-foot){color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body #main-app .stats .stat .stat-num{color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav > button[data-page="overview"],
html[data-ld97-theme="day"] body.ld63-autoworks #main-app .sidebar .nav > button[data-page="overview"]{background:var(--ld97-soft)!important;color:var(--ld97-accent)!important;border-color:var(--ld97-border)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .topbar .app-header-logo,
html[data-ld97-theme="day"] body #main-app .topbar .rpm-brand-lockup{background:#0a243a!important;border-radius:8px!important;box-shadow:0 0 0 1px #0d345d22!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .topbar .app-header-logo,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .topbar .rpm-brand-lockup{background:#062a1c!important}

/* Recycle's unboxed KPIs: readable ink and retained green accent on Day View. */
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-intro h2,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-content-title h3,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-panel-title h3,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metric-number,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-overview-note b{color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metric-number{color:#087b44!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metric-name,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metric-detail,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-intro p,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-panel-title p,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-content-title>span{color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metrics,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-intro,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metric+ .ld93-metric{border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-search-wrap input{background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-table td .muted{color:var(--ld97-secondary)!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-panel-title>span,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-metric-icon{color:#149157!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .ld93-row-more summary{background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body.parts-green-theme #modal-root :is(.modal,.modal-head,.modal-content){background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body.parts-green-theme #modal-root :is(input,textarea,select){background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body.parts-green-theme #modal-root button.secondary{background:var(--ld97-soft)!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}

/* STEP 98 — Day View readability repair.
   Dealer Overview (Step 58) uses its own high-specificity white-on-navy
   typography that Step 97's generic .stat/.panel selectors do not cover.
   Keep the approved flat cyan dividers, charts, sizing, and Night View intact. */
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 {
  color:var(--ld97-ink)!important;
  background:transparent!important;
  text-shadow:none!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 :is(
  .ld58-heading h1,.ld58-section-title h2,.ld58-side-head h2,
  .ld58-kpi-label,.ld58-kpi-amount,.ld58-kpi-sub,
  .ld58-month-grid strong,.ld58-mix-title,.ld58-quick>span,
  .ld58-event b,.ld58-attention strong
){color:#18324c!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 :is(
  .ld58-heading p,.ld58-heading-actions time,
  .ld58-kpi-sub span,.ld58-section-title>span,
  .ld58-small-actions>span,.ld58-month-grid>div>span,
  .ld58-month-grid small,.ld58-mix small,.ld58-helper,
  .ld58-advanced>summary span,.ld58-footnote,
  .ld58-side-head span,.ld58-event div>span:last-child,
  .ld58-attention>div:not(.ld58-side-head),.ld58-quick small
){color:#566e84!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 :is(
  .ld58-kpi-icon,.ld58-section-title h2 span
){color:#096dc2!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-kpi-amount{
  color:#124d85!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-month-grid .ld58-positive{
  color:#087a4c!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 :is(
  .ld58-textlink,.ld58-stock,.ld58-event-open,.ld58-advanced>summary
){color:#075caa!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 :is(
  .ld58-kpi,.ld58-overview-section,.ld58-mix,.ld58-month-grid>div,
  .ld58-advanced,.ld58-search-section,.ld58-side-head,.ld58-event,
  .ld58-attention>div:not(.ld58-side-head)
){border-color:#9abfdf!important}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-side-panel{
  background:#fff!important;
  color:var(--ld97-ink)!important;
  border:1px solid #b6d3e9!important;
  box-shadow:0 4px 14px #284b6a10!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-event-date{
  color:#0b629e!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-event-dot{
  background:#087dbb!important;box-shadow:0 0 0 2px #c6e7f9!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-ring{
  box-shadow:none!important;
}
/* The chart's ring center remains dark: its white percentage is intentional. */
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-ring>span{
  color:#fff!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 table{
  background:transparent!important;color:var(--ld97-ink)!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 table :is(th,td){
  border-color:#c6d9ea!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 table th{
  background:#e7f0fa!important;color:#345773!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 table td{
  background:#fff!important;color:#1f3b53!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 table tr:hover td{
  background:#e9f3fe!important;
}
html[data-ld97-theme="day"] body #main-app .dealer-overview-v58 .ld58-status{
  color:#fff!important;
}
/* Compact Autoworks clock has bespoke Step 63 rules, including !important. */
html[data-ld97-theme="day"] body.ld63-autoworks #main-app .header-clock strong{
  color:#496987!important;
}
html[data-ld97-theme="day"] body.ld63-autoworks #main-app .header-clock #clock-time{
  color:#1b5b90!important;
}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .header-clock :is(strong,#clock-time,small){
  color:#235f42!important;
}
/* Maintain strong contrast for classic Inventory, Reports and Overhead headers
   which use hard-coded white text in their night-only styles. */
html[data-ld97-theme="day"] body #main-app :is(
  .ld59-workspace-head h3,.ld59-inventory-page .heading h2,
  .report-center-inventory-style>.panel-head h3,
  .overhead-workspace .heading h2,.ops-register-heading h3
){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(
  .ld59-workspace-head p,.ld59-filter,.ld59-utility-row,
  .overhead-workspace .heading p,.overhead-workspace .ops-register-heading p
){color:var(--ld97-secondary)!important;text-shadow:none!important}


/* ============================================================
   STEP 99 — Day mode visual system and brand-logo integration.
   Day ONLY: the approved dark interface and transaction code are untouched.
   Better contrast: darker ink, defined white surfaces, stronger dividers.
   ============================================================ */
html[data-ld97-theme="day"] body {
  --ld97-bg:#e9f0f8;
  --ld97-surface:#ffffff;
  --ld97-soft:#e4eef9;
  --ld97-border:#abc3dd;
  --ld97-ink:#142c45;
  --ld97-secondary:#455f79;
  --ld97-accent:#075fb9;
  --ld97-hover:#d8eafb;
  --ld97-accent-soft:#d7e9fa;
  background:#e9f0f8!important;
}
html[data-ld97-theme="day"] body.parts-green-theme{
  --ld97-bg:#e9f3ed;
  --ld97-surface:#fff;
  --ld97-soft:#e0f0e6;
  --ld97-border:#9bcbb0;
  --ld97-ink:#163a2a;
  --ld97-secondary:#416955;
  --ld97-accent:#087645;
  --ld97-hover:#d7eee0;
  --ld97-accent-soft:#d1ecd9;
  background:#e9f3ed!important;
}
/* Light edition of the *same* original logos. No new brand marks or backplates.
   invert+hue-rotate retains the cyan/blue/green brand accents while giving
   white/silver lettering enough dark contrast on the light header. */
html[data-ld97-theme="day"] body #main-app .topbar .app-header-logo,
html[data-ld97-theme="day"] body #main-app .topbar .rpm-brand-lockup,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .topbar .app-header-logo,
html[data-ld97-theme="day"] body.parts-green-theme #main-app .topbar .rpm-brand-lockup{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border-radius:0!important;
}
html[data-ld97-theme="day"] body #main-app .topbar .app-header-logo img,
html[data-ld97-theme="day"] body #main-app .topbar .rpm-brand-lockup>img:not(.rpm-invest-header-logo){
  filter:invert(1) hue-rotate(180deg) contrast(1.14) saturate(1.14)!important;
  mix-blend-mode:multiply!important;
}
html[data-ld97-theme="day"] body #main-app .topbar .rpm-brand-lockup .rove-company-tag{color:#34546f!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .topbar .rpm-brand-lockup .rove-company-tag b{color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .topbar .rpm-brand-lockup{border-left-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app .topbar{background:linear-gradient(105deg,#f7faff 0%,#eaf2fc 100%)!important;border-bottom:2px solid #0b84d3!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .topbar{background:linear-gradient(105deg,#f6fcf8 0%,#e3f4e9 100%)!important;border-bottom-color:#16945c!important}

/* Keep the tab sizes unchanged while making both active and inactive labels legible. */
html[data-ld97-theme="day"] body #main-app .sidebar .nav>button:not(.active){color:#233d56!important;background:#e9f2fc!important;text-shadow:none!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav>button:not(.active){color:#1d4934!important;background:#e6f5eb!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav>button.active{background:#123a5c!important;color:#fff!important;text-shadow:none!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav>button.active{background:#0c4930!important;color:#fff!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav button.active :is(.rpm-nav-icon,.rpm-nav-label){color:#fff!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav button[data-page="overview"]{background:var(--ld97-soft)!important;color:var(--ld97-accent)!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav button[data-page="overview"] :is(svg,i,.rpm-nav-icon){color:var(--ld97-accent)!important;filter:drop-shadow(0 0 2px #177fca38)!important}
html[data-ld97-theme="day"] body #main-app .sidebar .nav{border-bottom:1px solid #94b5d4!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app .sidebar .nav{border-bottom-color:#90c6a8!important}

/* Generic page typography: color is explicitly inherited in many legacy sections,
   while custom night-only selectors hard-code white titles. */
html[data-ld97-theme="day"] body #main-app .content :is(h1,h2,h3,h4,h5){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .content :is(.page-subtitle,.page-description,.muted,.subtle,.text-muted){color:var(--ld97-secondary)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.content,.ld61-deals,.ld59-inventory-page,.overhead-workspace,.ld93-page,.ld85-page,.ops-workspace){color:var(--ld97-ink)!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.content,.ld61-deals,.ld59-inventory-page,.overhead-workspace,.ops-workspace) :is(input,textarea,select){background:#fff!important;color:#17364f!important;border-color:#a6c0da!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app :is(.content,.ld93-page) :is(input,textarea,select){background:#fff!important;color:#1b3b2d!important;border-color:#a5ccb4!important}
html[data-ld97-theme="day"] body #main-app input::placeholder{color:#5d738a!important;opacity:1!important}
html[data-ld97-theme="day"] body #main-app :is(.panel,.ops-workspace-panel,.ld83-detail,.ld93-table-wrap,.ld59-table,.ld61-table-wrap){border-color:var(--ld97-border)!important}

/* Step 61 wholesale Deals workspace: every one of these was originally styled
   for midnight navy and is not covered by the generic Day cards. */
html[data-ld97-theme="day"] body #main-app .ld61-deals{color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app .ld61-header{border-bottom-color:#9ebcdb!important}
html[data-ld97-theme="day"] body #main-app .ld61-header h1,
html[data-ld97-theme="day"] body #main-app .ld61-filter-head h2,
html[data-ld97-theme="day"] body #main-app .ld61-register-head>span{color:#152e48!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld61-eyebrow{color:#0967aa!important}
html[data-ld97-theme="day"] body #main-app :is(.ld61-header p,.ld61-stat>small,.ld61-register-head small,.ld61-footer p,.ld61-legal){color:#4c6983!important}
html[data-ld97-theme="day"] body #main-app .ld61-kpis{background:linear-gradient(180deg,#fff,#f6faff)!important;border-top:1px solid #9cbcdc!important;border-bottom:1px solid #9cbcdc!important;border-radius:8px!important;box-shadow:0 3px 14px #183e5b0c!important}
html[data-ld97-theme="day"] body #main-app .ld61-stat{border-right-color:#9ab8d5!important}
html[data-ld97-theme="day"] body #main-app .ld61-stat-label{color:#395671!important}
html[data-ld97-theme="day"] body #main-app .ld61-stat-label span{color:#096fae!important}
html[data-ld97-theme="day"] body #main-app .ld61-stat>strong{color:#193d61!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld61-stat>strong.ld61-positive,
html[data-ld97-theme="day"] body #main-app .ld61-deals .ld61-positive{color:#087646!important}
html[data-ld97-theme="day"] body #main-app .ld61-deals .ld61-negative{color:#a7353d!important}
html[data-ld97-theme="day"] body #main-app .ld61-deals .ld61-missing{color:#935a12!important}
html[data-ld97-theme="day"] body #main-app .ld61-tabs button{color:#44637e!important;border-bottom-color:transparent!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld61-tabs button.active{color:#093f77!important;border-bottom-color:#0879bf!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld61-view-chips button:not(.active){background:#fff!important;color:#234765!important;border-color:#97b9d6!important}
html[data-ld97-theme="day"] body #main-app .ld61-view-chips button.active{background:#075b98!important;color:#fff!important;border-color:#0a87cf!important}
html[data-ld97-theme="day"] body #main-app .ld61-filters label{color:#395c79!important}
html[data-ld97-theme="day"] body #main-app .ld61-filters select,
html[data-ld97-theme="day"] body #main-app .ld61-input-wrap{background:#fff!important;border-color:#91b3d1!important;color:#173752!important}
html[data-ld97-theme="day"] body #main-app .ld61-input-wrap input{background:transparent!important;color:#152e48!important}
html[data-ld97-theme="day"] body #main-app .ld61-input-wrap button{color:#0d5b91!important}
html[data-ld97-theme="day"] body #main-app .ld61-table-wrap{border-color:#83abce!important;box-shadow:0 3px 15px #243f5f0c!important}
html[data-ld97-theme="day"] body #main-app .ld61-table thead{background:#d5e6f5!important}
html[data-ld97-theme="day"] body #main-app .ld61-table th{color:#1f4565!important;background:#d9e8f6!important;border-bottom-color:#9cb8d3!important}
html[data-ld97-theme="day"] body #main-app .ld61-table td{background:#fff!important;color:#1b354d!important;border-bottom-color:#d0dfea!important}
html[data-ld97-theme="day"] body #main-app .ld61-table tbody tr:nth-child(even) td{background:#f4f9fe!important}
html[data-ld97-theme="day"] body #main-app .ld61-table .ld61-deal-row:hover td{background:#e4f1fe!important}
html[data-ld97-theme="day"] body #main-app .ld61-car-name{color:#153957!important}
html[data-ld97-theme="day"] body #main-app .ld61-deal-number{color:#0862b5!important}
html[data-ld97-theme="day"] body #main-app .ld61-table td>small,
html[data-ld97-theme="day"] body #main-app .ld61-amount small{color:#5a7286!important}
html[data-ld97-theme="day"] body #main-app .ld61-register-head,
html[data-ld97-theme="day"] body #main-app .ld61-footer{color:#2b4864!important}
html[data-ld97-theme="day"] body #main-app .ld61-footer button{background:#e3f0fc!important;color:#18476d!important;border-color:#8db6d8!important}
html[data-ld97-theme="day"] body #main-app .ld61-card{background:#fff!important;color:var(--ld97-ink)!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #main-app .ld61-card :is(h3,.ld61-card-top,.ld61-card-fin strong,.ld61-card-bottom){color:#1d405f!important}
html[data-ld97-theme="day"] body #main-app .ld61-card :is(small,.ld61-card-sub,.ld61-card-fin small){color:#4e697e!important}
html[data-ld97-theme="day"] body #main-app .ld61-card-fin{border-color:#b5d0e5!important}

/* Legacy deal mode switcher and flat wholesale/retail/report tabs:
   neutral labels must not inherit near-white night colors. */
html[data-ld97-theme="day"] body #main-app :is(.deals-workspace,.option2-deals-page,.ld85-page) :is(.page-heading,.page-subtitle,.ld85-title){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app :is(.deals-workspace,.option2-deals-page) :is(button,summary)[aria-selected="false"]:not(.primary){color:#375b79!important}
html[data-ld97-theme="day"] body #main-app :is(.deals-workspace,.option2-deals-page) :is(button,summary)[aria-selected="true"]:not(.primary){color:#16436c!important}

/* Shared pages (inventory, reports, overhead, buyers, management) keep their
   original accent lines and layout but gain readable text and distinct surfaces. */
html[data-ld97-theme="day"] body #main-app :is(.ld59-inventory-page,.overhead-workspace,.dealer-management-new-style,.report-center-inventory-style,.ops-workspace,.buyers-workspace) :is(.stat-num,.stat-value,.inventory-filter-number,.ops-workspace-stat-amount,.ops-amount){color:#184b78!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.ld59-inventory-page,.overhead-workspace,.dealer-management-new-style,.report-center-inventory-style,.ops-workspace,.buyers-workspace) :is(.stat-label,.ops-register-heading p,.ops-workspace-stat-label,.inventory-filter-label,.ops-workspace-tabs button){color:#49657e!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .overhead-workspace .ops-workspace-tabs button.active{color:#065c9b!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app :is(.ld59-table,.ops-register-table,.ld93-table){background:#fff!important;color:#1b384f!important}
html[data-ld97-theme="day"] body #main-app :is(.ld59-table,.ops-register-table,.ld93-table) th{background:#dceaf7!important;color:#234862!important;border-color:#bdd1e3!important}
html[data-ld97-theme="day"] body #main-app :is(.ld59-table,.ops-register-table,.ld93-table) td{background:#fff!important;color:#1d3a52!important;border-color:#d4e0ea!important}
html[data-ld97-theme="day"] body #main-app :is(.ld59-table,.ops-register-table,.ld93-table) tbody tr:nth-child(even) td{background:#f4f8fd!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app :is(.ld93-table,.ops-register-table) th{background:#d8eee0!important;color:#214e36!important;border-color:#b4d6bf!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app :is(.ld93-table,.ops-register-table) td{background:#fff!important;color:#1f4532!important;border-color:#d2e7d8!important}
html[data-ld97-theme="day"] body.parts-green-theme #main-app :is(.ld93-table,.ops-register-table) tbody tr:nth-child(even) td{background:#f2faf4!important}

/* Popup text and table rows are never pale-on-pale; selected inputs and
   green financial results retain their semantic colors. */
html[data-ld97-theme="day"] body #modal-root :is(.modal,.modal-content,.modal-body,.ld85-investor-modal){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #modal-root :is(.lotdesk-deal-tabs,.vehicle-tabs) button:not(.active){color:#456680!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #modal-root :is(.lotdesk-deal-tabs,.vehicle-tabs) button.active{color:#0b5f9a!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #modal-root :is(.field-label,.form-label,.row-label,.expense-category,.deal-financial-grid small){color:#466279!important}
html[data-ld97-theme="day"] body #modal-root :is(.modal-head,.modal-foot,.modal-footer){border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #modal-root :is(.deal-expense-scroll,.lotdesk-deal-summary,.deal-financial-panel){background:#fff!important;border-color:var(--ld97-border)!important}
html[data-ld97-theme="day"] body #modal-root :is(table td,.expense-table td){color:#1b3852!important}
html[data-ld97-theme="day"] body #modal-root :is(table th,.expense-table th){color:#2d5271!important;background:#dfecf8!important}
html[data-ld97-theme="day"] body #modal-root :is(.ld87-payout-value,.ld87-calc-result,.ld91-gross-total b){color:#087647!important}

/* Vivid blue/green focus rings remain accessible in daylight. */
html[data-ld97-theme="day"] body #main-app :is(button,input,select,textarea):focus-visible,
html[data-ld97-theme="day"] body #modal-root :is(button,input,select,textarea):focus-visible{
  outline:2px solid var(--ld97-accent)!important;outline-offset:2px;
}

/* Step 99 follow-up: the separate Wholesale / Retail / Investor / Claims
   subnavigation was still drawn in faded night colors. */
html[data-ld97-theme="day"] body #main-app .ld75-subnav{
  background:transparent!important;
  border-bottom:1px solid #9bbad5!important;
}
html[data-ld97-theme="day"] body #main-app .ld75-subnav button{
  color:#315877!important;
  text-shadow:none!important;
  background:transparent!important;
  border-left-color:#b6cde0!important;
}
html[data-ld97-theme="day"] body #main-app .ld75-subnav button.active{
  color:#064d87!important;
  font-weight:900!important;
}
html[data-ld97-theme="day"] body #main-app .ld75-subnav button.active::after{
  background:#0a73b7!important;
  box-shadow:0 0 5px #5ba3d266!important;
}
/* Claims Center uses a completely separate dark-only component system. */
html[data-ld97-theme="day"] body #main-app .ld75-page{color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app .ld75-page :is(
  .ld75-toolbar h2,.ld75-claim-heading h2,.ld75-vehicle-head h3,
  .ld75-grid h3,.ld75-pane h3,.ld75-list-head strong,.ld75-kpis strong,
  .ld75-number,.ld75-moneyrow strong
){color:#173750!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld75-page :is(
  .ld75-toolbar p,.ld75-claim-heading span:not(.ld75-tag),.ld75-list-card small,
  .ld75-pane>p,.ld75-moneyrow span,.ld75-kpis span,.ld75-field,
  .ld78-picker-hint,.ld78-documents-block p,.ld78-documents-block>small
){color:#45647c!important;text-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld75-page :is(
  .ld75-list,.ld75-detail,.ld75-list-card,.ld75-documents-block,
  .ld78-documents-block,.ld78-search-results,.ld78-vehicle-option
){background:#fff!important;color:#1a3852!important;border-color:#afc8dc!important;box-shadow:none!important}
html[data-ld97-theme="day"] body #main-app .ld75-page :is(
  .ld75-list-card.selected,.ld78-vehicle-option[aria-selected=true]
){background:#e5f1fc!important;color:#104c7a!important;border-color:#3286be!important}
html[data-ld97-theme="day"] body #main-app .ld75-page :is(
  .ld75-list>input,.ld75-field input,.ld75-field textarea,.ld75-field select,
  .ld78-vehicle-field input,.ld78-documents-picker
){background:#fff!important;color:#15374f!important;border-color:#a2bed6!important}
html[data-ld97-theme="day"] body #main-app .ld75-page .ld75-filters button:not(.active){background:#e7f0f8!important;color:#274862!important;border-color:#a8c2da!important}
html[data-ld97-theme="day"] body #main-app .ld75-page .ld75-detail-tabs button:not(.active){color:#426079!important}
html[data-ld97-theme="day"] body #main-app .ld75-page .ld75-detail-tabs button.active{color:#085f9b!important}
html[data-ld97-theme="day"] body #main-app .ld75-page :is(.ld75-claim-heading,.ld75-moneyrow,.ld75-data>*,.ld75-actions,.ld75-detail-tabs,.ld75-toolbar,.ld75-kpis){border-color:#b6cede!important}
html[data-ld97-theme="day"] body #main-app .ld75-page .ld75-eyebrow{color:#0769a5!important}
/* Invoice/form labels in shared pages where the old dark palette still sets white. */
html[data-ld97-theme="day"] body #main-app :is(.ld59-inventory-page,.ops-workspace,.overhead-workspace,.report-center,.dealer-management-new-style,.buyers-workspace)
 :is(.panel-head h2,.panel-head h3,.ops-workspace-title,.ops-section-title,.ops-workspace-panel h3,.ops-workspace-panel h4,.ops-register-heading h3){color:var(--ld97-ink)!important}
html[data-ld97-theme="day"] body #main-app :is(.ld59-inventory-page,.ops-workspace,.overhead-workspace,.report-center,.dealer-management-new-style,.buyers-workspace)
 :is(.panel-subtitle,.ops-helper,.ops-note,.ops-register-footer,.ops-workspace-panel label,.filter-label){color:var(--ld97-secondary)!important}

/* STEP 100 — High-contrast Day popup finish. Pure styling; Night untouched. */
html[data-ld97-theme="day"] body #modal-root :is(.modal,.modal-content,.modal-body,.vehicle-tab-panel,.lotdesk-deal-snap,.ld89-settlement-tab,.ld89-investor-expenses) {
 color:#142f49!important;
}
html[data-ld97-theme="day"] body #modal-root :is(.modal h1,.modal h2,.modal h3,.modal h4,.vehicle-tab-panel h3,.ld89-investor-expenses h3,.ld89-settlement-tab h3,.lotdesk-deal-summary h3) {
 color:#102d47!important;text-shadow:none!important;
}
html[data-ld97-theme="day"] body #modal-root :is(.muted,.field>label,.vehicle-tab-panel .muted,.ld89-expense-note,.ld89-regular-title p,.ld87-eyebrow,.ld89-expenses-title p) {
 color:#385873!important;text-shadow:none!important;
}
html[data-ld97-theme="day"] body #modal-root :is(.vehicle-tab-panel,.lotdesk-deal-summary,.ld89-settlement-tab,.ld89-investor-expenses,.ld87-cost-strip,.ld89-expense-kpis,.deal-financial-panel) {
 background:#fff!important;border-color:#a2bed5!important;
}
html[data-ld97-theme="day"] body #modal-root :is(.ld87-cost-items>div,.ld89-expense-kpis>div,.ld87-metrics>div,.ld87-payout-hero,.deal-financial-grid>div) {
 background:#eff6fc!important;border:1px solid #aac6dc!important;box-shadow:none!important;
}
html[data-ld97-theme="day"] body #modal-root :is(.ld87-cost-items>div,.ld89-expense-kpis>div,.ld87-metrics>div,.deal-financial-grid>div) :is(span,small,b,strong) {
 color:#173b57!important;text-shadow:none!important;
}
html[data-ld97-theme="day"] body #modal-root :is(.ld87-payout-value,.deal-positive,.ld91-gross-total strong) {color:#087b4b!important}
html[data-ld97-theme="day"] body #modal-root :is(.deal-negative,.ld87-warning) {color:#b42332!important}
html[data-ld97-theme="day"] body #modal-root :is(.ld89-expense-list table td,.vehicle-expenses-compact td,.ld89-expense-list table td small) {color:#244761!important}
html[data-ld97-theme="day"] body #modal-root :is(.ld87-section-title,.ld87-section-title small,.ld89-expense-note) {color:#315775!important}
html[data-ld97-theme="day"] body #modal-root :is(.modal-head,.modal-header) img {filter:drop-shadow(0 1px 1px #728eaa) contrast(1.25) saturate(1.16)!important}
/* Blue for dealership, green for the Recycle division, without changing Night. */
#modal-root .ld100-expense-delete {font:inherit;font-weight:750;font-size:12px;padding:7px 11px;border:1px solid #cf6872;border-radius:8px;color:#ffe4e6;background:#67242c;cursor:pointer;white-space:nowrap}
#modal-root .ld100-expense-delete:hover {background:#98303b}
html[data-ld97-theme="day"] body #modal-root .ld100-expense-delete {background:#fff5f5!important;color:#9d2834!important;border-color:#d17b83!important}
html[data-ld97-theme="day"] body #modal-root .ld100-expense-delete:hover {background:#ffe6e7!important}
html[data-ld97-theme="day"] body #modal-root .ld100-linked-overhead {background:#f9fcff!important;border:1px solid #afc9de!important}
