/* UI v3 C2 (lane U4): dashboard, 'Alle Mandanten', ui/charts.js, Tägliche-Aufgaben count. Ruled
   sections, no cards, role tokens only; inline-size containers only on the strip and KPI row. */
:root:has(.dash) { --bg-app: var(--bg-surface); }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
.dash > * { grid-column: 1 / -1; min-width: 0; }
.dash > .page-head { margin: 0; min-height: 32px; }
.dash > .page-head > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.dash-scope { margin: 0; border-bottom: 0; }
.dash-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-height: 36px; padding-top: 12px; border-top: 1px solid var(--border-hairline); }
.dash-section-head h2 { margin: 0; font-size: var(--text-lg); line-height: 24px; font-weight: var(--weight-bold); }
.dash-section-head p, .dash-empty { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-sm); }
.dash-empty { margin-top: 8px; }
.dash-head-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: var(--text-sm); line-height: var(--lh-sm); }
.dash-head-actions a, .dash-links a { color: var(--accent-text); font-weight: var(--weight-medium); text-decoration: none; }
.dash-head-actions a:hover, .dash-links a:hover, .dash-list a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.dash-count { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: var(--radius-xs); background: var(--bg-active); color: var(--text-secondary); font-size: var(--text-2xs); line-height: 18px; font-weight: var(--weight-medium); text-align: center; vertical-align: 1px; }
.dash-task-grid, .dash-steps, .dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.dash-task-grid, .dash-steps { margin-top: 8px; }
.dash-task, .dash-step, .dash-kpi { min-width: 0; display: grid; color: var(--text-primary); text-decoration: none; }
.dash-task, .dash-kpi { border-left: 1px solid var(--border-hairline); }
.dash-task:nth-child(3n + 1), .dash-kpi:nth-child(3n + 1) { border-left: 0; }
.dash-task:nth-child(n + 4), .dash-kpi:nth-child(n + 4) { border-top: 1px solid var(--border-hairline); }
.dash-task:hover, .dash-step:hover, .dash-kpi:hover { background: var(--bg-hover); }
.dash-task:focus-visible, .dash-kpi:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

.dash-tasks { container: dash-tasks / inline-size; }
.dash-task { grid-template-columns: 36px minmax(0, 1fr) 14px; gap: 0 10px; align-items: center; padding: 9px 12px 9px 4px; }
.dash-task > .ui-icon { grid-column: 3; grid-row: 1 / span 2; color: var(--text-muted); }
.dash-task-count { grid-row: 1 / span 2; display: grid; place-items: center; min-height: 28px; font-size: var(--text-xl); line-height: 28px; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums lining-nums; }
.dash-task.is-urgent .dash-task-count { color: var(--error-fg); }
.dash-task.is-warn .dash-task-count, .dash-task.is-warn .dash-task-note { color: var(--warning-fg); }
.dash-task-count.is-done { color: var(--success-bar); }
.dash-task-count.is-pending { color: var(--border-default); font-weight: var(--weight-regular); }
/* No review period or no bank account: a muted dash (D-08), read as 0. */
.dash-task-count.is-none { color: var(--text-muted); font-weight: var(--weight-regular); }
.dash-task-title, .dash-task-note, .dash-kpi-label > span, .dash-kpi-value, .dash-kpi-foot > span, .dash-recent-text .cell-clip, .dash-recent-source, .dash-bank-account { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-task-title { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-medium); }
.dash-task-note { min-height: 16px; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }
.dash-task.is-zero .dash-task-title { color: var(--text-secondary); font-weight: var(--weight-regular); }
.dash-tasks-error { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; color: var(--error-fg); font-size: var(--text-sm); }
@container dash-tasks (min-width: 1800px) {
  .dash-task-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-task:nth-child(n) { border-left: 1px solid var(--border-hairline); border-top: 0; }
  .dash-task:first-child { border-left: 0; }
}

/* Alpi guide D-A4 item 6: each step is a link over the whole cell (::after) plus «Zeig es mir» below, the
   step state (Starten, Weiter, Erledigt) at the right of that row; four columns with «Firmendaten und IBAN». */
.dash-steps:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-step { position: relative; align-content: space-between; gap: 2px; padding: 10px 12px 8px 4px; }
.dash-step + .dash-step { border-left: 1px solid var(--border-hairline); padding-left: 12px; }
.dash-step-link { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 10px; align-items: center; min-width: 0; color: var(--text-primary); text-decoration: none; }
.dash-step-link::after { content: ""; position: absolute; inset: 0; }
.dash-step-guide { position: relative; z-index: 1; justify-self: start; margin-left: 34px; padding: 2px 0; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--weight-medium); cursor: pointer; }
.dash-step-guide:hover { text-decoration: underline; text-underline-offset: 2px; }
.dash-step:not(:has(> .dash-step-guide)) { padding-bottom: 28px; }
.dash-step-mark { grid-row: 1 / span 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent); color: var(--text-on-solid); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.dash-step.is-done .dash-step-mark { background: var(--success-bg); color: var(--success-fg); }
.dash-step-title { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-medium); }
.dash-step-copy { grid-column: 2; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }
.dash-step-action { position: absolute; right: 12px; bottom: 10px; color: var(--accent-text); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--weight-medium); white-space: nowrap; }
.dash-step.is-done .dash-step-action { color: var(--success-fg); }

.dash-kpi-row { container: dash-kpis / inline-size; }
.dash-kpi { gap: 2px; padding: 12px 16px 10px; }
.dash-kpi:nth-child(3n + 1) { padding-left: 4px; }
.dash-kpi-label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }
.dash-kpi-value { font-size: var(--text-xl); line-height: 28px; font-weight: var(--weight-bold); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.dash-kpi-value .unit { margin: 0 2px 0 0; letter-spacing: 0; }
.dash-kpi-value.is-negative { color: var(--amount-negative); }
.dash-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }
.dash-kpi-foot > span { min-width: 0; }
.spark { flex: 0 0 64px; width: 64px; height: 22px; overflow: visible; color: var(--chart-income); }
.spark polyline, .spark .spark-line { fill: none; stroke: currentColor; stroke-width: 1.75px; stroke-linejoin: round; stroke-linecap: round; }
.spark[data-series="expenseCents"] { color: #94A3B8; }
.spark .spark-dot { fill: currentColor; }
@container dash-kpis (min-width: 1440px) {
  .dash-kpis:has(> :nth-child(4)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-kpis:has(> :nth-child(4)) .dash-kpi:nth-child(n) { border-left: 1px solid var(--border-hairline); border-top: 0; padding-left: 16px; }
  .dash-kpis:has(> :nth-child(4)) .dash-kpi:first-child { border-left: 0; padding-left: 4px; }
}
@container dash-kpis (min-width: 1680px) { .dash-kpi-value { font-size: var(--text-kpi); line-height: 32px; } }

.dash > .dash-chart, .dash > .dash-recent { grid-column: span 8; }
.dash > .dash-due, .dash > .dash-period { grid-column: span 4; }
.dash > .dash-bank { display: none; }
@media (min-width: 1880px) {
  .dash { row-gap: 24px; }
  .dash > .dash-recent, .dash > .dash-bank, .dash > .dash-period { display: block; grid-column: span 4; }
}
.dash-legend { display: inline-flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }
.dash-legend > span::before, .chart-tip-row::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--chart-income); }
.dash-legend > .is-expense::before, .chart-tip-row.series-1::before { background: var(--chart-expense); }
.dash-chart .empty-inline, .dash-chart .table-wrap { margin-top: 8px; }
.dash-chart-table tbody th, .dash-chart-table tbody td { background: var(--bg-surface); }
.dash-chart-table th[scope="row"] { font-weight: var(--weight-regular); text-align: left; color: var(--text-primary); }
/* The row header rules like its cells: the same hairline, none under the last row. */
.dash-chart-table tbody th { border-bottom-color: var(--border-hairline); }
.dash-chart-table tbody tr:last-child th { border-bottom: 0; }
.dash-head-actions .btn[aria-pressed="true"] { background: var(--bg-selected); color: var(--accent-text); }

.chart-frame { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; height: 240px; margin-top: 8px; }
@media (min-width: 1880px) { .chart-frame { height: 280px; } }
.chart-axis { color: var(--text-muted); font-size: var(--text-2xs); line-height: var(--lh-2xs); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.chart-axis > span { position: relative; display: block; height: 0; white-space: nowrap; }
.chart-axis > span:nth-child(1) { top: calc(4% - 7px); }
.chart-axis > span:nth-child(2) { top: calc(25% - 7px); }
.chart-axis > span:nth-child(3) { top: calc(46% - 7px); }
.chart-axis > span:nth-child(4) { top: calc(67% - 7px); }
.chart-axis > span:nth-child(5) { top: calc(88% - 7px); }
.chart-plot { position: relative; min-width: 0; }
.chart-svg { display: block; overflow: visible; }
.chart-gridline, .chart-baseline { stroke: #F1F5F9; stroke-width: 1px; shape-rendering: crispEdges; }
.chart-baseline { stroke: #CBD5E1; }
.chart-bar.is-income { fill: var(--chart-income); transition: opacity 140ms ease; }
.chart-bar.is-expense { fill: var(--chart-expense); transition: opacity 140ms ease; }
.chart-svg:has(.chart-month.is-active) .chart-month:not(.is-active) .chart-bar { opacity: .45; }
.chart-hit { fill: transparent; }
.chart-month[data-tip-title]:hover .chart-hit { fill: #F8FAFC; }
.chart-month:focus { outline: none; }
.chart-month:focus-visible .chart-hit { fill: #F8FAFC; stroke: var(--focus-ring); stroke-width: 1.5px; }
.chart-label { fill: var(--text-muted); font-size: var(--text-2xs); }
.chart-month.is-future .chart-label { fill: var(--text-disabled); }
/* Institutional dark obsidian chart tooltip */
.chart-tip { position: absolute; top: 8px; z-index: 5; display: grid; gap: 4px; min-width: 168px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; background: #0F172A; color: #F8FAFC; box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .42); font-size: 12px; line-height: 1.4; pointer-events: none; transform: translateX(8px); }
.chart-tip[data-align="before"] { transform: translateX(calc(-100% - 8px)); }
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-weight: 600; color: #FFFFFF; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.chart-tip-row b { font-weight: 600; }
.chart-tip-row { display: flex; align-items: center; gap: 6px 14px; color: #CBD5E1; }
.chart-tip-row::before { width: 8px; height: 8px; margin: 0; border-radius: 999px; }
.chart-tip-row b { margin-left: auto; color: #FFFFFF; font-variant-numeric: tabular-nums lining-nums; }

.dash-due-list h3 { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-medium); }
.dash-due-list h3 a, .dash-due-name a { color: var(--text-primary); text-decoration: none; }
.dash-list { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--text-sm); line-height: var(--lh-sm); }
.dash-list td, .dash-list th, .dash-facts > div { padding: 5px 4px; border-bottom: 1px solid var(--stone-4); text-align: left; vertical-align: top; }
.dash-quiet-head th { height: 0; padding-top: 0; padding-bottom: 0; border: 0; line-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dash-list thead:not(.dash-quiet-head) th { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--weight-medium); }
.dash-list tr:last-child td, .dash-facts > div:last-child { border-bottom: 0; }
.dash-list .num, .dash-list th.num { text-align: right; white-space: nowrap; }
.dash-due-name a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.dash-due-date, .dash-recent-date { width: 88px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.dash-due-list .num { width: 88px; }
.dash-recent-text .cell-clip { display: block; }
.dash-recent-source { width: 132px; color: var(--text-muted); }
.dash-bank .dash-list .num, .dash-bank .dash-list .dash-due-date { width: 120px; }
/* The heading may wrap (fr «Dernier mouvement» is 127 px); the dates below stay on one line. */
.dash-bank .dash-list th.dash-due-date { white-space: normal; }
/* Presentation polish (27.09.2026, I-16): «2 nicht zugeordnet» under the account, «Abgeglichen bis 31.08.2026» on one line. */
.dash-bank .dash-bank-open { display: block; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }
.dash-bank .dash-list td:last-child { white-space: nowrap; }
.dash-bank .dash-list th:last-child, .dash-bank .dash-list td:last-child { width: 204px; padding-left: 16px; }
.dash-facts { display: grid; margin: 8px 0 0; }
.dash-facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-sm); line-height: var(--lh-sm); }
.dash-facts dt { color: var(--text-muted); }
.dash-facts dd { margin: 0; text-align: right; }
.dash-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0 4px; font-size: var(--text-sm); line-height: var(--lh-sm); }

/* The Mandant cell stays a table cell (rules in line, grid ellipsis); the current row is marked by
   'Aktuell' only, since the petrol tint means selection. */
.dash-org-name { font-weight: var(--weight-medium); }
.dash-org-name .org-monogram { display: inline-grid; width: 20px; height: 20px; margin: -4px 8px -4px 0; vertical-align: middle; }
.dash-orgs .row-actions { white-space: nowrap; text-align: right; }
.dash-orgs .row-actions .btn + .btn { margin-left: 6px; }
/* Pinned: above the quiet row-action rule of styles.css (.data-table td > .btn.btn-small:not(…):not(…)). */
.dash-orgs .data-table td > .btn.btn-small.dash-pin[aria-pressed="true"] { color: var(--accent-text); background: var(--bg-selected); }
.dash-pin[aria-pressed="true"] .ui-icon { fill: currentColor; }

/* Mandanten-Cockpit (lane CK, docs/cockpit-acceptance.md), the tab «Alle Mandanten»: chips and the
   «Stand» line above the grid, fixed column widths (table-layout of .list-grid; above u1-lists.css),
   figures as links in the accent. Red stays with the overdue amount (.amount-overdue, styles.css);
   amber marks an unprepared VAT return within 14 days, an old open bank movement and an open review. */
.ck-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; }
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-chips .filter-chip { max-width: none; }
.ck-chips .filter-chip-group.is-active .filter-chip { border-radius: var(--radius-sm); }
.ck-chip-count { margin-left: 2px; font-variant-numeric: tabular-nums lining-nums; font-weight: var(--weight-semibold); }
.ck-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-sm); }
.ck-loading { margin: 0 0 8px; color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-sm); }
.ck-notice { margin: 0 0 8px; }
.list-grid.ck-table th.ck-access-col { width: 112px; }
.list-grid.ck-table th.ck-count { width: 76px; }
.list-grid.ck-table th.ck-recon-col { width: 120px; }
.list-grid.ck-table th.num:not(.ck-count) { width: 108px; }
.list-grid.ck-table th.ck-vat-col { width: 166px; }
.list-grid.ck-table th.ck-payroll-col { width: 124px; }
.list-grid.ck-table th.col-date { width: 108px; }
/* Two-line column heads: the short counts keep a readable label instead of «…». */
.ck-table thead tr:first-child th { vertical-align: bottom; white-space: normal; }
.ck-table thead .grid-sort { align-items: flex-end; }
.ck-table thead .grid-sort > span:first-child { white-space: normal; text-overflow: clip; line-height: var(--lh-xs); }
.data-grid .data-grid-table.ck-table :is(th.ck-count, td.num:not(.grid-sum-value)) { padding-inline: 6px; }
.data-grid .data-grid-table.ck-table th.ck-count .grid-sort { width: calc(100% + 12px); margin-inline: -6px; padding-inline: 6px; }
/* The narrow count heads show the sort arrow only while sorted (the label keeps its room). */
.ck-table th.ck-count:not([aria-sort="ascending"], [aria-sort="descending"]) .grid-sort-indicator { display: none; }
.ck-name { font-weight: var(--weight-medium); }
.ck-dot { display: inline-block; width: 8px; height: 8px; margin: 0 8px 0 0; border-radius: var(--radius-full); background: var(--border-hairline); vertical-align: middle; }
.ck-dot.is-hoch { background: var(--warning-fg); }
.ck-dot.is-mittel { background: var(--warning-line); }
.ck-dot.is-niedrig { background: var(--stone-7); }
.ck-table td a { text-decoration: none; }
.ck-table td a:hover, .ck-table td a:focus-visible { text-decoration: underline; }
.ck-table td:is(.num, .ck-vat, .ck-recon, .ck-payroll, .col-date) a { color: var(--accent-text); }
.ck-table td.amount-overdue a { color: inherit; }
.ck-table td.ck-vat.is-soon a, .ck-table td.ck-recon:is(.is-open, .is-incomplete) a, .ck-table td.col-date.ck-old, .ck-table td.col-date.ck-old a { color: var(--warning-fg); }
.ck-sub { color: var(--text-muted); font-size: var(--text-xs); }
.ck-ok { color: var(--success-fg); }
.ck-ok .ui-icon { vertical-align: -2px; }
.ck-pending, .ck-payroll.is-keine { color: var(--text-muted); }
.ck-pin { color: var(--accent-text); }
.ck-pin .ui-icon { fill: currentColor; vertical-align: -1px; }
@media print { .ck-bar .btn, .ck-chips { display: none; } }
@media (forced-colors: active) { .ck-dot { forced-color-adjust: none; background: CanvasText; } .ck-dot.is-keine { background: GrayText; } }

.side-nav .nav-count, .modal-nav .nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--petrol-3); color: var(--accent-text); font-size: var(--text-2xs); line-height: 18px; font-weight: var(--weight-medium); text-align: center; font-variant-numeric: tabular-nums lining-nums; }
.is-rail .nav-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media print { .dash-scope, .dash-head-actions, .chart-tip, .dash-onboarding { display: none; } }
@media (forced-colors: active) {
  .chart-bar { fill: CanvasText; }
  .chart-bar.is-expense { fill: GrayText; }
  .dash-task-count.is-done, .dash-task.is-warn .dash-task-count, .dash-task.is-urgent .dash-task-count { color: CanvasText; }
}

/* ==========================================================================
   Kalex24 / Alpiva Layout Redesign (Nov 2026 Audit pp. 4–5):
   Calm Übersicht (Erste Schritte hero, 3-row Finanzen im Überblick, Heute zu tun,
   Letzte Buchungen strip) & Clean Aufgaben (amber Bankprüfung strip, Liste default,
   category dropdown instead of 9 zero-counter tabs).
   ========================================================================== */
.dash-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-hero-date { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.dash-hero-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-trial-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #D9E2EC; border-radius: 999px; background: #FFFFFF; color: #334155; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dash-trial-pill .ui-icon { color: #64748B; }

/* Swiss Editorial Erste Schritte Card — clean architectural surface, zero pastel gradient */
.dash > .dash-onboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px 32px;
  align-items: center;
  padding: 24px 26px !important;
  border: 1px solid #E2E6EC !important;
  border-top: 3px solid var(--accent) !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025) !important;
}
.dash-ob-main { display: grid; gap: 10px; align-content: start; justify-items: start; }
.dash-ob-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dash-ob-main h2 { margin: 0; font-size: 24px; line-height: 1.18; font-weight: 600; letter-spacing: -0.025em; color: #0F172A; }
.dash-ob-copy { margin: 0; max-width: 44ch; color: #475569; font-size: 14px; line-height: 1.5; }
.dash-ob-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.dash-ob-primary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.dash-ob-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.dash-ob-checklist { padding: 15px 17px; border: 1px solid #E5E9F0; border-radius: 10px; background: #FAFBFD; }
.dash-ob-check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid #ECEEF2; font-size: 13px; }
.dash-ob-check-head strong { color: #0F172A; font-weight: 600; }
.dash-ob-progress { display: inline-flex; align-items: center; gap: 8px; color: #64748B; font-size: 12.5px; }
.dash-ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-ob-item a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: #334155; font-size: 13.5px; text-decoration: none; transition: background-color var(--motion); }
.dash-ob-item a:hover { background: #F1F5F9; }
.dash-ob-item.is-done a { color: #64748B; }
.dash-ob-item.is-next a { background: #FFFFFF; color: #0F172A; font-weight: 600; box-shadow: inset 0 0 0 1px #E2E6EC; }
.dash-ob-mark { flex: 0 0 22px; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid #CBD5E1; background: #FFFFFF; color: #64748B; font-size: 11.5px; font-weight: 600; }
.dash-ob-mark.is-done { border-color: #CBD5E1; background: #F1F5F9; color: #475569; }
.dash-ob-mark.is-next { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.dash-ob-item-label { flex: 1; min-width: 0; }
.dash-ob-next-pill { padding: 2px 8px; border-radius: 999px; background: var(--bg-selected); color: var(--accent-text); font-size: 11px; font-weight: 600; white-space: nowrap; }

/* 2-Column Core Overview Grid (Finanzen im Überblick + Heute zu tun) */
.dash > .dash-core-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 20px; align-items: stretch; }
.dash-card { display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid #E5E8EE; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-card-head h2 { margin: 0; font-size: 15.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: #0F172A; }
.dash-card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dash-card-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.dash-fin-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-fin-rows li + li { border-top: 1px solid #F1F5F9; }
.dash-fin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 6px; border-radius: 8px; color: #0F172A; text-decoration: none; transition: background-color var(--motion); }
.dash-fin-row:hover { background: #F8FAFC; }
.dash-fin-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #1E293B; }
.dash-fin-label .ui-icon { color: #64748B; }
.dash-fin-val { text-align: right; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: #0F172A; }
.dash-fin-val small { display: block; font-size: 11.5px; font-weight: 400; color: #64748B; }
.dash-fin-val.is-empty { font-size: 13.5px; font-weight: 400; color: #64748B; }
.dash-fin-val.is-negative { color: var(--amount-negative); }

.dash-today-empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 6px; padding: 22px 16px; border-radius: 10px; background: #FAFBFD; text-align: center; }
.dash-today-empty-icon { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; background: #EEF2F6; color: #475569; margin-bottom: 4px; }
.dash-today-empty strong { font-size: 14.5px; color: #0F172A; }
.dash-today-empty p { margin: 0; max-width: 34ch; color: #64748B; font-size: 13px; line-height: 1.45; }
.dash-today-list { display: grid; gap: 8px; }
.dash-today-list .dash-task { border: 1px solid #EEF2F5; border-radius: 10px; padding: 10px 12px; }

/* Bottom subtle Letzte Buchungen strip */
.dash > .dash-recent-strip { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border: 1px solid #E5E9F0; border-radius: 12px; background: #FFFFFF; }
.dash-recent-strip-label { display: inline-flex; align-items: center; gap: 9px; color: #64748B; font-size: 13.5px; }
.dash-recent-strip-label svg { color: #94A3B8; }

@media (max-width: 980px) {
  .dash > .dash-onboard-hero,
  .dash > .dash-core-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Aufgaben (Worklist Redesign — PDF p. 5)
   ========================================================================== */
.worklist-page { display: grid; gap: 16px; }
.worklist-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.worklist-head h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: #0F172A; }
.worklist-head p { margin: 4px 0 0; font-size: 13.5px; }
.worklist-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.worklist-stand { display: inline-flex; align-items: center; gap: 6px; color: #64748B; font-size: 12.5px; }

/* Compact authoritative Bankprüfung strip with expandable Prüfdetails > */
.worklist-bank-banner { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px 14px; align-items: start; padding: 14px 18px; border-radius: 10px; border: 1px solid #E5E8EE; background: #FFFFFF; }
.worklist-bank-banner.is-warn { border-color: #EFE5CE; border-left: 3px solid #D97706; background: #FFFDF8; }
.worklist-bank-banner.is-ok { border-color: #D5E5DF; border-left: 3px solid var(--accent); background: #FAFDFC; }
.wbb-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #FEF3C7; color: #9A5B13; }
.worklist-bank-banner.is-ok .wbb-icon { background: var(--bg-selected); color: var(--accent-text); }
.wbb-body { min-width: 0; }
.wbb-body strong { display: block; font-size: 14px; font-weight: 600; color: #0F172A; }
.wbb-body p { margin: 2px 0 4px; font-size: 13px; color: #475569; line-height: 1.45; }
.wbb-body small { display: block; font-size: 12px; color: #64748B; }
.wbb-details { justify-self: end; }
.wbb-details > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 8px; color: #1E293B; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wbb-details > summary::-webkit-details-marker { display: none; }
.wbb-details > summary:hover { background: rgba(15, 23, 42, .05); }
.wbb-details[open] > summary .ui-icon { transform: rotate(90deg); }
.wbb-details[open] { grid-column: 1 / -1; justify-self: stretch; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(15, 23, 42, .08); }
.wbb-details-body { margin-top: 8px; font-size: 13px; color: #475569; }
.wbb-details-body p { margin: 0 0 8px; line-height: 1.5; }
.wbb-account-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.wbb-account-list a { margin-left: 8px; color: var(--accent-text); font-weight: 500; text-decoration: none; }
.wbb-account-list a:hover { text-decoration: underline; }

/* Main Offene Aufgaben panel */
.worklist-panel { padding: 20px 22px; border: 1px solid #E5E9F0; border-radius: 14px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.worklist-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #F1F5F9; margin-bottom: 14px; }
.worklist-panel-title-wrap { display: inline-flex; align-items: center; gap: 10px; }
.worklist-panel-title-wrap h2 { margin: 0; font-size: 16px; font-weight: 600; color: #0F172A; }
.worklist-total-badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: #F1F5F9; color: #334155; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.worklist-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.worklist-toolbar .field.search { flex: 1 1 320px; margin: 0; }
.worklist-category-select { min-width: 210px; flex: 0 1 250px; }
.worklist-search-submit { flex: 0 0 auto; }
.worklist-panel .worklist-table-card { border: 1px solid #EEF2F5; border-radius: 10px; box-shadow: none; }
.worklist-empty-box { display: grid; place-items: center; gap: 6px; padding: 48px 20px; text-align: center; }
.worklist-empty-ico { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; background: #F1F5F9; color: #475569; margin-bottom: 6px; }
.worklist-empty-box h3 { margin: 0; font-size: 17px; font-weight: 600; color: #0F172A; }
.worklist-empty-box p { margin: 0; color: #475569; font-size: 13.5px; }
.worklist-empty-box .worklist-empty-disclaimer { color: #64748B; font-size: 13px; margin-top: 2px; }
.worklist-empty-box .btn { margin-top: 10px; }
.worklist-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 4px; color: #64748B; font-size: 12.5px; }
.worklist-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
