/* ── PDF-Export-Dialog (Desktop LvPdfStyleDialog 1:1: 1000×700, Tabs links,
      Papier-Live-Vorschau rechts) ── */
.pdfd-dialog { position: fixed; z-index: 95; left: 50%; top: 50%;
  transform: translate(-50%, -50%); width: min(1000px, 96vw); height: min(700px, 92vh);
  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; }
.pdfd-titel { font-size: 13.5px; font-weight: 600; padding: 12px 16px 0 16px; }
.pdfd-artzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px 8px 16px; }
.pdfd-art-label { font-size: 12.5px; font-weight: 600; }
.pdfd-artzeile span.pdfd-art-label:not(:first-child) { font-weight: 400; }
select.pdfd-art { width: 340px; }
select.pdfd-vgl { width: 240px; }
select.pdfd-akvs { width: 180px; }
select.pdfd-akvs-format { width: 120px; }
.pdfd-chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px;
  cursor: pointer; }
.pdfd-vorlagen { display: flex; align-items: center; gap: 8px;
  background: var(--bg-tief); border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand); padding: 6px 12px; }
.pdfd-vorlagen-label { font-size: 12px; color: var(--text-2); }
select.pdfd-vorlagen-wahl { width: 200px; }
.pdfd-vorlagen button:disabled { opacity: .45; cursor: default; }

.pdfd-haupt { flex: 1; display: grid; grid-template-columns: 300px 1fr;
  min-height: 0; }
.pdfd-links { display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--rand); }
.pdfd-links.pdfd-aus { opacity: .45; pointer-events: none; }
.pdfd-tabbar { display: flex; gap: 3px; padding: 8px; background: var(--bg-tief);
  border-bottom: 1px solid var(--rand); }
.pdfd-tab { background: transparent; color: var(--text); border: 1px solid var(--rand);
  border-radius: 999px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; }
.pdfd-tab:hover { background: var(--hover); }
.pdfd-tab.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff;
  font-weight: 600; }
.pdfd-tabinhalt { flex: 1; overflow-y: auto; padding: 10px 14px 14px 14px; }
.pdfd-heading { font-size: 13px; font-weight: 600; margin: 0 0 8px 0; }
.pdfd-seklbl { font-size: 11.5px; color: var(--text-2); margin: 10px 0 4px 0; }
.pdfd-tabinhalt > .pdfd-seklbl:first-child { margin-top: 0; }
.pdfd-hrule { height: 1px; background: var(--rand); margin: 8px 0; }
.pdfd-trenner-dick { height: 1px; background: var(--rand-fein); opacity: .5;
  margin: 16px 0; }
.pdfd-radio { display: flex; align-items: center; gap: 6px; font-size: 12.5px;
  cursor: pointer; margin-bottom: 6px; }
.pdfd-raender { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.pdfd-raender .pdfd-seklbl { margin: 0 0 2px 0; }
.pdfd-tabinhalt .pdfd-chk { margin-bottom: 8px; }
.pdfd-wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pdfd-wrap .pdfd-chk { margin-bottom: 4px; }
.pdfd-tipp { font-size: 10px; color: var(--text-3); margin: 3px 0 4px 0; }
select.pdfd-feld-einfuegen { width: 200px; }

.pdfd-logozeile { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pdfd-logo-btn { position: relative; overflow: hidden; display: inline-block; }
.pdfd-logo-btn input[type=file] { position: absolute; inset: 0; opacity: 0;
  cursor: pointer; }
.pdfd-logo-weg { width: 30px; padding: 4px 0; }
.pdfd-logo-name { font-size: 11px; color: var(--text-2); max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pdfd-spaltenzeile { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.pdfd-mini { width: 22px; height: 22px; padding: 0; font-size: 9px; line-height: 1; }
.pdfd-mini:disabled { opacity: .4; cursor: default; }
input.pdfd-sp-label { width: 88px; font-size: 11px; padding: 3px 6px; }
input.pdfd-sp-breite { width: 38px; font-size: 11px; padding: 3px 6px; }
select.pdfd-sp-align { width: 48px; font-size: 11px; padding: 3px 4px; }

.pdfd-slider { display: grid; grid-template-columns: 1fr 110px 28px; align-items: center;
  gap: 4px; margin-bottom: 6px; }
.pdfd-slider-label { font-size: 12px; }
.pdfd-slider input[type=range] { width: 100%; accent-color: var(--akzent); }
.pdfd-slider-wert { font-size: 11px; color: var(--text-2); text-align: right; }

.pdfd-farbzeile { display: grid; grid-template-columns: 28px 1fr 78px; align-items: center;
  gap: 4px; margin-bottom: 6px; }
.pdfd-farbzeile input[type=color] { width: 24px; height: 24px; padding: 0; border: none;
  background: none; border-radius: 3px; cursor: pointer; }
.pdfd-farb-label { font-size: 12px; }
input.pdfd-hex { font-size: 11px; padding: 3px 6px; }

.pdfd-rechts { display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-tief); }
.pdfd-vorschau-kopf { font-size: 11.5px; color: var(--text-2); padding: 6px 12px;
  background: var(--bg); border-bottom: 1px solid var(--rand); }
.pdfd-vorschau-flaeche { flex: 1; overflow: auto; display: flex;
  justify-content: center; align-items: flex-start; padding: 20px; }
.pdfd-papier { width: 380px; height: 537px; flex: none; background: #fff; color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.pdfd-papier.quer { width: 537px; height: 380px; }
.pdfd-akvs-hinweis { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; color: gray; font-size: 9px; padding: 24px; }

.pdfd-lv { padding: 20px 26px; }
.pdfd-lv-firma { font-size: 6px; color: gray; }
.pdfd-lv-titel { font-size: 11px; font-weight: 700; margin-top: 2px; }
.pdfd-lv-meta { font-size: 6px; color: gray; margin-top: 1px; }
.pdfd-lv-linie { margin: 5px 0 6px 0; }
.pdfd-lv-thead { display: grid; gap: 2px; padding: 2px 3px; font-size: 5.5px;
  font-weight: 700; }
.pdfd-lv-thead .re, .pdfd-lv-pos .re { text-align: right; }
.pdfd-kapitel { padding: 2px 3px; margin-top: 3px; font-size: 6px; font-weight: 700; }
.pdfd-lv-pos { display: grid; gap: 2px; padding: 2px; margin-top: 2px; font-size: 5px; }
.pdfd-lv-kt { display: block; font-size: 5.5px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.pdfd-lv-lt { display: block; font-size: 5px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.pdfd-lv-summe { margin-top: 10px; }
.pdfd-lv-sumzeile { display: flex; justify-content: space-between; font-size: 5.5px;
  color: #555; padding: 1.5px 3px; margin-bottom: 1px; }
.pdfd-lv-sumzeile.brutto { font-size: 6px; font-weight: 700; color: #fff; padding: 2px 3px; }

/* Klassisches LV-Druckbild (IstLv): heller Linien-Spaltenkopf, zweizeilige
   Positionen (Text oben, Mengen-/Preiszeile darunter), Titelsummen. */
.pdfd-ist { padding: 20px 26px; }
.pdfd-ist-thead { display: grid; gap: 2px; margin-top: 6px; padding: 2.5px 0;
  font-size: 5.5px; font-weight: 700; color: #000;
  border-top: 1.5px solid #000; border-bottom: 1px solid #000; }
.pdfd-ist-thead .re, .pdfd-ist-werte .re { text-align: right; }
.pdfd-ist-werte .mi { text-align: center; }
.pdfd-ist-kapitel { margin-top: 5px; font-size: 6px; font-weight: 700; color: #000; }
.pdfd-ist-pos { display: grid; gap: 2px; margin-top: 4px; font-size: 5px; color: #000; }
.pdfd-ist-oz { font-size: 5.5px; font-weight: 700; }
.pdfd-ist-kt { display: block; font-size: 5.5px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.pdfd-ist-nr { display: block; font-size: 5px; font-weight: 700; }
.pdfd-ist-werte { display: grid; gap: 2px; margin-top: 1.5px; font-size: 5px; color: #000; }
.pdfd-ist-titelsumme { display: flex; justify-content: space-between; margin-top: 6px;
  padding: 2px 0; font-size: 5.5px; font-weight: 700; color: #000;
  border-top: 0.5px solid #000; }
.pdfd-ist-zusammen { margin-top: 10px; border-top: 1px solid #000; padding-top: 3px; }
.pdfd-ist-zkopf { font-size: 6px; font-weight: 700; color: #000; margin-bottom: 2px; }
.pdfd-ist-unterschrift { margin-top: 14px; font-size: 5px; color: #000;
  display: flex; flex-direction: column; gap: 1px; }

.pdfd-ps { padding: 14px 16px; }
.pdfd-ps-titel { font-size: 11px; font-weight: 700; }
.pdfd-ps-info { font-size: 6px; color: gray; margin: 1px 0 6px 0; }
.pdfd-ps-kopf { display: flex; gap: 2px; align-items: center; padding: 2px;
  font-size: 5px; font-weight: 700; color: #fff; }
.pdfd-ps-kopf span { flex: 19; text-align: center; }
.pdfd-ps-kopf span:first-child { flex: 14; text-align: left; }
.pdfd-ps-kopf .pdfd-ps-kt { flex: 30; text-align: left; }
.pdfd-ps-kopf .pdfd-ps-oep { text-align: right; }
.pdfd-ps-zeile { display: flex; gap: 2px; padding: 3px 2px; background: #fff;
  border-bottom: .5px solid #E0E0E0; }
.pdfd-ps-zeile.grau { background: #F8F8F8; }
.pdfd-ps-fuss { display: flex; gap: 2px; padding: 2px; background: #DCDCE1;
  margin-top: 4px; }
.pdfd-ps-balken { flex: 1; height: 4px; background: #CCC; margin: 0 1px;
  align-self: center; }
.pdfd-ps-fuss .pdfd-ps-balken { height: 5px; }

.pdfd-dsg { padding: 18px 22px; }
.pdfd-dsg-kopf { display: grid; grid-template-columns: 24fr 52fr 24fr;
  align-items: center; }
.pdfd-dsg-logo img, .pdfd-dsg-rechts img { max-height: 22px; max-width: 100%; }
.pdfd-dsg-mitte { text-align: center; }
.pdfd-dsg-titel { font-weight: 700; }
.pdfd-dsg-unter { color: gray; }
.pdfd-dsg-rechts { text-align: right; color: gray; }
.pdfd-dsg-linie { height: 1.5px; margin: 5px 0 6px 0; }
.pdfd-dsg-thead { display: grid; gap: 2px; padding: 2px 3px; font-weight: 700; }
.pdfd-dsg-zeile { display: grid; gap: 2px; padding: 2px; }
.pdfd-dsg-zeile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfd-dsg-fusslinie { height: .5px; background: gray; margin: 12px 0 2px 0; }
.pdfd-dsg-fuss { color: gray; }

.pdfd-fuss { display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-tief); border-top: 1px solid var(--rand); padding: 9px 12px; }
.pdfd-fuss-rechts { display: flex; gap: 8px; }
.pdfd-namemodal { z-index: 1220; }
