/* Einstellungen, Baugruppe zahlungsziele: Stilregeln, die nur diese Baugruppe braucht. Gemeinsames (es-…) steht in oo.einstellungen.css,
   Allgemeines in oo.css – hier nie etwas davon überschreiben. Eigene Klassen mit der Vorsilbe es-zz-, nur Marken aus oo.css.
   Eingebunden in Dokument.razor nach oo.einstellungen.css. */

/* ── Liste ───────────────────────────────────────────────────────────────────── */
.es-zz-tab .es-zz-name { font-weight: 500; overflow-wrap: anywhere; }
.es-zz-tab th.es-zz-faellig, .es-zz-tab td.es-zz-faellig { width: 150px; white-space: nowrap; }
.es-zz-tab th.es-zz-standard, .es-zz-tab td.es-zz-standard { width: 76px; text-align: center; }
.es-zz-schild { font-variant-numeric: tabular-nums; }
.es-zz-tab th.es-zz-aktionen, .es-zz-tab td.es-zz-aktionen { width: 68px; padding-right: 2px; text-align: right; white-space: nowrap; }
.es-zz-tab td.es-zz-aktionen .kn { height: 24px; width: 26px; color: var(--tinte-5); }
.es-zz-tab td.es-zz-aktionen .kn:hover { color: var(--tinte-1); }
.es-zz-tab td.es-zz-aktionen .es-zz-loeschen:hover { color: var(--alarm); background: var(--alarm-grund); }

/* Leere Liste: „Werksvorgaben übernehmen“ */
.es-zz-leer { display: grid; justify-items: start; gap: 6px; }
.es-zz-leer .es-leer { margin-bottom: 0; }
.es-zz-werk-hinweis { margin: 0; color: var(--tinte-4); font-size: 12.5px; }

/* ── Dialog ──────────────────────────────────────────────────────────────────── */
.oo-dialog.es-zz-dlg { top: 9vh; width: min(520px, calc(100vw - 32px)); max-height: 84vh; overflow-y: auto; }
.es-zz-dlg .fm-z { grid-template-columns: 132px minmax(0, 1fr); margin-bottom: 5px; }
.es-zz-dlg .fm-haken { margin: 6px 0 8px 142px; }
.es-zz-dlg .fm-haken .es-hinweis { margin-top: 0; }
.oo-dialog p.es-zz-einleitung { margin: -2px 0 12px; color: var(--tinte-4); white-space: normal; }
.es-zz-einheit { color: var(--tinte-4); white-space: nowrap; }
.es-zz-schnell { display: flex; flex-wrap: wrap; gap: 4px; }
.es-zz-schnell .kn { height: 24px; padding: 0 8px; font-size: 12px; border-color: var(--linie); }
.es-zz-vorschau { display: grid; gap: 2px; margin: 8px 0 6px 142px; padding: 8px 10px; border: 1px solid var(--linie-fein); border-radius: 3px; background: var(--grund); }
.es-zz-vorschau-titel { color: var(--tinte-5); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.es-zz-vorschau-text { color: var(--tinte-1); font-variant-numeric: tabular-nums; }
.es-zz-vorschau-text.leer { color: var(--tinte-4); }
.es-zz-vorschau-text strong { font-weight: 600; }
.es-zz-pruefung { margin: 10px 0 12px; padding: 6px 10px; border-left: 3px solid var(--ampel-rot); border-radius: 0 3px 3px 0; background: var(--alarm-grund); color: var(--alarm); }
.es-zz-pruefung.warn { border-left-color: var(--ampel-gelb); background: var(--warn-grund); color: var(--warn); }
.oo-dialog .es-zz-pruefung p { margin: 0; color: inherit; white-space: normal; }
.oo-dialog .es-zz-pruefung p + p { margin-top: 3px; }

/* ── Beleg-Editor: Schnellwahl des Zahlungsziels (BelegEditorSeite, unter den Optionen des Blatts) ───────── */
.es-zz-wahl { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.dk-ed-angabe > .es-zz-wahl { grid-column: 2; margin: -1px 0 2px; }
.dk-ed-ziel-schnell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 8px; font-size: 12px; }

/* Liste: „Als Standard“ je Zeile (gedrückt bei der Standardzeile, aria-pressed) */
.es-zz-std { height: 22px; padding: 0 7px; font-size: 11.5px; border-color: var(--linie); white-space: nowrap; }
.es-zz-std[aria-pressed="true"] { border-color: var(--tinte-3); color: var(--tinte-1); font-weight: 600; cursor: default; }
.es-zz-wahl .kn { height: 22px; padding: 0 7px; font-size: 11.5px; border-color: var(--linie); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

/* ── Schmale Fenster ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .es-zz-schmal-weg { display: none; }
  .es-zz-tab th.es-zz-faellig, .es-zz-tab td.es-zz-faellig { width: auto; }
  .es-zz-tab th.es-zz-standard, .es-zz-tab td.es-zz-standard { width: 66px; }
  .es-zz-std { padding: 0 4px; }
  .es-zz-tab th.es-zz-aktionen, .es-zz-tab td.es-zz-aktionen { width: 32px; }
  .es-zz-dlg .fm-z { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .es-zz-dlg .fm-haken, .es-zz-vorschau { margin-left: 0; }
  .es-zz-einheit { white-space: normal; }
}
