/* R9b (v2.73.0): Dashboard-Kacheln als Links, Als Nächstes, Zahlungen, Exporte. Copyright © Fabian Stamminger @ The Platform Group */
:root { --orlop-ink: #0E1115; }

/* Dashboard */
.r9b-mobile { display: none; }
@media (max-width: 768px) { .r9b-desktop { display: none; } .r9b-mobile { display: inline; } .dash-drop-hint { display: none; } }
a.stat-card.step-tile { position: relative; padding-right: 2.25rem; text-decoration: none; color: inherit; }
a.stat-card.step-tile:focus-visible { outline: 2px solid var(--orlop-ink); outline-offset: 2px; }
a.stat-card.step-tile:hover { border-color: var(--orlop-primary, #6B717C); }
.stat-chevron { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--orlop-primary, #6B717C); transition: transform .15s; }
a.stat-card:hover .stat-chevron, a.stat-card:focus-visible .stat-chevron { transform: translate(3px, -50%); color: var(--orlop-ink); }
@media (prefers-reduced-motion: reduce) { .stat-chevron { transition: none; } a.stat-card:hover .stat-chevron { transform: translateY(-50%); } }
.step-tile .stat-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { #tabDashboard .step-tile { padding-bottom: 1rem; } }
.dash-columns { align-items: stretch; }
.dash-columns > section { height: 100%; }
.dash-drop-hint { margin: .35rem 0 0; font-size: .8125rem; color: var(--orlop-text-2, #5B616B); text-align: right; }
.dash-next-head { list-style: none; margin: .75rem 0 .25rem; font-size: .8125rem; font-weight: 700; color: var(--orlop-text-2, #5B616B); }
.dash-next-item { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .75rem; align-items: center; padding: .5rem 0; border-top: 1px solid #D8DCE4; }
.dash-next-vendor { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-next-amount { font-variant-numeric: tabular-nums; }
.dash-next-due { color: var(--orlop-text-2, #5B616B); font-size: .875rem; }
.dash-next-go { text-decoration: none; white-space: nowrap; }
.dash-next-all { list-style: none; padding-top: .5rem; }
@media (max-width: 640px) { .dash-next-item { grid-template-columns: minmax(0, 1fr) auto; } .dash-next-due { grid-column: 1; } .dash-next-go { grid-column: 2; grid-row: 1 / span 2; } }

/* D-558: Knöpfe, die als Link gerendert werden, ohne Unterstreichung */
a[class*="btn"]:not([class*="link"]), a[class*="btn"]:not([class*="link"]):hover, a.tp-btn, a.tp-btn:hover { text-decoration: none; }

/* Zahlungen (R9b-03) */
.pay-row-actions { gap: .4rem; }
.pay-btn-paid { min-height: 36px; height: 36px; padding: 0 .9rem; background: #fff; color: var(--orlop-ink); border: 1px solid #6B717C; border-radius: 9999px; font-weight: 600; cursor: pointer; }
.pay-btn-paid:hover { background: #F5F6F8; }
.pay-more { position: relative; display: inline-block; }
.pay-more > summary { list-style: none; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; padding: 0 .9rem; border-radius: 9999px; border: 1px solid #D8DCE4; background: #fff; color: var(--orlop-ink); font-weight: 600; }
.pay-more > summary::-webkit-details-marker { display: none; }
.pay-more > summary:focus-visible, .pay-btn-paid:focus-visible { outline: 2px solid var(--orlop-ink); outline-offset: 2px; }
.pay-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 12rem; background: #fff; border: 1px solid #D8DCE4; border-radius: 12px; box-shadow: 0 8px 24px rgba(14,17,21,.12); padding: .25rem; display: flex; flex-direction: column; }
.pay-more-item { text-align: left; background: transparent; border: 0; padding: .55rem .75rem; border-radius: 8px; font: inherit; cursor: pointer; color: var(--orlop-ink); }
.pay-more-item:hover, .pay-more-item:focus-visible { background: #F5F6F8; }
.pay-row { cursor: pointer; }
.pay-row:hover { background: #FAFAFB; }
.pay-row td { padding-top: .4rem !important; padding-bottom: .4rem !important; vertical-align: middle !important; }
.pay-inv { display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: baseline; }
.pay-chip-warn { display: inline-block; padding: .1rem .55rem; border-radius: 9999px; background: #FEF3C7; color: #92400E; font-size: .75rem; font-weight: 600; }
.pay-link { color: inherit; text-decoration: underline; font-size: .8125rem; }
.pay-selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 1rem; background: var(--orlop-ink); 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); }
.pay-selbar-sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-selbar-clear { background: transparent; border: 0; color: #D8DCE4; text-decoration: underline; cursor: pointer; font: inherit; }
.pay-selbar-go { background: #fff; color: var(--orlop-ink); border: 0; border-radius: 9999px; padding: .55rem 1.1rem; font-weight: 700; cursor: pointer; min-height: 40px; }
.pay-selbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pay-short { display: none; }
@media (max-width: 640px) {
  .pay-tiles { display: flex !important; overflow-x: auto; gap: .5rem; scroll-snap-type: x proximity; padding-bottom: .25rem; }
  .pay-tile { flex: 0 0 auto; width: auto !important; min-width: 8.5rem; scroll-snap-align: start; }
  .pay-tile-sub2 { display: none; }
  .pay-tabs { display: none !important; }
  .pay-long { display: none; }
  .pay-short { display: inline; }
  .pay-selbar { left: 16px; right: 16px; transform: none; border-radius: 16px; flex-wrap: wrap; justify-content: space-between; }
}


/* Login (R9b-04) */
.auth-card .form-group input { border: 1px solid var(--orlop-field-border, #6B717C); }
.auth-card .form-group label { font-weight: 600; }
#btnLogin { background: var(--orlop-ink); color: #fff; border: 1px solid var(--orlop-ink); border-radius: 9999px; }
#btnLogin:hover { background: #333840; }
#ssoButton { background: #fff; color: var(--orlop-ink); border: 1px solid var(--orlop-ink); border-radius: 9999px; }
#ssoButton:hover { background: #F5F6F8; }
.dr-date.is-receipt { color: var(--orlop-text-2, #5B616B); font-style: italic; }
.doc-row .dr-status { padding-right: 16px; }

/* ---- R33-05: Auswahlleiste in Zahlungen liegt über der Tab-Leiste und der Fußzeile, nie darunter ---- */
@media (max-width: 767px) {
  .pay-selbar { bottom: calc(var(--mshell-h, 72px) + 8px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: space-between; }
  .pay-selbar-go { min-height: 44px; }
  .pay-selbar-clear { min-height: 44px; padding: 0 8px; }
  #tabPayments { padding-bottom: calc(var(--mshell-h, 72px) + 96px); }
}
@media (min-width: 768px) { .pay-selbar { bottom: calc(var(--footer-h, 48px) + 16px); } }
@media (max-width: 599px) {
  .pay-row input[type="checkbox"], .pay-row .of-check { min-width: 44px; min-height: 44px; }
  .pay-tiles { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible; }
  .pay-tile { width: auto !important; min-width: 0; }
}
