﻿/*Select2 override*/

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--classic .select2-selection--single {
    background-image: none;
    background-color: unset;
}



.select2-container--classic .select2-selection--single {
    border: 1px solid #ced4da;
    height: 31px;
}

.select2-container--classic .select2-selection--single .select2-selection__rendered {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.select2-results__option {
    font-size: .875rem;
    padding: 0 0 0 .5rem;
}


.select2-search__field {
    font-size: .875rem;
}

.select2-container .select2-selection--single .select2-selection__arrow,
.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-image: none;
    background-color: unset;
    border: none;
    width: 14px;
}

    .select2-container .select2-selection--single .select2-selection__arrow > b,
    .select2-container--classic .select2-selection--single .select2-selection__arrow > b {
        display: none;
    }

    .select2-container .select2-selection--single .select2-selection__arrow::after,
    .select2-container--classic .select2-selection--single .select2-selection__arrow::after {
        font-family: 'Font Awesome 5 Free';
        font-size: .875rem;
        font-weight: 600;
        content: "\f107";
        line-height: 2;
    }


.custom-select2.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f1f1f1;
    border: none;
    font-size: 14px;
}

.custom-select2.select2-container--default .select2-selection--multiple {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    padding: 2px 0 5px 0;
}

.custom-select2.select2-container--default .select2-selection--multiple:not([aria-expanded="true"]) {
    border: 1px solid #ced4da;
}

.custom-select2.select2-container--default .select2-selection--multiple:not([aria-expanded="false"]) {
    color: #495057;
    background-color: #fff;
    border: 1px solid #80bdff;
    outline: 0;
}

.custom-select2.select2-container--default .select2-search--inline .select2-search__field {
    margin: 0;
    margin-top: 3px;
    margin-left: 5px;
    width: 100% !important;
    font-size: .9rem;
}

.custom-select2.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-top: 0;
    color: #acacac;
}

.custom-select2.select2-container--default, .custom-select2.select2-container--default .selection, .custom-select2.custom-select2.select2-container--default .select2-selection--multiple {
    height: 100%;
}

.select2-container--default .select2-results__option[role=group] {
    padding: 6px 0;
}

.select2-container--default .select2-results__option[role=group]:not(:last-of-type) {
    border-bottom: 1px dashed #aaa;
}

.select2-container--default .select2-results__group {
    padding: 0 1rem 6px 1rem;
}

.select2-container--default .select2-results__option .select2-results__option {
    padding: 0 1rem;
}

.w-100 + .select2-container {
    width: 100% !important;
}

.select2-search__field:placeholder-shown {
    width: 100% !important;
    min-width: 200px; 
}