/* STEP 77 — Native dropdown readability (all app pages and in-app dialogs)
   Keep the existing navy SELECT fields, but ensure their OS popup options
   use light text on a solid dark navy background. The claims editor formerly
   forced near-black option text (#101e2c), making its list unreadable. */

/* In Chrome / Edge / Firefox, color-scheme tells the native dropdown popup
   to use the dark system palette. It does not replace the existing form skin. */
html body select {
  color-scheme: dark;
}

/* Important: make the option background explicit as well as the text color.
   This prevents black-on-navy lists (including long sold-vehicle lists). */
html body select option,
html body select optgroup {
  background-color: #102d47 !important;
  color: #f5fbff !important;
  opacity: 1;
}
html body select optgroup {
  background-color: #08243b !important;
  color: #8cdefb !important;
  font-weight: 800;
}
html body select option:checked {
  background-color: #176fa9 !important;
  color: #ffffff !important;
}
html body select option:disabled {
  color: #b1c7d8 !important;
  background-color: #17364f !important;
}

/* Honor OS high-contrast settings without imposing branded colors. */
@media (forced-colors: active) {
  html body select,
  html body select option,
  html body select optgroup,
  html body select option:checked,
  html body select option:disabled {
    forced-color-adjust: auto;
    color: CanvasText !important;
    background-color: Canvas !important;
  }
}
