/* Module Operations, Sales, Finance: KPI-Leiste, Ampeln, Diagramme, Planungsansicht */
:root { --ok: #314003; --ok-soft: #ECEFE1; --warn: #C2390B; --warn-soft: #FFEDE5; --bad: #9B2C4B; --bad-soft: #F7E6EB;
  --ist: #111111; --fc: #FF4D15; --band: #FFD9CB; --plan: #314003; --in: #8FA35A; --out: #C9C1B8; }
/* Navigation oben, damit die Seiten die volle Breite haben */
.app { min-height: 100%; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 10px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--fg); flex: none; }
.top-brand .logo { width: 118px; max-width: 118px; }
.topnav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.topnav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.topnav a:hover { background: var(--surface-2); color: var(--fg); }
.topnav a[aria-current="page"] { background: var(--surface-2); color: var(--fg); font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange); }
.topnav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; flex: none; }
.me-menu { position: relative; flex: none; }
.me-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.me-menu summary::-webkit-details-marker { display: none; }
.me-menu summary:hover { background: var(--surface-2); }
.me-menu .avatar { width: 30px; height: 30px; font-size: .72rem; }
.me-name { font-size: .88rem; font-weight: 500; }
.me-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 6px; }
.main-wide { padding: 24px 28px 60px; }
.main-wide .page { max-width: 1680px; }
@media (max-width: 860px) {
  .topbar { padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .top-brand .logo { width: 96px; }
  .top-brand .brand-tag, .me-name { display: none; }
  .topnav { order: 3; flex-basis: 100%; }
  .main-wide { padding: 16px 12px 40px; }
}
.demo-banner { border: 1px dashed var(--orange); background: var(--pend-soft); border-radius: 10px; padding: 9px 14px; font-size: .86rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; vertical-align: middle; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--orange); }
.dot-bad { background: var(--bad); }
.by-claude { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--pend-ink); background: var(--pend-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; text-transform: none; }
.by-claude::before { content: "\2726"; font-size: .7rem; }
.mono { font-family: var(--font-mono); font-size: .82rem; }
.link-chip { text-decoration: none; }
.link-chip:hover { color: var(--fg); }

.kpi-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; min-height: 112px; }
.kpi:hover { border-color: var(--muted); }
.kpi.is-bad { box-shadow: inset 3px 0 0 var(--bad); }
.kpi.is-warn { box-shadow: inset 3px 0 0 var(--orange); }
.kpi.is-ok { box-shadow: inset 3px 0 0 var(--ok); }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.kpi-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi-delta { font-size: .78rem; color: var(--muted); }
.kpi .spark { position: absolute; right: 12px; bottom: 10px; opacity: .9; }
.kpi:has(.spark) .kpi-delta { padding-right: 100px; }
.spark-line { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.spark-dot { fill: var(--orange); }

.pill.p-ok { background: var(--ok-soft); color: var(--ok); }
.pill.p-warn { background: var(--warn-soft); color: var(--warn); }
.pill.p-bad { background: var(--bad-soft); color: var(--bad); }
.pill.p-neutral { background: var(--surface-2); color: var(--muted); }
.pill.p-st-vorschlag { background: var(--pend-soft); color: var(--pend-ink); }
.pill.p-st-angenommen, .pill.p-st-freigegeben { background: var(--ok-soft); color: var(--ok); }
.pill.p-st-geandert, .pill.p-st-geplant { background: #E7F1FB; color: #1F4F82; }
.pill.p-st-idee { background: var(--surface-2); color: var(--muted); }
.legend i.lg-ok { background: var(--ok-soft); border: 1px solid var(--ok); }
.legend i.lg-warn { background: var(--warn-soft); border: 1px solid var(--orange); }
.legend i.lg-bad { background: var(--bad-soft); border: 1px solid var(--bad); }

table.grid-t td, table.grid-t th { white-space: nowrap; }
table.t td.num, table.t th.num { white-space: nowrap; text-align: right; }
table.grid-t td.cell-ok { background: var(--ok-soft); }
table.grid-t td.cell-warn { background: var(--warn-soft); }
table.grid-t td.cell-bad { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
table.grid-t td.is-short { box-shadow: inset 0 -3px 0 var(--bad); }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 210px; }
.drag-scroll { cursor: grab; }
.drag-scroll.is-dragging { cursor: grabbing; user-select: none; }

/* Sales */
.stage-list { display: grid; gap: 10px; }
.stage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name num" "bar bar"; gap: 4px 12px; align-items: end; }
.stage-row .stage-name { grid-area: name; }
.stage-row .stage-bar { grid-area: bar; }
.stage-row .stage-num { grid-area: num; }
.stage-name { display: grid; }
.stage-name strong { font-weight: 600; font-size: .9rem; }
.stage-bar { width: 100%; height: 14px; display: block; }
.bar-val { fill: var(--line); }
.bar-weighted { fill: var(--fg); }
.stage-num { text-align: right; font-size: .88rem; }
.legend i.lg-val { background: var(--line); }
.legend i.lg-weighted { background: var(--fg); }

/* Diagramme */
.chart { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--font-body); }
.chart .c-exp { fill: var(--fg); }
.chart .c-sure { fill: var(--ok); }
.liq .l-ist { fill: none; stroke: var(--ist); stroke-width: 2.5; }
.liq .l-fc { fill: none; stroke: var(--fc); stroke-width: 2.5; stroke-dasharray: 6 5; }
.liq .l-plan { fill: none; stroke: var(--plan); stroke-width: 1.8; stroke-dasharray: 2 4; }
.liq .band { fill: var(--band); opacity: .5; }
.liq .l-edge { fill: none; stroke: var(--fc); stroke-width: 1.2; opacity: .7; }
.liq .minline { stroke: var(--bad); stroke-width: 1.2; stroke-dasharray: 8 4; }
.liq .min-label { fill: var(--bad); }
.liq .fc-zone { fill: #FAF8F6; }
.liq .today { stroke: var(--orange); stroke-width: 1.5; }
.liq .today-label { fill: var(--pend-ink); font-weight: 600; }
.liq .year { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.liq .year-label { font-weight: 600; fill: var(--fg); }
.liq .pt-ist { fill: var(--ist); }
.liq .pt-fc { fill: var(--surface); stroke: var(--fc); stroke-width: 1.5; }
.liq .b-in { fill: var(--in); }
.liq .b-out { fill: var(--out); }
.liq .is-fc { opacity: .55; }
.liq .zero { stroke: var(--muted); stroke-width: 1; }
.legend i.lg-ist { background: var(--ist); height: 3px; }
.legend i.lg-fc { background: repeating-linear-gradient(90deg, var(--fc) 0 5px, transparent 5px 8px); height: 3px; }
.legend i.lg-band { background: var(--band); }
.legend i.lg-plan { background: repeating-linear-gradient(90deg, var(--plan) 0 2px, transparent 2px 5px); height: 3px; }
.legend i.lg-min { background: repeating-linear-gradient(90deg, var(--bad) 0 6px, transparent 6px 9px); height: 2px; }
.legend i.lg-in { background: var(--in); }
.legend i.lg-out { background: var(--out); }

/* Planungsansicht: feste Spalte links, ziehbare Monate rechts, Zeilen gleich hoch */
.plan { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan-left { border-right: 1px solid var(--line); background: var(--surface); }
.plan-axis { height: 330px; display: flex; justify-content: flex-end; }
.plan-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.plan-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.plan-chart { height: 330px; }
table.plan-t { border-collapse: collapse; font-size: .84rem; }
table.plan-labels { width: 100%; }
table.plan-values { table-layout: fixed; width: max-content; }
table.plan-t th, table.plan-t td { height: 34px; padding: 0 10px; border-top: 1px solid var(--line); white-space: nowrap; }
table.plan-t th { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-align: right; background: var(--surface-2); }
table.plan-labels th { text-align: left; }
table.plan-values th.is-fc { color: var(--pend-ink); background: #FFF3ED; }
table.plan-values th.year-start { border-left: 1px solid var(--muted); }
table.plan-values td.is-fc { color: #6A5F55; background: #FFFCFA; }
table.plan-values td.neg { color: var(--bad); }
table.plan-t tr.r-balance td { font-weight: 600; background: var(--surface-2); }
table.plan-t tr.r-group td { font-weight: 600; }
table.plan-t tr.r-delta td { font-style: italic; color: var(--muted); }
table.plan-labels tr.lvl-1 td { padding-left: 26px; }
table.plan-labels tr.lvl-2 td { padding-left: 44px; color: var(--muted); }
table.plan-values tr.lvl-2 td { color: var(--muted); }
table.plan-labels tr.lvl-1 td, table.plan-labels tr.lvl-2 td { font-weight: 400; }
.tree-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: inherit; display: inline-flex; align-items: center; gap: 6px; }
.tree-btn::before { content: "\25B8"; font-size: .7rem; color: var(--muted); transition: transform .12s; display: inline-block; width: 10px; }
.tree-btn[aria-expanded="true"]::before { transform: rotate(90deg); }
.tree-label { padding-left: 16px; display: inline-block; }
table.plan-labels tr.lvl-2 .tree-label { padding-left: 0; }
.overview { position: relative; height: 40px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; touch-action: none; }
.overview-svg { width: 100%; height: 100%; display: block; }
.overview-svg .l-ist { fill: none; stroke: var(--ist); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.overview-svg .l-fc { fill: none; stroke: var(--fc); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.overview-svg .year { stroke: var(--muted); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.ov-window { position: absolute; top: -1px; bottom: -1px; left: 0; width: 40px; border: 2px solid var(--fg); border-radius: 8px; background: rgba(255,255,255,.35); pointer-events: none; }
.seg-nav { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-nav a { padding: 6px 12px; font-size: .85rem; text-decoration: none; color: var(--muted); border-left: 1px solid var(--line); }
.seg-nav a:first-child { border-left: 0; }
.seg-nav a[aria-current="page"] { background: var(--fg); color: #FFFFFF; }
@media (max-width: 700px) { .plan { grid-template-columns: 150px minmax(0, 1fr); } }

.runway { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rw { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.rw.main { background: var(--pend-soft); }
.rw-big { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; }
@media (max-width: 520px) { .runway { grid-template-columns: 1fr; } }

/* Mouseover, Wertbeschriftung, Herkunft */
.plan { position: relative; }
.plan-tip { position: absolute; z-index: 15; width: 330px; background: var(--fg); color: #FFFFFF; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); font-size: .8rem; pointer-events: none; display: grid; gap: 2px; }
.tip-head { font-family: var(--font-display); font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.tip-row { display: flex; justify-content: space-between; gap: 12px; }
.tip-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-row .num { white-space: nowrap; flex: none; }
.tip-row span:first-child { min-width: 0; }
.plan-tip { width: auto; min-width: 300px; max-width: 440px; }
.tip-strong { font-weight: 700; font-size: .88rem; }
.tip-in, .tip-out { margin-top: 6px; font-weight: 600; border-top: 1px solid rgba(255,255,255,.2); padding-top: 4px; }
.tip-in { color: #C9DB97; }
.tip-out { color: #F0C2B0; }
.tip-sub { color: rgba(255,255,255,.75); padding-left: 10px; }
.liq .pt-label { font: 600 10px var(--font-body); fill: var(--fg); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; }
.liq .hover-line { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 3 3; }
.liq .b-new { fill: #FF8A5C; }
.liq .b-other { fill: #B9A3D9; }
.legend i.lg-new { background: #FF8A5C; }
.legend i.lg-other { background: #B9A3D9; }
table.plan-labels tr.lvl-3 td { padding-left: 60px; color: var(--muted); font-size: .8rem; }
table.plan-labels td { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
table.plan-values tr.lvl-3 td { color: var(--muted); font-size: .8rem; }
.source-list { display: grid; gap: 8px; }
.source-row { display: grid; grid-template-columns: 82px minmax(0, 1.3fr) minmax(60px, 1fr) 70px; gap: 10px; align-items: center; font-size: .88rem; }
.src-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-bar { width: 100%; height: 10px; display: block; }
.src-kind { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; text-align: center; white-space: nowrap; }
.src-bestand { background: var(--ok-soft); color: var(--ok); }
.src-neu { background: #FFE6DB; color: var(--pend-ink); }
.src-roh, .src-lohnh { background: var(--surface-2); color: var(--muted); }
.bar-bestand { fill: var(--in); }
.bar-neu { fill: #FF8A5C; }
.bar-out { fill: var(--out); }

/* Bestell- und Produktionsplan */
table.plan-grid td { vertical-align: top; min-width: 86px; padding: 6px; }
.ev { font-size: .74rem; font-weight: 600; border-radius: 6px; padding: 2px 6px; margin-bottom: 3px; white-space: nowrap; border: 1px dashed transparent; }
.ev-order { background: #FFE6DB; color: var(--pend-ink); }
.ev-delivery { background: var(--ok-soft); color: var(--ok); }
.ev-pay { background: #EEE9F7; color: #4B3A73; }
.ev.is-fixed { border: 1px solid currentColor; }
.ev.is-planned { opacity: .55; }
.legend i.lg-order { background: #FFE6DB; border: 1px solid var(--pend-ink); }
.legend i.lg-deliv { background: var(--ok-soft); border: 1px solid var(--ok); }
.legend i.lg-pay { background: #EEE9F7; border: 1px solid #4B3A73; }

/* Umsatzerwartung */
table.rev-t td.rev-cell { cursor: help; }
table.rev-t td.is-sure { background: var(--ok-soft); }
table.rev-t td.is-first { background: #FFE6DB; }
table.rev-t td.is-re { background: #FFF6F1; }
table.rev-t tr.rev-group td { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
table.rev-t tr.rev-total td { border-top: 2px solid var(--fg); }
.legend i.lg-sure { background: var(--ok-soft); border: 1px solid var(--ok); }
.legend i.lg-first { background: #FFE6DB; }
.legend i.lg-re { background: #FFF6F1; border: 1px solid #FFD9CB; }

/* Szenarien Low, Mid, High */
.liq .l-sure { fill: none; stroke: #8A8379; stroke-width: 1.5; stroke-dasharray: 1 4; stroke-linecap: round; }
.liq .l-low { fill: none; stroke: #9B2C4B; stroke-width: 2; }
.liq .l-high { fill: none; stroke: #314003; stroke-width: 2; }
.liq .line-end { font-weight: 600; }
.liq .l-low-label { fill: #9B2C4B; } .liq .l-high-label { fill: #314003; } .liq .l-fc-label { fill: var(--pend-ink); } .liq .l-sure-label { fill: #8A8379; }
.legend i.lg-low { background: #9B2C4B; height: 3px; } .legend i.lg-high { background: #314003; height: 3px; }
.legend i.lg-sure { background: repeating-linear-gradient(90deg, #8A8379 0 2px, transparent 2px 5px); height: 3px; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.scenario.is-main { border-color: var(--orange); box-shadow: inset 0 3px 0 var(--orange); }
.scenario.sc-low { box-shadow: inset 0 3px 0 #9B2C4B; } .scenario.sc-high { box-shadow: inset 0 3px 0 #314003; }
.scenario .rw-big small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.assumptions { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .88rem; }

/* Sales: erwartete Bestellungen je Monat */
.rev-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.rev-controls select { margin-left: 6px; }
.rev-years .kpi { min-height: 0; }
.rev-wrap { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); margin-top: 8px; }
.rev-scroll { overflow-x: auto; }
.rev-chart .hit { fill: transparent; }
.rev-chart .hit:hover { fill: rgba(17, 17, 17, .04); }
.rev-chart .seg { stroke: #FFFFFF; stroke-width: .6; }
.rev-chart .bar-total { font: 600 10px var(--font-body); fill: var(--fg); }
.rev-chart .now { fill: var(--pend-ink); font-weight: 700; }
.rev-chart .year { stroke: var(--muted); stroke-dasharray: 2 3; }
.rev-chart .year-label { font-weight: 600; fill: var(--fg); }
.leg-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 4px; cursor: pointer; color: var(--fg); font-size: .8rem; border-radius: 6px; }
.leg-btn:hover { background: var(--surface-2); }
.leg-btn.is-off { opacity: .4; text-decoration: line-through; }
.leg-btn .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.k-bestand { fill: #6F8A2E; background: #6F8A2E; }
.k-neu { fill: #FF8A5C; background: #FF8A5C; }
.k-sure { fill: #314003; background: #314003; }
.k-first { fill: #FF4D15; background: #FF4D15; }
.k-re { fill: #FFB599; background: #FFB599; }
.p0 { fill: #314003; background: #314003; }
.p1 { fill: #FF4D15; background: #FF4D15; }
.p2 { fill: #4B6CB7; background: #4B6CB7; }
.p3 { fill: #B9A3D9; background: #B9A3D9; }
.p4 { fill: #8FA35A; background: #8FA35A; }
.p5 { fill: #FFB599; background: #FFB599; }
.p6 { fill: #9B2C4B; background: #9B2C4B; }
.p7 { fill: #6D6862; background: #6D6862; }
.p-rest { fill: #DDD8D1; background: #DDD8D1; }

/* Szenarien in der Planungsansicht */
.scenario-nav a { display: inline-flex; gap: 6px; align-items: baseline; }
.rw-chip { font-size: .72rem; opacity: .75; }
.scenario-note { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.liq .edge-label { font-weight: 700; }

/* Produktionsplan: Zeitstrahl und Produktionen */
.gantt .g-col { fill: #FFFFFF; } .gantt .g-col-alt { fill: #FAF8F6; }
.gantt .g-label { font: 600 12px var(--font-body); fill: var(--fg); }
.gantt a:hover .g-label { fill: var(--pend-ink); text-decoration: underline; }
.gantt .g-mat { fill: #EEE9F7; stroke: #4B3A73; stroke-width: 1; stroke-dasharray: 3 2; }
.gantt .g-prod { fill: #FF8A5C; } .gantt .g-prod.is-fixed { fill: #314003; }
.gantt .g-use { fill: var(--ok-soft); stroke: #8FA35A; stroke-width: 1; }
.gantt .g-pay { fill: #4B3A73; stroke: #FFFFFF; stroke-width: 1.5; }
.legend i.lg-gmat { background: #EEE9F7; border: 1px dashed #4B3A73; } .legend i.lg-gprod { background: #FF8A5C; }
.legend i.lg-guse { background: var(--ok-soft); border: 1px solid #8FA35A; } .legend i.lg-gpay { background: #4B3A73; border-radius: 50%; }
.run-card > summary { list-style: none; cursor: pointer; }
.run-card > summary::-webkit-details-marker { display: none; }
.run-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.run-head::before { content: "\25B8"; color: var(--muted); font-size: .8rem; transition: transform .12s; }
.run-card[open] .run-head::before { transform: rotate(90deg); }
.run-title { font-family: var(--font-display); font-size: 1.05rem; }
.run-cost { margin-left: auto; font-weight: 600; }
.run-why { margin: 10px 0 14px; }
.run-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(520px, 1.8fr) minmax(260px, 1fr); gap: 22px; }
.run-grid h3 { margin-bottom: 4px; }
@media (max-width: 1100px) { .run-grid { grid-template-columns: 1fr; } }
table.t.compact td, table.t.compact th { padding: 6px 8px; font-size: .85rem; }
table.t.compact tr.sum-row td { border-top: 1.5px solid var(--fg); font-weight: 600; }

/* Produktionsslots je Produkt */
.lanes .lane-bg { fill: #FFFFFF; stroke: var(--line); }
.lanes a:hover .lane-bg { fill: #FFF8F4; stroke: var(--orange); }
.lanes a:hover .g-label { fill: var(--pend-ink); }
.lanes .g-label { font: 600 13px var(--font-body); fill: var(--fg); }
.lanes .lane-ok { fill: var(--ok-soft); } .lanes .lane-warn { fill: #FFD9CB; } .lanes .lane-bad { fill: #E8A0B4; }
.lanes .slot-fixed { fill: #314003; } .lanes .slot-now { fill: #FF4D15; } .lanes .slot-plan { fill: #FFB599; }
.lanes .slot-label { font: 600 11px var(--font-body); fill: #FFFFFF; }
.lanes .slot-plan + .slot-label { fill: var(--fg); }
.lanes .mat-dot { fill: #4B3A73; stroke: #FFFFFF; stroke-width: 1.5; }
.legend i.lg-sfixed { background: #314003; } .legend i.lg-snow { background: #FF4D15; } .legend i.lg-splan { background: #FFB599; }
.legend i.lg-matdot { background: #4B3A73; border-radius: 50%; }

/* Produktseite */
.pchart-wrap { grid-template-columns: 74px minmax(0, 1fr); }
.pchart .d-sure { fill: #314003; } .pchart .d-exp { fill: #FFB599; }
.pchart .stock-line { fill: none; stroke: var(--fg); stroke-width: 2.2; }
.pchart .pt-ok { fill: var(--fg); } .pchart .pt-warn { fill: var(--orange); } .pchart .pt-bad { fill: var(--bad); }
.pchart .arrival { fill: var(--ok); } .pchart .arrival-label { font: 700 10px var(--font-body); fill: var(--ok); }
.pchart .zero { stroke: var(--muted); } .pchart .minline { stroke: var(--orange); stroke-dasharray: 6 4; }
.legend i.lg-dsure { background: #314003; } .legend i.lg-dexp { background: #FFB599; }
.legend i.lg-stock { background: var(--fg); height: 3px; } .legend i.lg-arrival { background: var(--ok); clip-path: polygon(50% 100%, 0 0, 100% 0); }

/* Links im Inhalt: Hausfarben statt Browser-Blau */
.main-wide a:not(nav a):not(svg a):not(.btn):not(.kpi):not(.chip):not(.leg-btn) { color: var(--fg); text-decoration: underline; text-decoration-color: #D9D3CC; text-underline-offset: 3px; }
.main-wide a:not(nav a):not(svg a):not(.btn):not(.kpi):not(.chip):not(.leg-btn):hover { color: var(--pend-ink); text-decoration-color: currentColor; }
.main-wide .page-tabs a, .main-wide .sub-tabs a, .main-wide .seg-nav a, .main-wide .chart a { text-decoration: none; }
.back-link { font-size: .85rem; }

/* Untermenü der Produktseite */
.sub-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sub-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 500; text-decoration: none; background: var(--surface); }
.sub-tabs a:hover { color: var(--fg); border-color: var(--muted); }
.sub-tabs a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: #FFFFFF; }

/* Wiederbestellpunkt und Chargen */
.pchart .rop-line { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 7 4; }
.pchart .safety-line { fill: none; stroke: var(--bad); stroke-width: 1.4; stroke-dasharray: 2 3; }
.pchart .decision { fill: var(--pend-ink); }
.pchart .decision-line { stroke: var(--pend-ink); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
.legend i.lg-rop { background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 9px); height: 3px; }
.legend i.lg-safety { background: repeating-linear-gradient(90deg, var(--bad) 0 2px, transparent 2px 5px); height: 3px; }
.legend i.lg-decision { background: var(--pend-ink); transform: rotate(45deg); width: 8px; height: 8px; }
details.lot { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
details.lot.is-planned { border-style: dashed; background: #FFFCFA; }
details.lot > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
details.lot > summary::-webkit-details-marker { display: none; }
details.lot > summary::before { content: "\25B8"; color: var(--muted); font-size: .75rem; transition: transform .12s; }
details.lot[open] > summary::before { transform: rotate(90deg); }
details.lot table { margin-top: 8px; }

/* Direkte Navigation zu Produkten und Rohstoffen */
.item-nav { display: grid; gap: 6px; margin-top: -8px; }
.item-group { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.item-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 84px; }
.main-wide .item-nav a { font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); background: var(--surface); }
.main-wide .item-nav a:hover { color: var(--fg); border-color: var(--muted); }
.main-wide .item-nav a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: #FFFFFF; }
.run-grid.two-cols { grid-template-columns: minmax(240px, .7fr) minmax(560px, 2fr); }
@media (max-width: 1100px) { .run-grid.two-cols { grid-template-columns: 1fr; } }

/* Statistiken: Ringdiagramme, Cashflow */
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donut { flex: none; }
.donut-bg { fill: none; stroke: var(--surface-2); }
.donut-seg { fill: none; stroke: currentColor; }
.donut-seg.p0 { color: #314003; } .donut-seg.p1 { color: #FF4D15; } .donut-seg.p2 { color: #4B6CB7; } .donut-seg.p3 { color: #B9A3D9; }
.donut-seg.p4 { color: #8FA35A; } .donut-seg.p5 { color: #FFB599; } .donut-seg.p6 { color: #9B2C4B; } .donut-seg.p7 { color: #6D6862; }
.donut-seg.k-bestand { color: #6F8A2E; } .donut-seg.k-first { color: #FF4D15; } .donut-seg.k-re { color: #FFB599; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; min-width: 220px; font-size: .88rem; }
.donut-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 56px; gap: 8px; align-items: center; }
.donut-legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cflow .cf-pos { fill: #8FA35A; } .cflow .cf-neg { fill: #E8A0B4; } .cflow .is-fc { opacity: .5; }
.cflow .zero { stroke: var(--muted); }

/* Kapitel Produkte */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.main-wide a.product-card { color: inherit; text-decoration: none; display: grid; gap: 12px; position: relative; }
.product-card:hover { border-color: var(--orange); }
.product-card .card-head { margin-bottom: 0; }
.product-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-figs > div { display: grid; gap: 2px; }
.product-figs strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.product-card .spark { width: 100%; height: 34px; }
.product-next { color: var(--muted); }
.product-next strong { color: var(--fg); }

/* Personal und Budget */
.chart .c-p0 { fill: #314003; } .chart .c-p1 { fill: #FF4D15; } .chart .c-p2 { fill: #4B6CB7; } .chart .c-p3 { fill: #B9A3D9; }
.chart .c-p4 { fill: #8FA35A; } .chart .c-p5 { fill: #FFB599; } .chart .c-p6 { fill: #9B2C4B; } .chart .c-p7 { fill: #6D6862; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.budget-t td.bcell { min-width: 76px; }
.budget-t td.is-fc { color: #6A5F55; background: #FFFCFA; }
.budget-t td.b-bad { background: var(--bad-soft); color: var(--bad); }
.budget-t td.b-ok .xsmall { color: var(--ok); }
.budget-t tr.budget-group td { background: var(--surface-2); }
.alarm-card { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }

/* Umsatzerwartung in Gruppen */
.rev-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
table.rev-t tr.rev-group td { background: var(--surface-2); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.group-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-align: left; }
.group-btn::before { content: "\25B8"; font-size: .7rem; color: var(--muted); transition: transform .12s; display: inline-block; }
.group-btn[aria-expanded="true"]::before { transform: rotate(90deg); }

/* Gesamtplan und Zielpfad */
.liq .mark { stroke: #314003; stroke-width: 1; stroke-dasharray: 3 3; }
.liq .mark-label { fill: #314003; font-weight: 600; }
tr.is-main-row td { background: var(--surface-2); }
.pill.p-st-in-vorbereitung, .pill.p-st-in-gesprachen, .pill.p-st-term-sheet { background: #E7F1FB; color: #1F4F82; }
.pill.p-st-beantragt { background: var(--warn-soft); color: var(--warn); }
.pill.p-st-unterschrieben { background: var(--ok-soft); color: var(--ok); }
.target-list { display: grid; gap: 10px; }
.target-row { display: grid; grid-template-columns: 110px minmax(120px, 2fr) 170px 140px minmax(0, 2fr); gap: 12px; align-items: center; font-size: .9rem; }
.tr-year { display: flex; flex-direction: column; }
.tr-bar { width: 100%; height: 18px; display: block; }
.tb-band { fill: var(--band); }
.tb-mid { fill: var(--fc); }
.tb-target { fill: var(--bad); }
.legend i.lg-tband { background: var(--band); }
.legend i.lg-tmid { background: var(--fc); }
.legend i.lg-ttarget { background: var(--bad); width: 3px; }
table.lead-t th.is-now, table.lead-t td.is-now { background: #FFF4EC; }
@media (max-width: 760px) { .target-row { grid-template-columns: 1fr 1fr; } .tr-bar { grid-column: 1 / -1; } }

.demo-banner.is-live { background: #FFF4EC; border-color: var(--orange); }
.liq .l-b1 { fill: none; stroke: #9B2C4B; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.liq .l-b2 { fill: none; stroke: var(--fc); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.liq .l-b3 { fill: none; stroke: #314003; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.liq .l-b1-label { fill: #9B2C4B; } .liq .l-b2-label { fill: var(--pend-ink); } .liq .l-b3-label { fill: #314003; }
.legend i.lg-b1 { background: repeating-linear-gradient(90deg, #9B2C4B 0 5px, transparent 5px 8px); height: 2px; }
.legend i.lg-b2 { background: repeating-linear-gradient(90deg, var(--fc) 0 5px, transparent 5px 8px); height: 2px; }
.legend i.lg-b3 { background: repeating-linear-gradient(90deg, #314003 0 5px, transparent 5px 8px); height: 2px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 4px 0 14px; font-size: .82rem; }
.filter-bar label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.filter-bar label.grow { flex: 1 1 180px; }
.filter-bar select, .filter-bar input { font: inherit; color: var(--fg); padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.scen-t .scen-col { text-align: center; white-space: nowrap; }
.scen-t .pill.is-rule { opacity: .55; }
.scen-form { display: inline-flex; gap: 4px; margin-left: 4px; }
.scen-form .chip { cursor: pointer; border: 1px solid var(--line); background: var(--surface); font-size: .7rem; padding: 1px 6px; }
.pnl-t tr.pnl-head td { border-top: 2px solid var(--line); }
.pnl-t tr.pnl-end td { border-bottom: 1px solid var(--line); }
.pnl-t .year-col { background: var(--surface-2); }

/* Planspiel */
.ps-result-card { position: relative; }
.ps-kpis .kpi { min-height: 96px; }
.ps-kpis .kpi.is-ok { box-shadow: inset 3px 0 0 var(--olive); }
.ps-kpis .kpi.is-bad { box-shadow: inset 3px 0 0 var(--sick); }
.ps-kpis .kpi.is-warn { box-shadow: inset 3px 0 0 var(--orange); }
#ps-result { transition: opacity .15s; }
#ps-result.is-loading { opacity: .55; }
.ps-t .ps-on { width: 44px; text-align: center; }
.ps-t .ps-on input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.ps-t tr.is-off td:not(.ps-on) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.ps-t .ps-group td { background: var(--surface-2); }
.ps-num { width: 84px; text-align: right; }
.ps-t input[type="text"] { width: 100%; min-width: 140px; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.seg-nav .chip input { position: absolute; opacity: 0; pointer-events: none; }
.seg-nav .chip.is-active { background: var(--accent); color: var(--accent-fg); }
@media (max-width: 640px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 24px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(17,17,17,.08); transform: translateY(110%); transition: transform .2s; }
.ps-sticky.is-shown { transform: none; }
.ps-sticky .kpi { min-height: 0; padding: 6px 12px; }
.ps-sticky .kpi-value { font-size: 1.15rem; }
.ps-sticky .kpi-delta { font-size: .75rem; }
@media (max-width: 640px) { .ps-sticky .kpi-bar { grid-template-columns: repeat(2, 1fr); } .ps-sticky .kpi:nth-child(n+3) { display: none; } }
.ps-plan { grid-template-columns: 400px minmax(0, 1fr); }
.ps-plan table.plan-labels td { max-width: 400px; }
.ps-cell { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.ps-cell .tree-btn, .ps-cell .tree-label { overflow: hidden; text-overflow: ellipsis; }
.ps-check { width: 15px; height: 15px; margin: 0; flex: none; cursor: pointer; accent-color: var(--accent); }
.ps-cell .ps-check + .tree-label { padding-left: 0; }
.ps-factor { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: .75rem; color: var(--muted); }
.ps-factor .ps-num { width: 54px; height: 24px; padding: 0 4px; font-size: .75rem; }
.ps-factor select { height: 24px; font-size: .72rem; padding: 0 2px; }
table.plan-t tr.is-off td { color: var(--muted); }
table.plan-t tr.is-off .tree-label, table.plan-t tr.is-off .tree-btn { text-decoration: line-through; text-decoration-color: var(--abs); }
.ps-seg .chip { cursor: pointer; }
@media (max-width: 700px) { .ps-plan { grid-template-columns: 210px minmax(0, 1fr); } .ps-factor { display: none; } }

/* Planspiel: Plan-ARR und Pipeline-Wert auf der zweiten Achse, abgelehnte Aufträge, zusätzliches Marketing */
.liq .l-arr { fill: none; stroke: #2F7D4F; stroke-width: 2.2; }
.liq .l-pipe { fill: none; stroke: #7A4FC9; stroke-width: 2; stroke-dasharray: 5 3; }
.liq .l-arr-base { fill: none; stroke: #2F7D4F; stroke-width: 1.2; opacity: .35; }
.liq .l-pipe-base { fill: none; stroke: #7A4FC9; stroke-width: 1.2; stroke-dasharray: 5 3; opacity: .35; }
.liq .l-arr-label { fill: #2F7D4F; font-weight: 600; }
.liq .l-pipe-label { fill: #7A4FC9; font-weight: 600; }
.liq-axis .axis2 { fill: #2F7D4F; }
.legend i.lg-arr { background: #2F7D4F; height: 3px; }
.legend i.lg-pipe { background: repeating-linear-gradient(90deg, #7A4FC9 0 5px, transparent 5px 8px); height: 3px; }
.ps-guard { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ps-guard ul { margin: 4px 0 0; padding-left: 18px; }
.ps-mkt-h { font-size: .85rem; font-weight: 600; margin: 14px 0 6px; }
.ps-mkt-h:first-of-type { margin-top: 4px; }
.ps-mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
.ps-mkt-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ps-mkt-grid label > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-mkt-grid input:not([type="checkbox"]), .ps-mkt-grid select { width: 100%; height: 30px; box-sizing: border-box; }
.ps-mkt-grid .ps-check-box { display: flex; align-items: center; height: 30px; }
.plan-axis.is-tall { height: 476px; }
.liq .panel-sep { stroke: var(--line); stroke-width: 1; }
.liq-axis .t-arr { fill: #2F7D4F; font-weight: 600; }
.liq-axis .t-pipe { fill: #7A4FC9; font-weight: 600; }
.plan-t tr.r-kpi td { color: var(--muted); }
.plan-t tr.r-kpi.k-arr td:first-child { color: #2F7D4F; font-weight: 600; }
.plan-t tr.r-kpi.k-pipe td:first-child { color: #7A4FC9; font-weight: 600; }
.plan-t tr.r-kpi.k-arr td { border-top: 2px solid var(--line); }
.plan-chart.is-tall { height: 476px; }
.liq .nullline { stroke: #000000; stroke-width: 1.6; }
.liq .null-label { fill: #000000; font-weight: 600; }
.liq .l-arr-pt { fill: #2F7D4F; }
.liq .l-pipe-pt { fill: #7A4FC9; }
.liq .pt-label.l-arr-val { fill: #2F7D4F; }
.liq .pt-label.l-pipe-val { fill: #7A4FC9; }
/* Planspiel: Linien ein- und ausblenden */
.ps-series { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ps-series label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ps-series label i { display: inline-block; width: 16px; }
.ps-series input { margin: 0; accent-color: var(--accent); }
.plan.hide-konto .liq .l-ist, .plan.hide-konto .liq .l-fc, .plan.hide-konto .liq .pt-ist, .plan.hide-konto .liq .pt-fc,
.plan.hide-konto .liq .pt-konto, .plan.hide-konto .liq .l-plan { display: none; }
.plan.hide-arr .liq .l-arr, .plan.hide-arr .liq .l-arr-base, .plan.hide-arr .liq .l-arr-pt, .plan.hide-arr .liq .l-arr-val { display: none; }
.plan.hide-pipe .liq .l-pipe, .plan.hide-pipe .liq .l-pipe-base, .plan.hide-pipe .liq .l-pipe-pt, .plan.hide-pipe .liq .l-pipe-val { display: none; }

/* Planspiel: gespeicherte Szenarien */
.ps-saved-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ps-saved-item { display: inline-flex; align-items: center; gap: 2px; }
.ps-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.ps-save-form { margin-left: auto; }
.ps-save-form input[type="text"] { height: 30px; min-width: 200px; }
.ps-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; }
.ps-x:hover { color: var(--bad); }

/* Planspiel: Entscheidungspunkte */
.ps-dec { width: 100%; }
.ps-dec td { vertical-align: top; }
.ps-dec tr.is-critical td:first-child { box-shadow: inset 3px 0 0 var(--sick); }
.ps-dec td:first-child { white-space: nowrap; width: 1%; }
.ps-dec td:nth-child(2), .ps-dec td:nth-child(6) { width: 16%; min-width: 170px; }
.ps-dec td:nth-child(3) { white-space: nowrap; width: 1%; }
.ps-dec td.ps-dec-cell { width: 28%; min-width: 280px; }
.ps-dec-note { width: 100%; resize: vertical; font: inherit; font-size: .92rem; line-height: 1.45; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; }
.ps-dec-deal { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; }
.ps-dec-move { flex: none; font: inherit; font-size: .7rem; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--accent-soft); color: var(--muted); cursor: pointer; white-space: nowrap; }
.ps-dec-move:hover { color: inherit; border-color: var(--muted); }
.ps-dec-move:disabled { opacity: .5; cursor: progress; }
.ps-dec-rw div + div { margin-top: 2px; }
.ps-dec-arrow { flex: none; font: inherit; font-size: .9rem; line-height: 1; padding: 1px 6px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--muted); cursor: pointer; }
.ps-dec-arrow:hover { color: inherit; border-color: var(--muted); background: var(--accent-soft); }
.ps-dec-arrow:disabled { opacity: .5; cursor: progress; }
.ps-dec td:nth-child(2) .ps-dec-deal { justify-content: space-between; }
.ps-mkt-more { margin-top: 10px; }
.ps-mkt-more[hidden] { display: none; }
.liq .milestone path { fill: #000000; stroke: var(--surface); stroke-width: 1.5; }
.liq .ms-label { fill: #000000; font-weight: 600; }

/* Finance: Annahmen */
.am-t td { vertical-align: middle; }
.am-t input[type="text"], .am-t input[type="date"], .am-t input[type="month"], .am-t select { width: 100%; min-width: 90px; font: inherit;
  font-size: .85rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; }
.am-t .am-num { min-width: 80px; text-align: right; }
.am-t tr.am-new td { background: var(--accent-soft); }
.am-save { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.am-save label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); flex: 1; min-width: 260px; }
.am-save input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; }

/* Planspiel: eingefrorener Stand, Ansicht und Druck */
.stand-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.stand-head h1 { margin: 0 0 4px; font-size: 1.4rem; }
.stand-actions { display: flex; gap: 8px; align-items: center; }
.stand-view [data-move-to][hidden] { display: block; margin-top: 16px; }
.stand-view .ps-series, .stand-view .ps-check, .stand-view .ps-factor, .stand-view .tree-btn::before,
.stand-view .plan-tip { display: none; }
.stand-view .plan-scroll { overflow: visible; }
.ps-dec-print { white-space: pre-wrap; font-size: .9rem; line-height: 1.45; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #FFFFFF; }
  .topbar, .topnav, .demo-banner, .no-print, .ps-sticky { display: none !important; }
  .stand-view .card { box-shadow: none; border: 0; padding: 0; }
  .stand-view .plan, .stand-view .ps-dec tr, .stand-view .ps-kpis { break-inside: avoid; }
}
