/* Thermal printouts: service order receipt, claim stub, bag tags. Monochrome,
   no backgrounds, sized to the roll via --paper (set by layouts/print). */

body.print {
  margin: 0;
  background: #EEF1F0;
  color: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 11.5px;
  line-height: 1.35;
}
body.paper-80 { font-size: 13px; }

.pr-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  max-width: 480px; margin: 0 auto; padding: 16px;
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif; font-size: 14px;
}
.pr-toolbar p { flex-basis: 100%; margin: 0; color: #5A6B69; }
/* Buttons borrow the admin look outside body.admin. */
.pr-toolbar .a-btn { display: inline-flex; padding: 9px 16px; border-radius: 6px; border: 1px solid #16736A; background: #16736A; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pr-toolbar .a-btn--ghost { background: #fff; color: #16211F; border-color: #DFE7E5; }

.pr-slip {
  width: var(--paper, 48mm);
  margin: 0 auto;
  padding: 3mm 0;
  background: #fff;
  box-sizing: content-box;
}
@media screen { .pr-slip { padding: 4mm; box-shadow: 0 2px 10px rgba(0,0,0,.08); } }

.pr-head { text-align: center; margin-bottom: 2.5mm; }
.pr-logo { width: 42%; margin: 0 auto 1.5mm; display: block; }

.pr-title { display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; border-top: 1.5px solid #000; border-bottom: 1.5px solid #000; padding: 1mm 0; font-weight: 800; }
.pr-title b { font-size: 1.25em; }

.pr-meta { display: grid; grid-template-columns: auto 1fr; gap: .6mm 2.5mm; margin: 2mm 0; }
.pr-meta dt { font-weight: 700; }
.pr-meta dd { margin: 0; overflow-wrap: anywhere; }

.pr-lines { width: 100%; border-collapse: collapse; border-top: 1px dashed #000; }
.pr-lines td { padding: 0; vertical-align: top; }
.pr-lines__name td { padding-top: 1.2mm; font-weight: 600; }
.pr-lines__calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pr-total { display: flex; justify-content: space-between; gap: 2mm; margin-top: 1.5mm; padding: 1.2mm 0; border-top: 1.5px solid #000; border-bottom: 1.5px solid #000; font-weight: 800; }
.pr-total b { font-size: 1.3em; }
.pr-due { margin: 2mm 0; text-align: center; font-weight: 700; font-size: 1.05em; }
.pr-note { margin: 0 0 2mm; white-space: pre-wrap; }
.pr-small { margin: 1.5mm 0; font-size: .82em; }
.pr-terms-title { margin-top: 2mm; font-weight: 700; font-size: .85em; }
.pr-terms { margin: .5mm 0 0; padding-left: 4mm; font-size: .8em; }

.pr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-top: 9mm; text-align: center; font-size: .8em; font-weight: 700; }
.pr-sign span { display: block; border-top: 1px solid #000; margin-bottom: .8mm; }

.pr-stub__label { font-weight: 800; font-size: .9em; letter-spacing: .6px; text-align: center; }
.pr-big { text-align: center; font-size: 2.1em; font-weight: 900; letter-spacing: .5px; margin: 1mm 0 2mm; }
.pr-tag { text-align: center; }
.pr-tag__name { font-size: 1.25em; font-weight: 800; overflow-wrap: anywhere; }
.pr-cut { width: var(--paper, 48mm); margin: 0 auto; padding: 1mm 0; text-align: left; border-top: 1px dashed #000; font-size: 10px; line-height: 1; background: #fff; }
@media screen { .pr-cut { padding-inline: 4mm; box-sizing: content-box; } }

@media print {
  body.print { background: #fff; }
  .pr-toolbar { display: none; }
  .pr-slip { box-shadow: none; }
  .pr-slip, .pr-cut { margin: 0; }
  .pr-stub, .pr-tag { break-inside: avoid; }
}
