/* ThinkCharge controlled browser-print contract.
   Thermal-label output opts out through .tc-label-printing. */
@media print {
  @page { size: A4 landscape; margin: 18mm 12mm 16mm; }

  html,body.tc-app-body { width:auto!important; min-width:0!important; height:auto!important; overflow:visible!important; background:#fff!important; color:#173047!important; font:9pt/1.4 Arial,Helvetica,sans-serif!important; }
  body.tc-app-body:not(.tc-label-printing)::before { content:"THINKCHARGE  |  BATTERY ASSEMBLY OPERATIONS"; position:fixed; top:-12mm; left:0; right:0; display:block!important; padding:0 0 3mm; border-bottom:2px solid #0799ad; color:#0a3448; font-size:8pt; font-weight:700; letter-spacing:.08em; }
  body.tc-app-body:not(.tc-label-printing)::after { content:"Controlled system document  |  Printed from ThinkCharge"; position:fixed; right:0; bottom:-10mm; left:0; display:block!important; padding:3mm 0 0; border-top:1px solid #b9cbd4; color:#637b89; font-size:7pt; }

  body.tc-app-body:not(.tc-label-printing) :is(.tc-sidebar,.tc-topbar,.tc-footer,.tc-app-footer,.tc-sidebar-scrim,.tc-breadcrumbs,.tc-table-commandbar,.tc-dt-toolbar,.tc-dt-footer,.dt-buttons,.dataTables_filter,.dataTables_length,.dataTables_paginate,.pagination,.btn,.tc-context-actions,.tc-back-to-top,.tc-scroll-hint,.tc-display-panel,.tc-action-centre,.tc-help-centre,.modal,.offcanvas,.no-print,.tc-print-hide) { display:none!important; }
  body.tc-app-body:not(.tc-label-printing) :is(.tc-app-stage,.tc-main-content,.tc-page,.content-wrapper,.container-xxl) { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; background:#fff!important; color:#173047!important; }
  body.tc-app-body:not(.tc-label-printing) :is(.tc-panel,.card,.tc-page-head,.tc-legacy-head,.tc-command-hero,.tc-pack-hero,.tc-report-hero,.tc-dispatch-hero,.tc-form-section) { border:1px solid #cad8df!important; border-radius:0!important; background:#fff!important; color:#173047!important; box-shadow:none!important; break-inside:avoid; }
  body.tc-app-body:not(.tc-label-printing) :is(h1,h2,h3,h4,h5,h6,strong,b,p,small,label,span,td) { color:inherit!important; -webkit-text-fill-color:currentColor!important; text-shadow:none!important; }
  body.tc-app-body:not(.tc-label-printing) :is(.tc-page-head,.tc-legacy-head,.tc-command-hero,.tc-pack-hero,.tc-report-hero,.tc-dispatch-hero) { margin-bottom:5mm!important; padding:5mm!important; border-top:3px solid #0799ad!important; }
  body.tc-app-body:not(.tc-label-printing) :is(.tc-panel-head,.card-header,.tc-form-section__head) { padding:3mm 4mm!important; border-bottom:1px solid #cad8df!important; background:#eef6f8!important; }
  body.tc-app-body:not(.tc-label-printing) :is(.card-body,.accordion-body,.tab-content) { padding:4mm!important; background:#fff!important; }

  body.tc-app-body:not(.tc-label-printing) .table-responsive,
  body.tc-app-body:not(.tc-label-printing) .dataTables_scroll,
  body.tc-app-body:not(.tc-label-printing) .dataTables_scrollBody { width:100%!important; max-height:none!important; overflow:visible!important; border:0!important; background:#fff!important; }
  body.tc-app-body:not(.tc-label-printing) table { width:100%!important; border-collapse:collapse!important; table-layout:auto!important; font-size:7.5pt!important; }
  body.tc-app-body:not(.tc-label-printing) thead { display:table-header-group; }
  body.tc-app-body:not(.tc-label-printing) tfoot { display:table-footer-group; }
  body.tc-app-body:not(.tc-label-printing) tr { break-inside:avoid; page-break-inside:avoid; }
  body.tc-app-body:not(.tc-label-printing) th { padding:2.4mm!important; border:1px solid #17485d!important; background:#0b3b50!important; color:#fff!important; -webkit-text-fill-color:#fff!important; font-size:7pt!important; text-transform:uppercase; }
  body.tc-app-body:not(.tc-label-printing) td { padding:2.2mm!important; border:1px solid #ccd9df!important; background:#fff!important; color:#173047!important; }
  body.tc-app-body:not(.tc-label-printing) tbody tr:nth-child(even) td { background:#f4f8fa!important; }
  body.tc-app-body:not(.tc-label-printing) a { color:#075f73!important; text-decoration:none!important; }
  body.tc-app-body:not(.tc-label-printing) img,body.tc-app-body:not(.tc-label-printing) svg,body.tc-app-body:not(.tc-label-printing) canvas { max-width:100%!important; }
}
