/* ExpertPdf PDF Viewer - additions to the bundled PDF.js viewer. */

/* no toolbar: the document area takes its place */
body.epdf-notoolbar { --toolbar-height: 0px; }
body.epdf-notoolbar .toolbar,
body.epdf-notoolbar #toolbarContainer { display: none !important; }

/* no scrollbars (the document still scrolls with the wheel and the keyboard) */
body.epdf-noscrollbars #viewerContainer { scrollbar-width: none; }
body.epdf-noscrollbars #viewerContainer::-webkit-scrollbar { display: none; }

/* no navigation panel (thumbnails, outline, attachments) */
body.epdf-nonavigation #viewsManagerToggleButton,
body.epdf-nonavigation #viewsManager { display: none !important; }

/* printing / downloading switched off by the host */
body.epdf-noprint #printButton,
body.epdf-noprint #secondaryPrint { display: none !important; }
body.epdf-nodownload #downloadButton,
body.epdf-nodownload #secondaryDownload { display: none !important; }

/* the toolbar buttons hidden by the host */
body.epdf-nosidebarbutton #viewsManagerToggleButton { display: none !important; }
body.epdf-nofind .toolbarButtonWithContainer:has(> #viewFindButton),
body.epdf-nofind #viewFindButton,
body.epdf-nofind #findbar { display: none !important; }
body.epdf-nopagenavigation .toolbarHorizontalGroup:has(> #previous),
body.epdf-nopagenavigation .toolbarHorizontalGroup:has(> .loadingInput > #pageNumber),
body.epdf-nopagenavigation #firstPage,
body.epdf-nopagenavigation #lastPage { display: none !important; }
body.epdf-nozoom #toolbarViewerMiddle { display: none !important; }
body.epdf-nopresentation #presentationMode { display: none !important; }
body.epdf-nodocumentproperties #documentProperties { display: none !important; }

/* a viewer control opens only the documents of the host, unless the host shows the open button */
body:not(.epdf-open) #secondaryOpenFile,
#viewsManagerAddFileButton { display: none !important; }

/* SetCurrentHighlight */
.epdf-highlight {
  position: absolute;
  background: rgb(255 220 0 / 0.35);
  outline: 2px solid rgb(230 160 0 / 0.9);
  pointer-events: none;
  z-index: 5;
}

#epdfEvaluation {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100000;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
  color: #c00;
  font: bold 13px sans-serif;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  pointer-events: none;
}

@media print {
  #epdfEvaluation, .epdf-highlight { display: none !important; }
}
