select.bs-select {
    width: 100%;
}

    select.bs-select + button.btn {
        min-height: 38px;
    }

    select.bs-select + button.btn:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    select.bs-select ~ div.dropdown-menu.show > div.inner.show {
        max-height: 225px !important;
    }

    select.bs-select:not(.is-invalid) ~ button.btn.dropdown-toggle {
        color: var(--bs-gray-800);
        background-color: var(--bs-white);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right .75rem center;
        background-size: 16px 12px;
    }

    select.bs-select ~ button.btn.dropdown-toggle::after {
        content: none !important;
    }

/* Overrides the border color of the bootstrap-select control */
.bootstrap-select.form-control {
    border: 1px solid var(--formControlBorderColor);
}

    .bootstrap-select.form-control button.dropdown-toggle:focus, select.form-control.bs-select:focus, div.bs-select button.dropdown-toggle:focus {
        outline: 0 !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, .25), /* Custom Bootstrap shadow color */
        0 2px 0 0 var(--sidebarSelectedItemBorderColor) !important; /* Solid bottom border */
    }

    .bootstrap-select.form-control.is-invalid button.dropdown-toggle:focus, select.form-control.bs-select.is-invalid:focus, div.bs-select.is-invalid button.dropdown-toggle:focus {
        outline: 0 !important;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25), /* Custom Bootstrap shadow color */
        0 2px 0 0 var(--formValidationInvalidColor) !important; /* Solid bottom border for invalid state */
    }

select.bs-select ~ button.btn.dropdown-toggle.btn-light.disabled {
    color: var(--bs-black) !important;
    background-color: var(--bs-gray-200);
    opacity: 1;
}

.fv-plugins-bootstrap5-row-invalid > .bs-select {
    /* Not the best way of handling this, but it works for now.  It removes outer border for bs-select controls that are invalid */
    border: solid 1px transparent;
}

select.bs-select .dropdown-menu li a {
    font-size: 1rem !important;
}

select.bs-select ~ button.btn.dropdown-toggle.btn-light {
    background-color: var(--bs-white);
}

.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    color: var(--bs-success);
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    margin-right: 25px;
    text-overflow: ellipsis;
    color: var(--bs-gray-800);
}

.dropdown.bootstrap-select.form-control.bs-select .no-results {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-info-rgb),var(--bs-bg-opacity)) !important;
    color: var(--bs-white);
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 3px;
    margin-top: 5px;
}

.dropdown.bootstrap-select.form-control.bs-select .bs-actionsbox {
    margin-top: 3px;
}

select.bs-select[disabled] ~ div.dropdown-menu div ul li a span.text {
    color: var(--text-disabled) !important;
}

select.bs-select[disabled] ~ div.dropdown-menu div ul li a span.check-mark {
    opacity: .5;
}

.bs-select ~ .dropdown-menu .notify {
    background-color: var(--bs-danger) !important;
    color: var(--bs-white) !important;
    border-radius: 5px;
}

button[aria-owns^="bs-select-"][data-core-auto-disabled] {
    background-color: var(--bs-bg-disabled) !important;
    border: none;
}

bootstrap-select.form-control {
    border-color: var(--bs-gray-300) !important;
}

button[aria-owns^="bs-select-"]:disabled {
    opacity: 1;
}
