.gi-bandi-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 24px;
}

#gi-bandi-filters-sidebar {
    padding-right: 1rem;
}
.gi-bandi-filter-group {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.gi-bandi-filter-heading {
    margin: 0 0 0.5rem 0;
}


.gi-bandi-container .gi-bandi-accordion-trigger {
    background-color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-569d221-font-family, sans-serif), sans-serif;
    font-size: var(--e-global-typography-569d221-font-size);
    font-weight: var(--e-global-typography-569d221-font-weight);
    line-height: var(--e-global-typography-569d221-line-height);
    fill: var(--e-global-color-secondary);
    color: var(--e-global-color-secondary);
    border: none;
    padding: 12px 24px 012px 24px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

.gi-bandi-accordion-trigger::after {
    content: '−';
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 0.5rem;
}

.gi-bandi-accordion-trigger[aria-expanded="false"]::after {
    content: '+';
}

.gi-bandi-filter-group.gi-bandi-collapsed .gi-bandi-filter-options {
    display: none;
}

.gi-bandi-filter-group.gi-bandi-collapsed .gi-bandi-filter-options {
    display: none;
}
.gi-bandi-container .gi-bandi-filter-search {
    width: 100%;
    padding: 8px;
    margin-bottom: 24px;
    box-sizing: border-box;
    border-radius: 16px;
}
.gi-bandi-filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 24px;
    background: var(--e-global-color-primary);
    color: var(--e-global-color-secondary);
    border-radius: 12px;
}
.gi-bandi-filter-options label {
    display: block;
    margin-bottom: 16px;
}
.gi-bandi-filter-options .gi-bandi-hidden {
    display: none;
}

#gi-bandi-results-table {
    width: 100%;
    border: 0;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    table-layout: fixed;
}
#gi-bandi-results-table th, #gi-bandi-results-table td {
    padding: 16px;
    text-align: left;
    border: 0;
    background-color: #fff;
    word-break: break-word;
}

#gi-bandi-results-table th:nth-child(1),
#gi-bandi-results-table td:nth-child(1) {
    width: 50%;
}

#gi-bandi-results-table th:nth-child(2),
#gi-bandi-results-table td:nth-child(2) {
    width: 15%;
}

#gi-bandi-results-table th:nth-child(3),
#gi-bandi-results-table td:nth-child(3) {
    width: 20%;
}

#gi-bandi-results-table th:nth-child(4),
#gi-bandi-results-table td:nth-child(4) {
    width: 15%;
}


#gi-bandi-results-table tr {
    border-bottom: 1px solid #ddd;
}

#gi-bandi-results-table tr:hover td {
    background-color: #F5F5F5;
}

#gi-bandi-results-table tr:nth-child(odd) td {
    background-color: #effefc;
}

#gi-bandi-results-table tr:hover td {
    background-color: #c7fff7;
}


#gi-bandi-results-table th {
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid #ddd;
}

.gi-bando-scaduto {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    margin-left: 0.5em;
    font-weight: bold;
    background-color: #f0ad4e;
    border-radius: 10px;
    color: black;
    padding: 0.1em 0.3em;
    font-size: 14px;
}

.gi-bando-scaduto span[role="img"] {
    line-height: 0;
}

.gi-bando-scaduto svg {
    width: 1em;
    height: 1em;
}

.gi-bandi-skeleton {
    animation: gi-bandi-shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f6f7f8 4%, #edeef1 25%, #f6f7f8 36%);
    background-size: 1000px 100%;
    border-radius: 4px;
}
.gi-bandi-skeleton-filter {
    height: 150px;
    margin-bottom: 1rem;
}
.gi-bandi-skeleton-text {
    height: 20px;
    width: 90%;
}

@keyframes gi-bandi-shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Accessibility */
.gi-bandi-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 768px) {
    .gi-bandi-container {
        grid-template-columns: 1fr;
    }

    #gi-bandi-filters-sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    #gi-bandi-results-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    #gi-bandi-results-table tr {
        display: block;
        border-bottom: 2px solid #ddd;
        margin-bottom: 1em;
    }

    #gi-bandi-results-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dotted #ccc;
        text-align: right;
        padding: 0.75em 1em;
    }

    #gi-bandi-results-table td:last-child {
        border-bottom: 0;
    }

    #gi-bandi-results-table td::before {
        content: attr(data-label);
        font-weight: bold;
        padding-right: 1em;
        text-align: left;
    }

    #gi-bandi-results-table th:nth-child(1),
    #gi-bandi-results-table td:nth-child(1),
    #gi-bandi-results-table th:nth-child(2),
    #gi-bandi-results-table td:nth-child(2),
    #gi-bandi-results-table th:nth-child(3),
    #gi-bandi-results-table td:nth-child(3),
    #gi-bandi-results-table th:nth-child(4),
    #gi-bandi-results-table td:nth-child(4) {
        width: 100%;
    }
}

