/* The surrounding application stays glass; the reference sheet reads as paper. */
.return-estimate{padding:22px var(--ui-pad,27px);border-bottom:1px solid var(--ui-border,#ffffff20);color:var(--ui-text,#e4edf2);font-variant-numeric:tabular-nums}
.return-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:19px}
.return-heading>strong{font-size:14px;font-weight:500}.return-heading>small{font-size:10px;color:var(--ui-muted,#91a8b8)}
.return-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}
.return-values span{display:block;font-size:10px;color:var(--ui-secondary,#bdced8);line-height:1.7}
.return-values b{display:block;font-size:clamp(22px,2.5vw,32px);font-weight:400;line-height:1.5;letter-spacing:-.5px;overflow-wrap:anywhere}
.return-values b>small{font-size:10px;font-weight:400;margin-left:5px;letter-spacing:0;color:var(--ui-secondary,#bdced8)}
.return-estimate p{font-size:11px;line-height:1.8;margin:7px 0;color:var(--ui-secondary,#bdced8)}
.return-estimate .return-condition{border-top:1px solid var(--ui-border,#ffffff20);padding-top:14px;margin-top:0}
.return-condition>span{font-size:10px;margin-right:12px;color:var(--ui-muted,#91a8b8)}
.return-estimate .return-formula{color:var(--ui-text,#e4edf2);overflow-wrap:anywhere}
.return-estimate .return-budget,.return-estimate .return-note{font-size:10px;color:var(--ui-muted,#91a8b8)}
.return-breakdown{margin-top:14px;font-size:11px}.return-breakdown summary{cursor:pointer;color:var(--ui-secondary,#bdced8)}
.return-breakdown caption{text-align:left;font-size:10px;line-height:1.7;padding:12px 0;color:var(--ui-muted,#91a8b8)}
.return-breakdown td,.return-breakdown th{font-size:11px;white-space:normal;min-width:70px}
.return-unavailable{padding-block:16px}.return-unavailable>strong{font-size:12px;font-weight:500}.return-unavailable p{font-size:10px}
.receipt-paper .return-paper{padding:14px 0;border-top:1px dashed #a4afb4;border-bottom:0;color:#202b33;margin-bottom:14px}
.receipt-paper .return-heading{margin-bottom:12px}.receipt-paper .return-heading>strong{font-size:12px}.receipt-paper .return-heading>small{font-size:9px;color:#596d78}
.receipt-paper .return-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.receipt-paper .return-values span{font-size:9px;color:#526774}.receipt-paper .return-values b{font-size:23px;font-weight:600;letter-spacing:-.7px}.receipt-paper .return-values b>small{color:#526774;font-size:9px}
.receipt-paper .return-paper p{font-size:10px;color:#526774;line-height:1.8}.receipt-paper .return-condition{border-color:#bac3c7;padding-top:10px}
.receipt-paper .return-condition>span{color:#526774;display:block;font-size:9px}.receipt-paper .return-paper .return-note{font-size:9px;color:#596d78}.receipt-paper .return-formula{color:#202b33}
@media(max-width:500px){.return-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.return-values>div:first-child:nth-last-child(3){grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between}.return-values b{font-size:25px}.return-values>div:first-child:nth-last-child(3)>b{font-size:18px}.return-heading{margin-bottom:14px}.return-estimate{padding:20px}.return-condition>span{display:block}.receipt-paper .return-values b{font-size:21px}}
#modal.ticket-modal{width:min(790px,calc(100vw - 24px))}
#modal.ticket-modal .modal-body{padding:0 26px 24px}
.receipt-toolbar{position:sticky;top:0;z-index:2;background:rgba(39,61,74,.97);display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 0 16px;margin-bottom:4px;border-bottom:1px solid var(--ui-border,#ffffff20)}
.receipt-toolbar button{border:1px solid transparent;background:none;border-radius:6px;padding:8px 12px;color:var(--ui-secondary,#bdced8);font-size:12px;cursor:pointer}
.receipt-toolbar button[aria-pressed=true]{background:var(--ui-selected,#ffffff15);border-color:var(--ui-border,#ffffff20);color:var(--ui-text,#e4edf2)}
.receipt-toolbar button:focus-visible{outline:2px solid #acc7d8;outline-offset:2px}
.receipt-toolbar span{font-size:11px;color:var(--ui-muted,#91a8b8);margin-left:auto}
.receipt-view{max-width:440px;margin:24px auto 0}
.receipt-sample-note{display:grid;gap:4px;margin:0 0 16px;font-size:11px;line-height:1.8;color:var(--ui-secondary,#bed0dc)}
.receipt-sample-note strong{font-weight:500;color:var(--ui-text,#edf2f5)}
.ticket-card.receipt-paper{--ink:#202b33;display:block;margin:0;padding:24px 23px 20px;background:#f4f5f2;color:#202b33;border:1px solid #d1d6d5;border-radius:1px;box-shadow:0 14px 35px #030a1429;font-family:'SFMono-Regular',Consolas,'PingFang SC','Microsoft YaHei',monospace;font-size:12px;line-height:1.65;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.receipt-paper .receipt-brand{display:flex;justify-content:space-between;font-family:'PingFang SC',sans-serif;font-size:11px;font-weight:600;color:#4c606c;padding-bottom:8px;border-bottom:1px solid #a4b1b8}
.receipt-header{text-align:center}
.receipt-mark{margin:12px 0 4px;display:flex;align-items:center;justify-content:center;gap:15px;color:#415b6b}
.receipt-mark strong{font-size:24px;line-height:1.3;font-weight:700;letter-spacing:3px}
.receipt-mark span{font-size:11px;border-left:1px solid #b7c0c4;padding-left:13px}
.receipt-paper .receipt-header h3{font-size:22px;font-weight:700;letter-spacing:1px;line-height:1.3;color:#202b33;margin:4px 0 2px}
.receipt-paper .receipt-header p{margin:3px 0 6px;font-size:12px;color:#4b5b65}
.receipt-reference{font-size:10px;color:#626e74;padding:6px 0 10px;border-bottom:1px dashed #a4afb4}
.receipt-reference b{display:block;font-size:11px;font-weight:500;letter-spacing:.3px;color:#263b47;margin-top:2px}
.receipt-paper .receipt-summary{display:grid;grid-template-columns:.85fr 1.1fr 1.25fr;gap:9px;padding:17px 0 12px}
.receipt-paper .receipt-summary strong{font-size:18px;font-weight:650;line-height:1.6;white-space:normal;color:#202b33;margin:4px 0 0}
.receipt-paper .receipt-summary strong small{font-size:10px;color:#3a4c57}
.receipt-paper .receipt-summary span,.receipt-paper .receipt-summary>div>small{font-size:10px;color:#586a74}
.receipt-paper .receipt-summary .ticket-total{text-align:right}
.receipt-paper .receipt-summary .ticket-total strong{font-size:21px;color:#202b33}
.receipt-budget{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;font-size:10px;padding:0 0 13px;color:#586a74}
.receipt-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-block:1px solid #99a7ae;padding:8px 0}
.receipt-section-title strong{font-size:12px;font-weight:650}.receipt-section-title span{font-size:9px;color:#5a6c77}
.receipt-paper .receipt-match{display:block;padding:14px 0;border-bottom:1px dashed #b7c0c4}
.receipt-match-no{display:flex;align-items:center;gap:9px;line-height:1.6}.receipt-match-no>b{font-weight:500;font-size:11px;color:#60727d}.receipt-match-no strong{font-size:13px;font-weight:700}.receipt-match-no>span{margin-left:auto;font-size:10px;color:#60727d}
.receipt-paper .receipt-match-date{font-size:9px;margin:2px 0 9px;color:#63737b}
.receipt-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;font-size:13px;font-weight:600;line-height:1.6}
.receipt-teams>span:last-child{text-align:right}.receipt-teams small{font-size:9px;font-weight:400;display:block;color:#5c6f79}.receipt-teams>b{font-size:10px;font-weight:400;color:#78878e}
.receipt-market{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:10px;margin:10px 0 6px;color:#566a76}.receipt-market strong{font-weight:500}
.receipt-options{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px}.receipt-options>span{font-size:10px;color:#586a74}.receipt-options>strong{font-size:15px;font-weight:650}.receipt-options small{font-size:10px;font-weight:400;color:#526774}
.receipt-allocation{padding:16px 0 0}.receipt-allocation h4{font-size:13px;font-weight:700;margin:0 0 10px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.receipt-allocation h4 small{font-size:10px;font-weight:400;color:#5c6e78}
.receipt-group{padding:10px 0;border-top:1px dashed #b7c0c4}.receipt-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.receipt-group-head strong{font-size:12px;font-weight:650}.receipt-group-head b{font-size:15px;font-weight:650;flex:none}
.receipt-paper .receipt-equation{font-size:10px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;margin:4px 0;color:#526774}
.receipt-paper .ticket-expand{padding:5px 0 4px;border:0;background:transparent;color:#405763}
.receipt-paper .ticket-expand summary{font-size:10px;color:#526774;cursor:pointer}
.receipt-paper .ticket-expand ol{margin:6px 0 0;padding-left:23px;font-size:10px;line-height:1.65;max-height:none;overflow:visible}
.receipt-paper .ticket-expand li{padding:3px 0;color:#344e5d;break-inside:avoid}
.receipt-paper .ticket-expand li>strong{font-size:10px;font-weight:500;color:#344e5d}
.receipt-paper .ticket-expand li>span{font-size:9px;color:#647782;margin-top:1px}
.receipt-allocation-total{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #99a7ae;padding-top:11px;margin-top:6px;font-size:12px}.receipt-allocation-total strong{font-size:17px}
.receipt-paper .receipt-small{font-size:9px;color:#687980;margin:4px 0 14px}
.receipt-footer{border-top:1px dashed #a4afb4;padding-top:12px;color:#596d78}
.receipt-paper .receipt-footer p{font-size:10px;color:#596d78;line-height:1.9;margin:0 0 8px}
.receipt-paper .receipt-footer .receipt-checklist{font-size:10px;font-weight:500;color:#3a5362}
.receipt-footer>strong{display:block;text-align:center;font-size:14px;letter-spacing:.5px;padding-top:8px;margin-top:10px;border-top:1px solid #a4afb4;color:#415b6b}
.receipt-footer>span{display:block;text-align:center;font-size:9px;margin-top:4px;color:#60727d}
.receipt-actions{display:flex;justify-content:center;flex-wrap:wrap;border:0!important;padding:18px 0 0!important}
.receipt-actions .outline-button{font-size:11px;color:var(--ui-secondary,#bed0dc);background:var(--ui-inset,#ffffff09);border-color:var(--ui-border,#ffffff20)}
.receipt-error{padding:12px 15px;margin-bottom:16px;border:1px solid #bc8a72;color:#f1cbb3;font-size:12px}.receipt-error p{font-size:11px;line-height:1.8;margin:6px 0 0}
@media(max-width:500px){#modal.ticket-modal .modal-body{padding-inline:14px}.receipt-toolbar{gap:4px}.receipt-toolbar button{padding:7px 9px;font-size:11px}.receipt-toolbar>span{display:none}.ticket-card.receipt-paper{padding:18px 15px}.receipt-view{margin-top:16px}.receipt-paper .receipt-summary strong{font-size:16px}.receipt-paper .receipt-summary .ticket-total strong{font-size:18px}.receipt-paper .receipt-summary strong small{font-size:9px}}
@media print{
 #print-root .receipt-view{margin:0 auto;max-width:110mm}
 #print-root .ticket-card.receipt-paper{padding:7mm;border:1px solid #8797a0;background:white;box-shadow:none;font-size:11px;color:#202b33}
 #print-root .receipt-match,#print-root .receipt-group-head,#print-root .receipt-summary{break-inside:avoid}
 #print-root .receipt-paper .ticket-expand summary{display:block}
 #print-root .receipt-paper .ticket-expand ol{max-height:none;overflow:visible}
 #print-root .receipt-actions{display:none!important}
 #print-root .receipt-sample-note{color:#334b5b;font-size:10px}
 #print-root .receipt-footer{break-inside:avoid}
}
