/* Tables and their pagination.
   How a table becomes a stack of cards on a phone is in responsive.css. */
/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-cell);
}

table.data th {
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-meta);
  color: var(--text-muted);
  padding: var(--s2) var(--s4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

table.data td {
  padding: 0 var(--s4);
  height: var(--row-h);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.data tbody tr {
  transition: background var(--t-fast) var(--ease-out);
}

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

table.data tbody tr[data-href] {
  cursor: pointer;
}

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

.cell-main {
  font-weight: 500;
}

.cell-stack {
  display: grid;
  gap: 1px;
  line-height: 1.35;
}

.cell-stack small {
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  object-fit: cover;
  flex-shrink: 0;
}

.cell-media {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}

.pager-info {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-muted);
}
