﻿.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-button {
    padding: 5px 5px;
    background-color: #fefefe;
    color: #484f55;
    border: none;
    border-radius: 5px;
    border: solid 1px;
    border-color: #e0e0de;
    cursor: pointer;
    font-size: 12px;
    height: 35px;
    min-width: 150px;
    width: 100%; /* Ensures the button fills the container width */
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
    white-space: nowrap;
    overflow: hidden;
}

    .dropdown-button:hover {
        background-color: #005c99;
        color: white;
    }

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    /*min-width: 300px;*/
    max-width: 100%;
    padding: 0px;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 15px;
    /*min-height: 300px;*/
    max-height: 300px; /* Restrict vertical height */
    overflow-x: auto; /* Force horizontal scrollbar visibility */
    overflow-y: auto; /* Enable vertical scrolling as needed */
    white-space: nowrap; /* Prevent wrapping of content */
}

    /* Style the scrollbar (optional, for customization) */
    .dropdown-list::-webkit-scrollbar {
        width: 8px; /* Width for vertical scrollbar */
        height: 8px; /* Height for horizontal scrollbar */
    }

    .dropdown-list::-webkit-scrollbar-thumb {
        background-color: #cccccc; /* Color of the scroll thumb */
        border-radius: 5px; /* Rounded scrollbar thumb */
    }

        .dropdown-list::-webkit-scrollbar-thumb:hover {
            background-color: #aaaaaa; /* Thumb color on hover */
        }

    .dropdown-list::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Track color */
    }

    .dropdown-list li {
        /*display: inline-block;*/ /* Force items to appear in a single row */
        min-width: 350px; /* Ensure content exceeds dropdown width */
        margin-right: 10px; /* Add spacing between items */
    }

    .dropdown-list table {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .dropdown-list td {
        padding-top: 2px;
        padding-bottom: 2px;
        text-align: left;
    }

    .dropdown-list input {
        margin: 3px;
    }

    .dropdown-list td:hover {
        background-color: #0d7af6;
        color: white;
    }

    .dropdown-list label:hover {
        width: 100%;
        height: 100%;
        color: none;
    }

.dropdown-actions {
    display: flex;
    justify-content: left;
    margin-bottom: 3px;
    margin-left: 10px;
}

    .dropdown-actions button {
        /*padding: 5px 10px;*/
        /*width:40px;*/
        /*background-color: #007BFF;*/
        background-color: transparent;
        color: white;
        border: none;
        /*border-radius: 3px;*/
        border: solid 1px;
        border-color: transparent;
        padding: 0px;
        margin: 0px;
        cursor: pointer;
        /*font-size: 0.9rem;*/
    }

        .dropdown-actions button:hover {
            background-color: transparent;
            border-radius: 3px;
            border: solid 1px;
            border-color: var(--primary-color);
        }

    .dropdown-actions img {
        height: 25px;
    }

    .dropdown-actions input {
        height: 25px;
        min-width: 150px;
        margin-left: 0px;
        font-size: 12px;
    }

        .dropdown-actions input:hover {
            background-color: transparent;
            border-radius: 3px;
            border: solid 1px;
            border-color: var(--primary-color);
        }

.dropdown-actions-container {
    position: sticky;
    top: 0;
    background: white;
    padding-top: 5px;
    padding-bottom: 5px;
    /*    padding: 0px;*/
    /*border-bottom: 1px solid #ddd;*/
    z-index: 1; /* Ensure it stays above the list items */
}

/*ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}*/

/*li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}*/

label {
    margin-left: 5px;
}

.button-spacing {
    /*margin-right: 50px;*/
}
