/* Live-Kasse: bewusst näher an der alten Kasse, kompakter für echten Betrieb */
.cash-live-page {
  background: #f4f6f9 !important;
}

.cash-live-page .page-shell {
  width: min(1100px, calc(100% - 36px));
  padding-top: 24px;
}

.cash-live-page .topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  margin: 0 0 18px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cash-live-page .topbar .eyebrow,
.cash-live-page .topbar .subtitle {
  display: none;
}

.cash-live-page .topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.05;
  color: #0f172a;
}

.cash-live-page .topnav {
  align-items: center;
}

.cash-live-page .topnav a,
.cash-live-page .button-link,
.cash-mini-btn,
.cash-mode-button,
.cash-product-button {
  border: 1px solid rgba(203, 213, 225, .95);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 750;
}

.cash-live-shell {
  display: grid;
  gap: 14px;
}

.cash-live-card,
.cash-live-kpis > .cash-kpi {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: none;
}

.cash-live-card {
  padding: 18px;
}

.cash-live-section-title,
.cash-active-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cash-live-section-title h2,
.cash-live-section-title h3,
.cash-active-card h2 {
  margin: 0;
}

.cash-active-card h2,
.cash-live-section-title h2 {
  font-size: 1.35rem;
}

.compact-title {
  align-items: center;
}

.cash-start-layout,
.cash-add-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 14px;
}

.cash-start-layout {
  align-items: center;
}

.cash-mode-group {
  display: flex;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.cash-mode-button {
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
}

.cash-mode-button.is-active,
.cash-primary-button {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
}

.cash-primary-button:hover,
.cash-mode-button.is-active:hover {
  background: #1d4ed8 !important;
}

.cash-field {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 170px;
  font-weight: 750;
}

.cash-field.compact {
  min-width: 205px;
}

.cash-field span {
  color: #475569;
  font-size: .78rem;
}

.cash-field input,
.cash-field select,
.cash-pay-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}

#cashTeamWrap[hidden],
[hidden] {
  display: none !important;
}

.cash-active-card {
  padding: 20px 18px 18px;
}



.cash-live-kpis-inside {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.cash-live-kpis-inside .cash-kpi {
  background: #f8fafc;
  border-color: #dbe3ee;
}

.cash-close-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}

.cash-warning {
  margin: 6px 0 0;
  color: #b91c1c;
  font-weight: 750;
}

.cash-muted {
  color: #64748b;
  font-weight: 650;
}

.cash-live-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cash-kpi {
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.cash-kpi span,
.cash-muted {
  color: #64748b;
  font-weight: 650;
}

.cash-kpi strong {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  color: #0f172a;
  line-height: 1.1;
}

.cash-pill,
.cash-row-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 850;
  background: #eef2f7;
  color: #334155;
}

.cash-pill.muted {
  background: #eef2f7;
  color: #334155;
}

.cash-row-pill {
  margin-left: 8px;
}

.cash-add-card {
  padding: 16px 18px;
  border-left: 4px solid #2563eb;
}

.cash-people-card {
  padding-bottom: 16px;
}

.cash-add-grid {
  margin-top: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}

.cash-search-field {
  min-width: min(360px, 100%);
  flex: 1 1 300px;
}

.cash-table-wrap {
  overflow-x: auto;
  margin-top: 0;
}

.cash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.cash-table th,
.cash-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.cash-table th {
  color: #475569;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cash-table td {
  color: #0f172a;
}

.cash-table td small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.cash-table tr.is-gone {
  opacity: .58;
}

.cash-open-cell {
  font-weight: 850;
  color: #b91c1c;
}

.cash-empty {
  text-align: center !important;
  color: #64748b;
  font-weight: 700;
}

.cash-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cash-mini-btn {
  padding: 7px 12px;
  font-size: .86rem;
  cursor: pointer;
}

.cash-mini-btn.ghost {
  background: #fff;
  color: #64748b;
}

.cash-mini-btn.ghost.danger {
  color: #b91c1c;
}

.cash-mini-btn:hover,
.cash-product-button:hover {
  border-color: #93c5fd;
  box-shadow: none;
}

.cash-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  display: grid;
  gap: 4px;
  z-index: 25;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.cash-suggest-item {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.cash-suggest-item:hover {
  background: #eff6ff;
}

.cash-suggest-item span {
  color: #64748b;
  font-size: .82rem;
}

.cash-league-card {
  padding: 16px 18px;
}

.cash-modal[hidden] {
  display: none;
}

.cash-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}

.cash-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(15, 23, 42, .24);
}

.cash-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.cash-modal-head h2 {
  margin: 0;
}

.cash-modal-body {
  padding: 18px;
}

.cash-product-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.cash-product-group h3 {
  margin: 0 0 8px;
  font-size: .8rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cash-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.cash-product-button {
  min-height: 58px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 10px 8px;
  text-align: center;
  border-radius: 12px;
}

.cash-product-button strong {
  font-size: .95rem;
  line-height: 1.15;
}

.cash-product-button span {
  color: #64748b;
  font-weight: 800;
}

.cash-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cash-details-grid section,
.cash-pay-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.cash-details-grid h3 {
  margin: 0 0 10px;
}

.cash-detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .20);
}

.cash-detail-line.open {
  color: #b91c1c;
}

.cash-pay-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.cash-pay-box input {
  max-width: 180px;
}

.cash-live-notice {
  position: sticky;
  top: 10px;
  z-index: 40;
  padding: 11px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, .24);
  color: #1e3a8a;
  font-weight: 800;
  box-shadow: none;
}

.cash-live-notice[data-type="error"] {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, .24);
  color: #991b1b;
}

.cash-live-notice[data-type="ok"] {
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, .24);
  color: #065f46;
}

.cash-alert-box {
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
}

.cash-alert-box-error {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, .18);
}

.cash-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #dc2626;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.cash-alert-box h3 {
  margin: 0 0 8px;
  color: #991b1b;
  font-size: 1.35rem;
}

.cash-alert-box p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 600;
}

.cash-alert-summary {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(185, 28, 28, .14);
  color: #7f1d1d;
}

.cash-alert-summary strong {
  font-size: 1.15rem;
  color: #991b1b;
}

.cash-alert-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.small-action {
  padding: 8px 11px !important;
  font-size: .88rem;
}

.cash-inline-actions {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

@media (max-width: 900px) {
  .cash-live-page .page-shell {
    width: min(100% - 20px, 860px);
    padding-top: 12px;
  }

  .cash-live-page .topbar {
    align-items: center;
    margin-bottom: 14px;
  }

  .cash-live-page .topnav a {
    padding: 8px 12px;
  }

  .cash-active-grid,
  .cash-live-section-title {
    display: grid;
  }

  .cash-close-box {
    justify-content: flex-start;
  }

  .cash-live-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cash-live-page .page-shell {
    width: min(100% - 16px, 520px);
  }

  .cash-live-page .topbar h1 {
    font-size: 2rem;
  }

  .cash-live-card {
    padding: 15px;
    border-radius: 14px;
  }

  .cash-active-card h2,
  .cash-live-section-title h2 {
    font-size: 1.25rem;
  }

  .cash-live-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cash-kpi {
    padding: 12px;
  }

  .cash-kpi strong {
    font-size: 1.35rem;
  }

  .cash-start-layout,
  .cash-close-box,
  .cash-add-grid {
    display: grid;
  }

  .cash-field,
  .cash-field.compact {
    min-width: 0;
  }

  .cash-product-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-product-grid {
    grid-template-columns: 1fr;
  }
}


/* Update 156: Kasse optisch näher an alte Live-Kasse, aber mit v2-Farben */
.cash-active-card .cash-live-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cash-add-card .cash-live-section-title h2 {
  font-size: 1.2rem;
}

.cash-add-card .button-link {
  min-height: 42px;
}

.cash-people-card .cash-live-section-title {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .cash-active-card .cash-live-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cash-active-card .cash-live-kpis {
    grid-template-columns: 1fr 1fr;
  }
}


/* Update 157: Live-Buchung wie Altkasse über die ganze Zeile */
.cash-table tbody tr.is-bookable {
  cursor: pointer;
}
.cash-table tbody tr.is-bookable:hover td {
  background: rgba(37, 99, 235, .045);
}


.cash-action-row {
  justify-content: flex-start;
}
.cash-status-box {
  justify-content: flex-start;
}

/* Update 161: Tablet/iPad-Optimierung für Live-Kasse
   Hauptgerät ist häufig ein iPad im Hochformat. Deshalb wird die Kasse dort
   bewusst dichter dargestellt als die übrigen v2-Seiten. */
@media (min-width: 700px) and (max-width: 1024px) {
  .cash-live-page .page-shell {
    width: min(100% - 16px, 980px);
    padding-top: 10px;
  }

  .cash-live-page .topbar {
    margin-bottom: 10px;
    gap: 10px;
  }

  .cash-live-page .topbar h1 {
    font-size: 1.65rem;
    line-height: 1.05;
  }

  .cash-live-page .topnav a,
  .cash-live-page .button-link,
  .cash-mini-btn,
  .cash-mode-button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: .9rem;
  }

  .cash-live-shell {
    gap: 8px;
  }

  .cash-live-card,
  .cash-active-card,
  .cash-add-card,
  .cash-league-card {
    padding: 12px 14px;
    border-radius: 13px;
  }

  .cash-active-grid {
    display: grid;
    align-items: center;
    gap: 12px;
  }

  .cash-active-card h2,
  .cash-live-section-title h2 {
    font-size: 1.15rem;
  }

  .cash-live-section-title h3,
  .cash-add-card .cash-live-section-title h2 {
    font-size: 1rem;
  }

  .cash-close-box {
    justify-content: flex-end;
    gap: 8px;
  }

  .cash-field,
  .cash-field.compact {
    min-width: 0;
  }

  .cash-field input,
  .cash-field select,
  .cash-pay-box input {
    min-height: 36px;
    border-radius: 10px;
    padding: 0 10px;
    font-size: .92rem;
  }

  .cash-close-box .cash-field {
    width: 210px;
  }

  .cash-live-kpis-inside {
    margin-top: 12px;
    padding-top: 12px;
  }

  .cash-live-kpis,
  .cash-active-card .cash-live-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .cash-kpi {
    padding: 10px 12px;
    gap: 5px;
    border-radius: 12px;
  }

  .cash-kpi span,
  .cash-muted {
    font-size: .78rem;
  }

  .cash-kpi strong {
    font-size: 1.2rem;
  }

  .cash-add-grid {
    display: grid;
    gap: 8px;
    align-items: end;
    margin-top: 8px;
  }

  .cash-search-field {
    min-width: 0;
    flex: none;
  }

  .cash-table {
    min-width: 700px;
    font-size: .9rem;
  }

  .cash-table th,
  .cash-table td {
    padding: 8px 10px;
  }

  .cash-table td small {
    margin-top: 1px;
  }

  .cash-pill,
  .cash-row-pill {
    padding: 3px 9px;
    font-size: .72rem;
  }

  .cash-modal-card {
    width: min(94vw, 880px);
    max-height: 84vh;
    border-radius: 15px;
  }

  .cash-modal-head,
  .cash-modal-body {
    padding: 12px 14px;
  }

  .cash-product-button {
    min-height: 58px;
    padding: 9px;
    border-radius: 12px;
  }
}

@media (min-width: 700px) and (max-width: 840px) {
  .cash-add-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cash-add-grid .cash-search-field {
    grid-column: 1 / -1;
  }

  .cash-add-grid .button-link {
    width: 100%;
  }

  .cash-active-grid {
    grid-template-columns: 1fr;
  }

  .cash-close-box {
    justify-content: flex-start;
  }

  .cash-close-box .cash-field {
    width: min(240px, 100%);
  }
}


/* Update 163: Live-Kasse iPad-Bedienkopf kompakter
   - keine doppelte „Aktive Kasse“-Anzeige
   - kein Startgerät-Hinweis in der normalen Steueransicht
   - Start-/Schließbereich dichter in einer Zeile */
.cash-active-card .eyebrow {
  margin-bottom: 4px;
}

.cash-active-card #cashActiveTitle {
  font-size: 1.25rem;
  line-height: 1.15;
}

.cash-active-card #cashActiveSub[hidden] {
  display: none !important;
}

.cash-active-grid {
  align-items: center;
}

.cash-close-box .cash-field span {
  font-size: .76rem;
}

#cashAddGuestButton {
  white-space: nowrap;
}

@media (min-width: 700px) and (max-width: 1024px) {
  .cash-active-card {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cash-active-card .eyebrow {
    margin-bottom: 3px;
    font-size: .7rem;
  }

  .cash-active-card #cashActiveTitle {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .cash-active-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .cash-close-box {
    flex-wrap: nowrap;
    align-items: end;
  }

  .cash-close-box .cash-field {
    width: 205px;
  }

  .cash-close-box .cash-field span {
    font-size: .7rem;
  }

  .cash-close-box .cash-field input {
    min-height: 34px;
  }

  .cash-close-box .cash-primary-button {
    min-height: 34px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .cash-add-card .cash-live-section-title {
    margin-bottom: 0;
  }

  .cash-add-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  #cashAddGuestButton {
    min-width: 130px;
  }
}

@media (min-width: 700px) and (max-width: 760px) {
  .cash-active-card #cashActiveTitle {
    white-space: normal;
  }

  .cash-active-grid {
    grid-template-columns: 1fr;
  }

  .cash-close-box {
    justify-content: flex-start;
  }
}

/* Update 164: Hinzufügen/Anwesende kompakter für iPad-Betrieb */
.cash-add-card {
  padding-top: 10px;
  padding-bottom: 10px;
}

.cash-add-grid-compact {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  margin-top: 0;
}





.cash-people-title {
  align-items: center;
  margin-bottom: 8px;
}

.cash-title-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cash-title-inline .eyebrow,
.cash-title-inline h2 {
  margin: 0;
}

.cash-title-inline .eyebrow {
  line-height: 1;
}

.cash-title-inline h2 {
  font-size: 1.2rem;
}

.cash-people-title #cashLoadTrainingButton {
  min-height: 34px;
  padding: 0 14px;
}

@media (min-width: 700px) and (max-width: 900px) {
  .cash-add-card {
    padding: 9px 14px;
  }

  .cash-add-grid-compact {
    grid-template-columns: minmax(240px, 1fr) auto;
  }

  .cash-add-grid-compact .cash-search-field {
    grid-column: auto;
  }

  .cash-add-grid-compact .button-link {
    width: auto;
  }

  .cash-people-title {
    flex-wrap: nowrap;
  }

  .cash-people-title #cashLoadTrainingButton {
    margin-left: auto;
  }
}

@media (max-width: 699px) {
  .cash-add-grid-compact {
    grid-template-columns: 1fr;
  }

  .cash-add-grid-compact .button-link,
  .cash-people-title #cashLoadTrainingButton {
    width: 100%;
  }

  .cash-people-title,
  .cash-title-inline {
    flex-wrap: wrap;
  }
}

/* Update 165: Anwesende-Toolbar noch kompakter, Lade-/Zahlungsbutton in einer Zeile */
.cash-people-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cash-title-inline-small {
  gap: 7px;
}

.cash-title-inline-small .eyebrow {
  font-size: .72rem;
  letter-spacing: .12em;
}

.cash-title-inline-small h2 {
  font-size: 1.05rem;
  line-height: 1.1;
}

.cash-pill.small-pill {
  min-width: 24px;
  padding: 2px 8px;
  font-size: .72rem;
  line-height: 1.35;
}

.cash-people-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.cash-people-actions .button-link {
  min-height: 32px;
  padding: 0 12px;
  font-size: .82rem;
  white-space: nowrap;
}

@media (min-width: 700px) and (max-width: 900px) {
  .cash-people-toolbar {
    flex-wrap: nowrap;
  }

  .cash-people-actions {
    gap: 6px;
  }

  .cash-people-actions .button-link {
    padding: 0 10px;
    font-size: .78rem;
  }
}

@media (max-width: 699px) {
  .cash-people-toolbar {
    flex-wrap: wrap;
  }

  .cash-people-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cash-people-actions .button-link {
    flex: 1 1 auto;
  }
}


/* Update 167: Zahlungsbereich mit Mehrfachauswahl */
.cash-payment-box {
  display: grid;
  gap: 12px;
}

.cash-payment-list {
  display: grid;
  gap: 7px;
  max-height: min(52vh, 480px);
  overflow: auto;
  padding-right: 2px;
}

.cash-payment-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
}

.cash-payment-person input {
  width: 18px;
  height: 18px;
}

.cash-payment-person span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cash-payment-person small {
  color: var(--muted, #64748b);
  font-size: .78rem;
}

.cash-payment-person b {
  white-space: nowrap;
}

.cash-payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .16);
}

.cash-payment-summary strong {
  font-size: 1.25rem;
}

.cash-payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.cash-payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 699px) {
  .cash-payment-person {
    grid-template-columns: auto 1fr;
  }
  .cash-payment-person b {
    grid-column: 2;
  }
  .cash-payment-actions .button-link {
    flex: 1 1 auto;
  }
}


/* Update 168: Zahlungsfenster kompakter + Teilzahlung */
.cash-payment-list-compact {
  gap: 5px;
  max-height: min(44vh, 390px);
}

.cash-payment-person-compact {
  grid-template-columns: auto minmax(0, 1fr) 92px;
  padding: 6px 8px;
  border-radius: 11px;
  gap: 8px;
}

.cash-payment-person-compact .cash-payment-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cash-payment-person-compact .cash-payment-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-payment-person-compact .cash-payment-name small {
  white-space: nowrap;
}

.cash-payment-amount-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
}

.cash-payment-amount {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 10px;
  padding: 0 8px;
  text-align: right;
  font: inherit;
  font-weight: 750;
  background: #fff;
}

.cash-payment-amount-wrap small {
  color: var(--muted, #64748b);
  font-size: .8rem;
  font-weight: 750;
}

.cash-payment-summary-compact {
  padding: 8px 10px;
  border-radius: 11px;
}

.cash-payment-summary-compact strong {
  font-size: 1.05rem;
}

@media (max-width: 699px) {
  .cash-payment-person-compact {
    grid-template-columns: auto minmax(0, 1fr) 86px;
  }

  .cash-payment-person-compact .cash-payment-name {
    display: grid;
    gap: 1px;
  }
}


/* Update 169: Zahlungszeilen korrekt bedienbar machen */
.cash-payment-box {
  max-width: 760px;
  margin: 0 auto;
}

.cash-payment-person-compact {
  grid-template-columns: 18px minmax(0, 1fr) 118px;
  align-items: center;
  overflow: hidden;
}

.cash-payment-person-compact input.cash-payment-check {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  box-sizing: border-box;
}

.cash-payment-person-compact .cash-payment-name {
  min-width: 0;
  overflow: hidden;
}

.cash-payment-person-compact .cash-payment-name small {
  font-size: .74rem;
}

.cash-payment-amount-wrap {
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) 14px;
}

.cash-payment-person-compact input.cash-payment-amount,
.cash-payment-person input.cash-payment-amount {
  width: 96px;
  min-width: 0;
  max-width: 96px;
  height: 30px;
  min-height: 30px;
  padding: 0 7px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 9px;
  text-align: right;
  font: inherit;
  font-weight: 750;
  background: #fff;
}

.cash-payment-person-compact .cash-payment-amount-wrap small {
  display: inline-block;
  width: 14px;
  text-align: right;
  color: var(--muted, #64748b);
  font-size: .78rem;
  font-weight: 750;
}

@media (max-width: 699px) {
  .cash-payment-box {
    max-width: none;
  }
  .cash-payment-person-compact {
    grid-template-columns: 18px minmax(0, 1fr) 106px;
  }
  .cash-payment-amount-wrap {
    width: 106px;
    min-width: 106px;
    max-width: 106px;
  }
  .cash-payment-person-compact input.cash-payment-amount,
  .cash-payment-person input.cash-payment-amount {
    width: 84px;
    max-width: 84px;
  }
}

/* Update 170: Zahlungsfenster schmaler, Schließen-Button normalisieren, PIN-Einstieg */
.cash-modal[data-mode="payment"] .cash-modal-card {
  width: min(720px, calc(100% - 24px));
}

.cash-modal-head [data-close-modal] {
  width: auto !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cash-modal[data-mode="payment"] .cash-modal-head {
  align-items: flex-start;
}

.cash-payment-box,
.cash-payment-unlock {
  max-width: 620px;
  margin: 0 auto;
}

.cash-payment-unlock {
  display: grid;
  gap: 12px;
}

.cash-payment-unlock .cash-payment-pin-field {
  width: min(360px, 100%);
  min-width: 0;
}

.cash-payment-unlock .cash-payment-pin-field input {
  width: 100%;
}

.cash-payment-unlock .cash-payment-actions {
  justify-content: flex-end;
}

@media (min-width: 700px) and (max-width: 1024px) {
  .cash-modal[data-mode="payment"] .cash-modal-card {
    width: min(92vw, 680px);
  }
}

@media (max-width: 699px) {
  .cash-modal[data-mode="payment"] .cash-modal-card {
    width: min(100%, calc(100vw - 18px));
  }
  .cash-payment-box,
  .cash-payment-unlock {
    max-width: none;
  }
}


/* Update 172: Zahlungs-PIN-Zeile kompakter und Passwortmanager-Hinweis vermeiden */
.cash-payment-unlock {
  max-width: 620px;
  margin: 0 auto;
}

.cash-payment-unlock-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cash-payment-unlock .cash-payment-pin-field {
  flex: 0 1 280px;
  width: 280px;
  max-width: 100%;
}

.cash-payment-unlock .cash-payment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 0;
}

.cash-payment-unlock .cash-payment-actions .button-link {
  min-height: 36px;
  padding: 0 16px;
}

.cash-payment-unlock > .cash-muted {
  margin-top: 8px;
}

@media (max-width: 699px) {
  .cash-payment-unlock-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cash-payment-unlock .cash-payment-pin-field {
    width: 100%;
  }
  .cash-payment-unlock .cash-payment-actions {
    justify-content: flex-end;
  }
}

/* Update 173: Korrekturmodus */
.cash-people-actions .small-action.is-active {
  border-color: rgba(37, 99, 235, .55);
  background: #dbeafe;
  color: #1d4ed8;
}

.cash-correction-unlock .cash-payment-unlock-row {
  align-items: end;
}

.cash-mini-btn:disabled,
.cash-mini-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .45;
  background: #f8fafc;
  color: #94a3b8;
  border-color: #dbe3ef;
}

.cash-table tr.is-gone .cash-mini-btn:disabled:hover,
.cash-table tr.is-gone .cash-mini-btn[aria-disabled="true"]:hover {
  border-color: #dbe3ef;
  box-shadow: none;
}


@media (max-width: 900px) {
  .cash-product-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cash-product-groups {
    grid-template-columns: 1fr;
  }
}



.cash-booking-confirm {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  opacity: 0;
  transition: opacity .14s ease;
}

.cash-booking-confirm.is-visible {
  opacity: 1;
}

.cash-booking-confirm-card {
  width: min(520px, calc(100vw - 48px));
  padding: 42px 34px 34px;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  transform: translateY(10px) scale(.985);
  transition: transform .14s ease;
}

.cash-booking-confirm.is-visible .cash-booking-confirm-card {
  transform: translateY(0) scale(1);
}

.cash-booking-check {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #58d487;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}

.cash-booking-confirm h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 900;
}

.cash-booking-person {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 900;
}

.cash-booking-product {
  font-size: 1.08rem;
  font-weight: 900;
}

.cash-booking-confirm p {
  margin: 18px 0 0;
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}

.cash-booking-confirm p span {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cash-booking-confirm {
    padding: 18px;
  }
  .cash-booking-confirm-card {
    width: min(520px, calc(100vw - 36px));
    padding: 34px 24px 28px;
  }
}

/* Update 195: Zahlungs-Korrekturbuttons an normale v2-Buttons angleichen */
.cash-inline-actions .cash-inline-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: .82rem;
  line-height: 1;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
}

.cash-inline-actions .cash-inline-button.button-danger {
  background: rgba(185, 28, 28, .08);
  color: #991b1b;
  border-color: rgba(185, 28, 28, .22);
}

.cash-inline-actions .cash-inline-button:hover {
  border-color: #93c5fd;
}

.cash-inline-actions .cash-inline-button.button-danger:hover {
  border-color: rgba(185, 28, 28, .35);
}

/* Update 245: Zahlungsmodus live-sicher scrollbar machen
   Nur Zahlungsmodal: Kopf und Footer bleiben sichtbar, nur die Personenliste scrollt. */
.cash-modal[data-mode="payment"] {
  align-items: center;
}

.cash-modal[data-mode="payment"] .cash-modal-card {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 860px);
  overflow: hidden;
}

.cash-modal[data-mode="payment"] .cash-modal-head {
  flex: 0 0 auto;
}

.cash-modal[data-mode="payment"] .cash-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cash-modal[data-mode="payment"] .cash-payment-box {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cash-modal[data-mode="payment"] .cash-payment-list,
.cash-modal[data-mode="payment"] .cash-payment-list-compact {
  flex: 1 1 auto;
  max-height: none;
  padding-right: 6px;
}

.cash-modal[data-mode="payment"] .cash-payment-summary,
.cash-modal[data-mode="payment"] .cash-payment-summary-compact,
.cash-modal[data-mode="payment"] .cash-payment-option,
.cash-modal[data-mode="payment"] .cash-payment-actions,
.cash-modal[data-mode="payment"] .cash-muted {
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .cash-modal[data-mode="payment"] {
    padding: 10px;
  }

  .cash-modal[data-mode="payment"] .cash-modal-card {
    max-height: 94vh;
  }

  .cash-modal[data-mode="payment"] .cash-modal-body {
    padding: 14px;
  }
}

/* Update 246: Getränke-Buchungsmodal nach Update 245 wieder kompakt halten.
   Bewusst nicht für das Zahlungsmodal, damit der Scroll-Fix dort bestehen bleibt. */
@media (min-width: 680px) and (max-width: 1024px) {
  .cash-modal:not([data-mode="payment"]) .cash-modal-card {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-grid {
    gap: 7px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-group h3 {
    margin-bottom: 6px;
    font-size: .72rem;
    letter-spacing: .07em;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-button {
    min-height: 48px;
    padding: 7px 6px;
    border-radius: 10px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-button strong {
    font-size: .86rem;
    line-height: 1.08;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-button span {
    font-size: .76rem;
    line-height: 1.05;
  }
}

@media (min-width: 680px) and (max-height: 760px) {
  .cash-modal:not([data-mode="payment"]) {
    padding: 8px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-modal-card {
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .cash-modal:not([data-mode="payment"]) .cash-modal-head,
  .cash-modal:not([data-mode="payment"]) .cash-modal-body {
    padding: 10px 12px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-groups {
    gap: 9px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-grid {
    gap: 6px;
  }

  .cash-modal:not([data-mode="payment"]) .cash-product-button {
    min-height: 44px;
    padding: 6px;
  }
}


/* Update 248: Ligakasse - Person hinzufügen kompakt in einer Zeile */
.cash-add-grid.cash-add-grid-compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
}

.cash-add-grid-compact .cash-search-field {
  position: relative;
  flex: 1 1 360px;
  min-width: 220px;
  max-width: 520px;
}

.cash-add-grid-compact .button-link {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cash-add-grid-compact .cash-suggest {
  max-height: 230px;
}

@media (max-width: 640px) {
  .cash-add-grid.cash-add-grid-compact {
    flex-wrap: wrap;
  }

  .cash-add-grid-compact .cash-search-field {
    flex: 1 1 100%;
    max-width: none;
  }
}


/* Update 279: Offene Beträge im Zahlungsfenster nachvollziehbarer anzeigen */
.cash-payment-person-compact .cash-payment-name {
  display: grid;
  gap: 1px;
  align-items: center;
}

.cash-payment-person-compact .cash-payment-open-label {
  font-weight: 800;
  color: #1e40af;
}

.cash-payment-person-compact .cash-payment-breakdown {
  white-space: normal;
  line-height: 1.25;
  color: var(--muted, #64748b);
}

@media (max-width: 699px) {
  .cash-payment-person-compact .cash-payment-breakdown {
    font-size: .72rem;
  }
}

.cash-detail-line small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #64748b);
  font-size: .82em;
  font-weight: 500;
}

.cash-detail-line.credit {
  color: #15803d;
}


/* Update 336: Personen, die bereits in der Kasse sind, in der Suche nur noch als Hinweis zeigen. */
.cash-suggest-item.is-disabled,
.cash-suggest-item:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.cash-suggest-item.is-disabled strong,
.cash-suggest-item:disabled strong {
  color: var(--text-muted, #64748b);
}

/* Update 346: Freiverzehr-Sonderposition */
.cash-table tr.cash-free-row {
  background: #fff8df;
  border-left: 4px solid #d6a700;
}
.cash-table tr.cash-free-row td:first-child strong {
  display: inline-block;
}
.cash-row-pill-free {
  background: #f4d35e;
  color: #3b2b00;
}
.cash-free-rest {
  font-weight: 800;
}

.cash-league-close-check {
  display: grid;
  gap: 14px;
}

.cash-league-match-list {
  display: grid;
  gap: 10px;
}

.cash-league-match-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
}

.cash-league-match-option.is-fixed {
  background: #f8fafc;
}

.cash-league-match-option input {
  margin-top: 4px;
}

.cash-league-match-option span {
  display: grid;
  gap: 4px;
}

.cash-league-match-option small {
  color: #64748b;
  font-weight: 700;
}

.cash-league-match-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: .78rem;
  font-weight: 900;
}

/* Update 171: Kassieren zeigt den tatsächlichen Bar-Rest nach Prepaid-Guthaben */
.cash-payment-person-compact {
  grid-template-columns: 18px minmax(0, 1fr) 132px;
}

.cash-payment-due-wrap {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  justify-items: end;
}

.cash-payment-due-label {
  font-size: .68rem;
  line-height: 1.1;
  color: var(--muted, #64748b);
  font-weight: 750;
  white-space: nowrap;
}

.cash-payment-due-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 4px;
  width: 118px;
}

.cash-payment-due-edit small {
  display: inline-block;
  width: 14px;
  text-align: right;
  color: var(--muted, #64748b);
  font-size: .78rem;
  font-weight: 750;
}

.cash-payment-summary-details {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 11px;
  background: rgba(248, 250, 252, .72);
}

.cash-payment-summary-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
}

.cash-payment-summary-details strong {
  white-space: nowrap;
}

.cash-payment-summary-due {
  padding: 10px 12px;
}

.cash-payment-summary-due span {
  font-weight: 800;
}

.cash-payment-summary-due strong {
  font-size: 1.2rem;
}

@media (max-width: 699px) {
  .cash-payment-person-compact {
    grid-template-columns: 18px minmax(0, 1fr) 112px;
  }
  .cash-payment-due-wrap {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
  }
  .cash-payment-due-edit {
    width: 106px;
  }
  .cash-payment-due-label {
    font-size: .64rem;
  }
}

/* Update 247: Zahlungsdialog bei vielen Personen kompakt und scrollbar.
   Nur die Personenliste scrollt; Summen, Optionen und Kassieren-Buttons bleiben sichtbar. */
.cash-modal[data-mode="payment"] .cash-payment-list,
.cash-modal[data-mode="payment"] .cash-payment-list-compact {
  max-height: min(48vh, 480px);
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 760px) {
  .cash-modal[data-mode="payment"] .cash-payment-list,
  .cash-modal[data-mode="payment"] .cash-payment-list-compact {
    max-height: 38vh;
  }
}

@media (max-width: 680px) {
  .cash-modal[data-mode="payment"] .cash-payment-list,
  .cash-modal[data-mode="payment"] .cash-payment-list-compact {
    max-height: 42vh;
  }
}

/* DEV 2026-10-10: Kassieren - nur Personenliste scrollt, unterer Bereich bleibt stehen */
.cash-modal[data-mode="payment"] .cash-payment-list,
.cash-modal[data-mode="payment"] .cash-payment-list-compact {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding-right: 8px;
}

.cash-modal[data-mode="payment"] .cash-payment-list::-webkit-scrollbar,
.cash-modal[data-mode="payment"] .cash-payment-list-compact::-webkit-scrollbar {
  width: 9px;
}

.cash-modal[data-mode="payment"] .cash-payment-list::-webkit-scrollbar-thumb,
.cash-modal[data-mode="payment"] .cash-payment-list-compact::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .45);
  border-radius: 999px;
}

.cash-modal[data-mode="payment"] .cash-payment-list::-webkit-scrollbar-track,
.cash-modal[data-mode="payment"] .cash-payment-list-compact::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, .10);
  border-radius: 999px;
}

.cash-modal[data-mode="payment"] .cash-payment-summary-details,
.cash-modal[data-mode="payment"] .cash-payment-summary,
.cash-modal[data-mode="payment"] .cash-payment-option,
.cash-modal[data-mode="payment"] .cash-payment-actions,
.cash-modal[data-mode="payment"] .cash-muted {
  flex: 0 0 auto;
}

@media (max-height: 760px) {
  .cash-modal[data-mode="payment"] .cash-payment-list,
  .cash-modal[data-mode="payment"] .cash-payment-list-compact {
    max-height: 280px;
  }
}

@media (max-width: 680px) {
  .cash-modal[data-mode="payment"] .cash-payment-list,
  .cash-modal[data-mode="payment"] .cash-payment-list-compact {
    max-height: 36vh;
  }
}

/* DEV 2026-10-10: Kassieren-Zeilen kompakter, Name und Gesamt-offen in einer Reihe */
.cash-modal[data-mode="payment"] .cash-payment-person-compact {
  padding-top: 4px;
  padding-bottom: 4px;
  min-height: 50px;
}

.cash-modal[data-mode="payment"] .cash-payment-person-compact .cash-payment-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cash-modal[data-mode="payment"] .cash-payment-person-compact .cash-payment-name strong {
  flex: 0 1 auto;
  min-width: 0;
}

.cash-modal[data-mode="payment"] .cash-payment-person-compact .cash-payment-open-label {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 520px) {
  .cash-modal[data-mode="payment"] .cash-payment-person-compact .cash-payment-name {
    gap: 5px;
  }
}

/* DEV 2026-10-10: Kassieren-Zeilen weiter verdichten */
.cash-modal[data-mode="payment"] .cash-payment-due-label {
  display: none;
}

.cash-modal[data-mode="payment"] .cash-payment-person-compact {
  min-height: 42px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.cash-modal[data-mode="payment"] .cash-payment-due-wrap {
  gap: 0;
}

.cash-modal[data-mode="payment"] .cash-payment-due-edit {
  align-items: center;
}

/* DEV 2026-10-10: Guthaben-Hinweis in Kassieren-Zeile */
.cash-modal[data-mode="payment"] .cash-payment-credit-label {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  color: #166534;
  font-weight: 850;
}

@media (max-width: 520px) {
  .cash-modal[data-mode="payment"] .cash-payment-credit-label {
    padding-inline: 5px;
    font-size: .72rem;
  }
}

/* DEV 2026-10-10: Aktuell bebuchte Person im Getränkedialog hervorheben */
.cash-modal[data-mode="booking"] #cashModalSub {
  margin: 5px 0 0;
}


/* DEV 2026-10-10: Zentrierter Name im Getränkebuchungsdialog */
.cash-modal[data-mode="booking"] .cash-current-booking-person {
  width: 100%;
  margin: -2px 0 14px;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

/* DEV 2026-10-10: Personenname im Kopf des Getränkebuchungsdialogs zentrieren */
.cash-modal[data-mode="booking"] .cash-modal-head {
  position: sticky;
}

.cash-modal[data-mode="booking"] #cashModalSub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.cash-modal[data-mode="booking"] .cash-current-booking-person {
  display: none;
}

@media (max-width: 620px) {
  .cash-modal[data-mode="booking"] #cashModalSub {
    max-width: 34%;
    font-size: 1.15rem;
  }
}

/* DEV 2026-10-10: Personenzeile klar in Buchen und Details trennen */
.cash-table tbody tr.is-bookable td:not(:last-child) {
  cursor: pointer;
}

.cash-table tbody tr.is-bookable td:last-child {
  cursor: default;
  padding-top: 6px;
  padding-bottom: 6px;
}

.cash-table .cash-action-row [data-action="details"] {
  min-width: 96px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 850;
}

@media (max-width: 1024px) {
  .cash-table .cash-action-row [data-action="details"] {
    min-width: 104px;
    min-height: 42px;
  }
}

/* DEV 2026-10-10: Details-Button in der Aktionsspalte rechtsbündig */
.cash-table td:last-child .cash-action-row {
  justify-content: flex-end;
  width: 100%;
}

.cash-table td:last-child {
  text-align: right;
}

/* DEV 2026-10-10: Sonderfunktionen in der Personen-Detailansicht */
.cash-special-modal[hidden] {
  display: none;
}

.cash-special-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cash-special-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
}

.cash-special-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(15, 23, 42, .28);
  overflow: hidden;
}

.cash-special-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.cash-special-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cash-special-body {
  padding: 16px;
}

.cash-special-form {
  display: grid;
  gap: 12px;
}

.cash-special-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 1.1rem;
  background: #fff;
}

.cash-special-submit {
  min-height: 46px;
}

.cash-special-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .18);
}

.cash-special-entry {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.cash-special-entry .button-link {
  min-height: 42px;
}

.cash-special-functions-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 14px;
  background: rgba(239, 246, 255, .55);
}

.cash-special-functions-title {
  margin-bottom: 10px;
  font-weight: 900;
}

.cash-special-functions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cash-special-functions-actions .button-link {
  min-height: 42px;
}

@media (max-width: 620px) {
  .cash-special-modal {
    padding: 10px;
  }

  .cash-special-card {
    width: min(100%, calc(100vw - 20px));
  }

  .cash-special-functions-actions .button-link {
    flex: 1 1 46%;
  }
}


/* DEV: Zahlungs-PIN-Fehler im geöffneten PIN-Dialog anzeigen */
.cash-payment-pin-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, .24);
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: .92rem;
  font-weight: 700;
}

.cash-payment-pin-error[hidden] {
  display: none;
}

.cash-product-pages { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.cash-product-pages .button-link { flex:1 1 135px; text-align:center; }


/* Nächste Version: Live-Kasse ein gemeinsamer Hinzufügen-Button.
   Touchflächen im Kassieren- und Guthaben-Dialog mindestens 44px;
   Listen-Scroll und fixierte Zusammenfassung bleiben unverändert. */
.cash-people-actions #cashPaymentButton,
.cash-modal[data-mode="payment"] .cash-payment-actions .button-link,
.cash-modal[data-mode="payment"] .cash-modal-head [data-close-modal],
.cash-special-modal .cash-special-submit {
  min-height: 44px !important;
  height: auto !important;
}

/* v2.7: kompakte Gruppen wie in der Trainingsübersicht */
.cash-table .cash-group-opponent { --cash-group-bg:#fff0e7; --cash-group-line:#e58a62; }
.cash-table .cash-group-guest { --cash-group-bg:#eaf2fe; --cash-group-line:#6e9de0; }
.cash-table .cash-group-player { --cash-group-bg:#edf7ed; --cash-group-line:#65b86b; }
.cash-table tbody .cash-person-group th {
  background:var(--cash-group-bg); color:#263247; text-align:left;
  font-size:.78rem; font-weight:800; letter-spacing:0; text-transform:none;
  padding:4px 10px; height:26px; line-height:17px; box-sizing:border-box;
  border-left:4px solid var(--cash-group-line); border-top:1px solid #dfe4eb;
  cursor:default;
}
.cash-table tbody .cash-person-member td:first-child {
  border-left:4px solid var(--cash-group-line);
}
.cash-active-card #cashActiveSub {
  font-size:.78rem; margin:4px 0 0; font-weight:600; line-height:1.3;
}
.cash-active-card .cash-active-grid > div:first-child { flex:1 1 200px; min-width:0; }
.cash-active-card .cash-close-box { flex:0 1 auto; gap:8px; align-items:end; flex-wrap:wrap; }
@media (max-width:699px) {
  .cash-active-card .cash-active-grid > div:first-child { flex-basis:auto; }
  .cash-active-card .cash-close-box { width:100%; display:flex; flex-wrap:wrap; justify-content:flex-start; }
  .cash-active-card .cash-close-box .cash-field { min-width:120px; width:auto; flex:1 1 130px; }
}

/* Kurze 3K-Aktion statt eines erläuternden Absatzes. */
.cash-3k-control { display:grid; gap:2px; justify-items:start; align-self:end; }
.cash-3k-control[hidden],.cash-3k-control [hidden] { display:none !important; }
.cash-3k-control small { font-size:.7rem; margin:0; line-height:1.25; max-width:210px; font-weight:600; }

/* Kassenkopf: alle drei Aktionen auf gleicher Höhe, ohne doppelte PIN-Beschriftung. */
.cash-active-card .cash-active-grid { align-items:center; }
.cash-active-card .cash-close-box { display:flex; align-items:center; gap:8px; }
.cash-active-card .cash-close-pin { min-width:0; width:132px; flex:0 1 132px; }
.cash-active-card .cash-close-pin input,
.cash-active-card #cashCloseButton,
.cash-active-card #league3kRefreshButton {
  min-height:40px; height:40px; box-sizing:border-box; margin:0;
}
.cash-active-card #cashCloseButton,
.cash-active-card #league3kRefreshButton { white-space:nowrap; padding:0 14px; }
.cash-active-card .cash-3k-control { display:flex; align-items:center; align-self:center; gap:6px; }
.cash-active-card #league3kDevHint { display:none !important; }
.cash-active-card .cash-3k-status:not([hidden]) { display:block; font-size:.75rem; margin-top:5px; }
.cash-active-card #cashActiveTitle { white-space:normal; }
@media (min-width:860px) {
  .cash-active-card .cash-close-box { flex-wrap:nowrap; }
}
@media (max-width:699px) {
  .cash-active-card .cash-close-pin { width:120px; min-width:100px; flex:0 1 120px; }
  .cash-active-card #cashCloseButton, .cash-active-card #league3kRefreshButton { padding:0 10px; }
}
