/*-----------------------------------------------------------------------------*/
/*      CHECKBOX CUSTOM CSS: Disabled Behaviour                                */
/*-----------------------------------------------------------------------------*/

.new-control.new-checkbox > input:disabled ~ span.new-control-indicator {
    cursor: not-allowed;
    background-color: #f1f2f3 !important;
    color: #acb0c3;
    pointer-events: all !important;
}

.new-control.new-checkbox > input:disabled ~ span.new-control-text {
    cursor: not-allowed;
    color: #acb0c3;
    pointer-events: all !important;
}

/*-----------------------------------------------------------------------------*/
/*      SELECT2 DISABLED FIX                                                   */
/*-----------------------------------------------------------------------------*/

.comboSearch > select:disabled ~ .select2-container .select2-selection--single .select2-selection__rendered {
    cursor: not-allowed;
    color: #acb0c3;
    background-color: #f1f2f3 !important;
    pointer-events: all !important;
}

/*-----------------------------------------------------------------------------*/
/*       SELECT 2 INVALID FEEDBACK VALIDATION                                  * /
/*-----------------------------------------------------------------------------*/

/*Invalid Border and Image Style*/
.was-validated .comboSearch > select:invalid ~ .select2-container .select2-selection--single .select2-selection__rendered {
    border-color: #dc3545 !important;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e7515a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-x'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/*Invalid Border Style When Container Expanded */
.was-validated .comboSearch > select:invalid ~ .select2-container .select2-selection--single[aria-expanded=true] {
    border-color: #dc3545 !important;
}

/*Invalid Icon position FIX */
.was-validated .comboSearch > select:invalid ~ .select2-container .select2-selection--single .select2-selection__arrow {
    right: 25px !important;
}

/*Valid Border and Image Style*/
.was-validated .comboSearch > select:valid ~ .select2-container .select2-selection--single .select2-selection__rendered {
    border-color: #8dbf42 !important;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238dbf42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/*Valid Border Style When Container Expanded */
.was-validated .comboSearch > select:valid ~ .select2-container .select2-selection--single[aria-expanded=true] {
    border-color: #8dbf42 !important;
}

/*Valid Icon position FIX */
.was-validated .comboSearch > select:valid ~ .select2-container .select2-selection--single .select2-selection__arrow {
    right: 25px !important;
}

/*FIX SELECT2 INSIDE A MODAL*/
.select2-close-mask {
    z-index: 2099;
}

.select2-dropdown {
    z-index: 3051;
}
/*FIX SELECT2 INSIDE A MODAL*/
