/* PAPiTA — records table */

#table-wrap {
  padding: var(--space-4) var(--space-5);
}

#records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#records-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  text-align: left;
  padding: var(--space-3) var(--space-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

#records-table thead th .arrow {
  display: inline-block;
  margin-left: var(--space-1);
  opacity: 0.6;
}

#records-table tbody td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

#records-table tbody td:nth-child(3) {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#records-table tbody td:nth-child(4) {
  white-space: nowrap;
}

#records-table tbody tr.claimed {
  background: var(--claimed-bg);
}

#records-table tbody tr.unclaimed {
  background: transparent;
}

#records-table tbody tr.warning {
  background: var(--warning-bg);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--text-muted);
}

.row-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

.row-actions .btn {
  padding: var(--space-1) var(--space-3);
  font-size: 11px;
}
