/* A5 print layout. Always black on white regardless of theme. Plain, minimal: no ticket styling. */
/* Zero page margin leaves no room for the browser's own header/footer (date, title, URL, page numbers).
   The visible margin comes from padding on .estimate-doc, cloned onto every printed page. */
@page{size:A5 portrait;margin:0}
@media print{
  html,body{background:#fff!important;color:#000!important}
  body{padding:0!important}
  .no-print,.sidebar,.topbar,.scrim,.admin-nav,md-dialog,.final-actions,.done-hd,.final-done,.admin-doc-meta,#final-note{display:none!important}
  .shell{display:block}
  .final-wrap{padding:0;max-width:none}
  .estimate-doc{max-inline-size:none;margin:0;padding:10mm 8mm 12mm;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:0;box-shadow:none;background:#fff;color:#000;font-family:'Geist',Arial,sans-serif;font-size:10pt}
  .est-top{background:none!important;color:#000!important;padding:0}
  .est-perf{display:none!important}
  .est-body{padding:0}
  .est-no{display:none!important}
  .est-table thead{display:table-header-group}
  .est-table tr{break-inside:avoid;page-break-inside:avoid}
  .est-totals{break-inside:avoid;page-break-inside:avoid}
  .est-table td,.est-table th{font-variant-numeric:tabular-nums}
}
/* Revised line prints in plain black under the date */
@media print{.est-revised{color:#000!important;opacity:1}}