/* Einstellungen, Baugruppe felder: 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-ef-, nur Marken aus oo.css.
   Eingebunden in Dokument.razor nach oo.einstellungen.css. */

/* ── Reiter je Modul als Verweise (Kunden, Artikel, Lieferanten, Belege) ───────── */
.es-ef-reiter { padding: 0 2px; margin-bottom: 2px; background: transparent; overflow-x: auto; scrollbar-width: none; }
.es-ef-reiter a { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--tinte-5);
  font-weight: 500; text-decoration: none; white-space: nowrap; }
.es-ef-reiter a:hover { color: var(--tinte-2); }
.es-ef-reiter a.aktiv { color: var(--tinte-1); font-weight: 600; border-bottom-color: var(--tinte-1); }
.es-ef-reiter-zahl { min-width: 18px; padding: 0 5px; border-radius: 3px; background: var(--flaeche-2); color: var(--tinte-4); font-size: 11.5px; font-weight: 500;
  font-variant-numeric: tabular-nums; text-align: center; }

.es-ef-aenderungen { color: var(--tinte-5); font-size: 12px; }

/* ── Liste der Felder ────────────────────────────────────────────────────────── */
.es-ef-zwei { grid-template-columns: 300px minmax(0, 1fr); }
.es-ef-liste { padding: 12px 10px; }
.es-ef-liste .es-karte-kopf { padding: 0 6px; margin-bottom: 8px; }
.es-ef-suche { width: 100%; margin-bottom: 6px; }
.es-ef-felder { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.es-ef-feld { width: 100%; display: grid; gap: 1px; padding: 5px 8px; border: 0; border-radius: 3px; background: transparent; color: var(--tinte-2); text-align: left; cursor: pointer; }
.es-ef-feld:hover { background: var(--grund); }
.es-ef-feld.gewaehlt { background: var(--auswahl); box-shadow: inset 2px 0 0 var(--tinte-1); }
.es-ef-feld-kopf { display: flex; align-items: center; gap: 6px; min-width: 0; }
.es-ef-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.es-ef-name.leer { color: var(--tinte-5); font-weight: 400; font-style: italic; }
.es-ef-feld-unter { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--tinte-5); font-size: 12px; }
.es-ef-punkt { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ampel-gelb); }
.es-ef-leer { display: grid; justify-items: center; gap: 10px; }
.es-ef-geloescht { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 4px 6px 0; border-top: 1px solid var(--linie-fein);
  color: var(--tinte-4); font-size: 12px; }
.es-ef-jebenutzer { padding: 8px 6px 0; }

/* ── Editor ──────────────────────────────────────────────────────────────────── */
.es-ef-editor { min-width: 0; display: grid; gap: 12px; align-content: start; }
.es-ef-editor .fm-raster { columns: 1; }
.es-ef-fehler { margin-top: 4px; color: var(--alarm); font-size: 12.5px; }
.es-ef-warnung { margin-top: 6px; padding: 6px 8px; border-radius: 3px; background: var(--warn-grund); color: var(--warn); font-size: 12.5px; }
.es-ef-schluessel { overflow-wrap: anywhere; }
.es-ef-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linie-fein); }
.es-ef-breite { max-width: 220px; margin-top: 8px; }

/* Farbwahl: „Standard“, zwölf Muster, eigene Farbe. Kästchen 20 px mit Haarlinie, gewählt mit dunklem Ring. */
.es-ef-farbe { display: grid; gap: 4px; margin-top: 10px; }
.es-ef-farbe-titel { color: var(--tinte-4); font-size: 12px; font-weight: 500; }
.es-ef-muster { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.es-ef-feldfarbe, .es-ef-standard { flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 1px solid var(--linie-stark); border-radius: 3px; cursor: pointer; }
.es-ef-feldfarbe.klein { width: 12px; height: 12px; cursor: default; }
.es-ef-standard { position: relative; background: var(--flaeche); overflow: hidden; }
.es-ef-standard::after { content: ""; position: absolute; left: -3px; top: 50%; width: 26px; border-top: 1.5px solid var(--ampel-rot); transform: rotate(-45deg); }
.es-ef-feldfarbe.an, .es-ef-standard.an { outline: 2px solid var(--tinte-1); outline-offset: 1px; }
.es-ef-feldfarbe:disabled, .es-ef-standard:disabled { cursor: default; opacity: .6; }
.es-ef-eigene { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; color: var(--tinte-4); font-size: 12px; cursor: pointer; }
.es-ef-eigene input { width: 22px; height: 22px; padding: 0; border: 1px solid var(--linie-stark); border-radius: 3px; background: var(--flaeche); cursor: pointer; }
.es-ef-farbe-wert { display: inline-flex; align-items: center; gap: 5px; color: var(--tinte-5); font-size: 12px; font-variant-numeric: tabular-nums; }
.es-ef-farbe-fremd { color: var(--tinte-4); font-size: 12.5px; }

/* Befüllung und Beispiele */
.es-ef-befuellt { color: var(--tinte-3); }
.es-ef-balken { height: 4px; margin: 6px 0 10px; border-radius: 3px; background: var(--flaeche-2); overflow: hidden; }
.es-ef-balken span { display: block; height: 100%; background: var(--tinte-4); }
.es-ef-tabelle { overflow-x: auto; }
.es-ef-beispiele td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dialog „Eigenes Feld löschen“ */
.es-ef-dialog { width: min(520px, calc(100vw - 32px)); }
.es-ef-frage { font-weight: 600; }
.es-ef-folgen-titel { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--tinte-3); }
.es-ef-folgen { display: grid; gap: 4px; margin: 6px 0 8px; padding-left: 18px; }
.es-ef-folge-werte strong { color: var(--alarm); font-weight: 600; }

@media (max-width: 860px) {
  .es-ef-zwei { grid-template-columns: minmax(0, 1fr); }
  .es-ef-beispiele td { max-width: 160px; }
}
