/* PDF page, inside the empty descriptor (customSurface.ts). Commands live on that
   descriptor's toolbar; this file is only the page itself and the status-line figures. */

.pdfviewer-dialog {
  width: min(1000px, 95vw);
  height: min(88vh, 1000px);
}

.pdfviewer-page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.pdfviewer-page-input {
  width: 3.5rem;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
  height: 1.6rem;
}

.pdfviewer-zoom-level {
  min-width: 3.2rem;
  text-align: center;
}

.pdfviewer-body {
  height: 100%;
  min-height: 0;
  overflow: auto;
  /* Fit-to-width measures the body; a scrollbar appearing for a tall page must not change that
     width, or fitting would shrink the page, drop the scrollbar, and grow it again. */
  scrollbar-gutter: stable;
  background: var(--bs-tertiary-bg, #f1f3f5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pdfviewer-status {
  padding: 1rem;
}

.pdfviewer-canvas-wrap {
  margin: 1rem auto;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  line-height: 0;
}

.pdfviewer-canvas {
  display: block;
  max-width: none;
}
