@page { size: A4 portrait; margin: 0; }

.sheet-stage {
  overflow-x: auto;
  padding: 1rem 0 2rem;
  display: flex;
  justify-content: flex-start;

}

.sheet {
  position: relative;
  box-sizing: border-box;
  width: 210mm;
  height: 297mm;
  flex: 0 0 auto;

  margin-left: auto;
  margin-right: auto;
  padding: 10mm;
  background: #fff;
  color: #000;
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 6px 24px rgba(0, 0, 0, .3);
}

.sheet .mk {
  position: absolute;
  width: 6mm; height: 6mm;

}
.sheet .mk svg { display: block; width: 100%; height: 100%; }
.sheet .mk.tl { top: 9mm;  left: 9mm; }
.sheet .mk.tr { top: 9mm;  right: 9mm; }
.sheet .mk.bl { bottom: 9mm; left: 9mm; }
.sheet .mk.br { bottom: 9mm; right: 9mm; }

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6mm;
  padding: 4mm 0 3mm;
  border-bottom: .4mm solid #000;
  flex: 0 0 auto;
}
.sh-title {
  margin: 0 0 4mm;
  font-size: 6mm;
  font-weight: 700;
  letter-spacing: .02em;
}
.sh-fields { display: flex; gap: 8mm; }
.sh-fields .fld { display: flex; align-items: flex-end; gap: 2mm; font-size: 4mm; }
.sh-fields .fld b { font-weight: 400; }
.sh-fields .fld u {
  display: block;
  width: 42mm; height: 7mm;
  border-bottom: .3mm solid #000;
  text-decoration: none;
}
.sh-fields .fld:last-child u { width: 26mm; }

.sh-qr { text-align: center; flex: 0 0 auto; }
.sh-qr svg { display: block; width: 22mm; height: 22mm; }
.sh-qr code {
  display: block;
  margin-top: 1mm;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 3mm;
  letter-spacing: .04em;
}

.sheet-q {
  list-style: none;
  margin: 0;
  padding: 4mm 0 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 1fr);
  grid-auto-flow: column;
  column-gap: 8mm;
}
.sheet-q li {
  display: flex;
  align-items: center;
  gap: 2.5mm;
  break-inside: avoid;
}
.sheet-q .qn {
  flex: 0 0 auto;

  width: 17mm;
  text-align: right;
  font-size: 5.5mm;
  color: #333;
}
.sheet-q .qx {

  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.sheet-q .ex {
  font-size: 9.5mm;
  letter-spacing: .04em;
  white-space: nowrap;

  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.sheet-q .dots {
  display: grid;
  grid-template-columns: repeat(5, 5mm);
  gap: 2mm;
}
.sheet-q .dots i {
  width: 5mm; height: 5mm;
  border-radius: 50%;
  background: #000;
}

.sheet-q .cells {
  flex: 0 0 auto;
  display: flex;
}
.sheet-q .cells i {
  width: 14mm; height: 14mm;
  border: .4mm solid #000;
}
.sheet-q .cells i + i { border-left: 0; }

.sheet-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4mm;
  padding: 3mm 7mm 0;
  font-size: 3.2mm;
  color: #444;
}

.sf-site { flex: 0 0 auto; white-space: nowrap; }
.sf-site b { color: #000; margin-right: 1.5mm; letter-spacing: .04em; }

@media print {
  html, body { background: #fff !important; margin: 0; padding: 0; }
  .no-print { display: none !important; }
  .sheet-stage { overflow: visible; padding: 0; display: block; }
  .sheet { box-shadow: none; margin: 0; }
}
