@charset "UTF-8";
/* ══════════════════════════
   OVERLAY
══════════════════════════ */
/* line 5, pdf-view.scss */
.pdf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 12px 16px; }
  /* line 17, pdf-view.scss */
  .pdf-overlay.active {
    display: flex;
    animation: fadeIn .2s ease; }

@keyframes fadeIn {
  from {
    opacity: 0; }
  to {
    opacity: 1; } }
/* ══════════════════════════
   MODAL
   ↓ position:relative — якорь для .pdf-bar
══════════════════════════ */
/* line 32, pdf-view.scss */
.pdf-modal {
  --accent: #FF6F20;
  --accent2: #ff8c47;
  --border: #e8e8e8;
  --text: #111;
  --muted: #999;
  --bg-doc: #dce8f0;
  position: relative;
  /* ← якорь для position:absolute .pdf-bar */
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 860px;
  height: min(92vh, 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* ← отрезает бар за пределами модала */
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97); }
  to {
    opacity: 1;
    transform: translateY(0) scale(1); } }
/* ══════════════════════════
   HEADER
══════════════════════════ */
/* line 61, pdf-view.scss */
.pdf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
  position: relative;
  z-index: 2;
  /* выше .pdf-bar если вдруг наложится */ }

/* line 73, pdf-view.scss */
.pdf-hicon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center; }
  /* line 83, pdf-view.scss */
  .pdf-hicon svg {
    width: 17px;
    height: 17px;
    color: #444; }

/* line 90, pdf-view.scss */
.pdf-hinfo {
  flex: 1;
  min-width: 0; }

/* line 95, pdf-view.scss */
.pdf-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

/* line 104, pdf-view.scss */
.pdf-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px; }

/* line 110, pdf-view.scss */
.pdf-hbtns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0; }

/* line 117, pdf-view.scss */
.hbtn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  transition: background .15s, border-color .15s, color .15s; }
  /* line 130, pdf-view.scss */
  .hbtn svg {
    width: 14px;
    height: 14px; }
  /* line 135, pdf-view.scss */
  .hbtn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #111; }
  /* line 141, pdf-view.scss */
  .hbtn.hbtn-dl {
    text-decoration: none;
    background: var(--accent);
    border: none;
    color: #fff; }
    /* line 147, pdf-view.scss */
    .hbtn.hbtn-dl:hover {
      background: var(--accent2);
      border-color: transparent;
      color: #fff; }
  /* line 154, pdf-view.scss */
  .hbtn.hbtn-close {
    background: #fff;
    border: 1px solid var(--border);
    color: #555; }
    /* line 159, pdf-view.scss */
    .hbtn.hbtn-close svg {
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
    /* line 163, pdf-view.scss */
    .hbtn.hbtn-close:hover {
      background: #f5f5f5;
      border-color: #bbb;
      color: #111; }
      /* line 168, pdf-view.scss */
      .hbtn.hbtn-close:hover svg {
        transform: rotate(90deg); }

/* ══════════════════════════
   BODY — только скролл, без якоря
   padding-bottom = высота бара + отступ
══════════════════════════ */
/* line 177, pdf-view.scss */
.pdf-body {
  flex: 1;
  overflow: auto;
  background: var(--bg-doc);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 80px;
  /* 80px = ~высота бара + зазор */
  gap: 0;
  position: relative;
  /* нужен для z-index, но НЕ для бара */
  z-index: 1;
  -webkit-overflow-scrolling: touch; }
  /* line 190, pdf-view.scss */
  .pdf-body::-webkit-scrollbar {
    width: 4px;
    height: 4px; }
  /* line 191, pdf-view.scss */
  .pdf-body::-webkit-scrollbar-thumb {
    background: #b0c0cc;
    border-radius: 2px; }

/* page */
/* line 195, pdf-view.scss */
.pdf-page-wrap {
  position: relative;
  background: #fff;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 16px; }
  /* line 204, pdf-view.scss */
  .pdf-page-wrap canvas {
    display: block; }
  /* line 206, pdf-view.scss */
  .pdf-page-wrap .textLayer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    line-height: 1;
    pointer-events: auto; }
    /* line 213, pdf-view.scss */
    .pdf-page-wrap .textLayer span {
      color: transparent;
      position: absolute;
      white-space: pre;
      cursor: text;
      transform-origin: 0 0; }
      /* line 220, pdf-view.scss */
      .pdf-page-wrap .textLayer span::selection {
        background: rgba(255, 111, 32, 0.25);
        color: transparent; }

/* loading / error */
/* line 229, pdf-view.scss */
.pdf-loading,
.pdf-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  width: 100%;
  font-size: 13px;
  text-align: center; }

/* line 242, pdf-view.scss */
.pdf-loading {
  color: #666; }

/* line 244, pdf-view.scss */
.pdf-error {
  color: #cc3300; }
  /* line 247, pdf-view.scss */
  .pdf-error svg {
    width: 34px;
    height: 34px;
    opacity: .5; }

/* line 254, pdf-view.scss */
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #ddd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }
/* ══════════════════════════
   FLOATING NAV BAR
   position:absolute → якорь .pdf-modal (position:relative + overflow:hidden)
   ↑ поэтому не скроллится вместе с документом
══════════════════════════ */
/* line 270, pdf-view.scss */
.pdf-bar {
  position: absolute;
  /* ← относительно .pdf-modal */
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  /* выше .pdf-body */
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  white-space: nowrap;
  /* не переносится на узких экранах */ }

/* line 291, pdf-view.scss */
.bnav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background .15s, color .15s; }
  /* line 305, pdf-view.scss */
  .bnav svg {
    width: 16px;
    height: 16px; }
  /* line 307, pdf-view.scss */
  .bnav:hover:not(:disabled) {
    background: #f0f0f0;
    color: #111; }
  /* line 308, pdf-view.scss */
  .bnav:disabled {
    opacity: .3;
    cursor: default; }

/* line 311, pdf-view.scss */
.bar-pages {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 36px;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  flex-shrink: 0; }

/* line 322, pdf-view.scss */
.page-input {
  width: 30px;
  border: none;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: transparent;
  -moz-appearance: textfield; }
  /* line 334, pdf-view.scss */
  .page-input::-webkit-inner-spin-button, .page-input::-webkit-outer-spin-button {
    -webkit-appearance: none; }

/* line 338, pdf-view.scss */
.bar-sep {
  font-size: 11px;
  color: #bbb; }

/* line 339, pdf-view.scss */
.bar-tot {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500; }

/* line 341, pdf-view.scss */
.bar-zoom {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid #eee;
  padding-left: 6px; }
  /* line 348, pdf-view.scss */
  .bar-zoom .bnav {
    width: 30px;
    height: 30px; }
    /* line 351, pdf-view.scss */
    .bar-zoom .bnav svg {
      width: 13px;
      height: 13px; }

/* line 355, pdf-view.scss */
.zoom-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  min-width: 32px;
  text-align: center; }

/* ══════════════════════════
   MOBILE ≤ 600
══════════════════════════ */
@media (max-width: 600px) {
  /* line 367, pdf-view.scss */
  .pdf-overlay {
    padding: 0;
    align-items: flex-end; }

  /* line 372, pdf-view.scss */
  .pdf-modal {
    border-radius: 20px 20px 0 0;
    height: 96vh;
    max-height: none;
    animation: slideUp 0.32s cubic-bezier(0.34, 1.2, 0.64, 1); }
    /* line 378, pdf-view.scss */
    .pdf-modal::before {
      content: '';
      display: block;
      width: 36px;
      height: 4px;
      background: #ddd;
      border-radius: 2px;
      margin: 10px auto 0;
      flex-shrink: 0; }

  @keyframes slideUp {
    from {
      transform: translateY(100%); }
    to {
      transform: translateY(0); } }
  /* line 395, pdf-view.scss */
  .pdf-header {
    padding-top: 11px; }

  /* zoom в хедере скрыт на мобиле — он в .bar-zoom */
  /* line 400, pdf-view.scss */
  .hbtn-zoom-group {
    display: none; }

  /* line 402, pdf-view.scss */
  .pdf-bar {
    bottom: 12px;
    gap: 6px;
    padding: 5px 6px; }

  /* line 408, pdf-view.scss */
  .bnav {
    width: 42px;
    height: 42px; }
    /* line 411, pdf-view.scss */
    .bnav svg {
      width: 18px;
      height: 18px; }

  /* line 414, pdf-view.scss */
  .bar-pages {
    height: 42px;
    padding: 0 12px; }

  /* line 419, pdf-view.scss */
  .page-input {
    font-size: 14px;
    width: 32px; }

  /* на мобиле зум показываем в баре */
  /* line 425, pdf-view.scss */
  .bar-zoom {
    display: flex; }

  /* line 427, pdf-view.scss */
  .pdf-body {
    padding: 12px 8px 90px; } }
@media (max-width: 360px) {
  /* line 431, pdf-view.scss */
  .pdf-bar {
    gap: 2px;
    padding: 4px; }

  /* line 432, pdf-view.scss */
  .bnav {
    width: 38px;
    height: 38px; } }
