
.dropdown-container {
    /*margin-bottom: 20px;*/
    position: relative;
    width: 100%;
    font-size: 13px;
}

.dropdown-container label {
    display: block;
    margin-bottom: 5px;
}

#search-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dropdown-table {
    position: absolute;
    top: calc(100%);
    z-index: 5;
    width: stretch;
    max-height: 450px;

    padding: 6px;
    border-radius: 5px;
    background-color: #e1e1e1;
}

.dropdown-table .dropdown-frame {
    background-color: white;
    width: auto;

    max-height: 270px;
    overflow-y: auto;

    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.dropdown-table table {
    border-collapse: collapse;
    position: relative; /* Ensure proper stacking context for header */
}

.dropdown-table thead {
    position: sticky;
    top: 0; /* Stick the header at the top */
    background: #fff; /* Background color for the sticky header */
    z-index: 1; /* Ensure header appears above the rows */
}

.dropdown-table tbody {
    max-height: 300px; /* Set max height for scrolling */
    overflow-y: auto;  /* Enable vertical scrolling */
}

.dropdown-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dropdown-tag {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px 10px;
    display: flex;
    align-items: center;
}

.dropdown-tag .remove-tag {
    margin-left: 5px;
    cursor: pointer;
}

/* @Sjoerd - Show loader in button - BEGIN */
.loading-spinner::before {
    content: ' ';
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    background-image: url('/bia_form/include/loader/spinner-v02.svg');
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    left: 0px;
    top: 4px;
    margin-right: 6px;
}
/* @Sjoerd - Show loader in button - END   */

.loading-spinner {
    position: relative;
    top: -29px!important;
    margin-bottom: -29px!important;
    right: 50px;
    display: inline-block;
    /*noinspection CssInvalidPropertyValue*/
    float: inline-end;
}

.dropdown-table.hidden,
.loading-spinner.hidden {
    display: none;
}

select.dropdown-table-select {
    display: none;
}


/* Mobile */
@media screen and (max-width: 1023px) {

    .dropdown-table {
        max-width: calc(100% + 12px);
    }

    .dropdown-table th {
        display: none;
    }

    .dropdown-table .tr {
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }
}

/* Tablet / Desktop */
@media screen and (min-width: 1024px) {

    .dropdown-table {
        /*max-width: 974px;*/
    }

    .dropdown-table .td {
        display: table-cell;
        vertical-align: inherit;
        unicode-bidi: isolate;
    }
    .dropdown-table .tr {
        display: table-row;
        vertical-align: inherit;
        unicode-bidi: isolate;
        border-color: inherit;
    }

    .dropdown-table th,
    .dropdown-table .td {
        padding: 8px;
        text-align: left;
        white-space: nowrap;
        border-bottom: 1px solid #ddd;
    }

    .dropdown-table .tr.highlighted {
        cursor: pointer;
        background-color: #f1f1f1;
    }

    /* Dropdown dynamic align - BEGIN */
    /**/

    /* The dropdown */
    .dropdown-table {
        position: absolute;
        top: calc(100% - 5px);
        width: fit-content;
        box-sizing: border-box;
    }

    /**/
    /* Dropdown dynamic align - END */

}

/* Desktop */
@media screen and (min-width: 1280px) {

    .dropdown-table {
        max-width: 1150px;
    }
}

/* Desktop large */
@media screen and (min-width: 1460px) {

    .dropdown-table {
        max-width: 1250px;
    }
}

