/* The printed label. Pure black on white only: thermal heads cannot print grey. */
.label {
  --s: 1;
  box-sizing: border-box;
  background: #fff;
  color: #000;
  padding: 2mm 2.5mm 6mm;
  font-family: Arial, "Liberation Sans", "Helvetica Neue", "Noto Sans", sans-serif;
  font-size: 9.5pt;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-align: left;
  break-inside: avoid;
}

.l-logo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 2mm;
}

.l-tag {
  display: inline-block;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.8pt;
  margin-bottom: 0.6mm;
}
.l-tag-to {
  background: #000;
  color: #fff;
  padding: 0.3mm 1.6mm;
  font-size: 9pt;
  margin-bottom: 1.4mm;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.l-from-name { font-weight: 700; font-size: 10.5pt; }
.l-from-phone { font-weight: 700; }

.l-cut {
  border-top: 0.4mm dashed #000;
  margin: 2.4mm 0;
}

.l-to { overflow: hidden; }
.l-to-name {
  font-size: calc(20pt * var(--s));
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1mm;
}
.l-to-address {
  font-size: calc(14pt * var(--s));
  font-weight: 700;
  line-height: 1.22;
  white-space: pre-line;
}
.l-to-place { font-size: calc(14pt * var(--s)); font-weight: 700; line-height: 1.22; }
.l-to-pin { font-size: calc(19pt * var(--s)); font-weight: 700; margin-top: 1mm; letter-spacing: 0.4pt; }
.l-to-phone { font-size: calc(16pt * var(--s)); font-weight: 700; margin-top: 0.8mm; }
.l-ghost { color: #bbb; }

.l-details {
  border-top: 0.4mm solid #000;
  margin-top: 2.4mm;
  padding-top: 2mm;
  font-size: 10.5pt;
}
.l-cod {
  border: 0.6mm solid #000;
  padding: 1mm 1.5mm;
  text-align: center;
  font-size: 15pt;
  font-weight: 700;
  margin-bottom: 1.4mm;
  white-space: pre-wrap;
}

#print-root {
  position: absolute;
  left: -200mm;
  top: 0;
  background: #fff;
}

@media print {
  html, body { background: #fff !important; margin: 0; padding: 0; min-height: 0; }
  #screen, #toasts, dialog { display: none !important; }
  #print-root { position: static; }
}
