/**
 * Copyright (c) Enalean, 2024 - 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/>.
 */

@use "pkg:@tuleap/lazybox";

.selectors-dropdown-content {
    flex-direction: row;
    padding: 0;
}

.selectors-dropdown-menu-items {
    display: flex;
    flex-direction: column;
    border-radius: var(--tlp-large-radius);
}

.selectors-dropdown-menu-item {
    &.tlp-dropdown-menu-item-disabled {
        cursor: pointer;
    }

    &:first-child {
        border-radius: var(--tlp-large-radius) var(--tlp-large-radius) 0 0;
    }

    &:last-child {
        border-radius: 0 0 var(--tlp-large-radius) var(--tlp-large-radius);
    }

    &:only-child {
        border-radius: var(--tlp-large-radius);
    }
}

.selectors-dropdown-menu-items-with-side-panel > .selectors-dropdown-menu-item {
    &:first-child {
        border-radius: var(--tlp-large-radius) 0 0 0;
    }

    &:last-child {
        border-radius: 0;
    }
}

.selectors-dropdown-side-panel {
    width: 280px;
    padding: var(--tlp-small-spacing);
    border-left: 1px solid var(--tlp-neutral-light-color);
}
