/* Application-wide finishing rules; no layout changes or print overrides. */
@media screen {
 html[data-elmo-theme="dark"] :is(.elmo-theme-content,.elmo-popup-body,.page-content,.content-area) { background-color:var(--elmo-bg); color:var(--elmo-text); }
 html[data-elmo-theme="dark"] .page-header-row { background-color:var(--elmo-raised); }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(input:not([type=button]):not([type=submit]):not([type=reset]):not([type=image]):not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) { background-color:var(--elmo-input)!important; color:var(--elmo-text)!important; border-color:var(--elmo-border)!important; color-scheme:dark; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(input,select,textarea):focus-visible { outline:2px solid var(--elmo-link); outline-offset:1px; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) ::placeholder { color:#a4b4c5; opacity:1; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(input[type=checkbox],input[type=radio]) { accent-color:#00a4d3; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(h1,h2,h3,h4) { color:var(--elmo-text); }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) a:not([class]) { color:var(--elmo-link); }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(dialog,.RadWindow,.rwContent) { background:var(--elmo-surface); color:var(--elmo-text); border-color:var(--elmo-border)!important; }
 html[data-elmo-theme="dark"] dialog::backdrop { background:rgba(0,0,0,.65); }
 html[data-elmo-theme="dark"] :is(.costs-chart,.analysis-chart) svg path[stroke="white"] { stroke:var(--elmo-surface); }
 html[data-elmo-theme="dark"] .costs-chart-legend { color:var(--elmo-text); }
 /* Telerik controls remain in legacy pages, including the login fields. */
 html[data-elmo-theme="dark"] :is(.RadCalendar,.RadCalendarMonthView,.RadCalendarTimeView,.RadComboBoxDropDown,.RadWindow,.RadMenu,.RadGrid) { background-color:var(--elmo-surface)!important; color:var(--elmo-text)!important; border-color:var(--elmo-border)!important; }
 html[data-elmo-theme="dark"] :is(.RadCalendar,.RadCalendarMonthView,.RadCalendarTimeView,.RadComboBoxDropDown,.RadGrid) :is(td,th,a,.rcTitlebar,.rcMain,.rcRow,.rgRow,.rgAltRow,.rgHeader,.rgPager,.rgFooter,.rgCommandRow,.rcbItem,.rcbHeader,.rcbFooter) { background-color:var(--elmo-surface)!important; background-image:none!important; color:var(--elmo-text)!important; border-color:var(--elmo-border)!important; }
 html[data-elmo-theme="dark"] :is(.RadCalendar,.RadCalendarMonthView,.RadCalendarTimeView,.RadComboBoxDropDown,.RadGrid) :is(.rcSelected,.rcHover,.rcbHovered,.rcbSelected,.rgSelectedRow,.rgHoveredRow) { background-color:var(--elmo-hover)!important; color:var(--elmo-link)!important; }
 html[data-elmo-theme="dark"] :is(.RadInput,.RadComboBox,.RadPicker) :is(input,td,.rcbInputCell,.rcbArrowCell,.riTextBox) { background-color:var(--elmo-input)!important; background-image:none!important; color:var(--elmo-text)!important; border-color:var(--elmo-border)!important; }
 html[data-elmo-theme="dark"] :is(.RadButtonWhite,.RadButtonLightGray) { background-color:var(--elmo-raised)!important; color:var(--elmo-text)!important; border-color:var(--elmo-border)!important; }
 html[data-elmo-theme="dark"] .RadButton :is(.rbDecorated,.rbPrimaryIcon,.rbText) { color:inherit; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [bgcolor="white"],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [bgcolor="#ffffff" i] { background-color:var(--elmo-surface)!important; }

 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#333333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #333333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#444" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #444" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#444444" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #444444" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#555" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #555" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#555555" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #555555" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#222222" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #222222" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#222" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #222" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:black" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: black" i] { color:var(--elmo-text)!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#666" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #666" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#666666" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #666666" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#777" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #777" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#777777" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #777777" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#888" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #888" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#888888" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #888888" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:gray" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: gray" i] { color:var(--elmo-muted)!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#9c342c" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #9c342c" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#96352d" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #96352d" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#bb3333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #bb3333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#b33" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #b33" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#aa3333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #aa3333" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#a33" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #a33" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:red" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: red" i] { color:#ffb9c1!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#0082a7" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #0082a7" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#007fa8" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #007fa8" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color:#00a4d3" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="color: #00a4d3" i] { color:var(--elmo-link)!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#fff" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #fff" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#fff" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #fff" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:white" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: white" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:white" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: white" i] { background-color:var(--elmo-surface)!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#f7f7f7" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #f7f7f7" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#f7f7f7" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #f7f7f7" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#f5f5f5" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #f5f5f5" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#f5f5f5" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #f5f5f5" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#f3f3f3" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #f3f3f3" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#f3f3f3" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #f3f3f3" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#f2f2f2" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #f2f2f2" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#f2f2f2" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #f2f2f2" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#eee" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #eee" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#eee" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #eee" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background:#e9e9e9" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background: #e9e9e9" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color:#e9e9e9" i],
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) [style*="background-color: #e9e9e9" i] { background-color:var(--elmo-raised)!important; }

 html[data-elmo-theme="dark"] .content-background { background-color:var(--elmo-bg); }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(.audit-button,.button-primary,.client-button-primary,.clients-button,.clock-button,.cost-entry-button,.costs-button,.crew-button-primary,.crew-flight-button,.crew-ot-save,.directory-button,.documents-button,.event-button-primary,.event-tags-button-primary,.inventory-button-primary,.labor-button,.new-event-button,.notes-button,.profile-button-primary,.schedule-button,.vendor-button-primary,.vendors-button,.venue-button-primary,.venues-button) { background-color:#007a9d!important; border-color:#009fc5!important; color:#fff!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(.audit-button,.client-button-primary,.clients-button,.clock-button,.cost-entry-button,.costs-button,.crew-button-primary,.crew-flight-button,.crew-ot-save,.directory-button,.documents-button,.event-button-primary,.event-tags-button-primary,.inventory-button-primary,.labor-button,.new-event-button,.notes-button,.profile-button-primary,.schedule-button,.vendor-button-primary,.vendors-button,.venue-button-primary,.venues-button):hover { background-color:#006780!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(.costs-secondary,.cost-entry-secondary,.crew-flight-secondary,.labor-secondary,.profile-button-secondary,.client-button-secondary,.vendor-button-secondary,.venue-button-secondary,.event-tags-button-secondary,.inventory-button-secondary,.notes-button-secondary,.documents-button-secondary) { background-color:#423824!important; border-color:#b79a60!important; color:#ffe2aa!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) .notes-button-danger { background-color:#802f3c!important; border-color:#b76a78!important; color:#fff!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(.crew-status-confirmed,.profile-status-active,.cert-status-current,.status-active) { background-color:#163d31!important; color:#9fe6bf!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(.crew-hotel-missing,.crew-booking-tag.crew-hotel-missing,.cert-status-expired,.inventory-conflict) { background-color:#42262e!important; color:#ffb9c1!important; }
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) :is(.crew-status-offered,.cert-status-soon) { background-color:#423824!important; color:#ffe2aa!important; }
}

/* Asset edit actions sit directly on the page, as in light mode. */
@media screen {
 html[data-elmo-theme="dark"] :is(.elmo-content-viewport,.elmo-theme-content) .asset-edit-actions { background:transparent!important; }
}
