/* =========================================
   DIV TABLES
   ========================================= */

.base-div-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.base-div-table-header {
    border-bottom: 1px solid var(--color-border-light);
}

.base-div-table-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.base-div-table-row {
    display: grid;
    gap: 0.75rem;
    align-items: start;
    width: 100%;
}

.base-div-table-row[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.base-div-table-row[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.base-div-table-row[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.base-div-table-row[data-columns="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.base-div-table-row[data-columns="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.base-div-table-row[data-columns="7"] {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.base-div-table-row[data-columns="8"] {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.base-div-table-row[data-columns="9"] {
    grid-template-columns: repeat(9, minmax(0, 1fr));
}

.base-div-table-row[data-columns="10"] {
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.base-div-table-row[data-columns="11"] {
    grid-template-columns: repeat(11, minmax(0, 1fr));
}

.base-div-table-row[data-columns="12"] {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.base-div-table-row[data-columns="13"] {
    grid-template-columns: repeat(13, minmax(0, 1fr));
}

.base-div-table-row[data-columns="14"] {
    grid-template-columns: repeat(14, minmax(0, 1fr));
}

.base-div-table-row[data-columns="15"] {
    grid-template-columns: repeat(15, minmax(0, 1fr));
}

.base-div-table-row[data-columns="16"] {
    grid-template-columns: repeat(16, minmax(0, 1fr));
}

.base-div-table-row[data-columns="17"] {
    grid-template-columns: repeat(17, minmax(0, 1fr));
}

.base-div-table-row[data-columns="18"] {
    grid-template-columns: repeat(18, minmax(0, 1fr));
}

.base-div-table-row[data-columns="19"] {
    grid-template-columns: repeat(19, minmax(0, 1fr));
}

.base-div-table-row[data-columns="20"] {
    grid-template-columns: repeat(20, minmax(0, 1fr));
}

.base-div-table-row[data-columns="21"] {
    grid-template-columns: repeat(21, minmax(0, 1fr));
}

.base-div-table-row[data-columns="22"] {
    grid-template-columns: repeat(22, minmax(0, 1fr));
}

.base-div-table-row[data-columns="23"] {
    grid-template-columns: repeat(23, minmax(0, 1fr));
}

.base-div-table-row[data-columns="24"] {
    grid-template-columns: repeat(24, minmax(0, 1fr));
}

.base-div-table-row[data-columns="25"] {
    grid-template-columns: repeat(25, minmax(0, 1fr));
}

.base-div-table-row[data-columns="26"] {
    grid-template-columns: repeat(26, minmax(0, 1fr));
}

.base-div-table-cell-header {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.base-div-table-cell-header-wrap {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: normal;
    overflow: visible;
}

.base-div-table-cell {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 576px) {
    .base-div-table-header {
        display: none;
    }

    .base-div-table-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
        border: 1px solid var(--color-border-light);
        border-radius: 0.75rem;
        padding: 0.75rem;
        background: var(--color-surface);
    }

    .base-div-table-cell[data-label]::before {
        content: attr(data-label) ":";
        display: block;
        margin-bottom: 0.25rem;
        font-weight: var(--font-weight-bold);
    }
}
