.receipt-actions{display:flex;gap:8px;flex-wrap:wrap}.receipt-line{border:1px solid #dedbd5;border-radius:14px;padding:14px;margin:12px 0;background:#fff}.receipt-line .fields{gap:8px 14px}.receipt-line label{margin:4px 0}.remove-line{background:transparent;border:0;color:#62594b;min-height:44px;text-decoration:underline;cursor:pointer}.line-heading{margin-top:24px}.receipt-name{grid-column:1/-1}.receipt-suggestions{margin:6px 0 0;border:1px solid #ddd8cf;border-radius:10px;overflow:hidden;max-height:300px;overflow-y:auto}.receipt-suggestions button{display:block;width:100%;text-align:left;padding:12px;border:0;border-bottom:1px solid #eee;background:white;color:#171717;cursor:pointer;min-height:48px}.receipt-suggestions button:hover,.receipt-suggestions button:focus{background:#f5f3ef}.receipt-suggestions strong,.receipt-suggestions small{display:block}.receipt-suggestions small,.price-hint{font-size:12px;color:#68645c;font-weight:400}.price-hint{display:block;margin-top:5px}
#receipt{background:#fff;border:1px solid #ddd;max-width:800px;margin:30px auto;color:#222;padding:24px;font-family:Arial,sans-serif;line-height:1.35}.receipt-brand{background:#fff;color:#222;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #aaa;padding:0 0 12px}.receipt-logo{font:22px Georgia,serif}.receipt-logo span{color:inherit}.receipt-brand p{font-size:8px;letter-spacing:2px;margin:3px 0 0}.receipt-document{text-align:right;font-size:12px}.receipt-document small{display:block;font-size:8px;margin-top:4px;color:#555}.receipt-intro{padding:12px 0 8px}.receipt-meta{display:flex;justify-content:space-between;gap:16px}.receipt-meta small{font-size:8px;color:#666;display:block}.receipt-meta strong{font-size:12px;display:block;margin:3px 0;overflow-wrap:anywhere}.receipt-reference{font-size:7px;color:#777;overflow-wrap:anywhere;margin:5px 0}.receipt-table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}.receipt-table th{padding:7px 4px;text-align:right;font-size:9px;border-bottom:1px solid #aaa;font-weight:600}.receipt-table td{padding:7px 4px;text-align:right;border-bottom:1px solid #e8e8e8;vertical-align:top}.receipt-table th:first-child,.receipt-table td:first-child{text-align:left;width:56%;overflow-wrap:anywhere}.receipt-table th:nth-child(2){width:8%}.receipt-table th:nth-child(3),.receipt-table th:nth-child(4){width:18%}.receipt-table td strong{font-weight:500}.receipt-table td small{font-size:9px;color:#555}.receipt-bottom{padding:12px 0;display:grid;grid-template-columns:1fr 220px;gap:24px;break-inside:avoid}.receipt-payment>small{font-size:8px;color:#666}.receipt-payment p{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.receipt-payment p:empty{display:none}.receipt-totals p{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin:4px 0}.receipt-totals .receipt-total{border-top:1px solid #aaa;padding-top:7px;font-size:14px}.receipt-footer{text-align:center;border-top:1px solid #ccc;padding-top:12px;break-inside:avoid}.receipt-footer>p{font-size:11px;margin:0 0 5px}.receipt-footer div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:9px;margin:4px 0}.receipt-footer a{color:inherit;text-decoration:none}.receipt-footer .non-fiscal{display:block;font-size:8px;color:#666}.receipt-history{border-bottom:1px solid #eee;padding:12px 0}.receipt-history strong{display:block}.receipt-history p{font-size:13px;margin:4px 0}.receipt-history button{margin-top:8px}
@media(max-width:600px){#receipt{padding:14px}.receipt-logo{font-size:19px}.receipt-document{font-size:10px}.receipt-document small{font-size:7px}.receipt-table{font-size:10px}.receipt-table th,.receipt-table td small{font-size:8px}.receipt-table th:first-child,.receipt-table td:first-child{width:48%}.receipt-table th:nth-child(3),.receipt-table th:nth-child(4){width:22%}.receipt-bottom{grid-template-columns:1fr;gap:8px}.receipt-line .fields{grid-template-columns:1fr 1fr}}
@page{size:A4;margin:10mm 12mm}@media print{html,body{background:#fff!important;margin:0;padding:0;line-height:1.25}header.screen,.screen{display:none!important}main{max-width:none;margin:0;padding:0}#admin{display:block}#receipt{max-width:none;width:100%;margin:0;border:0;box-shadow:none;padding:0;font-size:10pt;line-height:1.25}.receipt-brand{background:#fff!important;color:#222!important;padding:0 0 9px;flex-wrap:nowrap}.receipt-logo{font-size:18pt}.receipt-brand p{font-size:6pt}.receipt-document{font-size:9pt;text-align:right}.receipt-document small{font-size:6pt}.receipt-intro{padding:8px 0 6px}.receipt-meta strong{font-size:9pt}.receipt-meta small{font-size:6pt}.receipt-reference{font-size:6pt}.receipt-table{font-size:9pt}.receipt-table th{font-size:7pt;padding:5px 4px}.receipt-table td{padding:5px 4px}.receipt-table th:first-child,.receipt-table td:first-child{width:56%}.receipt-table th:nth-child(3),.receipt-table th:nth-child(4){width:18%}.receipt-table td small{font-size:7pt}.receipt-bottom{grid-template-columns:1fr 60mm;gap:8mm;padding:9px 0}.receipt-totals p{font-size:9pt}.receipt-totals .receipt-total{font-size:11pt;padding-top:5px}.receipt-payment p{font-size:8pt}.receipt-footer{padding-top:9px}.receipt-footer>p{font-size:9pt}.receipt-footer div{font-size:7pt}.receipt-footer .non-fiscal{font-size:6pt}.receipt-brand,.receipt-intro,.receipt-bottom,.receipt-footer,tr{break-inside:avoid}thead{display:table-header-group}.receipt-footer a:after{content:none}}
/* Restrained gold accents; spacing and print pagination stay unchanged. */
#receipt{--receipt-gold:#89692f;--receipt-gold-line:#b59a62}#receipt .receipt-logo span,#receipt .receipt-brand p,#receipt .receipt-table th,#receipt .receipt-total>span,#receipt .receipt-footer>p{color:var(--receipt-gold)}#receipt .receipt-brand,#receipt .receipt-table th,#receipt .receipt-totals .receipt-total,#receipt .receipt-footer{border-color:var(--receipt-gold-line)}@media print{#receipt{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Adaptive document preview and white-paper finishing. */
#receipt[data-density=short]{max-width:730px;padding:28px;font-size:12px}#receipt[data-density=short] .receipt-table td{padding:12px 5px}#receipt[data-density=short] .receipt-table{font-size:12px}#receipt[data-density=short] .receipt-logo{font-size:27px}#receipt[data-density=compact] .receipt-table td{padding:5px 4px}#preview-count{display:block;margin-top:9px;color:#777}.receipt-footer{position:relative;padding-right:62px;min-height:54px}.receipt-footer #receipt-qr{position:absolute;right:0;top:9px;display:block;width:54px;height:54px;margin:0}.receipt-footer svg{width:100%;height:100%;fill:#222;shape-rendering:crispEdges}.receipt-footer .non-fiscal{margin-top:8px}.receipt-table td:nth-child(2),.receipt-table td:nth-child(3),.receipt-table td:nth-child(4){white-space:nowrap}@media(max-width:600px){#receipt[data-density=short]{padding:16px}.receipt-footer{padding-right:48px}.receipt-footer #receipt-qr{width:44px;height:44px}}@media print{#receipt[data-density=short]{max-width:none;padding:0;font-size:10pt}#receipt[data-density=short] .receipt-table{font-size:10pt}#receipt[data-density=short] .receipt-table td{padding:8px 4px}#receipt[data-density=short] .receipt-logo{font-size:21pt}#receipt[data-density=compact] .receipt-table{font-size:8.5pt}#receipt[data-density=compact] .receipt-table td{padding:4px}#receipt[data-density=compact] .receipt-table td small{font-size:6.5pt}.receipt-footer{padding-right:17mm;min-height:15mm}.receipt-footer #receipt-qr{width:15mm;height:15mm;top:2mm}.receipt-table td:nth-child(3),.receipt-table td:nth-child(4){white-space:nowrap}}
