/* Apply Bootstrap form-control styling to Select2 elements */
.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}

.select2-selection .select2-selection--multiple{
    padding:0.5rem 1rem !important;
}
.select2-selection__choice__display{
    padding-left:14px !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #495057;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .2rem;
    padding: 0 .4rem;
    margin: .2rem .2rem 0 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #6c757d;
    margin-right: 0.4rem;
}

/* Make the dropdown search field match form-control */
.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* Hover and focus state for form-control */
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover,
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
