﻿.zt-office-pdf-viewer { display:flex; flex:1; flex-direction:column; min-height:0; min-width:0; overflow:hidden; background:var(--bs-tertiary-bg); color:var(--bs-body-color); }
.zt-office-pdf-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem; flex-shrink:0; padding:.5rem; border-bottom:1px solid var(--bs-border-color); background:var(--bs-body-bg); }
.zt-office-pdf-toolbar button { min-width:2.25rem; min-height:2.25rem; font-size:1.125rem; line-height:1; }
.zt-office-pdf-count { min-width:5rem; text-align:center; font-variant-numeric:tabular-nums; }
.zt-office-pdf-zoom { min-width:3.5rem; text-align:center; font-variant-numeric:tabular-nums; }
.zt-office-pdf-scroll { flex:1; min-height:0; min-width:0; overflow:auto; scrollbar-gutter:stable; overscroll-behavior:contain; }
.zt-office-pdf-scroll:focus-visible { outline:2px solid var(--bs-primary); outline-offset:-2px; }
.zt-office-pdf-stage { box-sizing:border-box; min-width:100%; min-height:100%; width:max-content; padding:1rem; }
.zt-office-pdf-page { position:relative; margin-inline:auto; background:#fff; color:#000; color-scheme:only light; box-shadow:0 2px 12px rgb(0 0 0 / .18); isolation:isolate; }
.zt-office-pdf-page canvas { display:block; background:#fff; }
.zt-office-pdf-status { flex-shrink:0; padding:.25rem .75rem; text-align:center; color:var(--bs-secondary-color); }
.zt-office-pdf-status[hidden] { display:none; }

/* Text-layer rules adapted from PDF.js 6.5.438, Copyright Mozilla Foundation, Apache-2.0.
   Full license: ../lib/pdfjs/6.5.438/LICENSE. Keep in sync with the pinned display library. */
.zt-office-pdf-page .textLayer { position:absolute; inset:0; overflow:clip; text-align:initial; opacity:1; line-height:1; letter-spacing:normal; word-spacing:normal; text-size-adjust:none; forced-color-adjust:none; transform-origin:0 0; caret-color:CanvasText; z-index:0; color-scheme:only light; --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)); }
.zt-office-pdf-page .textLayer :is(span,br) { color:transparent; position:absolute; white-space:pre; cursor:text; transform-origin:0 0; user-select:text; }
.zt-office-pdf-page .textLayer > :not(.markedContent),.zt-office-pdf-page .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)); }
.zt-office-pdf-page .textLayer .markedContent { display:contents; }
.zt-office-pdf-page .textLayer ::selection { background:rgb(0 100 255 / .3); color:transparent; }
@media (max-width:575.98px) { .zt-office-pdf-toolbar { gap:.25rem; padding:.375rem; } .zt-office-pdf-stage { padding:.5rem; } }
