* {
  box-sizing: border-box;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  margin: 0;
  background: #ffffff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (font-variation-settings: normal) {
  body {
    font-family:
      "Inter var",
      Inter,
      ui-sans-serif,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      "Helvetica Neue",
      Arial,
      "Noto Sans",
      sans-serif;
  }
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #fff;
  z-index: 3000;
}

.block-1 {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.2s ease-in-out;
  border: none;
  background: transparent;
  margin-left: 2px;
}

.block-1:hover {
  cursor: pointer;
  background-color: #eaedf1;
}

.block-2 {
  margin-right: 5px;
}

.pdf-container {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f1f5f9;
  z-index: 1;

  scrollbar-width: auto;
  scrollbar-color: #9a9a9a transparent;

  padding-top: 0;
}
.page-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  overflow: visible;
  transform: translateY(-22px);
  position: relative;
}
.page-qr {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 90px; /* подгони при необходимости */
  width: 120px;
  height: 120px;
  object-fit: contain;
  z-index: 5;
  background: white;
  padding: 4px;
}
.page-wrap:first-child {
  margin-top: 0;
}
/* Chrome / Edge */
.pdf-container::-webkit-scrollbar {
  width: 8px;
  min-width: 20px;
}

.pdf-container::-webkit-scrollbar-track {
  background: transparent;
}

.pdf-container::-webkit-scrollbar-thumb {
  background: #9d9d9d;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  min-height: 2px;
}

.pdf-container::-webkit-scrollbar-thumb:hover {
  background: #8b8b8b;
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

.pdf-container::-webkit-scrollbar-thumb:active {
  background: #7d7d7d;
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

.pdf-container::-webkit-scrollbar-button {
  display: none;
}

.pdf-container::-webkit-scrollbar-corner {
  background: transparent;
}
.page-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

canvas {
  display: block;
  width: 100%;
  height: auto;

  background: #ffffff;
}

/* Затемнение */
.overlay {
  position: fixed;
  inset: 0;
  background-color: #0009 !important;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 1500;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Боковое меню */
.sidebar {
  margin-top: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 314px;
  max-width: 314px;
  height: 100vh;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 2000;
  overflow-y: auto;
  padding-top: 72px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sidebar-top {
  padding: 0.5rem 1rem 1rem 1rem;
}

.doc-id {
  font-size: 1.25rem !important;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings:
    "tnum" 1,
    "lnum" 1,
    "ss01" 1,
    "cv02" 1;
  color: #1e293b;
  margin-top: 0.35rem !important;
  margin: 0;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.doc-date {
  font-size: 0.75rem !important;
  line-height: 1.4;
  color: #2e3849;
  margin: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings:
    "tnum" 1,
    "lnum" 1,
    "ss01" 1,
    "cv02" 1;
}

.info-section {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  padding: 1rem;

  border-top: 1px solid #e5e7eb;
}

.info-title {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
}

.info-row {
  display: flex;
  align-items: center;
}

.info-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  color: #64748b;
  color: #64748b;
}
.uppers{
  text-transform: uppercase;
  cursor: pointer;
}
.poin{
  cursor: pointer;
}
.custom-tooltip {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  background: #333e4f;
  color: #fff;
  width: 100px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  transform: scale(0.92);
  transform-origin: top left;
  transition: opacity 0.1s ease, transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-tooltip.visible {
  opacity: 1;
  transform: scale(1);
}


.info-text {
  margin-left: 0.375rem !important;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
  word-break: break-word;
}

.file-link {
  text-decoration: none;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
/* LOADER */
.loader-screen {
  position: fixed;
  inset: 0;
  background: #111827;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.loader-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-18px);
  text-align: center;
  padding: 20px;
}

.loader-logo {
  width: 8rem;
  min-width: 14rem;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  user-select: none;
  -webkit-user-drag: none;
}

.loader-title {
  margin: 0 0 4px 0;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.loader-subtitle {
  margin: 0 0 4px 0;
  color: #ffffff;
  font-weight: 400;
  opacity: 0.9;
}

.loader-domain {
  margin: 0 0 26px 0;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.loader-dots {
  display: flex;
  align-items: center;
  gap: 11px;
}

.loader-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1da1ff;
  opacity: 0.45;
  animation: loaderPulse 1.1s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}
