﻿
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #007bff;
    color: white;
}



/* Responsive: Convert table to card view on small screens */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        background-color: #f9f9f9;
    }

    td {
        text-align: left;
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: none;
    }

        td::before {
            content: attr(data-label);
            font-weight: bold;
        }
}
