/* Paper has its own content height. Screen viewport sizing must not reserve an
   extra sheet. Keep report orientation, margins and deliberate internal breaks. */
@media print {
  html:root:root,html:root:root body {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    margin:0!important;
    padding-bottom:0!important;
  }
  html:root body :is(.wrap,.app-shell,.sbm-page-main,#printArea,#printPages) {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html:root body :is(.print-page,.report-page,.sp-sheet,.payroll-print-sheet,.billing-company-page) {
    min-height:0!important;
    margin-bottom:0!important;
    box-sizing:border-box!important;
  }
  html:root body [data-sbm-print-last] {
    break-after:auto!important;
    page-break-after:auto!important;
  }
  #printPages{margin:0!important;padding:0!important;line-height:0!important;font-size:0!important}
  #printPages canvas{display:block!important;vertical-align:top!important;margin:0!important}
  .sbm-back-navigation,.sbm-back-button,.sbm-build-label,.one-app-header,#primaryNav,#secondaryNav{display:none!important}
}
