/* The same report controls become readable cards in the confirmation step.
   Keep one input per field; PC keeps its table for comparing many rows. */
@media (max-width: 600px) {
  #report-batch-form > .table-scroll,
  #report-batch-preview > .table-scroll { overflow: visible; min-width: 0; }
  #report-batch-form > .table-scroll > table,
  #report-batch-preview > .table-scroll > table { display: block; width: 100%; min-width: 0; max-width: 100%; }
  #report-batch-form > .table-scroll > table > thead,
  #report-batch-preview > .table-scroll > table > thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  #report-batch-form > .table-scroll > table > tbody,
  #report-batch-preview > .table-scroll > table > tbody { display: grid; gap: 12px; width: 100%; min-width: 0; }
  #report-batch-form > .table-scroll > table > tbody > tr,
  #report-batch-preview > .table-scroll > table > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; padding: 12px; border: 1px solid #dfe5ed; border-radius: 10px; }
  #report-batch-form > .table-scroll > table > tbody > tr > td,
  #report-batch-preview > .table-scroll > table > tbody > tr > td { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; width: 100%; max-width: 100%; padding: 2px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  #report-batch-form > .table-scroll > table > tbody > tr > td::before,
  #report-batch-preview > .table-scroll > table > tbody > tr > td::before { color: #65718a; font-size: 12px; font-weight: 600; }
  #report-batch-form > .table-scroll > table > tbody > tr > td:nth-child(1)::before { content: "任务"; }
  #report-batch-form > .table-scroll > table > tbody > tr > td:nth-child(2)::before { content: "员工"; }
  #report-batch-form > .table-scroll > table > tbody > tr > td:nth-child(3)::before { content: "工序"; }
  #report-batch-form > .table-scroll > table > tbody > tr > td:nth-child(4)::before { content: "扎号"; }
  #report-batch-form > .table-scroll > table > tbody > tr > td:nth-child(5)::before { content: "本次数量"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(1)::before { content: "员工"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(2)::before { content: "任务"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(3)::before { content: "工序"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(4)::before { content: "扎号"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(5)::before { content: "数量"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(6)::before { content: "该次可用余量"; }
  #report-batch-preview > .table-scroll > table > tbody > tr > td:nth-child(7)::before { content: "预计结果"; }
  #report-batch-form select,
  #report-batch-form input[type="number"] { box-sizing: border-box; width: 100% !important; min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }
  #report-batch-form .btn { min-height: 44px; white-space: normal; }
}
