/* ============================================================
   PRINT STYLES
============================================================ */

@media print {

  @page {
    size: 8.5in 11in;
    margin: 0;
  }

  /* Hide all UI chrome */
  .no-print {
    display: none !important;
  }

  /* The containers all have overflow:hidden / height:100vh from the
     screen layout — override every one of them so the BOL isn't clipped */
  html, body {
    height: auto !important;
    overflow: visible !important;
    background: white !important;
  }

  .app-shell {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .workspace {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    /* Kill the 440px / 1fr grid so preview panel goes full width */
    grid-template-columns: unset !important;
  }

  .preview-panel {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    background: white !important;
    padding: 0 !important;
  }

  /* BOL document — full size, no zoom, no shadow */
  .bol-doc {
    zoom: 1 !important;
    width: 8.5in !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Keep page-break hints */
  .bol-freight-tbl { page-break-inside: avoid; }
  .bol-stop        { page-break-inside: avoid; }
  .bol-sig-grid    { page-break-inside: avoid; }
  .bol-footer      { page-break-inside: avoid; }
}
