:root {
  color-scheme: light;
  --page-bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #171a1f;
  --muted: #68717d;
  --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: #70757b;
  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: #8a8f95;
  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: inherit;
  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: #727981; }

.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}
  .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}}
