/* ========================================
   Form Components
   ======================================== */

/* Checkbox / Radio */
.form-check-input {
    border: 2px solid #cbd5e1;
}
.form-check-input:checked {
    background-color: var(--rdhub-primary);
    border-color: var(--rdhub-primary);
}
.form-check-input:focus {
    box-shadow: none;
    border-color: var(--rdhub-primary);
}

/* Input group */
.input-group .form-control:focus {
    z-index: 3;
}

/* Switch */
.form-switch .form-check-input:checked {
    background-color: var(--rdhub-primary);
    border-color: var(--rdhub-primary);
}

/* Validation */
.invalid-feedback {
    font-size: 0.75rem;
    color: var(--rdhub-red);
}
.valid-feedback {
    font-size: 0.75rem;
    color: var(--rdhub-green);
}

/* Disabled */
.form-control:disabled,
.form-control[readonly] {
    background-color: #f8fafc;
    color: #94a3b8;
}

/* Search input */
.rdhub-search-input {
    border: 2px solid #e2e8f0;
    padding-right: 2.25rem;
}
.rdhub-search-input:focus {
    border-color: var(--rdhub-primary);
    box-shadow: none;
}

/* ========================================
   Select2 Custom Styles
   ======================================== */

/* Container */
.select2-container {
    width: 100% !important;
}

/* Main selection box */
.select2-container--default .select2-selection--single {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rdhub-text-primary);
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 2px solid #e2e8f0;
    border-radius: 0 !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: auto;
}


/* Remove default arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .75rem + 4px);
    right: .75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b 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;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--rdhub-primary);
    box-shadow: none;
    outline: 0;
}

/* Selected value */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--rdhub-text-primary);
    line-height: 1.5;
    padding-left: 0;
    padding-right: 20px;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

/* Dropdown */
.select2-container--default .select2-dropdown {
    border: 2px solid #e2e8f0;
    border-radius: 0 !important;
    background-color: var(--bs-body-bg);
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 200px;
    overflow-y: auto;
}

/* Search box in dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #e2e8f0;
    border-radius: 0 !important;
    padding: .375rem .75rem;
    font-size: 0.875rem;
    color: var(--rdhub-text-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--rdhub-primary);
    outline: 0;
}

/* Options */
.select2-container--default .select2-results__option {
    padding: .375rem .75rem;
    font-size: 0.875rem;
    color: var(--rdhub-text-primary);
}

/* Highlighted option */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--rdhub-primary-light);
    color: var(--rdhub-primary);
}

/* Selected option */
.select2-container--default .select2-results__option--selected {
    background-color: #bfdfff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #bfdfff;
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Invalid state (when used with Bootstrap validation) */
.is-invalid + .select2-container .select2-selection--single {
    border-color: var(--rdhub-red);
}

/* Multi-select styles */
.select2-container--default .select2-selection--multiple {
    display: block;
    width: 100%;
    padding: .1875rem .75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rdhub-text-primary);
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 2px solid #e2e8f0;
    border-radius: 0 !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    min-height: calc(1.5em + .75rem + 4px);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--rdhub-primary);
    box-shadow: none;
    outline: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--rdhub-primary);
    border: none;
    border-radius: 0 !important;
    color: #fff;
    margin-top: .1875rem;
    margin-right: .375rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 8px;
    padding-right: 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-right: 1px solid #aaa;
    color: #999;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    padding: 0 4px;
    position: absolute;
    left: 0;
    top: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background-color: #005ca5;
    color: #333;
    outline: none;
}

.SumoSelect .select-all {
    height: auto !important;
}


.SumoSelect>.CaptionCont>label {
    display: none !important;
}


.SumoSelect>.CaptionCont>span {
    color: #000 !important;
    
}

.SumoSelect>.CaptionCont>span.placeholder {
    background-color: white !important;
    font-style: normal !important;
    opacity: 1 !important;
}

.SumoSelect>.CaptionCont {
    border:2px solid #e2e8f0 !important;
}
