/* Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.table-container h2 {
    font-size: 1rem;
    padding: 10px 0px;
    font-weight: 500;
}

/* Table */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Header */
.modern-table thead {
    background: var(--primary-grad-100);
    color: var(--text-2);
}

.modern-table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

/* Body */
.modern-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
    ;
}

/* Zebra striping */
.modern-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Hover */
.modern-table tbody tr:hover {
    background: var(--text-color-4);
}

/* Links */
.modern-table a {
    color: var(--primary);

    text-decoration: none;
}

.modern-table a:hover {
    text-decoration: underline;
}

.table-container .tab-sub-heading {
    text-align: center;
    font-weight: 500;
    font-size: 1.3rem;
    background: var(--bg-color-4);
}


 .modern-table {
        counter-reset: rowNumber;
    }

    .modern-table tbody tr {
        counter-increment: rowNumber;
    }

    .modern-table tbody tr td:first-child::before {
        content:   counter(rowNumber);
    }
/* Responsive (Mobile View) */
/* @media (max-width: 768px) {
    .modern-table thead {
        display: none;
    }

    .modern-table,
    .modern-table tbody,
    .modern-table tr,
    .modern-table td {
        display: block;
        width: 100%;
        background: transparent;
    }

    .modern-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    .modern-table td {
        text-align: right;
        padding-left: 50%;
        padding: 10px 8px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .modern-table td:last-child {
        border-bottom: none;
    }

    .modern-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: 500;
        color: #333;
        text-align: left;
    }

    .modern-table tbody tr td {
        flex-direction: column;
    }
}
 */
@media (max-width: 768px) {

    .modern-table,
    .modern-table tbody,
    .modern-table tr,
    .modern-table td {
        display: block;
        width: 100%;
    }

    .modern-table thead {
        display: none;
    }

    .modern-table tbody tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
    }

    .modern-table tbody tr td {
        position: relative;
        padding-left: 140px;
        padding-top: 10px;
        padding-bottom: 10px;
        min-height: 45px;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .modern-table tbody tr td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        width: 120px;
        font-weight: 500;
    }

    /* Auto increment first td */
    .modern-table {
        counter-reset: rowNumber;
    }

    .modern-table tbody tr {
        counter-increment: rowNumber;
    }

    .modern-table tbody tr td:first-child::before {
        content: attr(data-label) " : " counter(rowNumber);
    }

}