/* Redesign Runde 44 (2.109.0): Vorschlag beim Zuordnen, Toast über der Fußleiste, Hinweisband im Beleg, lesbare Grautöne.
   Copyright © Fabian Stamminger @ The Platform Group */
:root { --orlop-muted-text: #565C67; --sw-foot-h: 72px; }

/* D-2087: zweiter Textton für Meta- und Fließ-Sekundärtexte; #6B717C bleibt für Rahmen und Icons */
html body .dash-waiting-age, html body .dash-waiting-meta, html body .dash-recent-meta, html body .dash-waiting-count,
html body .dr-sub, html body .dr-meta, html body .dr-inv-no.is-muted, html body .dr-due:not(.is-overdue), html body .dr-due-d, html body .dr-due-m, html body .dr-co,
html body .doc-due-hint, html body .docs-sel-hint, html body .page-lead, html body .sw-muted, html body .sw-opt-meta, html body .sw-headdet, html body .sw-detline,
html body .rl-age, html body .rl-file, html body .rl-inv, html body .doc-meta-line, html body .doc-keys-hint { color: var(--orlop-muted-text); }
html body .dr-due.is-overdue, html body .rl-due.is-overdue { color: #B42318; }
html body .dash-waiting-age, html body .dash-waiting-meta, html body .dash-recent-meta, html body .dr-sub, html body .dr-meta, html body .dr-due, html body .rl-age, html body .rl-file, html body .rl-inv, html body .rl-due { font-size: .8125rem; }
@media (max-width: 480px) {
  html body .dash-waiting-age, html body .dash-waiting-meta, html body .dash-recent-meta, html body .dr-sub, html body .dr-meta, html body .dr-due, html body .rl-age, html body .rl-file, html body .rl-inv, html body .rl-due { font-size: .875rem; }
}

/* D-2081: Vorschlag, sichere Vorauswahl mit Ring und Haken */
.sw-opt.is-sel { box-shadow: 0 0 0 2px #0E1115; position: relative; }
.sw-opt.is-sel::after { content: "\2713"; position: absolute; right: 12px; top: 10px; font-weight: 900; color: #0E1115; }
.sw-chip-sug { background: #0E1115; color: #fff; border-color: #0E1115; }
.sw-headdet { margin: .25rem 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.sw-hint { color: #333840; font-weight: 600; }

/* grauer Hauptknopf im Zuordnen: dunkle Pille mit 45 % Deckkraft, Grund sichtbar */
/* !important nur hier: die Seitenregel für deaktivierte Knöpfe in index.html erzwingt Grau mit !important */
.sw-foot .btn-primary[aria-disabled="true"], .sw-foot .btn-primary[aria-disabled="true"]:hover { opacity: .45 !important; background: #0E1115 !important; border-color: #0E1115 !important; color: #fff !important; cursor: not-allowed; }
.sw-foot .btn-primary[aria-disabled="true"] .sw-kbd { color: #fff; border-color: rgba(255,255,255,.6); }
.sw-foot .sw-assign-hint { color: var(--orlop-muted-text); }

/* D-2082: Toast im Zuordnen-Flow steht über der Fußleiste, einzeilig */
body:has(.sw) #toastRegion, body:has(.sw) .toast-region { top: auto !important; bottom: calc(var(--sw-foot-h, 72px) + env(safe-area-inset-bottom, 0px) + 12px) !important; z-index: 1400; }
body:has(.sw) #toastRegion .toast { max-width: calc(100vw - 32px); }
body:has(.sw) #toastRegion .toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body:has(.sw) #toastRegion .toast--two .toast-text { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.toast--two .toast-lead { font-weight: 700; }
.toast--two .toast-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:has(.sw) .sw-body { padding-bottom: calc(24px + var(--toast-h, 0px)); }
body:has(.sw) #toastRegion .toast .toast-action { background: none; border: 0; text-decoration: underline; padding: 0 .5rem; color: inherit; min-height: 44px; min-width: 44px; }

/* D-2083: Belegdetail ohne Lieferant, Zustandsklasse statt :has-Regeln */
.doc-detail-panel.is-vendor-open .doc-field-vendor { display: none; }
.vendor-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #D8DCE4; border-left: 4px solid #B7791F; border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(14,17,21,.06); }
.vendor-band-text { margin: 0; font-weight: 700; color: #0E1115; }
.vendor-band-actions { display: inline-flex; align-items: center; gap: 8px; }
.vendor-band .btn-primary { background: #0E1115; border-color: #0E1115; color: #fff; min-height: 44px; }
.vendor-band-help { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #0E1115; text-decoration: none; font-weight: 700; }

/* D-2087: Zuordnen-Kopf, Fortschritt */
.sw-progress[role="progressbar"] { display: block; }

/* D-2087: Hinweisband in der Belegliste als 44-px-Zeile */
.list-assign-banner { min-height: 44px; padding-top: 0; padding-bottom: 0; margin-bottom: .5rem; }
.list-assign-banner .list-assign-go { min-height: 44px; }
@media (max-width: 480px) { .list-assign-banner { flex-wrap: nowrap; } }

/* D-2104: Belegliste-Meta im gleichen Grauton (spätere Schichten setzten #4A4F59) */
html body .documents-grid .doc-table .dr-m2, html body .documents-grid .doc-table .doc-row .dr-m2, html body .documents-grid .doc-row .dr-sub-file,
html body .documents-grid .doc-row .dr-meta-co, html body .documents-grid .doc-row .dr-meta-kind, html body .documents-grid .doc-table .doc-row .dr-m1 .dr-m-status:not([data-st-word]) { color: var(--orlop-muted-text); }

/* ---- R45-04: globale Zielgröße und Bewegung (ersetzt Einzelregeln aus r41 bis r43) ---- */
@media (pointer: coarse) {
  html body button:not(.dr-sort):not(.sw-opt):not(.account-btn):not(.toast-close), html body .btn-primary, html body .btn-secondary, html body .btn-ghost, html body .btn-sm,
  html body .chip, html body .doc-quick-chip, html body .list-seg-tab, html body .setup-go, html body .dash-clarify-go, html body .rl-go, html body .dr-act, html body .btn-textlink, html body a.pill-btn, html body [role="button"] { min-height: 44px; }
  html body .btn-textlink, html body .btn-ghost { display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ---- R45-03: Checkliste "Das fehlt noch": erledigte Schritte klappen ein ---- */
.todo-item.is-done .todo-text, .todo-item.is-done .todo-actions, .todo-item.is-done .todo-sub { display: none; }
.todo-item.is-done .todo-title { color: var(--orlop-muted-text, #565C67); font-weight: 600; }
.todo-item.is-done .todo-n { background: #166534; color: #fff; }

/* ---- R46-01: Belegdetail Desktop, zwei Spalten bis zum rechten Rand (ersetzt die Einzelregeln für "ohne Vorschau" aus r20, r39, r42) ---- */
.doc-original-head--frame { display: none; }
.todo-item.is-done .todo-title { color: var(--orlop-muted-text); font-weight: 600; }
.todo-item.is-done .todo-n { background: #1E7B4F; color: #fff; }
.todo-item.is-info .todo-n { background: #fff; color: #0E1115; border: 2px solid #6B717C; }
.todo-sub-item { margin-top: 10px; }
.todo-sub-title { font-weight: 700; color: #0E1115; }
.doc-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.doc-hist-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-top: 1px solid #D8DCE4; font-size: .875rem; }
.doc-hist-item:first-child { border-top: 0; }
.doc-hist-time { grid-row: 1 / span 3; color: var(--orlop-muted-text); font-variant-numeric: tabular-nums; }
.doc-hist-who { color: var(--orlop-muted-text); overflow-wrap: anywhere; }
.doc-hist-action { font-weight: 700; color: #0E1115; grid-column: 2; grid-row: 1; }
.doc-hist-who { grid-column: 2; grid-row: 2; }
.doc-hist-text, .doc-hist-changes { grid-column: 2; color: #333840; }
.doc-hist-empty { margin: 0; color: var(--orlop-muted-text); font-size: .875rem; }
.preview-meta > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
@media (max-width: 480px) { .doc-hist-item { grid-template-columns: 1fr; } .doc-hist-time { grid-row: auto; } .doc-hist-action, .doc-hist-who, .doc-hist-text, .doc-hist-changes { grid-column: 1; grid-row: auto; } }
@media (min-width: 1024px) {
  html body #documentDetailModal .doc-page-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 24px; align-items: start; align-content: start; grid-auto-rows: max-content; overflow-y: auto; overflow-x: hidden; padding: 16px var(--page-gutter, 24px) calc(var(--bar-h, 72px) + 24px) var(--page-gutter, 24px); box-sizing: border-box; justify-content: stretch; }
  html body #documentDetailModal .doc-page-body .doc-seg { display: none; }
  html body #documentDetailModal .doc-page-body .doc-detail-preview { order: 1; grid-column: 1; position: sticky; top: 16px; align-self: start; width: auto; max-width: none; margin: 0; height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: #fff; border: 1px solid #D8DCE4; border-radius: 14px; box-shadow: 0 1px 3px rgba(14,17,21,.06); overflow: hidden; }
  html body #documentDetailModal .doc-page-body .doc-original-head--frame { display: grid; padding: 16px 16px 12px; border-bottom: 1px solid #D8DCE4; }
  html body #documentDetailModal .doc-page-body.is-no-preview .doc-original-head--frame { display: none; }
  html body #documentDetailModal .doc-page-body .doc-detail-preview-body { height: auto; aspect-ratio: 210 / 297; max-height: calc(100dvh - var(--bar-h, 72px) - 190px); min-height: 280px; flex: 0 0 auto; width: 100%; padding: 0; background: #F5F6F8; }
  html body #documentDetailModal .doc-page-body .doc-detail-preview-body iframe { width: 100%; height: 100%; border: 0; display: block; }
  html body #documentDetailModal .doc-page-body.is-no-preview .doc-detail-preview-body { aspect-ratio: auto; max-height: none; min-height: 0; height: auto; background: transparent; }
  html body #documentDetailModal .doc-page-body .doc-detail-preview .has-no-preview { min-height: 0; height: auto; padding: 0; display: block; position: static; }
  html body #documentDetailModal .doc-page-body .doc-original-card { min-height: 0; border: 0; box-shadow: none; border-radius: 0; padding: 16px; margin: 0; }
  html body #documentDetailModal .doc-page-body .doc-original-card .preview-empty-actions { margin-top: 16px; padding-top: 0; }
  html body #documentDetailModal .doc-page-body .doc-detail-panel { order: 2; grid-column: 2; border: 0; background: transparent; padding: 0; min-width: 0; width: auto; max-width: none; margin: 0; overflow: visible; align-self: start; height: auto; }
  html body #documentDetailModal .doc-page-body .doc-detail-panel .doc-detail-body { padding: 0; max-width: none; }
}

/* ---- R46-03: Seitenkopf in einer Geometrie, Dashboard mit Kennzahlen ---- */
html body .page-head .page-title, html body .mod-head-title { font-size: 2rem; line-height: 2.5rem; letter-spacing: -0.02em; margin: 0 0 .25rem; }
html body .page-head .page-lead, html body .mod-head-sub { font-size: 1rem; line-height: 1.5rem; margin: 0; }
html body .page-head { margin-bottom: 1.5rem; }
@media (max-width: 480px) { html body .page-head .page-title, html body .mod-head-title { font-size: 1.75rem; line-height: 2.25rem; } }
html body #dashStrip, html body #dashZeroLine { display: none; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.dash-kpis[hidden] { display: none; }
.dash-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 20px; background: #fff; border: 1px solid #D8DCE4; border-radius: 12px; box-shadow: 0 1px 3px rgba(14,17,21,.06); color: #0E1115; text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease; }
.dash-kpi:hover { box-shadow: 0 4px 12px rgba(14,17,21,.10); border-color: #B6BCCC; }
.dash-kpi:focus-visible { outline: 2px solid #0E1115; outline-offset: 2px; }
.dash-kpi-label { font-size: .875rem; font-weight: 700; color: var(--orlop-muted-text); }
.dash-kpi-value { font-size: 2rem; line-height: 2.5rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-kpi-sub { font-size: .8125rem; color: var(--orlop-muted-text); min-height: 1.25rem; overflow-wrap: anywhere; white-space: normal; line-height: 1.3; }
.dash-kpi.is-zero .dash-kpi-value { color: var(--orlop-muted-text); }
.dash-kpi.is-alert .dash-kpi-value { color: #B42318; }
@media (max-width: 1023px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dash-kpis { gap: 12px; } .dash-kpi { padding: 12px 16px; } .dash-kpi-value { font-size: 1.75rem; line-height: 2.25rem; } }
html body .dash-columns { align-items: stretch; }
html body .dash-columns > .dash-waiting, html body .dash-columns > .dash-recent { margin: 0; height: auto; box-sizing: border-box; padding: 20px 24px; border: 1px solid #D8DCE4; border-radius: 12px; box-shadow: 0 1px 3px rgba(14,17,21,.06); background: #fff; }
@media (max-width: 480px) { .dash-columns > .dash-waiting, .dash-columns > .dash-recent { padding: 16px; } #dashHead .page-head-actions .btn-primary, #dashHead .page-head-actions .btn-secondary { width: 100%; justify-content: center; } }
html body #tabDashboard > #dashKpis { order: 2; }

/* ---- R46-04: Belegliste, eine Zeilenaktion mit Verb, Reiter und Suche gleich hoch ---- */
.documents-grid .doc-row { cursor: pointer; }
.documents-grid .doc-row:hover { background: #F5F6F8; }
.documents-grid .doc-table .dr-act.dr-act-view, .documents-grid .doc-table .dr-act.dr-act-assign { background: #fff; color: #0E1115; border: 1px solid #6B717C; }
.documents-grid .doc-table .dr-act.dr-act-view:hover, .documents-grid .doc-table .dr-act.dr-act-assign:hover { background: #F5F6F8; }
.documents-grid .doc-table .dr-act { min-width: 7rem; justify-content: center; text-align: center; }
@media (min-width: 768px) and (pointer: fine) { .documents-grid .list-seg-tab, .documents-grid .list-seg-extra, #searchDocuments { min-height: 36px; height: 36px; box-sizing: border-box; } }
.sw-foot .sw-skipbtn { min-height: 36px; }
@media (pointer: coarse) { .sw-foot .sw-skipbtn { min-height: 44px; min-width: 44px; } }

/* ---- R46-05: Neuigkeiten, Tageseintrag mit Ausklapper für frühere Versionen ---- */
.news-earlier { margin: 12px 0 0; padding: 0 0 4px; }
.news-earlier > summary { cursor: pointer; font-weight: 700; color: #0E1115; min-height: 44px; display: flex; align-items: center; }
.news-earlier-list { list-style: none; margin: 0; padding: 0; }
.news-earlier-list > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid #D8DCE4; }
.news-earlier-title { font-weight: 700; color: #0E1115; }
.news-earlier-when { font-size: .875rem; color: var(--orlop-muted-text); }

/* R46 Nacharbeit (D-2198): Handy-Karte zeigt das Aktionsverb rechts neben dem Status */
/* R53-01: Listen-Umbruch bei 1100 px */
@media (max-width: 1099px) {
  html body .documents-grid .doc-table .doc-row .dr-status { grid-area: status; }
  html body .documents-grid .doc-table .doc-row .dr-actcol { grid-area: act; display: flex; justify-self: end; align-self: center; width: auto; min-width: 0; }
  html body .documents-grid .doc-table .doc-row .dr-actcol .dr-act { display: inline-flex; align-items: center; justify-content: center; min-width: 6rem; width: auto; min-height: 44px; padding: 0 16px !important; font-size: .875rem; }
}

/* R46 Nacharbeit (D-2203): Neuigkeiten-Einträge höchstens 880 px breit */
html body #newsList .news-entry, html body #newsList .news-entry--compact { max-width: 880px; }
@media (min-width: 1100px) { html body #newsList .news-entry, html body #newsList .news-entry--compact { max-width: none; } }

/* R46 Nacharbeit (D-2204): Belegliste am Handy ohne tote Fläche über "Alle auswählen" */
/* R53-01: Listen-Umbruch bei 1100 px */
@media (max-width: 1099px) {
  html body .documents-grid > .list-seg-bar { margin-bottom: 0 !important; }
  html body .documents-grid > .doc-selall-m { padding-top: 0 !important; padding-bottom: 8px !important; }
}

/* R47-06 (D-2214): Hinweis "Neu" im Footer als dezente Outline in #B6BCCC, weg nach Besuch der Neuigkeiten */
html body .app-footer a.has-news::after { content: "Neu"; background: transparent; color: #333840; border: 1px solid #B6BCCC; padding: 0 7px; font-weight: 700; }

/* R47-05: Erfolgsseite "Freigaben erledigt": Hinweis einzeilig, nie über Schaltflächen */
body:has(.doc-done) #toastRegion, body:has(.doc-done) .toast-region { top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
body:has(.doc-done) #toastRegion .toast { max-width: min(480px, calc(100vw - 32px)); }
body:has(.doc-done) #toastRegion .toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.doc-done-main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) { body:has(.doc-done) #toastRegion, body:has(.doc-done) .toast-region { bottom: calc(var(--mshell-h, 72px) + env(safe-area-inset-bottom, 0px) + 12px) !important; } }

/* R47-04 (D-2189): Befunde der Layout-Probe am Handy. Weiterverrechnung bleibt lesbar (Tabelle scrollt im eigenen Rahmen), Ziele mindestens 44 px */
@media (max-width: 640px) {
  .rc-table { min-width: 600px; }
  .rc-table td, .rc-table th { white-space: nowrap; }
  html body #searchDocuments { min-height: 44px; }
  html body .dr-vendor-link { min-height: 44px; display: inline-flex; align-items: center; }
  html body .dash-waiting-item .dash-waiting-vendor { min-height: 44px !important; display: flex; align-items: center; }
}
@media (min-width: 1100px) { html body #newsList .news-entry, html body #newsList .news-entry--compact { max-width: none; } }

/* R48-02: ein Formularsystem. Feld-Token (44 px, 1 px #D8DCE4, Radius 10, Fokusring #B6BCCC 3 px), Auswahllisten mit Chevron, Häkchen 20 px */
:root { color-scheme: light; }
.of-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
.of-field select, .of-field textarea,
.rc-field input:not([type="checkbox"]):not([type="radio"]), .rc-field select, .rc-field textarea,
.oi-field input:not([type="checkbox"]):not([type="radio"]), .oi-field select, .oi-field textarea,
.rw-field input:not([type="checkbox"]):not([type="radio"]), .rw-field select, .rw-field textarea,
.xw-field input:not([type="checkbox"]):not([type="radio"]), .xw-field select, .xw-field textarea,
.xw-map select, input.xw-input, select.xw-input, input.of-input, select.of-input,
.page-search input, #globalSearchInput, .help-search input[type="search"] {
  min-height: 44px; box-sizing: border-box; padding: .5rem .75rem; border: 1px solid #D8DCE4; border-radius: 10px;
  background-color: #fff; color: #0E1115; font: inherit; font-size: .9375rem;
}
.of-field textarea, .rc-field textarea, .oi-field textarea, .rw-field textarea { min-height: 88px; }
.of-field input:focus-visible, .of-field select:focus-visible, .of-field textarea:focus-visible,
.rc-field input:focus-visible, .rc-field select:focus-visible, .rc-field textarea:focus-visible,
.oi-field input:focus-visible, .oi-field select:focus-visible, .oi-field textarea:focus-visible,
.rw-field input:focus-visible, .rw-field select:focus-visible, .rw-field textarea:focus-visible,
.xw-field input:focus-visible, .xw-field select:focus-visible, .xw-map select:focus-visible, .xw-input:focus-visible,
.page-search input:focus-visible, #globalSearchInput:focus-visible, .help-search input:focus-visible {
  outline: 2px solid var(--focus-ring, #0E1115); outline-offset: 2px; border-color: #6B717C; box-shadow: none;
}
.of-field [aria-invalid="true"], .rc-field [aria-invalid="true"], .oi-field [aria-invalid="true"], .rw-field [aria-invalid="true"], .xw-field [aria-invalid="true"], .xw-map select[aria-invalid="true"] { border-color: #B42318; }
/* Auswahllisten: überall derselbe Chevron, kein Browser-Pfeil */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B717C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right .9rem center !important; background-size: 12px 8px !important;
}
select:not([multiple]):not([size]):disabled { opacity: .6; }
/* Häkchen: 20 px, Radius 6, gefüllt in #0E1115, Trefferfläche 44 px über das umgebende Label */
input[type="checkbox"].of-check-input, .of-check > input[type="checkbox"], .rc-check input[type="checkbox"], .oi-check input[type="checkbox"], label.of-check-cell > input[type="checkbox"], .rw-check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: none; margin: 0; cursor: pointer;
  border: 1px solid #6B717C; border-radius: 6px; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 14px 14px; accent-color: #0E1115;
}
input[type="checkbox"].of-check-input:checked, .of-check > input[type="checkbox"]:checked, .rc-check input[type="checkbox"]:checked, .oi-check input[type="checkbox"]:checked, label.of-check-cell > input[type="checkbox"]:checked, .rw-check input[type="checkbox"]:checked {
  background-color: #0E1115; border-color: #0E1115;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"].of-check-input:focus-visible, .of-check > input[type="checkbox"]:focus-visible, label.of-check-cell > input:focus-visible, .rc-check input:focus-visible, .rw-check input:focus-visible { outline: 2px solid var(--focus-ring, #0E1115); outline-offset: 2px; box-shadow: none; }
label.of-check-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.rc-check, .oi-check { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.rc-lock { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #565C67; cursor: help; }
/* Datumsfelder: sichtbarer Formathinweis, zentral von form-system.js ergänzt */
.rc-reload { display: inline-flex; align-items: center; gap: .5rem; }
.rc-reload-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D8DCE4; border-radius: 10px; background: #fff; color: #333840; cursor: pointer; }
.rc-reload-btn:hover { background: #F5F6F8; }
.rc-reload-stamp { font-size: .8125rem; color: #565C67; }

/* R48-03 (D-2259, D-2270, D-2289, D-2304, D-2308, D-2309): Handy-Feinschliff Belege und Login */
.dr-ftype { white-space: nowrap; flex: none; min-width: max-content; overflow-wrap: normal; word-break: keep-all; }
.icon-btn, .documents-grid .doc-row .dr-check, .documents-grid .doc-row label.of-check-cell { min-width: 44px; min-height: 44px; }
@media (max-width: 767px) {
  .auth-card { min-height: 460px; }
  .login-help a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .auth-card + .login-version, .login-version, .auth-card a[href*="hilfe"], .auth-card .auth-link { min-height: 44px; display: inline-flex; align-items: center; }
}
/* R53-01: Listen-Umbruch bei 1100 px */
@media (max-width: 1099px) {
  .documents-grid { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .documents-grid .doc-row .dr-vendor, .documents-grid .doc-row .dr-sub-file { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: break-word; word-break: normal; text-overflow: ellipsis; }
  .documents-grid .doc-row .dr-status, .documents-grid .doc-row .dr-status > * { min-height: 44px; display: inline-flex; align-items: center; }
  .list-seg { position: relative; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .list-seg:has(.list-seg-tab:last-child[aria-selected="true"]), .list-seg:has(.list-seg-extra:last-child) { -webkit-mask-image: none; mask-image: none; }
  .list-seg-tab, .doc-quick-chip.list-seg-extra { min-height: 44px; }
}
@media (max-width: 479px) {
  .dr-ftype { font-size: 0; min-width: 0; width: 22px; height: 22px; padding: 0; text-align: center; vertical-align: middle; }
  .dr-ftype::before { content: "\f15b"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900; font-size: .75rem; line-height: 20px; }
}

/* R48-01: gemeinsame Hülle der Assistenten. "Zurück" und "Abbrechen" tragen am Handy immer ihren Text */
@media (max-width: 767px) {
  html body .sw-foot .sw-back { flex: 0 0 auto; width: auto; min-width: 44px; padding: 0 16px; justify-content: center; }
  html body .sw-foot .sw-back .sw-back-text { display: inline !important; }
}

/* D-2315: Kopfsuche behält Platz für Lupe links und Tastenkürzel rechts (Feld-Token darf das Padding nicht überschreiben) */
#globalSearchInput.gs-input { padding: .5rem 4.2rem .5rem 2.5rem; }
.gs-icon { left: .9rem; }
