/* ==========================================================================
   Stoffe (fa-) & Finanzen (fi-)
   ========================================================================== */

/* ---------- Stoffkachel ---------- */
.fa-swatch { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background-color: var(--sky-2); flex: none; }
.fa-swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fa-swatch.xs { width: 26px; height: 26px; border-radius: 7px; }
.fa-swatch.sm { width: 48px; height: 48px; border-radius: 10px; }
.fa-swatch.md { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.fa-swatch.lg { width: 100%; aspect-ratio: 1; border-radius: var(--r); }
.fa-swatch.card { width: 100%; height: 150px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.fa-swatch.fill { position: absolute; inset: 0; border: 0; border-radius: 0; }
.fa-swatch.pick { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
.fa-swatch.tile { width: 100%; aspect-ratio: 1; border-radius: 10px; }

/* Stoffbild-Auswahl */
.fa-designs { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-design { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 7px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); }
.fa-design .fa-swatch { border-radius: 50%; }
.fa-design:hover { border-color: var(--navy); color: var(--navy); }
.fa-design.active { border-color: var(--navy); background: var(--sky); color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }

/* ---------- Hub ---------- */
.fa-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; margin-bottom: var(--gap); }
.fa-quick-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); min-width: 0; transition: background .15s; }
.fa-quick-item:hover { background: var(--sky-2); }
.fa-quick-item:hover .fa-quick-arrow { transform: translateX(3px); color: var(--navy); }
.fa-quick-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.fa-quick-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.fa-quick-copy b { font-size: 14px; }
.fa-quick-copy small { font-size: 12px; color: var(--muted); }
.fa-quick-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.fa-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fa-hero { display: flex; align-items: stretch; gap: 20px; padding: 28px; min-height: 250px; transition: border-color .15s, box-shadow .15s; }
.fa-hero:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.fa-hero-copy { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.fa-hero-copy h2 { font-size: 26px; }
.fa-hero-copy p { max-width: 380px; }
.fa-hero-copy .panel-action { margin-top: auto; align-self: flex-start; }
.fa-hero-stats { gap: 6px; }
.fa-hero-visual { width: 150px; flex: none; display: grid; place-items: center; position: relative; }
.fa-fan .fa-swatch { position: absolute; width: 92px; height: 120px; border-radius: 12px; box-shadow: var(--shadow); }
.fa-fan .fan-0 { transform: rotate(-14deg) translateX(-26px); }
.fa-fan .fan-1 { transform: rotate(-7deg) translateX(-12px); }
.fa-fan .fan-2 { transform: rotate(0deg); }
.fa-fan .fan-3 { transform: rotate(7deg) translateX(12px); }
.fa-fan .fan-4 { transform: rotate(14deg) translateX(26px); }

/* Scanner-Rahmen mit Eckmarken */
.fa-scan-frame { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--sky-2); border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; }
.fa-scan-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fa-scan-frame i { position: absolute; width: 28px; height: 28px; border: 3px solid var(--navy); z-index: 1; }
.fa-scan-frame i:nth-of-type(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.fa-scan-frame i:nth-of-type(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.fa-scan-frame i:nth-of-type(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.fa-scan-frame i:nth-of-type(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.fa-scan-frame.mini { width: 130px; border-style: solid; box-shadow: var(--shadow); }
.fa-scan-frame.mini i { width: 18px; height: 18px; }
.fa-scan-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }

/* ---------- Mobile Scanner ---------- */
.fa-capture-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.fa-capture { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center; }
.fa-capture-actions { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fa-file-btn { position: relative; cursor: pointer; white-space: normal; text-align: center; height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; }
.fa-file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fa-file-btn:focus-within { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.fa-file-btn.disabled { opacity: .5; pointer-events: none; }
.fa-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--sky-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.fa-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); flex: none; }
.fa-dot.busy { background: var(--blue); box-shadow: 0 0 0 4px var(--sky); animation: fa-pulse 1s ease-in-out infinite; }
@keyframes fa-pulse { 50% { opacity: .35; } }
.fa-stack, .fa-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fa-stack-item, .fa-log li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fa-stack-item:last-child, .fa-log li:last-child { border-bottom: 0; }
.fa-stack { max-height: 560px; overflow-y: auto; }
.fa-stack-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.fa-stack-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-stack-copy small { font-size: 12px; color: var(--muted); }
.fa-stack-actions { gap: 6px; flex-wrap: nowrap; }
.fa-ok { color: var(--ok); font-weight: 700; letter-spacing: .06em; }
.fa-wait { color: var(--warn); font-weight: 700; letter-spacing: .06em; }

/* ---------- Labeling Desk ---------- */
.fa-live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: fa-pulse 1.6s ease-in-out infinite; }
.fa-desk { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.fa-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.fa-queue-item { display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 14px; border: 2px solid transparent; background: none; text-align: center; }
.fa-queue-item small { font-size: 11px; color: var(--muted); }
.fa-queue-item:hover { background: var(--sky-2); }
.fa-queue-item.active { border-color: var(--navy); background: var(--sky); }
.fa-tag-form { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.fa-tag-photo { display: flex; flex-direction: column; gap: 6px; }
.fa-log-tools { gap: 10px; margin-bottom: 8px; }
.fa-log-tools .searchbox { min-width: 0; }
.fa-log { max-height: 620px; overflow-y: auto; }

/* Label (Vorschau im Dialog + Druck) */
.fa-label-stage { display: grid; place-items: center; padding: 22px 12px; margin-bottom: 14px; border-radius: var(--r); background: var(--sky-2); border: 1px dashed var(--line-2); }
.fa-label { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 380px; padding: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; color: #000; }
.fa-label .qr { border: 0; padding: 0; }
.fa-label-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fa-label-brand { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.fa-label-title { font-size: 15px; line-height: 1.25; }
.fa-label-meta { font-size: 11.5px; color: #333; }
.fa-label-code { margin-top: 4px; font-size: 15px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* ---------- Stoffkatalog ---------- */
.fa-kpis { margin-bottom: var(--gap); }
.fa-filter-panel { margin-bottom: var(--gap); }
.fa-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 170px)) minmax(0, 1fr); gap: 10px; align-items: center; }
.fa-filters .searchbox { min-width: 0; }
.fa-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.fa-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.fa-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.fa-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; flex: 1; }
.fa-card-body .eyebrow { margin: 0; }
.fa-card-title { font-size: 15px; line-height: 1.3; }
.fa-card-row { margin-top: 6px; }
.fa-price { font-size: 14px; color: var(--navy); font-variant-numeric: tabular-nums; }
.fa-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.fa-card:hover .fa-card-link { color: var(--navy); }
.fa-editor-photo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.fa-editor-side { gap: 10px; align-items: flex-start; }
.fa-editor-side .kv { align-self: stretch; }
.fa-danger-text { color: var(--danger); }
.fa-foot-count { margin-right: auto; align-self: center; }

/* ---------- Kundenauswahlen ---------- */
.fa-sel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fa-sel-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.fa-sel-name { font-size: 16px; font-weight: 700; }
a.fa-sel-name:hover { color: var(--blue); }
.fa-sel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.fa-sel-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fa-sel-tile b { font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fa-sel-tile small { font-size: 11px; color: var(--muted); }
.fa-sel-tile:hover .fa-swatch { border-color: var(--navy); }
.fa-sel-foot { padding-top: 14px; border-top: 1px solid var(--line); }
.fa-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fa-pick { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; min-width: 0; }
.fa-pick b { font-size: 12.5px; line-height: 1.3; }
.fa-pick small { font-size: 11px; color: var(--muted); }
.fa-pick:hover { border-color: var(--line-2); }
.fa-pick.active { border-color: var(--navy); background: var(--sky); }
.fa-pick-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }

/* ---------- Finanzen ---------- */
.fi-kpis { margin-bottom: var(--gap); }
.fi-kpi-money { font-size: 24px; }
.fi-table-tools { display: flex; flex-direction: column; gap: 12px; padding: 10px 20px 14px; }
.fi-table-tools .searchbox { min-width: 0; }
.fi-pad { padding: 0 20px 20px; }
.fi-nowrap { white-space: nowrap; }
.fi-neg { color: var(--danger); }
.fi-search { flex: 0 1 380px; min-width: 0; display: flex; }
.fi-search .searchbox { min-width: 0; }
.fi-actions { display: inline-flex; align-items: center; gap: 12px; justify-content: flex-end; }
.fi-num-btn { border: 0; background: none; padding: 0; font: inherit; }
.fi-num-btn:hover { text-decoration: underline; }
.fi-h4 { font-size: 15px; margin-bottom: 4px; }

/* Rechnung */
.modal:has(.fi-inv-stage) { width: min(820px, 100%); }
.fi-inv-stage { background: var(--sky-2); border-radius: var(--r); padding: 14px; }
.fi-invoice { position: relative; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 32px; font-size: 13px; display: flex; flex-direction: column; gap: 24px; }
.fi-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 3px solid var(--navy); flex-wrap: wrap; }
.fi-inv-brand { display: flex; flex-direction: column; }
.fi-inv-brand b { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.fi-inv-brand span { font-size: 12px; color: var(--muted); }
.fi-inv-title { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.fi-inv-title span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.fi-inv-title b { font-size: 18px; }
.fi-inv-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fi-inv-meta > div { display: flex; flex-direction: column; line-height: 1.5; }
.fi-inv-meta small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fi-inv-meta dl { margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 18px; row-gap: 3px; }
.fi-inv-meta dl div { display: contents; }
.fi-inv-meta dt { color: var(--muted); }
.fi-inv-meta dd { margin: 0; font-weight: 600; text-align: right; }
.fi-inv-lines { width: 100%; border-collapse: collapse; }
.fi-inv-lines th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.fi-inv-lines td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fi-inv-lines .right { text-align: right; white-space: nowrap; }
.fi-inv-lines td small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.fi-inv-sum { align-self: flex-end; width: min(320px, 100%); display: flex; flex-direction: column; gap: 4px; }
.fi-inv-sum div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.fi-inv-sum div span:first-child { color: var(--muted); }
.fi-inv-sum .total { margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--navy); font-size: 15px; font-weight: 800; }
.fi-inv-sum .total span:first-child { color: var(--ink); }
.fi-inv-foot { padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.fi-stamp { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); padding: 6px 22px; border: 4px solid var(--danger); border-radius: 10px; color: var(--danger); font-size: 38px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .28; pointer-events: none; }

/* Kassenbuch */
.fi-cash-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.fi-cash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fi-cash-stats .stat-mini { padding: 12px 14px; border-radius: var(--r); background: var(--sky-2); border: 1px solid var(--line); min-width: 0; }
.fi-cash-stats .stat-mini b { font-size: 18px; white-space: nowrap; }
.fi-in b { color: var(--ok); }
.fi-out b { color: var(--danger); }
.fi-balance { background: var(--navy) !important; border-color: var(--navy) !important; }
.fi-balance b { color: #fff; }
.fi-balance span { color: #b9c8de !important; }
.fi-entry-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); }
.fi-entry-fields { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.fi-entry-btn { height: 44px; }
.fi-entries { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.fi-entry { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fi-entry:last-child { border-bottom: 0; }
.fi-entry-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fi-entry.in .fi-entry-ic { background: var(--ok-bg); color: var(--ok); }
.fi-entry.out .fi-entry-ic { background: var(--danger-bg); color: var(--danger); }
.fi-entry-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.fi-entry-copy b { overflow-wrap: anywhere; }
.fi-entry-copy small { font-size: 12px; color: var(--muted); }
.fi-entry-amt { white-space: nowrap; }
.fi-entry.in .fi-entry-amt { color: var(--ok); }
.fi-entry.out .fi-entry-amt { color: var(--danger); }
.fi-hist-tools { justify-content: flex-end; margin: -4px 0 10px; }

/* Detail-Panel „Fabric Scanner“ */
.fa-card.archived { opacity: .6; }
.fa-detail-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; }
.fa-detail-copy { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.fa-detail-copy h3 { font-size: 20px; overflow-wrap: anywhere; }
.fa-detail-desc { color: var(--ink); white-space: pre-line; }
.fa-detail-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fa-detail-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sky-2); min-width: 0; }
.fa-detail-qr .eyebrow { margin: 0; }
.fa-barcode { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.fa-bars { display: flex; align-items: stretch; height: 64px; padding: 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fa-bars i { display: block; flex: none; background: var(--navy); }
.fa-barcode .mono { font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.fa-foot-file { min-height: 40px; height: 40px; padding-top: 0; padding-bottom: 0; }

/* Inline-Erstattung */
.fi-amt { align-items: flex-end; }
.table tbody tr.fi-row-open td { background: var(--sky-2); border-bottom: 0; }
.table tbody tr.fi-refund-row td { background: var(--sky-2); padding-top: 4px; }
.table tbody tr.fi-refund-row:hover td { background: var(--sky-2); }
.fi-refund { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.fi-refund .field-hint { position: absolute; }
.fi-refund .field { position: relative; padding-bottom: 16px; }
.fi-refund-btns { display: flex; gap: 8px; padding-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .fa-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-capture { grid-template-columns: 1fr; justify-items: center; }
  .fa-capture-actions { width: 100%; }
  .fa-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-filters .searchbox { grid-column: 1 / -1; }
  .fi-cash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fa-desk, .fa-capture-grid, .fi-cash-grid { grid-template-columns: 1fr; }
  .fa-hero-visual { display: none; }
}
@media (max-width: 760px) {
  .fa-quick, .fa-hero-grid, .fa-filters { grid-template-columns: 1fr; }
  .fa-hero { padding: 20px; min-height: 0; }
  .fa-hero-copy h2 { font-size: 22px; }
  .fa-tag-form, .fa-editor-photo { grid-template-columns: 1fr; }
  .fa-tag-photo, .fa-editor-photo > .fa-swatch { max-width: 220px; }
  .fa-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .fa-swatch.card { height: 110px; }
  .fa-pick-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .fa-sel-tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .fi-table-tools { padding: 8px 16px 12px; }
  .fi-pad { padding: 0 16px 16px; }
  .fi-search { flex: 1 1 100%; }
  .fi-entry-fields, .fi-refund, .fa-detail-codes { grid-template-columns: 1fr; }
  .fa-detail-head { grid-template-columns: 110px minmax(0, 1fr); }
  .fi-refund-btns { padding-bottom: 0; }
  .fi-invoice { padding: 18px; gap: 18px; }
  .fi-inv-stage { padding: 0; background: none; }
  .fi-inv-meta dl { grid-template-columns: auto 1fr; }
  .fi-inv-lines th:first-child, .fi-inv-lines td:first-child { display: none; }
}

/* ---------- Druck: nur Label bzw. Rechnung ---------- */
.fa-print-root, .fi-print-root { display: none; }
@media print {
  body.fa-printing > *:not(.fa-print-root),
  body.fi-printing > *:not(.fi-print-root) { display: none !important; }
  body.fa-printing .fa-print-root,
  body.fi-printing .fi-print-root { display: block; }
  body.fa-printing, body.fi-printing { background: #fff; }
  .fa-print-root .fa-label { width: 90mm; max-width: none; padding: 4mm; border: .3mm solid #000; border-radius: 2mm; break-inside: avoid; }
  .fa-print-root .fa-label .qr { width: 26mm !important; height: 26mm !important; }
  .fi-print-root .fi-invoice { border: 0; border-radius: 0; padding: 0; font-size: 11pt; }
  .fi-print-root .fi-inv-lines tr { break-inside: avoid; }
  .fa-print-root *, .fi-print-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
