/* Elvari Attribution — Look nach Shopify Polaris (Admin 2025/26): dunkle Topbar, graue Sidebar, weiße Karten. */
/* Schrift wie im Shopify-Admin: Inter (variabel, selbst gehostet), Gewichte nach Polaris-Tokens 450/550/650/700. */
@font-face { font-family: "Inter Var"; src: url("vendor/inter/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #f1f1f1; --panel: #ffffff; --panel2: #f7f7f7; --text: #303030; --muted: #616161; --subtle: #8a8a8a;
  --line: #ebebeb; --line2: #e3e3e3; --line3: #cccccc;
  --accent: #303030; --link: #005bd3; --accent-soft: #f1f1f1; --focus: #005bd3;
  --ok: #0c5132; --ok-bg: #cdfee1; --ok-fg: #29845a; --warn: #5e4200; --warn-bg: #ffef9d; --bad: #8e0b21; --bad-bg: #fedad9;
  --bad-fg: #e51c00; --info: #00527c; --info-bg: #eaf4ff;
  --c1: #005bd3; --c2: #9ac6f5; --c3: #29845a; --c4: #b98900; --c5: #8051ff; --c6: #e51c00; --c7: #47c1bf; --c8: #f49342;
  --radius: 12px; --radius-s: 8px;
  --shadow: 0 0 0 1px rgba(0,0,0,.07), 0 1px 0 0 rgba(26,26,26,.07);
  --shadow-pop: 0 0 0 1px rgba(0,0,0,.06), 0 8px 16px -4px rgba(26,26,26,.22);
  --font: "Inter Var", Inter, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 450 13px/20px var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "calt" 0; text-rendering: optimizeLegibility; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; }
code { font-size: 12px; background: var(--panel2); padding: 1px 4px; border-radius: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: var(--panel); border-radius: var(--radius-s); padding: 6px 12px; font-weight: 550;
  box-shadow: inset 0 -1px 0 #b5b5b5, 0 0 0 1px rgba(0,0,0,.08); }
button:hover { background: #fafafa; }
button:active { box-shadow: inset 0 1px 1px rgba(0,0,0,.2); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: linear-gradient(#3d3d3d, #303030); color: #fff; box-shadow: inset 0 -1px 0 #000, 0 0 0 1px #1a1a1a; }
button.primary:hover { background: #1a1a1a; }
button.link, button.plain { box-shadow: none; background: none; color: var(--link); padding: 2px 4px; font-weight: 500; }
button.link:hover, button.plain:hover { text-decoration: underline; background: none; }
input, select { border: 1px solid #8a8a8a; background: #fdfdfd; border-radius: var(--radius-s); padding: 5px 10px; min-height: 32px; }
input:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--ok-fg); } .bad { color: var(--bad-fg); } .warn { color: #8a6116; } .info { color: var(--info); }

/* ---------- shell: topbar + sidebar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: 56px; display: grid; grid-template-columns: minmax(240px, max-content) 1fr 240px; align-items: center;
  gap: 12px; padding: 0 12px; background: #1a1a1a; color: #e3e3e3; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; color: #fff; }
.brand a { color: #fff; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #1a1a1a; display: grid; place-items: center; font-size: 14px; font-weight: 750; }
.burger { display: none; box-shadow: none; background: none; color: #fff; font-size: 18px; padding: 2px 6px; }
.top-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.top-right .avatar { width: 28px; height: 28px; border-radius: 8px; background: #3a7f5f; color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 12px; }
.top-right button.link { color: #e3e3e3; }
.search { position: relative; width: 100%; max-width: 600px; justify-self: center; }
.search input { width: 100%; background: #303030; border: 1px solid #4a4a4a; color: #fff; border-radius: 10px; padding-left: 32px; }
.search input::placeholder { color: #b5b5b5; }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 5px; color: #b5b5b5; font-size: 16px; }
.search-res { position: absolute; top: 40px; left: 0; right: 0; background: var(--panel); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-pop); overflow: hidden; }
.search-res .res { display: block; width: 100%; text-align: left; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; font-weight: 500; }
.pad { padding: 8px 10px; }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.nav { position: sticky; top: 56px; height: calc(100vh - 56px); background: #ebebeb; padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-s); color: var(--text); font-weight: 550; white-space: nowrap; }
.nav a:hover { background: #f1f1f1; text-decoration: none; }
.nav a.active { background: #fafafa; box-shadow: 0 1px 0 rgba(0,0,0,.05); font-weight: 650; }
.nav a .ico { width: 20px; text-align: center; color: #4a4a4a; font-size: 14px; }
.nav .nav-sep { height: 1px; background: #d4d4d4; margin: 10px 8px; }
.nav .nav-h { font-size: 12px; color: var(--muted); padding: 10px 8px 4px; font-weight: 600; }
.main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 20px 24px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--text); margin-right: 6px; }
.back:hover { background: #e3e3e3; text-decoration: none; }

/* ---------- filter bar (Shopify Analytics) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters .grow { flex: 1; }
.pop-wrap { position: relative; }
.btn-filter { display: inline-flex; align-items: center; gap: 6px; }
.btn-filter .ico { color: var(--muted); }
.btn-filter .caret { color: var(--muted); margin: 0 -4px 0 -2px; flex: none; }
.popover { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.popover.right { left: auto; right: 0; }
.pop-body { padding: 12px; }
.pop-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.opt-list { display: flex; flex-direction: column; min-width: 280px; padding: 6px; }
.opt { text-align: left; box-shadow: none; border-radius: var(--radius-s); padding: 7px 10px; font-weight: 500; display: flex; flex-direction: column; gap: 1px; }
.opt:hover { background: var(--panel2); }
.opt.on { background: #f1f1f1; font-weight: 650; }
.opt small { color: var(--muted); font-weight: 400; font-size: 12px; line-height: 1.35; }
.opt-h { font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px 2px; }

/* date picker */
.dp { display: grid; grid-template-columns: 200px auto; }
.dp-presets { border-right: 1px solid var(--line); padding: 6px; max-height: 420px; overflow-y: auto; }
.dp-presets .opt { width: 100%; }
.dp-main { padding: 12px 16px; }
.dp-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dp-inputs input { width: 140px; }
.dp-cals { display: flex; gap: 24px; }
.cal { width: 238px; }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 650; }
.cal-h button { box-shadow: none; padding: 2px 8px; }
.cal-h .sp { width: 30px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 34px); }
.cal-g .dow { font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-g .d { box-shadow: none; border-radius: 0; padding: 0; height: 32px; font-weight: 450; font-variant-numeric: tabular-nums; background: none; }
.cal-g .d:hover { background: #e3e3e3; border-radius: 8px; }
.cal-g .d.in { background: #ebebeb; }
.cal-g .d.edge { background: #303030; color: #fff; border-radius: 8px; }
.cal-g .d.today { text-decoration: underline; }
.cal-g .d.out { color: var(--line3); pointer-events: none; }
.cal-g .d.future { color: var(--line3); }

/* ---------- cards / sections ---------- */
.section { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0 0 16px; }
.section-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.section-h h2 { font-size: 14px; font-weight: 650; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 .section, .grid3 .section { margin: 0; }
.grid2, .grid3 { margin-bottom: 16px; }
.span2 { grid-column: span 2; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 2px 0; }

/* KPI strip (Shopify Analytics oben) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.kpi { padding: 12px 16px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi-l { font-size: 12px; color: var(--muted); font-weight: 450; border-bottom: 1px dotted var(--line3); display: inline-block; }
.kpi-v { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.kpi-v b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.delta { font-size: 12px; font-weight: 550; white-space: nowrap; }
.delta.up { color: var(--ok-fg); } .delta.down { color: var(--bad-fg); } .delta.flat { color: var(--muted); }
.spark polyline { fill: none; stroke: var(--c1); stroke-width: 1.5; }

/* metric card with chart */
.mcard .mhead { margin-bottom: 4px; }
.mcard .mtitle { font-size: 13px; font-weight: 650; border-bottom: 1px dotted var(--line3); display: inline-block; }
.mcard .mval { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.mcard .mval b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mcard .mlegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.mlegend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--c1); vertical-align: middle; margin-right: 5px; }
.mlegend i.cmp { border-top: 2px dashed var(--c2); }
.mlegend i.sq { width: 10px; height: 10px; border: 0; border-radius: 3px; }

/* list with bars (Shopify "Sales by channel") */
.blist { display: flex; flex-direction: column; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow .bl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brow .bl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 450; }
.brow .bv small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.brow .bt { grid-column: 1 / -1; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.brow .bt i { display: block; height: 100%; border-radius: 3px; background: var(--c1); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---------- states, pills, badges ---------- */
.state { padding: 32px; text-align: center; color: var(--muted); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.state.warn { color: var(--warn); background: #fff8db; text-align: left; box-shadow: 0 0 0 1px #ffd79d; }
.state.err { color: var(--bad); background: #fff4f4; text-align: left; box-shadow: 0 0 0 1px #fec1c7; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 550; padding: 1px 8px; border-radius: 8px; background: #e3e3e3; color: var(--text); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: #e0f0ff; color: var(--info); }
.pill.muted { color: var(--muted); background: #f1f1f1; }
.badges { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 6px; background: #f1f1f1; color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: #e0f0ff; color: var(--info); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; background: #fff8db; box-shadow: 0 0 0 1px #ffd79d; }
.banner.info { background: #eaf4ff; box-shadow: 0 0 0 1px #a8d1ff; }

/* tabs (Shopify index tabs) */
.tabs { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { box-shadow: none; background: none; padding: 5px 10px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.tabs button.on { background: #ebebeb; color: var(--text); }

/* ---------- table (IndexTable) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text); }
.table-tools { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
/* Waagrechtes Scrollen: die eigene Leiste der Tabelle ist versteckt, darunter klebt eine Ersatz-Leiste (.hscroll) per
   position: sticky am unteren Fensterrand, solange die Tabelle im Bild ist; beide scrollen synchron (ui.js Table). */
.table-wrap { overflow-x: auto; overflow-y: hidden; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: none; }
.table-wrap::-webkit-scrollbar { display: none; }
.hscroll { position: sticky; bottom: 10px; z-index: 5; overflow-x: auto; overflow-y: hidden; height: 16px; background: rgba(241,241,241,.95); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.hscroll > div { height: 1px; }
.hscroll.off { display: none; }
.section .hscroll { margin: 6px -8px -8px; }
.section .tbl-box .table-wrap { margin-bottom: 0; }
.section .table-wrap { box-shadow: none; border-radius: 0; margin: 0 -16px -16px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 550; cursor: pointer; position: sticky; top: 0; z-index: 2; background: var(--panel2); user-select: none; }
.tbl th.first { z-index: 3; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl th.first, .tbl td.first { position: sticky; left: 0; z-index: 1; white-space: normal; min-width: 200px; max-width: 360px; }
.tbl td.first { background: var(--panel); }
.tbl th.first { background: var(--panel2); }
.tbl tr.click td { cursor: pointer; }
.tbl tbody tr:hover td { background: #f7f7f7; }
.tbl tr.selected td { background: #f1f1f1; }
.tbl td.sel, .tbl th.sel { width: 28px; padding-right: 0; }
.tbl tr.sub-row > td { background: var(--panel2); padding: 10px 14px; }
.tbl.small td, .tbl.small th { padding: 6px 10px; }
.name-cell { display: flex; flex-direction: column; gap: 2px; }
.name-cell .nm { font-weight: 600; word-break: break-word; }
.cell-purch { display: inline-flex; gap: 6px; align-items: baseline; line-height: 1.2; }
.cell-purch small { font-size: 11px; color: var(--muted); }
.cell-purch.muted b { color: var(--muted); font-weight: 500; }
.cell-purch.warn, .cell-purch.warn b { color: #8a6116; }
.cell-rate { position: relative; display: inline-block; padding-bottom: 4px; }
.cell-rate .band { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(to right, transparent var(--lo), var(--line2) var(--lo), var(--line2) var(--hi), transparent var(--hi)); }
.cell-rate .band::after { content: ""; position: absolute; left: var(--v); top: -1px; width: 2px; height: 5px; background: var(--c1); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 12px 0; }

/* cards (mobile table) */
.cards { display: grid; gap: 10px; }
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.card-h { margin-bottom: 6px; cursor: pointer; }
.card-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.card-g div { display: flex; flex-direction: column; }
.card-g dt { font-size: 11.5px; color: var(--muted); }
.card-g dd { margin: 0; font-variant-numeric: tabular-nums; }
.card-g.rest { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); }
.more { margin-top: 6px; }

/* charts, bars */
.chart { width: 100%; }
.uplot { font-family: var(--font); }
.u-legend { font-size: 12px; color: var(--muted); }
.u-legend .u-marker { border-radius: 3px; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 56px; gap: 8px; align-items: center; font-size: 13px; }
.bar-t { height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--c1); border-radius: 4px; }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; }
.paths { margin: 0; padding-left: 20px; }
.paths li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.path { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.step { background: #f1f1f1; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 500; }
.arr { color: var(--muted); }
.hatch-key { display: inline-block; width: 18px; height: 10px; vertical-align: middle; border: 1px solid var(--line3);
  background: repeating-linear-gradient(45deg, transparent 0 3px, var(--line3) 3px 4px); }
.notes { margin: 0; padding-left: 18px; }
.notes li { margin: 3px 0; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 2px 0; }
.kv span { color: var(--muted); }

/* ---------- order detail (Shopify order page) ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.order-grid .section { margin-bottom: 16px; }
.facts { display: grid; gap: 10px; }
.facts .f-l { font-size: 12px; color: var(--muted); }
.facts .f-v { font-weight: 550; }
.j-story { margin: 0; font-size: 13.5px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; border-radius: 8px; padding: 2px 8px; background: #f1f1f1; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.evid { display: grid; gap: 8px; }
.evid .row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 13px; }
.evid .row span:first-child { color: var(--muted); }

/* timeline (Shopify order timeline) */
.timeline { position: relative; display: flex; flex-direction: column; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: #e3e3e3; }
.tl-day { font-size: 12px; color: var(--muted); font-weight: 600; margin: 14px 0 6px -26px; padding-left: 26px; }
.tl-day:first-child { margin-top: 0; }
.tl-item { position: relative; margin: 0 0 10px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; box-shadow: 0 0 0 3px var(--panel); }
.tl-item.crm::before { background: #b5b5b5; width: 8px; height: 8px; left: -21px; top: 7px; }
.tl-item.buy::before { background: var(--ok-fg); }
.tl-item.paid::before { background: var(--c1); }
.sess { background: var(--panel); border-radius: var(--radius-s); box-shadow: 0 0 0 1px var(--line2); padding: 10px 12px; }
.sess.purchase { box-shadow: 0 0 0 1px #8fdbae; background: #f0fdf6; }
.sess-h { cursor: pointer; display: grid; gap: 3px; }
.sess-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sess-src { font-weight: 650; }
.sess-k { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ev { font-size: 11.5px; padding: 0 7px; border-radius: 6px; background: #f1f1f1; font-weight: 550; }
.ev.ok { background: var(--ok-bg); color: var(--ok); }
.events { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; max-height: 320px; overflow: auto; color: var(--muted); }
.crm-line { font-size: 12.5px; color: var(--muted); padding: 1px 0; }
.crm-line b { color: var(--text); font-weight: 550; }
.link-line { font-size: 11.5px; color: var(--subtle); margin: -4px 0 8px; }
.tier { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.tier i { display: inline-block; width: 18px; border-top: 2px solid var(--text); }
.tier.tier2 i { border-top-style: dashed; } .tier.tier3 i { border-top-style: dotted; } .tier.tier0 i { border-top-color: var(--line3); }
.legend { display: inline-flex; gap: 12px; }
.attr-tbl td.num b { font-weight: 650; }

/* ---------- forms, login ---------- */
.form-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-top: 10px; }
.form-row label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; }
.form-row label.grow { flex: 1; min-width: 200px; }
.form-row input, .form-row select { color: var(--text); }
.fld { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; border-radius: var(--radius-s); overflow: hidden; box-shadow: 0 0 0 1px var(--line3); }
.seg button { box-shadow: none; border-radius: 0; border-right: 1px solid var(--line2); padding: 5px 10px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: #ebebeb; font-weight: 650; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #1a1a1a; }
.login-box { width: 100%; max-width: 380px; background: var(--panel); border-radius: 16px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow-pop); }
.login-box h1 { font-size: 20px; }
.login-box label { display: grid; gap: 4px; font-size: 13px; font-weight: 550; }
.login-box .err { color: var(--bad-fg); margin: 0; }

@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; padding: 0 10px; }
  .brand .name { display: none; }
  .burger { display: inline-block; }
  .layout { grid-template-columns: 1fr; }
  .nav { display: none; position: fixed; top: 56px; left: 0; width: 260px; z-index: 25; box-shadow: var(--shadow-pop); }
  .nav.open { display: flex; }
  .main { padding: 14px 16px 40px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .dp { grid-template-columns: 1fr; }
  .dp-presets { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; }
  .dp-cals .cal + .cal { display: none; }
  .popover { position: fixed; left: 8px !important; right: 8px !important; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .tbl th.first, .tbl td.first { min-width: 150px; }
  .section { padding: 12px 14px; }
  .section .table-wrap { margin: 0 -14px -12px; }
  .bar-row { grid-template-columns: 90px 1fr 44px; }
  .top-right .uname { display: none; }
}
.card .cell-purch { align-items: flex-start; }
.grid2 > *, .grid3 > *, .layout > * { min-width: 0; }
.mlegend span { white-space: nowrap; }
html, body { overflow-x: clip; }
.mrow { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mrow:last-of-type { border-bottom: 0; }
.mrow .f-l { font-size: 12px; color: var(--muted); }
.mrow .f-v { font-weight: 550; }

/* Bestellseite: Herkunft im Besuch, Kundenhistorie (30.11.2026) */
.sess-foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--subtle); }
.tl-item.buy.other::before { background: #9bc8ad; }
.sess.purchase.other { background: var(--panel); cursor: pointer; }
.sess.purchase.other:hover { background: var(--panel2); }
.olist { margin-top: 10px; border-top: 1px solid var(--line); }
.orow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.orow:hover span:first-child { color: var(--link); }
.orow.cur { cursor: default; font-weight: 550; }
.orow .num { text-align: right; min-width: 70px; font-variant-numeric: tabular-nums; }
.orow span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow { grid-template-columns: minmax(0,1fr) auto auto; }
.sess.purchase.other { box-shadow: 0 0 0 1px var(--line2); }

/* 30.11.2026: Tooltips, Legende, Kanal-Icons, Zuordnung */
.chart { position: relative; }
.u-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 170px; max-width: 280px; background: var(--panel); border-radius: 10px;
  box-shadow: var(--shadow-pop); padding: 8px 10px; font-size: 12px; line-height: 18px; }
.u-tip-h { font-weight: 650; margin-bottom: 4px; color: var(--text); }
.u-tip-r { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 8px; align-items: center; }
.u-tip-r i { width: 10px; height: 10px; border-radius: 3px; }
.u-tip-r span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-tip-r b { font-weight: 550; font-variant-numeric: tabular-nums; }
.u-tip-r.sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.mlegend { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 16px; }
.mlegend span { display: inline-flex; align-items: center; white-space: nowrap; }
.ch-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; background: #f3f3f3; }
.ch-ico svg { display: block; }
.name-cell.ch { display: flex; align-items: center; gap: 10px; }
.name-cell.ch > div { display: flex; flex-direction: column; min-width: 0; }
.brow .bl .ch-ico { width: 18px; height: 18px; flex-basis: 18px; background: none; }
.popover .opt { white-space: normal; }
.attr-grid { display: grid; grid-template-columns: 300px 300px; max-width: calc(100vw - 32px); }
.attr-grid > .opt-list { min-width: 0; }
.attr-grid > .opt-list:first-child { border-right: 1px solid var(--line); }
@media (max-width: 700px) { .attr-grid { grid-template-columns: 1fr; } .attr-grid > .opt-list:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.dp-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.opt[disabled] { opacity: .55; cursor: default; }
/* Kennzahl-Kacheln (Mails & Support, Messung, Abgleich) im Polaris-Look */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; }
.tile-l { font-size: 12px; color: var(--muted); font-weight: 450; border-bottom: 1px dotted var(--line3); display: inline-block; margin-bottom: 6px; }
.tile-v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 26px; }
.tile-v.small { font-size: 14px; font-weight: 550; line-height: 22px; }
.tile-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.name-cell.ch { flex-direction: row; align-items: center; text-align: left; }
.name-cell.ch > div { align-items: flex-start; }

/* ---------------------------------------------------------------- Bereichs-Umschalter + Testimonials (30.11.2026) */
.appsw { position: relative; }
.appsw-btn { background: rgba(255,255,255,.1); box-shadow: none; border: 0; color: #fff; font: inherit; font-weight: 650; padding: 5px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.appsw-btn:hover, .appsw-btn[aria-expanded=true] { background: rgba(255,255,255,.18); }
.appsw-btn:active { box-shadow: none; }
.layout.wide { grid-template-columns: minmax(0, 1fr); }
.layout.wide .main { max-width: 1200px; }
.appsw-car { opacity: .85; }
.appsw-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--panel); border-radius: var(--radius-s); box-shadow: var(--shadow-pop); padding: 6px; z-index: 50; display: flex; flex-direction: column; }
.appsw-menu a { color: var(--text); padding: 7px 10px; border-radius: 6px; font-weight: 550; }
.appsw-menu a:hover { background: var(--panel2); text-decoration: none; }
.appsw-menu a.active { background: var(--accent-soft); font-weight: 650; }
/* Shop-Umschalter (01.12.2026) */
.appsw-menu a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.appsw-note { font-size: 12px; font-weight: 450; }
.storesw .appsw-btn { font-weight: 550; }
@media (max-width: 760px) { .storesw .appsw-btn { padding: 5px 6px; gap: 4px; } }
.t-wrap { display: flex; flex-direction: column; }
.t-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 12px; }
.t-search { display: flex; gap: 8px; flex: 1 1 360px; min-width: 260px; }
.t-search input { flex: 1; }
.t-bar select { max-width: 230px; }
.t-pager { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.t-pager button { padding: 4px 10px; }
/* Tabelle in Seitenbreite (wie Kanäle). Die Box ist höchstens so hoch wie der freie Platz im Fenster, damit die waagrechte Scrollbar immer sichtbar bleibt. */
.t-scroll { overflow: auto; max-height: calc(100vh - 220px); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.t-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%; font-size: 13px; }
.t-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel2); text-align: left; font-weight: 600; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.t-table th.sortable { cursor: pointer; } .t-table th.sortable:hover { color: var(--text); }
.t-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow: hidden; }
.t-tr { cursor: pointer; } .t-tr:hover td, .t-tr.open td { background: #fafafa; }
.t-table .c-thumb { padding: 8px 6px 8px 10px; }
.t-table td.c-thumb, .t-table td.c-name, .t-table th:nth-child(1), .t-table th:nth-child(2) { position: sticky; z-index: 1; background: var(--panel); }
.t-table th:nth-child(1), .t-table th:nth-child(2) { z-index: 3; background: var(--panel2); }
.t-table td.c-thumb, .t-table th:nth-child(1) { left: 0; }
.t-table td.c-name, .t-table th:nth-child(2) { left: 76px; box-shadow: inset -1px 0 0 var(--line); }
.t-thumb { position: relative; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; color: var(--subtle); font-size: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-play { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; border-radius: 4px; padding: 1px 5px; }
.t-count { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; border-radius: 4px; padding: 1px 5px; }
.t-name { font-weight: 650; margin-bottom: 4px; word-break: break-word; }
.c-name .pill { margin: 0 4px 2px 0; }
.t-body { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.t-stars { color: #e3a008; font-size: 13px; letter-spacing: 1px; white-space: nowrap; } .t-stars i { color: #d4d4d4; font-style: normal; }
.t-pubs { display: flex; flex-wrap: wrap; gap: 4px; }
.t-pub { font-size: 12px; padding: 1px 7px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.t-mail { word-break: break-all; color: var(--muted); }
.t-nowrap { white-space: nowrap; }
.t-tr-detail td { padding: 0; background: #fafafa; overflow: visible; }
.t-detail-pin { width: calc(100vw - 60px); padding: 4px 10px 14px; box-sizing: border-box; }
.t-detail-pin .t-detail { max-width: 1100px; }
.t-detail { background: var(--panel); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 14px 16px; cursor: default; white-space: normal; }
.t-detail-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; align-items: baseline; }
.t-edit { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 10px 12px; margin: 0 0 12px; background: var(--info-bg); border-radius: var(--radius-s); }
.t-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.t-body-full { white-space: pre-wrap; line-height: 1.55; margin: 0 0 12px; max-width: 80ch; font-size: 14px; }
.t-media { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.t-media-item { position: relative; display: flex; flex-direction: column; gap: 4px; width: 140px; color: var(--text); }
.t-media-item img, .t-media-item .t-thumb { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.t-media-item .t-play { top: 116px; bottom: auto; }
.t-media-l { font-size: 11px; color: var(--muted); word-break: break-all; }
.t-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; font-size: 13px; }
.t-facts dt { color: var(--muted); } .t-facts dd { margin: 0; word-break: break-word; }
.t-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-bottom: 10px; }
.t-note { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.t-note textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--text); border: 1px solid var(--line3); border-radius: 8px; padding: 8px; resize: vertical; }
.t-note-a { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
@media (max-width: 760px) {
  .t-scroll { max-height: calc(100vh - 260px); }
  .t-table td.c-name, .t-table th:nth-child(2) { position: static; box-shadow: none; }
  .t-bar select { flex: 1 1 45%; max-width: none; }
  .t-pager { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Post-Purchase-Umfrage */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.pp-grid .section { margin: 0; }
.pp-subs { margin-top: 10px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.pp-subs b { color: var(--text); font-weight: 550; }
.pp-texts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-texts li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pp-q { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.pp-qh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.pp-form { display: grid; gap: 8px; }
.pp-form label:not(.chk) { display: grid; grid-template-columns: 160px 1fr; gap: 10px; align-items: start; }
.pp-form label span { color: var(--muted); padding-top: 6px; }
.pp-form input, .pp-form textarea, .pp-form select { width: 100%; font: inherit; }
@media (max-width: 760px) { .pp-grid { grid-template-columns: 1fr; } .pp-form label:not(.chk) { grid-template-columns: 1fr; gap: 2px; } }

/* Polaris-Select (Shopify-Admin): eigener Doppel-Chevron statt Browser-Pfeil (30.11.2026). Gilt für alle Dropdowns im Dashboard. */
select { -webkit-appearance: none; appearance: none; background-color: #fdfdfd; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234a4a4a'%3E%3Cpath d='M10.884 4.323a1.25 1.25 0 0 0-1.768 0l-2.646 2.647a.75.75 0 0 0 1.06 1.06l2.47-2.47 2.47 2.47a.75.75 0 1 0 1.06-1.06l-2.646-2.647Z'/%3E%3Cpath d='m13.53 13.03-2.646 2.647a1.25 1.25 0 0 1-1.768 0l-2.646-2.647a.75.75 0 0 1 1.06-1.06l2.47 2.47 2.47-2.47a.75.75 0 0 1 1.06 1.06Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 20px 20px; padding: 5px 30px 5px 12px;
  border: 1px solid #8a8a8a; border-radius: var(--radius-s); min-height: 32px; font-size: 13px; font-weight: 450; color: var(--text); cursor: pointer; }
select:hover { background-color: #fafafa; border-color: #616161; }
select:disabled { opacity: .5; cursor: default; }
.brand .logo-img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.tf-setup { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.tf-setup img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
code.secret { font-size: 13px; letter-spacing: .5px; word-break: break-all; background: #f3f3f3; padding: 4px 6px; border-radius: 6px; }
pre.codes { background: #f3f3f3; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.7; width: max-content; }

.t-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.t-tag { font-size: 12px; padding: 1px 7px; border-radius: 8px; background: #f1f1f1; color: var(--text); white-space: nowrap; }
.t-tags-d { margin: 0 0 12px; }
.t-tr-box { margin: 0 0 12px; } .t-tr-box summary { cursor: pointer; color: var(--link); font-size: 13px; margin-bottom: 6px; }

/* Kompakte Zeilen (Kampagnen & Ads): Name einzeilig, Rest in Spalten */
.nm1 { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 600; }
.nm1.muted { font-weight: 450; max-width: 260px; }
.plat { display: inline-flex; gap: 6px; align-items: center; }
.tbl td .badges { flex-wrap: nowrap; }
.tbl tr.open > td { background: #f5f5f5; }
.tbl thead th.first { z-index: 3; }

.tbl.compact th, .tbl.compact td { padding: 4px 10px; line-height: 1.3; }
.tbl.compact .badge { line-height: 16px; }
.pp-tabs { padding: 0 0 8px; margin: 0 0 12px; }
.pp-tabs button:first-child { margin-left: 0; padding-left: 10px; }
.section .tbl-box:has(.hscroll.off) .table-wrap { margin-bottom: -16px; }
@media (max-width: 760px) { .section .hscroll { margin: 6px -6px -6px; } }
.pp-tabs { gap: 20px; border-bottom: 1px solid var(--line2); }
.pp-tabs button, .pp-tabs button:first-child { padding: 4px 0 8px; margin: 0 0 -9px; border-radius: 0; background: none; border-bottom: 2px solid transparent; }
.pp-tabs button.on { background: none; color: var(--text); border-bottom-color: var(--text); }
.pp-tabs { overflow: visible; }
/* Bestell-Verlauf: Icons + Touchpoint-Zähler */
.sess-src { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sess-src .src-d { font-weight: 450; }
.crm-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.buy-h { display: inline-flex; align-items: center; gap: 6px; }
.tp-sum { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 12px; margin: 0 0 12px; background: var(--panel2); border-radius: 8px; }
a.t-pub { text-decoration: underline; text-underline-offset: 2px; }
/* Post-Purchase-Vorschau im Look der Shopify-Danke-Seite */
.ppv-wrap { max-width: 640px; }
.ppv-note { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.ppv-page { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.ppv-box { border: 1px solid #dedede; border-radius: 6px; padding: 16px; font-size: 14px; color: #1a1a1a; }
.ppv-stack { display: grid; gap: 14px; }
.ppv-stack hr { border: 0; border-top: 1px solid #dedede; margin: 0; }
.ppv-stack p { margin: 0; }
.ppv-qh { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ppv-qh h3 { margin: 0; font-size: 16px; font-weight: 650; }
.ppv-list { display: grid; gap: 10px; }
.ppv-sub { padding-left: 28px; }
.ppv-choice { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.ppv-radio, .ppv-check { width: 18px; height: 18px; border: 1px solid #8a8a8a; background: #fff; flex: none; }
.ppv-radio { border-radius: 50%; }
.ppv-check { border-radius: 4px; }
.ppv-choice.on .ppv-radio { border: 6px solid #1a1a1a; }
.ppv-choice.on .ppv-check { background: #1a1a1a; border-color: #1a1a1a; box-shadow: inset 0 0 0 3px #fff; }
.ppv-field { display: grid; gap: 4px; }
.ppv-field span { color: #616161; font-size: 13px; }
.ppv-input { width: 100%; border: 1px solid #dedede; border-radius: 5px; padding: 10px 12px; font: inherit; }
.ppv-btn { background: #1a1a1a; color: #fff; border-radius: 5px; padding: 12px 20px; font-weight: 600; box-shadow: none; }
.ppv-btn:disabled { opacity: .4; }
.ppv-btn:hover:not(:disabled) { background: #000; }
.ppv-note .link { white-space: nowrap; flex: none; }
.ppv-btn { background: #144E2F; display: inline-flex; align-items: center; gap: 6px; }
.ppv-btn:hover:not(:disabled) { background: #0f3d24; }
.ppv-extra { padding: 8px 0 2px 28px; display: grid; gap: 10px; }
.ppv-choice.on .ppv-radio { border-color: #1773B0; }
.ppv-choice.on .ppv-check { background: #1773B0; border-color: #1773B0; }
.ppv-actions { display: flex; align-items: center; gap: 16px; }
.ppv-back { background: none; box-shadow: none; padding: 0; color: #1a1a1a; text-decoration: underline; font-weight: 450; }
.ppv-back:hover { background: none; color: #000; }
.ppv-input::placeholder { color: #8a8a8a; }
/* Umfrage im Bestellverlauf */
.survey-card { border-color: #d7e4dc; background: #f6faf7; }
.sv-list { display: grid; gap: 6px; margin: 8px 0 0; font-size: 13px; }
.sv-list dt { color: var(--muted); font-size: 12px; }
.sv-list dd { margin: 0; }
.sess.purchase.has-sv { cursor: pointer; }
.sv-hint { color: var(--link); margin-top: 4px; }
.sess.purchase .sv-list { border-top: 1px solid #d7e4dc; padding-top: 8px; }

/* ---------------------------------------------------------------- Sourcing + Finance (30.11.2026) */
.seg button.on { background: #ebebeb; }
.s-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.s-bar.tight { margin: 0; }
.s-search { min-width: 220px; flex: 1 1 220px; max-width: 360px; }
.s-form, .f-medit { padding: 8px 0; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.s-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.s-grid label.wide { grid-column: 1 / -1; }
.s-grid input[type=checkbox] { width: 18px; min-height: 18px; }
.s-grid textarea, .s-note { font: inherit; color: var(--text); border: 1px solid #8a8a8a; border-radius: var(--radius-s); padding: 6px 10px; width: 100%; resize: vertical; }
.s-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
button.danger { color: var(--bad-fg, #c70a24); }
.s-form .err { color: var(--bad-fg, #c70a24); }
.s-detail { padding: 8px 0; display: flex; flex-direction: column; gap: 12px; white-space: normal; }
.s-detail-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 16px; font-size: 13px; }
.s-detail h3 { font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.s-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.s-m { border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; background: #f1f1f1; }
.s-m.ok { background: var(--ok-bg); } .s-m.warn { background: var(--warn-bg); } .s-m.bad { background: var(--bad-bg); }
.s-m-l { font-size: 11px; color: var(--muted); } .s-m-in { font-size: 11px; color: var(--info); }
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.s-hist { display: flex; flex-wrap: wrap; gap: 6px 14px; font-variant-numeric: tabular-nums; font-size: 13px; }
.s-hist i { font-style: normal; color: var(--muted); margin-right: 4px; font-size: 11px; }
.s-matrix td.s-c.ok { background: #e6f9ee; } .s-matrix td.s-c.warn { background: #fff6cc; } .s-matrix td.s-c.bad { background: #fde3e2; }
.s-matrix sup { color: var(--info); font-weight: 700; }
@media (max-width: 760px) { .s-two { grid-template-columns: 1fr; } }
.f-pnl td, .f-pnl th { padding: 5px 10px; }
.f-pnl .f-open { color: #9a9a9a; }
.f-pnl td { font-weight: 400; }
.f-pnl tr.f-sum td { border-top: 1px solid var(--line3); }
.f-pnl tr.f-sum td.first { font-weight: 600; }
.f-pnl tr.f-grp.on td { font-weight: 650; }
.f-pnl tr.f-y td, .f-pnl tr.f-y td.first { background: #fff8d9; }
.f-pnl tr.f-g td, .f-pnl tr.f-g td.first { background: #e6f7ec; }
.f-pnl tr.f-h td { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle); padding-top: 14px; border-bottom: 1px solid var(--line2); }
.f-pnl tr.f-line td.first { padding-left: 28px; color: var(--muted); }
.f-pnl tr.f-gap td { height: 8px; padding: 0; border: 0; }
.f-pnl .f-tot { background: #fafafa; }
.f-pnl tr.f-y .f-tot { background: #fbf1c4; } .f-pnl tr.f-g .f-tot { background: #d7f1e0; }
.f-arr { display: inline-block; width: 14px; color: var(--subtle); }
.tip { border-bottom: 1px dotted var(--line3); cursor: help; }
.f-year { margin-top: 16px; }
.f-break.one { grid-template-columns: 1fr; margin-top: 0; }
.f-br.bad b { color: var(--bad-fg); }
.f-marge tr.f-child td { background: #fafafa; }
.f-marge tr.f-child td.first { padding-left: 34px; }
.f-tog { border: 0; background: none; padding: 0 6px 0 0; cursor: pointer; color: var(--subtle); font-size: 13px; min-height: 0; }
.f-edit { margin-top: 10px; } .f-edit summary { cursor: pointer; color: var(--info); font-size: 13px; margin-bottom: 8px; }
.f-cell { cursor: text; display: inline-block; min-width: 40px; }
.f-cell:hover { outline: 1px dashed var(--line3); }
.f-in { width: 90px; min-height: 26px; padding: 2px 6px; text-align: right; }
.f-break { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; margin-top: 12px; padding: 10px 12px; background: #f7f7f7; border-radius: 8px; }
.f-br { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.f-br.k b { color: var(--ok-fg); }
.s-m-d { font-size: 11px; color: var(--muted); } .s-m-d em { color: var(--bad-fg, #c70a24); font-style: normal; font-weight: 600; }
.s-hist span.off { opacity: .45; }
.s-season { display: flex; gap: 6px; align-items: flex-end; }
.s-sb { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 34px; font-size: 11px; font-variant-numeric: tabular-nums; }
.s-sb i { display: block; width: 18px; background: #c9c9c9; border-radius: 3px 3px 0 0; }
.s-sb i.hi { background: var(--ok-fg); } .s-sb i.lo { background: #e0b100; }
.s-sb span { color: var(--muted); } .s-sb b { font-weight: 500; font-size: 10px; color: var(--muted); }
.s-season-row { display: flex; align-items: flex-end; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.s-season-row > b { width: 120px; font-size: 13px; }
td.wrap { white-space: normal; }
/* Sourcing-Bereinigung 01.12.2026 */
.s-matrix th.s-now, .s-matrix td.s-now { font-weight: 700; border-right: 2px solid var(--line3); background: #f4f4f4; }
.s-paid { color: var(--ok-fg); }
.s-due { color: #8a6116; }
.s-gap { height: 16px; }
.f-marge tr.sub-row td > .f-medit { position: sticky; left: 0; max-width: min(860px, calc(100vw - 300px)); }
.f-marge .f-break { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.f-marge .f-br span { min-width: 0; }
.f-marge .f-br b { white-space: nowrap; }
/* Fadenkreuz + Tooltips (01.12.2026) */
.tip-pop { position: fixed; z-index: 100; display: none; max-width: 320px; padding: 7px 10px; background: #303030; color: #fff; font-size: 12px; line-height: 1.45; font-weight: 400; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; white-space: normal; text-transform: none; letter-spacing: 0; }
.f-pnl th.f-tot, .f-pnl td.f-tot { padding-left: 28px; border-left: 1px solid var(--line2); }
.f-pnl tr.f-gap td { height: 16px; border-bottom: 1px solid var(--line2); }
.f-pnl tr.f-gap:hover td, .table-wrap.xh tbody tr.f-gap td { background: var(--panel) !important; }
span.f-tog { display: inline-block; width: 14px; padding: 0; cursor: pointer; color: var(--subtle); }
.s-links a + a { margin-left: 8px; }
/* Fadenkreuz als Rahmen statt Flächen (Jan 01.12.2026: gilt für alle ScrollBox-Tabellen) */
.table-wrap.xh tbody tr:hover td { box-shadow: inset 0 1px 0 #9a9a9a, inset 0 -1px 0 #9a9a9a; }
.table-wrap.xh tbody td.xh-col, .table-wrap.xh thead th.xh-col { box-shadow: inset 1px 0 0 #9a9a9a, inset -1px 0 0 #9a9a9a; }
.table-wrap.xh tbody tr:hover td.xh-col { background-color: #e2e2e2; box-shadow: inset 0 0 0 1px #9a9a9a; }
.table-wrap.xh tbody tr.f-gap td, .table-wrap.xh tbody tr.f-gap:hover td { box-shadow: none; }
/* Tabelle als letztes Element einer Box: untere Ecken mitrunden */
.section > .tbl-box:last-child .table-wrap, .section > div:last-child > .tbl-box:last-child .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.table-wrap.xh tbody tr:hover td:not(.xh-col) { background-color: transparent; }
.table-wrap.xh tbody tr:hover td.first:not(.xh-col) { background-color: var(--panel); }
.table-wrap.xh tbody tr.f-y:hover td:not(.xh-col) { background-color: #fff8d9; }
.table-wrap.xh tbody tr.f-g:hover td:not(.xh-col) { background-color: #e6f7ec; }
.table-wrap.xh tbody tr.f-child:hover td:not(.xh-col) { background-color: #fafafa; }

/* Inventory: Produkt-Infoblock beim Aufklappen (01.12.2026) */
.s-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 12px; }
.s-info-c { background: var(--panel2); border-radius: var(--radius-s); padding: 10px 12px; min-width: 0; }
.s-info-h { margin-bottom: 6px; }
.s-info-g { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.s-info-g dt { color: var(--muted); }
.s-info-g dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.s-matrix tr.click { cursor: pointer; }
.s-matrix td.s-info-td { padding: 10px 12px; background: var(--panel); white-space: normal; }
.s-info-wrap { position: sticky; left: 0; max-width: min(900px, calc(100vw - 80px)); }
.s-files { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Nu Store (dash.nu-store.de) */
.tone-ok { color: var(--ok-fg); } .tone-bad { color: var(--bad-fg); } .tone-warn { color: #8a6116; }
a.kpi-link { color: inherit; text-decoration: none; display: block; border-right: 1px solid var(--line); }
a.kpi-link:last-child { border-right: 0; }
a.kpi-link .kpi { border-right: 0; height: 100%; }
a.kpi-link:hover { background: var(--hover, #f7f7f7); }
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: auto 32px 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check ul { grid-column: 3; margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.stand { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
@media (min-width: 1100px) { .kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
