/* ============================================================================
   select2-skin.css — the Select2 skin, application-wide.

   Ported verbatim from the ERP (public/dashboard/css/custom.css, 2026-09-19).
   The library ships a grey squared box with a default-blue highlight; style.css
   then flattens it to an underline. This restates the admin form language over
   it: white field, soft border, 10px radius, maroon focus and highlight.
   Loaded in every portal head after the vendor CSS; the accent follows the
   portal token --brand (maroon in admin, blue in the applicant portal).
   ========================================================================== */

.select2-container--default .select2-selection--single {
    background: #fff !important;
    border: 1px solid #dde3ee !important;
    border-radius: 10px !important;
    height: 38px !important;
    transition: border-color .13s ease, box-shadow .13s ease;
}
.select2-container--default .select2-selection--single:hover {
    border-color: #c3cddd !important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand, var(--ui-maroon, #a6303a)) !important;
    box-shadow: var(--focus-ring, 0 0 0 3px rgba(166, 48, 58, .12)) !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 8px 30px 8px 13px;
    line-height: 1.55;
    color: #3b4252;
    font-size: 13.5px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a93a6;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 6px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #8a93a6 transparent transparent transparent;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--brand, var(--ui-maroon, #a6303a)) transparent;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #8a93a6;
    font-weight: 700;
    margin-right: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--bad, #b3261e);
}

/* ---- Closed control: multiple (chips) ---- */
.select2-container--default .select2-selection--multiple {
    background: #fff !important;
    border: 1px solid #dde3ee !important;
    border-radius: 10px !important;
    min-height: 38px;
    padding: 2px 6px;
    transition: border-color .13s ease, box-shadow .13s ease;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--brand, var(--ui-maroon, #a6303a)) !important;
    box-shadow: var(--focus-ring, 0 0 0 3px rgba(166, 48, 58, .12)) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 4px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f6e9ea;
    border: 1px solid #ecd3d5;
    border-radius: 999px;
    color: var(--brand-deep, var(--ui-maroon-dark, #822630));
    font-size: 12.5px;
    font-weight: 600;
    padding: 2px 10px 2px 6px;
    margin: 4px 4px 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--brand, var(--ui-maroon, #a6303a));
    font-weight: 700;
    margin-right: 2px;
    border-right: 0;
    padding: 0 2px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: transparent;
    color: var(--brand-deep, var(--ui-maroon-deep, #5f1b22));
}

/* ---- Dropdown panel ---- */
.select2-dropdown {
    border: 1px solid #e3e8f2 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 38px rgba(30, 40, 70, .16) !important;
    overflow: hidden;
    margin-top: 6px;
}
.select2-dropdown--above {
    margin-top: -6px;
    box-shadow: 0 -10px 30px rgba(30, 40, 70, .14) !important;
}

/* Search box inside the panel */
.select2-container--default .select2-search--dropdown {
    padding: 10px 10px 6px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #dde3ee !important;
    border-radius: 8px !important;
    padding: 7px 12px;
    font-size: 13px;
    color: #3b4252;
    outline: none;
    transition: border-color .13s ease, box-shadow .13s ease;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand, var(--ui-maroon, #a6303a)) !important;
    box-shadow: var(--focus-ring, 0 0 0 3px rgba(166, 48, 58, .10));
}

/* Options */
.select2-results { padding: 4px 6px 6px; }
.select2-container--default .select2-results > .select2-results__options {
    max-height: 264px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2e0 transparent;
}
.select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar { width: 8px; }
.select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar-thumb {
    background: #c9d2e0; border-radius: 999px; border: 2px solid #fff;
}
.select2-container--default .select2-results__option {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #3b4252;
    margin: 1px 0;
    transition: background .1s ease;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--brand, var(--ui-maroon, #a6303a)) !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--selected {
    background: #f6e9ea;
    color: var(--brand-deep, var(--ui-maroon-dark, #822630));
    font-weight: 600;
}
.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: #b3bac7;
}
.select2-container--default .select2-results__option .select2-results__group,
.select2-container--default .select2-results__group {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a93a6;
    padding: 8px 12px 4px;
}
.select2-container--default .select2-results__message {
    color: #8a93a6;
    font-size: 12.5px;
}

/* Disabled control */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: #f4f6fa !important;
    border-color: #e5eaf3 !important;
    box-shadow: none !important;
}
