﻿.multiselectionboxwrapper {
    display: grid;
    grid-template-columns: auto 1fr; /* First column auto (checkbox), second takes full width (label) */
    grid-template-rows: auto 1fr; /* First row for selection & label, second row for the boxes */
    grid-gap: 3px;
    align-items: center;
    background-color: #fff;
    color: #444;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 5px;
}

/* Ensure selection & label stay in row 1 */
.multiselectionboxwrapperselection {
    grid-column: 1; /* Checkbox in first column */
    grid-row: 1; /* Keep in first row */
    height: 23px;
    background-color: lightgrey;
    padding: 1px;
    padding-left: 5px;
    border: none;
    border-radius: 5px;
}

.multiselectionboxwrapperlabel {
    grid-column: 2; /* Label in second column */
    grid-row: 1; /* Keep in first row */
    height: 20px;
    margin-left: 5px;
    margin-top: 1px;
    background-color: transparent;
    text-align: left;
    color: black;
    font-size: 80%;
    font-weight: 700;
}

/* Ensure all multiselectionbox elements are in row 2 and stack vertically */
.multiselectionbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--backcolor);
    color: #000;
    border: 0px solid red;
    padding: 5px;
    padding-left: 50px;
    font-size: 80%;
    width: 100%;
    min-height: 25px;
    grid-column: 1 / span 2; /* Span across both columns */
}

.multiselectionboxselection {
    position: static; /* Remove relative positioning */
    height: 20px;
}

.multiselectionboxlabel {
    position: static; /* Remove manual adjustments */
    padding-left: 5px;
    font-size: 100%;
    font-weight: 500;
}
