/* Redesign 2026, Runde 24 (2.86.0) */

/* R24-01: Neuigkeiten, ein Eintrag = eine weiße Karte (Kopf: Version und Datum, darunter die Punkte) */
#tabNews .page-head, #tabHelp .page-head { margin-top: 0; }
#newsList .news-entry { display: block; position: relative; background: #fff; border: 1px solid #D8DCE4; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(14, 17, 21, .06); margin-bottom: 16px; max-width: none; scroll-margin-top: 96px; box-sizing: border-box; }
#newsList .news-entry.is-target, #newsList .news-more-list li.is-target { box-shadow: 0 1px 3px rgba(14, 17, 21, .06); border-radius: 12px; }
#newsList .news-entry.is-target::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: #6B717C; border-radius: 12px 0 0 12px; }
#newsList .news-entry-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 0 0 16px; margin: 0 0 8px; border-bottom: 1px solid #D8DCE4; font-size: .9375rem; color: var(--orlop-muted-text, #565C67); }
#newsList .news-entry-meta .news-version-head { font-size: 1rem; font-weight: 900; color: #0E1115; display: inline; margin: 0; }
#newsList .news-entry-meta .news-version-head:focus:not(:focus-visible) { outline: none; box-shadow: none; }
#newsList .news-entry-meta .news-version-head:focus-visible { outline: 2px solid #0E1115; outline-offset: 3px; border-radius: 4px; }
#newsList .news-entry-meta .news-entry-sep { color: var(--orlop-muted-text, #565C67); }
#newsList .news-entry-body { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; max-width: none; }
#newsList .news-entry-body::before { display: none; }
#newsList .news-entry-body .news-entry-title { margin: 8px 0 8px; font-size: 1.25rem; }
#newsList .news-entry-body ul { margin: 0; padding: 0; list-style: none; }
#newsList .news-entry-body li { margin: 0; padding: 24px 0; border-top: 1px solid #E7EAF0; }
#newsList .news-entry-body li:first-child { border-top: 0; padding-top: 12px; }
#newsList .news-entry-body li.news-li-plain { margin: 0; padding-top: 16px; border-top: 1px solid #D8DCE4; }
.news-badge--new, .news-badge--better { background: #B6BCCC; color: #0E1115; }
.news-badge--fixed { background: #D1FAE5; color: #065F46; }
.news-jump a[aria-current="true"] { background: #0E1115; color: #fff; border-color: #0E1115; }
@media (max-width: 1439px) { .news-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); } .news-jump::-webkit-scrollbar { display: none; } .news-jump a { flex: none; } }
@media (max-width: 767px) { #newsList .news-entry { padding: 16px; } #newsList .news-entry-body li { padding: 16px 0; } }

/* R24-01: Hilfe, linke Spalte bleibt stehen und scrollt für sich, Gruppenüberschriften lesbar */
.help-side { max-height: calc(100vh - var(--chrome-h, 124px) - 24px); overflow-y: auto; align-self: start; scrollbar-width: thin; }
.help-group { font-size: .75rem; color: var(--orlop-muted-text, #565C67); }

/* R24-01: Fußzeile. Links nur bei Hover/Fokus unterstrichen, Chip "Neu" im Akzentton, 390 px über der Tableiste */
.app-footer a, .app-footer-links a, .app-footer-left a#footerVersion { text-decoration: none; }
.app-footer a:hover, .app-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.app-footer a.has-news::after { content: "Neu"; display: inline-block; width: auto; height: auto; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: #B6BCCC; color: #0E1115; font-size: .75rem; font-weight: 800; line-height: 1.5; vertical-align: middle; }
@media (min-width: 768px) { .app-footer { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 767px) { .app-footer { padding-bottom: calc(var(--mshell-tab-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px) !important; } }

/* R24-06: Funktionstrennung, Schalter in den Zahlungsfreigabe-Einstellungen und Grund am gesperrten Knopf */
.sod-card { background: #fff; border: 1px solid #D8DCE4; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.sod-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; }
.sod-switch input { width: 20px; height: 20px; accent-color: #0E1115; }
.sod-text { margin: 4px 0 0 32px; color: var(--orlop-muted-text, #565C67); font-size: .9375rem; line-height: 1.5; }
#docApproveNote.is-blocked { color: #8A1C1C; }

/* R24-02: Belegliste in voller Breite. Lieferant | Rechnung | (Unternehmen) | Belegart | Fällig | Betrag | Status | Aktion */
.documents-grid .doc-table .dr-m-date { display: none; }
.documents-grid .doc-table .dr-co, .documents-grid .doc-table .dr-kind { display: none; }
.documents-grid .doc-table .dr-m2 { display: flex; flex-wrap: nowrap; gap: 6px; color: var(--orlop-muted-text, #565C67); font-size: .8125rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.documents-grid .doc-table .dr-m2 .dr-sep { display: inline; margin: 0 2px; }
.documents-grid .doc-table .dr-m2-extra { display: inline-flex; gap: 6px; }
.documents-grid .doc-table .dr-kind-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: #F5F6F8; border: 1px solid #D8DCE4; color: #333840; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.documents-grid .doc-table .dr-co { color: #333840; font-size: .875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.documents-grid .doc-table .dr-open { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #0E1115; font-weight: 700; text-decoration: none; white-space: nowrap; }
.documents-grid .doc-table .dr-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.documents-grid .doc-table .dr-open i { font-size: .75rem; }
.documents-grid .doc-table .dr-act { background: #0E1115; color: #fff; border-color: #0E1115; border-radius: 999px; }
.documents-grid .doc-table .dr-act:hover { background: #333840; }
.doc-wait-chip, .doc-wait-chip:hover { background: #B6BCCC; color: #0E1115; border-color: #B6BCCC; }
.doc-wait-chip:hover { background: #A5ACBE; }
.doc-wait-chip[aria-pressed="true"] { background: #fff; color: #0E1115; border-color: #0E1115; }
/* R53-01: Listen-Umbruch bei 1100 px */
@media (min-width: 1100px) {
  .documents-grid .doc-table { max-width: none; width: 100%; }
  .documents-grid .doc-table .doc-thead,
  .documents-grid .doc-table .doc-row,
  .documents-grid .doc-table.has-co .doc-thead,
  .documents-grid .doc-table.has-co .doc-row,
  .documents-grid .doc-table.no-status .doc-thead,
  .documents-grid .doc-table.no-status .doc-row {
    grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1.1fr) 104px 112px minmax(140px, 1fr) 88px; column-gap: 24px;
  }
  .documents-grid .doc-table .dr-open { justify-content: flex-end; }
}
@media (min-width: 1100px) {
  .documents-grid .doc-table .dr-kind { display: flex; align-items: center; }
  .documents-grid .doc-table .dr-h.dr-kind { display: block; }
  .documents-grid .doc-table .dr-m2-extra { display: none; }
  .documents-grid .doc-table .doc-thead,
  .documents-grid .doc-table .doc-row,
  .documents-grid .doc-table.no-status .doc-thead,
  .documents-grid .doc-table.no-status .doc-row {
    grid-template-columns: minmax(200px, 230px) minmax(170px, 190px) 104px 96px 104px minmax(160px, 176px) 80px; justify-content: space-between;
  }
  .documents-grid .doc-table.has-co .dr-co { display: block; }
  .documents-grid .doc-table.has-co .doc-thead,
  .documents-grid .doc-table.has-co .doc-row {
    grid-template-columns: minmax(190px, 220px) minmax(160px, 180px) minmax(130px, 160px) 104px 96px 104px minmax(160px, 176px) 80px; justify-content: space-between;
  }
}
/* R53-01: Listen-Umbruch bei 1100 px */
@media (max-width: 1099px) {
  .documents-grid .doc-table .dr-open { display: none; }
}

/* R24-05: Hilfe, Hinweiskasten, Tabellen für Status und Fehler */
.help-callout { margin: 16px 0; padding: 16px 20px; border: 1px solid #D8DCE4; border-left: 4px solid #6B717C; border-radius: 12px; background: #F5F6F8; }
.help-callout strong { display: block; margin-bottom: 4px; }
.help-callout p { margin: 0; line-height: 1.5; }
.help-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: .9375rem; }
.help-table th { text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orlop-muted-text, #565C67); padding: 8px 12px; border-bottom: 1px solid #D8DCE4; }
.help-table td { padding: 12px; border-bottom: 1px solid #E7EAF0; vertical-align: top; line-height: 1.5; }
.help-table td:first-child { white-space: nowrap; }
.help-errors td:first-child { white-space: normal; font-weight: 700; width: 38%; }
@media (max-width: 600px) { .help-table td:first-child { white-space: normal; } }
/* R25-01 (D-1193): kein Rahmen um Container, Fokus nur auf der Überschrift */
#newsList .news-more-list li:focus:not(:focus-visible), #newsList .news-entry:focus:not(:focus-visible) { outline: none; box-shadow: none; }
#newsList .news-entry.is-target { box-shadow: 0 1px 3px rgba(14, 17, 21, .06); }
#newsList .news-entry.is-target::before { background: #0E1115; width: 4px; }

/* Sammelfreigabe in der Belegliste: Kästchen, Leiste, Ergebnis */
.documents-grid .doc-thead { position: relative; }
.dr-sel, .dr-selhead { position: absolute; left: 0; top: 0; bottom: 0; width: 2.75rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }
.dr-sel input, .dr-selhead input, .doc-selall-m input { width: 1.125rem; height: 1.125rem; accent-color: var(--orlop-ink, #0E1115); cursor: pointer; }
.dr-sel input:focus-visible, .dr-selhead input:focus-visible, .doc-selall-m input:focus-visible { outline: 2px solid var(--orlop-ink, #0E1115); outline-offset: 2px; }
.documents-grid .doc-table.has-sel .doc-thead, .documents-grid .doc-table.has-sel .doc-row { padding-left: 2.75rem; }
.documents-grid .doc-row.is-picked { background: var(--orlop-surface-2, #F5F6F8); }
.doc-selall-m { display: none; align-items: center; gap: .5rem; padding: .5rem 0; font-size: .875rem; color: var(--text-muted, #565C67); }
@media (max-width: 767px) {
  .doc-selall-m { display: flex; }
}
/* R53-01: Listen-Umbruch bei 1100 px */
@media (max-width: 1099px) {
  .documents-grid .doc-table.has-sel .doc-row { padding-left: 3.75rem; }
  .dr-sel { top: 0; bottom: auto; height: 3rem; }
}
.doc-selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 1rem; background: var(--orlop-ink, #0E1115); color: #fff; padding: .6rem .75rem .6rem 1.25rem; border-radius: 9999px; box-shadow: 0 8px 28px rgba(14,17,21,.35); max-width: calc(100vw - 32px); }
.doc-selbar[hidden] { display: none; }
.doc-selbar-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-selbar-clear { background: transparent; border: 0; color: #D8DCE4; text-decoration: underline; cursor: pointer; font: inherit; min-height: 40px; }
.doc-selbar-go { background: #fff; color: var(--orlop-ink, #0E1115); border: 0; border-radius: 9999px; padding: .55rem 1.1rem; font-weight: 700; cursor: pointer; min-height: 40px; }
.doc-selbar-go:disabled { opacity: .6; cursor: progress; }
.doc-selbar-paid { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 9999px; padding: .55rem 1.1rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.doc-selbar-paid:hover { background: rgba(255,255,255,.12); }
.doc-selbar-paid:disabled { opacity: .6; cursor: progress; }
.mpaid-summary { margin: .25rem 0 .5rem; }
.mpaid-list, .mpaid-skipped { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 11rem; overflow: auto; border: 1px solid var(--orlop-line, #E2E5EA); border-radius: 12px; }
.mpaid-list li, .mpaid-skipped li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .8rem; font-size: .875rem; }
.mpaid-list li + li, .mpaid-skipped li + li { border-top: 1px solid var(--orlop-line, #E2E5EA); }
.mpaid-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mpaid-more { color: var(--orlop-muted, #5B6470); }
.mpaid-skipped li { display: block; }
.doc-selbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .doc-selbar { left: 16px; right: 16px; transform: none; border-radius: 16px; flex-wrap: wrap; justify-content: space-between; }
}
/* Unter 768 px liegt die Tab-Leiste (.mshell-tabbar, z-index 800) unten; die Leiste sitzt darüber. Steht nach der 600-px-Regel, überschreibt nur bottom. */
@media (max-width: 767px) {
  .doc-selbar { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
.doc-bulk-comment { width: 100%; box-sizing: border-box; }
.doc-bulk-progress { width: 100%; height: .75rem; }
.doc-bulk-progress-t { margin: .5rem 0 0; color: var(--text-muted, #565C67); }
.doc-bulk-band { margin: 0 0 .75rem; padding: .75rem 1rem; border: 1px solid #E7EAF0; border-radius: 8px; background: var(--orlop-surface-2, #F5F6F8); }
.doc-bulk-band-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.doc-bulk-skiplist { list-style: none; margin: .5rem 0 0; padding: 0; }
.doc-bulk-skiplist li { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; padding: .5rem 0; border-bottom: 1px solid #E7EAF0; }
.doc-bulk-skiplist li:last-child { border-bottom: 0; }
.doc-bulk-skiplist li span { color: var(--text-muted, #565C67); }
