﻿/* Place all Select2 customizations here so that upgrading Select2 in the future is more seamless */

.select2-container .select2-selection--single {
    height: 36px;
    outline: none;
}

    .select2-container .select2-selection--single .select2-selection__rendered {
        padding-right: 40px;
    }

.select2-container .select2-selection--multiple {
    min-height: 36px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 7px;
}

.select2-dropdown {
    border: 1px solid #ccc;
    z-index: 9999999
}

.select2-results {
    padding: 2px;
}

.select2-results__option {
    padding: 3px 6px 3px 6px;
}

.select2-container .select2-selection--single .select2-container--open {
    z-index: 9999999
}

.select2-container--open .select2-dropdown--above, .select2-container--open .select2-dropdown--below {
    border-color: #4aa3df
}

.select2-search--dropdown .select2-search__field {
    padding-right: 22px;
    outline: none;
    background: url(/Scripts/select2/select2.png) no-repeat 100% -22px;
}

.nektar-form-required + .select2-container--default > .selection > .select2-selection--single {
    border-left: 2px solid #FF0000
}

.nektar-form-required + .select2-container.select2-container--focus > .selection > .select2-selection--single {
    border: 1px solid #4aa3df;
    border-left: 2px solid #FF0000
}

.nektar-form-required + .select2-container--default > .selection > .select2-selection--multiple {
    border-left: 2px solid #FF0000
}

.nektar-form-required + .select2-container.select2-container--focus > .selection > .select2-selection--multiple {
    border: 1px solid #4aa3df;
    border-left: 2px solid #FF0000
}

.nektar-form-success + .select2-container--default > .selection > .select2-selection--single {
    border-left: 2px solid #10C368
}

.nektar-form-success + .select2-container.select2-container--focus > .selection > .select2-selection--single {
    border: 1px solid #4aa3df;
    border-left: 2px solid #10C368
}

.nektar-form-success + .select2-container--default > .selection > .select2-selection--multiple {
    border-left: 2px solid #10C368
}

.nektar-form-success + .select2-container.select2-container--focus > .selection > .select2-selection--multiple {
    border: 1px solid #4aa3df;
    border-left: 2px solid #10C368
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
    width: 30px;
    border-left: 1px solid var(--primary-border-color);
}

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        top: 48%;
    }

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__arrow {
    display: none
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
    border: none
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #aaa;
    border-radius: 0;
}

    .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
        color: #999;
        margin-top: 5px;
        float: left
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        border-radius: 0;
        border: 1px solid #ccc;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        color: #ffffff;
    }

.select2-container--default.select2-container--focus > .selection > .select2-selection--single {
    border: 1px solid #4aa3df;
    outline: 0
}

.select2-container--default.select2-container--focus > .selection > .select2-selection--multiple {
    border: 1px solid #4aa3df;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
    border-top: none;
    border-color: #4aa3df;   
}

.select2-container--default .select2-search--inline .select2-search__field {
    padding-left: 5px;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 300px;
}

.select2-container--disabled {
    opacity: 0.65;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    border: 1px solid var(--primary-border-color);
    background-color: var(--control-disabled-color);
}

.select2-container--default .select2-selection--single {
    background: var(--secondary-background-color);
    border: 1px solid var(--primary-border-color);
    border-radius: 0;
}

.select2-container--default .select2-selection--multiple {
    background: var(--secondary-background-color);
    border: 1px solid var(--primary-border-color);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid var(--primary-border-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #4aa3df;
    border: none;
    color: #ffffff;
}

.select2-selection__rendered {
    color: var(--primary-text-color) !important;
}

.select2-results {
    background-color: var(--secondary-background-color);
}

.select2-search--dropdown {
    background: var(--secondary-background-color);
    border: 1px solid var(--primary-border-color);
    border-left-style: none;
    border-right-style: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--primary-border-color);
}

.select2-dropdown {
    background: var(--secondary-background-color);
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom: none;
    border-color: #4aa3df
}

