/* Applied only when printing (media="print" on the <link>).
   Strips the app chrome so the sheet lands on A4 on its own. */

@page {
  size: A4;
  margin: 14mm;
}

body { background: #fff; }

#nav,
#toasts,
.print-bar {
  display: none !important;
}

#shell { display: block; }
#view { padding: 0; }

.sheet {
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: none;
  margin: 0;
}

/* Keep a line item from being split across two pages, and repeat the table
   header when a long document does run over. */
.sheet-lines thead { display: table-header-group; }
.sheet-lines tr { page-break-inside: avoid; }
.sheet-totals,
.sheet-foot { page-break-inside: avoid; }

/* Force the accent colours through — browsers drop backgrounds when printing
   unless asked not to. */
* {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
