/* --- app/static/css/select_field.css --- */

.airworthiness-target-select .dropdown {
    min-width: 220px;
}

.airworthiness-target-select .airworthiness-target-button,
.airworthiness-target-select .airworthiness-target-button:focus,
.airworthiness-target-select .airworthiness-target-button.show {
    background-color: #212529;
    color: #e5ebf0;
    border-color: var(--bs-border-color);
    box-shadow: none;
}

.airworthiness-target-select .airworthiness-target-menu {
    width: 100%;
    min-width: max-content;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem;
    background-color: #272727;
    border-color: var(--bs-border-color);
    z-index: 1100;
}

.airworthiness-target-select .airworthiness-component-row {
    display: flex;
    align-items: center;
}

.airworthiness-target-select .airworthiness-target-option {
    padding: 0.25rem 0.5rem;
    background-color: transparent;
    color: #e5ebf0;
    white-space: nowrap;
}

.airworthiness-target-select .airworthiness-target-option:hover,
.airworthiness-target-select .airworthiness-target-option:focus,
.airworthiness-target-select .airworthiness-target-selected {
    background-color: #454545;
    color: #e5ebf0;
}

.airworthiness-target-select .airworthiness-component-toggle {
    width: 22px;
    flex: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.airworthiness-target-select .airworthiness-component-toggle::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #e5ebf0;
    transition: transform 0.15s ease;
}

.airworthiness-target-select .airworthiness-component-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.airworthiness-target-select .airworthiness-component-toggle:hover,
.airworthiness-target-select .airworthiness-component-toggle:focus {
    background: transparent;
    color: #e5ebf0;
    outline: none;
    box-shadow: none;
}

.airworthiness-target-select .airworthiness-subcomponent {
    padding-left: 2rem;
}

.airworthiness-target-select .airworthiness-group-child {
    padding-left: 1rem;
}

.airworthiness-target-select .airworthiness-group-subcomponent {
    padding-left: 3.5rem;
}