.text-wrap .select2-selection__choice {
    white-space: normal !important;
}

.select2-container--small .select2-selection--single {
    background-color: #f7f7f7;
    border: 1px solid #aaa;
    border-radius: 4px;
    outline: 0;
    background-image: -webkit-linear-gradient(top, #fff 50%, #eee 100%);
    background-image: -o-linear-gradient(top, #fff 50%, #eee 100%);
    background-image: linear-gradient(to bottom, #fff 50%, #eee 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);

    min-height: 24px !important;
    margin-top: 1px;

    height: 24px !important;
    line-height: 20px !important;
/*    line-height: 1.3;*/

}

.form-group .select2-container--small .select2-selection--single  {
    min-height: 100% !important;
}

.form-group .select2-container {
    margin-top: -1px;
    height: calc(1.5em + .5rem + 2px);
    font-size: .875rem;
}

.form-group .select2-selection--single .select2-selection__arrow {
    height: calc(1.46em + .5rem + 2px) !important;
}

.form-group .select2-selection__rendered {
    height: calc(1.5em + .5rem + 2px);
    padding-top: 4px;
}

.form-group .select2-selection__choice {
    padding: 4px !important;
}

.form-group .select2-selection--multiple {
    min-height: 100% !important;
}

.form-group .select2-container--disabled {
    background-color: lightgrey;
}

.form-group .select2-container--disabled .select2-selection{
    opacity: 0.5;
    font-weight: bolder;
}

.select2-container--small .select2-selection--single:focus {
    border: 1px solid #5897fb
}

.select2-container--small .select2-selection--single .select2-selection__rendered {
    color: #444;
    height: 24px !important;
    line-height: 20px !important;
}

.select2-container--small .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 0px;
}

.select2-container--small .select2-selection--single .select2-selection__placeholder {
    color: #999
}

.select2-container--small .select2-selection--single .select2-selection__arrow {
    background-color: #ddd;
    border: none;
    border-left: 1px solid #aaa;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    height: 22px;
    position: absolute;
    top: 2px;
    right: 1px;
    width: 20px;
    background-image: -webkit-linear-gradient(top, #eee 50%, #ccc 100%);
    background-image: -o-linear-gradient(top, #eee 50%, #ccc 100%);
    background-image: linear-gradient(to bottom, #eee 50%, #ccc 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)
}

small .select2-container--small .select2-selection--single .select2-selection__rendered,
small .select2-container--small .select2-selection--single
{
    height: calc(1.5em + 0.5rem + 3.5px) !important;
    padding-top: 2px;
}


.select2-container--small .select2-selection--single .select2-selection__arrow {
    height: calc( 100% - 0.25em);
}

small .select2-container--small .select2-selection--single .select2-selection__arrow {
    /*height: calc(1.5em + 0.5rem + 1px) !important;*/
}



.select2-container--small .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0
}

.select2-container--small[dir="rtl"] .select2-selection--single .select2-selection__clear {
    float: left
}

.select2-container--small[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    border: none;
    border-right: 1px solid #aaa;
    border-radius: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    left: 1px;
    right: auto
}

.select2-container--small.select2-container--open .select2-selection--single {
    border: 1px solid #5897fb
}

.select2-container--small.select2-container--open .select2-selection--single .select2-selection__arrow {
    background: transparent;
    border: none
}

.select2-container--small.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px
}

.select2-container--small.select2-container--open.select2-container--above .select2-selection--single {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-image: -webkit-linear-gradient(top, #fff 0%, #eee 50%);
    background-image: -o-linear-gradient(top, #fff 0%, #eee 50%);
    background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)
}

.select2-container--small.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-image: -webkit-linear-gradient(top, #eee 50%, #fff 100%);
    background-image: -o-linear-gradient(top, #eee 50%, #fff 100%);
    background-image: linear-gradient(to bottom, #eee 50%, #fff 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)
}

.select2-container--small .select2-selection--multiple {
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    outline: 0;

    min-height: 24px !important;

    margin-top: 1px;
    line-height: 14px;
}

.form-input .select2-selection--multiple {
    min-height: 30px !important;
}

.form-input .select2-container .select2-selection--single .select2-selection__rendered,
.form-input .select2-container .select2-selection--single
{
    height: calc(1.5em + 0.3rem + 2px) !important;
    padding-top: 2px;
    margin-top: 0px !important;
}

.form-input .select2-container--small .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.3rem);
    margin-top: -1px !important;
}

.form-input .select2-selection__rendered {
    width: 100%;
    font-size: 12px;
}

.form-input .select2-selection__choice {
    max-width:100% !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 4px !important;
    font-size: 12px;
}

.form-input .select2-container--disabled {
    background-color: lightgrey;
}

.form-input .select2-container--disabled .selection {
    opacity: 50%;
}







.select2-container--small .select2-selection--multiple:focus {
    border: 1px solid #5897fb
}

.select2-container--small .select2-selection--multiple .select2-selection__rendered {
    list-style: none;
    margin: 0;
    padding: 0 5px;
    max-width: 100%;
    padding-left: 1.5px !important;
}

.select2-container--small .select2-selection--multiple .select2-selection__clear {
    display: none
}

.select2-container--small .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    max-width: 100%;
    padding: 0 5px 2px 5px;

    margin-top: 2px !important;
    background-color: #e9ecef !important;

    font-size: 12px;

    /*max-width: 70px;*/
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.select2-container--small .select2-selection--multiple .select2-selection__choice__remove {
    color: #888;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 2px;

    color: red !important;
}

.select2-container--small .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #555
}

.select2-container--small[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
    float: right;
    margin-left: 5px;
    margin-right: auto;

    margin-top: 2px !important;
    background-color: #e9ecef !important;
}

.select2-container--small[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: 2px;
    margin-right: auto
}

.select2-container--small.select2-container--open .select2-selection--multiple {
    border: 1px solid #5897fb
}

.select2-container--small.select2-container--open.select2-container--above .select2-selection--multiple {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0
}

.select2-container--small.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.select2-container--small .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    outline: 0
}

.select2-container--small .select2-search--inline .select2-search__field {
    outline: 0;
    box-shadow: none;
}

.select2-selection__rendered li.select2-search--inline:nth-child(1) input {
    width:100% !important;
}

.select2-container--small .select2-dropdown {
    background-color: #fff;
    border: 1px solid transparent
}

.select2-container--small .select2-dropdown--above {
    border-bottom: none
}

.select2-container--small .select2-dropdown--below {
    border-top: none
}

.select2-container--small .select2-results > .select2-results__options {
    max-height: 200px;
    overflow-y: auto
}

.select2-container--small .select2-results__option[role=group] {
    padding: 0
}

.select2-container--small .select2-results__option[aria-disabled=true] {
    color: grey
}

.select2-container--small .select2-results__option--highlighted[aria-selected] {
    background-color: #3875d7;
    color: #fff
}

.select2-container--small .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px
}

.select2-container--small.select2-container--open .select2-dropdown {
    border-color: #5897fb
}

.sort-selected .select2-selection__rendered li:nth-child(1) {
    font-weight: bold;
}

.select2-results__option {
    padding: 3px !important;
    font-size: 12px;
}

.select2-results__option[aria-selected='true']{
    background-color: #a3b4d1;
}

fieldset:disabled .select2-container {
    pointer-events: none;
    opacity: 0.75;
}