table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-secondary);
}

th,
td {
    border: 1px solid var(--border);
    padding: 8px;
}

.fixed-table {
    table-layout: fixed;
}

@media (max-width: 768px) {
    table,
    table thead,
    table tbody,
    table th,
    table td,
    table tr {
        display: block;
    }

    table thead {
        display: none;
    }

    table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
        background: var(--bg-secondary);
    }

    table td {
        border: 0;
        border-bottom: 1px solid var(--border);
    }

    table td:last-child {
        border-bottom: 0;
    }

    table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 0.35rem;
    }
}
