/* Select2 overrides: replace the default sky-blue accent with the DAISY blue-900 theme. */

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: #d1d5db;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #1e3446;
    box-shadow: 0 0 0 1px #1e3446;
    outline: 0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1e3446;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #e9ebed;
    color: #142f3f;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #1e3446;
    border-color: #1e3446;
    color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #1e3446;
    outline: 0;
}

/* Match Select2 control height to the app's text inputs (px-3 py-2 text-sm, outline => 36px). */
.select2-container--default .select2-selection--single {
    height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 12px;
    padding-right: 28px;
    line-height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 8px;
}

.select2-container--default .select2-selection--multiple {
    min-height: 36px;
}
