/* All dropdown styling is scoped; the native select remains the form field. */
.brap-dropdown { position: relative; width: 100%; min-width: 0; font-size: 1rem; line-height: 1.5; --brap-dd-accent: #0d6efd; }
.brap-dropdown-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.brap-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; border: 1px solid #ced4da; border-radius: .375rem; background: #fff; color: #212529; font: inherit; text-align: start; cursor: pointer; }
.brap-dropdown-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brap-dropdown-arrow { flex-shrink: 0; color: #526078; }
.brap-dropdown-native.form-select-lg ~ .brap-dropdown-toggle { min-height: calc(1.5em + 1rem + 2px); padding: .5rem 1rem; font-size: 1.25rem; }
.brap-dropdown-native.form-select-sm ~ .brap-dropdown-toggle { min-height: calc(1.5em + .5rem + 2px); padding: .25rem .5rem; font-size: .875rem; }
.input-group > .brap-dropdown { flex: 1 1 0%; width: 1%; }
.dataTables_length .brap-dropdown { display: inline-block; width: auto; min-width: 4.75rem; vertical-align: middle; }
.input-group > .brap-dropdown:not(:first-child) > .brap-dropdown-toggle { border-start-start-radius: 0; border-end-start-radius: 0; }
.input-group > .brap-dropdown:not(:last-child) > .brap-dropdown-toggle { border-start-end-radius: 0; border-end-end-radius: 0; }
.brap-dropdown-toggle:focus-visible, .brap-dropdown-search:focus { outline: 2px solid var(--brap-dd-accent); outline-offset: 2px; }
.brap-dropdown.is-disabled .brap-dropdown-toggle { background: #e9ecef; color: #6c757d; cursor: not-allowed; }
.brap-dropdown-toggle[aria-invalid=true], .brap-dropdown-native.input-validation-error ~ .brap-dropdown-toggle { border-color: #dc3545; }
.brap-dropdown-popup { position: fixed; z-index: 1060; box-sizing: border-box; padding: .5rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; color: #212529; box-shadow: 0 8px 24px #172b4d26; }
.brap-dropdown-popup[hidden], .brap-dropdown-search[hidden], .brap-dropdown-status[hidden] { display: none; }
.brap-dropdown-search { box-sizing: border-box; display: block; width: 100%; margin-bottom: .5rem; padding: .4rem .65rem; border: 1px solid #ced4da; border-radius: .25rem; font: inherit; }
.brap-dropdown-list { position: relative; overflow-y: auto; overscroll-behavior: contain; }
.brap-dropdown-option, .brap-dropdown-group { padding: 7px 10px; min-height: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brap-dropdown-option { cursor: pointer; border-radius: .2rem; }
.brap-dropdown-option:hover, .brap-dropdown-option.is-active { background: #e8f1ff; color: #003d91; outline: 1px solid #90b9f4; outline-offset: -1px; }
.brap-dropdown-option[aria-selected=true] { background: var(--brap-dd-accent); color: #fff; }
.brap-dropdown-option[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.brap-dropdown-group { background: #f1f5f9; color: #475569; font-weight: 600; font-size: .875em; }
.brap-dropdown-status { padding: .5rem; color: #526078; font-size: .9em; }
.brap-dropdown-validation { margin-top: .25rem; color: #dc3545; font-size: .875em; }
.brap-dropdown-validation[hidden] { display: none; }
@media (forced-colors: active) { .brap-dropdown-option.is-active { outline: 2px solid Highlight; } .brap-dropdown-option[aria-selected=true] { border: 1px solid Highlight; } }
