// Copyright (c) 2023-2024 FlyByWire Simulations
// SPDX-License-Identifier: GPL-3.0

@import "../../Common/definitions";

$display-mfd-dark-grey: rgb(128, 128, 128);
$display-light-grey: gray;

.mfd-dropdown-container {
    position: relative;
}

.mfd-dropdown-outer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: $display-mfd-dark-grey;
    border: 2px outset $display-light-grey;
}

.mfd-dropdown-outer.inactive {
    background-color: $display-background;
    border: 2px outset transparent !important;
}

.mfd-dropdown-outer:hover {
    border-color: $display-cyan;
}

.mfd-dropdown-inner {
    background-color: $display-background;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.mfd-dropdown-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
}

.mfd-dropdown-arrow.inactive {
    visibility: hidden;
}

.mfd-dropdown-menu::-webkit-scrollbar {
    width: 20px;
}

.mfd-dropdown-menu::-webkit-scrollbar-track {
    background: $display-mfd-dark-grey;
}

.mfd-dropdown-menu::-webkit-scrollbar-thumb {
    background: $display-light-grey;
}

.mfd-dropdown-menu {
    background-color: $display-mfd-dark-grey;
    min-width: 100%;
    max-width: 200%;
    position: absolute;
    z-index: 60;
    overflow: auto;
    max-height: 100px;
    display: none;
    overflow-x: hidden;
    border: 2px outset $display-light-grey;
}

.mfd-dropdown-menu-element {
    color: $display-white;
    font-size: 20px;
    padding: 12px 16px;
    display: block;
    border: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    padding: 5px 16px;
}

.mfd-dropdown-menu-element:hover {
    border: 3px solid $display-cyan;
}

.mfd-dropdown-menu-element.disabled {
    color: $display-grey;
}
