/* Style the dropdown container */
.dropdown-container {
    position: relative;
    /* Position relative to allow absolute positioning of the dropdown */
    display: inline-block;
    width: 100%;
}

/* Style the label that shows selected items */
.dropdown-label {
    padding: 3px 5px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid;
    display: inline-block;
    width: inherit;
    /* Limit the height */
    overflow: hidden;
    /* Hide overflow content */
    text-overflow: ellipsis;
    /* Show ellipsis when text overflows */
    white-space: nowrap;
    /* Prevent text from wrapping */
}

/* Style the dropdown menu */
.dropdown-menu {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* Position dropdown below the label */
    left: 0;
    background-color: white;
    border: 1px solid #767676;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Ensure it spans the width of the label */
    z-index: 9999;
    /* Make sure it appears on top of other elements */
    height: 130px;
    /* Limit the height to show only a few items */
    overflow-y: auto;
}

/* Style each item in the dropdown */
.dropdown-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Style the checkboxes inside the dropdown */
.dropdown-item input[type="checkbox"] {
    margin-right: 10px;
}

/* Show the dropdown menu when the container has the 'open' class */
.dropdown-container.open .dropdown-menu {
    display: block;
}

/* Optional: add hover effect on items */
.dropdown-item:hover {
    background-color: #f0f0f0;
}

/* Style each group in the dropdown */
.dropdown-group {
    padding: 5px;
    font-weight: bold;
}