/* STEP 209: exact modern shared Day/Night preference on Add/Edit Vehicle Expense.
   The legacy html[data-ld97-theme] remains Night by design. Read only the
   modern app theme via the modal's data-ld209-theme (assigned in app JS).
   Pure visual change: never alter the form IDs, handlers, saving or scanning. */
@media screen {
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] {
   --ld208-bg:#edf4fa;
   --ld208-surface:#f6faff;
   --ld208-sub:#e4eff9;
   --ld208-input:#f9fcff;
   --ld208-text:#102a44;
   --ld208-muted:#455f79;
   --ld208-line:#bbd2e6;
   --ld208-accent:#069fe1;
   --ld209-card:#f9fcff;
   --ld209-header:#f6faff;
   --ld202-bg:#edf4fa;--ld202-panel:#f6faff;
   --ld202-panel2:#eaf3fb;--ld202-input:#f9fcff;
   --ld202-text:#102a44;--ld202-secondary:#455f79;
   --ld202-border:#bbd2e6;--ld202-accent:#069fe1;
   color-scheme:light!important;
   background:#edf4fa!important;
   border-color:var(--ld208-line)!important;
   color:var(--ld208-text)!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] > .modal-head,
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] > .modal-foot {
   background:var(--ld209-header)!important;
   color:var(--ld208-text)!important;
   border-color:var(--ld208-line)!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] > .modal-content {
   background:#edf4fa!important;color:var(--ld208-text)!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .v20-panel {
   background:var(--ld209-card)!important;
   border-color:var(--ld208-line)!important;
   border-top-color:var(--ld208-accent)!important;
   color:var(--ld208-text)!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .ld208-vehicle-row {
   background:#eaf3fb!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .modal-head h3,
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .v20-title,
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .v20-vehicle-identity strong,
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(.v20-details,.v20-parts,.v20-core,.v20-split,.v20-attachments) :is(h3,h4,strong),
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .v20-parts #invoice-parts-summary {
   color:#102a44!important;
   text-shadow:none!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(
   .v20-field label,.v20-attachments label,.v20-vehicle-chooser label,
   .v20-vehicle-identity small,.v20-parts small,.v20-attachments small,
   .v20-split small,.v20-core small,.v20-attachment-note,
   .lotdesk-expense-scan-status,.v20-core .muted,.field .muted,
   .footnote,.muted,.v20-panel p,.v20-panel .notice
 ) {
   color:#455f79!important;opacity:1!important;text-shadow:none!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(
   input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,
   input[type="file"]
 ) {
   background:#f9fcff!important;color:#102a44!important;
   border:1px solid #b9d1e4!important;
   color-scheme:light!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(input,textarea)::placeholder {
   color:#526b85!important;opacity:1!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] input[type="file"]::file-selector-button {
   background:#e7f1fb!important;color:#102a44!important;
   border:1px solid #b7cfe3!important;border-radius:6px!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(
   .v20-panel .field, .v20-panel .notice,.v20-panel .pill,
   .v20-core .ld123-core-choice,.v20-core .ld123-core-option
 ) {border-color:#c2d7e8!important;color:#102a44!important;}
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(
   .secondary,.v20-scan,.modal-foot button:not(.primary):not(.danger),
   .v20-panel button:not(.primary):not(.danger):not(.lotdesk-expense-scan-button)
 ) {
   background:#e7f1fb!important;color:#102a44!important;
   border:1px solid #b6d0e4!important;
   box-shadow:none!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] :is(.primary,.modal-foot button.primary) {
   background:linear-gradient(180deg,#05afe6,#087ac9)!important;
   color:#fff!important;border:1px solid #008fcf!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] input[type="checkbox"],
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] input[type="radio"] {
   accent-color:#048fd3!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .modal-head::before {
   background-image:url('/ld133-mylotdesk-logo-day-v183.png')!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .modal-head::after {
   background-image:url('/ld133-rpm-autoworks-day-v183.png')!important;
 }
 #modal-root .modal.ld208-expense-editor[data-ld209-theme="day"] .modal-head .close {
   background:#e7f1fb!important;color:#102a44!important;
   border:1px solid #bdd2e5!important;
 }
}
