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

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.badge-success {
  background: #e8f6ef;
  color: var(--success);
}

:root[data-theme="dark"] .badge-success {
  background: rgba(52, 211, 153, 0.14);
}

.badge-warning {
  background: #fff4da;
  color: var(--warning);
}

:root[data-theme="dark"] .badge-warning {
  background: rgba(245, 158, 11, 0.16);
}

.badge-danger {
  background: #fdebea;
  color: var(--danger);
}

:root[data-theme="dark"] .badge-danger {
  background: rgba(248, 113, 113, 0.16);
}
