/* Loaded after both desktop and tablet styles; only the current manual prints. */
@page { margin: 12mm; }
@media print {
  html, body {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: white !important;
  }
  body > :not(.workspace),
  body > .topbar.ux-two-tier,
  .workspace[data-layout-key="ct7"] > :not(.document-pane),
  .document-pane > :not(.html-viewer),
  dialog, dialog::backdrop {
    display: none !important;
  }
  .workspace[data-layout-key="ct7"],
  .workspace[data-layout-key="ct7"] > .document-pane,
  #viewer, #manualContent {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    contain: none !important;
    transform: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }
  #manualContent table {
    display: table !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
  }
  #manualContent th, #manualContent td { overflow-wrap: anywhere; }
  #manualContent thead { display: table-header-group; }
  #manualContent img {
    max-width: 100% !important;
    object-fit: contain;
    break-inside: avoid;
  }
  #manualContent .manual-graphic {
    width: auto !important;
    height: auto !important;
    max-height: 235mm !important;
    margin: 4mm auto;
    box-shadow: none !important;
  }
  #manualContent .find-hit { color: inherit; background: none; outline: none; }
  /* EIPC screen thumbnails become readable, full-width illustration sheets. */
  #manualContent .ct7-ipc-figure-grid { display: block; }
  #manualContent .ct7-ipc-figure-grid figure {
    margin: 0;
    padding: 0;
    border: 0;
    background: white;
    break-inside: avoid;
  }
  #manualContent .ct7-ipc-figure-grid figure + figure { break-before: page; }
  #manualContent .ct7-ipc-figure-grid .manual-graphic { max-height: 200mm !important; }
  #manualContent .ct7-ipc-figure-grid figure:first-child .manual-graphic { max-height: 165mm !important; }
  #manualContent .ct7-eipc > table { break-before: page; }
  #manualContent .ct7-eipc table { height: auto !important; }
}
@media print and (orientation: landscape) {
  #manualContent .manual-graphic,
  #manualContent .ct7-ipc-figure-grid .manual-graphic,
  #manualContent .ct7-ipc-figure-grid figure:first-child .manual-graphic { max-height: 100mm !important; }
}
