/* Select2 integrado al sistema SART: misma altura, radios y estados que los formularios. */
.select2-container {
    width: 100% !important;
    font-family: inherit;
    font-size: .9375rem;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

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

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

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #7890ad transparent transparent transparent;
    border-width: 5px 4px 0;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.select2-container--default .select2-dropdown {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(36, 50, 74, .16);
    overflow: hidden;
    z-index: 1080;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
    background: #f8fafc;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    min-height: 34px;
    padding: 6px 9px;
    outline: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.select2-container--default .select2-results__option {
    padding: 9px 12px;
    color: #334155;
}

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

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #dbeafe;
    color: #1e40af;
}

.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
    background: #bfdbfe;
    color: #1e3a8a;
}

.sart-modal .select2-container,
.sart-component-card .select2-container {
    min-width: 0;
}

/* Cuando existe prepend/append, Select2 ocupa el espacio restante y comparte el borde. */
.input-group > .select2-container,
.sart-control-wrap > .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}

.input-group > .select2-container .select2-selection--single,
.sart-control-wrap > .select2-container .select2-selection--single {
    border-radius: 0;
}

.input-group > .input-group-prepend + .select2-container .select2-selection--single,
.sart-control-wrap.is-select > .sart-control-icon + .select2-container .select2-selection--single {
    border-left-color: #dce4ef;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .select2-container:last-child .select2-selection--single,
.sart-control-wrap.is-select > .select2-container .select2-selection--single {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.sart-control-wrap.is-select:after {
    display: none;
}

.sart-control-wrap.is-select .select2-container--default .select2-selection--single {
    height: 40px;
    border-color: #dce4ef;
}

.sart-control-wrap.is-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.sart-control-wrap.is-select:focus-within .select2-container--default .select2-selection--single {
    border-color: #86a8e7;
    box-shadow: 0 0 0 3px rgba(79,125,213,.12);
}

.input-group > .input-group-prepend + .select2-container .select2-selection--single,
.input-group > .select2-container + .input-group-append .input-group-text {
    border-left-width: 0;
}

.input-group > .input-group-prepend .input-group-text,
.input-group > .input-group-append .input-group-text {
    z-index: 1;
}

.input-group > .input-group-prepend .input-group-text {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .input-group-append .input-group-text {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sart-component-card .select2-container--default .select2-selection--single {
    height: 40px;
    border-radius: 6px;
}

.sart-component-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.sart-component-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container--disabled .select2-selection--single {
    background: #f1f5f9;
    color: #94a3b8;
}

@media (max-width: 575.98px) {
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: .875rem;
    }
}
