@use "../base/var";
@use "../base/color";
@use "../base/scroll";
@use "../base/svg";
@use "pdf-viewer";

.wy-pdf-container {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;

  display: flex;
  flex-direction: column;

  @include scroll.scroll-x-y;
}

.wy-content-pdf {
  /*canvas {
      margin: auto;
      display: block;
    }*/
  order: -1;

  @include pdf-viewer.defaults;

  .pdfViewer .page {
    box-shadow: var.default(--wy-shadow-level2);
    background-color: color.token(--wy-white);
  }

  .pdfViewer .page.loadingIcon::after {
    background: svg.$spinner center no-repeat;
  }
}

.wy-pdf-page-number {
  min-width: 1em;
  width: 3em;
  max-width: var.wy-rem(3);
  @supports (field-sizing: content) {
    width: auto;
    field-sizing: content;
  }
  font-variant-numeric: tabular-nums;
}

.wy-pdf-zoom-level {
  min-width: 1em;
  width: 3em;
  max-width: var.wy-rem(5);
  @supports (field-sizing: content) {
    width: auto;
    field-sizing: content;
  }
  font-variant-numeric: tabular-nums;
}

.wy-pdf-page-number-total {
  font-variant-numeric: tabular-nums;
  
}