/**
 * Gedhoru admin base form controls (django-unfold).
 *
 * Unfold styles model fields via formfield_for_*; custom ModelChoiceField and
 * plain <select> elements need explicit html.dark rules. color-scheme: dark is
 * required for native option lists in Chromium/WebKit.
 */
html.dark #content select {
    color-scheme: dark;
    background-color: oklch(0.21 0.034 264.665);
    color: oklch(0.872 0.01 258.338);
    border: 1px solid oklch(0.373 0.034 259.733);
    border-radius: 6px;
    box-sizing: border-box;
}

html.dark #content select option,
html.dark #content select optgroup {
    background-color: oklch(0.21 0.034 264.665);
    color: oklch(0.872 0.01 258.338);
}

/*
 * Do not add global borders to text/search inputs. Unfold changelist search,
 * command palette, and sidebar search use a bordered outer wrapper with a
 * borderless inner input; a global border rule creates a double-box effect.
 * Custom Gedhoru inputs (property location search, OSM query) use Unfold
 * utility classes in templates plus page-scoped CSS in property_location_panel.css
 * and location_change_form.css.
 */

#content select:not([class*="border-base"]) {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    box-sizing: border-box;
}
