:root {
    --chery-control-height: 34px;
    --chery-control-sm-height: 31px;
    --chery-control-line-height: 32px;
    --chery-control-sm-line-height: 29px;
}

input.form-control:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not(.form-control-color),
select.form-select:not([multiple]):not([size]) {
    height: var(--chery-control-height);
    min-height: var(--chery-control-height);
}

input.form-control-sm:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not(.form-control-color),
select.form-select-sm:not([multiple]):not([size]) {
    height: var(--chery-control-sm-height);
    min-height: var(--chery-control-sm-height);
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 1px solid #d6dee8;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.8125rem;
    box-shadow: none;
    min-height: var(--chery-control-height);
}

.select2-container .select2-selection--single {
    height: var(--chery-control-height);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f2937;
    line-height: var(--chery-control-line-height);
    padding-left: 0.75rem;
    padding-right: 2rem;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: var(--chery-control-line-height);
    right: 0.35rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6b7280;
}

.select2-container--default .select2-selection--multiple {
    align-items: center;
    display: flex;
    padding: 0.125rem 0.375rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    align-items: center;
    border: 1px solid #d6dee8;
    background: #eef4fb;
    color: #1f2937;
    display: inline-flex;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0.125rem 0.25rem 0.125rem 0;
    min-height: 22px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    line-height: 1.2;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    height: 22px;
    line-height: 22px;
    margin: 0.125rem 0;
}

.select2-dropdown {
    border: 1px solid #d6dee8;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    z-index: 1060;
}

.select2-container--open{
    z-index: 1060;
}

.select2-container--open .select2-dropdown--below,
.select2-container--open .select2-dropdown--above {
    z-index: 1060;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d6dee8;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
}

.select2-results__option {
    font-size: 0.8125rem;
}

.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: #9eb7d6;
}

select.form-select-sm + .select2 .select2-selection--single,
select.form-select-sm + .select2 .select2-selection--multiple,
select.form-control-sm + .select2 .select2-selection--single,
select.form-control-sm + .select2 .select2-selection--multiple {
    min-height: var(--chery-control-sm-height);
    font-size: 0.79rem;
}

select.form-select-sm + .select2 .select2-selection--single,
select.form-control-sm + .select2 .select2-selection--single {
    height: var(--chery-control-sm-height);
}

select.form-select-sm + .select2 .select2-selection--single .select2-selection__rendered,
select.form-control-sm + .select2 .select2-selection--single .select2-selection__rendered {
    line-height: var(--chery-control-sm-line-height);
}

select.form-select-sm + .select2 .select2-selection--single .select2-selection__arrow,
select.form-control-sm + .select2 .select2-selection--single .select2-selection__arrow {
    height: var(--chery-control-sm-line-height);
}

.app-sidebar .select2-container .select2-selection--single,
.app-sidebar .select2-container .select2-selection--multiple {
    min-height: 34px;
    border-color: rgba(24, 64, 115, 0.18);
}
