.select2-container { max-width: 100%; }
.select2-container .select2-selection--single { min-height: 38px; height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-right: 26px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.select2-container .select2-selection--multiple { min-height: 38px; }
.select2-container .select2-search--inline .select2-search__field { max-width: 100%; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { white-space: normal; overflow-wrap: anywhere; max-width: calc(100% - 10px); }
.select2-dropdown .select2-search__field { width: 100%; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: #f5a623; color: #17212b; }
.location-search .select2-container .select2-selection--single { border: 1px solid #d8dce2; border-radius: 12px; min-height: 48px; }
.location-search .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; }
.location-search .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

/* Table toolbar selects are compact controls, not full-width form fields. */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}
.dataTables_wrapper .dataTables_length .select2-container {
    width: 90px !important;
    flex: 0 0 90px;
}
.dataTables_wrapper .dataTables_length select { width: auto; }
.dataTables_wrapper .dataTables_filter input {
    width: 180px;
    max-width: 100%;
    margin-left: 0 !important;
}
