/* ── Excel-Import-Dialog ─────────────────────────────────────────────────────
   1:1 zu ExcelImportDialog.xaml (1200×740): links Tabelle/Zeilen + Erkennungs-
   Banner + Spalten-Mapping mit Vorschau + farbiges Vorschau-Grid, rechts
   Options-Spalte. Titelzeile und Fuß aus/über dialog-basis.css.
   Abschnittstitel akzentfarben (AppSectionLabel). */
.ximp-dialog { position: fixed; z-index: 95; left: 50%; top: 50%;
  transform: translate(-50%, -50%); width: min(1200px, 97vw); height: min(740px, 94vh);
  background: var(--bg); border: 1px solid var(--rand); border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4); display: flex; flex-direction: column;
  overflow: hidden; }
.ximp-titel { flex: none; }
.ximp-haupt { flex: 1; display: grid; grid-template-columns: 1fr 290px; min-height: 0; }
.ximp-links { display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--rand); }
.ximp-kopf { background: var(--bg-tief); border-bottom: 1px solid var(--rand);
  padding: 9px 12px; }
.ximp-kopfzeile { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.ximp-kopfzeile:last-child { margin-bottom: 0; }
.ximp-lbl { font-size: 11px; color: var(--text-3); width: 82px; flex: none; }
.ximp-kopfzeile .ximp-lbl + .feld + .ximp-lbl { width: 82px; margin-left: 8px; }
select.ximp-tabelle { width: 200px; }
input.ximp-zeile { width: 56px; }
.ximp-banner { padding: 6px 12px; font-size: 11px; }
.ximp-banner.ok        { background: rgba(60,200,60,.18);  color: #50d250; }
.ximp-banner.teilweise { background: rgba(210,175,30,.18); color: #d2af1e; }
.ximp-banner.fehler    { background: rgba(210,50,50,.18);  color: #d25050; }
.ximp-banner.abschnitte{ background: rgba(255,180,40,.16); color: #dca01e; }
.ximp-banner.markier   { background: rgba(241,120,0,.16);  color: #dc8c1e;
  display: flex; justify-content: space-between; }
.ximp-markier-counter { color: var(--text-3); }
.ximp-mapping { background: var(--bg-tief); border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand); padding: 9px 12px; }
/* Abschnittstitel = AppSectionLabel (Akzent, 11px). */
.ximp-map-titel { font-size: 11px; font-weight: 600; color: var(--akzent); margin-bottom: 2px; }
.ximp-map-hint { font-size: 11px; color: var(--text-3); margin-bottom: 7px; }
.ximp-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.ximp-map-zeile { display: grid; grid-template-columns: 100px 160px 1fr;
  align-items: center; gap: 6px; height: 26px; }
.ximp-map-lbl { font-size: 12px; }
.ximp-map-zeile select { font-size: 11.5px; padding: 2px 6px; height: 24px; }
.ximp-map-wert { font-size: 11px; color: var(--text-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ximp-grid { flex: 1; min-height: 0; display: flex; flex-direction: column;
  position: relative; overflow-x: auto; }
.ximp-grid-kopf { display: grid; gap: 0; background: var(--bg-tief);
  border-bottom: 1px solid var(--rand); min-width: max-content; }
/* Kopf ist reine Anzeige — Zuordnung läuft über die Mapping-Dropdowns oben. */
.ximp-grid-h { font-size: 11px; font-weight: 600; color: var(--text-2);
  padding: 4px 6px; border-right: 1px solid var(--rand); text-align: center; }
.ximp-nr { font-size: 11px; color: var(--text-3); padding: 3px 6px;
  border-right: 1px solid var(--rand); background: rgba(128,128,128,.08);
  text-align: right; }
.ximp-grid-rollen { flex: 1; overflow-y: auto; min-width: max-content; }
.ximp-grid-zeile { display: grid; gap: 0; border-bottom: 1px solid var(--rand-fein);
  min-width: max-content; }
.ximp-grid-zeile.gedimmt { opacity: .3; }
.ximp-grid-zeile.header { font-weight: 600; }
.ximp-grid-zeile.markierbar { cursor: pointer; }
.ximp-grid-zeile.markiert { background: rgba(241,0,51,.10);
  box-shadow: inset 3px 0 0 #f10033; }
.ximp-zelle { font-size: 11px; padding: 3px 6px; border-right: 1px solid var(--rand-fein);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ximp-legende { background: var(--bg-tief); border-top: 1px solid var(--rand);
  padding: 5px 12px; font-size: 10.5px; color: var(--text-3); }
.ximp-rechts { background: var(--bg-tief); overflow-y: auto; }
.ximp-opt-block { border-bottom: 1px solid var(--rand); padding: 10px 12px; }
.ximp-opt-block.ohne-linie { border-bottom: none; }
.ximp-opt-titel { font-size: 11px; font-weight: 600; color: var(--akzent); margin-bottom: 6px; }
.ximp-opt-block .pdfd-radio { margin-bottom: 4px; font-size: 12px; }
.ximp-opt-block .pdfd-chk { margin-bottom: 4px; font-size: 12px; }
.ximp-manuell span { color: var(--akzent); font-weight: 600; }
.ximp-opt-hint { font-size: 11px; color: var(--text-3); margin: 3px 0; }
.ximp-mwst { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 16px; }
input.ximp-mwst-feld { width: 50px; font-size: 11.5px; padding: 3px 6px; }
/* Fuß: 52px, eigener Balken (nicht von dialog-gaeb abhängig). */
.ximp-fuss { display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  background: var(--bg-tief); border-top: 1px solid var(--rand);
  padding: 0 16px; min-height: 52px; border-radius: 0 0 10px 10px; }
