/* List page table & components */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    padding: 12px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--surface-raised);
}

.col-num {
    text-align: right;
    white-space: nowrap;
}

.col-actions {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.cell-mono {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cell-sub {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--mono);
}

.row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Status pills — subtle, not loud */
.pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
}

.pill-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.pill-warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.pill-neutral {
    background: var(--bg);
    color: var(--text-tertiary);
}

/* Empty */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.page-btn:hover {
    background: var(--surface-raised);
    color: var(--text);
}

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

@media (max-width: 640px) {
    .data-table thead th,
    .data-table tbody td {
        padding: 12px 16px;
    }

    .data-table {
        min-width: 760px;
    }

    .row-actions {
        flex-direction: column;
        gap: 4px;
    }
}

@media print {
    .site-header,
    .card:first-of-type,
    .pagination,
    .row-actions,
    .site-footer {
        display: none !important;
    }
}
