/* UltiDocs print / PDF capture styles */

@media print {
  .docs-printing header,
  .docs-printing .docs-toolbar-shell,
  .docs-printing .docs-rulers-left-rail,
  .docs-printing .docs-status-bar,
  .docs-printing .docs-hf-chrome,
  .docs-printing .docs-graphic-floating-toolbar,
  .docs-printing .docs-table-floating-toolbar,
  .docs-printing .docs-graphic-options-sidebar,
  .docs-printing .docs-loading-splash,
  .docs-printing .docs-graphic-handle,
  .docs-printing .docs-graphic-rotate-handle,
  .docs-printing .docs-graphic-outline,
  .docs-printing .docs-graphic-snap-guides,
  .docs-printing .docs-ruler-margin-drag-tooltip {
    display: none !important;
  }

  .docs-printing .ultidrive-docs-canvas {
    overflow: visible !important;
    background: white !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .docs-printing [data-docs-page-stack] {
    transform: none !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
  }

  .docs-printing .ultidrive-docs-page {
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
  }

  .docs-printing .ultidrive-docs-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .docs-printing .docs-hf-band--editing {
    pointer-events: none;
  }

  .docs-printing .docs-hf-band .docs-region-editor-root {
    border: none !important;
    background: transparent !important;
  }

  .docs-printing #docs-page-graphic-layer-behind .docs-graphic-handle,
  .docs-printing #docs-page-graphic-layer-front .docs-graphic-handle,
  .docs-printing #docs-page-graphic-layer-behind .docs-graphic-outline,
  .docs-printing #docs-page-graphic-layer-front .docs-graphic-outline {
    display: none !important;
  }
}

/* PDF capture uses the same layout rules without @media print */
.docs-printing.docs-pdf-capture header,
.docs-printing.docs-pdf-capture .docs-toolbar-shell,
.docs-printing.docs-pdf-capture .docs-rulers-left-rail,
.docs-printing.docs-pdf-capture .docs-status-bar,
.docs-printing.docs-pdf-capture .docs-hf-chrome,
.docs-printing.docs-pdf-capture .docs-graphic-floating-toolbar,
.docs-printing.docs-pdf-capture .docs-table-floating-toolbar,
.docs-printing.docs-pdf-capture .docs-graphic-options-sidebar,
.docs-printing.docs-pdf-capture .docs-graphic-handle,
.docs-printing.docs-pdf-capture .docs-graphic-rotate-handle,
.docs-printing.docs-pdf-capture .docs-graphic-outline,
.docs-printing.docs-pdf-capture .docs-graphic-snap-guides {
  display: none !important;
}

.docs-printing.docs-pdf-capture .ultidrive-docs-canvas {
  overflow: visible !important;
  background: white !important;
}

.docs-printing.docs-pdf-capture [data-docs-page-stack] {
  transform: none !important;
}

.docs-printing.docs-pdf-capture .ultidrive-docs-page {
  box-shadow: none !important;
}
