/* Faktura: Listen, Editor, Summenleiste. Flower-Market-Klassen (btn, card, inp, badge) bleiben die Basis. */
.fak-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.fak-tabs a { text-decoration: none; padding: 8px 12px; border-radius: 999px; background: #f4f1ea; color: #212529; font-weight: 600; }
.fak-tabs a.on { background: #212529; color: #fff; }
.fak-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fak-filters .inp { max-width: 220px; }
.fak-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.bdg { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.bdg-draft { background: #f1f3f5; color: #495057; }
.bdg-final { background: #e7f5ee; color: #0b6b3a; }
.bdg-sent { background: #e7f0ff; color: #1c4e9c; }
.bdg-datev { background: #fff4e0; color: #8a5a00; }
.bdg-sev { background: #f3e8ff; color: #6b2d9b; }
.bdg-dup { background: #ffe8e8; color: #9b1c1c; }
.fak-table { width: 100%; border-collapse: collapse; }
.fak-table th { text-align: left; font-size: 12px; color: #868e96; font-weight: 600; padding: 6px 4px; }
.fak-table td { padding: 8px 4px; border-top: 1px solid #eee; vertical-align: middle; }
.fak-cards { display: none; }
.fak-pos { display: grid; grid-template-columns: minmax(140px, 2fr) 72px 88px 78px 72px 36px; gap: 6px; align-items: end; padding: 6px 0; border-top: 1px solid #eee; }
.fak-lab { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fak-lab small { display: none; }
.fak-pos-head { border-top: 0; font-size: 12px; color: #868e96; font-weight: 600; }
.fak-positions { margin-bottom: 8px; }
.fak-line { display: grid; grid-template-columns: 1.4fr .6fr .8fr .6fr auto; gap: 6px; align-items: center; }
.fak-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border-top: 1px solid #212529; padding: 10px 12px; margin: 12px -12px -12px;
  box-shadow: 0 -8px 24px rgba(33, 37, 41, .06);
}
.fak-bar b { font-size: 1.15rem; }
.fak-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.fak-note { font-size: 13px; color: #6c757d; }
.fak-combo { position: relative; }
.fak-menu { position: absolute; z-index: 6; left: 0; right: 0; background: #fff; border: 1px solid #dee2e6; border-radius: 10px; max-height: 240px; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.fak-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; }
.fak-menu button.on, .fak-menu button:hover { background: #f4f1ea; }
.fak-preview { width: 100%; height: 72vh; border: 1px solid #dee2e6; border-radius: 12px; background: #f8f9fa; }
.fak-warn { background: #fff8e6; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
@media (max-width: 720px) {
  .fak-list .fak-table { display: none; }
  .fak-list .fak-cards { display: flex; flex-direction: column; gap: 8px; }
  .fak-card { border: 1px solid #eee; border-radius: 12px; padding: 10px; display: grid; gap: 6px; text-decoration: none; color: inherit; }
  .fak-line { grid-template-columns: 1fr 1fr; }
  .fak-pos { grid-template-columns: 1fr 1fr; }
  .fak-pos .fak-combo { grid-column: 1 / -1; }
  .fak-lab small { display: block; font-size: 11px; color: #868e96; font-weight: 600; }
  .fak-pos-head { display: none; }
  .fak-bar { margin: 12px -8px -8px; }
}
.fak-extra{display:contents}
.fak-extra a{opacity:.75}
.fak-artlink{display:inline-block;margin-top:4px;font-size:12px;color:var(--accent,#2f6f4f);text-decoration:none}
.fak-artlink:hover{text-decoration:underline}
.fak-artbeleg{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:6px 0;border-top:1px solid rgba(0,0,0,.08);text-decoration:none;color:inherit;font-size:14px}
.bdg-exp-red { background: #ffe8e8; color: #9b1c1c; }
.bdg-exp-yellow { background: #fff4e0; color: #8a5a00; }
.bdg-exp-green { background: #e7f5ee; color: #0b6b3a; }
.fak-exp h3 { margin: 0 0 6px; }
.fak-exp-slot { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(120px, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #eee; }
.fak-exp-slot small { color: #868e96; font-weight: 600; }
.fak-exp-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fak-exp-extra { display: flex; gap: 8px; align-items: center; margin: 2px 0; }
.fak-exp textarea.inp { width: 100%; min-height: 72px; }
@media (max-width: 720px) {
  .fak-exp-slot { grid-template-columns: 1fr; }
}
