/* =========================================================
   NhaWow Select2 unified appearance
   - Giữ kích thước riêng của từng màn hình.
   - Đồng bộ trạng thái focus, dropdown, tìm kiếm và clear.
   - Khi đã chọn: chữ xanh, dấu X thay cho mũi tên.
   ========================================================= */
.select2-container {
    max-width: 100%;
}

.select2-container--default .select2-selection--single {
    position: relative;
    border-color: #dbe3ee !important;
    background: #fff !important;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container--default.hn-select2-has-value .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered {
    color: #2563eb !important;
    padding-right: 30px !important;
    font-weight: 650;
}

.select2-container--default.hn-select2-has-value .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__arrow {
    display: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--single .hn-select2-clear-fallback {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #64748b !important;
    background: transparent !important;
    font: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover,
.select2-container--default .select2-selection--single .hn-select2-clear-fallback:hover,
.select2-container--default .select2-selection--single .hn-select2-clear-fallback:focus-visible {
    color: #ef4444 !important;
    background: #fff1f2 !important;
    outline: none !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #e5e7eb !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

.select2-container--default.select2-container--disabled .select2-selection__rendered {
    color: #94a3b8 !important;
}

.select2-dropdown {
    overflow: hidden;
    border: 1px solid #dbe3ee !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .15) !important;
    z-index: 300500 !important;
}

.select2-search--dropdown {
    display: block !important;
    padding: 10px !important;
    border-bottom: 1px solid #eef2f7 !important;
    background: #fff !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    min-height: 38px;
    padding: 8px 10px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
}

.select2-results__options {
    max-height: 280px !important;
}

.select2-container--default .select2-results__option {
    padding: 9px 13px !important;
    color: #334155;
    font-size: 14px;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    color: #1d4ed8 !important;
    background: #eff6ff !important;
    font-weight: 700;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #fff !important;
    background: #2563eb !important;
}

.select2-container--open {
    z-index: 300500 !important;
}

@media (max-width: 767.98px) {
    .select2-container--default .select2-search--dropdown .select2-search__field {
        font-size: 16px !important;
    }
}
