:root {
--viewer-container-height: 0;
--loading-icon-delay: 400ms;
}
body {
overflow: hidden;
}
@media screen and (forced-colors: active) {
:root {
--page-border: 1px solid CanvasText;
}
}
[data-main-rotation="90"] {
transform: rotate(90deg) translateY(-100%);
}
[data-main-rotation="180"] {
transform: rotate(180deg) translate(-100%, -100%);
}
[data-main-rotation="270"] {
transform: rotate(270deg) translateX(-100%);
}
#hiddenCopyElement,
.hiddenCanvasElement {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
display: none;
}
.pdfViewer {
--scale-factor: 1;
display: flex;
flex-direction: column;
align-items: safe center;
gap: 10px;
padding: 18px;
}
#outerContainer {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
#mainContainer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#viewerContainer {
direction: ltr;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
outline: none;
box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05);
}
body.portal #viewerContainer {
overflow-y: scroll;
scrollbar-width: none;
-ms-overflow-style: none;
}
body.portal #viewerContainer::-webkit-scrollbar {
width: 0;
height: 0;
}
.pdfViewer.scrollHorizontal {
flex-direction: row;
}
.pdfViewer.scrollWrapped {
flex-direction: row;
flex-wrap: wrap;
justify-content: safe center;
}
.pdfViewer .spread {
display: flex;
gap: 10px;
}
.spread .page,
.spread .dummyPage,
.pdfViewer.scrollHorizontal .page,
.pdfViewer.scrollWrapped .page {
display: inline-block;
vertical-align: middle;
}
.pdfViewer .page {
flex-shrink: 0;
}
.pdfViewer .page canvas {
position:absolute;
top:0;
left:0;
margin:0;
display:block;
width:100%;
height:100%;
contain:content;
}
.pdfViewer .page canvas .structTree {
contain: strict;
}
.pdfViewer .page canvas[hidden] {
display: none;
}
.pdfViewer .page canvas[zooming] {
width: 100%;
height: 100%;
}
.pdfViewer .page.loadingIcon:after {
position: absolute;
top: 0;
left: 0;
content: "";
width: 100%;
height: 100%;
background: url("images/loading-icon.gif") center no-repeat;
display: none;
transition-property: display;
transition-delay: var(--loading-icon-delay);
z-index: 5;
contain: strict;
}
.pdfViewer .page.loading:after {
display: block;
}
.pdfViewer .page:not(.loading):after {
transition-property: none;
display: none;
}
.pdfViewer .page {
--user-unit: 1;
--total-scale-factor: calc(var(--scale-factor) * var(--user-unit));
--scale-round-x: 1px;
--scale-round-y: 1px;
direction: ltr;
width: 816px;
height: 1056px;
position: relative;
overflow: hidden;
border: var(--page-border);
background-clip: content-box;
box-shadow: 0 0 2px 0 rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.12),0 1px 3px 0 rgba(0,0,0,.12);
}
.pdfViewer .dummyPage {
position: relative;
width: 0;
height: var(--viewer-container-height);
}
.pdfViewer .canvasWrapper {
overflow: hidden;
width: 100%;
height: 100%;
z-index: 1;
}
#sidebarContainer, .toolbar, .secondaryToolbar, .findbar, #overlayContainer, #fileInput {
display: none;
}
.toolbar {
display: none;
}
.annotationLayer, .annotationEditorLayer {
display: none;
}
#viewerContainer {
background-color: rgb(250, 250, 250);
}
#viewer {
}
.hidden {
display: none;
}
@page {
margin: 0;
}
#printContainer {
display: none;
}
@media print {
#root {
visibility: hidden;
}
#viewer-container {
display: block !important;
}
body {
background: rgba(0, 0, 0, 0) none;
}
body[data-pdfjsprinting] #outerContainer {
display: none;
}
body[data-pdfjsprinting] #printContainer {
display: block;
}
#printContainer {
height: 100%;
}
#printContainer > .printedPage {
page-break-after: always;
page-break-inside: avoid;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#printContainer > .xfaPrintedPage .xfaPage {
position: absolute;
}
#printContainer > .xfaPrintedPage {
page-break-after: always;
page-break-inside: avoid;
width: 100%;
height: 100%;
position: relative;
}
#printContainer > .printedPage canvas,
#printContainer > .printedPage img {
max-width: 100%;
max-height: 100%;
direction: ltr;
display: block;
}
}
.textLayer {
color-scheme: only light;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
opacity: 0.2;
line-height: 1;
text-size-adjust: none;
forced-color-adjust: none;
caret-color: CanvasText;
user-select: auto;
-webkit-user-select: auto;
transform-origin: 0 0;
z-index: 2;
--min-font-size: 1;
--text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
--min-font-size-inv: calc(1 / var(--min-font-size));
}
:root[data-mobile-reader] .textLayer {
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
}
:root[data-android-annotation-tool] .textLayer {
touch-action: none;
}
:root[data-native-text-selection] .textLayer {
overflow: clip;
user-select: text;
-webkit-user-select: text;
-webkit-touch-callout: default;
}
.textLayer :is(span, br) {
color: transparent;
position: absolute;
white-space: pre;
transform-origin: 0% 0%;
}
:root[data-native-text-selection] .textLayer :is(span, br) {
cursor: text;
}
.textLayer > :not(.markedContent),
.textLayer .markedContent span:not(.markedContent) {
z-index: 1;
--font-height: 0;
font-size: calc(var(--text-scale-factor) * var(--font-height));
--scale-x: 1;
--rotate: 0deg;
transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.textLayer .markedContent {
display: contents;
}
.textLayer .highlight {
margin: -1px;
padding: 1px;
background-color: rgba(180, 0, 170, 1);
border-radius: 4px;
}
.textLayer .highlight.appended {
position: initial;
}
.textLayer .highlight.begin {
border-radius: 4px 0 0 4px;
}
.textLayer .highlight.end {
border-radius: 0 4px 4px 0;
}
.textLayer .highlight.middle {
border-radius: 0;
}
.textLayer .highlight.selected {
background-color: rgba(0, 100, 0, 1);
}
::selection {
background: transparent;
}
:root[data-native-text-selection]:not([data-native-text-selection-mapped]) .textLayer ::selection {
background-color: rgb(66, 133, 244);
}
:root[data-native-text-selection]:not([data-native-text-selection-mapped]) .textLayer br::selection {
background: transparent;
}
.customAnnotationLayer .textAnnotation:focus::selection {
background-color: #71ADFD;
}
.textLayer .endOfContent {
display: block;
position: absolute;
left: 0;
top: 100%;
right: 0;
bottom: 0;
z-index: 0;
user-select: none;
}
.textLayer.selecting .endOfContent {
top: 0;
}
:root[data-native-text-selection] .textLayer .endOfContent {
pointer-events: none;
}
.customAnnotationLayer {
position: absolute;
left: 0;
top: 0;
z-index: 3;
}
.annotationOverlay {
display: contents;
}
.annotationOverlay .overlayRect {
position: absolute;
z-index: 1;
pointer-events: none;
}
.annotationOverlay .overlayVector {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
}
.textAnnotation {
position: absolute;
}
.textAnnotation {
background-color: transparent;
border: none;
box-sizing: border-box;
margin: 0;
outline: none;
padding: 0;
pointer-events: none;
word-break: break-word;
cursor: text;
resize: none;
overflow: hidden;
}
.textAnnotation:empty:before {
content: ' ';
}
.textAnnotation.focusable {
pointer-events: unset;
}
.a11y-cursor-target {
outline: none;
}
body, #viewerContainer {
background-color: #f2f2f2;
}
.pdfViewer .page {
background-color: var(--background-color);
}
:root[data-color-scheme=dark] body,
:root[data-color-scheme=dark] body #viewerContainer {
color-scheme: dark;
background-color: #272727;
}
:root[data-color-scheme=dark] .pdfViewer .page {
background-color: var(--background-color);
}