/* Styles for shared/viewer.js and shared/sheet.js. Page stylesheets supply the layout around them. */

.qr-doc-scroll {
  position: relative;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* width follows the zoom level; the scroller adds horizontal scroll once it is > 100% */
.qr-pages {
  width: calc(var(--qr-zoom, 1) * 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-page {
  position: relative;
  width: 100%;
  background: #fff;
}

.qr-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-hl {
  position: absolute;
  border-radius: 3px;
  background: color-mix(in srgb, var(--hl) 34%, transparent);
  mix-blend-mode: multiply;
  cursor: pointer;
}

.qr-hl.is-active {
  box-shadow: 0 0 0 2px var(--hl);
}

.qr-doc-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #616161;
  background: rgba(233, 236, 239, 0.92);
  pointer-events: none;
}

.qr-doc-state.is-done {
  display: none;
}

.qr-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 38, 63, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.qr-zoom button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.qr-zoom span {
  min-width: 42px;
  text-align: center;
}

.qr-sheet-handle {
  display: none;
}

.qr-sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
}
