/* Redesign Runde 43 (2.108.0), letzte Schicht. Copyright © Fabian Stamminger @ The Platform Group */
:root { --orlop-control-border: #6B717C; }
/* R43-01 (D-2039, D-2041): das Attribut hidden gewinnt immer, auch gegen display:flex einer Klasse */
[hidden] { display: none !important; }

/* R43-01: Dashboard-Karten auf Inhaltshöhe, keine 60 Prozent Leerraum */
.dash-waiting-empty.is-warn > div > span { display: block; margin-bottom: .5rem; }
@media (max-width: 767px) {
  .dash-waiting .section-title, .dash-recent .section-title { white-space: nowrap; font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .dash-recent .dash-waiting-head, .dash-waiting .dash-waiting-head { flex-wrap: nowrap; align-items: center; }
  .dash-recent .dash-waiting-head .btn-textlink { font-size: 0; text-decoration: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .dash-recent .dash-waiting-head .btn-textlink::after { content: "\2192"; font-size: 1.375rem; line-height: 1; color: #0E1115; }
}

/* R43-02: Zuordnen, Beleg-Karte klebt auf Spaltenhöhe, Platzhalter statt Text, sichtbarer Grund am Knopf */
@media (min-width: 768px) {
  .sw-grid { align-items: stretch; }
  .sw-left { align-self: stretch; }
  .sw-left .sw-beleg { position: sticky; top: 12px; min-height: min(60vh, 520px); }
}
.sw-noprev { align-items: center; }
.sw-noprev-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #F5F6F8; color: #333840; font-size: 1.125rem; flex: none; }
.sw-noprev-size { color: var(--orlop-muted-text, #565C67); font-size: .8125rem; }
@media (min-width: 768px) {
  .sw-beleg .sw-prev.is-noprev .sw-prev-box { padding: 1.25rem 0; }
  .sw-noprev { flex-direction: column; text-align: center; gap: 8px; padding: 1.5rem 0; }
  .sw-noprev-ico { width: 64px; height: 64px; font-size: 1.75rem; border-radius: 16px; }
}
.sw-foot .sw-assign-hint { margin: 0 .75rem 0 0; color: #333840; font-size: .875rem; }
.sw-foot .sw-skipbtn, .sw-foot .sw-prevbtn { min-height: 44px; }
.sw-foot .btn-primary[aria-disabled="true"] { opacity: 1; background: #E2E5EB; border-color: #E2E5EB; color: var(--orlop-muted-text, #565C67); cursor: not-allowed; }
.sw-foot .btn-primary[aria-disabled="true"] .sw-kbd { color: var(--orlop-muted-text, #565C67); border-color: #A9AFBB; }

/* R43-03: Belegliste, ein Zuordnen-Einstieg, Reiterlinie über die volle Breite */
.list-seg-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; border-bottom: 1px solid #D8DCE4; margin-bottom: .75rem; }
.list-seg-bar > .list-seg { border-bottom: 0; margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.list-seg-bar > .list-seg-action { flex: none; margin-left: auto; font-weight: 700; }
.list-seg-tab.is-zero { color: var(--orlop-muted-text, #565C67); }
.list-assign-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 .75rem; padding: .75rem 1rem; background: #fff; border: 1px solid #D8DCE4; border-radius: 14px; font-weight: 600; }
.list-assign-banner .list-assign-go { min-height: 40px; }
.dr-act-go { display: inline-flex; align-items: center; justify-content: flex-end; color: var(--orlop-muted-text, #565C67); min-width: 24px; }
.documents-grid .doc-row.is-novendor { cursor: pointer; }
.dr-missing-text { color: var(--orlop-muted-text, #565C67); font-weight: 400; font-size: .8125rem; white-space: normal; line-height: 1.2; }
.dr-amount { font-variant-numeric: tabular-nums; }
#docFilters, #docFilters .docfilters-card { background: transparent; border: 0; box-shadow: none; }
/* R53-01: Listen-Umbruch bei 1100 px */
@media (max-width: 1099px) {
  .list-seg-bar { flex-direction: column; align-items: stretch; gap: 0; border-bottom: 0; }
  .list-seg-bar > .list-seg { border-bottom: 1px solid #D8DCE4; }
  .list-seg-bar > .list-seg-action { margin: .25rem 0 .5rem; min-height: 44px; justify-content: flex-start; }
}

/* R43-04: Hinweisbox und Fehlercode mit Kopieren */
.ui-error-code .ui-error-copy { margin-left: .25rem; font-size: inherit; min-height: 32px; }
.uw-note p { margin: 0 0 .5rem; }
.uw-note p:last-child { margin: 0; }
.uw-note .btn-secondary { min-height: 44px; }

/* R43-05: Rahmen von Steuerelementen mit 3:1 Kontrast (WCAG 1.4.11), Karten behalten --orlop-line */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea,
.btn-secondary, .btn-outline, .page-help-link, .docs-filter-btn { border-color: var(--orlop-control-border); }
.page-help-link { border: 1px solid var(--orlop-control-border); }

@media (max-width: 767px) {
  /* Einrichtungszeile als Grid: Name umbricht, Chip darunter, Knopf rechts */
  .setup-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mark text go" "mark state go"; align-items: center; column-gap: .75rem; row-gap: .25rem; }
  .setup-link > .setup-mark { grid-area: mark; }
  .setup-link > .setup-text { grid-area: text; min-width: 0; overflow-wrap: anywhere; }
  .setup-link > .setup-state { grid-area: state; justify-self: start; }
  .setup-link > .setup-go, .setup-link > .setup-chev { grid-area: go; align-self: center; }
  .setup-link > .setup-go { min-height: 44px; }
  /* Upload-Ergebnis: eine Primärreihe, Textlinks in einer Reihe darunter */
  body .uw .sw-foot-inner { flex-wrap: wrap; gap: .25rem .5rem; padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom, 0px)); }
  .uw .sw-foot-inner .uw-spacer { display: none; }
  .uw .sw-foot-inner .btn-primary[data-uw="assign"] { order: -1; flex: 1 1 100%; }
  .uw .sw-foot-inner .uw-textbtn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 .5rem; }
  .is-result .uw-body { padding-bottom: calc(1rem + 112px + env(safe-area-inset-bottom, 0px)); }
  /* Untere Navigation */
  .mshell-tabbar { padding-left: 8px; padding-right: 8px; }
  .mshell-tab, .mshell-tabbar .mshell-tab span { font-size: 12px !important; }
  /* R43b (D-2075): leere Hinweiszeile in der Fußleiste belegt keine Höhe, Textlinks gleich gezeichnet */
  .uw .sw-foot-inner .uw-reason:empty { display: none !important; }
  .uw .sw-foot-inner .uw-textbtn, .uw .sw-foot-inner a.uw-textbtn { text-decoration: underline; }
}
@media (pointer: coarse) {
  .docs-check-row, label.checkbox-row, .doc-row input[type="checkbox"] + label, .bk-check { min-height: 44px; }
  .doc-row input[type="checkbox"] { width: 24px; height: 24px; }
}

/* R43-06: Neuigkeiten, Zeitleiste klebt, Sprungmarken mit Abstand */
.news-version-head, .news-folded-version, .news-entry { scroll-margin-top: 80px; }
.news-entry-folded { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news-jump { position: sticky; top: 72px; align-self: start; }

/* D-2075 */
/* D-2036: ersetzt in R44 durch die Zustandsklasse is-vendor-open (r44.css) */
.list-seg-bar > .list-seg-action { border: 0; background: none; text-decoration: underline; padding: 0 .5rem; min-height: 44px; color: #0E1115; box-shadow: none; }
