/* Only cash dialogs and their information. No table/seat/card geometry. */
.cash-dialog[hidden], .cash-dialog [hidden],
html.cash-only [data-cash-menu] [hidden] { display: none !important; }
.cash-dialog {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cash-dialog-card { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; }
.cash-dialog .ld-title { padding-right: 24px; }
.cash-field { display: grid; gap: 6px; margin: 12px 0; color: var(--text-hi); }
.cash-field .cf-input { width: 100%; box-sizing: border-box; }
.cash-dialog .ld-body { overflow-wrap: anywhere; }
.cash-dialog-status:empty { display: none; }
/* Dialog button groups keep a readable grid in DOM/tab order. */
.cash-dialog .cash-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
  gap: 8px;
  margin-top: 16px;
}
.cash-dialog .cash-controls .ld-btn {
  min-height: 44px;
  padding-inline: 12px;
  white-space: nowrap;
  letter-spacing: normal;
}
.cash-menu-group {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vw, 7px);
}
.cash-ledger-scroll { overflow-x: auto; }
.cash-ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cash-ledger th, .cash-ledger td { padding: 8px 5px; text-align: right; border-bottom: 1px solid var(--border-hi); white-space: nowrap; }
.cash-ledger th:first-child { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.cash-history-list { display: grid; gap: 8px; }
.cash-history-room { display: grid; gap: 4px; text-align: left; }
.cash-history-room .cash-history-time { font-size: var(--fs-sm); font-weight: normal; letter-spacing: normal; overflow-wrap: anywhere; }

/* Same modal tier as the official dialogs, above managed chat/reaction windows. */
html.cash-only #leave-dialog { z-index: 1300; }

/* Restore the original Start button only while the cash controller exposes it. */
html.cash-only #admin-startnobots-btn[data-cash-start-visible="1"],
html.cash-only #admin-startnobots-mob[data-cash-start-visible="1"] { display: inline-flex !important; }
html.cash-only [data-cash-start-visible="0"] { display: none !important; }
