/* ==========================================================================
   Challan — print. Only the receipt prints; @page size is set at print time
   from the chosen paper (A4, Letter, 58/80 mm thermal, custom).
   ========================================================================== */
#print-root { display: none; }
@media print {
  html, body { overflow: visible !important; height: auto !important; background: #fff !important; margin: 0 !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  #print-root .rc { box-shadow: none !important; min-height: 0 !important; margin: 0; }
  #print-root .rc-items thead { display: table-header-group; }
  #print-root tr, #print-root .rc-summary, #print-root .rc-sign, #print-root .rc-foot { break-inside: avoid; }
}
