/* ═════════════════════════════════════════════════════════════════
   Handbuch · Berechtigungen — Plattform-fz-* Zusätze
   ─────────────────────────────────────────────────────────────────
   Reine Ergänzung zu finanzen.css. Nur Plattform-Tokens
   (--bg-*, --tx-*, --bdr-*, --ok/--wa/--er/--inf, --r-*).
   Klassen-Präfix: hbfz-* (= „Handbuch × fz")
   ═════════════════════════════════════════════════════════════════ */

/* Stufen-Erklärung (admin · execute · read · —) ─────────────── */
.hbfz-lvl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hbfz-lvl-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 13.5px;
  color: var(--tx-1);
  line-height: 1.55;
}
.hbfz-lvl-list li em { font-style: italic; color: var(--tx-0); }

/* Permission-Pills auf fz-pill-Token-Basis (3 Stufen + none) ──
   Die Pill bekommt Farbe + 6px Punkt; matched die KPI-Tönung
   in der Hero-Zeile, damit User die Verbindung erkennen. */
.hbfz-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.fz-pill.hbfz-pill-admin {
  background: color-mix(in srgb, var(--er) 12%, var(--bg-surface));
  color: var(--er);
  border-color: color-mix(in srgb, var(--er) 32%, transparent);
}
.fz-pill.hbfz-pill-admin .hbfz-pill-dot { background: var(--er); }

.fz-pill.hbfz-pill-execute {
  background: color-mix(in srgb, var(--wa) 12%, var(--bg-surface));
  color: var(--wa);
  border-color: color-mix(in srgb, var(--wa) 32%, transparent);
}
.fz-pill.hbfz-pill-execute .hbfz-pill-dot { background: var(--wa); }

.fz-pill.hbfz-pill-read {
  background: color-mix(in srgb, var(--ok) 12%, var(--bg-surface));
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 32%, transparent);
}
.fz-pill.hbfz-pill-read .hbfz-pill-dot { background: var(--ok); }

.fz-pill.hbfz-pill-none {
  color: var(--tx-2);
  background: transparent;
  border-color: transparent;
  padding: 2px 8px;
}

/* Matrix-Tabelle ────────────────────────────────────────────── */
.hbfz-matrix-block { padding-left: 0; padding-right: 0; }
.hbfz-matrix-block > .fz-block-head { padding: 0 20px; }

.hbfz-tbl-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--bdr-faint);
}
.hbfz-tbl {
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}
.hbfz-tbl thead th {
  background: var(--bg-el);
  position: sticky; top: 0;
  z-index: 1;
}
.hbfz-th-plugin {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bdr-def);
  min-width: 220px;
}
.hbfz-th-person {
  text-align: center;
  padding: 10px 12px;
  border-left: 1px solid var(--bdr-faint);
  border-bottom: 1px solid var(--bdr-def);
  min-width: 84px;
  vertical-align: bottom;
}
.hbfz-th-name {
  font: 600 12.5px/1.2 var(--font-ui);
  color: var(--tx-0);
  letter-spacing: 0;
  text-transform: none;
}
.hbfz-th-role {
  font-size: 10.5px;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}

.hbfz-tbl tbody tr:hover td.hbfz-td-plugin,
.hbfz-tbl tbody tr:hover td.hbfz-td-cell {
  background: color-mix(in srgb, var(--bdr-faint) 40%, transparent);
}

.hbfz-td-plugin {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bdr-faint);
  vertical-align: middle;
}
.hbfz-plugin-n {
  font: 600 13.5px/1.3 var(--font-ui);
  color: var(--tx-0);
}
.hbfz-plugin-s {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hbfz-td-cell {
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--bdr-faint);
  border-left: 1px solid var(--bdr-faint);
}

.hbfz-tbl tbody tr:last-child .hbfz-td-plugin,
.hbfz-tbl tbody tr:last-child .hbfz-td-cell {
  border-bottom: 0;
}

/* Inline-Link in „Zugriff beantragen" ────────────────────────── */
.hbfz-link {
  color: var(--inf);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.hbfz-link:hover { color: var(--ac-1); }
