/* LOCAL PATCH pdfview t35u (30.11.2026): полноэкранный просмотр копии акта (static/pdfview.js). Цвета и шрифты — токены pasport-apple.css. */
html.pv-open, html.pv-open body { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: light-dark(#e8e8ed, #0b0b0c); color: var(--ink); font-family: var(--f-ui); color-scheme: inherit; }
.pv-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--rail-bg, var(--card)); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--rail-line, var(--line)); }
.pv-tt { flex: 1; min-width: 0; }
.pv-t1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pv-sh { flex: none; font: 600 13px/1.3 var(--f-ui); color: var(--mute); font-variant-numeric: tabular-nums; }
.pv-sh:empty { display: none; }
.pv-ti { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.3 var(--f-display); letter-spacing: -.015em; }
.pv-t2 { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.005em; }
.pv-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 9px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 13.5px/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: background .2s var(--ease, ease); }
.pv-b:hover { background: var(--rail-active, rgba(127, 127, 127, .12)); }
.pv-b:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.pv-b:disabled { opacity: .35; cursor: default; background: transparent; }
.pv-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pv-x { margin-left: -6px; }
.pv-src { color: var(--ember); }
.pv-act { display: flex; align-items: center; gap: 2px; flex: none; }
.pv-seg { display: inline-flex; flex: none; padding: 2px; border-radius: 9px; background: var(--card-2, var(--sunk)); }
.pv-seg button { border: 0; background: transparent; color: var(--mute); font: 500 13px/1 var(--f-ui); padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.pv-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pv-main { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; outline: none; position: relative; }
.pv-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 32px 96px; width: max-content; min-width: 100%; box-sizing: border-box; }
.pv-page { position: relative; flex: none; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 6px 24px rgba(0, 0, 0, .08); overflow: hidden; }
.pv-page canvas { display: block; }
.pv-page.stale canvas { filter: blur(.4px); }
.pv-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #c7c7cc; font: 600 28px/1 var(--f-display); background: #fff; }
.pv-tools { position: absolute; left: 50%; bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 14px; background: var(--rail-bg, var(--card)); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--rail-line, var(--line)); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); white-space: nowrap; }
.pv-tools[hidden] { display: none; }
.pv-grp { display: flex; align-items: center; gap: 2px; }
.pv-grp + .pv-grp { padding-left: 6px; border-left: 1px solid var(--line-2); }
.pv-pg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); padding: 0 4px; font-variant-numeric: tabular-nums; }
.pv-pg input { width: 3.2em; height: 28px; box-sizing: border-box; text-align: center; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); color: var(--ink); font: 500 13px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.pv-zl { min-width: 48px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pv-state { min-height: 60%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; color: var(--mute); font-size: 15px; }
.pv-state p { margin: 0; max-width: 34em; color: var(--ink-2); }
.pv-sbtn { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pv-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ember); animation: pv-spin .8s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
/* текстовый вид */
.pv-doc { max-width: 860px; margin: 0 auto; padding: 18px 20px 110px; box-sizing: border-box; }
.pv-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.pv-warn { background: var(--amber-soft); border-color: transparent; }
.pv-sheet { background: var(--card); border-radius: 14px; border: 1px solid var(--line); padding: 36px 48px 48px; font-size: var(--pv-fs, 16px); line-height: 1.6; color: var(--ink); }
.pv-sheet header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pv-sheet header span { font: 600 13px/1.3 var(--f-ui); color: var(--mute); }
.pv-sheet h1 { margin: 4px 0 0; font: 600 1.35em/1.25 var(--f-display); letter-spacing: -.02em; }
.pv-sec { margin: 1.4em 0 .4em; font: 600 .8em/1.4 var(--f-ui); color: var(--mute); letter-spacing: 0; text-transform: none; }
.pv-body p { margin: 0 0 .55em; text-wrap: pretty; hyphens: auto; scroll-margin-top: 70px; }
.pv-body p.pv-hit { font-weight: 600; }
.pv-lnk { border: 0; padding: 0; background: none; color: var(--ember); font: inherit; text-decoration: underline; cursor: pointer; }
/* pdf.js: текстовый слой (выделение и копирование текста, поиск браузера). Из pdfjs-dist 4.10.38 web/pdf_viewer.css */
.pv .textLayer { position: absolute; text-align: initial; inset: 0; overflow: clip; opacity: 1; line-height: 1; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; z-index: 0; }
.pv .textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.pv .textLayer > :not(.markedContent), .pv .textLayer .markedContent span:not(.markedContent) { z-index: 1; }
.pv .textLayer span.markedContent { top: 0; height: 0; }
.pv .textLayer ::selection { background: rgba(0, 100, 255, .25); }
.pv .textLayer br::selection { background: transparent; }
.pv .textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }
.pv .textLayer.selecting .endOfContent { top: 0; }
/* телефон */
@media (max-width: 719px) {
  .pv-bar { gap: 4px; padding-left: 8px; padding-right: 6px; }
  .pv-lg { display: none; }
  .pv-lgonly { display: none; }
  .pv-ti { font-size: 14px; }
  .pv-t1 { flex-direction: column; gap: 0; align-items: stretch; }
  .pv-t2 { display: none; }
  .pv-seg button { padding: 7px 9px; }
  .pv-pages { padding: 10px 8px 96px; gap: 10px; }
  .pv-doc { padding: 10px 8px 110px; }
  .pv-sheet { padding: 20px 18px 28px; border-radius: 12px; }
  .pv-tools { gap: 2px; }
  .pv-zl { min-width: 42px; }
  .pv-grp + .pv-grp { padding-left: 2px; }
}
