/* CONTROLE DE MÁQUINAS — etiquetas QR (qrcodes.html). Medidas em mm: a impressão sai no tamanho exato, sem escala. */
.pg-qr .abas { margin: 0; } .qr-linha { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-bottom: 12px; } .qr-linha > .chk { padding-bottom: 8px; } .qr-linha:first-child { align-items: center; } .qr-linha:first-child > .chk { padding: 0; }
.qr-campo { flex: 1 1 230px; max-width: 340px; } .qr-num { width: 120px; } #qIniRot { width: 150px; } #qGirar.ligado { border-color: var(--az); background: var(--superficie-3); }
.qr-aviso { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; } .qr-aviso a { color: inherit; font-weight: 600; text-decoration: underline; margin-left: 8px; } #qEnd { color: var(--texto-1); font-variant-numeric: tabular-nums; } #qEndMsg { color: var(--perigo-texto); }
.qr-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; align-items: start; max-height: 280px; overflow: auto; margin-bottom: 12px; } .qr-setor { border: 1px solid var(--bd); border-radius: 10px; padding: 4px 12px 10px; margin: 0; min-width: 0; } .qr-setor legend { padding: 0 6px; } .qr-maqs { display: flex; flex-direction: column; gap: 4px; } .qr-maqs .chk { align-items: flex-start; border-radius: 6px; } .qr-maqs .chk span { line-height: 1.35; } .qr-maqs .inativa { color: var(--sub); } .qr-maqs .novo { background: var(--info-fundo); } .qr-lista input { flex: none; }
.qr-fim { align-items: center; justify-content: space-between; margin: 0; } .qr-fim .btn { min-height: 44px; padding: 8px 22px; font-size: 15px; } #qResumo { font-size: 15px; } .qr-barra p { margin: 8px 0 0; }

/* uma etiqueta por página */
.etiq { position: relative; background: var(--branco); color: var(--preto); overflow: hidden; margin: 0 0 16px; box-shadow: 0 2px 14px var(--sombra); font-family: var(--fonte); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.et-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: var(--branco); }
.grande .etiq, .grande .et-in { width: 200mm; height: 98.5mm; } .grande.girada .etiq { width: 98.5mm; height: 200mm; } .grande.girada .et-in { transform: translateX(98.5mm) rotate(90deg); }
.pequena .etiq, .pequena .et-in { width: 100mm; height: 34mm; } .pequena.girada .etiq { width: 34mm; height: 100mm; } .pequena.girada .et-in { transform: translateX(34mm) rotate(90deg); }
.com-borda .etiq::after { content: ""; position: absolute; inset: .15mm; border: .25mm dashed var(--preto); pointer-events: none; }
.et-qr { position: absolute; } .et-qr .qr { display: block; }
.et-tx { position: absolute; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; line-height: 1.08; }
.et-tx > * { display: block; max-width: 100%; } .et-cod { font-weight: 700; letter-spacing: -.01em; line-height: 1.04; } .et-nome { font-weight: 600; line-height: 1.14; } .et-setor { color: var(--tinta); line-height: 1.2; } .et-frase { font-weight: 600; line-height: 1.2; } .et-url { color: var(--tinta); line-height: 1.3; }
.grande .et-tx { padding: 4.5mm 5mm 4mm 2mm; justify-content: flex-start; } .grande .et-tx header { display: flex; align-items: center; gap: 3mm; height: 10mm; flex: none; margin-bottom: 2mm; } .grande header img { height: 9.5mm; width: auto; } .grande header span { font-size: 4.2mm; font-weight: 600; color: var(--tinta); }
.grande .et-cod { margin: auto 0 1mm; } .grande .et-nome { margin-bottom: 1.6mm; } .grande .et-setor { margin-bottom: 1.6mm; } .grande .et-frase { margin: auto 0 0; padding-top: 2.4mm; border-top: .4mm solid var(--preto); } .grande .et-url { margin-top: 1.4mm; flex: none; }
.pequena .et-tx { padding: 1.2mm 2mm 1.2mm .4mm; } .pequena .et-nome { margin: .7mm 0 .8mm; }
.preto .etiq *, .preto .folha * { color: var(--preto); }
.etiq.copia { display: none; }

/* folha A4 3 × 8 (70 × 37,125 mm) */
.folha { width: 210mm; height: 297mm; background: var(--branco); color: var(--preto); margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 70mm); grid-template-rows: repeat(8, 37.125mm); overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.etq { display: flex; align-items: center; gap: 1mm; padding: 2mm 3mm 2mm 4mm; overflow: hidden; } .com-borda .etq { outline: .1mm dashed var(--linha-impressa); outline-offset: -.05mm; } .com-borda .etq.vazia { outline-color: var(--fundo-impresso); } .com-borda.preto .etq { outline-color: var(--preto); }
.etq .qr { flex: none; } .etq-tx { min-width: 0; flex: 1; line-height: 1.15; } .etq-tx b { display: block; font-size: 12pt; font-weight: 700; overflow-wrap: anywhere; } .etq-tx span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 8.5pt; font-weight: 600; margin: .6mm 0; } .etq-tx small { display: block; font-size: 8pt; color: var(--tinta); } .etq-tx em { display: block; font-style: normal; font-size: 6.5pt; color: var(--tinta-secundaria); margin-top: 1mm; }
@media screen { #folhas { overflow-x: auto; padding: 4px; } }

@media print {
  html, body.pg-qr { margin: 0; padding: 0; background: var(--branco); }
  body.pg-qr > *:not(main), body.pg-qr main > *:not(#folhas) { display: none !important; }
  body.pg-qr main { padding: 0; margin: 0; max-width: none; } #folhas > .aviso, #folhas > .sub { display: none; }
  .etiq, .folha { margin: 0; box-shadow: none; break-after: page; break-inside: avoid; } .etiq:last-child, .folha:last-child { break-after: auto; }
  .etiq.copia { display: block; }
}
