/*
 * ReportIT Searchable Dropdown V33 Stable
 * Tanpa ikon, panah, centang, dan animasi.
 */

.ritv33-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: .001 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.ritv33-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 120px;
    min-height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    color: #495057;
    font: inherit;
    line-height: 1.5;
    text-align: left;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    outline: 0;
    box-shadow: none;
    cursor: text;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ritv33-control:hover {
    border-color: #9ea8b2;
}

.ritv33-control:focus,
.ritv33-control-open {
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .16);
}

.ritv33-value {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ritv33-placeholder .ritv33-value {
    color: #6c757d;
}

.ritv33-disabled {
    color: #6c757d;
    background: #e9ecef;
    cursor: not-allowed;
}

.ritv33-hidden {
    display: none !important;
}

.ritv33-invalid,
.ritv33-control.is-invalid {
    border-color: #dc3545;
}

.ritv33-control.is-valid {
    border-color: #28a745;
}

.ritv33-popup {
    position: fixed;
    z-index: 25000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-width: calc(100vw - 16px);
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .35rem;
    box-shadow: 0 8px 22px rgba(31, 45, 61, .20);
}

.ritv33-popup-open {
    display: flex;
}

.ritv33-search {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 40px;
    margin: 10px;
    padding: .375rem .75rem;
    color: #495057;
    font: inherit;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #aeb8c2;
    border-radius: .25rem;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.ritv33-search:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 .18rem rgba(0, 123, 255, .14);
}

.ritv33-list {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 310px;
    padding: 5px;
    border-top: 1px solid #e9ecef;
    overscroll-behavior: contain;
}

.ritv33-option {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    color: #343a40;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: .25rem;
    outline: 0;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.ritv33-option:hover,
.ritv33-active {
    color: #0b4f95;
    background: #eaf4ff;
}

.ritv33-selected {
    color: #0056b3;
    font-weight: 600;
    background: #f1f8ff;
}

.ritv33-option-disabled {
    color: #adb5bd;
    background: transparent;
    cursor: not-allowed;
}

.ritv33-group {
    padding: 9px 10px 5px;
    color: #6c757d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ritv33-empty {
    padding: 18px;
    color: #6c757d;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.input-group > .ritv33-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.form-inline .ritv33-control,
.dataTables_length .ritv33-control {
    width: auto;
    min-width: 88px;
}

.dataTables_length .ritv33-control {
    min-height: 31px;
    padding: .2rem .5rem;
}

/*
 * Paksa tidak ada ikon dari tema aplikasi maupun pseudo-element.
 */
.ritv33-control::before,
.ritv33-control::after,
.ritv33-search::before,
.ritv33-search::after,
.ritv33-option::before,
.ritv33-option::after,
.ritv33-popup::before,
.ritv33-popup::after {
    display: none !important;
    content: none !important;
}

.ritv33-search::-webkit-search-cancel-button,
.ritv33-search::-webkit-search-decoration,
.ritv33-search::-webkit-search-results-button,
.ritv33-search::-webkit-search-results-decoration {
    display: none !important;
    -webkit-appearance: none !important;
}

@media (max-width: 575.98px) {
    .ritv33-popup {
        max-width: calc(100vw - 12px);
    }

    .ritv33-list {
        max-height: 45vh;
    }

    .ritv33-control {
        min-height: 42px;
    }
}
