/* ── scan-labels.css — Sticker Sheets for Scanning (teacher/scan-labels.js) ── */

/* Print Sticker Sheets is One Print Box (teacher/print-box.css) over Class
   Settings, under a question (showConfirm). Here: its notes, and the sheet
   in the preview with New Code under it. */
.sl-overlay {
  z-index: 3850;
}
.sl-hint {
  margin: 0;
  padding: var(--space-1) 2px 0;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.sl-note {
  font-size: var(--text-base);
  color: var(--text);
}
.sl-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-2);
}
/* The sheet in the box's preview: 8.5 × 11 inches is 816 × 1056 CSS pixels, shown at 300 wide. */
.sl-paper {
  width: 300px;
  height: 388px;
  flex: none;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--divider-subtle),
    0 4px 14px rgba(0, 0, 0, 0.1);
}
.sl-paper-scale {
  transform: scale(0.3676);
  transform-origin: 0 0;
}
.sl-lost {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sl-lost .btn {
  height: 32px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.sl-lost .btn-secondary {
  background: var(--active-light);
  color: var(--link);
}
.sl-lost .btn-primary {
  background: var(--active-fill);
  color: #fff;
}
.sl-lost .btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── The sheet: one letter page, labels where Avery 5167 puts them ── */
.sl-sheet {
  position: relative;
  width: 8.5in;
  height: 11in;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: var(--font-base);
  break-after: page;
  page-break-after: always;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.sl-sheet:last-child {
  break-after: auto;
  page-break-after: auto;
}
.sl-cell {
  position: absolute;
  box-sizing: border-box;
}
.sl-plain .sl-cell {
  outline: 0.5pt dashed #b5b5b5;
}
.sl-sticker {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.07in;
  padding: 0 0.06in 0 0.04in;
  box-sizing: border-box;
  overflow: hidden;
}
.sl-qr {
  width: 0.44in;
  height: 0.44in;
  flex: none;
  display: block;
}
.sl-words {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.01in;
  line-height: 1.1;
}
.sl-name {
  font-size: 11pt;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-class {
  font-size: 7.5pt;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Off screen until printed; while body.scan-labels-active is set it is the only thing printed. */
#scan-labels-root {
  position: absolute;
  top: 0;
  left: -30000px;
  width: 8.5in;
  pointer-events: none;
}
@media print {
  body.scan-labels-active {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.scan-labels-active > :not(#scan-labels-root) {
    display: none !important;
  }
  body.scan-labels-active #scan-labels-root {
    position: static;
    left: auto;
    width: auto;
  }
}
