.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
        color 0.2s ease;
}

.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: #0f172a;
    line-height: 1.4;
    padding-left: 0;
    padding-right: 1.5rem;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #64748b;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.8rem;
}

.select2-container .select2-selection--multiple {
    padding: 0.35rem 0.5rem 0.2rem;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    margin-top: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    padding: 0.2rem 0.65rem;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: inherit;
    margin-right: 0.35rem;
    border-right: 0;
}

.select2-container .select2-search--inline .select2-search__field,
.select2-container .select2-search--dropdown .select2-search__field {
    border: 0;
    outline: 0;
}

.select2-dropdown {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.9rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.select2-results__option {
    padding: 0.65rem 0.9rem;
}

.select2-results__option--highlighted.select2-results__option--selectable {
    background: #1d4ed8;
    color: #ffffff;
}

.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: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

html[data-bs-theme="dark"] .select2-container .select2-selection--single,
html[data-bs-theme="dark"] .select2-container .select2-selection--multiple,
.dark-version .select2-container .select2-selection--single,
.dark-version .select2-container .select2-selection--multiple {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] .select2-container .select2-selection--single .select2-selection__rendered,
html[data-bs-theme="dark"] .select2-container .select2-selection--multiple .select2-selection__rendered,
html[data-bs-theme="dark"] .select2-container .select2-search__field,
.dark-version .select2-container .select2-selection--single .select2-selection__rendered,
.dark-version .select2-container .select2-selection--multiple .select2-selection__rendered,
.dark-version .select2-container .select2-search__field {
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .select2-container .select2-selection--single .select2-selection__placeholder,
.dark-version .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .select2-dropdown,
.dark-version .select2-dropdown {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

html[data-bs-theme="dark"] .select2-results__option,
.dark-version .select2-results__option {
    color: #e2e8f0;
}

html[data-bs-theme="dark"] .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted),
.dark-version .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background: rgba(148, 163, 184, 0.12);
}
