/* Shared by the on-screen preview, measurement and 80 mm receipt printing. */
/* Keep a 5 mm right-hand safety inset inside the measured 72 mm box. Some
   receipt drivers place the box against the printhead's right-hand limit. */
.kitchen-receipt{box-sizing:border-box;width:72mm;max-width:100%;margin:0 auto;padding:0 5mm 0 0;background:white;color:black;font:11pt/1.25 Arial,"Microsoft YaHei",sans-serif;white-space:normal;overflow-wrap:anywhere;text-align:left}
.kitchen-receipt *{box-sizing:border-box}
.kitchen-receipt p{margin:0}
.kitchen-receipt .receipt-heading{display:block;margin:0;padding:0;background:white;color:black;break-inside:avoid}
.kitchen-receipt .receipt-brand{text-align:center;font-size:12pt;font-weight:700;margin-bottom:1mm}
.kitchen-receipt .receipt-reference{font-size:9.5pt;font-weight:400;line-height:1.15;margin-bottom:1mm}
.kitchen-receipt .receipt-type{text-align:center;font-size:16pt;line-height:1.15;margin:1mm 0}
.kitchen-receipt .receipt-placed{font-size:9pt;margin-top:1mm}
.kitchen-receipt .receipt-collection{border-top:1px solid black;border-bottom:1px solid black;margin-top:2mm;padding:2mm 0;text-align:center;break-inside:avoid}
.kitchen-receipt .receipt-location{font-size:15pt;font-weight:700;line-height:1.15;margin-bottom:1mm}
.kitchen-receipt .receipt-date{font-size:15pt;font-weight:700;line-height:1.2}
.kitchen-receipt .receipt-time{font-size:16pt;font-weight:700;line-height:1.2;margin-top:1mm}
.kitchen-receipt .receipt-customer{padding:2mm 0;border-bottom:1px solid black;break-inside:avoid}
.kitchen-receipt .receipt-label{font-size:9pt;margin-bottom:1mm}
.kitchen-receipt .receipt-customer-name{font-size:14pt;font-weight:700;line-height:1.2}
.kitchen-receipt .receipt-customer-contact{font-size:11pt;line-height:1.25;margin-top:.5mm}
.kitchen-receipt .receipt-item{padding:1.5mm 0;break-inside:avoid}
.kitchen-receipt .receipt-item-row{display:flex;align-items:baseline;gap:2mm}
.kitchen-receipt .receipt-item-name{flex:1;min-width:0;font-size:14pt;line-height:1.2}
.kitchen-receipt .receipt-item-price{flex:none;white-space:nowrap;font-size:11pt}
.kitchen-receipt .receipt-options{list-style:none;padding:0 0 0 4mm;margin:1mm 0 0;font-size:12pt;line-height:1.25}
.kitchen-receipt .receipt-options li{margin:0 0 .5mm}
.kitchen-receipt .receipt-note{font-size:12pt;white-space:pre-wrap;margin-top:1mm}
.kitchen-receipt .receipt-footer{display:block;background:white;color:black;padding:2mm 0 0;margin:0;break-inside:avoid}
.kitchen-receipt .receipt-total{display:flex;justify-content:space-between;gap:2mm;font-size:13pt;font-weight:700}
.kitchen-receipt .receipt-total>span:last-child{flex:none;white-space:nowrap}
.kitchen-receipt .receipt-count{font-size:12pt;margin-top:1mm}
.kitchen-receipt .receipt-payment{text-align:center;font-size:18pt;font-weight:700;line-height:1.2;margin-top:2mm}
.kitchen-receipt .receipt-method{text-align:center;font-size:10pt}
#ticket:has(.kitchen-receipt){white-space:normal;padding:12px;background:white}

/* Used for both measurement and printing when the regular layout is too tall. */
.receipt-compact .kitchen-receipt .receipt-brand,
.receipt-compact .kitchen-receipt .receipt-reference{margin-bottom:.5mm}
.receipt-compact .kitchen-receipt .receipt-type{font-size:14pt;margin:.5mm 0}
.receipt-compact .kitchen-receipt .receipt-placed{margin-top:.5mm}
.receipt-compact .kitchen-receipt .receipt-collection{margin-top:1mm;padding:1mm 0}
.receipt-compact .kitchen-receipt .receipt-location,
.receipt-compact .kitchen-receipt .receipt-date{font-size:13pt}
.receipt-compact .kitchen-receipt .receipt-location{margin-bottom:.5mm}
.receipt-compact .kitchen-receipt .receipt-time{font-size:14pt;margin-top:.5mm}
.receipt-compact .kitchen-receipt .receipt-customer{padding:1mm 0}
.receipt-compact .kitchen-receipt .receipt-customer-contact{font-size:10pt;margin-top:.25mm}
.receipt-compact .kitchen-receipt .receipt-item{padding:1mm 0}
.receipt-compact .kitchen-receipt .receipt-item-name{font-size:12pt}
.receipt-compact .kitchen-receipt .receipt-options,
.receipt-compact .kitchen-receipt .receipt-note{font-size:11pt;line-height:1.2;margin-top:.5mm}
.receipt-compact .kitchen-receipt .receipt-options li{margin-bottom:.25mm}
.receipt-compact .kitchen-receipt .receipt-footer{padding-top:1.5mm}
.receipt-compact .kitchen-receipt .receipt-payment{font-size:16pt;margin-top:1mm}

@media print{
 .kitchen-receipt .receipt-items{break-after:avoid}
}
