﻿/* Style for the container */
.dropdown {
    position: relative;
    /*width: 200px;*/
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bs-gray-100);
    min-width: 215px;
    border: 1px solid rgba(var(--bs-dark-rgb), .7);
    z-index: 1;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0px 0.5rem 1.3rem 0px rgb(0 0 0 / 20%) !important;
}

/* Links inside the dropdown */
.dropdown-item {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

    .dropdown-item:focus, .dropdown-item:hover {
        color: #1e2125;
        background-color: var(--bs-gray-200);
    }

    .dropdown-item.active, .dropdown-item:active {
        color: #fff;
        text-decoration: none;
        background-color: var(--bs-gray-500);
    }


/* Style for the input element */
.dropdown-input {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    height: 3rem;
    border: 0;
    padding-right: 30px;
    max-width: calc(100% - 33px);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    text-overflow: ellipsis;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display: block;
}

.custom-row {
    display: flex;
    align-items: center;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.4);
}

    .custom-row > .form-select {
        border: 0;
    }

.open-upwards {
    bottom: 100%;
}