.tableSection {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 500px; /* Set a max height to enable vertical scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Custom scrollbar for table section */
.tableSection::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

.tableSection::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: #0004;
    visibility: hidden;
}

.tableSection:hover::-webkit-scrollbar-thumb {
    visibility: visible;
}



table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: white;
}
.tableSection thead {
    position: sticky;
    top: 0;
    background-color: #849aa8;
    z-index: 10;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    white-space: nowrap;
}

th {
    color: white;
}
td {
    color: #34495e;

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

/* Style buttons */
.info-btn, .delete-btn {
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.info-btn {
    background-color: #849aa8;
    color: white;
}

.delete-btn {
    background-color: #849aa8;
    color: white;
}

/* Responsive Table */
@media (max-width: 768px) {
    .tableSection {
        overflow-x: auto;
    }

    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

