:root{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--bg-page:#f4f4f6;--bg-surface:#fff;--bg-hover:#efeff1;--border-default:#d9d9dc;--border-strong:#c5c5c9;--text-primary:#1c1c1f}*{box-sizing:border-box}.receipt-body{background:var(--bg-page,#f4f4f6);color:var(--text-primary,#1c1c1f);font-family:var(--font-sans);flex-direction:column;align-items:center;min-height:100vh;margin:0;padding:24px 16px;display:flex}.receipt-toolbar{align-items:center;gap:8px;width:100%;max-width:720px;margin-bottom:16px;display:flex}.receipt-tool-spacer{flex:auto}.receipt-tool-btn{background:var(--bg-surface,#fff);border:1px solid var(--border-default,#d9d9dc);color:var(--text-primary,#1c1c1f);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:8px 14px;font-size:13px;font-weight:600;text-decoration:none;transition:background .12s,border-color .12s;display:inline-flex}.receipt-tool-btn:hover{background:var(--bg-hover,#efeff1);border-color:var(--border-strong,#c5c5c9)}.receipt{color:#111;background:#fff;width:100%;padding:18px 14px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:12px;line-height:1.45;box-shadow:0 2px 8px #0000000f}.receipt-paper-58mm .receipt{max-width:220px}.receipt-paper-80mm .receipt{max-width:300px}.receipt-paper-a4 .receipt{max-width:720px;font-family:var(--font-sans,system-ui, sans-serif);padding:36px 40px;font-size:13px;line-height:1.5}.rcpt-logo{text-align:center;letter-spacing:.04em;margin-bottom:6px;font-size:15px;font-weight:700}.rcpt-logo-img{text-align:center;margin-bottom:8px}.rcpt-logo-img img{object-fit:contain;max-width:60%;max-height:60px}.rcpt-store{text-align:center}.rcpt-store-name{font-size:13px;font-weight:700}.rcpt-store-addr{font-size:11px}.rcpt-store-tax{opacity:.75;margin-top:2px;font-size:10.5px}.rcpt-header,.rcpt-footer,.rcpt-return{white-space:pre-wrap;text-align:center;margin:6px 0;font-size:11px}.rcpt-return{opacity:.75;margin-top:10px;font-size:10.5px}.rcpt-meta{opacity:.8;justify-content:space-between;margin:8px 0;font-size:11px;display:flex}.rcpt-meta strong{opacity:1;font-weight:700}.rcpt-line{font-size:11px}.rcpt-rule{border-top:1px dashed #888;margin:8px 0}.rcpt-items{flex-direction:column;gap:5px;display:flex}.rcpt-item{grid-template-columns:1fr auto;gap:1px 8px;display:grid}.rcpt-item-name{word-break:break-word;grid-column:1/-1;font-size:11.5px;font-weight:600}.rcpt-item-variant{opacity:.75;font-size:10.5px;font-weight:400}.rcpt-item-qty{opacity:.75;font-variant-numeric:tabular-nums;font-size:10.5px}.rcpt-item-total{text-align:end;font-variant-numeric:tabular-nums;font-size:11.5px}.rcpt-item-note{opacity:.7;grid-column:1/-1;font-size:10.5px;font-style:italic}.rcpt-item-code{letter-spacing:.02em;opacity:.7;grid-column:1/-1;font-size:10px}.rcpt-item-tax{opacity:.7;grid-column:1/-1;font-size:10.5px}.rcpt-item-tax-incl{font-style:italic}.rcpt-totals{flex-direction:column;gap:3px;font-size:11.5px;display:flex}.rcpt-totals>div{font-variant-numeric:tabular-nums;justify-content:space-between;display:flex}.rcpt-total{border-top:1px dashed #888;margin-top:4px;padding-top:5px;font-size:13.5px;font-weight:700}.rcpt-tendered{opacity:.7;padding-inline-start:8px;font-size:11px}.rcpt-tax-incl{opacity:.7;font-size:11px}.rcpt-hsn{font-size:10.5px}.rcpt-hsn-title{margin-bottom:3px;font-size:11px;font-weight:700}.rcpt-hsn-head,.rcpt-hsn-row{font-variant-numeric:tabular-nums;grid-template-columns:1fr auto auto;column-gap:8px;display:grid}.rcpt-hsn-head{opacity:.7;border-bottom:1px dashed #bbb;margin-bottom:2px;padding-bottom:2px;font-size:10px}.rcpt-hsn-head span:not(:first-child),.rcpt-hsn-row span:not(:first-child){text-align:end}.rcpt-hsn-row{margin-top:2px}.rcpt-hsn-row span:first-child{font-weight:600}.rcpt-hsn-comp{opacity:.7;justify-content:space-between;padding-inline-start:8px;font-size:10px;display:flex}.rcpt-barcode-stub{text-align:center;letter-spacing:-1px;margin-top:10px;font-family:ui-monospace,Menlo,monospace;font-size:22px;line-height:1}.rcpt-barcode{text-align:center;margin-top:10px}.rcpt-barcode svg{width:80%;max-width:220px;height:44px}.rcpt-barcode-number{text-align:center;letter-spacing:.06em;margin-top:4px;font-size:11px}.rcpt-qr-stub{flex-direction:column;align-items:center;margin:12px auto 0;display:flex}.rcpt-qr-box{color:#666;border:1px dashed #555;justify-content:center;align-items:center;width:72px;height:72px;font-size:11px;display:flex}.rcpt-qr-caption{opacity:.7;margin-top:4px;font-size:10px}.receipt-paper-a4 .rcpt-store-name{font-size:18px}.receipt-paper-a4 .rcpt-meta{font-size:12.5px}.receipt-paper-a4 .rcpt-item-name{font-size:13px}.receipt-paper-a4 .rcpt-item-qty{font-size:12px}.receipt-paper-a4 .rcpt-item-total{font-size:13px}.receipt-paper-a4 .rcpt-total{font-size:16px}.receipt-paper-a4 .rcpt-rule{border-color:#ddd}@media print{.receipt-toolbar{display:none!important}.receipt-body{background:#fff;min-height:0;padding:0}.receipt{box-shadow:none;padding:4px 8px}@page{margin:0}}
