#cashCutSelectionDialog { width: max-content; min-width: min(650px,calc(100vw - 24px)); max-width: min(1180px,calc(100vw - 24px)); height: fit-content; min-height: 0; max-height: calc(100dvh - 32px); padding: 20px; box-sizing: border-box; margin: auto; inset: 0; border: 1px solid var(--border,#d4dfdb); border-radius: 8px; background: var(--bg-surface,#fff); color: var(--text-1,#203630); overflow: auto; }
#cashCutSelectionDialog::backdrop { background: #0009; }
#cashCutSelectionDialog form { display: grid; gap: 16px; }
#cashCutSelectionDialog header, #cashCutSelectionDialog footer { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
#cashCutSelectionDialog h2 { margin: 0; font-size: 22px; }
#cashCutSelectionDialog .cash-cut-selection-scroll { max-height: 52dvh; overflow: auto; }
#cashCutSelectionDialog table { width: 100%; min-width: 0; border-collapse: collapse; }
#cashCutSelectionDialog th, #cashCutSelectionDialog td { padding: 10px 12px; border-bottom: 1px solid var(--border,#d4dfdb); color: var(--text-1,#203630); background: var(--bg-surface,#fff); }
#cashCutSelectionDialog th { color: var(--text-2,#53645f); font-size: 12px; }
#cashCutSelectionDialog td small { display: block; color: var(--text-2,#53645f); }
#cashCutSelectionDialog .cash-cut-select-all { display: flex; align-items: center; gap: 10px; }
#cashCutSelectionDialog input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; }
#cashCutSelectionDialog textarea { display: block; box-sizing: border-box; width: 100%; background: var(--bg-surface,#fff); color: var(--text-1,#203630); border: 1px solid var(--border,#d4dfdb); padding: 10px; border-radius: 6px; }
#cashCutSelectionDialog button { font: inherit; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border,#d4dfdb); color: var(--text-1,#203630); background: var(--bg-surface,#fff); cursor: pointer; }
#cashCutSelectionDialog button.primary { background: #c34619; color: #fff7f2; }
#cashCutSelectionDialog button:disabled { opacity: .5; cursor: default; }
#cashCutSelectionDialog header button { width: 38px; height: 38px; padding: 0; flex-shrink: 0; }
#cashCutSelectionDialog footer strong, #cashCutSelectionDialog footer span { display: block; }
#cashCutSelectionDialog footer strong { font-size: 22px; }
#cashCutSelectionError { margin: 0; color: var(--warn,#9b5000); }
@media(max-width:600px) {
  #cashCutSelectionDialog { width: calc(100vw - 24px); padding: 14px; }
  #cashCutSelectionDialog h2 { font-size: 19px; }
  #cashCutSelectionDialog thead { display: none; }
  #cashCutSelectionDialog tbody { display: grid; gap: 10px; }
  #cashCutSelectionDialog tr { display: grid; grid-template-columns: 32px minmax(0,1fr) minmax(80px,auto); gap: 6px; padding: 10px; border: 1px solid var(--border,#d4dfdb); border-radius: 6px; }
  #cashCutSelectionDialog td { display: block; width: auto; min-width: 0; border: 0; padding: 0; overflow-wrap: anywhere; text-align: left; }
  #cashCutSelectionDialog td::before { display: none; content: none; }
  #cashCutSelectionDialog td:nth-child(1) { grid-column: 1; grid-row: 1/4; }
  #cashCutSelectionDialog td:nth-child(2) { grid-column: 2; }
  #cashCutSelectionDialog td:nth-child(3) { grid-column: 3; font-size: 12px; }
  #cashCutSelectionDialog td:nth-child(4),#cashCutSelectionDialog td:nth-child(5) { grid-column: 2; }
  #cashCutSelectionDialog td:nth-child(6) { grid-column: 3; grid-row: 2/4; }
  #cashCutSelectionDialog footer { flex-wrap: wrap; }
  #cashCutSelectionDialog footer div { flex: 1 0 100%; }
  #cashCutSelectionDialog footer .primary { flex: 1; }
}
