/* =============================================================================
   Datentabelle
   ============================================================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--glass-border-subtle);
  white-space: nowrap;
}
/* Numerische Spalten: auch Header rechts ausgerichtet — konsistent zu den Werten */
.data-table thead th.numeric {
  text-align: right;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 100ms ease;
  cursor: pointer;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.data-table tbody tr:nth-child(even) {
  /* Zebra-Striping — minimaler Kontrast für Scan-Speed (Spec §5.3) */
  background: rgba(255, 255, 255, 0.015);
}
.data-table tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.05);
}

.data-table tbody td {
  padding: 0.75rem 0.875rem;
  color: var(--text-primary);
  vertical-align: middle;
}
/* Verschachtelte Inhalte (z.B. Kunde + Projekt in einer Zelle): saubere Sub-Zeile */
.data-table tbody td > strong + div {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.data-table tbody td.dim {
  color: var(--text-muted);
}
.data-table tbody td.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
}
.data-table tbody td.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.data-table__empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.data-table__empty-title {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.data-table__cell-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
}

/* Toolbar über der Tabelle */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.list-toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.list-toolbar__count {
  font-size: 12px;
  color: var(--text-dim);
}

/* Status-Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.4;
}
.pill--blue   { background: rgba(37, 99, 235, 0.15);  color: #93C5FD; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.30); }
.pill--green  { background: rgba(5, 150, 105, 0.15);  color: #6EE7B7; box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.30); }
.pill--amber  { background: rgba(217, 119, 6, 0.15);  color: #FCD34D; box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.30); }
.pill--orchid { background: rgba(124, 58, 237, 0.15); color: #C4B5FD; box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.30); }
.pill--alert  { background: rgba(220, 38, 38, 0.15);  color: #FCA5A5; box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.30); }
.pill--slate  { background: rgba(148, 163, 184, 0.12); color: #CBD5E1; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); }

/* Icon Buttons (für Actions in Tabellen) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: pointer;
  vertical-align: middle;
  transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.icon-btn--danger:hover {
  color: var(--mod-alert);
  border-color: rgba(220, 38, 38, 0.40);
  background: rgba(220, 38, 38, 0.08);
}
