html:has(.pdf-viewer-host), .pdf-viewer-host {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#pdf-viewer {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#pdf-viewer-error {
  position: fixed;
  inset: 32px 0 auto;
  z-index: 1;
  margin: 0;
  padding: 4px;
  background: #f55;
  color: #fff;
  font: 13px sans-serif;
}

#pdf-viewer-error-close {
  float: right;
}

#pdf-viewer-error-details {
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
}

body[data-pdf-style] #secondaryOpenFile,
body[data-pdf-style] #viewBookmark,
body[data-pdf-style] #viewBookmarkSeparator {
  display: none;
}

body[data-pdf-style='reduced'] #viewsManagerSelector,
body[data-pdf-style='reduced'] #downloadButton,
body[data-pdf-style='reduced'] #secondaryToolbarToggleButton,
body[data-pdf-style='minimal'] .toolbar,
body[data-pdf-style='minimal'] #viewsManager {
  display: none;
}

body[data-pdf-style='minimal'] #viewerContainer {
  inset-block-start: 0;
  background: #fff;
  color-scheme: light;
}

body[data-pdf-style] #presentationMode::before {
  mask-image: url('/pdfjs/6.5.438/web/images/toolbarButton-presentationMode.svg');
}
