/* --------------------------------------------------------------------------
   12. Tabellen (CSS-Grid statt <table>)
   -------------------------------------------------------------------------- */
.reg-table {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.reg-row {
  display: grid;
  align-items: center;
  column-gap: 14px;
  text-decoration: none;
  color: inherit;
}

.reg-row--head {
  padding: 12px 22px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-text-muted);
  border-bottom: 2px solid var(--leather-edge);
}

.reg-row--body {
  padding: 13px 22px 13px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-left-color 0.15s ease;
}

.reg-row--body:last-child {
  border-bottom: none;
}

.reg-row--body:hover {
  background: var(--leather-700);
  border-left-color: var(--brass-bright);
}

/* Leichtes Zebra-Muster gegen die "eine große braune Fläche"-Wirkung -
   ":nth-child(2n of ...)" statt schlichtem ":nth-child(2n)", damit
   zwischen den Zeilen liegende Kategorie-Überschriften (.reg-row--kategorie)
   den Rhythmus nicht durcheinanderbringen. Browser ohne Unterstützung dieser
   Selector-Level-4-Syntax bekommen einfach kein Streifenmuster (keine
   Fehlfunktion). */
.reg-row--body:nth-child(2n of .reg-row--body) {
  background: rgba(0, 0, 0, 0.14);
}

/* Dezente Bereichs-Überschrift/Summe, um lange Tabellen (z. B. Lager) in
   logische Abschnitte zu gliedern, ohne die Tabellenoptik zu verändern. */
.reg-row--kategorie {
  padding: 16px 22px 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-bright);
  border-top: 1px solid var(--leather-edge);
}

.reg-row--kategorie:first-child {
  border-top: none;
  padding-top: 12px;
}

.reg-row--summe {
  padding: 4px 22px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wood-text-muted);
  justify-content: flex-end;
  text-align: right;
}

.reg-row__actions-col {
  text-align: right;
}

.reg-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--wood-text);
}

.reg-num {
  font-weight: 700;
  color: var(--wood-text);
}

.table-card {
  position: relative;
  margin-bottom: 20px;
}

/* Toolbar oberhalb von Tabellen */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--leather-800);
  border: 1px solid var(--leather-edge-soft);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  flex: 1;
  min-width: 220px;
}

.search-field input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
  color: var(--wood-text);
  font-family: var(--font-body);
}

.search-field input::placeholder {
  color: var(--wood-text-placeholder);
  font-style: italic;
}

