/* ============================================================
   TABLES.CSS — All List & Table Styles
============================================================ */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
}

thead th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75em;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

thead th.sortable {
  cursor: pointer;
}

thead th.sortable:hover {
  color: var(--accent);
}

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover {
  background: var(--bg-hover);
  cursor: pointer;
}

tbody tr.no-hover:hover {
  background: none;
  cursor: default;
}

tbody td {
  padding: 11px 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.td-muted   { color: var(--text-muted); }
.td-mono    { font-family: 'Courier New', monospace; font-size: 0.9em; }
.td-right   { text-align: right; }
.td-center  { text-align: center; }
.td-bold    { font-weight: 700; }
.td-actions { white-space: nowrap; text-align: right; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0 4px;
}

.pagination-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-secondary);
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a2e;
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.82em;
  color: var(--text-muted);
  margin: 0 8px;
}

/* ── FILTERS ROW ─────────────────────────────────────────── */
.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.80em;
  font-weight: 500;
  cursor: pointer;
  background: none;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── TABLE TOOLBAR ───────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.table-count {
  font-size: 0.82em;
  color: var(--text-muted);
}
