* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.table-section1 {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    /* margin: 0 !important; */
    max-width: max-content !important;
    background-color: #fbf7f5;
    padding-top: 10px;
    border-radius: 10px;

}

.loader {
    text-align: center;
    font-size: 1.5em;
    color: #333;
}

.table-section {
    margin: 5vh;
    margin-top: 0vh !important;
    margin-bottom: 0vh !important;
}

.table-head {
    width: 100%;
    background-color: #fbf7f5;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2vh;
    margin-bottom: 5vh;
    border-radius: 10px;
}

.table-head h5 {
    color: var(--secondary);
}

.table-container {
    width: 100%;
    max-height: 68vh;
    min-height: 68vh;
    margin: 0 auto;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
    background-color: #fbf7f5;
    /* margin-top: 3vh; */
    overflow-y: auto;
    /* Set overflow to auto */
    /* scroll-behavior: none; */
    margin-left: 5vh;
    margin-right: 5vh;
    margin-bottom: 1vh;
    /* padding-bottom: 2vh; */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    justify-content: center;
    align-items: center;
}

table {
    width: 95%;
    border-collapse: collapse;
    margin: auto;
    /* margin-left: 2vh;
    margin-right: 2vh; */
    background-color: white;
    /* margin-bottom: 2vh; */

}

thead {
    background-color: var(--primary);
    color: white;
    position: sticky;
    /* Make the thead sticky */
    top: 0;
    /* Stick to the top */
    z-index: 1;
    /* Ensure thead stays on top */
}

thead th {
    padding: 8px;
    text-align: center;
    line-height: 20px;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-weight: 500;
    text-wrap: wrap;
    cursor: pointer;
    min-width: 20px;
}

tbody tr:nth-child(even) {
    background-color: #eee;
}

tbody tr:hover {
    background-color: #ccc;
}

tbody td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    color: var(--black);
    line-height: 16px;
}

tbody td:first-child {
    font-weight: bold;
}

tbody td:last-child {
    text-align: center;
}

.buttons {
    display: flex;
    position: relative;
    justify-content: space-between;
    gap: 10px;
    /* margin-top: 5vh; */
    width: 100%;
    background-color: #fbf7f5;
    padding-top: 1vh;
    padding-bottom: 2vh;
    padding-left: 3%;
    padding-right: 3%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;


}

.filterButton p {
    display: none;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    position: absolute;
    top: 3%;
    left: 3%;
}

.filterButton i {
    display: none;
    color: #333;
    font-size: 20px;
    /* font-weight: 500; */
    position: absolute;
    top: 3%;
    right: 3%;
}

@media screen and (max-width: 999px) {

    .filterButton p {
        display: block;
        position: absolute;
        top: 3%;
        left: 3%;
    }

    .filterButton i {
        display: block;
        position: absolute;
        top: 3%;
        right: 3%;
    }
}

/* All Filters - Default for larger screens */
.allFilters {
    display: flex;
    gap: 50px;
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: none;
    /* Always show filters by default */
}

/* Mobile-specific styles */
@media screen and (max-width: 999px) {

    /* Filter button visible only on mobile */
    .filterButton {
        display: block;
    }

    /* Hide filters by default */
    .allFilters {
        display: flex;
        gap: 5px;
        width: 100%;
        max-height: 0;
        /* Hide filters by default */
    }

    /* Show filters when 'open' class is toggled */
    .allFilters.open {
        max-height: 100vh;
        /* Show filters when open */
    }
}

/* Hide filterButton on larger screens */
@media screen and (min-width: 1000px) {
    .filterButton {
        display: none;
    }

    /* Ensure filters are always visible on larger screens */
    .allFilters {
        max-height: none;
    }
}

.buttons button {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary);
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.buttons .filters {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filters .filterName {
    font-size: 14px;
    color: var(--primary);
}

.filters select {
    padding: 5px 10px;
    border-color: var(--primary);
    background-color: white;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.reset {
    display: flex;
    justify-content: end;
    align-items: end;
}


@media screen and (max-width: 999px) {
    .table-container {
        max-height: 80vh;
    }
    .table-section {
        margin: 2vh;
        margin-top: 15vh;
    }

    .table-head h3 {
        font-size: 20px;
    }

    tbody td:nth-child(1) {
        padding: 12px;
        text-align: center;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        font-size: 14px;
        color: var(--black);
        line-height: 16px;
        position: sticky;
        /* Make the first column sticky */
        left: 0;
        /* Stick to the left */
        z-index: 0;
        background-color: #ddd;
    }

    thead th:nth-child(1) {
        padding: 10px;
        text-align: center;
        line-height: 20px;
        border-right: 1px solid #ddd;
        font-size: 14px;
        font-weight: 500;
        text-wrap: wrap;
        position: sticky;
        /* Make the first column sticky */
        left: 0;
        /* Stick to the left */
        z-index: 1;
        background-color: var(--primary);
    }

    .buttons {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        /* gap: 10px; */
        /* margin-top: 5vh; */
        padding-top: 4vh;
        width: 100%;
    }

    .allFilters {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .reset {
        display: flex;
        justify-content: start;
        align-items: start;
        width: 100%;
    }
}

#text-center {
    text-align: center;
    color: darkblue;
}

#green {
    color: var(--theme);
}

#yellow {
    color: var(--action);
}

#red {
    color: red;
}

.wc-btn-primary1 {
    padding: 14px 18px ;
}

.copyright-area-inner {
    padding-bottom: 0 !important;
}