/**
 * Copyright (c) Enalean, 2022-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.list-picker-dropdown {
    display: none;
    position: absolute;
    z-index: 2002;
    box-sizing: border-box;
    flex-direction: column;
    padding: 0;
    border-right: 1px solid var(--tlp-main-color);
    border-bottom: 1px solid var(--tlp-main-color);
    border-left: 1px solid var(--tlp-main-color);
    border-radius: 0 0 var(--tlp-medium-radius) var(--tlp-medium-radius);
    background-color: var(--tlp-white-color);
    box-shadow: var(--tlp-flyover-shadow);

    &.list-picker-dropdown-over-modal {
        z-index: 2007;
    }

    &.list-picker-dropdown-shown {
        display: flex;
    }

    &.list-picker-dropdown-above {
        border-top: 1px solid var(--tlp-main-color);
        border-bottom: unset;
        border-radius: var(--tlp-medium-radius) var(--tlp-medium-radius) 0 0;
        box-shadow: var(--tlp-flyover-shadow-above);
    }
}

.list-picker-empty-dropdown-state {
    padding: var(--tlp-form-element-padding-horizontal);
    color: var(--tlp-dimmed-color);
    font-size: var(--tlp-form-element-small-font-size);
    line-height: normal;
}

.list-picker-dropdown-values-list {
    max-height: 250px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.list-picker-group-label {
    padding: 6px var(--tlp-form-element-padding-horizontal);
    color: var(--tlp-dimmed-color);
    font-size: var(--tlp-form-element-small-font-size);
    font-weight: 600;
    line-height: 30px;
    text-transform: uppercase;
}

.list-picker-dropdown-option-group {
    margin: 0;
    padding: 0;
    line-height: normal;
    list-style: none;
    user-select: none;
}
