#dialog:has(.table-qr-batch) { width: min(calc(100% - 28px),1120px); }
.table-qr-batch { display: grid; grid-template-columns: minmax(260px,340px) minmax(0,1fr); gap: 20px; align-items: start; }
.table-qr-options { display: grid; gap: 14px; min-width: 0; }
.table-qr-options h3,.table-qr-preview h3 { font-size: 1rem; }
.table-qr-options .field { font-size: .875rem; }
.table-qr-options .field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.table-qr-options .field input,.table-qr-options .field select { min-height: 44px; font-size: 1rem; }
.table-qr-options .subtext { font-size: .8125rem; line-height: 1.5; }
.table-qr-selection { display: grid; gap: 10px; }
.table-qr-selection > .row-actions { gap: 5px; }
.table-qr-selection > .row-actions > strong { color: var(--muted); font-size: .8125rem; margin-left: auto; }
.table-qr-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 210px; overflow-y: auto; padding: 3px; }
.table-qr-choice { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 57px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.table-qr-choice[hidden] { display: none; }
.table-qr-choice:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.table-qr-choice input { flex: none; width: 18px; height: 18px; accent-color: var(--primary); }
.table-qr-choice > span { min-width: 0; overflow-wrap: anywhere; }
.table-qr-choice strong { display: block; font-size: .875rem; }
.table-qr-choice small { display: block; font-size: .75rem; color: var(--muted); }
.table-qr-checks { display: flex; gap: 12px; flex-wrap: wrap; font-size: .875rem; }
.table-qr-checks > label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.table-qr-checks input { width: 18px; height: 18px; accent-color: var(--primary); }
.table-qr-preview { position: sticky; top: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--subtle); }
.table-qr-preview-heading { display: grid; gap: 5px; padding: 13px; border-bottom: 1px solid var(--line); }
.table-qr-preview-heading .subtext { font-size: .875rem; }
.table-qr-preview-frame { display: block; width: 100%; height: min(70dvh,750px); min-height: 420px; border: 0; background: #e2e8f0; }
@media(max-width:720px) {
  #dialog:has(.table-qr-batch) { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .table-qr-batch { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .table-qr-preview { position: static; }
  .table-qr-preview-frame { height: 520px; min-height: 350px; }
}
