﻿.select2-container .select2-selection--single .select2-selection__clear {
    position: absolute !important;
}
.select2-group { display: table; }

.select2-group > .select2-container {
    display: table;
    table-layout: fixed;
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 0;
}

.select2-group .select2-selection__rendered, 
.select2-group .form-control:first-child, 
.select2-group-addon:first-child, 
.select2-group-btn:first-child>.btn, 
.select2-group-btn:first-child>.btn-group>.btn, 
.select2-group-btn:first-child>.dropdown-toggle, 
.select2-group-btn:last-child>.btn-group:not(:last-child)>.btn, 
.select2-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-group .form-control, 
.select2-group .input-group-addon, 
.input-group-btn,  
.select2-group .input-group-prepend, 
.select2-group > .input-group-prepend > .input-group-text, 
.select2-group > .input-group-append, 
.select2-group > .input-group-append > .input-group-text {
    display: table-cell;
    vertical-align: top;
}

.select2-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-group > .form-control:not(:first-child) { 
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.select2-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container:last-child > .selection > .select2-selection, 
.select2-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container:last-child > .selection > .select2-selection.form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

/*.select2-group > .select2-container--default .select2-selection--single .select2-selection__rendered {
    border-radius: 0;
}*/

/*.select2-group > .select2-container--default .select2-selection--multiple, .select2-group > .select2-container--default .select2-selection--single {
   border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}*/

select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: var(--bs-light);
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}