/* Keep panel layout and theme overrides out of the printed receipt. */
@media print {
  html body.printing-operation-receipt > :not(.operation-print-document),
  html body.printing-operation-receipt > header.pay-header {
    display: none !important;
  }
  html body.printing-operation-receipt,
  html body:has(> .public-receipt-page) {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  html body.printing-operation-receipt > .operation-print-document,
  html body .public-receipt-page,
  html body .public-receipt-shell,
  html body .receipt-paper-area {
    display: block !important;
    position: static !important;
    width: 80mm !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body .public-receipt-hero,
  html body .receipt-support,
  html body .receipt-copyright {
    display: none !important;
  }
  html body .transaction-receipt {
    box-sizing: border-box !important;
    width: 80mm !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 5mm !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  html body .transaction-receipt,
  html body .transaction-receipt * {
    color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

html body .transaction-receipt { line-height: 1.25; }
html body .transaction-receipt-meta { gap: 1mm; margin-bottom: 3mm; }
html body .receipt-lines { gap: 1.5mm; padding: 3mm 0; }
html body .receipt-customer { padding-block: 3mm; gap: 1mm; }

html body .transaction-receipt-logo { margin-bottom: 2mm; }
html body .transaction-receipt-number { margin: 1.5mm 0 2.5mm; }
html body .transaction-receipt-meta { gap: .5mm; margin-bottom: 2mm; }
html body .receipt-customer { padding-block: 2mm; gap: .5mm; }
html body .receipt-customer strong { margin-bottom: 0; }
html body .receipt-lines { gap: .75mm; padding: 2mm 0; }
html body .receipt-lines .receipt-total { margin-top: 1mm; }
html body .receipt-point { gap: .5mm; padding: 2mm 0 12mm; }
html body .receipt-thanks { gap: 1mm; margin-bottom: 3mm; }
