/* Shared paper layout for the authenticated preview and thermal printing. */
.pos-receipt{box-sizing:border-box;width:100%;min-width:0;padding:var(--space-section,16px);background:#fff;color:#202d40;font-family:Arial,sans-serif;font-size:var(--type-label,12px);line-height:1.45;overflow-wrap:anywhere;color-scheme:light}
.pos-receipt h2{font-size:var(--type-dialog-title,18px);line-height:1.3;margin:0 0 6px;font-weight:700;color:#202d40}
.pos-receipt h3{font-size:var(--type-section-title,14px);line-height:1.35;margin:0 0 8px;color:#202d40}
.pos-receipt h4{font-size:var(--type-meta,11px);margin:0 0 8px;line-height:1.4;color:#617185;text-transform:uppercase;letter-spacing:.04em}
.pos-receipt p{font-size:inherit;line-height:inherit;margin:3px 0;white-space:pre-wrap}
.pos-receipt-issuer{padding-bottom:12px;border-bottom:2px solid #202d40}
.pos-receipt-issuer p{font-size:var(--type-meta,11px);color:#617185}
.pos-receipt-identity,.pos-receipt-section{padding-block:12px;border-bottom:1px solid #dce2e9}
.pos-receipt-section:last-child{border-bottom:0;padding-bottom:0}
.pos-receipt .pos-receipt-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:5px 0;break-inside:avoid;min-width:0}
.pos-receipt-line>span{color:#617185;min-width:0}
.pos-receipt .pos-receipt-line>strong{min-width:0;max-width:75%;text-align:right;white-space:normal;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pos-receipt-identity>.pos-receipt-line:first-of-type>strong{font-weight:700;text-align:left}
.pos-receipt-address{margin-top:6px}
.pos-receipt-address>span{font-size:var(--type-meta,11px);color:#617185}
.pos-receipt-items{width:100%;border-collapse:collapse;table-layout:fixed;font-size:inherit}
.pos-receipt-items th{text-align:left;font-size:var(--type-meta,11px);color:#617185;font-weight:500;padding:0 0 6px;border-bottom:1px solid #dce2e9}
.pos-receipt-items :is(th,td):last-child{width:28%;text-align:right;font-variant-numeric:tabular-nums}
.pos-receipt-items td{vertical-align:top;padding:8px 0;border-bottom:1px solid #edf0f4}
.pos-receipt-items td:first-child{padding-right:10px}
.pos-receipt-items td>strong{display:block;font-weight:600}
.pos-receipt-items small{display:block;font-size:var(--type-meta,11px);color:#617185;margin-top:3px}
.pos-receipt-items tr{break-inside:avoid}
.pos-receipt .pos-receipt-grand{border-top:1px solid #dce2e9;padding-top:8px;margin-top:8px;align-items:center}
.pos-receipt .pos-receipt-grand>span{font-weight:600;color:#202d40}
.pos-receipt .pos-receipt-grand>strong{font-size:var(--type-section-title,16px);font-weight:700}
.pos-receipt-secondary{font-size:var(--type-meta,11px)}
.pos-receipt-cancelled{border-top:2px solid #202d40}
.pos-receipt-cancelled h4{font-weight:700;color:#202d40}
body.in-workspace dialog.pos-receipt-dialog{width:440px;padding:var(--space-section)}

/* Compact counter receipt: document geometry is shared with thermal output. */
.pos-receipt{padding:8px;line-height:1.3}
.pos-receipt-issuer{text-align:center;padding-bottom:6px;border-bottom:1px dashed #7a8490}
.pos-receipt-issuer p{margin:1px 0;line-height:1.25}
.pos-receipt h2{margin-bottom:3px}
.pos-receipt h3{text-align:center;font-size:var(--type-label,12px);margin-bottom:4px}
.pos-receipt-identity,.pos-receipt-section{padding-block:6px;border-bottom:1px dashed #7a8490}
.pos-receipt .pos-receipt-line{margin:2px 0;gap:8px}
.pos-receipt-items th{padding-bottom:3px}
.pos-receipt-items td{padding:4px 0}
.pos-receipt-items small{margin-top:1px}
.pos-receipt .pos-receipt-grand{border:0;padding-top:0;margin-top:0}
.pos-receipt-totals{border:0;padding-bottom:0}
.pos-receipt h4{margin-bottom:3px}
.pos-receipt p{margin:2px 0}
.pos-receipt-delivery-row{display:flex;gap:var(--space-inline);align-items:center;justify-content:space-between}
.pos-receipt-delivery-row>.os-note{margin:0;font-size:var(--type-meta)}
.pos-receipt-dialog .customer-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.pos-receipt-dialog .customer-dialog-actions>button{min-width:0;white-space:normal}

.pos-receipt .pos-receipt-thanks{text-align:center;font-weight:700;margin:0;padding-top:8px;font-size:var(--type-label,12px)}
