/* G8 2.5.12: 3 consecutive stylesheets, source order preserved. */

/* BEGIN abrechnung/css/app.css */
:root {
  color-scheme: light;
  --page-bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #171a1f;
  --muted: #4b5563;
  --line: #d5d9df;
  --line-strong: #9da5af;
  --accent: #2457a7;
  --accent-dark: #173d78;
  --accent-soft: #edf3fb;
  --good: #1f7550;
  --warn: #9a6500;
  --danger: #b03434;
  --shadow: 0 8px 28px rgba(24, 32, 45, .08);
  --font: Arial, Helvetica, sans-serif;
  --mono: "Courier New", monospace;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
}

button, select, input { font: inherit; }

a { color: inherit; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #ccd1d8;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
}

.app-header-inner {
  width: min(1220px, calc(100% - 28px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong { font-size: 14px; }
.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.app-nav {
  display: flex;
  align-self: stretch;
  gap: 2px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: #525b66;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.app-nav-link:hover {
  color: var(--ink);
  background: #f6f8fa;
}

.app-nav-link.active {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-chip {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.icon-action,
.text-button,
.primary-button,
.secondary-button,
.period-arrow {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.icon-action {
  padding: 7px 9px;
  font-size: 11px;
}

.primary-button {
  padding: 9px 13px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.secondary-button,
.text-button {
  padding: 8px 12px;
  font-size: 12px;
}

.app-page {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 48px;
}

.main-page {
  width: min(1120px, calc(100% - 28px));
}

.status-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 9px;
  color: var(--muted);
  font-size: 11px;
}

.status-line strong {
  color: var(--ink);
}

.status-line #statusText::before {
  content: "· ";
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--warn);
}

.status-dot.ok { background: var(--good); }
.status-dot.error { background: var(--danger); }

.period-strip {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(24,32,45,.03);
}

.period-field {
  display: grid;
  gap: 3px;
}

.period-field label,
.field label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.period-field select,
.field input,
.field select {
  min-height: 35px;
  border: 1px solid #bfc6cf;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

.period-field select {
  min-width: 165px;
  padding: 6px 30px 6px 9px;
}

.period-year select { min-width: 92px; }

.period-arrow {
  width: 35px;
  height: 35px;
  padding: 0;
  font-size: 22px;
}

.period-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

.setup-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--warn);
  background: #fff8e7;
  color: #563d09;
  font-size: 12px;
}

.setup-notice strong,
.setup-notice span { display: block; }
.setup-notice span { margin-top: 2px; color: #70591e; }

.hidden { display: none !important; }

/* VDN-like main document ----------------------------------- */

.vdn-sheet {
  width: min(100%, 210mm);
  min-height: 270mm;
  margin: 16px auto 0;
  padding: 14mm 14mm 12mm;
  border: 1px solid #c5c9cf;
  background: #fff;
  color: #111;
  box-shadow: var(--shadow);
  font-family: Arial, Helvetica, sans-serif;
}

.vdn-head {
  display: grid;
  grid-template-columns: 1fr 48mm;
  gap: 10mm;
  align-items: end;
  padding-bottom: 5mm;
  border-bottom: 1.5px solid #222;
}

.vdn-kicker {
  color: #4e5965;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.vdn-company h1 {
  margin: 2mm 0 1mm;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
}

.vdn-company p {
  margin: 0;
  color: #5c626b;
  font-size: 9px;
}

.vdn-period-box {
  padding: 3mm 4mm;
  border: 1px solid #777;
  text-align: right;
}

.vdn-period-box span,
.vdn-label {
  display: block;
  color: #60656c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.vdn-period-box strong {
  display: block;
  margin-top: 1.5mm;
  font-size: 15px;
}

.vdn-person {
  display: grid;
  grid-template-columns: 1.7fr .75fr .85fr .9fr .7fr;
  gap: 0;
  margin-top: 5mm;
  border: 1px solid #8b9096;
}

.vdn-person > div {
  min-height: 17mm;
  padding: 3mm;
  border-left: 1px solid #b8bcc1;
}

.vdn-person > div:first-child { border-left: 0; }

.vdn-person strong {
  display: block;
  margin-top: 2mm;
  font-size: 11px;
}

.vdn-block {
  margin-top: 5mm;
}

.vdn-block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2mm 2.5mm;
  border-bottom: 1px solid #333;
  background: #e9edf1;
}

.vdn-block-title span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.vdn-block-title small {
  color: #60666c;
  font-size: 8px;
}

.vdn-block-title.compact {
  padding: 1.7mm 2mm;
}

.vdn-table-wrap { overflow-x: auto; }

.vdn-table,
.data-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.vdn-table {
  table-layout: fixed;
  font-size: 9px;
}

.vdn-table th {
  padding: 2.2mm 1.8mm;
  border-bottom: 1px solid #999;
  color: #555;
  font-size: 7.5px;
  text-align: left;
  text-transform: uppercase;
}

.vdn-table td {
  padding: 1.8mm;
  border-bottom: 1px solid #d1d4d8;
  vertical-align: middle;
}

.vdn-table .code-col { width: 18mm; }
.vdn-table .num-col { width: 21mm; text-align: right; }
.vdn-table .amount-col { width: 27mm; text-align: right; }

.vdn-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vdn-table tfoot td {
  padding-top: 2.5mm;
  padding-bottom: 2.5mm;
  border-top: 1.5px solid #333;
  border-bottom: 0;
  font-weight: 700;
}

.vdn-empty {
  padding: 8mm !important;
  color: #6d7278;
  text-align: center !important;
}

.amount {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.strong { font-weight: 800; }

.vdn-bases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3mm;
  margin-top: 5mm;
}

.vdn-mini-block {
  border: 1px solid #a9aeb4;
}

.vdn-mini-block dl,
.detail-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  margin: 0;
}

.vdn-mini-block dt,
.vdn-mini-block dd {
  margin: 0;
  padding: 1.7mm 2mm;
  border-top: 1px solid #e0e2e5;
  font-size: 8.5px;
}

.vdn-mini-block dt { color: #555; }
.vdn-mini-block dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.deduction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #aaa;
  border-top: 0;
}

.deduction-grid > div {
  min-height: 16mm;
  padding: 2.7mm;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.deduction-grid > div:nth-child(4n) { border-right: 0; }

.deduction-grid span {
  display: block;
  min-height: 7mm;
  color: #5f646a;
  font-size: 7.5px;
  text-transform: uppercase;
}

.deduction-grid strong {
  display: block;
  margin-top: 1mm;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vdn-net {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  margin-top: 6mm;
  border: 1.5px solid #333;
}

.vdn-net > div {
  min-height: 22mm;
  padding: 4mm;
  border-left: 1px solid #aaa;
}

.vdn-net > div:first-child { border-left: 0; }

.vdn-net span {
  display: block;
  color: #555;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.vdn-net strong {
  display: block;
  margin-top: 3mm;
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vdn-net .payout {
  background: #edf3fb;
}

.vdn-net .payout strong {
  color: #173d78;
  font-size: 19px;
}

.vdn-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5mm;
  padding-top: 2.5mm;
  border-top: 1px solid #aaa;
  color: #46505c;
  font-size: 7.5px;
}

.main-shortcuts {
  width: min(100%, 210mm);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shortcut-card {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.shortcut-card:hover { border-color: #aeb7c2; }

.shortcut-card strong,
.shortcut-card small { display: block; }
.shortcut-card strong { font-size: 13px; }
.shortcut-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.shortcut-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

/* Subpages -------------------------------------------------- */

.subpage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 24px 0 14px;
}

.subpage-head h1 {
  margin: 4px 0 3px;
  font-size: 25px;
}

.subpage-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(24,32,45,.035);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.panel-head h2 {
  margin: 0;
  font-size: 14px;
}

.panel-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.field {
  display: grid;
  gap: 4px;
}

.field input,
.field select {
  width: 100%;
  padding: 7px 9px;
}

.advanced-disclosure {
  margin: 0 14px 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.advanced-disclosure summary,
.diagnostic-panel summary {
  padding: 10px 12px;
  cursor: pointer;
  color: #525b65;
  font-size: 11px;
  font-weight: 700;
}

.editor-head {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.wage-editor-grid,
.wage-editor-row {
  display: grid;
  grid-template-columns: 95px 1fr 130px 150px 38px;
  gap: 9px;
  align-items: center;
}

.net-editor-grid,
.net-row {
  display: grid;
  grid-template-columns: 110px 1fr 160px 38px;
  gap: 9px;
  align-items: center;
}

.editor-body {
  padding: 0 14px 10px;
}

.wage-editor-row,
.net-row {
  padding: 8px 0;
  border-bottom: 1px solid #e3e5e8;
}

.wage-editor-row input,
.wage-editor-row select,
.net-row input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #c5cad0;
  border-radius: 3px;
  background: #fff;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.detail-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.detail-cards > section {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.detail-cards > section:last-child { border-right: 0; }

.detail-cards h3 {
  margin: 0 0 9px;
  font-size: 12px;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px dotted #d5d9dd;
  font-size: 11px;
}

.detail-list dt { color: var(--muted); }
.detail-list dd {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.notice-box {
  margin: 0 14px 14px;
  padding: 11px 12px;
  border-left: 4px solid var(--warn);
  background: #fff8e7;
  font-size: 11px;
  line-height: 1.45;
}

.inline-actions {
  display: flex;
  gap: 7px;
}

.compare-result {
  margin: 0 14px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.empty-compare {
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
}

.compare-table th,
.compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.compare-table th {
  background: #f4f6f8;
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
}

.diff-ok { color: var(--good); font-weight: 800; }
.diff-warn { color: var(--warn); font-weight: 800; }
.diff-bad { color: var(--danger); font-weight: 800; }

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  padding: 14px;
}

.diagnostic-grid span,
.diagnostic-grid strong { display: block; }
.diagnostic-grid span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.diagnostic-grid strong {
  margin-top: 2px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.detail-toolbar { padding: 0 14px 14px; }

.shift-stat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

.shift-stat {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.shift-stat strong {
  display: block;
  font-size: 22px;
}

.shift-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-scroll { overflow-x: auto; }

.data-table th,
.data-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e0e3e6;
  font-size: 11px;
  text-align: left;
}

.data-table th {
  background: #f4f6f8;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  min-width: 34px;
  padding: 3px 6px;
  border: 1px solid #bec5cc;
  background: #f8f9fa;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.badge-ts { background: #eef3fa; }
.badge-ns { background: #eeebf7; }
.badge-entry { background: #edf6f0; color: var(--good); }
.badge-holiday { background: #fbecec; color: var(--danger); }

.empty-cell {
  padding: 24px !important;
  color: var(--muted);
  text-align: center !important;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .app-header-inner { gap: 10px; }
  .brand { min-width: auto; }
  .brand small { display: none; }
  .app-nav-link { padding: 0 9px; font-size: 11px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .shift-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .vdn-sheet { padding: 8mm; }
  .vdn-person { grid-template-columns: 1.4fr .7fr .8fr .8fr .7fr; }
}

@media (max-width: 680px) {
  .app-header-inner {
    min-height: 54px;
    flex-wrap: wrap;
    padding: 7px 0 0;
  }

  .brand { order: 1; }
  .header-actions { order: 2; }
  .app-nav {
    order: 3;
    width: 100%;
    min-height: 40px;
    overflow-x: auto;
  }

  .app-nav-link {
    flex: 1 0 auto;
    justify-content: center;
  }

  .user-chip { display: none; }

  .period-strip {
    flex-wrap: wrap;
    align-items: end;
  }

  .period-field { flex: 1; }
  .period-field select { width: 100%; min-width: 0; }
  .period-year { flex: 0 0 90px; }
  .period-actions {
    flex: 1 0 100%;
    margin-left: 0;
  }
  .period-actions > * { flex: 1; }

  .vdn-sheet {
    width: 100%;
    min-height: 0;
    margin-top: 10px;
    padding: 14px;
  }

  .vdn-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vdn-period-box { text-align: left; }

  .vdn-person {
    grid-template-columns: 1fr 1fr;
  }

  .vdn-person > div {
    border-left: 0;
    border-top: 1px solid #bbb;
  }

  .vdn-person > div:first-child { grid-column: 1 / -1; border-top: 0; }

  .vdn-bases,
  .deduction-grid,
  .vdn-net,
  .main-shortcuts,
  .two-col,
  .detail-cards {
    grid-template-columns: 1fr;
  }

  .deduction-grid > div,
  .vdn-net > div,
  .detail-cards > section {
    border-right: 0;
    border-left: 0;
  }

  .vdn-net > div {
    border-top: 1px solid #aaa;
  }
  .vdn-net > div:first-child { border-top: 0; }

  .subpage-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .compare-input-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wage-editor-grid,
  .net-editor-grid {
    display: none;
  }

  .wage-editor-row {
    grid-template-columns: 80px 1fr;
  }

  .net-row {
    grid-template-columns: 80px 1fr;
  }

  .wage-editor-row input:nth-child(4),
  .net-row input:nth-child(3) {
    grid-column: 1 / 2;
  }

  .shift-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media print {
  body { background: #fff; }
  .app-header,
  .status-line,
  .period-strip,
  .setup-notice,
  .main-shortcuts,
  .subpage-head > a,
  .panel,
  .shift-stat-grid {
    display: none !important;
  }

  .app-page,
  .main-page {
    width: 100%;
    margin: 0;
  }

  .vdn-sheet {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  @page {
    size: A4 portrait;
    margin: 15mm 15mm 14mm 20mm;
  }
}


/* V17 – Entgeltquellen ------------------------------------- */
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px;
}

.source-row {
  min-height: 72px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-row:nth-child(3n) { border-right: 0; }

.source-row span,
.source-row strong,
.source-row small {
  display: block;
}

.source-row span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.source-row strong {
  margin-top: 5px;
  font-size: 14px;
}

.source-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.source-note {
  margin: 12px 14px 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.source-note.ok {
  border-left-color: var(--good);
  color: var(--good);
  background: #eef7f2;
}

.source-note.warn {
  border-left-color: var(--warn);
  color: #745214;
  background: #fff8e7;
}

.field-source {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

@media (max-width: 680px) {
  .source-grid { grid-template-columns: 1fr 1fr; }
  .source-row:nth-child(3n) { border-right: 1px solid var(--line); }
  .source-row:nth-child(2n) { border-right: 0; }
}

/* V19 */
.vdn-footer {
  align-items: center;
  flex-wrap: wrap;
}
#vdnSource {
  flex: 1;
  text-align: center;
}

/* V20 – Prüfspur */
.audit-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.audit-summary span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 9px;
}
.audit-summary strong { color: var(--accent-dark); }
.audit-table td:nth-child(5),
.audit-table td:nth-child(6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* V21 – Jahr */
.year-total-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
  margin-top:12px;
}
.year-total-grid > div {
  padding:12px;
  border:1px solid var(--line);
  background:#fff;
}
.year-total-grid span,.year-total-grid strong { display:block; }
.year-total-grid span { color:var(--muted); font-size:9px; text-transform:uppercase; }
.year-total-grid strong { margin-top:5px; font-size:17px; }
.year-table tfoot td { font-weight:800; border-top:1.5px solid var(--line-strong); }
.year-month-link { color:var(--accent-dark); font-weight:800; cursor:pointer; }
.year-month-link:hover { text-decoration:underline; }
@media (max-width:800px){ .year-total-grid{grid-template-columns:repeat(3,1fr);} }

/* V22 – VDN-Vergleich */
.wage-ref-input {
  width:120px;
  padding:6px 7px;
  border:1px solid #c5cad0;
  border-radius:3px;
  text-align:right;
}
.wage-compare-table td:nth-child(n+4) { text-align:right; }
.wage-compare-table .vdn-only-row{background:rgba(255,183,0,.055)}
.wage-catalog-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:16px}.wage-catalog-table{min-width:760px}.wage-catalog-table td:first-child{font-weight:800}.wage-catalog-table td:nth-child(4){font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.wage-catalog-table .catalog-review-row{background:rgba(255,183,0,.055)}
@media(max-width:760px){.wage-catalog-filters{grid-template-columns:1fr}}

/* V23 – Monatsprüfung */
.review-bar,.review-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  background:#fff;
}
.review-panel { margin-bottom:12px; }
.review-bar span,.review-bar strong,.review-bar small,
.review-panel span,.review-panel strong,.review-panel small { display:block; }
.review-bar span,.review-panel span { color:var(--muted); font-size:9px; text-transform:uppercase; font-weight:800; }
.review-bar strong,.review-panel strong { margin-top:2px; font-size:14px; }
.review-bar small,.review-panel small { margin-top:2px; color:var(--muted); font-size:9px; }
.review-state.checked { color:var(--good); }
.review-state.changed { color:var(--warn); }
.review-state.open { color:var(--muted); }
.review-bar[data-status="checked"] { border-left:4px solid var(--good); }
.review-bar[data-status="changed"] { border-left:4px solid var(--warn); }
.review-bar[data-status="open"] { border-left:4px solid var(--line-strong); }
@media print { .review-bar { display:none!important; } }


/* V24 – Supabase-Abrechnungsprofil */
.firebase-profile-table {
  table-layout: fixed;
}

.firebase-profile-table th:nth-child(1) { width: 22%; }
.firebase-profile-table th:nth-child(2) { width: 28%; }
.firebase-profile-table th:nth-child(3) { width: 36%; }
.firebase-profile-table th:nth-child(4) { width: 14%; }

.firebase-profile-table code {
  font-size: 10px;
  color: var(--accent-dark);
}

.firebase-profile-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.firebase-state {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.firebase-state.used {
  border-color: #a8cdbb;
  background: #eef7f2;
  color: var(--good);
}

.firebase-state.loaded {
  border-color: #dcc98f;
  background: #fff8e7;
  color: #745214;
}

.firebase-note {
  padding: 10px 14px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* V28 – Datenstatus */
.readiness-box{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:10px 12px;border:1px solid var(--line);background:#fff;border-left:4px solid var(--line-strong);}
.readiness-box span,.readiness-box strong,.readiness-box small{display:block}.readiness-box span{color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}.readiness-box strong{margin-top:2px;font-size:14px}.readiness-box small{margin-top:2px;color:var(--muted);font-size:9px}.readiness-box[data-state="vollstaendig"]{border-left-color:var(--good)}.readiness-box[data-state="vorlaeufig"]{border-left-color:var(--warn)}.readiness-box[data-state="blockiert"]{border-left-color:var(--danger)}
@media print{.readiness-box{display:none!important}}

/* V29 */ .test-ok{color:var(--good);font-weight:800}.test-bad{color:var(--danger);font-weight:800}

/* V30 FINAL */ .vdn-kicker{letter-spacing:.105em}


/* FINAL 1.1 – Profil / Konsolidierung */
.app-nav { flex-wrap: wrap; }
.profile-status-card {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.profile-status-card span,.profile-status-card strong,.profile-status-card small { display:block; }
.profile-status-card span { color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800; }
.profile-status-card strong { margin-top:3px;font-size:14px; }
.profile-status-card small { margin-top:3px;color:var(--muted);font-size:9px; }
.profile-tariff-card {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:12px 0;
  padding:14px;
  border:1px solid var(--line-strong);
  background:#fff;
}
.profile-tariff-card > div > span { display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase; }
#profileTariffPreview strong,#profileTariffPreview small { display:block; }
#profileTariffPreview strong { margin-top:4px;font-size:20px; }
#profileTariffPreview small,.profile-tariff-card > small { color:var(--muted);font-size:9px; }
.notice-box code { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
input[readonly], select:disabled {
  background:#f3f5f6;
  color:#59636d;
  cursor:not-allowed;
}
@media (max-width: 760px) {
  .profile-tariff-card { align-items:flex-start;flex-direction:column; }
  .profile-status-card { min-width:0;width:100%; }
}
@media print {
  body[data-view="profile"] .app-header,
  body[data-view="profile"] .period-strip,
  body[data-view="profile"] .status-line,
  body[data-view="profile"] .header-actions { display:none!important; }
  body[data-view="profile"] .app-page { max-width:none;padding:0; }
  body[data-view="profile"] .panel { break-inside:avoid;box-shadow:none; }
}

/* FINAL 1.5 – Profil: geladene strukturierte Supabase-Werte */
.profile-json {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.field-wide { grid-column: 1 / -1; }
.panel-meta { display:flex; flex-direction:column; align-items:flex-end; gap:2px; color:var(--muted, #667085); font-size:12px; }
.panel-meta strong { color:var(--text, #1f2937); font-size:18px; }


/* FINAL 1.6: automatisch erzeugte VDN-Nettoverrechnung */
.auto-net-row input[readonly] { opacity: .82; background: var(--surface-soft, #f5f6f7); }
.auto-net-badge { align-self: center; justify-self: center; font-size: 11px; font-weight: 700; padding: 4px 7px; border: 1px solid currentColor; border-radius: 999px; opacity: .72; }


/* FINAL 2.9 – getrennte Netto-Bezüge/Abzüge ---------------- */
.vdn-net-adjustments > strong {
  margin-top: 2.5mm;
}

.vdn-net-deduction-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
  margin-top: 3mm;
  padding-top: 2mm;
  border-top: 1px solid #d4d7db;
}

.vdn-net .vdn-net-deduction-line span {
  min-height: 0;
  font-size: 6.8px;
  font-weight: 700;
}

.vdn-net .vdn-net-deduction-line strong {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}


/* FINAL 2.9.11 – einzelne Netto-Bezüge/Abzüge -------------- */
.vdn-net-detail-list {
  display: grid;
  gap: 1.2mm;
  margin-top: 1.8mm;
}

.vdn-net-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.vdn-net .vdn-net-detail-row span {
  overflow: hidden;
  color: #6b7076;
  font-size: 6.4px;
  font-weight: 600;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.vdn-net .vdn-net-detail-row strong {
  margin: 0;
  font-size: 8px;
  font-weight: 700;
}

.vdn-net-detail-list.deductions .vdn-net-detail-row strong {
  color: #8a2d2d;
}

.vdn-net-detail-empty {
  color: #4f5965;
  font-size: 6.3px;
  font-style: italic;
}

/* FINAL 2.9 – integrierte Hilfe ---------------------------- */
.help-page {
  max-width: 1240px;
}

.help-note {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft, #f5f6f7);
}
.help-note strong { display: block; margin-bottom: 4px; }
.help-note p { margin: 0; color: var(--muted); font-size: 12px; }

.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}
.help-quick-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color:#24364b;
  text-decoration: none;
}
.help-quick-card:hover { border-color: #aeb7c2; }
.help-quick-card strong, .help-quick-card small { display: block; }
.help-quick-card strong { font-size: 12px; }
.help-quick-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.help-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.help-toc {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 92px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.help-toc-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  z-index: 1;
}
.help-toc-head button {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.help-toc-links { padding: 8px 0; }
.help-toc-links a {
  display: block;
  padding: 5px 12px;
  color: #4f5660;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.35;
}
.help-toc-links a:hover { background: var(--surface-soft, #f5f6f7); color: #111; }
.help-toc-links .toc-sub { padding-left: 24px; font-size: 9px; color: #4f5965; }

.help-article {
  min-width: 0;
  padding: 20px 24px 34px;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1.55;
  font-size: 12px;
}
.help-article h1 {
  margin: 32px -24px 16px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft, #f5f6f7);
  font-size: 18px;
}
.help-article h1:first-child { margin-top: -20px; border-top: 0; }
.help-article h2 { margin: 28px 0 10px; font-size: 16px; scroll-margin-top: 88px; }
.help-article h3 { margin: 20px 0 8px; font-size: 13px; scroll-margin-top: 88px; }
.help-article p { margin: 7px 0; }
.help-article ul, .help-article ol { margin: 7px 0 10px 20px; padding: 0; }
.help-article blockquote {
  margin: 9px 0;
  padding: 8px 12px;
  border-left: 3px solid #9aa7b5;
  background: #f7f8f9;
}
.help-article blockquote p { margin: 0; font-weight: 600; }
.help-article table {
  width: 100%;
  margin: 10px 0 16px;
  border-collapse: collapse;
  font-size: 10px;
}
.help-article th, .help-article td {
  padding: 6px 7px;
  border: 1px solid #d9dde1;
  text-align: left;
  vertical-align: top;
}
.help-article th { background: #f3f5f7; }
.help-article code { font-size: 10px; }
.help-article a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static; max-height: 300px; }
  .help-quick-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .help-quick-grid { grid-template-columns: 1fr; }
  .help-article { padding: 16px; }
  .help-article h1 { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

@media print {
  .help-page { max-width: none; }
  .help-toc, .help-quick-grid, .help-note .secondary-button { display: none !important; }
  .help-layout { display: block; }
  .help-article { border: 0; padding: 0; font-size: 9pt; }
  .help-article h1 { margin-left: 0; margin-right: 0; }
}

/* FINAL 2.9 – kompakte FSQ-Zeile im VDN-Kopf */
.vdn-person .vdn-fsq-inline {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 1.7mm 3mm;
  border-left: 0;
  border-top: 1px solid #b8bcc1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2mm 7mm;
  background: #f7f8f9;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}
.vdn-person .vdn-fsq-inline span { white-space: nowrap; }
.vdn-person .vdn-fsq-inline b {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.vdn-person .vdn-fsq-inline strong {
  display: inline;
  margin: 0 0 0 1mm;
  font-size: 9px;
  color: var(--ink);
}
@media (max-width: 680px) {
  .vdn-person .vdn-fsq-inline { grid-column: 1 / -1; }
}

/* FINAL 2.9.15 – VDN PDF Direktimport */
.vdn-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(220px, auto);
  gap: 14px;
  align-items: end;
}
.vdn-import-grid .field-wide { grid-column: auto; }
.vdn-import-action .primary-button { width: 100%; min-height: 42px; }
.vdn-import-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
}
.vdn-import-status small { color: var(--text-secondary); line-height: 1.4; }
.vdn-import-status.ok { border-color: rgba(25, 135, 84, .35); }
.vdn-import-status.error { border-color: rgba(190, 50, 50, .45); }
.vdn-import-status.working { opacity: .8; }
@media (max-width: 900px) {
  .vdn-import-grid { grid-template-columns: 1fr; }
}

/* FINAL 2.9.22 – optimiertes Profil / Mehrjahreswerte */
.profile-jump-nav {
  display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:12px 0 16px;
  padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface);
}
.profile-jump-nav span { font-size:10px; font-weight:800; color:var(--muted); text-transform:uppercase; margin-right:2px; }
.profile-jump-nav a {
  display:inline-flex; align-items:center; min-height:30px; padding:5px 10px; border:1px solid var(--line);
  border-radius:999px; text-decoration:none; color:var(--ink); background:var(--surface-2,#f7f8fa); font-size:11px; font-weight:700;
}
.profile-jump-nav a:hover { border-color:var(--accent); color:var(--accent); }
#profile-personal,#profile-employment,#profile-tax,#profile-children,#profile-health,#profile-lzk,#profile-bav,#profile-vacation,#profile-annual,#profile-firebase { scroll-margin-top:82px; }
.annual-values-group { margin-top:18px; }
.annual-values-group + .annual-values-group { padding-top:16px; border-top:1px solid var(--line); }
.annual-group-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:0 0 8px; }
.annual-group-head h3 { margin:0; font-size:14px; }
.annual-group-head p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.annual-values-table th { white-space:nowrap; font-size:10px; line-height:1.2; }
.annual-values-table td { vertical-align:middle; }
.annual-values-table input {
  width:118px; min-width:86px; padding:8px 9px; border:1px solid var(--line); border-radius:8px;
  background:var(--surface); color:var(--ink); font:inherit;
}
.annual-values-table input:focus { outline:2px solid color-mix(in srgb, var(--accent) 22%, transparent); border-color:var(--accent); }
.annual-values-compact { min-width:980px; }
.annual-values-special { min-width:1240px; }
.annual-values-b3 { min-width:930px; }
.annual-values-table input[data-field$="Month"] { width:70px; min-width:64px; }
.annual-values-table input[data-field="erschwernisFactor"],
.annual-values-table input[data-field="lzkPercent"],
.annual-values-table input[data-field="erfolgsbeteiligungPercent"],
.annual-values-table input[data-field="jahresleistungPercent"] { width:82px; min-width:74px; }
.annual-values-table tr.is-selected-year { background:rgba(122,0,104,.045); }
.annual-values-table .annual-status { min-width:145px; color:var(--muted); font-size:10px; }
.annual-values-table .annual-status strong { display:block; color:var(--ink); font-size:11px; }
.annual-values-table .annual-prefill { display:block; margin-top:2px; font-size:10px; }
.annual-values-note { margin:0 0 12px; }
@media (max-width:700px) {
  .profile-jump-nav { gap:5px; }
  .profile-jump-nav a { font-size:10px; padding:4px 8px; }
  .annual-group-head { align-items:flex-start; flex-direction:column; }
}


/* FINAL 2.9.22 – abgeleitete Vorschlagswerte (LZK / Erfolgsbeteiligung) */
input.is-lzk-suggestion,
input.is-derived-suggestion {
  font-style: italic;
  border-style: dashed;
}
input.is-vdn-confirmed {
  border-style: solid;
  border-width: 2px;
  background: rgba(33, 122, 68, .06);
}


/* FINAL 2.9.23 – kompakte Profilübersicht + VDN-Profilabgleich */
.profile-overview-card{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(220px,1fr) auto;gap:16px;align-items:center;background:var(--panel,#fff);border:1px solid var(--border,#dfe3e8);border-radius:16px;padding:16px 18px;margin:12px 0 14px;box-shadow:0 4px 18px rgba(27,31,36,.05)}
.profile-overview-main span{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.profile-overview-main strong{display:block;font-size:20px;margin-top:2px}.profile-overview-main small{display:block;color:var(--muted);margin-top:3px}.profile-overview-facts{display:flex;gap:7px;flex-wrap:wrap}.profile-overview-facts span,.vdn-local-badge{display:inline-flex;align-items:center;background:#f3f5f7;border:1px solid #e1e5e9;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:700;color:#47515c}.vdn-profile-panel{display:none}.vdn-profile-panel.is-open{display:block}.vdnpi-actions-inline{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.vdnpi-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0 8px;padding:10px 12px;background:#f7f8fa;border-radius:10px}.vdnpi-summary span{font-size:11px;color:var(--muted)}.vdnpi-group{margin-top:14px}.vdnpi-group h4{margin:0 0 7px}.vdnpi-table td small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.vdnpi-state{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800}.vdnpi-state.ok{background:#e9f8ef;color:#217a44}.vdnpi-state.warn{background:#fff4d8;color:#8b5d00}.vdnpi-unknown{margin-top:12px;border:1px solid var(--border,#dfe3e8);border-radius:10px;padding:10px 12px}.vdnpi-unknown summary{cursor:pointer;font-weight:700}.vdnpi-unknown p{color:var(--muted);font-size:11px}.vdn-local-badge{white-space:nowrap}
@media(max-width:760px){.profile-overview-card{grid-template-columns:1fr}.profile-overview-card button{width:100%}.vdnpi-summary{align-items:flex-start;flex-direction:column}.vdnpi-actions-inline{align-items:stretch;flex-direction:column}.vdnpi-actions-inline button{width:100%}}

/* FINAL 2.9.26 · Tarif Chemie Westfalen 2010–2028 */
.soll-export-panel .panel-head{align-items:center;gap:1rem}.privacy-note{margin-top:.8rem;padding:.85rem 1rem;border:1px solid rgba(56,84,110,.16);border-radius:12px;background:rgba(244,248,251,.9);font-size:.9rem;line-height:1.55;color:#40505d}.soll-export-dialog{width:min(980px,94vw);max-height:90vh;border:0;border-radius:18px;padding:0;box-shadow:0 24px 70px rgba(15,28,40,.28);background:#fff;color:#24313b}.soll-export-dialog::backdrop{background:rgba(15,28,40,.45)}.soll-export-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.2rem 1.25rem .4rem}.soll-export-dialog .privacy-note{margin:.4rem 1.25rem}.soll-export-json{margin:.8rem 1.25rem;max-height:50vh;overflow:auto;padding:1rem;border-radius:12px;background:#111821;color:#e8f0f6;font-size:.78rem;line-height:1.45;white-space:pre}.soll-export-confirm{display:flex;gap:.65rem;align-items:flex-start;margin:1rem 1.25rem;font-size:.92rem;line-height:1.45}.soll-export-confirm input{margin-top:.2rem}.soll-export-actions{display:flex;justify-content:flex-end;padding:0 1.25rem 1.25rem}.soll-export-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:760px){.soll-export-panel .panel-head,.soll-export-dialog-head{align-items:stretch;flex-direction:column}.soll-export-json{max-height:42vh}}


/* FINAL 2.9.34 – Pflichtangaben Kinder/PV und Setup-Aktionen */
.profile-required-panel{border-left:4px solid var(--accent);}
.required-badge{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:rgba(122,0,104,.08);color:var(--accent);font-size:9px;font-weight:800;vertical-align:middle;text-transform:uppercase;letter-spacing:.03em;}
.field-required label{font-weight:800;}
.field-required input{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));}
.setup-actions{display:flex;gap:8px;flex-wrap:wrap;}
@media(max-width:700px){.setup-actions{width:100%;}.setup-actions .secondary-button{flex:1;justify-content:center;}}

/* SETO 1.0 – Kalender/VDN-Abgleich */
.calendar-vdn-panel .panel-head{align-items:flex-start;gap:16px}.basis-source{display:block;max-width:280px;color:var(--muted);line-height:1.4;text-align:right}.reconcile-summary{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:10px;margin:0 0 14px}.reconcile-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2,#f7f8fa)}.reconcile-summary span{color:var(--muted);font-size:11px;font-weight:700}.reconcile-summary strong{font-size:20px}.reconcile-summary .ok{border-color:rgba(25,135,84,.3);background:rgba(25,135,84,.055)}.reconcile-summary .warn{border-color:rgba(190,110,0,.35);background:rgba(255,183,0,.07)}.calendar-basis-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:8px;margin:0 0 16px}.calendar-basis-grid>div{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}.calendar-basis-grid strong,.calendar-basis-grid small{display:block}.calendar-basis-grid strong{font-size:11px;margin-bottom:4px}.calendar-basis-grid small{color:var(--muted);line-height:1.45}.reconcile-table{min-width:1020px}.cell-note{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.35}.reconcile-status{font-size:10px;font-weight:800;white-space:nowrap}.reconcile-status.match{color:#217a44}.reconcile-status.difference{color:#a13a32}.reconcile-status.calendar-only,.reconcile-status.vdn-only,.reconcile-status.not-verifiable{color:#8b5d00}.calendar-trace{margin-top:14px;border:1px solid var(--line);border-radius:11px;padding:10px 12px}.calendar-trace summary{cursor:pointer;font-size:11px;font-weight:800}.calendar-trace[open] summary{margin-bottom:10px}.reconcile-note{margin:12px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
@media(max-width:760px){.calendar-vdn-panel .panel-head{flex-direction:column}.basis-source{text-align:left;max-width:none}.reconcile-summary{grid-template-columns:1fr}.calendar-basis-grid{grid-template-columns:1fr}}


/* SETO 1.0.30 – klare Abrechnungsnavigation ohne alte Kalender-Marke */
.brand.brand-clean{min-width:178px;padding:7px 9px;border-radius:10px;transition:background .15s ease}.brand.brand-clean:hover{background:var(--accent-soft)}.brand.brand-clean strong{font-size:15px;letter-spacing:-.01em;color:var(--ink)}.brand.brand-clean small{margin-top:2px;font-size:9.5px;letter-spacing:.025em}.app-header-inner{gap:18px}.app-nav{align-self:center;gap:4px;padding:5px;border:1px solid #e1e5ea;border-radius:12px;background:#f7f8fa}.app-nav-link{min-height:34px;padding:0 12px;border:0;border-radius:8px;color:#5a6470;font-size:12px;transition:background .15s,color .15s}.app-nav-link:hover{background:#fff;color:var(--ink)}.app-nav-link.active{border:0;background:#fff;color:var(--accent-dark);box-shadow:0 2px 8px rgba(24,32,45,.08)}.icon-action,.user-chip{border-radius:9px}.icon-action{padding:8px 11px}.user-chip{padding:7px 10px;background:#f7f8fa}
@media(max-width:760px){.brand.brand-clean{min-width:auto;padding-left:4px}.brand.brand-clean small{display:none}.app-nav{border:0;border-radius:0;background:transparent;padding:0}.app-nav-link{border-radius:7px}}


/* SETO 1.0.45 – einheitliches, ruhiges Button-/Periodensystem */
.icon-action,.text-button,.primary-button,.secondary-button,.period-arrow,.user-chip{
  min-height:38px;border-radius:10px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;box-shadow:none
}
.header-actions{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.app-nav{gap:4px}
.app-nav-link{min-height:38px;padding:0 13px;border-radius:9px;display:inline-flex;align-items:center}
.period-strip{align-items:flex-end;gap:7px;padding:10px 12px;border-radius:14px}
.period-field select{height:38px;min-height:38px;border-radius:9px}
.period-arrow{width:38px;height:38px;padding:0;font-size:21px}
.sfn-fsq-block .vdn-block-title.compact{align-items:flex-start}
.sfn-fsq-block .vdn-block-title.compact small{display:block;margin-left:auto;max-width:125px;text-align:right;line-height:1.25}
.sfn-fsq-block dt{display:flex;align-items:baseline;gap:5px;min-width:0}
.sfn-fsq-block dt b{font-weight:700;white-space:nowrap}
.sfn-fsq-block dt small{color:var(--muted);font-size:8.5px;line-height:1.2;text-transform:none;letter-spacing:0}
@media(max-width:760px){.header-actions{flex-wrap:wrap}.period-strip{align-items:end}.app-nav-link{min-height:35px;padding:0 10px}}

/* SETO 1.0.52 – H-02 Mobile/Responsive */
@media(max-width:680px){
  .app-page,.main-page{width:calc(100% - 16px);margin-top:12px}
  .app-header-inner{width:calc(100% - 16px)}
  .app-nav{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none}
  .app-nav::-webkit-scrollbar{display:none}
  .app-nav-link{min-height:40px;white-space:nowrap}
  .header-actions .icon-action{min-height:40px}
  .period-strip{gap:6px;padding:9px}
  .period-arrow{min-width:42px;min-height:42px}
  .period-field select{font-size:16px;min-height:42px}
  .period-actions{display:grid;grid-template-columns:1fr;gap:6px}
  .form-grid,.compare-input-grid{grid-template-columns:1fr}
  .data-table-wrap,.vdn-table-wrap,.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .vdn-table{min-width:560px}
  .setup-actions{display:grid;grid-template-columns:1fr;width:100%}
  .setup-actions .secondary-button{width:100%}
  .status-line{align-items:flex-start;flex-wrap:wrap}
}
@media(max-height:500px) and (orientation:landscape){
  .app-header-inner{padding-top:4px}
  .app-nav{min-height:34px}
  .app-nav-link{min-height:34px}
  .app-page,.main-page{margin-top:8px}
  .period-strip{padding:7px 9px}
}

/* SETO 1.0.63 – FSQ/VDN HR-Prüfbericht */
.panel-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.audit-subhead{margin:24px 0 4px;font-size:1rem}
.help-text{margin:0 0 10px;color:var(--muted,#667085);font-size:.88rem}
.audit-summary-card.audit-ok{border-color:#86efac;background:#f0fdf4}
.audit-summary-card.audit-warn{border-color:#fca5a5;background:#fef2f2}
html[data-theme="dark"] .audit-summary-card.audit-ok{background:#14261b;border-color:#29643d}
html[data-theme="dark"] .audit-summary-card.audit-warn{background:#2d1717;border-color:#7f3636}
@media print{
  body.fsq-report-print .app-header,
  body.fsq-report-print .status-line,
  body.fsq-report-print .period-strip,
  body.fsq-report-print .subpage-head,
  body.fsq-report-print #shiftSummaryGrid,
  body.fsq-report-print main.app-page > .panel:not(#fsqReportPanel){display:none!important}
  body.fsq-report-print #fsqReportPanel{display:block!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
  body.fsq-report-print #fsqReportPanel .panel-actions{display:none!important}
  body.fsq-report-print #fsqReportPanel .table-scroll{overflow:visible!important}
  body.fsq-report-print #fsqReportPanel table{font-size:9pt;min-width:0!important}
  body.fsq-report-print #fsqReportPanel th,body.fsq-report-print #fsqReportPanel td{padding:5px 4px}
}

/* SETO 1.0.65 · Jahres-HR-Abgleich FSQ/39D1 */
.year-hr-block{margin:1.25rem 0 1.5rem;padding:1rem;border:1px solid var(--line,#d9dde6);border-radius:14px;background:var(--surface-soft,#fafbfc)}
.compact-head{margin-bottom:.65rem}.compact-head h3{margin:.15rem 0 .25rem}
@media (max-width:720px){.year-hr-block{padding:.75rem}.compact-head{align-items:flex-start}.compact-head .panel-actions{width:100%}.compact-head .panel-actions .text-button{width:100%}}


/* SETO 1.0.67 – Auswahl und Abrechnungsblatt nutzen exakt denselben Außencontainer */
body.seto-payroll-page .main-page > .period-strip{
  width:min(100%,210mm);
  margin-left:auto;
  margin-right:auto;
}
body.seto-payroll-page .main-page > .setup-notice{
  width:min(100%,210mm);
  margin-left:auto;
  margin-right:auto;
}


/* SETO 1.1.91 – kompakte Spezialnavigation */
.workbench-link{gap:6px}.more-dots{font-size:15px;line-height:1;letter-spacing:1px;font-weight:900}.workbench-page{max-width:980px}.workbench-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workbench-card{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;box-shadow:var(--shadow)}.workbench-card:hover{border-color:var(--accent);transform:translateY(-1px)}.workbench-card strong,.workbench-card small{display:block}.workbench-card strong{font-size:14px}.workbench-card small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.workbench-card>b{color:var(--muted);font-size:19px}.workbench-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accent-soft);color:var(--accent-dark);font-size:12px;font-weight:900}.main-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.workbench-grid,.main-shortcuts{grid-template-columns:1fr}}

/* SETO 1.1.128 – integrierter Abrechnungsmonat + aufklappbare Jahresprüfung */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.vdn-period-control{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:1.5mm}
.vdn-period-control select{min-width:178px;height:38px;padding:6px 30px 6px 10px;border:1px solid #aeb5bd;border-radius:9px;background:#fff;color:var(--ink);font-size:14px;font-weight:800;cursor:pointer}
.vdn-period-control select:focus{outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:1px}
.vdn-period-arrow{width:38px;height:38px;min-width:38px;border-radius:9px;font-size:21px}
.vdn-period-print{display:none!important}

.year-reconcile-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin:10px 0 14px}
.year-reconcile-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.year-reconcile-summary span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.year-reconcile-summary strong{font-size:20px}
.year-reconcile-summary .match{border-color:rgba(25,135,84,.28);background:rgba(25,135,84,.055)}
.year-reconcile-summary .retro{border-color:rgba(43,111,168,.28);background:rgba(43,111,168,.055)}
.year-reconcile-summary .difference{border-color:rgba(190,70,55,.28);background:rgba(190,70,55,.055)}
.year-reconcile-summary .calculated{border-color:rgba(181,112,0,.24);background:rgba(181,112,0,.055)}
.year-reconcile-summary .prognose,.year-reconcile-summary .other{background:var(--surface-2,#f7f8fa)}

.year-status-cell{min-width:180px}
.year-status-button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left}
.year-status-button>small{color:var(--muted);font-size:9px;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.year-status-button:hover>small{color:var(--accent-dark)}
.year-status-pill{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:999px;background:var(--surface-2,#f4f5f7);color:var(--ink);font-size:9px;font-weight:900;line-height:1.25;white-space:nowrap}
.year-status-pill.match,.year-status-pill.match-rounding,.year-status-pill.match-main-retro-separate,.year-status-pill.confirmed{background:rgba(25,135,84,.10);color:#176b3b}
.year-status-pill.match-retro{background:rgba(43,111,168,.11);color:#245f91}
.year-status-pill.difference{background:rgba(190,70,55,.10);color:#9e352c}
.year-status-pill.prognose,.year-status-pill.forecast{background:rgba(86,98,112,.10);color:#4b5966}
.year-status-pill.calculated{background:rgba(181,112,0,.11);color:#8c5700}
.year-status-pill.actual-only{background:rgba(43,111,168,.11);color:#245f91}
.year-status-pill.paid-open{background:rgba(181,112,0,.11);color:#8c5700}
.year-status-pill.open{background:rgba(86,98,112,.10);color:#4b5966}

.year-audit-row>td{padding:0!important;border-top:0!important;background:var(--surface-2,#f7f8fa)}
.year-audit-row[hidden]{display:none!important}
.year-audit-panel{margin:0 8px 12px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.year-audit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}
.year-audit-head>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.year-audit-head>div>strong{font-size:13px}
.year-audit-head>small{color:var(--muted);font-size:9px}
.year-audit-flow{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:8px}
.year-audit-flow.forecast-only{grid-template-columns:repeat(2,minmax(190px,1fr))}
.year-audit-step{display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,#f7f8fa)}
.year-audit-step>span:first-child{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.year-audit-step>strong{font-size:11px;line-height:1.35}
.year-audit-step>small{color:var(--muted);font-size:8.5px;line-height:1.45}
.year-audit-step.result.match,.year-audit-step.result.match-rounding,.year-audit-step.result.match-main-retro-separate{border-color:rgba(25,135,84,.3);background:rgba(25,135,84,.045)}
.year-audit-step.result.match-retro{border-color:rgba(43,111,168,.3);background:rgba(43,111,168,.045)}
.year-audit-step.result.difference{border-color:rgba(190,70,55,.3);background:rgba(190,70,55,.045)}
.year-audit-money{display:grid;gap:5px;margin:0}
.year-audit-money>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.year-audit-money dt{color:var(--muted);font-size:8.5px}
.year-audit-money dd{margin:0;font-size:10px;font-weight:850;font-variant-numeric:tabular-nums}
.year-retro-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.year-retro-list li{display:grid;gap:5px;padding:7px;border-radius:8px;background:var(--surface)}
.year-retro-list li>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.year-retro-list li strong{font-size:9px}
.year-retro-list li small{display:block;color:var(--muted);font-size:8px}
.year-retro-list li span{font-size:8.5px;font-variant-numeric:tabular-nums}
.year-retro-list li>div:last-child{justify-content:flex-start}
.year-retro-list li.empty{color:var(--muted);font-size:9px}
.audit-difference{color:#9e352c!important;font-weight:800}
.year-audit-note{margin:0;color:var(--muted);font-size:10px;line-height:1.5}

@media(max-width:900px){
  .year-reconcile-summary{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .year-audit-flow,.year-audit-flow.forecast-only{grid-template-columns:1fr 1fr}
  .year-audit-step.result{grid-column:1/-1}
}
@media(max-width:680px){
  .vdn-period-control{justify-content:flex-start}
  .vdn-period-control select{flex:1;min-width:0;font-size:16px;height:42px}
  .vdn-period-arrow{width:42px;height:42px;min-width:42px}
  .year-reconcile-summary{grid-template-columns:1fr 1fr;gap:6px}
  .year-reconcile-summary>div{padding:9px 10px}
  .year-audit-head{flex-direction:column}
  .year-audit-flow,.year-audit-flow.forecast-only{grid-template-columns:1fr}
  .year-audit-step.result{grid-column:auto}
}
@media print{
  .vdn-period-control{display:none!important}
  .vdn-period-print{display:block!important}
  .year-status-button>small{display:none!important}
}


/* SETO 1.1.151 – integrierte Periodenwahl + abgestufte Abweichungshinweise */
@media(min-width:761px){
  .vdn-head{grid-template-columns:minmax(0,1fr) 64mm;gap:7mm}
  .vdn-period-box{min-width:0;padding:3mm 3.5mm}
  .vdn-period-control{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:5px;width:100%;align-items:center}
  .vdn-period-control select{width:100%;min-width:0;height:34px;padding:5px 25px 5px 8px;border-radius:8px;font-size:12px;line-height:1.1}
  .vdn-period-arrow{width:34px;height:34px;min-width:34px;border-radius:8px;font-size:19px}
}
.diff-warn{color:#9a6500!important;font-weight:850}
.year-status-pill.difference-small{background:rgba(214,145,0,.13);color:#8a5b00}
.year-status-button.difference-small>small{color:#8a5b00}
.year-audit-step.result.difference-small{border-color:rgba(214,145,0,.38);background:rgba(255,193,7,.07)}
.year-audit-panel.difference-small .audit-difference{color:#8a5b00!important}
@media(max-width:680px){
  .vdn-period-box{padding:10px 11px}
  .vdn-period-control{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:5px;width:100%}
  .vdn-period-control select{width:100%;min-width:0;height:40px;padding:6px 26px 6px 8px;font-size:15px}
  .vdn-period-arrow{width:40px;height:40px;min-width:40px}
}


/* SETO 1.1.155 – größere VDN-Monatswahl + FSQ/FS-Hätte-Hilfe */
@media(min-width:761px){
  .vdn-head{grid-template-columns:minmax(0,1fr) 78mm;gap:7mm}
  .vdn-period-box{padding:3.2mm 4mm}
  .vdn-period-control{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}
  .vdn-period-control select{height:40px;min-height:40px;padding:6px 28px 6px 10px;font-size:10.5px;line-height:1.05;font-weight:700}
  .vdn-period-arrow{width:38px;height:40px;min-width:38px;font-size:20px}
}
@media(max-width:680px){
  .vdn-period-control{grid-template-columns:42px minmax(0,1fr) 42px;gap:6px}
  .vdn-period-control select{height:44px;min-height:44px;padding:7px 28px 7px 9px;font-size:12px;line-height:1.05;font-weight:700}
  .vdn-period-arrow{width:42px;height:44px;min-width:42px}
}
.vdn-person .vdn-fsq-inline{position:relative;overflow:visible}
.vdn-person .vdn-fsq-inline .fsq-inline-title{display:inline-flex;align-items:center;gap:1mm;color:var(--ink);font-weight:800}
.fsq-help-wrap{position:relative;display:inline-flex;align-items:center;white-space:normal!important}
.fsq-help-trigger{
  width:17px;height:17px;padding:0;border:1px solid #b6c1ce;border-radius:50%;
  background:#fff;color:#345a7e;font:800 10px/1 system-ui,sans-serif;cursor:help;
  display:inline-grid;place-items:center;box-shadow:0 1px 2px rgba(24,40,60,.05)
}
.fsq-help-trigger:hover,.fsq-help-trigger:focus-visible{border-color:#5f87b0;background:#edf5ff;outline:none}
.fsq-help-popover{
  position:absolute;left:0;top:calc(100% + 7px);z-index:80;
  width:min(390px,calc(100vw - 44px));padding:11px 12px;
  border:1px solid #cbd5df;border-radius:11px;background:#fff;color:#2b3540;
  box-shadow:0 12px 32px rgba(26,45,67,.18);font-size:10px;line-height:1.5;
  white-space:normal!important;text-transform:none;letter-spacing:0;
  opacity:0;visibility:hidden;transform:translateY(-3px);pointer-events:none;
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
}
.fsq-help-popover>strong{display:block!important;margin:0 0 5px!important;font-size:11px!important;color:#17365d!important}
.fsq-help-popover>span{display:block;white-space:normal!important}
.fsq-help-wrap:hover .fsq-help-popover,.fsq-help-wrap:focus-within .fsq-help-popover{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
@media(max-width:680px){.fsq-help-popover{left:-10px;width:min(330px,calc(100vw - 34px));font-size:10.5px}}
@media print{.fsq-inline-title,.fsq-help-popover{display:none!important}}

/* SETO 1.1.158 – Jahresübersicht: Feld-/Ursachenanalyse App ↔ VDN */
.year-field-analysis{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.year-field-analysis.resolved{padding:12px;border:1px solid rgba(43,111,168,.28);border-radius:10px;background:rgba(43,111,168,.045)}
.year-field-analysis.resolved p{margin:7px 0 0;color:var(--muted);font-size:9px;line-height:1.45}
.year-field-analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:9px}
.year-field-analysis-head>div{display:flex;flex-direction:column;gap:2px;min-width:160px}
.year-field-analysis-head>div>span{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.055em}
.year-field-analysis-head>div>strong{font-size:12px}
.year-field-analysis-head>p{max-width:760px;margin:0;color:var(--muted);font-size:9px;line-height:1.45}
.year-field-analysis-head>p b{color:var(--ink)}
.year-field-table-scroll{overflow:auto;border:1px solid var(--line);border-radius:10px}
.year-field-table{width:100%;min-width:900px;border-collapse:collapse;background:var(--surface)}
.year-field-table th,.year-field-table td{padding:8px 9px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left;font-size:9px}
.year-field-table thead th{position:sticky;top:0;background:var(--surface-2,#f7f8fa);color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.035em;z-index:1}
.year-field-table tbody tr:last-child td{border-bottom:0}
.year-field-table td.amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.year-field-table td.amount small{display:block;margin-top:2px;color:var(--muted);font-size:7.5px;font-weight:650}
.year-field-table td.amount.bad{color:#9e352c;font-weight:850}
.year-field-kind span{display:inline-flex;padding:3px 6px;border-radius:999px;background:rgba(86,98,112,.09);font-size:7.5px;font-weight:850;white-space:nowrap}
.year-field-row.wage .year-field-kind span{background:rgba(43,111,168,.09);color:#245f91}
.year-field-row.deduction .year-field-kind span{background:rgba(181,112,0,.10);color:#80520a}
.year-field-row.summary .year-field-kind span{background:rgba(190,70,55,.08);color:#8d3c35}
.year-field-name strong,.year-field-name span{display:block}
.year-field-name strong{font-size:9px}
.year-field-name span{margin-top:2px;color:var(--muted);font-size:8px}
.year-field-explanation{min-width:290px;max-width:520px;color:var(--muted);line-height:1.45}
.year-field-footnote{margin:7px 0 0;color:var(--muted);font-size:8px;line-height:1.4}
@media (max-width:760px){.year-field-analysis-head{flex-direction:column;gap:7px}.year-field-analysis-head>p{max-width:none}.year-field-table{min-width:820px}}
@media print{.year-field-analysis{break-inside:avoid}.year-field-table-scroll{overflow:visible}.year-field-table{min-width:0}.year-field-explanation{min-width:0}}


/* SETO 1.1.178 – Abrechnung: Modul-Shell wie Analyse und Daten-Importer */
:root{
  --payroll-shell-sidebar:238px;
  --payroll-shell-bg:#f0f2f5;
  --payroll-shell-card:#fff;
  --payroll-shell-text:#1f2733;
  --payroll-shell-muted:#6b7785;
  --payroll-shell-border:#dfe5ec;
}
body[data-view]{padding-left:var(--payroll-shell-sidebar);background:var(--payroll-shell-bg)}
.payroll-sidebar{display:block;position:fixed;top:var(--seto-global-h,70px);left:0;bottom:0;width:var(--payroll-shell-sidebar);height:calc(100vh - var(--seto-global-h,70px));padding:22px 14px 26px;border:0;border-right:1px solid var(--payroll-shell-border);background:rgba(255,255,255,.90);backdrop-filter:blur(18px);box-shadow:8px 0 26px rgba(25,49,72,.035);z-index:45;overflow:auto}
.payroll-sidebar .app-header-inner{width:100%;max-width:none;height:100%;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:0}
.payroll-brand.brand.brand-clean{display:block;min-width:0;margin:0 8px 20px;padding:0;text-decoration:none;background:transparent!important}
.payroll-brand.brand.brand-clean small{display:block;color:var(--payroll-shell-muted);font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin:0}
.payroll-brand.brand.brand-clean strong{display:block;margin-top:2px;color:var(--payroll-shell-text);font-size:1.08rem}
.payroll-nav-group{margin:18px 0 0}.payroll-nav-title{padding:0 10px 6px;color:var(--payroll-shell-muted);font-size:.65rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.payroll-sidebar .payroll-nav-group nav{display:grid;gap:4px;padding:0;border:0;background:transparent}
.payroll-sidebar .payroll-nav-group nav a{display:flex;align-items:center;min-height:0;padding:9px 10px;border:1px solid transparent;border-radius:9px;text-decoration:none;color:var(--payroll-shell-text);font-size:.81rem;font-weight:720;white-space:normal}
.payroll-sidebar .payroll-nav-group nav a:hover{background:#f4f7fb;color:var(--payroll-shell-text)}
.payroll-sidebar .payroll-nav-group nav a.active{background:linear-gradient(135deg,#153454,#2f75b5);color:#fff;box-shadow:0 6px 16px rgba(21,52,84,.16)}
.payroll-sidebar-actions{display:grid;gap:8px;margin-top:auto;padding:22px 8px 0}.payroll-sidebar-actions .user-chip,.payroll-sidebar-actions .icon-action{width:100%;justify-content:center;text-align:center}
.payroll-mobile-nav{display:none}
body[data-view]>.app-page,body[data-view]>.main-page{max-width:1120px;width:calc(100% - 44px);margin-left:auto;margin-right:auto}
@media(max-width:1100px) and (min-width:821px){:root{--payroll-shell-sidebar:205px}}
@media(max-width:820px){
  body[data-view]{padding-left:0}
  .payroll-sidebar{display:none!important}
  .payroll-mobile-nav{display:block;position:sticky;top:0;z-index:46;padding:8px 12px;background:rgba(240,242,245,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--payroll-shell-border)}
  .payroll-mobile-nav details{max-width:1120px;margin:0 auto}.payroll-mobile-nav summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:var(--payroll-shell-card);border:1px solid var(--payroll-shell-border);font-size:.82rem;font-weight:800;cursor:pointer}.payroll-mobile-nav summary::-webkit-details-marker{display:none}
  .payroll-mobile-links{display:grid;gap:5px;margin-top:7px;padding:8px;border-radius:14px;background:var(--payroll-shell-card);border:1px solid var(--payroll-shell-border);box-shadow:0 14px 36px rgba(15,23,42,.13)}
  .payroll-mobile-links .group{padding:8px 10px 2px;color:var(--payroll-shell-muted);font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.payroll-mobile-links a{text-decoration:none;color:var(--payroll-shell-text);padding:9px 10px;border-radius:9px;font-size:.8rem;font-weight:700}.payroll-mobile-links a.active{background:#17365d;color:#fff}
  body[data-view]>.app-page,body[data-view]>.main-page{width:calc(100% - 24px);margin-top:10px}
}
html[data-theme="dark"]{--payroll-shell-bg:#0f1117;--payroll-shell-card:#1b202b;--payroll-shell-text:#f3f6fa;--payroll-shell-muted:#b7c0cc;--payroll-shell-border:#303845}
html[data-theme="dark"] .payroll-sidebar{background:rgba(20,25,34,.90)}html[data-theme="dark"] .payroll-sidebar .payroll-nav-group nav a:hover{background:#222936}html[data-theme="dark"] .payroll-mobile-nav{background:rgba(15,17,23,.95)}
@media print{body[data-view]{padding-left:0!important}.payroll-sidebar,.payroll-mobile-nav{display:none!important}}

/* SETO 1.1.183 · VDN-Vergleich: Ergebnis zuerst, Diagnose progressiv */
.vdn-compare-page{display:flex;flex-direction:column;gap:12px}
.vdn-compare-page .panel,.vdn-compare-page .review-panel{margin-bottom:0}
.compare-page-head{margin-bottom:0}
.compare-period-strip .period-actions{margin-left:auto}
.vdn-source-panel{padding:14px 16px}
.vdn-source-main{display:flex;align-items:center;justify-content:space-between;gap:16px}
.vdn-source-main .vdn-import-status{margin:4px 0 0;padding:0;border:0;background:transparent}
.temporary-vdn-import{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.temporary-vdn-import>summary{cursor:pointer;font-size:11px;font-weight:800;color:var(--text-secondary)}
.temporary-vdn-import>p{margin:8px 0;color:var(--muted);font-size:10px;line-height:1.5}
.compare-overview-panel{padding:0;overflow:hidden}
.compare-hero{padding:18px 20px;border-bottom:1px solid var(--line);background:var(--surface-2,#f7f8fa)}
.compare-hero-status{display:flex;gap:14px;align-items:flex-start}
.compare-status-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);font-size:19px;font-weight:900;background:var(--surface,#fff)}
.compare-hero h2{margin:2px 0 3px;font-size:21px}
.compare-hero p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.compare-hero[data-status="match"]{background:rgba(25,135,84,.055)}
.compare-hero[data-status="match"] .compare-status-icon{border-color:rgba(25,135,84,.35);color:#217a44;background:rgba(25,135,84,.08)}
.compare-hero[data-status="difference"]{background:rgba(190,70,55,.055)}
.compare-hero[data-status="difference"] .compare-status-icon{border-color:rgba(190,70,55,.35);color:#a13a32;background:rgba(190,70,55,.08)}
.compare-hero[data-status="review"]{background:rgba(181,112,0,.055)}
.compare-hero[data-status="review"] .compare-status-icon{border-color:rgba(181,112,0,.3);color:#8b5d00;background:rgba(181,112,0,.07)}
.compare-main-result{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0}
.compare-metric{padding:16px 18px;border-right:1px solid var(--line)}
.compare-metric:last-child{border-right:0}
.compare-metric>span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.compare-metric-values{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:baseline;margin-top:9px}
.compare-metric-values small{color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}
.compare-metric-values strong{font-size:15px;text-align:right}
.compare-metric>b{display:block;margin-top:10px;font-size:10px}
.compare-metric.match>b{color:#217a44}.compare-metric.difference>b{color:#a13a32}
.compare-empty-state{display:flex;flex-direction:column;gap:4px;padding:18px 20px}
.compare-empty-state span{color:var(--muted);font-size:10px}
.compare-technical-details{border-top:1px solid var(--line);padding:10px 16px 14px}
.compare-technical-details>summary{cursor:pointer;font-size:10px;font-weight:800;color:var(--text-secondary)}
.compare-technical-details[open]>summary{margin-bottom:10px}
.compare-findings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.finding-card{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2,#f7f8fa)}
.finding-card strong{font-size:11px}.finding-card small{color:var(--muted);font-size:10px;line-height:1.45}
.finding-card.difference{border-color:rgba(190,70,55,.28);background:rgba(190,70,55,.05)}
.finding-card.review{border-color:rgba(181,112,0,.28);background:rgba(181,112,0,.05)}
.finding-card.match{border-color:rgba(25,135,84,.28);background:rgba(25,135,84,.05)}
.finding-card.info{border-color:rgba(43,111,168,.25);background:rgba(43,111,168,.045)}
.compare-toggle{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:800;color:var(--text-secondary);white-space:nowrap}
.compare-toggle input{width:16px;height:16px}
.wage-compare-row.match{opacity:.78}
.compare-wage-status{font-weight:800;white-space:nowrap}
.compare-wage-status.match{color:#217a44}.compare-wage-status.difference{color:#a13a32}
.compare-wage-status.seto-only,.compare-wage-status.vdn-only,.compare-wage-status.review{color:#8b5d00}
.fsq-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fsq-compare-grid>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,#f7f8fa)}
.fsq-compare-grid span{color:var(--muted);font-size:10px;font-weight:700}.fsq-compare-grid strong{font-size:13px}
.fsq-compare-grid .fsq-difference.match{border-color:rgba(25,135,84,.28)}
.fsq-compare-grid .fsq-difference.difference{border-color:rgba(190,70,55,.28);background:rgba(190,70,55,.05)}
.fsq-evidence-note{grid-column:1/-1;margin:2px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:10px;line-height:1.5}.fsq-evidence-note.match{border-left:4px solid #2d7d46}.fsq-evidence-note.difference{border-left:4px solid var(--warn)}.fsq-evidence-note.not-verifiable{border-left:4px solid var(--line-strong)}
.compare-diagnostics-panel{padding:0;overflow:hidden}
.compare-diagnostics-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:14px 16px;list-style:none}
.compare-diagnostics-panel>summary::-webkit-details-marker{display:none}
.compare-diagnostics-panel>summary>span:first-child{display:flex;flex-direction:column;gap:2px}
.compare-diagnostics-panel>summary strong{font-size:13px}
.compare-diagnostics-panel[open]>summary{border-bottom:1px solid var(--line)}
.compare-diagnostics-panel .calendar-vdn-panel{padding:16px}
.diagnostics-badge{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:5px 8px;font-size:9px;font-weight:800;color:var(--muted)}
.diagnostics-badge.match{color:#217a44;border-color:rgba(25,135,84,.3)}
.diagnostics-badge.difference{color:#a13a32;border-color:rgba(190,70,55,.3)}
.diagnostics-badge.review{color:#8b5d00;border-color:rgba(181,112,0,.3)}
.compare-review-panel{margin-top:0}
@media(max-width:820px){
  .compare-main-result{grid-template-columns:1fr}.compare-metric{border-right:0;border-bottom:1px solid var(--line)}.compare-metric:last-child{border-bottom:0}
  .compare-findings{grid-template-columns:1fr}.fsq-compare-grid{grid-template-columns:1fr}
  .vdn-source-main{align-items:flex-start;flex-direction:column}.vdn-source-main .inline-actions{width:100%}.vdn-source-main .primary-button{width:100%;text-align:center}
  .compare-period-strip .period-actions{margin-left:0;width:100%}.compare-period-strip .period-actions .primary-button{width:100%}
}
@media(max-width:560px){
  .compare-hero{padding:15px}.compare-status-icon{width:32px;height:32px;flex-basis:32px}.compare-hero h2{font-size:18px}
  .compare-metric{padding:13px 14px}.compare-findings-panel,.wage-compare-panel,.fsq-compare-panel{padding:13px}
  .compare-review-panel{align-items:flex-start;flex-direction:column}.compare-review-panel .inline-actions{width:100%;display:grid;grid-template-columns:1fr}.compare-review-panel button{width:100%}
}

/* SETO 1.1.185 · Schichten & Verdienst */
.shift-earnings-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.daily-earnings-table td{vertical-align:top}.daily-earnings-table .strong{font-weight:800}.daily-breakdown summary{cursor:pointer;font-weight:700;color:var(--primary,#17365d);white-space:nowrap}.daily-breakdown div{margin-top:7px;min-width:220px;font-size:.86rem;line-height:1.55;color:var(--muted,#657184)}.daily-fsq{display:block;margin-top:4px;font-size:.76rem;color:var(--muted,#657184);white-space:normal}@media(max-width:900px){.shift-earnings-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SETO 1.1.189 · VDN-Ursache → Schicht/Rückrechnung */
.finding-card .finding-action{
  display:inline-flex;
  align-items:center;
  margin-top:.55rem;
  font-size:.82rem;
  font-weight:700;
  text-decoration:none;
  border:1px solid currentColor;
  border-radius:999px;
  padding:.3rem .65rem;
  opacity:.92;
}
.finding-card .finding-action:hover{opacity:1;text-decoration:none;}
.daily-earnings-table tr.shift-focus-row td{
  box-shadow:inset 0 1px 0 rgba(30,105,210,.45),inset 0 -1px 0 rgba(30,105,210,.45);
  background:color-mix(in srgb, var(--seto-accent, #1e69d2) 8%, transparent);
}
.daily-earnings-table tr.shift-focus-row td:first-child{box-shadow:inset 3px 0 0 var(--seto-accent, #1e69d2),inset 0 1px 0 rgba(30,105,210,.45),inset 0 -1px 0 rgba(30,105,210,.45);}
.daily-breakdown[open] summary{font-weight:700;}


.daily-breakdown-grid{display:grid;gap:.35rem;margin-top:.45rem;min-width:260px}.daily-position{display:flex;justify-content:space-between;gap:1rem;padding:.32rem .4rem;border-radius:.45rem}.daily-position.muted{opacity:.65}.daily-position-focus{outline:2px solid var(--seto-accent,#1e69d2);background:color-mix(in srgb,var(--seto-accent,#1e69d2) 10%,transparent)}.daily-position-total{margin-top:.2rem;border-top:1px solid rgba(127,127,127,.25);padding-top:.55rem}.retro-focus-row td{background:color-mix(in srgb,var(--seto-accent,#1e69d2) 8%,transparent)}.retro-focus-row td:first-child{box-shadow:inset 3px 0 0 var(--seto-accent,#1e69d2)}


/* SETO 1.1.191 · automatische Abrechnungserklärung */
.compare-explanation-panel{overflow:hidden}
.compare-explanation-panel[data-status="match"]{border-color:rgba(25,135,84,.24)}
.compare-explanation-panel[data-status="difference"]{border-color:rgba(190,70,55,.28)}
.compare-explanation-panel[data-status="review"]{border-color:rgba(181,112,0,.28)}
.compare-explanation-body{display:grid;gap:.55rem;padding-top:.1rem}
.compare-explanation-body>strong{font-size:1rem}
.compare-explanation-body>p{margin:0;color:var(--muted);font-size:.78rem;line-height:1.55}
.compare-explanation-list{display:grid;gap:.42rem;margin:.2rem 0 0;padding-left:1.15rem;color:var(--text-secondary);font-size:.78rem;line-height:1.5}
.compare-explanation-list li::marker{font-weight:800}
.compare-explanation-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.35rem}
@media(max-width:560px){.compare-explanation-actions{display:grid;grid-template-columns:1fr}.compare-explanation-actions a{text-align:center}}

/* SETO 1.1.191 – konsolidierter Rückrechnungsstatus */
.year-status-pill.partial-retro{background:rgba(214,145,0,.13);color:#8a5b00}
.year-status-button.partial-retro>small{color:#8a5b00}
.year-audit-step.result.partial-retro{border-color:rgba(214,145,0,.3);background:rgba(214,145,0,.045)}
.reconcile-summary .partial-retro{border-color:rgba(214,145,0,.35);background:rgba(214,145,0,.07)}
/* SETO 2.0.014 UI-Audit – FSQ Hilfe: 44px Touchfläche, kompakte Optik */
@media(max-width:680px){
  .fsq-help-trigger{
    width:44px;height:44px;margin:-13.5px;padding:0;border:0;background:transparent;box-shadow:none;font-size:0;position:relative;cursor:help
  }
  .fsq-help-trigger::before{
    content:'?';display:grid;place-items:center;position:absolute;inset:12px;width:20px;height:20px;
    border:1px solid #b6c1ce;border-radius:50%;background:#fff;color:#345a7e;font:800 10px/1 system-ui,sans-serif;
    box-shadow:0 1px 2px rgba(24,40,60,.05)
  }
  .fsq-help-trigger:hover::before,.fsq-help-trigger:focus-visible::before{border-color:#5f87b0;background:#edf5ff}
}


/* SETO 2.0.014 – Leistungsmonat / Zahlmonat bei ST und Rückrechnungen */
.st-claim-summary{margin-top:16px}.st-claim-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.st-claim-summary-item{border:1px solid var(--line,#d8d8df);border-radius:16px;padding:14px 16px;background:color-mix(in srgb,var(--panel,#fff) 94%,var(--accent,#6d4aff) 6%)}.st-claim-summary-item>span{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#707080)}.st-claim-summary-item>strong{display:block;margin-top:5px;font-size:1.05rem}.st-claim-summary-item>small{display:block;margin-top:4px;color:var(--muted,#707080);line-height:1.4}.st-claim-summary-item>b{display:block;margin-top:8px;font-size:1.15rem}.st-claim-summary-note{margin:12px 2px 0;color:var(--muted,#707080);font-size:.88rem;line-height:1.45}@media(max-width:720px){.st-claim-summary-grid{grid-template-columns:1fr}}


/* SETO 2.1.034 · Jahresabrechnung Performance-Diagnose */
.seto-performance-panel{padding:0;overflow:hidden}
.seto-performance-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}
.seto-performance-panel>summary::-webkit-details-marker{display:none}
.seto-performance-panel>summary>span:first-child{display:flex;flex-direction:column;gap:2px}
.seto-performance-panel>summary strong{font-size:13px;color:var(--text,#172033)}
.seto-performance-panel>summary small{font-size:10px;color:var(--muted,#657184)}
.seto-performance-panel[open]>summary{border-bottom:1px solid var(--line,#d8dde6)}
.performance-panel-body{padding:16px}
.performance-diagnostics{display:grid;gap:12px}
.perf-headline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center;padding:13px 15px;border:1px solid var(--line,#d8dde6);border-radius:13px;background:var(--surface-2,#f7f8fa)}
.perf-headline>span{font-size:11px;font-weight:800;color:var(--text-secondary,#334155)}
.perf-headline>strong{grid-row:1 / span 2;grid-column:2;font-size:22px;color:var(--text,#172033)}
.perf-headline>small{font-size:10px;color:var(--muted,#657184)}
.perf-headline.fast{border-color:rgba(25,135,84,.28);background:rgba(25,135,84,.05)}
.perf-headline.watch{border-color:rgba(43,111,168,.28);background:rgba(43,111,168,.05)}
.perf-headline.warn{border-color:rgba(181,112,0,.32);background:rgba(181,112,0,.06)}
.perf-headline.slow{border-color:rgba(190,70,55,.34);background:rgba(190,70,55,.06)}
.perf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.perf-grid>div{min-width:0;padding:11px 12px;border:1px solid var(--line,#d8dde6);border-radius:11px;background:var(--surface-2,#f7f8fa)}
.perf-grid span,.perf-grid small{display:block;color:var(--muted,#657184);font-size:9px;line-height:1.35}
.perf-grid span{font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.perf-grid strong{display:block;margin:5px 0 3px;font-size:15px;color:var(--text,#172033)}
.perf-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 2px;color:var(--text-secondary,#334155);font-size:10px}
.perf-note{margin:0;color:var(--muted,#657184);font-size:10px;line-height:1.45}
@media(max-width:900px){.perf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.performance-panel-body{padding:13px}.performance-panel-body .panel-head{align-items:stretch;flex-direction:column}.performance-panel-body .panel-head button{width:100%}.perf-grid{grid-template-columns:1fr}.perf-headline>strong{font-size:19px}.perf-foot{display:grid;grid-template-columns:1fr}}


/* SETO 2.1.080 – BBG/JAEG als VDN-Plausibilitätskontext */
.sv-limit-context-panel{overflow:hidden}.sv-cap-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.sv-cap-grid article{padding:12px 13px;border:1px solid var(--seto-border,#d9dee7);border-radius:13px;background:var(--seto-card,#fff);display:grid;gap:5px;min-width:0}.sv-cap-grid span{color:var(--seto-muted,#667085);font-size:.75rem}.sv-cap-grid strong{font-size:1rem;font-variant-numeric:tabular-nums}.sv-cap-grid small{color:var(--seto-muted,#667085);line-height:1.35}.sv-cap-state{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap}.sv-cap-state.match{background:rgba(22,131,75,.13);color:var(--seto-positive,#167f4b)}.sv-cap-state.difference{background:rgba(184,63,63,.12);color:var(--seto-negative,#a53b3b)}.sv-cap-state.neutral{background:rgba(102,112,133,.12);color:var(--seto-muted,#667085)}.sv-cap-table td,.sv-cap-table th{vertical-align:middle}@media(max-width:900px){.sv-cap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.sv-cap-grid{grid-template-columns:1fr}.sv-cap-state{white-space:normal}}


/* SETO 2.1.083 – Quellenhinweise für VDN-beeinflusste Profilwerte */
.field-source.source-vdn,.field-source.source-vdn-derived,.field-source.source-seto{position:relative;display:inline-block;cursor:help;outline:none}
.field-source.source-vdn{color:var(--accent,#2563eb);font-weight:700}
.field-source.source-vdn-derived{color:var(--warning,#a16207);font-weight:700}
.field-source.source-seto{color:var(--muted,#64748b)}
.field-source[data-tooltip]::after{display:none;content:attr(data-tooltip);position:absolute;z-index:90;left:0;top:calc(100% + 6px);width:min(330px,78vw);white-space:normal;padding:9px 10px;border-radius:9px;background:var(--card,#fff);color:var(--text,#111827);border:1px solid var(--border,#d8dee8);box-shadow:0 10px 26px rgba(15,23,42,.18);font-weight:500;line-height:1.4}
.field-source[data-tooltip]:hover::after,.field-source[data-tooltip]:focus-visible::after,.field-source[data-tooltip][data-open="1"]::after{display:block}

/* SETO 2.1.089 · Herkunftskennzeichnung Abrechnung */
.payroll-provenance-badge{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:2px 6px;
  border-radius:999px;
  border:1px solid currentColor;
  font-size:9px;
  font-weight:800;
  line-height:1.2;
  vertical-align:middle;
  white-space:nowrap;
  opacity:.92;
  cursor:help;
}
.payroll-provenance-badge.vdn{color:#1f66a8;background:rgba(43,111,168,.08)}
.payroll-provenance-badge.vdn-derived{color:#8b5d00;background:rgba(181,112,0,.08)}
.payroll-provenance-badge.review{color:#8b5d00;background:rgba(181,112,0,.06)}
.payroll-provenance-badge.seto{color:#217a44;background:rgba(25,135,84,.06)}
.payroll-provenance-badge.compact-info{
  width:15px;
  height:15px;
  min-width:15px;
  margin-left:4px;
  padding:0;
  border:0;
  background:transparent;
  justify-content:center;
  font-size:12px;
  line-height:15px;
  opacity:.72;
  vertical-align:-1px;
}
.payroll-provenance-badge.compact-info:hover,.payroll-provenance-badge.compact-info:focus{opacity:1}
.payroll-provenance-badge:focus{outline:2px solid currentColor;outline-offset:2px}
.amount .payroll-provenance-badge,
dd .payroll-provenance-badge,
strong .payroll-provenance-badge{font-weight:800}


/* SETO 2.1.093 – SFN/§3b-Details standardmäßig verborgen; Hover/Tippen über ⓘ */
.sfn-info-heading{position:relative;overflow:visible!important;flex-wrap:wrap}
.sfn-info-heading>span:first-child{display:inline-flex;align-items:center;gap:5px}
.sfn-tax-info-wrap{position:relative;display:inline-flex;align-items:center;margin-left:4px;vertical-align:middle}
.sfn-tax-info-trigger{
  width:17px;height:17px;min-width:17px;padding:0;border:1px solid #b6c1ce;border-radius:50%;
  background:#fff;color:#345a7e;font:800 10px/1 system-ui,sans-serif;cursor:help;
  display:inline-grid;place-items:center;box-shadow:0 1px 2px rgba(24,40,60,.05)
}
.sfn-tax-info-trigger:hover,.sfn-tax-info-trigger:focus-visible{border-color:#5f87b0;background:#edf5ff;outline:none}
.sfn-tax-info-popover{
  position:absolute;right:0;top:calc(100% + 8px);z-index:95;
  width:min(390px,calc(100vw - 44px));padding:11px 12px;
  border:1px solid #cbd5df;border-radius:11px;background:var(--card,#fff);color:var(--ink,#26323f);
  box-shadow:0 12px 32px rgba(26,45,67,.18);font-size:10px;line-height:1.45;
  white-space:normal!important;text-transform:none;letter-spacing:0;text-align:left;
  opacity:0;visibility:hidden;transform:translateY(-3px);pointer-events:none;
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
}
.sfn-tax-info-popover>strong{display:block;margin:0 0 2px;font-size:11px;color:var(--ink,#17365d)}
.sfn-tax-info-source{display:block;margin:0 0 8px;color:var(--muted,#6b7785);font-size:8.5px;font-weight:750}
.sfn-tax-info-values{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px 14px!important;margin:0!important}
.sfn-tax-info-values dt,.sfn-tax-info-values dd{margin:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:9.5px!important;line-height:1.35!important}
.sfn-tax-info-values dt{color:var(--muted,#6b7785)!important;font-weight:700!important}
.sfn-tax-info-values dd{color:var(--ink,#26323f)!important;font-weight:850!important;text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.sfn-tax-info-note{display:block;margin-top:9px;padding-top:8px;border-top:1px solid var(--line,#e4e8ee);color:var(--muted,#6b7785);font-size:9px;line-height:1.45}
.sfn-tax-info-wrap:hover .sfn-tax-info-popover,
.sfn-tax-info-wrap:focus-within .sfn-tax-info-popover,
.sfn-tax-info-wrap[data-open="1"] .sfn-tax-info-popover{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
@media(max-width:680px){
  .sfn-tax-info-wrap{position:static}
  .sfn-tax-info-popover{right:8px;left:8px;top:auto;margin-top:8px;width:auto;max-width:none;font-size:10.5px}
}
@media print{.sfn-tax-info-trigger,.sfn-tax-info-popover{display:none!important}}

/* SETO 2.1.097 – ruhige Abrechnung + progressive Kurzhilfe */
.payroll-hero-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;
  margin:0;border-top:1px solid var(--line,#e3e8ef);border-bottom:1px solid var(--line,#e3e8ef);
  background:var(--line,#e3e8ef)
}
.payroll-hero-item{min-width:0;padding:14px 16px;background:var(--surface,#fff)}
.payroll-hero-item span{display:inline-flex;align-items:center;gap:6px;color:var(--muted,#6c7785);font-size:10px;font-weight:750;letter-spacing:.02em}
.payroll-hero-item strong{display:block;margin-top:3px;color:var(--ink,#1f2b38);font-size:20px;line-height:1.15;font-variant-numeric:tabular-nums}
.payroll-hero-item.payout strong{font-size:22px}
.payroll-person-compact{padding-top:10px;padding-bottom:10px}
.payroll-person-compact .vdn-label{font-size:8.5px}
.payroll-person-compact strong{font-size:10.5px}
.payroll-secondary-inline{display:none!important}

.payroll-help-host{position:relative}
.payroll-help-trigger{
  display:inline-grid;place-items:center;vertical-align:middle;width:18px;height:18px;min-width:18px;margin-left:5px;padding:0;
  border:1px solid color-mix(in srgb,var(--muted,#718096) 45%,transparent);border-radius:50%;
  background:transparent;color:var(--accent-dark,#315d86);font:800 10px/1 system-ui,sans-serif;cursor:help;opacity:.72
}
.payroll-help-trigger:hover,.payroll-help-trigger:focus-visible{opacity:1;background:var(--accent-soft,#edf5ff);border-color:var(--accent,#5f87b0);outline:none}
.payroll-help-trigger:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#5f87b0) 28%,transparent)}
.vdn-table td:nth-child(2).payroll-help-host{white-space:normal}

.payroll-quick-help-popover{
  position:fixed;z-index:130;width:min(380px,calc(100vw - 24px));max-height:min(72vh,620px);overflow:auto;
  padding:14px 14px 12px;border:1px solid var(--line,#d8e0e8);border-radius:13px;
  background:var(--surface,#fff);color:var(--ink,#253242);box-shadow:0 16px 40px rgba(18,33,51,.22);
  opacity:0;visibility:hidden;transform:translateY(-3px);pointer-events:none;transition:opacity .12s ease,transform .12s ease,visibility .12s ease
}
.payroll-quick-help-popover.open{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.payroll-quick-help-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--line,#e5e9ef)}
.payroll-quick-help-head small{display:block;color:var(--muted,#6f7b88);font-size:9px;font-weight:750;letter-spacing:.04em}
.payroll-quick-help-head strong{display:block;margin-top:2px;font-size:13px;line-height:1.3}
.payroll-quick-help-close{border:0;background:transparent;color:var(--muted,#647184);font-size:20px;line-height:1;cursor:pointer;padding:0 2px}
.payroll-quick-help-section{margin-top:10px}
.payroll-quick-help-section>b{display:block;margin-bottom:3px;color:var(--ink,#273444);font-size:10px}
.payroll-quick-help-section p{margin:0;color:var(--text,#364454);font-size:10.5px;line-height:1.45}
.payroll-quick-help-section code{display:block;padding:7px 8px;border-radius:8px;background:var(--surface-2,#f5f7fa);color:var(--ink,#273444);font:700 10px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:normal;overflow-wrap:anywhere}
.payroll-quick-help-source{margin-top:10px;padding-top:8px;border-top:1px solid var(--line,#e5e9ef);color:var(--muted,#6f7b88);font-size:9px}
.payroll-quick-help-more{display:inline-flex;margin-top:10px;padding:0;border:0;background:transparent;color:var(--accent-dark,#255f95);font:750 10.5px/1.35 inherit;cursor:pointer;text-decoration:none}
.payroll-quick-help-more:hover,.payroll-quick-help-more:focus-visible{text-decoration:underline;outline:none}

/* Die frühere SFN-Spezialbox wird ab 2.1.097 durch dieselbe Kurzhilfe wie alle anderen Beträge ersetzt. */
.sfn-tax-info-popover{display:none!important}
.sfn-info-heading>span:first-child{display:inline-flex;align-items:center;gap:2px}
.sfn-info-heading .payroll-help-trigger{margin-left:3px}

html[data-theme="dark"] .payroll-hero-item,
:root[data-theme="dark"] .payroll-hero-item{background:var(--surface,#202630)}
html[data-theme="dark"] .payroll-quick-help-popover,
:root[data-theme="dark"] .payroll-quick-help-popover{background:var(--surface,#202630);border-color:var(--line,#3b4552);box-shadow:0 18px 46px rgba(0,0,0,.46)}

@media(max-width:680px){
  .payroll-hero-summary{grid-template-columns:1fr 1fr}
  .payroll-hero-item.payout{grid-column:1/-1}
  .payroll-hero-item{padding:11px 12px}
  .payroll-hero-item strong{font-size:18px}.payroll-hero-item.payout strong{font-size:20px}
  .payroll-quick-help-popover{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom));width:auto!important;
    max-height:min(66vh,560px);border-radius:16px;padding:16px 16px 14px;transform:translateY(12px)
  }
  .payroll-quick-help-popover.open{transform:none}
  .payroll-quick-help-section p,.payroll-quick-help-section code{font-size:11.5px}
  .payroll-quick-help-more{min-height:36px;align-items:center;font-size:11.5px}
  .payroll-help-trigger{width:22px;height:22px;min-width:22px;font-size:11px;cursor:pointer}
}
@media print{
  .payroll-help-trigger,.payroll-quick-help-popover{display:none!important}
  .payroll-hero-summary{break-inside:avoid}
}


/* SETO 2.1.109 · VDN-Vergleich: Ursache → Folge → Erklärung */
.compare-metric.follow-up{background:rgba(102,112,133,.035)}
.compare-metric.follow-up>b{color:var(--muted,#667085);font-weight:750}
.compare-metric.cause-open>b{color:#8b5d00}
.finding-card.cause{border-color:rgba(190,70,55,.32);background:rgba(190,70,55,.055)}
.finding-card.follow-up{border-color:rgba(102,112,133,.28);background:rgba(102,112,133,.04)}
.finding-card.explained{border-color:rgba(43,111,168,.24);background:rgba(43,111,168,.045)}
.finding-eyebrow{font-size:8px;font-weight:900;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}
.compare-cause-divider{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:.55rem;padding-top:.7rem;border-top:1px solid var(--line)}
.compare-cause-divider>span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}
.compare-cause-divider>small{font-size:9px;color:var(--muted);text-align:right}
.compare-wage-status.cause{color:#a13a32}.compare-wage-status.review{color:#8b5d00}
.compare-wage-reason{display:block;margin-top:4px;max-width:360px;white-space:normal;text-align:left;font-size:9px;font-weight:500;line-height:1.35;color:var(--muted)}
.compare-secondary-details{padding:0;overflow:hidden}
.compare-secondary-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:14px 16px;list-style:none}
.compare-secondary-details>summary::-webkit-details-marker{display:none}
.compare-secondary-details>summary>span:first-child{display:flex;flex-direction:column;gap:2px}
.compare-secondary-details>summary strong{font-size:13px}
.compare-secondary-details[open]>summary{border-bottom:1px solid var(--line)}
.compare-secondary-details-body{padding:15px 16px 16px}
.compare-secondary-details-body>.panel-head{margin-bottom:12px}
.compare-secondary-intro{margin:0 0 12px;color:var(--muted);font-size:10px;line-height:1.5}
.compare-detail-hint{font-size:9px;font-weight:800;color:var(--muted)}
@media(max-width:560px){
  .compare-cause-divider{align-items:flex-start;flex-direction:column}.compare-cause-divider>small{text-align:left}
  .compare-wage-reason{max-width:250px}
}


/* SETO 2.1.139 – Abrechnung unten aufgeräumt */
.main-shortcuts-wrap{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.main-shortcuts-head{
  display:grid;
  gap:3px;
  padding:0 2px;
}
.main-shortcuts-head > span{
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:var(--accent,#17365d);
}
.main-shortcuts-head > strong{
  font-size:1.05rem;
  color:var(--ink,#1e2430);
}
.main-shortcuts-head > small{
  color:var(--muted,#707080);
  line-height:1.45;
}
.st-claim-summary .secondary-button{
  min-width:150px;
}

/* SETO 2.1.187 · Jahresübersicht: echte VDN-Daten, reine SETO-Sicht und Direktabgleich */
.year-section-nav{
  display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:8px;
  border:1px solid var(--line);border-radius:12px;background:var(--surface);position:sticky;top:6px;z-index:12;
  box-shadow:0 4px 18px rgba(24,32,45,.06)
}
.year-section-nav a{
  display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;
  border:1px solid var(--line);border-radius:9px;background:var(--surface-2,#f7f8fa);color:var(--ink);
  text-decoration:none;font-size:11px;font-weight:800
}
.year-section-nav a:hover,.year-section-nav a:focus-visible{border-color:var(--accent);color:var(--accent-dark);outline:none}
.year-source-panel{scroll-margin-top:72px}
.year-vdn-actual-panel{border-color:rgba(31,117,80,.28)}
.year-source-kpis{margin-top:8px}
.year-source-kpis>div{min-height:78px}
.year-source-table{min-width:940px}
.year-vdn-table{min-width:1040px}
.year-direct-compare-table{min-width:1080px}
.year-source-table td.amount,.year-source-table th.amount{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.year-source-note{margin:10px 0 0;color:var(--muted);font-size:10px;line-height:1.45}
.year-wage-details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.year-wage-details>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:800}
.year-wage-details>summary span,.year-wage-details>summary strong,.year-wage-details>summary small{display:block}
.year-wage-details>summary small{margin-top:2px;color:var(--muted);font-size:9px;font-weight:650}
.year-wage-details[open]>summary{margin-bottom:10px}
.year-wage-table{min-width:680px}
.year-direct-compare-table .difference-value{color:var(--danger);font-weight:850}
.year-direct-compare-table .match-value{color:var(--good);font-weight:750}
#yearTotals{scroll-margin-top:72px}
@media(max-width:760px){
  .year-section-nav{position:static;display:grid;grid-template-columns:1fr 1fr;padding:6px}
  .year-section-nav a{min-height:38px;font-size:10px}
  .year-source-kpis{grid-template-columns:1fr 1fr}
}

/* SETO 2.1.189 – echte VDN-Istansicht je Bezugsmonat */
.vdn-actual-page{padding-bottom:56px}
.vdn-actual-summary{overflow:hidden}
.vdn-actual-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.vdn-actual-kpis>div,.vdn-actual-metric-grid>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2,#f7f8fa)}
.vdn-actual-kpis span,.vdn-actual-metric-grid span{display:block;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.vdn-actual-kpis strong,.vdn-actual-metric-grid strong{display:block;margin-top:5px;font-size:20px;line-height:1.15}
.vdn-actual-kpis small,.vdn-actual-metric-grid small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.4}
.vdn-actual-principle{margin:14px 0 0;padding:11px 13px;border-left:3px solid var(--accent,#315b8a);background:var(--accent-soft,#eef4fb);border-radius:0 10px 10px 0;color:var(--muted);font-size:11px;line-height:1.5}
.vdn-source-timeline{display:grid;gap:10px}
.vdn-source-card{padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.vdn-source-card.main{border-left:4px solid #2d7d46}.vdn-source-card.retro{border-left:4px solid #b7791f;background:rgba(183,121,31,.035)}.vdn-source-card.history{border-left:4px solid #6b7280;background:var(--surface-2,#f7f8fa);opacity:.88}.actual-vdn-history{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}.actual-vdn-history>h3{margin:0 0 4px;font-size:12px}.actual-vdn-history>p{margin:0 0 10px;color:var(--muted);font-size:9px;line-height:1.45}
.vdn-source-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vdn-source-card-head strong{display:block;margin-top:3px}.vdn-source-kind{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.vdn-source-card-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:11px 0}.vdn-source-card-values span{padding:8px 10px;border-radius:9px;background:var(--surface-2,#f7f8fa);color:var(--muted);font-size:10px}.vdn-source-card-values b{display:block;margin-top:3px;color:var(--ink);font-size:13px}.vdn-source-card p{margin:8px 0;color:var(--muted);font-size:10px}.vdn-source-card>small{display:block;color:var(--muted);font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.actual-vdn-wage-table{min-width:1120px}.actual-vdn-summary-table{min-width:980px}
.actual-vdn-explanation{display:block;max-width:330px;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.4;font-weight:400}
.actual-vdn-values{display:flex;flex-wrap:wrap;gap:4px}.actual-vdn-values span{padding:3px 6px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:8.5px;white-space:nowrap}.actual-vdn-retro-amount{color:#9a650d;font-weight:800}
.actual-vdn-source-details summary{cursor:pointer;font-size:9px;font-weight:800;white-space:nowrap}.actual-vdn-source-details ul{list-style:none;margin:7px 0 0;padding:0;min-width:220px}.actual-vdn-source-details li{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-bottom:1px solid var(--line);font-size:8.5px}.actual-vdn-source-details li:last-child{border-bottom:0}.actual-vdn-source-details li span{white-space:nowrap;font-variant-numeric:tabular-nums}
.vdn-actual-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.vdn-actual-metric-grid strong{font-size:16px}
.actual-vdn-technical>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px}.actual-vdn-technical>summary strong,.actual-vdn-technical>summary span{display:block}.actual-vdn-technical-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.actual-vdn-technical-body article{padding:12px;border:1px solid var(--line);border-radius:10px}.actual-vdn-technical-body dl{display:grid;grid-template-columns:110px 1fr;gap:5px 9px;margin:9px 0 0;font-size:9px}.actual-vdn-technical-body dt{color:var(--muted)}.actual-vdn-technical-body dd{margin:0;overflow-wrap:anywhere}
@media(max-width:900px){.vdn-actual-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.vdn-actual-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.vdn-actual-kpis,.vdn-actual-metric-grid,.actual-vdn-technical-body{grid-template-columns:1fr}.vdn-source-card-values{grid-template-columns:1fr}.vdn-source-card-head{flex-direction:column}.vdn-actual-kpis strong{font-size:18px}}
@media print{body[data-view="actual"] .status-line,body[data-view="actual"] .period-strip,body[data-view="actual"] .seto-v2-page-actions,body[data-view="actual"] .inline-actions{display:none!important}.vdn-actual-page{width:100%;margin:0}.vdn-source-card,.vdn-actual-summary,.vdn-actual-page .panel{break-inside:avoid;box-shadow:none}.actual-vdn-technical{display:none}}

/* SETO 2.1.194 · #90 Monatssimulation */
.simulation-page{padding-bottom:56px}
.simulation-warning{
  display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;
  border:1px solid rgba(154,101,0,.35);border-left:4px solid var(--warn);border-radius:12px;
  background:rgba(154,101,0,.07);color:var(--ink)
}
.simulation-warning strong{font-size:13px}.simulation-warning span{color:var(--muted);font-size:11px;line-height:1.45}
.simulation-evidence{display:grid;gap:7px;margin:-6px 0 14px;padding:11px 13px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:11px;background:var(--surface-2);font-size:10px;line-height:1.45}
.simulation-evidence[hidden]{display:none!important}.simulation-evidence strong{font-size:12px}.simulation-evidence span{color:var(--muted)}
.simulation-evidence.difference{border-left-color:var(--warn);background:rgba(154,101,0,.055)}.simulation-evidence.match{border-left-color:#2d7d46;background:rgba(45,125,70,.045)}
.simulation-evidence dl{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr);gap:4px 10px;margin:1px 0 0}.simulation-evidence dt{color:var(--muted)}.simulation-evidence dd{margin:0;font-weight:750;overflow-wrap:anywhere}
.simulation-result{margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.simulation-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}
.simulation-result-head h2{margin:2px 0 3px;font-size:19px}.simulation-result-head p{margin:0;color:var(--muted);font-size:11px}
.simulation-compare-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.simulation-compare-grid article{min-width:0;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.simulation-compare-grid article>span{display:block;margin-bottom:9px;color:var(--ink);font-size:12px;font-weight:850}
.simulation-compare-grid article>small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.simulation-compare-grid article>strong{display:block;margin:2px 0 8px;font-size:17px;line-height:1.15;font-variant-numeric:tabular-nums}
.simulation-compare-grid article>b{display:block;padding-top:8px;border-top:1px solid var(--line);color:var(--accent-dark);font-size:11px;font-variant-numeric:tabular-nums}
.simulation-weekdays,.simulation-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.simulation-weekdays{margin:0 0 7px;padding:0 2px}.simulation-weekdays span{text-align:center;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase}
.simulation-calendar{align-items:stretch}
.simulation-day-blank{min-height:72px}
.simulation-day{
  min-width:0;min-height:82px;padding:8px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--ink);
  text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;transition:border-color .12s ease,background .12s ease
}
.simulation-day:hover,.simulation-day:focus-visible{border-color:var(--accent);outline:none}
.simulation-day.selected{border:2px solid var(--accent);padding:7px;background:var(--accent-soft)}
.simulation-day.changed{border-color:rgba(154,101,0,.55);background:rgba(154,101,0,.075)}
.simulation-day.selected.changed{border-color:var(--accent)}
.simulation-day.holiday .simulation-day-number::after{content:' •';color:var(--danger)}
.simulation-day-number{font-size:11px;font-weight:850}.simulation-day strong{font-size:12px}.simulation-day small{min-width:0;color:var(--muted);font-size:9px;line-height:1.25;overflow-wrap:anywhere}
.simulation-day b{margin-top:auto;color:var(--warn);font-size:8px;text-transform:uppercase;letter-spacing:.04em}
.simulation-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.simulation-editor-grid label{display:grid;gap:6px}.simulation-editor-grid label>span{font-size:10px;font-weight:800;color:var(--muted)}
.simulation-editor-grid select{width:100%;min-height:44px;padding:9px 10px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink)}
.simulation-day-info{margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:11px;line-height:1.45}
.simulation-day-info strong{color:var(--ink)}
.simulation-changes{display:grid;gap:7px}.simulation-changes>span{color:var(--muted);font-size:11px}
.simulation-changes>div{display:grid;grid-template-columns:72px 1fr;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-size:10px}
.simulation-changes>div span{color:var(--muted);overflow-wrap:anywhere}
@media(max-width:900px){.simulation-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
  .simulation-result-head{flex-direction:column}.simulation-result-head .secondary-button{width:100%}
  .simulation-compare-grid{grid-template-columns:1fr 1fr;gap:7px}.simulation-compare-grid article{padding:10px}.simulation-compare-grid article>strong{font-size:15px}
  .simulation-weekdays,.simulation-calendar{gap:4px}.simulation-day{min-height:68px;padding:6px 4px;border-radius:8px}.simulation-day.selected{padding:5px 3px}
  .simulation-day strong{font-size:10px}.simulation-day small{font-size:7.8px}.simulation-day b{font-size:6.8px}.simulation-day-blank{min-height:64px}
  .simulation-editor-grid{grid-template-columns:1fr}.simulation-changes>div{grid-template-columns:58px 1fr}
}
@media(max-width:390px){.simulation-compare-grid{grid-template-columns:1fr}.simulation-day{min-height:62px}.simulation-day small{display:none}}
@media print{body[data-view="simulation"] .status-line,body[data-view="simulation"] .period-strip,body[data-view="simulation"] .seto-v2-page-actions,body[data-view="simulation"] .simulation-editor,body[data-view="simulation"] .simulation-changes-panel{display:none!important}.simulation-result,.simulation-calendar-panel{box-shadow:none;break-inside:avoid}}

/* SETO 2.1.197 · Weitere Funktionen klar gruppiert */
.workbench-groups{display:grid;gap:22px}
.workbench-group{display:grid;gap:10px}
.workbench-group+.workbench-group{padding-top:20px;border-top:1px solid var(--line)}
.workbench-group-head h2{margin:2px 0 4px;font-size:18px}
.workbench-group-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.workbench-grid-single{grid-template-columns:minmax(0,1fr)}
@media(min-width:761px){.workbench-grid-single .workbench-card{max-width:620px}}

/* SETO 2.1.197 · Monatssimulation Phase B: Delta-Erklaerung, Mehrtag, Undo */
.simulation-result-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.simulation-delta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.simulation-delta-grid article{min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.simulation-delta-grid span{display:block;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
.simulation-delta-grid strong{display:block;margin:4px 0 3px;font-size:14px;font-variant-numeric:tabular-nums}
.simulation-delta-grid small{display:block;color:var(--muted);font-size:9px;line-height:1.35}
.simulation-why{display:grid;gap:8px}
.simulation-why>span{color:var(--muted);font-size:11px}
.simulation-why article{display:grid;gap:4px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.simulation-why article strong{font-size:12px}.simulation-why article span{color:var(--muted);font-size:10.5px;line-height:1.45}
.simulation-position-details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.simulation-position-details summary{cursor:pointer;font-weight:800;font-size:11px;color:var(--ink)}
.simulation-toggle{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:10px;color:var(--muted)}
.simulation-toggle input{width:18px;height:18px}
.simulation-position-table td strong{display:block;font-size:10px}.simulation-position-table td small{display:block;color:var(--muted);font-size:8.5px;line-height:1.3}
.simulation-position-table td.negative{font-weight:800;color:var(--danger)}.simulation-position-table td.positive{font-weight:800;color:var(--success)}
.simulation-range-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end}
.simulation-range-grid label{display:grid;gap:6px}.simulation-range-grid label>span{font-size:10px;font-weight:800;color:var(--muted)}
.simulation-range-grid input,.simulation-range-grid select{width:100%;min-height:44px;padding:9px 10px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font-size:16px}
.simulation-range-grid .secondary-button{min-height:44px;white-space:nowrap}
.simulation-range-preview{margin-top:10px;padding:9px 11px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:10px;line-height:1.4}
@media(max-width:900px){.simulation-delta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.simulation-range-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.simulation-range-grid .secondary-button{width:100%}}
@media(max-width:620px){.simulation-result-actions{width:100%;justify-content:stretch}.simulation-result-actions button{flex:1 1 100%}.simulation-delta-grid{grid-template-columns:1fr 1fr}.simulation-range-grid{grid-template-columns:1fr}.simulation-range-grid input,.simulation-range-grid select{font-size:16px}}
@media(max-width:390px){.simulation-delta-grid{grid-template-columns:1fr}}

/* Abrechnung 2.1.197 – Monatssimulation näher am normalen Kalender / Feedback #102 */
.simulation-calendar-head{align-items:center}
.simulation-selection-strip{display:flex;align-items:center;gap:10px;min-height:42px;margin:0 0 10px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:10px}
.simulation-selection-strip strong{font-size:11px;color:var(--ink)}
.simulation-selection-strip span{color:var(--muted)}
.simulation-selection-strip .text-button{margin-left:auto}
.simulation-weekdays,.simulation-calendar{gap:0}
.simulation-weekdays{margin:0;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;background:var(--surface-2);overflow:hidden}
.simulation-weekdays span{padding:6px 0;font-size:10px}
.simulation-calendar{border:1px solid var(--line);border-radius:0 0 10px 10px;overflow:hidden;background:var(--surface)}
.simulation-day-blank{min-height:48px;background:var(--surface-2);border:.5px solid var(--line);opacity:.45}
.simulation-day{
  aspect-ratio:1/1;min-height:48px;padding:4px 2px 3px;border:0.5px solid var(--line);border-radius:0;
  background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:1px;position:relative;overflow:hidden;text-align:center;appearance:none;color:var(--ink);cursor:pointer;
}
.simulation-day:hover,.simulation-day:focus-visible{background:var(--surface-2);outline:none;z-index:2}
.simulation-day.sunday{background:color-mix(in srgb,#c07a00 7%,var(--surface))}
.simulation-day.holiday{background:color-mix(in srgb,var(--danger) 8%,var(--surface))}
.simulation-day.status-U{background:color-mix(in srgb,#2f6fd0 12%,var(--surface))}
.simulation-day.status-FS{background:color-mix(in srgb,#0f766e 14%,var(--surface))}
.simulation-day.status-KR{background:color-mix(in srgb,#b03434 14%,var(--surface))}
.simulation-day.status-ST{background:color-mix(in srgb,#16806a 13%,var(--surface))}
.simulation-day.status-AFZ{background:color-mix(in srgb,#b87800 13%,var(--surface))}
.simulation-day.status-ZT{background:color-mix(in srgb,#6d54b5 12%,var(--surface))}
.simulation-day.status-SU,.simulation-day.status-BU,.simulation-day.status-GT{background:color-mix(in srgb,#5c677d 11%,var(--surface))}
.simulation-day.selected,.simulation-day.selected.changed{padding:4px 2px 3px;background-color:inherit;outline:3px solid var(--accent);outline-offset:-3px;z-index:3}
.simulation-day.multi-selected{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}
.simulation-day.today .simulation-day-number{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff}
.simulation-day-number{font-size:12px;font-weight:800;line-height:1.05}
.simulation-day.sunday .simulation-day-number{color:#a86600}.simulation-day.holiday .simulation-day-number{color:var(--danger)}
.simulation-day.today .simulation-day-number{color:#fff}
.simulation-shift-chip{display:inline-flex;align-items:center;justify-content:center;min-width:22px;padding:1px 5px;margin-top:2px;border:1px solid transparent;border-radius:999px;color:var(--muted);font-size:9px;font-weight:850;line-height:1.2}
.simulation-day.shift-TS .simulation-shift-chip{color:#1d4ed8;background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.22)}
.simulation-day.shift-NS .simulation-shift-chip{color:#4338ca;background:rgba(99,102,241,.14);border-color:rgba(99,102,241,.24)}
.simulation-day.shift-FREE .simulation-shift-chip{color:var(--muted);background:var(--surface-2);border-color:var(--line)}
.simulation-entry-badge{max-width:calc(100% - 4px);padding:1px 4px;border-radius:3px;background:color-mix(in srgb,var(--ink) 76%,transparent);color:#fff;font-size:8px;font-weight:900;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.simulation-day.status-FS .simulation-entry-badge{background:#0f766e}.simulation-day.status-KR .simulation-entry-badge{background:#a52f2f}.simulation-day.status-U .simulation-entry-badge{background:#2f6fd0}.simulation-day.status-ST .simulation-entry-badge{background:#16806a}.simulation-day.status-AFZ .simulation-entry-badge{background:#9a6500}
.simulation-changed-dot{position:absolute;right:4px;top:4px;width:7px;height:7px;border-radius:50%;background:var(--warn);box-shadow:0 0 0 2px var(--surface)}
.simulation-calendar-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px;color:var(--muted);font-size:9px}
.simulation-calendar-legend span{display:inline-flex;align-items:center;gap:4px}.simulation-calendar-legend i{width:11px;height:11px;border-radius:3px;border:1px solid var(--line);background:var(--surface)}
.simulation-calendar-legend .legend-ts{background:rgba(59,130,246,.18)}.simulation-calendar-legend .legend-ns{background:rgba(99,102,241,.20)}.simulation-calendar-legend .legend-u{background:color-mix(in srgb,#2f6fd0 18%,var(--surface))}.simulation-calendar-legend .legend-fs{background:color-mix(in srgb,#0f766e 20%,var(--surface))}.simulation-calendar-legend .legend-kr{background:color-mix(in srgb,#b03434 20%,var(--surface))}.simulation-calendar-legend .legend-selected{background:transparent;border:3px solid var(--accent)}
.simulation-choice-layout{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:14px}
.simulation-choice-group{min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.simulation-choice-group h3{margin:0 0 8px;font-size:11px;color:var(--ink)}
.simulation-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.simulation-status-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}
.simulation-choice-buttons button{min-height:44px;padding:7px 8px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);font-size:10px;font-weight:850;cursor:pointer}
.simulation-choice-buttons button:hover:not(:disabled),.simulation-choice-buttons button:focus-visible{border-color:var(--accent);outline:none}
.simulation-choice-buttons button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark);box-shadow:inset 0 0 0 1px var(--accent)}
.simulation-choice-buttons button:disabled{opacity:.45;cursor:not-allowed}
.simulation-status-buttons [data-sim-status="U"].active{background:color-mix(in srgb,#2f6fd0 15%,var(--surface))}.simulation-status-buttons [data-sim-status="FS"].active{background:color-mix(in srgb,#0f766e 16%,var(--surface))}.simulation-status-buttons [data-sim-status="KR"].active{background:color-mix(in srgb,#b03434 15%,var(--surface))}.simulation-status-buttons [data-sim-status="ST"].active{background:color-mix(in srgb,#16806a 15%,var(--surface))}.simulation-status-buttons [data-sim-status="AFZ"].active{background:color-mix(in srgb,#b87800 15%,var(--surface))}
@media(max-width:620px){
  .simulation-calendar-head{align-items:stretch}.simulation-calendar-head .secondary-button{width:100%}
  .simulation-selection-strip{align-items:flex-start;flex-wrap:wrap}.simulation-selection-strip .text-button{margin-left:0;width:100%}
  .simulation-day,.simulation-day-blank{min-height:43px}.simulation-day{padding:3px 1px 2px}.simulation-day.selected,.simulation-day.selected.changed{padding:3px 1px 2px}
  .simulation-day-number{font-size:11px}.simulation-shift-chip{min-width:19px;padding:0 3px;font-size:8px}.simulation-entry-badge{font-size:7px;padding:0 3px}.simulation-changed-dot{right:2px;top:2px;width:6px;height:6px}
  .simulation-choice-layout{grid-template-columns:1fr}.simulation-status-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:390px){.simulation-day,.simulation-day-blank{min-height:40px}.simulation-entry-badge{max-width:32px}.simulation-calendar-legend{gap:7px}.simulation-status-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Auswahlrahmen darf die Statusfarbe nicht überdecken. */
.simulation-day.selected{background:var(--surface)}
.simulation-day.sunday.selected{background:color-mix(in srgb,#c07a00 7%,var(--surface))}
.simulation-day.holiday.selected{background:color-mix(in srgb,var(--danger) 8%,var(--surface))}
.simulation-day.status-U.selected{background:color-mix(in srgb,#2f6fd0 12%,var(--surface))}
.simulation-day.status-FS.selected{background:color-mix(in srgb,#0f766e 14%,var(--surface))}
.simulation-day.status-KR.selected{background:color-mix(in srgb,#b03434 14%,var(--surface))}
.simulation-day.status-ST.selected{background:color-mix(in srgb,#16806a 13%,var(--surface))}
.simulation-day.status-AFZ.selected{background:color-mix(in srgb,#b87800 13%,var(--surface))}
.simulation-day.status-ZT.selected{background:color-mix(in srgb,#6d54b5 12%,var(--surface))}
.simulation-day.status-SU.selected,.simulation-day.status-BU.selected,.simulation-day.status-GT.selected{background:color-mix(in srgb,#5c677d 11%,var(--surface))}

/* SETO 2.1.201 – Jahres-VDN: Ursachen statt Folgefehler zählen */
.year-field-counters{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:7px;margin:8px 0 10px}
.year-field-counters span{display:flex;align-items:baseline;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2,#f7f8fa);color:var(--muted);font-size:8px;font-weight:800}
.year-field-counters b{font-size:14px;color:var(--ink)}
.year-field-counters .root{border-color:rgba(190,70,55,.30);background:rgba(190,70,55,.055)}
.year-field-counters .review{border-color:rgba(181,112,0,.28);background:rgba(181,112,0,.055)}
.year-field-counters .explained{border-color:rgba(25,135,84,.25);background:rgba(25,135,84,.045)}
.year-field-counters .consequence{border-color:rgba(86,98,112,.20)}
.year-field-kind small{display:block;margin-top:3px;color:var(--muted);font-size:7px;line-height:1.25}
.year-field-row.issue-root_problem .year-field-kind span{background:rgba(190,70,55,.11);color:#923b33}
.year-field-row.issue-review .year-field-kind span{background:rgba(181,112,0,.12);color:#80520a}
.year-field-row.issue-explained .year-field-kind span{background:rgba(25,135,84,.10);color:#176b3b}
.year-field-row.issue-consequence .year-field-kind span{background:rgba(86,98,112,.09);color:#4b5966}
.year-field-row.issue-consequence td.amount,.year-field-row.issue-consequence .year-field-explanation{color:var(--muted)}
.year-field-secondary{margin-top:9px}
.year-field-secondary>summary{cursor:pointer;color:var(--muted);font-size:9px;font-weight:850;padding:7px 2px}
.year-field-secondary[open]>summary{color:var(--ink)}
.year-field-clear{margin:8px 0;padding:10px 12px;border:1px solid rgba(25,135,84,.24);border-radius:9px;background:rgba(25,135,84,.045);color:#176b3b;font-size:9px;font-weight:800}
@media(max-width:760px){.year-field-counters{grid-template-columns:1fr 1fr}}
.year-status-pill.review{background:rgba(181,112,0,.11);color:#8c5700}
.year-status-pill.explained{background:rgba(25,135,84,.10);color:#176b3b}
.year-reconcile-summary .review{border-color:rgba(181,112,0,.24);background:rgba(181,112,0,.055)}
.year-reconcile-summary .explained{border-color:rgba(25,135,84,.24);background:rgba(25,135,84,.045)}
.year-reconcile-summary .consequence{border-color:rgba(86,98,112,.18);background:var(--surface-2,#f7f8fa)}


/* SETO 2.1.234 – Monatssimulation: kleine iPhone-Breiten ohne Miniaturschrift */
.simulation-calendar-legend{font-size:11px;line-height:1.35}
@media(max-width:620px){
  .simulation-day,.simulation-day-blank{min-height:46px}
  .simulation-day-number{font-size:11.5px}
  .simulation-shift-chip{min-width:20px;padding:1px 4px;font-size:9px}
  .simulation-entry-badge{font-size:9px;line-height:1.2;padding:1px 3px}
  .simulation-choice-buttons button{font-size:11px}
}
@media(max-width:390px){
  .simulation-day,.simulation-day-blank{min-height:44px}
  .simulation-entry-badge{max-width:34px}
  .simulation-calendar-legend{font-size:11px;gap:7px}
}

/* SETO 2.2.15 · Feedback #130: einfacher Jahres-Nettovergleich */
.year-monthly-flow-panel .panel-head{align-items:flex-end;gap:16px}
.year-flow-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.year-flow-filter{display:flex;align-items:center;gap:8px;font-weight:650;white-space:nowrap}
.year-flow-filter input{width:18px;height:18px}
.year-flow-table th:nth-child(2),.year-flow-table th:nth-child(3),.year-flow-table th:nth-child(4){text-align:right}
.year-flow-table .difference-value{font-weight:750}
.year-flow-table .match-value{opacity:.82}
@media(max-width:720px){.year-monthly-flow-panel .panel-head{align-items:stretch}.year-flow-actions{align-items:flex-start}.year-flow-table th,.year-flow-table td{white-space:nowrap}}

/* END abrechnung/css/app.css */

/* BEGIN shared/seto-ui.css */
html.seto-auth-pending body{visibility:hidden!important}
/* SETO 1.0.15 – gemeinsames Designsystem. Fachliche Kalenderfarben bleiben unangetastet. */
:root {
  --seto-bg:#F4F5F8; --seto-card:#FFFFFF; --seto-card-2:#FAFBFC;
  --seto-text:#1B1D24; --seto-muted:#475467; --seto-border:#D9DEE7;
  --seto-primary:#2f75b5; --seto-primary-hover:#17365d; --seto-link:#17365d; --seto-focus:#5b9bd5;
  --seto-good:#16834b; --seto-warn:#A45F00; --seto-danger:#c23939;
  --seto-radius:16px; --seto-control-radius:12px; --seto-shadow:0 6px 22px rgba(24,32,45,.07);
  --seto-global-h:58px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --seto-bg:#0F1117; --seto-card:#191D27; --seto-card-2:#222836;
  --seto-text:#F3F4F8; --seto-muted:#A7AFC0; --seto-border:#343B49;
  --seto-primary:#5b9bd5; --seto-primary-hover:#5b9bd5; --seto-link:#cfe6fa; --seto-focus:#8fc3ef;
  --seto-good:#69d794; --seto-warn:#f0b65b; --seto-danger:#ff8d85;
  --seto-shadow:0 8px 28px rgba(0,0,0,.25);
  color-scheme: dark;
}
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.seto-ui { padding-top:var(--seto-global-h) !important; }
body.seto-ui.seto-calendar-page { padding-top:calc(var(--seto-global-h) + var(--header-h, 56px)) !important; }
body.seto-ui.seto-login-page { padding-top:var(--seto-global-h) !important; }

.seto-global-header { position:fixed; inset:0 0 auto 0; z-index:10000; height:var(--seto-global-h); border-bottom:1px solid var(--seto-border); background:color-mix(in srgb,var(--seto-card) 95%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); color:var(--seto-text); }
.seto-global-inner { width:min(1320px,calc(100% - 28px)); height:100%; margin:auto; display:flex; align-items:center; gap:18px; }
.seto-wordmark { display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--seto-text); white-space:nowrap; }
.seto-mark { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--seto-primary); color:#fff; font-weight:900; letter-spacing:.03em; }
.seto-wordmark-text strong,.seto-wordmark-text small { display:block; }
.seto-wordmark-text strong { font-size:14px; line-height:1.05; }
.seto-wordmark-text small { margin-top:3px; font-size:10px; color:var(--seto-muted); }
.seto-main-nav { display:flex; height:100%; align-items:stretch; gap:2px; }
.seto-main-nav a { display:flex; align-items:center; padding:0 12px; border-bottom:3px solid transparent; color:var(--seto-muted); text-decoration:none; font-size:13px; font-weight:720; }
.seto-main-nav a:hover { color:var(--seto-text); background:var(--seto-card-2); }
.seto-main-nav a.active { color:var(--seto-primary); border-bottom-color:var(--seto-primary); }
.seto-global-actions { margin-left:auto; display:flex; align-items:center; gap:7px; }
.seto-service-link { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:7px 11px; border:1px solid var(--seto-border); border-radius:var(--seto-control-radius); background:var(--seto-card); color:var(--seto-text); text-decoration:none; font-size:12px; font-weight:780; }
.seto-service-link:hover,.seto-service-link.active { border-color:var(--seto-primary); color:var(--seto-primary); background:var(--seto-card-2); }
.seto-help-link { width:36px; padding:0; font-size:16px; }
.seto-theme-btn { min-width:40px; min-height:36px; padding:7px 10px; border:1px solid var(--seto-border); border-radius:var(--seto-control-radius); background:var(--seto-card); color:var(--seto-text); font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.seto-theme-btn:hover { border-color:var(--seto-primary); color:var(--seto-primary); }

/* Gemeinsame Token auf bestehende Module abbilden */
body.seto-ui:not(.seto-payroll-page) { background:var(--seto-bg); color:var(--seto-text); }
body.seto-ui:not(.seto-payroll-page) a { text-decoration-thickness:1px; text-underline-offset:2px; }
:root[data-theme="light"] body.seto-ui:not(.seto-payroll-page),
:root:not([data-theme="dark"]) body.seto-ui:not(.seto-payroll-page) { --bg:var(--seto-bg); --card:var(--seto-card); --surface:var(--seto-card); --surface-2:var(--seto-card-2); --text:var(--seto-text); --ink:var(--seto-text); --muted:var(--seto-muted); --border:var(--seto-border); --line:var(--seto-border); --primary:var(--seto-primary); --primary2:var(--seto-primary-hover); --purple:#2f75b5; --purple-2:#5b9bd5; --purple-text:#17365d; --purple-soft:#e9f1fa; --soft:#e9f1fa; }
:root[data-theme="dark"] body.seto-ui:not(.seto-payroll-page) { --bg:var(--seto-bg); --card:var(--seto-card); --surface:var(--seto-card); --surface-2:var(--seto-card-2); --text:var(--seto-text); --text-2:#D7DAE2; --ink:var(--seto-text); --muted:var(--seto-muted); --border:var(--seto-border); --line:var(--seto-border); --primary:var(--seto-primary); --primary2:var(--seto-focus); --purple:#5b9bd5; --purple-2:#5b9bd5; --purple-text:#cfe6fa; --purple-soft:#152c45; --soft:#252B38; }

/* Abrechnung: Hellansicht bewusst weitgehend unverändert, nur gemeinsame Kopf-/Akzentlogik. */
body.seto-payroll-page { --accent:var(--seto-primary); --accent-dark:var(--seto-primary-hover); --accent-soft:#e9f1fa; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
:root[data-theme="dark"] body.seto-payroll-page { --page-bg:var(--seto-bg); --surface:var(--seto-card); --surface-2:var(--seto-card-2); --ink:var(--seto-text); --muted:var(--seto-muted); --line:var(--seto-border); --line-strong:#505868; --accent:var(--seto-primary); --accent-dark:#cfe6fa; --accent-soft:#152c45; --good:#69d794; --warn:#f0b65b; --danger:#ff8d85; --shadow:var(--seto-shadow); }
:root[data-theme="dark"] body.seto-payroll-page .app-header,
:root[data-theme="dark"] body.seto-payroll-page .icon-action,
:root[data-theme="dark"] body.seto-payroll-page .secondary-button,
:root[data-theme="dark"] body.seto-payroll-page .text-button,
:root[data-theme="dark"] body.seto-payroll-page .period-arrow { background:var(--surface); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link:hover { background:var(--surface-2); }

/* Zweite, modulspezifische Kopfzeile liegt unter der SETO-Leiste. */
body.seto-ui .app-header { top:var(--seto-global-h) !important; }
body.seto-ui .topbar:not(.seto-global-header) { top:var(--seto-global-h) !important; }
body.seto-ui .app-header-inner { min-height:58px; }
body.seto-ui .app-nav-link, body.seto-ui .mainnav a { border-radius:10px 10px 0 0; }
body.seto-ui button, body.seto-ui input, body.seto-ui select, body.seto-ui textarea { font-family:inherit; }

/* Einheitliche Formensprache ohne fachliche Statusfarben zu überschreiben */
body.seto-ui .btn, body.seto-ui .button, body.seto-ui .ghost, body.seto-ui .icon-action,
body.seto-ui .primary-button, body.seto-ui .secondary-button, body.seto-ui .text-button { border-radius:var(--seto-control-radius); }
body.seto-ui .panel, body.seto-ui .card, body.seto-ui .summary-card, body.seto-ui .app-card,
body.seto-ui .quick-card, body.seto-ui .profile-card, body.seto-ui .feedback-card, body.seto-ui .admin-card { border-radius:var(--seto-radius); }

@media (max-width:860px) {
  .seto-global-inner { width:calc(100% - 18px); gap:8px; }
  .seto-wordmark-text small { display:none; }
  .seto-main-nav { flex:1; overflow-x:auto; scrollbar-width:none; }
  .seto-main-nav::-webkit-scrollbar { display:none; }
  .seto-main-nav a { padding:0 10px; font-size:12px; }
  .seto-main-nav a:nth-child(n+5) { display:none; }
}
@media (max-width:560px) {
  .seto-wordmark-text { display:none; }
  .seto-mark { width:32px; height:32px; }
  .seto-main-nav a { padding:0 8px; font-size:11px; }
  .seto-theme-btn { min-width:36px; padding:7px; font-size:0; }
  .seto-theme-btn::after { content:attr(data-icon); font-size:15px; }
}
@media print { .seto-global-header { display:none !important; } body.seto-ui, body.seto-ui.seto-calendar-page { padding-top:0 !important; } :root { color-scheme:light !important; } }

/* Module mit bislang fest codierten Hellfarben: Darkmode-Nachrüstung */
:root[data-theme="dark"] body.seto-analyse-page,
:root[data-theme="dark"] body.seto-import-page,
:root[data-theme="dark"] body.seto-hilfe-page,
:root[data-theme="dark"] body.seto-start-page,
:root[data-theme="dark"] body.seto-profil-page {
  background:var(--seto-bg) !important; color:var(--seto-text) !important;
}
:root[data-theme="dark"] body.seto-analyse-page .card,
:root[data-theme="dark"] body.seto-analyse-page .kpi,
:root[data-theme="dark"] body.seto-import-page .card,
:root[data-theme="dark"] body.seto-import-page .panel,
:root[data-theme="dark"] body.seto-hilfe-page .hero,
:root[data-theme="dark"] body.seto-hilfe-page .card,
:root[data-theme="dark"] body.seto-hilfe-page .mini {
  background:var(--seto-card) !important; color:var(--seto-text) !important; border-color:var(--seto-border) !important; box-shadow:var(--seto-shadow) !important;
}
:root[data-theme="dark"] body.seto-analyse-page .compare-row,
:root[data-theme="dark"] body.seto-analyse-page .flow-node,
:root[data-theme="dark"] body.seto-analyse-page .muted,
:root[data-theme="dark"] body.seto-import-page .soft,
:root[data-theme="dark"] body.seto-hilfe-page .formula,
:root[data-theme="dark"] body.seto-hilfe-page .full-help blockquote {
  background:var(--seto-card-2) !important; color:var(--seto-text) !important; border-color:var(--seto-border) !important;
}
:root[data-theme="dark"] body.seto-analyse-page .bar-track,
:root[data-theme="dark"] body.seto-analyse-page .rank-meter { background:#303746 !important; }
:root[data-theme="dark"] body.seto-analyse-page select,
:root[data-theme="dark"] body.seto-import-page input,
:root[data-theme="dark"] body.seto-import-page select,
:root[data-theme="dark"] body.seto-import-page textarea {
  background:var(--seto-card) !important; color:var(--seto-text) !important; border-color:var(--seto-border) !important;
}
:root[data-theme="dark"] body.seto-analyse-page th,
:root[data-theme="dark"] body.seto-analyse-page td,
:root[data-theme="dark"] body.seto-hilfe-page th,
:root[data-theme="dark"] body.seto-hilfe-page td { border-color:var(--seto-border) !important; }
:root[data-theme="dark"] body.seto-analyse-page .sub,
:root[data-theme="dark"] body.seto-analyse-page .card p,
:root[data-theme="dark"] body.seto-analyse-page .bar-label,
:root[data-theme="dark"] body.seto-analyse-page .rank-row span,
:root[data-theme="dark"] body.seto-hilfe-page .lead,
:root[data-theme="dark"] body.seto-hilfe-page .small { color:var(--seto-muted) !important; }

/* Gemeinsame Markenakzente in Verwaltungsmodulen */
body.seto-analyse-page .primary, body.seto-import-page .primary,
body.seto-start-page .btn-primary, body.seto-profil-page .button:not(.secondary) {
  background:var(--seto-primary) !important; border-color:var(--seto-primary) !important; color:#fff !important;
}
body.seto-analyse-page .back, body.seto-hilfe-page .eyebrow,
body.seto-hilfe-page .nav a { color:var(--seto-link) !important; }
body.seto-hilfe-page .nav a { background:color-mix(in srgb,var(--seto-primary) 10%,var(--seto-card)) !important; }


/* SETO 1.0.15 – reduzierte globale Navigation */
@media (max-width: 760px) {
  .seto-global-inner { width:min(100% - 16px,1320px); gap:8px; }
  .seto-wordmark-text small { display:none; }
  .seto-wordmark-text strong { font-size:13px; }
  .seto-main-nav { flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
  .seto-main-nav::-webkit-scrollbar { display:none; }
  .seto-main-nav a { padding:0 8px; font-size:12px; white-space:nowrap; }
  .seto-profile-link { font-size:0; width:36px; padding:0; }
  .seto-profile-link::before { content:'👤'; font-size:15px; }
  .seto-theme-btn { font-size:0; width:36px; min-width:36px; padding:0; }
  .seto-theme-btn::before { content:attr(data-icon); font-size:15px; }
}
@media (max-width: 520px) {
  .seto-wordmark-text { display:none; }
  .seto-main-nav a { padding:0 7px; font-size:11px; }
  .seto-global-actions { gap:4px; }
  .seto-help-link,.seto-profile-link,.seto-theme-btn { width:32px; min-width:32px; min-height:34px; }
}


/* SETO 1.0.45 – gleiche Höhe und Form für globale Service-Buttons */
:root{--seto-control-h:38px}
.seto-global-actions{gap:6px;flex-wrap:nowrap}
.seto-service-link,.seto-theme-btn{height:var(--seto-control-h);min-height:var(--seto-control-h);border-radius:10px;padding:0 12px;box-shadow:none}
.seto-help-link{width:38px;min-width:38px;padding:0}
.seto-theme-btn{min-width:86px}
.seto-profile-link{min-width:64px}
@media(max-width:760px){
  .seto-help-link,.seto-profile-link,.seto-theme-btn{height:36px;min-height:36px;border-radius:9px}
  .seto-theme-btn,.seto-profile-link{min-width:36px}
}

/* SETO 1.0.52 – H-02 Mobile/Responsive */
@media(max-width:560px){
  .seto-global-inner{width:calc(100% - 10px);gap:5px}
  .seto-main-nav{min-width:0;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .seto-main-nav a{min-height:40px;display:flex;align-items:center}
  .seto-global-actions{flex:0 0 auto}
  .seto-help-link,.seto-profile-link,.seto-theme-btn{min-height:40px;height:40px}
}
@media(max-height:500px) and (orientation:landscape){
  :root{--seto-global-h:46px}
  .seto-global-header{min-height:46px}
  .seto-global-inner{min-height:46px}
  .seto-main-nav a{min-height:36px}
  .seto-help-link,.seto-profile-link,.seto-theme-btn{min-height:36px;height:36px}
}


/* SETO 1.0.53 – H-03 Barrierefreiheit */
.seto-skip-link{
  position:fixed;left:12px;top:8px;z-index:20000;
  padding:10px 14px;border-radius:10px;background:var(--seto-text);color:var(--seto-card);
  font-weight:800;text-decoration:none;transform:translateY(-160%);transition:transform .12s ease;
}
.seto-skip-link:focus{transform:translateY(0)}
.seto-sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
body.seto-ui :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:3px solid var(--seto-focus)!important;outline-offset:3px!important;
}
body.seto-ui :where(input,select,textarea)[aria-invalid="true"]{
  border-color:var(--seto-danger)!important;box-shadow:0 0 0 1px var(--seto-danger);
}
body.seto-ui summary{cursor:pointer}
body.seto-ui [aria-current="page"]{text-decoration-thickness:2px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
@media print{.seto-skip-link{display:none!important}}

/* SETO 1.0.58 – Feedback: feste Hellflächen der Abrechnung im Darkmode beseitigen */
:root[data-theme="dark"] body.seto-payroll-page .panel,
:root[data-theme="dark"] body.seto-payroll-page .status-line,
:root[data-theme="dark"] body.seto-payroll-page .period-strip,
:root[data-theme="dark"] body.seto-payroll-page .year-total-grid>div,
:root[data-theme="dark"] body.seto-payroll-page .review-bar,
:root[data-theme="dark"] body.seto-payroll-page .review-panel,
:root[data-theme="dark"] body.seto-payroll-page .readiness-box,
:root[data-theme="dark"] body.seto-payroll-page .profile-status-card,
:root[data-theme="dark"] body.seto-payroll-page .profile-tariff-card,
:root[data-theme="dark"] body.seto-payroll-page .soll-export-dialog{
  background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page .app-nav,
:root[data-theme="dark"] body.seto-payroll-page .user-chip,
:root[data-theme="dark"] body.seto-payroll-page .vdnpi-summary,
:root[data-theme="dark"] body.seto-payroll-page .profile-overview-facts span,
:root[data-theme="dark"] body.seto-payroll-page .vdn-local-badge,
:root[data-theme="dark"] body.seto-payroll-page .privacy-note{
  background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link{color:var(--muted)!important}
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link:hover,
:root[data-theme="dark"] body.seto-payroll-page .app-nav-link.active{background:var(--surface)!important;color:var(--accent-dark)!important}
:root[data-theme="dark"] body.seto-payroll-page input,
:root[data-theme="dark"] body.seto-payroll-page select,
:root[data-theme="dark"] body.seto-payroll-page textarea,
:root[data-theme="dark"] body.seto-payroll-page .wage-ref-input{
  background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page input[readonly],
:root[data-theme="dark"] body.seto-payroll-page select:disabled{background:var(--surface-2)!important;color:var(--muted)!important}
:root[data-theme="dark"] body.seto-payroll-page th,
:root[data-theme="dark"] body.seto-payroll-page td{border-color:var(--line)!important}
:root[data-theme="dark"] body.seto-payroll-page .firebase-state.used,
:root[data-theme="dark"] body.seto-payroll-page .vdnpi-state.ok{background:#183b27!important;color:#8ce5aa!important;border-color:#2e6d45!important}
:root[data-theme="dark"] body.seto-payroll-page .firebase-state.loaded,
:root[data-theme="dark"] body.seto-payroll-page .vdnpi-state.warn{background:#453819!important;color:#f2cf79!important;border-color:#705b29!important}
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.match{color:#8ce5aa!important}
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.difference{color:#ffaaa4!important}
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.calendar-only,
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.vdn-only,
:root[data-theme="dark"] body.seto-payroll-page .reconcile-status.not-verifiable{color:#f2cf79!important}


/* SETO 1.0.67 – Branding und zusammengefasste Kopfzeilen */
.seto-logo-wrap{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:11px;overflow:hidden;background:var(--seto-card)}
.seto-logo{width:100%;height:100%;object-fit:contain;display:block;transition:filter .18s ease}
:root[data-theme="dark"] .seto-logo{filter:drop-shadow(0 0 10px rgba(6,182,212,.35))}
:root[data-theme="light"] .seto-logo{filter:drop-shadow(0 2px 6px rgba(0,0,0,.12))}
.seto-wordmark{gap:7px}
.seto-wordmark-text{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:7px;line-height:1.05}
.seto-wordmark-text strong{font-size:15px;letter-spacing:.035em}
.seto-wordmark-text small{display:block!important;grid-column:1 / -1;margin-top:3px;font-size:9px;color:var(--seto-muted);letter-spacing:.015em;white-space:nowrap}
.seto-wordmark-text em{font-style:normal;font-size:9px;color:var(--seto-muted);font-weight:700}
.seto-top-action{height:var(--seto-control-h,38px);min-height:var(--seto-control-h,38px);display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--seto-border);border-radius:10px;background:var(--seto-card);color:var(--seto-text);font:inherit;font-size:12px;font-weight:780;cursor:pointer}
.seto-top-action:hover{border-color:var(--seto-primary);color:var(--seto-primary);background:var(--seto-card-2)}
.seto-print-link{height:var(--seto-control-h,38px);min-height:var(--seto-control-h,38px)}

/* Kalender: lokale Zeile ist vollständig in die SETO-Topbar integriert. */
body.seto-ui.seto-calendar-page{padding-top:var(--seto-global-h)!important}
body.seto-calendar-page .calendar-app-header{display:none!important}

/* Abrechnung: lokale Zeile entfällt, die fachliche Unter-Navigation bleibt in der Topbar erhalten. */
body.seto-payroll-page .app-header{display:none!important}
.seto-module-nav{display:flex;align-items:center;gap:2px;height:40px;padding-left:8px;margin-left:2px;border-left:1px solid var(--seto-border)}
.seto-module-nav .app-nav-link{height:34px;display:flex;align-items:center;padding:0 9px!important;border:0!important;border-radius:9px!important;color:var(--seto-muted)!important;font-size:11px!important;font-weight:750!important;white-space:nowrap;text-decoration:none}
.seto-module-nav .app-nav-link:hover{background:var(--seto-card-2)!important;color:var(--seto-text)!important}
.seto-module-nav .app-nav-link.active{background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card))!important;color:var(--seto-primary)!important}
@media(max-width:1180px){.seto-module-nav{max-width:390px;overflow-x:auto;scrollbar-width:none}.seto-module-nav::-webkit-scrollbar{display:none}}
@media(max-width:900px){.seto-module-nav{display:none}}
@media(max-width:620px){
  .seto-wordmark-text{display:none}
  .seto-logo-wrap{width:40px;height:40px;flex-basis:40px}
  .seto-print-link,.seto-print-action,.seto-logout-action{font-size:0;width:38px;padding:0}
  .seto-print-link::before,.seto-print-action::before{content:'▤';font-size:16px}
  .seto-logout-action::before,.seto-start-logout::before{content:'↪';font-size:16px}
}


/* SETO 1.0.73 – Navigation: genau eine globale und eine modulbezogene Ebene */
:root{--seto-module-h:48px}

/* Kalender: alte lokale Kopfzeilen nicht mehr als zweite fixe Kopfzeile verwenden. */
body.seto-calendar-nav-page .app-header{display:none!important}
body.seto-calendar-page .seto-print-link{display:none!important}

/* Desktop/Tablet: vorhandene Kalender-Navigation als zweite Zeile direkt unter SETO. */
@media(min-width:761px){
  body.seto-ui.seto-calendar-page.seto-calendar-nav-page{
    padding-top:calc(var(--seto-global-h) + var(--seto-module-h))!important;
    padding-bottom:18px!important;
  }
  body.seto-calendar-nav-page .bottom-nav{
    top:var(--seto-global-h);bottom:auto;height:var(--seto-module-h);
    justify-content:center;gap:4px;padding:5px max(14px,calc((100vw - 1280px)/2));
    border-top:0;border-bottom:1px solid var(--seto-border);z-index:9000;
    background:color-mix(in srgb,var(--seto-card) 97%,transparent);
  }
  body.seto-calendar-nav-page .bn-item{
    flex:0 0 auto;min-width:132px;height:38px;flex-direction:row;gap:7px;
    padding:0 13px;border-radius:9px;font-size:12px;font-weight:760;
  }
  body.seto-calendar-nav-page .bn-item.active{
    background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));
    color:var(--seto-primary);
  }
  body.seto-calendar-nav-page .bn-item.active::before{display:none}
  body.seto-calendar-nav-page .bn-ico{font-size:16px}
  body.seto-calendar-nav-page #editor{bottom:0;border-radius:16px 16px 0 0}
  body.seto-calendar-nav-page:has(#editor:not(.hidden)) .cal-wrap{padding-bottom:145px}
}

/* Smartphone: Kalender-Navigation bleibt als gut erreichbare Bottom-Bar. */
@media(max-width:760px){
  body.seto-calendar-nav-page{
    padding-top:var(--seto-global-h)!important;
    padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom,0px))!important;
  }
  body.seto-calendar-nav-page .bottom-nav{
    top:auto;bottom:0;height:var(--nav-h);border-top:1px solid var(--border);border-bottom:0;
  }
  body.seto-calendar-nav-page #editor{bottom:var(--nav-h);border-radius:16px 16px 0 0}
  body.seto-calendar-nav-page:has(#editor:not(.hidden)) .cal-wrap{padding-bottom:155px}
}

/* Kalender-Hilfsseiten ohne Hauptnavigation (z. B. Export): Kopf wird normaler Seitenkopf statt Overlay. */
body.seto-calendar-utility-page{padding-top:var(--seto-global-h)!important;padding-bottom:24px!important}
body.seto-calendar-utility-page .app-header{
  position:static!important;top:auto!important;left:auto!important;right:auto!important;
  width:min(1200px,calc(100% - 28px));height:auto;min-height:54px;margin:12px auto 0;
  border:1px solid var(--seto-border);border-radius:14px;background:var(--seto-card);
  box-shadow:var(--seto-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;z-index:auto;
}

/* Abrechnung: Unterbereiche nicht mehr in der globalen Zeile quetschen. */
body.seto-payroll-page{padding-top:calc(var(--seto-global-h) + var(--seto-module-h))!important}
body.seto-payroll-page .seto-module-nav{
  display:flex!important;position:fixed;top:var(--seto-global-h);left:0;right:0;z-index:9000;
  width:100%;max-width:none!important;height:var(--seto-module-h);margin:0;padding:5px max(14px,calc((100vw - 1280px)/2));
  gap:4px;border-left:0;border-bottom:1px solid var(--seto-border);
  background:color-mix(in srgb,var(--seto-card) 97%,transparent);overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
body.seto-payroll-page .seto-module-nav::-webkit-scrollbar{display:none}
body.seto-payroll-page .seto-module-nav .app-nav-link{
  flex:0 0 auto;height:38px;min-height:38px;padding:0 13px!important;font-size:12px!important;
}
@media(max-width:760px){
  body.seto-payroll-page .seto-module-nav{padding-left:8px;padding-right:8px}
  body.seto-payroll-page .seto-module-nav .app-nav-link{min-height:38px;height:38px;padding:0 11px!important}
}

/* Profil: alte zweite Hauptnavigation entfernen; Profil-Tabs bleiben die einzige Modulebene. */
body.seto-profil-page > .topbar{display:none!important}
body.seto-profil-page .shell{padding-top:24px}

/* Hilfe mobil: Suche scrollt mit dem Inhalt weg; nur die Kategorien bleiben unter SETO sticky. */
@media(max-width:900px){
  body.seto-hilfe-page .docs-toolbar{position:relative!important;top:auto!important;z-index:auto!important}
  body.seto-hilfe-page .sidebar{top:var(--seto-global-h)!important;z-index:25!important}
}

/* Globale Leiste auf kleinen Displays: Aktionen kompakt halten. */
@media(max-width:560px){
  .seto-global-inner{gap:4px}
  .seto-main-nav a{padding-inline:7px}
  .seto-global-actions{gap:3px}
  .seto-top-action{width:34px;min-width:34px;padding:0;font-size:0}
  .seto-logout-action::before,.seto-start-logout::before{content:'↪';font-size:16px}
  .seto-print-action::before{content:'▤';font-size:16px}
}


/* SETO 1.1.00 – Mobile Topbar: Systemaktionen sichtbar, Module im kompakten Bereichsmenü */
.seto-mobile-modules{display:none;position:relative}
.seto-mobile-modules-btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--seto-border);border-radius:10px;background:var(--seto-card);color:var(--seto-text);font:inherit;font-size:17px;font-weight:850;cursor:pointer}
.seto-mobile-modules-menu{display:none}
@media(max-width:760px){
  .seto-global-inner{width:calc(100% - 12px);gap:5px}
  .seto-wordmark{flex:0 0 auto}
  .seto-logo-wrap{width:38px;height:38px;flex-basis:38px;border-radius:9px}
  .seto-wordmark-text{display:none!important}
  .seto-main-nav{display:none!important}
  .seto-mobile-modules{display:block;flex:0 0 auto}
  .seto-mobile-modules[hidden]{display:none!important}
  .seto-mobile-modules-menu{
    position:fixed;top:calc(var(--seto-global-h) + 7px);left:8px;right:8px;z-index:12000;
    grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px;
    border:1px solid var(--seto-border);border-radius:15px;background:var(--seto-card);box-shadow:0 16px 38px rgba(15,17,23,.2)
  }
  .seto-mobile-modules.open .seto-mobile-modules-menu{display:grid}
  .seto-mobile-modules-menu a{min-width:0;min-height:54px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:6px;border-radius:10px;color:var(--seto-muted);text-decoration:none;font-size:10px}
  .seto-mobile-modules-menu a span{font-size:17px;line-height:1}
  .seto-mobile-modules-menu a b{font-size:10px;white-space:nowrap}
  .seto-mobile-modules-menu a.active{background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));color:var(--seto-primary)}
  .seto-mobile-modules-btn[aria-expanded="true"]{border-color:var(--seto-primary);color:var(--seto-primary);background:var(--seto-card-2)}
  .seto-global-actions{margin-left:auto;gap:4px;flex:0 0 auto}
  .seto-help-link,.seto-profile-link,.seto-theme-btn,.seto-top-action{width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:9px}
  .seto-help-link{font-size:15px}
  .seto-profile-link{font-size:0!important}
  .seto-profile-link::before{content:'●';font-size:15px}
  .seto-theme-btn{font-size:0!important}
  .seto-theme-btn::before{content:attr(data-icon);font-size:15px}
  .seto-logout-action,.seto-start-logout{font-size:0!important}
  .seto-logout-action::before,.seto-start-logout::before{content:'↪';font-size:17px}
}
@media(max-width:360px){
  .seto-global-inner{gap:3px}
  .seto-help-link,.seto-profile-link,.seto-theme-btn,.seto-top-action,.seto-mobile-modules-btn{width:34px!important;min-width:34px!important}
}


/* SETO 1.1.00 – Mobile Direktnavigation: Start, Kalender, Abrechnung immer sichtbar. */
.seto-mobile-primary-nav{display:none}
.seto-mobile-primary-nav[hidden],.seto-mobile-modules[hidden]{display:none!important}
@media(max-width:760px){
  .seto-global-inner{width:calc(100% - 10px);gap:4px}
  .seto-wordmark{flex:0 0 auto}
  .seto-logo-wrap{width:36px!important;height:36px!important;flex-basis:36px!important;border-radius:9px}
  .seto-mobile-primary-nav{display:flex;align-items:center;gap:3px;flex:0 0 auto}
  .seto-mobile-primary-nav a{
    width:36px;min-width:36px;height:38px;min-height:38px;display:grid;place-items:center;
    border:1px solid var(--seto-border);border-radius:9px;background:var(--seto-card);color:var(--seto-muted);
    text-decoration:none;font-weight:900;font-size:17px;line-height:1
  }
  .seto-mobile-primary-nav a.active{border-color:color-mix(in srgb,var(--seto-primary) 48%,var(--seto-border));background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));color:var(--seto-primary)}
  .seto-mobile-modules{display:block!important;flex:0 0 auto}
  .seto-mobile-modules-btn{width:36px!important;min-width:36px!important;height:38px!important;font-size:21px!important;line-height:1;padding-bottom:5px}
  .seto-mobile-modules-menu{grid-template-columns:repeat(3,minmax(0,1fr))}

  /* Auf Unterseiten zählt Platz für die Navigation. Hilfe/Theme/Logout bleiben auf der Startseite. */
  body:not(.seto-start-page) .seto-global-actions{display:none!important}
  body.seto-start-page .seto-global-actions{display:flex!important;margin-left:auto;gap:3px}
  body.seto-start-page .seto-profile-link{display:none!important}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn,
  body.seto-start-page .seto-start-logout{width:34px!important;min-width:34px!important;height:38px!important;min-height:38px!important}
}
@media(max-width:390px){
  .seto-global-inner{gap:2px}
  .seto-logo-wrap{width:34px!important;height:34px!important;flex-basis:34px!important}
  .seto-mobile-primary-nav{gap:2px}
  .seto-mobile-primary-nav a,.seto-mobile-modules-btn{width:34px!important;min-width:34px!important}
  body.seto-start-page .seto-global-actions{gap:2px}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn,
  body.seto-start-page .seto-start-logout{width:32px!important;min-width:32px!important}
}

/* SETO 1.1.00 – Mobile Header: zwei ruhige Ebenen statt gequetschter Ein-Zeilen-Navigation. */
@media(max-width:760px){
  :root{--seto-global-h:96px}
  .seto-global-header{height:var(--seto-global-h);min-height:var(--seto-global-h)}
  .seto-global-inner{
    width:calc(100% - 20px);height:100%;min-height:0;padding:5px 0 6px;
    display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:40px 40px;
    align-items:center;column-gap:8px;row-gap:5px;
  }
  .seto-wordmark{grid-column:1;grid-row:1;min-width:0;gap:7px}
  .seto-logo-wrap{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px}
  .seto-wordmark-text{display:none!important}
  .seto-wordmark::after{content:'Start';font-size:11px;font-weight:850;color:var(--seto-text);letter-spacing:.01em}

  .seto-mobile-primary-nav{
    grid-column:1 / 3;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;width:100%;min-width:0;
  }
  .seto-mobile-primary-nav a{
    width:auto!important;min-width:0!important;height:40px;min-height:40px;padding:0 10px;
    display:flex;align-items:center;justify-content:center;gap:7px;
    border:1px solid var(--seto-border);border-radius:11px;background:var(--seto-card);color:var(--seto-muted);
    text-decoration:none;font-weight:800;font-size:11px;line-height:1;
  }
  .seto-mobile-primary-nav a b{font-size:11px;font-weight:820;white-space:nowrap}
  .seto-mobile-nav-icon{width:20px;height:20px;display:grid;place-items:center;font-size:16px;font-weight:900;line-height:1}
  .seto-mobile-nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .seto-mobile-primary-nav a.active{border-color:color-mix(in srgb,var(--seto-primary) 48%,var(--seto-border));background:color-mix(in srgb,var(--seto-primary) 11%,var(--seto-card));color:var(--seto-primary)}

  .seto-mobile-modules{grid-column:3;grid-row:2;display:block!important;align-self:stretch}
  .seto-mobile-modules-btn{
    width:72px!important;min-width:72px!important;height:40px!important;min-height:40px!important;padding:0 7px!important;
    display:flex!important;align-items:center;justify-content:center;gap:5px;border-radius:11px!important;font-size:12px!important;line-height:1!important;
  }
  .seto-mobile-modules-btn span{font-size:13px;letter-spacing:-1px;transform:translateY(-1px)}
  .seto-mobile-modules-btn b{font-size:10.5px;font-weight:820}
  .seto-mobile-modules-menu{top:calc(var(--seto-global-h) + 7px);left:10px;right:10px}

  body:not(.seto-start-page) .seto-global-actions{display:none!important}
  body.seto-start-page .seto-global-actions{
    grid-column:3;grid-row:1;display:flex!important;margin:0;justify-self:end;gap:6px;align-items:center;
  }
  body.seto-start-page .seto-profile-link{display:none!important}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn{width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;border-radius:9px}
  body.seto-start-page .seto-start-logout{
    width:auto!important;min-width:86px!important;height:36px!important;min-height:36px!important;padding:0 10px!important;
    display:inline-flex!important;gap:6px;font-size:10.5px!important;white-space:nowrap;border-radius:9px!important;
  }
  body.seto-start-page .seto-start-logout::before{content:'⎋';font-size:15px;line-height:1}
  .seto-logout-action::before{content:'⎋';font-size:16px}
}
@media(max-width:370px){
  .seto-global-inner{width:calc(100% - 14px);column-gap:5px}
  .seto-mobile-primary-nav{gap:5px}
  .seto-mobile-primary-nav a{padding:0 7px;gap:5px}
  .seto-mobile-modules-btn{width:62px!important;min-width:62px!important}
  body.seto-start-page .seto-global-actions{gap:4px}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-theme-btn{width:32px!important;min-width:32px!important}
  body.seto-start-page .seto-start-logout{min-width:78px!important;padding:0 7px!important;font-size:10px!important}
}
@media(max-height:500px) and (orientation:landscape) and (max-width:760px){
  :root{--seto-global-h:86px}
  .seto-global-inner{grid-template-rows:35px 36px;padding-top:4px;padding-bottom:5px}
  .seto-mobile-primary-nav a,.seto-mobile-modules-btn{height:36px!important;min-height:36px!important}
}

/* SETO 1.1.00 – Mobile Navigation einzeilig: Logo=Start, Kalender, Abrechnung, Theme, Mehr. */
@media(max-width:760px){
  :root{--seto-global-h:58px}
  .seto-global-header{height:var(--seto-global-h);min-height:var(--seto-global-h)}
  .seto-global-inner{
    width:calc(100% - 16px);height:100%;padding:6px 0;display:flex;align-items:center;gap:5px;
  }
  .seto-wordmark{display:flex;flex:0 0 38px;width:38px;min-width:38px;gap:0}
  .seto-logo-wrap{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:10px}
  .seto-wordmark-text,.seto-wordmark::after{display:none!important;content:none!important}

  .seto-mobile-primary-nav{
    display:grid!important;grid-template-columns:minmax(68px,1fr) minmax(82px,1.12fr);gap:5px;
    flex:1 1 auto;width:auto;min-width:0;
  }
  .seto-mobile-primary-nav[hidden]{display:none!important}
  .seto-mobile-primary-nav a{
    width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 7px!important;
    display:flex!important;align-items:center;justify-content:center;gap:5px;border-radius:10px!important;
  }
  .seto-mobile-primary-nav a b{font-size:10.5px!important;white-space:nowrap}
  .seto-mobile-nav-icon{width:18px;height:18px;font-size:15px}
  .seto-mobile-nav-icon svg{width:18px;height:18px}

  .seto-global-actions{display:flex!important;flex:0 0 40px;margin:0!important;gap:0!important}
  .seto-global-actions>*{display:none!important}
  .seto-global-actions .seto-theme-btn{display:grid!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;border-radius:10px!important}

  .seto-mobile-modules{display:block!important;flex:0 0 40px;align-self:auto!important}
  .seto-mobile-modules[hidden]{display:none!important}
  .seto-mobile-modules-btn{
    width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;
    display:grid!important;place-items:center!important;border-radius:10px!important;line-height:1!important;
  }
  .seto-mobile-modules-btn span{font-size:17px!important;letter-spacing:-1px!important;transform:none!important}
  .seto-mobile-modules-btn b{display:none!important}
  .seto-mobile-modules-menu{
    top:calc(var(--seto-global-h) + 6px)!important;left:8px!important;right:8px!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .seto-mobile-modules-menu a,.seto-mobile-modules-menu button{
    min-width:0;min-height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;
    padding:7px 5px;border:0;border-radius:10px;background:transparent;color:var(--seto-muted);text-decoration:none;
    font:inherit;font-size:10px;cursor:pointer;
  }
  .seto-mobile-modules-menu a span,.seto-mobile-modules-menu button span{font-size:18px;line-height:1}
  .seto-mobile-modules-menu a b,.seto-mobile-modules-menu button b{font-size:10px;white-space:nowrap}
  .seto-mobile-menu-logout{color:var(--seto-danger,#b42318)!important}

  body.seto-start-page .seto-global-actions{display:flex!important;margin:0!important;gap:0!important}
  body.seto-start-page .seto-help-link,
  body.seto-start-page .seto-profile-link,
  body.seto-start-page .seto-start-logout{display:none!important}
}
@media(max-width:350px){
  .seto-global-inner{width:calc(100% - 10px);gap:3px}
  .seto-wordmark{flex-basis:34px;width:34px;min-width:34px}
  .seto-logo-wrap{width:34px!important;height:34px!important;flex-basis:34px!important}
  .seto-mobile-primary-nav{grid-template-columns:minmax(62px,1fr) minmax(75px,1.08fr);gap:3px}
  .seto-mobile-primary-nav a{padding:0 4px!important;gap:3px}
  .seto-mobile-primary-nav a b{font-size:9.5px!important}
  .seto-global-actions{flex-basis:36px}
  .seto-global-actions .seto-theme-btn,.seto-mobile-modules,.seto-mobile-modules-btn{width:36px!important;min-width:36px!important}
}


/* SETO 1.1.54 – iOS Safe Area: globale Kopfzeile bleibt unter Notch/Dynamic Island bedienbar. */
:root{
  --seto-safe-top:env(safe-area-inset-top,0px);
  --seto-safe-left:env(safe-area-inset-left,0px);
  --seto-safe-right:env(safe-area-inset-right,0px);
  --seto-global-bar-h:58px;
  --seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top));
}
.seto-global-header{
  height:var(--seto-global-h)!important;
  min-height:var(--seto-global-h)!important;
  padding-top:var(--seto-safe-top);
  padding-left:var(--seto-safe-left);
  padding-right:var(--seto-safe-right);
  box-sizing:border-box;
}
.seto-global-inner{
  height:var(--seto-global-bar-h)!important;
  min-height:var(--seto-global-bar-h);
}
body.seto-ui{padding-top:var(--seto-global-h)!important}
body.seto-ui.seto-calendar-page{padding-top:var(--seto-global-h)!important}
.seto-mobile-modules-menu{top:calc(var(--seto-global-h) + 6px)!important}
@media(max-width:760px){
  :root{--seto-global-bar-h:58px;--seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top))}
  .seto-global-header{height:var(--seto-global-h)!important;min-height:var(--seto-global-h)!important}
  .seto-global-inner{height:var(--seto-global-bar-h)!important;min-height:var(--seto-global-bar-h)!important}
}
@media(max-height:500px) and (orientation:landscape) and (max-width:760px){
  :root{--seto-global-bar-h:58px;--seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top))}
}
@media print{
  :root{--seto-safe-top:0px;--seto-safe-left:0px;--seto-safe-right:0px}
  .seto-global-header{padding:0!important}
}


/* SETO 1.1.91 – Abrechnungsblatt im Dark Mode: ruhige Grauabstufung statt Weiß/Schwarz */
:root[data-theme="dark"] body.seto-payroll-page .vdn-sheet{background:#D1D4D8!important;color:#20242A!important;border-color:#777E87!important;box-shadow:0 12px 34px rgba(0,0,0,.34)!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-head{border-bottom-color:#666D75!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-company p,:root[data-theme="dark"] body.seto-payroll-page .vdn-kicker,:root[data-theme="dark"] body.seto-payroll-page .vdn-label,:root[data-theme="dark"] body.seto-payroll-page .vdn-period-box span,:root[data-theme="dark"] body.seto-payroll-page .vdn-block-title small,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block dt,:root[data-theme="dark"] body.seto-payroll-page .deduction-grid span,:root[data-theme="dark"] body.seto-payroll-page .vdn-net span,:root[data-theme="dark"] body.seto-payroll-page .vdn-footer{color:#2F3740!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-period-box,:root[data-theme="dark"] body.seto-payroll-page .vdn-person,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block,:root[data-theme="dark"] body.seto-payroll-page .deduction-grid{border-color:#858B92!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-person>div,:root[data-theme="dark"] body.seto-payroll-page .vdn-net>div{border-color:#9BA0A6!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-block-title{background:#BFC3C8!important;border-bottom-color:#737980!important;color:#22272D!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-table th{color:#303842!important;border-bottom-color:#868C93!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-table td,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block dt,:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block dd{border-color:#B0B4B9!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-table tfoot td{border-top-color:#666D75!important}
:root[data-theme="dark"] body.seto-payroll-page .deduction-grid>div{background:#C8CCD0!important;border-color:#A5AAB0!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-mini-block{background:#C8CCD0!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-net{background:#C4C8CC!important;border-color:#6F767E!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-net .payout{background:#B7BEC8!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-net .payout strong{color:#253F67!important}
:root[data-theme="dark"] body.seto-payroll-page .vdn-empty{color:#37414C!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-card,:root[data-theme="dark"] body.seto-payroll-page .workbench-card{background:#2A303B!important;color:#F0F2F6!important;border-color:#424A58!important;box-shadow:0 6px 18px rgba(0,0,0,.18)!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-card:hover,:root[data-theme="dark"] body.seto-payroll-page .workbench-card:hover{background:#303744!important;border-color:#666F80!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-card small,:root[data-theme="dark"] body.seto-payroll-page .workbench-card small,:root[data-theme="dark"] body.seto-payroll-page .workbench-card>b{color:#AEB6C5!important}
:root[data-theme="dark"] body.seto-payroll-page .shortcut-icon,:root[data-theme="dark"] body.seto-payroll-page .workbench-icon{background:#3A3449!important;color:#D7C8FF!important}

/* SETO 1.1.92 – seitenweiter Dark-Mode-Audit: feste Hellflächen harmonisieren */
:root[data-theme="dark"] body.seto-start-page :is(.hero-copy,.profile-card,.setup-card,.app-card,.quick-card,.dashboard-card,.home-card),
:root[data-theme="dark"] body.seto-profil-page :is(.card,.panel,.profile-card,.section-card,.summary-card),
:root[data-theme="dark"] body.seto-import-page :is(.file-feedback,.vacation-live,.parser-help-preview,.group-preview,.export-source-card,.export-result-card),
:root[data-theme="dark"] body.seto-hilfe-page :is(.section,.help-card,.topic-card),
:root[data-theme="dark"] body.seto-analyse-page :is(.advanced-panel,.result-card,.year-box,.assumption-columns>article,.cost-grid article) {
  background:var(--seto-card)!important;
  color:var(--seto-text)!important;
  border-color:var(--seto-border)!important;
  box-shadow:none!important;
}

:root[data-theme="dark"] body.seto-start-page :is(.dashboard-subcard,.metric-card,.info-card,.stat-card),
:root[data-theme="dark"] body.seto-profil-page :is(.soft,.summary,.profile-meta,.profile-fact),
:root[data-theme="dark"] body.seto-import-page :is(.group-preview-title,.file-feedback-head,.checkline,.aliases span,.summary-badges span,.export-selected-files,.export-sheet-info span),
:root[data-theme="dark"] body.seto-analyse-page :is(.compare-form .head,.compare-form .label,.compare-form>div:nth-child(3n+1),.warning-box) {
  background:var(--seto-card-2)!important;
  color:var(--seto-text)!important;
  border-color:var(--seto-border)!important;
}

:root[data-theme="dark"] body.seto-import-page :is(.form-grid input,.form-grid select,textarea,.secondary,.export-password input,.export-consent-check),
:root[data-theme="dark"] body.seto-profil-page :is(input,select,textarea),
:root[data-theme="dark"] body.seto-analyse-page :is(input,select,textarea,.month-toolbar select) {
  background:var(--seto-card)!important;
  color:var(--seto-text)!important;
  border-color:var(--seto-border)!important;
}
:root[data-theme="dark"] body.seto-import-page :is(.form-grid input[readonly],input:disabled,select:disabled),
:root[data-theme="dark"] body.seto-profil-page :is(input[readonly],input:disabled,select:disabled),
:root[data-theme="dark"] body.seto-analyse-page :is(input[disabled],select:disabled) {
  background:var(--seto-card-2)!important;
  color:var(--seto-muted)!important;
}

:root[data-theme="dark"] body.seto-import-page :is(th,.table th,.group-preview-title),
:root[data-theme="dark"] body.seto-analyse-page :is(th,.table-wrap th:first-child) {
  background:#242B38!important;
  color:#C7CFDA!important;
  border-color:var(--seto-border)!important;
}
:root[data-theme="dark"] body.seto-import-page :is(td,.table td),
:root[data-theme="dark"] body.seto-analyse-page :is(td,.table-wrap td:first-child) {
  border-color:var(--seto-border)!important;
}

/* Statusflächen bleiben semantisch farbig, aber ohne helle Papieroptik. */
:root[data-theme="dark"] body.seto-import-page :is(.parser-warn,.notice.warning,.file-feedback-row.warning .file-feedback-icon,tr.protected td) {
  background:#3F351C!important;color:#F5D780!important;border-color:#6E5B2A!important;
}
:root[data-theme="dark"] body.seto-import-page :is(.parser-bad,.notice.error,.file-feedback-row.error .file-feedback-icon,tr.error td),
:root[data-theme="dark"] body.seto-start-page :is(.error,.btn-danger) {
  background:#452426!important;color:#FFB4AF!important;border-color:#704044!important;
}
:root[data-theme="dark"] body.seto-import-page tr.entry td {
  background:#18382B!important;color:#B6E8CC!important;
}

/* Abrechnung: zusätzliche Spezial- und Auditflächen aus alten Hellstyles. */
:root[data-theme="dark"] body.seto-payroll-page :is(.calendar-basis-grid>div,.calendar-trace,.vdnpi-unknown,.audit-summary-card,.audit-card,.detail-card,.calculation-card,.st-card,.rr-card) {
  background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page :is(.profile-overview-facts span,.vdn-local-badge,.vdnpi-summary,.reconcile-summary>div,.calendar-basis-grid>div,.app-nav,.user-chip,.privacy-note) {
  background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--line)!important;
}
:root[data-theme="dark"] body.seto-payroll-page .audit-summary-card.audit-warn {
  background:#452426!important;color:#FFB4AF!important;border-color:#704044!important;
}

/* Kalender: nur neutrale Bedien-/Infoflächen abdunkeln; fachliche Schicht-, U-, FS- und Feiertagsfarben bleiben unverändert. */
:root[data-theme="dark"] body.seto-calendar-page :is(.card,.panel,.sheet,.modal-content,.dialog-content,.info-box,.settings-card,.legend-panel,.toolbar-panel) {
  background:var(--seto-card)!important;color:var(--seto-text)!important;border-color:var(--seto-border)!important;
}
:root[data-theme="dark"] body.seto-calendar-page :is(input,select,textarea,.formula) {
  background:var(--seto-card-2)!important;color:var(--seto-text)!important;border-color:var(--seto-border)!important;
}

/* Sekundärtext auf allen nachgerüsteten grauen Flächen. */
:root[data-theme="dark"] body.seto-ui :is(.sub,.small,.muted,.hint,.helper-text,.card-note,.field-help) {
  color:var(--seto-muted)!important;
}

/* Druck- und Export-Papieransichten bleiben absichtlich hell. */
@media print {
  :root[data-theme="dark"] body.seto-ui { color-scheme:light!important; }
}

/* SETO 1.1.118 – appweites iOS/Glass Designsystem */
:root{
  --seto-bg:#eef3f8;
  --seto-card:rgba(255,255,255,.72);
  --seto-card-2:rgba(255,255,255,.52);
  --seto-text:#17283d;
  --seto-muted:#4f5f73;
  --seto-border:rgba(255,255,255,.78);
  --seto-primary:#2f75b5;
  --seto-primary-hover:#245f96;
  --seto-link:#286aa6;
  --seto-focus:#5c9bd3;
  --seto-radius:24px;
  --seto-control-radius:14px;
  --seto-shadow:0 18px 50px rgba(23,54,93,.085);
  --seto-shadow-soft:0 8px 26px rgba(23,54,93,.065);
  --seto-glass:rgba(255,255,255,.70);
  --seto-glass-strong:rgba(255,255,255,.84);
  --seto-blue-deep:#17365d;
  --seto-global-h:60px;
}
:root[data-theme="dark"]{
  --seto-bg:#0f1722;
  --seto-card:rgba(24,34,48,.78);
  --seto-card-2:rgba(31,43,59,.68);
  --seto-text:#f3f6fa;
  --seto-muted:#9ba8b9;
  --seto-border:rgba(148,163,184,.18);
  --seto-primary:#5b9bd5;
  --seto-primary-hover:#72afe3;
  --seto-link:#82bae8;
  --seto-focus:#8fc3ee;
  --seto-shadow:0 18px 54px rgba(0,0,0,.25);
  --seto-shadow-soft:0 8px 28px rgba(0,0,0,.18);
  --seto-glass:rgba(24,34,48,.72);
  --seto-glass-strong:rgba(27,39,54,.88);
  --seto-blue-deep:#a9d1f1;
}
body.seto-ui:not(.seto-start-page):not(.seto-login-page){
  background:
    radial-gradient(900px 440px at -8% -12%,rgba(47,117,181,.14),transparent 62%),
    radial-gradient(760px 420px at 108% 3%,rgba(91,155,213,.10),transparent 60%),
    linear-gradient(180deg,#f8fafc 0%,var(--seto-bg) 100%) !important;
  color:var(--seto-text);
  min-height:100svh;
}
:root[data-theme="dark"] body.seto-ui:not(.seto-start-page):not(.seto-login-page){
  background:
    radial-gradient(900px 440px at -8% -12%,rgba(47,117,181,.13),transparent 62%),
    radial-gradient(760px 420px at 108% 3%,rgba(91,155,213,.07),transparent 60%),
    var(--seto-bg) !important;
}

/* Global navigation: iOS floating glass bar */
.seto-global-header{
  top:8px;left:10px;right:10px;width:auto;height:52px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 34px rgba(23,54,93,.09);
  backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
}
:root[data-theme="dark"] .seto-global-header{background:rgba(18,28,41,.76);border-color:rgba(148,163,184,.18)}
.seto-global-inner{width:min(1360px,calc(100% - 16px));gap:12px}
.seto-logo-wrap,.seto-mark{border-radius:12px}
.seto-main-nav{height:auto;align-items:center;gap:3px}
.seto-main-nav a{
  height:34px;padding:0 12px;border:0!important;border-radius:11px!important;
  font-size:12px;font-weight:760;color:var(--seto-muted);
}
.seto-main-nav a:hover{background:rgba(47,117,181,.08);color:var(--seto-blue-deep)}
.seto-main-nav a.active{background:rgba(47,117,181,.12);color:var(--seto-primary)}
.seto-service-link,.seto-theme-btn{
  min-height:34px;border-color:rgba(255,255,255,.78);border-radius:12px;
  background:rgba(255,255,255,.60);box-shadow:inset 0 1px 0 rgba(255,255,255,.58)
}
:root[data-theme="dark"] .seto-service-link,:root[data-theme="dark"] .seto-theme-btn{background:rgba(31,43,59,.7);border-color:rgba(148,163,184,.18)}
body.seto-ui{padding-top:70px!important}
body.seto-ui.seto-calendar-page{padding-top:calc(70px + var(--header-h,56px))!important}
body.seto-ui .app-header,body.seto-ui .topbar:not(.seto-global-header){top:70px!important}

/* Shared page width and rhythm */
body.seto-ui:not(.seto-start-page) :is(.shell,.container,.app-page,.cal-wrap,.admin-shell,.analysis-content,.import-content){
  width:min(1180px,calc(100% - 28px));
  margin-left:auto;margin-right:auto;
}
body.seto-ui :is(h1,h2,h3,.title){letter-spacing:-.025em}
body.seto-ui :is(.muted,.subtle,.hint,.sub,.source,.field-source,small){color:var(--seto-muted)}

/* Glass surfaces across modules */
body.seto-ui:not(.seto-start-page) :is(
  .panel,.card,.summary-card,.profile-card,.backup-card,.security-card,.info-box,
  .admin-panel,.admin-hero,.shortcut-card,.status-line,.period-strip,.setup-notice,
  .vdn-sheet,.vdn-mini-block,.detail-card,.chart-box,.kpi,.salary-card,.mini,
  .setup-work-card,.setup-choice,.notice,.import-hero,.layout-card,.menu-link
){
  border:1px solid var(--seto-border)!important;
  border-radius:var(--seto-radius)!important;
  background:var(--seto-glass)!important;
  box-shadow:var(--seto-shadow-soft)!important;
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
}
body.seto-ui:not(.seto-start-page) :is(.panel,.card,.admin-panel,.shortcut-card,.kpi,.setup-work-card,.layout-card){overflow:hidden}

/* Module headers */
body.seto-ui .app-header:not(.seto-global-header),
body.seto-ui .topbar:not(.seto-global-header){
  border-bottom:0!important;background:transparent!important;box-shadow:none!important;
}
body.seto-ui .app-header-inner,
body.seto-ui .topbar:not(.seto-global-header) > :is(.inner,.wrap,.container){
  border:1px solid var(--seto-border);border-radius:18px;background:var(--seto-glass);
  box-shadow:var(--seto-shadow-soft);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)
}

/* Inputs and buttons */
body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  min-height:42px;border:1px solid rgba(23,54,93,.13)!important;border-radius:13px!important;
  background:rgba(255,255,255,.70)!important;color:var(--seto-text)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65)!important;outline:none;
}
:root[data-theme="dark"] body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:rgba(19,29,42,.74)!important;border-color:rgba(148,163,184,.2)!important}
body.seto-ui :is(input,select,textarea):focus{border-color:rgba(47,117,181,.55)!important;box-shadow:0 0 0 4px rgba(47,117,181,.10)!important}
body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button,.text-button,.linkbtn,.admin-btn){
  border-radius:13px!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
body.seto-ui :is(button,.btn,.button,.primary-button,.secondary-button,.text-button,.linkbtn,.admin-btn):active{transform:scale(.98)}
body.seto-ui :is(.primary,.primary-button,.btn.primary,.button.primary,.admin-btn.primary){
  background:var(--seto-primary)!important;border-color:var(--seto-primary)!important;color:#fff!important;
  box-shadow:0 8px 20px rgba(47,117,181,.18)!important;
}
body.seto-ui :is(.secondary,.secondary-button,.ghost,.btn.secondary,.button.secondary,.text-button,.linkbtn){
  background:rgba(255,255,255,.58)!important;border-color:var(--seto-border)!important;color:var(--seto-blue-deep)!important;
}
:root[data-theme="dark"] body.seto-ui :is(.secondary,.secondary-button,.ghost,.btn.secondary,.button.secondary,.text-button,.linkbtn){background:rgba(31,43,59,.68)!important;color:var(--seto-text)!important}

/* Pills, tabs, badges */
body.seto-ui :is(.tab,.pill,.badge,.source-badge,.count-badge,.user-chip){border-radius:999px!important}
body.seto-ui :is(.tab.active,.pill.active,.app-nav-link.active,.bn-item.active){color:var(--seto-primary)!important}
body.seto-ui .app-nav-link{border-radius:11px!important;border:0!important}
body.seto-ui .app-nav-link.active{background:rgba(47,117,181,.10)!important}

/* Tables */
body.seto-ui :is(.table-scroll,.table-wrap,.vdn-table-wrap){border-radius:16px;overflow:auto;border:1px solid rgba(23,54,93,.08)}
body.seto-ui table{border-collapse:separate;border-spacing:0}
body.seto-ui table thead th{background:rgba(47,117,181,.055);color:var(--seto-blue-deep);font-size:11px;letter-spacing:.02em}
body.seto-ui table tbody tr:hover td{background:rgba(47,117,181,.035)}

/* Profile */
body.seto-profil-page .hero{border-radius:28px!important;padding:22px!important;background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,255,255,.55))!important;border:1px solid var(--seto-border)!important;box-shadow:var(--seto-shadow)!important}
body.seto-profil-page .tabs{gap:5px;padding:5px;border-radius:16px;background:rgba(255,255,255,.48);border:1px solid var(--seto-border)}
body.seto-profil-page .tab{padding:8px 12px!important}
body.seto-profil-page .tab.active{background:rgba(47,117,181,.12)!important}
body.seto-profil-page .form-grid{gap:12px}
body.seto-profil-page .panel{padding:18px!important}

/* Payroll */
body.seto-payroll-page{--accent:var(--seto-primary)!important;--accent-dark:var(--seto-blue-deep)!important;--accent-soft:rgba(47,117,181,.10)!important}
body.seto-payroll-page .app-page{padding-top:14px!important}
body.seto-payroll-page .period-strip{padding:10px 12px!important}
body.seto-payroll-page .status-line{padding:10px 14px!important}
body.seto-payroll-page .vdn-sheet{background:rgba(255,255,255,.80)!important;border-radius:26px!important}
body.seto-payroll-page .vdn-head{background:linear-gradient(135deg,rgba(47,117,181,.11),rgba(255,255,255,.12))!important}
body.seto-payroll-page .vdn-block-title{color:var(--seto-blue-deep)!important}
body.seto-payroll-page .vdn-person{background:rgba(47,117,181,.04)!important}

/* Analysis */
body.seto-analyse-page .analysis-layout{gap:14px!important}
body.seto-analyse-page .analysis-sidebar{border-radius:22px!important;border:1px solid var(--seto-border)!important;background:var(--seto-glass)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body.seto-analyse-page .analysis-nav-group{border-radius:14px!important}
body.seto-analyse-page .analysis-nav-group.active,body.seto-analyse-page .analysis-nav-group:hover{background:rgba(47,117,181,.08)!important}
body.seto-analyse-page .kpi{padding:14px!important}
body.seto-analyse-page .section-head{margin-bottom:12px!important}
body.seto-analyse-page .card{padding:17px!important}

/* Importer */
body.seto-import-page .import-layout{gap:14px!important}
body.seto-import-page .import-sidebar{border-radius:22px!important;border:1px solid var(--seto-border)!important;background:var(--seto-glass)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body.seto-import-page .import-nav-group{border-radius:14px!important}
body.seto-import-page .import-nav-group.active,body.seto-import-page .import-nav-group:hover{background:rgba(47,117,181,.08)!important}
body.seto-import-page .card{padding:17px!important}
body.seto-import-page .setup-choice{padding:14px!important}

/* Admin */
body.seto-admin-page .admin-shell{padding-top:14px}
body.seto-admin-page .admin-hero{padding:20px!important}
body.seto-admin-page .admin-tabs{padding:5px;border-radius:16px;background:rgba(255,255,255,.48);border:1px solid var(--seto-border)}
body.seto-admin-page .admin-tabs button.active{background:rgba(47,117,181,.12)!important;color:var(--seto-primary)!important}
body.seto-admin-page .admin-panel{padding:17px!important}

/* Calendar – preserve semantic day colors, rest gets glass */
body.seto-calendar-page .calendar-app-header{background:transparent!important}
body.seto-calendar-page .cal-top{border-radius:20px!important;border:1px solid var(--seto-border)!important;background:var(--seto-glass)!important;box-shadow:var(--seto-shadow-soft)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body.seto-calendar-page .bottom-nav{border:1px solid var(--seto-border)!important;border-radius:18px!important;background:var(--seto-glass-strong)!important;box-shadow:0 12px 34px rgba(23,54,93,.11)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
body.seto-calendar-page .bn-item{border-radius:12px!important}
body.seto-calendar-page .bn-item.active{background:rgba(47,117,181,.10)!important}
body.seto-calendar-page #editor{border-radius:22px 22px 0 0!important;background:var(--seto-glass-strong)!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 -12px 36px rgba(23,54,93,.12)!important}
body.seto-calendar-page .entry-buttons{gap:6px!important}
body.seto-calendar-page .btn-type{border-radius:12px!important}

@media(max-width:860px){
  .seto-global-header{top:6px;left:7px;right:7px;border-radius:16px}
  body.seto-ui{padding-top:66px!important}
  body.seto-ui.seto-calendar-page{padding-top:calc(66px + var(--header-h,56px))!important}
  body.seto-ui .app-header,body.seto-ui .topbar:not(.seto-global-header){top:66px!important}
  body.seto-ui:not(.seto-start-page) :is(.shell,.container,.app-page,.cal-wrap,.admin-shell,.analysis-content,.import-content){width:min(100% - 18px,1180px)}
  body.seto-ui:not(.seto-start-page) :is(.panel,.card,.summary-card,.profile-card,.admin-panel,.vdn-sheet,.chart-box,.kpi,.setup-work-card,.layout-card){border-radius:20px!important}
  body.seto-profil-page .panel,body.seto-analyse-page .card,body.seto-import-page .card,body.seto-admin-page .admin-panel{padding:14px!important}
}
@media(max-width:600px){
  body.seto-ui:not(.seto-start-page) :is(.shell,.container,.app-page,.cal-wrap,.admin-shell,.analysis-content,.import-content){width:calc(100% - 14px)}
  .seto-service-link,.seto-theme-btn{border-radius:11px}
  body.seto-ui :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:40px;border-radius:12px!important}
  body.seto-payroll-page .vdn-sheet{border-radius:20px!important}
  body.seto-calendar-page .bottom-nav{left:7px!important;right:7px!important;bottom:max(7px,env(safe-area-inset-bottom))!important}
}
@media print{
  body.seto-ui:not(.seto-start-page):not(.seto-login-page){background:#fff!important}
  body.seto-ui :is(.panel,.card,.vdn-sheet,.admin-panel,.layout-card){box-shadow:none!important;backdrop-filter:none!important;background:#fff!important;border-color:#ddd!important}
}


/* SETO 1.1.166 – Navigation & Aktionshierarchie */
.seto-mobile-menu-theme{
  width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--seto-text);
  padding:10px 12px;border-radius:10px;font:inherit;text-align:left;cursor:pointer;
}
.seto-mobile-menu-theme:hover{background:var(--seto-card-2)}
.seto-mobile-menu-theme span{width:22px;text-align:center}
.seto-mobile-menu-theme b{font-size:12px}

.seto-diagnostic-fold{margin-top:18px;border:1px solid var(--seto-border);border-radius:14px;background:var(--seto-card)}
.seto-diagnostic-fold>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px}
.seto-diagnostic-fold>summary::-webkit-details-marker{display:none}
.seto-diagnostic-fold>summary span:first-child{display:grid;gap:3px}
.seto-diagnostic-fold>summary small{color:var(--seto-muted);font-size:11px;font-weight:600}
.seto-diagnostic-actions{padding:0 16px 16px;display:flex;gap:8px;flex-wrap:wrap}
.seto-inline-diagnostic{display:inline-block;vertical-align:middle}
.seto-inline-diagnostic>summary{list-style:none;cursor:pointer;border:1px solid var(--seto-border);border-radius:10px;padding:9px 12px;color:var(--seto-muted);font-size:12px;font-weight:750;background:var(--seto-card)}
.seto-inline-diagnostic>summary::-webkit-details-marker{display:none}
.seto-inline-diagnostic[open]>summary{color:var(--seto-primary);border-color:var(--seto-primary)}
.seto-inline-diagnostic>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* Profil besitzt keine zweite globale Modulnavigation mehr. */
body.seto-profil-page>.topbar{display:none!important}

@media(max-width:760px){
  /* Mobile Hauptführung: Start · Kalender · Abrechnung · Mehr. */
  .seto-global-inner{width:100%;padding:0 8px;gap:4px;justify-content:center}
  .seto-wordmark{display:none!important}
  .seto-main-nav{display:none!important}
  .seto-global-actions{display:none!important}
  .seto-mobile-primary-nav{display:flex!important;flex:1;align-items:stretch;justify-content:space-evenly;min-width:0;height:100%;gap:2px}
  .seto-mobile-primary-nav>a{flex:1;min-width:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 2px;color:var(--seto-muted);text-decoration:none;border-radius:10px;font-size:10px;font-weight:760}
  .seto-mobile-primary-nav>a.active{color:var(--seto-primary);background:color-mix(in srgb,var(--seto-primary) 10%,transparent)}
  .seto-mobile-nav-icon{height:19px;min-width:19px;display:grid;place-items:center;font-size:17px;line-height:1}
  .seto-mobile-nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
  .seto-mobile-primary-nav b{font-size:9.5px;line-height:1.1;white-space:nowrap}
  .seto-mobile-modules{display:block!important;position:relative;flex:0 0 54px;height:100%}
  .seto-mobile-modules-btn{width:100%;height:100%;border:0;background:transparent;color:var(--seto-muted);display:flex;align-items:center;justify-content:center;font-weight:900;cursor:pointer}
  .seto-mobile-modules-btn::after{content:'Mehr';position:absolute;bottom:7px;left:0;right:0;font-size:9.5px;font-weight:760}
  .seto-mobile-modules-btn span{font-size:18px;transform:translateY(-6px)}
}

/* SETO 1.1.167 – Mobile Navigation: Safe Area, Sticky-Ebenen und Bedienbarkeit */
:root{
  --seto-safe-bottom:env(safe-area-inset-bottom,0px);
  --seto-layer-module-nav:700;
  --seto-layer-global-nav:900;
  --seto-layer-menu:1000;
}

/* UI2 hatte auf schmalen Displays die Safe-Area-Geometrie wieder auf feste 66 px reduziert.
   Bis 860 px gilt deshalb nur noch die zentrale SETO-Höhe. */
@media(max-width:860px){
  :root{
    --seto-global-bar-h:60px;
    --seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top));
  }
  .seto-global-header{
    top:0!important;
    left:0!important;
    right:0!important;
    height:var(--seto-global-h)!important;
    min-height:var(--seto-global-h)!important;
    padding-top:var(--seto-safe-top)!important;
    border-radius:0 0 16px 16px!important;
    z-index:var(--seto-layer-global-nav)!important;
  }
  .seto-global-inner{
    height:var(--seto-global-bar-h)!important;
    min-height:var(--seto-global-bar-h)!important;
  }
  body.seto-ui,
  body.seto-ui.seto-calendar-page{
    padding-top:var(--seto-global-h)!important;
  }
  body.seto-ui .app-header,
  body.seto-ui .topbar:not(.seto-global-header){
    top:var(--seto-global-h)!important;
  }
  body.seto-payroll-page{
    padding-top:var(--seto-global-h)!important;
  }
  body.seto-payroll-page .seto-module-nav{
    top:var(--seto-global-h)!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
}

/* Analyse und Importer besitzen auf Tablet/Phone eine lokale Sticky-Navigation.
   Sie klebt unter der globalen SETO-Leiste und nicht mehr bei top:0. */
@media(max-width:820px){
  body.seto-analyse-page .analysis-mobile-nav,
  body.seto-import-page .import-mobile-nav,
  body.seto-payroll-page .payroll-mobile-nav{
    top:var(--seto-global-h)!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
  body.seto-analyse-page .analysis-mobile-links,
  body.seto-import-page .import-mobile-links,
  body.seto-payroll-page .payroll-mobile-links{
    max-height:calc(100vh - var(--seto-global-h) - 92px);
    max-height:calc(100dvh - var(--seto-global-h) - 92px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

@media(max-width:760px){
  :root{
    --seto-global-bar-h:58px;
    --seto-global-h:calc(var(--seto-global-bar-h) + var(--seto-safe-top));
    --seto-calendar-nav-total-h:calc(var(--nav-h,64px) + var(--seto-safe-bottom));
  }

  /* Eine einzige mobile Hauptzeile: Start · Kalender · Abrechnung · Mehr. */
  .seto-global-inner{
    width:100%!important;
    height:var(--seto-global-bar-h)!important;
    min-height:var(--seto-global-bar-h)!important;
    padding:0 max(8px,var(--seto-safe-left)) 0 max(8px,var(--seto-safe-right))!important;
    display:flex!important;
    align-items:stretch!important;
    gap:4px!important;
  }
  .seto-wordmark,
  .seto-main-nav,
  .seto-global-actions{
    display:none!important;
  }
  .seto-mobile-primary-nav{
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:100%!important;
    align-items:stretch!important;
    gap:2px!important;
  }
  .seto-mobile-primary-nav>a{
    min-width:0!important;
    min-height:44px!important;
    height:100%!important;
  }
  .seto-mobile-modules{
    display:block!important;
    position:relative!important;
    flex:0 0 54px!important;
    height:100%!important;
  }
  .seto-mobile-modules-btn{
    min-width:44px!important;
    min-height:44px!important;
  }
  .seto-mobile-modules-menu{
    top:calc(var(--seto-global-h) + 6px)!important;
    left:max(8px,var(--seto-safe-left))!important;
    right:max(8px,var(--seto-safe-right))!important;
    max-height:calc(100vh - var(--seto-global-h) - 14px);
    max-height:calc(100dvh - var(--seto-global-h) - 14px);
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    z-index:var(--seto-layer-menu)!important;
  }

  /* Abrechnung: die zweite Zeile reserviert zuverlässig ihren eigenen Platz. */
  body.seto-payroll-page{
    padding-top:var(--seto-global-h)!important;
  }
  body.seto-payroll-page .seto-module-nav{
    top:var(--seto-global-h)!important;
    z-index:var(--seto-layer-module-nav)!important;
    min-height:var(--seto-module-h)!important;
    scroll-padding-inline:8px;
  }
  body.seto-payroll-page .seto-module-nav .app-nav-link{
    min-height:40px!important;
  }

  /* Kalender: Bottom-Bar, Editor und Toast verwenden dieselbe Safe-Area-Geometrie. */
  body.seto-calendar-nav-page{
    padding-top:var(--seto-global-h)!important;
    padding-bottom:calc(var(--seto-calendar-nav-total-h) + 10px)!important;
  }
  body.seto-calendar-nav-page .bottom-nav{
    top:auto!important;
    bottom:0!important;
    left:7px!important;
    right:7px!important;
    height:var(--seto-calendar-nav-total-h)!important;
    padding-bottom:var(--seto-safe-bottom)!important;
    border-radius:18px 18px 0 0!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
  body.seto-calendar-nav-page #editor{
    bottom:var(--seto-calendar-nav-total-h)!important;
    max-height:calc(100vh - var(--seto-global-h) - var(--seto-calendar-nav-total-h) - 10px);
    max-height:calc(100dvh - var(--seto-global-h) - var(--seto-calendar-nav-total-h) - 10px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    z-index:calc(var(--seto-layer-module-nav) - 100)!important;
  }
  body.seto-calendar-nav-page .app-toast{
    bottom:calc(var(--seto-calendar-nav-total-h) + 14px)!important;
  }

  /* Admin: keine dritte feste Kopfzeile. Tabs bleiben direkt unter SETO sticky. */
  body.seto-admin-page .admin-topbar{
    position:relative!important;
    top:auto!important;
    height:auto!important;
    min-height:62px;
    z-index:auto!important;
  }
  body.seto-admin-page .admin-tabs{
    top:calc(var(--seto-global-h) + 6px)!important;
    z-index:var(--seto-layer-module-nav)!important;
  }
}

@media print{
  :root{--seto-safe-bottom:0px}
}

/* Failed validation never reveals protected contents. Only recovery UI is shown. */
html.seto-auth-failed body > :not(#seto-start-error){display:none!important}
html.seto-auth-failed body{visibility:visible!important}
#seto-start-error{box-sizing:border-box;max-width:640px;margin:10vh auto;padding:28px;background:#fff;color:#24364b;border:1px solid #ccd5df;border-radius:16px;font:16px/1.6 system-ui}
#seto-start-error h1{color:#17365d;font-size:24px}
#seto-start-error button,#seto-start-error a{display:inline-block;margin:8px;padding:12px 16px;border:1px solid #17365d;border-radius:8px;background:#17365d;color:#fff;cursor:pointer;font:inherit}
#seto-start-error :focus-visible{outline:3px solid #b45309;outline-offset:3px}

/* Feedback 107/108 – Desktop: Start/Kalender/Abrechnung/Analyse/Mehr statt verteilter Servicemenüs. */
.seto-desktop-more{position:relative;height:100%;display:flex;align-items:center}.seto-desktop-more>summary{list-style:none;cursor:pointer;height:100%;display:flex;align-items:center;padding:0 12px;border-bottom:3px solid transparent;color:var(--seto-muted);font-size:13px;font-weight:720}.seto-desktop-more>summary::-webkit-details-marker{display:none}.seto-desktop-more>summary:hover,.seto-desktop-more[open]>summary{color:var(--seto-text);background:var(--seto-card-2)}.seto-desktop-more>nav{position:absolute;z-index:100;right:0;top:calc(100% + 5px);min-width:220px;display:grid;gap:3px;padding:7px;border:1px solid var(--seto-border);border-radius:12px;background:var(--seto-card);box-shadow:0 14px 36px rgba(16,24,40,.18)}.seto-main-nav .seto-desktop-more>nav a{min-height:38px;padding:8px 10px;border:0;border-radius:8px;font-size:12px;white-space:nowrap}.seto-main-nav .seto-desktop-more>nav a.active{border:0;background:var(--seto-card-2);color:var(--seto-primary)}
@media(max-width:760px){.seto-desktop-more{display:none!important}}

/* END shared/seto-ui.css */

/* BEGIN abrechnung/css/st-zulage.css */
.st-page{display:grid;gap:16px}.st-warning{display:flex;gap:10px;align-items:flex-start;padding:13px 15px;border:1px solid color-mix(in srgb,var(--purple) 30%,var(--border));border-radius:12px;background:color-mix(in srgb,var(--purple) 6%,var(--surface));font-size:13px;line-height:1.45}.st-warning strong{white-space:nowrap;color:var(--purple-text)}
.st-controls{margin:0}.st-control-grid{display:grid;grid-template-columns:180px 180px minmax(260px,1fr) minmax(260px,1fr);gap:12px;align-items:end}.st-check{min-height:42px;display:flex;gap:9px;align-items:center;padding:8px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-size:12px;font-weight:700}.st-check input{width:17px;height:17px;accent-color:var(--purple)}
.st-kpis{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px}.st-kpis article{display:grid;gap:4px;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.st-kpis span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}.st-kpis strong{font-size:21px;color:var(--text)}.st-kpis small{font-size:10.5px;color:var(--muted)}
.st-block-table td:nth-child(3),.st-month-table td:not(:first-child):not(:last-child),.st-follow-table td:not(:first-child){font-variant-numeric:tabular-nums;text-align:right}.st-dates{min-width:260px;white-space:normal;line-height:1.45}.st-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap}.st-status.ok{background:color-mix(in srgb,var(--green) 12%,var(--surface));color:var(--green)}.st-status.warn{background:color-mix(in srgb,var(--amber) 15%,var(--surface));color:#8a5a00}.st-status.bad{background:color-mix(in srgb,var(--red) 10%,var(--surface));color:var(--red)}.st-status.neutral{background:var(--surface-2);color:var(--muted)}
.st-issues{display:grid;gap:9px}.st-issue{padding:11px 12px;border-left:4px solid var(--amber);border-radius:8px;background:var(--surface-2);font-size:12px;line-height:1.45}.st-issue.bad{border-left-color:var(--red)}.st-issue.ok{border-left-color:var(--green)}.st-issue strong{display:block;margin-bottom:2px}.st-source{display:block;color:var(--muted);font-size:10px;margin-top:3px}
@media(max-width:1000px){.st-control-grid{grid-template-columns:1fr 1fr}.st-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:640px){.st-control-grid,.st-kpis{grid-template-columns:1fr}.st-warning{flex-direction:column}.st-page{gap:12px}}

/* SETO 1.1.186 – offener ST-Abgleich */
.st-month-table .st-open{font-weight:800;color:var(--danger,#b42318)}
.st-month-table th small{display:block;font-size:.72em;font-weight:600;opacity:.68;white-space:nowrap}

/* END abrechnung/css/st-zulage.css */
