﻿/* DROPDOWN MENU */
.dropdown-button {
    border-radius: 3px;
    cursor: pointer;
    padding: 3px 5px;
    color: var(--font-primary);
}

    .dropdown-button:hover {
        background: #f7f7f7;
    }

.dropdown-menu-parent {
    position: relative;
}

.dropdown-menu {
    display: none;
    min-width: 120px;
    background-color: #fff;
    border: 1px solid var(--dark-gray);
    padding: 3px 0;
    position: absolute;
    top: 100%;
    margin: 4px 0;
    border-radius: 5px;
    z-index: 999;
}

    .dropdown-menu.right {
        right: 0;
    }
    .dropdown-menu.top {
        top: initial;
        bottom: 18px;
    }

    .dropdown-menu.viewport-scroll,
    .dropdown-submenu.viewport-scroll {
        overflow-y: auto;
    }

.dropdown-menu-item {
    color: var(--font-primary);
    padding: 4px 10px;
    cursor: pointer;
    display: block;
    margin: 0;
    text-decoration: none;
    font-size: .9rem;
    white-space: nowrap;
    text-align: left;
    text-transform: initial;
}

    .dropdown-menu-item.has-new-tab-button {
        position: relative;
        padding-right: 38px;
    }

    .dropdown-menu-new-tab {
        align-items: center;
        border-radius: 3px;
        border: 1px solid var(--light-gray);
        color: var(--dark-gray);
        cursor: pointer;
        display: inline-flex;
        height: 22px;
        justify-content: center;
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
    }

    .dropdown-menu-new-tab i {
        position: static;
    }

    .dropdown-menu-new-tab:hover,
    .dropdown-menu-new-tab:focus {
        background-color: var(--gray);
        color: var(--font-primary);
    }

    .dropdown-menu-item:hover {
        background-color: rgb(241, 241, 241);
    }

    .dropdown-menu-item.danger:hover {
        background-color: var(--red);
        color: white;
    }

    .dropdown-menu-item.admin:hover {
        background-color: var(--light-yellow);
        color: black;
    }

a.dropdown-menu-item, a:visited.dropdown-menu-item {
    color: var(--font-primary);
}

.dropdown-divider {
    height: .5px;
    margin: 2px 0;
    background-color: var(--gray);
}

.dropdown-section-label {
    color: var(--font-primary);
    text-transform: uppercase;
    font-weight: bold;
    font-size: .9em;
    text-align: center;
    margin: 0 0 3px;
}

.dropdown-submenu-parent {
    position: relative;
}

    .dropdown-submenu-parent:hover > .dropdown-submenu {
        display: block;
    }

.dropdown-submenu {
    display: none;
    min-width: 120px;
    background-color: #fff;
    border: 1px solid var(--dark-gray);
    padding: 3px 0;
    position: absolute;
    left: 100%;
    top: -7px;
    margin: 4px 0;
    border-radius: 5px;
    z-index: 9999;
    max-height: 300px;
    overflow: auto;
/*    border-top-left-radius: 0;*/
}

    .dropdown-submenu.left {
        left: initial;
        right: 100%;
    }

    .dropdown-submenu.top {
        /*transform: translateY(-100%);*/
        top: initial;
        bottom: -7px;
    }

.dropdown-submenu-parent i {
    position: absolute;
    right: 5px;
}

.dropdown-submenu-parent::after {
    font-family: "Font Awesome 5 Free";
    content: "\f0da";
    right: 5px;
    position: absolute;
    color: var(--dark-gray);
    font-weight: 900;
}

.dropdown-menu-item.disabled {
    color: var(--gray);
    cursor: default;
}