/**
 * AKBAR KHAN TRUST
 * Global Table Component
 * File: /public_html/assets/css/components/tables.css
 */

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    min-width: 40rem;

    border-collapse: collapse;

    color: var(--color-text, #0f172a);

    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.75rem 1rem;

    border-bottom: 1px solid var(--color-border, #e2e8f0);

    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--color-text-secondary, #475569);
    background: var(--color-surface-muted, #f8fafc);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: var(--color-surface-hover, #f8fafc);
}

.table-striped tbody tr:nth-child(even) {
    background: var(--color-surface-muted, #f8fafc);
}

.table-compact th,
.table-compact td {
    padding: 0.5rem 0.75rem;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
}

.table-empty {
    padding: 2rem 1rem !important;

    color: var(--color-text-muted, #94a3b8);

    text-align: center !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}