/* Explain: Styling for data tables and pagination. */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.data-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.data-table tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.1rem;
    color: var(--text-color);
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-color); }

.table-empty {
    padding: 2rem 1.1rem;
    text-align: center;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

.page-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }