/* Redesign Runde 49 (2.114.0). Copyright © Fabian Stamminger @ The Platform Group */

/* R49-02 (D-2339): Hilfe-Link steht neben der Überschrift, nicht in ihr (help-hoist.js) */
.ph-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; min-width: 0; margin: 0 0 .25rem; }
.ph-titlerow > h1, html body .page-head .ph-titlerow > .page-title { margin: 0; min-width: 0; }
.ph-titlerow > .page-help-link { margin-left: 0; flex: none; }

/* R49-02 (D-2327): auf dem Handy trägt der Primärknopf die Zahl, die Kachel "Zu prüfen" entfällt */
@media (max-width: 599px) {
  #dashKpis .dash-kpi[data-kpi="review"] { display: none; }
}
/* R49-02 (D-2328): Dashboard-Zeilen 56 px, Kacheluntertexte einzeilig (Tooltip trägt den ganzen Text) */
html body .dash-waiting-item { min-height: 56px; padding-top: 6px; padding-bottom: 6px; box-sizing: border-box; }
@media (min-width: 768px) { html body .dash-waiting-item { height: 56px; padding-top: 0; padding-bottom: 0; } }
html body .dash-waiting-item .dash-waiting-vendor { min-height: 0 !important; }
html body .dash-kpi-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.25rem; }

/* R49-02 (D-2329): Spalte "Unternehmen" in Zu prüfen, sobald Belege mehrerer Unternehmen enthalten sind */
.rl-co { min-width: 0; }
.rl-co-badge { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: #F5F6F8; border: 1px solid #D8DCE4; color: #333840; font-size: .8125rem; font-weight: 600; }
.rl-co-m { display: none; }
.rl-host.has-co .rl-head, .rl-host.has-co .rl-row { grid-template-columns: minmax(200px, 2.2fr) minmax(130px, 1.2fr) minmax(100px, 1fr) minmax(110px, 1fr) minmax(100px, 1fr) minmax(70px, .6fr) 96px; }
@media (max-width: 767px) {
  .rl-host.has-co .rl-row { grid-template-columns: 1fr auto; }
  .rl-host.has-co .rl-co { display: none; }
  .rl-host.has-co .rl-co-m { display: block; font-size: .8125rem; color: var(--orlop-muted-text, #565C67); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* R49-03 (D-2341): Betrag rechtsbündig mit Hinweis-Chips darunter, nie ineinander */
html body .documents-grid .doc-table .doc-row .dr-amount { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
html body .documents-grid .doc-table .doc-row .dr-amount .dr-amt-chip { font-size: .75rem; line-height: 1.2; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid #D8DCE4; background: #F5F6F8; color: #333840; white-space: nowrap; }
html body .documents-grid .doc-table .doc-row .dr-amount .dr-amt-credit { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }

/* R49-03 (D-2342): eine Häkchen-Komponente .of-check: 18 px sichtbar, 44 px Klickfläche, Markenfokus, deaktivierte Variante */
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"] { width: 18px; height: 18px; background-size: 12px 12px; border-radius: 5px; }
html body .dr-sel input[type="checkbox"], html body .dr-selhead input[type="checkbox"], html body .doc-selall-m input[type="checkbox"] { width: 18px; height: 18px; }
html body label.of-check-cell { min-width: 44px; min-height: 44px; }
html body .dr-sel.of-check-cell, html body .dr-selhead.of-check-cell { width: 44px; min-width: 44px; }
input[type="checkbox"].of-check-input:disabled, label.of-check-cell > input[type="checkbox"]:disabled { background-color: #F5F6F8; border-color: #D8DCE4; cursor: not-allowed; opacity: 1; }
label.of-check-cell:has(> input:disabled) { cursor: not-allowed; }
input[type="checkbox"].of-check-input:focus-visible, label.of-check-cell > input:focus-visible { outline: 2px solid #0E1115; outline-offset: 2px; box-shadow: none; }

/* R49-05 (D-2326): Zahlungen, Leerzustand erklärt den Unterschied */
.pay-gap { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem; margin: 0 0 1rem; border: 1px solid #D8DCE4; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14,17,21,.04), 0 4px 14px rgba(14,17,21,.04); }
.pay-gap h2 { margin: 0; font-size: 1.125rem; font-weight: 900; letter-spacing: -.01em; }
.pay-gap p { margin: 0; color: #333840; }
.pay-gap ul { margin: 0; padding-left: 1.1rem; }
.pay-gap .pay-gap-go { align-self: flex-start; min-height: 44px; }
.pay-steps-list { margin: .5rem 0 0; padding-left: 1.25rem; color: #333840; }

/* R49-06 (D-2338): Kürzel hinter "?"-Popover */
.rv-keys-pop { position: relative; display: inline-block; }
.rv-keys-btn { min-width: 44px; min-height: 44px; border: 1px solid #D8DCE4; border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; color: #0E1115; }
.rv-keys-card { position: absolute; z-index: 30; right: 0; top: calc(100% + 4px); width: min(320px, calc(100vw - 32px)); padding: .75rem 1rem; border: 1px solid #D8DCE4; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(14,17,21,.14); font-size: .8125rem; line-height: 1.6; }
.rv-keys-card[hidden] { display: none; }
.rv-keys-card kbd { font: inherit; font-size: .75rem; border: 1px solid #D8DCE4; border-bottom-width: 2px; border-radius: 4px; padding: 0 .35rem; background: #fff; color: #0E1115; }
.pay-reload { width: auto; padding: 0 14px; gap: .4rem; }
.pay-reload .pay-reload-text { font-weight: 600; }
html body .ph-icon-btn.pay-reload { width: auto; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
