.workspace-nav{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 26px}
.workspace-nav button[aria-pressed="true"]{background:var(--ink);color:white;border-color:var(--ink)}
.receipt-tool-heading h2{margin-bottom:8px}.receipt-editor-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(400px,1.15fr);gap:24px;align-items:start}
.receipt-form-panel{background:white;border:1px solid var(--line);padding:24px;border-radius:12px}.receipt-form-panel h3{margin:24px 0 10px}.receipt-form-panel h3:first-child{margin-top:0}.receipt-form-panel h3 small{font-size:11px;color:var(--muted);font-weight:400}
.receipt-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.receipt-fields label{font-size:12px;line-height:1.4;min-height:34px}.receipt-fields input{font-size:14px}
.receipt-payment-help{font-size:13px;line-height:1.6;background:#edf4f2;border-left:3px solid #c7b586;padding:13px 15px}.receipt-payment-help>strong:first-child{display:block;margin-bottom:3px}.receipt-money-group{border:1px solid var(--line);border-radius:8px;padding:14px;margin:18px 0;min-width:0}.receipt-money-group legend{font-size:13px;font-weight:600;padding:0 6px}.receipt-money-group>p{margin:0 0 12px;font-size:12px}
.receipt-confirm{font-size:13px;line-height:1.5;margin-top:24px}.receipt-promo-settings label{font-size:12px}.receipt-preview-panel{min-width:0}.receipt-preview-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin:0 0 12px;color:var(--muted)}
.receipt-promo-settings{margin-top:20px}.receipt-promo-settings summary{font-weight:600;cursor:pointer}.receipt-promo-toggle{margin-top:16px}.receipt-promo-offers{border:1px solid var(--line);border-radius:8px;padding:14px;margin:16px 0}.receipt-promo-offers legend{font-size:12px;padding:0 6px}.receipt-promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.receipt-promo-grid label{display:flex;align-items:center;gap:8px;margin:0;cursor:pointer}.receipt-promo-grid input[type=checkbox]{margin:0;flex-shrink:0}.receipt-promo-loyalty{font-size:13px;background:#edf4f2;border-left:3px solid #c7b586;padding:12px}.receipt-promo-settings textarea[readonly]{background:#f5f8f7;color:#153e46;line-height:1.5}.receipt-promo-settings input[type=date]{width:100%;box-sizing:border-box;min-width:0}
.receipt-empty{background:#edf3f1;border:1px dashed #afc5c3;border-radius:12px;padding:50px 28px;text-align:center}.receipt-empty h3{font:26px Georgia,serif}
.receipt-paper{background:#fff;color:#153e46;border:1px solid #dce5e4;padding:30px;min-height:900px;display:flex;flex-direction:column;font:11px/1.4 Arial,sans-serif;overflow-wrap:anywhere;box-shadow:0 8px 30px #173d4510}
.receipt-letterhead{display:flex;gap:18px;align-items:center;justify-content:space-between;padding-bottom:20px;border-bottom:2px solid #183f47}.receipt-logo{display:block;width:180px;max-width:48%;height:auto;object-fit:contain;flex-shrink:0}.receipt-issuer{text-align:right;min-width:0}.receipt-letterhead h2{font:700 18px Arial,sans-serif;letter-spacing:2px;margin:0 0 6px}.receipt-letterhead p{margin:2px 0;font-size:10px}
.receipt-title-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:22px 0 20px}.receipt-title-row h1{font:26px Georgia,serif;letter-spacing:1px;margin:0}.receipt-meta{text-align:right}.receipt-meta strong,.receipt-meta span{display:block}.receipt-meta strong{font-size:12px}.receipt-meta span{font-size:9px;margin-top:4px;color:#647a7c}
.receipt-guest{background:#f5f8f7;padding:14px;margin-bottom:18px}.receipt-guest>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;margin:4px 0}.receipt-guest span{color:#64767a}.receipt-guest strong{font-weight:500}
.receipt-amounts{width:100%;border-collapse:collapse;font-size:11px}.receipt-amounts th{text-align:left;font-weight:400;padding:6px 8px 6px 0;line-height:1.35}.receipt-amounts td{text-align:right;white-space:nowrap;padding:6px 0}.receipt-subtotal{border-top:1px solid #dde6e4;border-bottom:1px solid #dde6e4}.receipt-subtotal th,.receipt-subtotal td{font-weight:700}.receipt-grand-total{border-top:2px solid #173f47;background:#edf4f2}.receipt-grand-total th,.receipt-grand-total td{padding:12px 8px;font-size:12px;font-weight:700}.receipt-explanation{font-size:9px;color:#647a7d;margin:10px 0 14px}.receipt-notes{font-size:10px}.receipt-notes p{margin:4px 0 10px;white-space:pre-wrap}
.receipt-bottom{margin-top:auto;padding-top:20px}.receipt-promotion{border:1px solid #c7b586;background:#faf8ef;padding:16px 18px;margin-bottom:18px}.receipt-promotion h3{font:18px Georgia,serif;margin:0 0 7px}.receipt-promotion p{margin:0;font-size:11px;white-space:pre-wrap}.receipt-thanks{text-align:center;font:14px Georgia,serif;margin:0 0 7px}.receipt-fineprint{text-align:center;color:#768889;font-size:9px;margin:0}
.receipt-review{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;margin-bottom:14px;border-top:1px solid #dde6e4;border-bottom:1px solid #dde6e4}.receipt-review>div{min-width:0}.receipt-review h3{font:17px Georgia,serif;margin:0 0 5px}.receipt-review p{font-size:10px;margin:0 0 5px;max-width:350px}.receipt-review-link{color:#153e46;font-weight:700;text-decoration:underline;text-underline-offset:2px;font-size:12px}.receipt-review-hint,.receipt-review-url{display:block;color:#647a7c;font-size:9px;margin-top:3px}.receipt-review-url{font-size:8px;overflow-wrap:anywhere}.receipt-review>a{flex-shrink:0}.receipt-review-qr{display:block;width:96px;height:96px;max-width:none;background:#fff}
.receipt-history{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-top:32px}.receipt-history-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.receipt-history-head h3{margin-bottom:5px}.receipt-history-head form{min-width:280px}.receipt-history-head label{font-size:12px}.receipt-history-row{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);padding:18px 0}.receipt-history-row p{margin:4px 0;font-size:13px}.receipt-history-row button{flex-shrink:0}
@media(max-width:1000px){.receipt-editor-layout{grid-template-columns:1fr}.receipt-preview-panel{max-width:794px;width:100%;margin:auto}.receipt-paper{min-height:1020px}}
@media(max-width:600px){.receipt-form-panel,.receipt-history{padding:16px}.receipt-fields input{font-size:16px}.receipt-paper{padding:18px;min-height:820px}.receipt-letterhead{gap:10px}.receipt-letterhead h2{font-size:15px}.receipt-logo{width:150px}.receipt-issuer p{font-size:9px}.receipt-title-row h1{font-size:21px}.receipt-guest>div{grid-template-columns:88px 1fr;gap:8px}.receipt-history-head,.receipt-history-row{align-items:stretch;flex-direction:column;gap:10px}.receipt-history-head form{min-width:0}.receipt-history .toolbar{flex-wrap:nowrap}.receipt-history .toolbar button{font-size:12px}.receipt-fields{gap:0 10px}.receipt-fields label{font-size:11px}}
@page{size:A4 portrait;margin:12mm}
@media print{
  html,body{margin:0!important;padding:0!important;background:#fff!important;color:#153e46!important}
  body>*{display:none!important}
  body>#receiptPrint:not([hidden]){display:block!important;margin:0;padding:0;width:100%}
  #receiptPrint .receipt-paper{border:0;box-shadow:none;width:100%;max-width:none;min-height:270mm;padding:2mm;display:block;box-sizing:border-box;font-size:11px;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  #receiptPrint .receipt-letterhead,#receiptPrint .receipt-guest,#receiptPrint .receipt-amounts tr,#receiptPrint .receipt-notes,#receiptPrint .receipt-bottom{break-inside:avoid}
  #receiptPrint .receipt-bottom{padding-top:3mm}
  #receiptPrint .receipt-letterhead{padding-bottom:12px}
  #receiptPrint .receipt-logo{width:44mm;height:auto;max-width:48%}
  #receiptPrint .receipt-title-row{margin:10px 0}
  #receiptPrint .receipt-guest{padding:10px;margin-bottom:10px}
  #receiptPrint .receipt-guest>div{margin:3px 0}
  #receiptPrint .receipt-amounts th,#receiptPrint .receipt-amounts td{padding-top:3px;padding-bottom:3px}
  #receiptPrint .receipt-grand-total th,#receiptPrint .receipt-grand-total td{padding:7px 8px}
  #receiptPrint .receipt-promotion{padding:10px 14px;margin-bottom:12px}
  #receiptPrint .receipt-promotion h3{font-size:15px}
  #receiptPrint .receipt-review{padding:7px 0;margin-bottom:10px}
  #receiptPrint .receipt-review-qr{width:24mm;height:24mm}
}
