.tax-receipt-editor{display:grid;gap:16px}.tax-receipt-buyer-fields{margin:0}.tax-receipt-modes{display:flex;flex-wrap:wrap;gap:10px 22px;border:1px solid var(--line);border-radius:12px;padding:12px 14px}.tax-receipt-modes legend{padding:0 6px;font-weight:900}.tax-receipt-modes label{display:flex;align-items:center;gap:7px;font-weight:800}.tax-receipt-modes input{width:18px;height:18px}.tax-receipt-editor [hidden]{display:none!important}.tax-receipt-correction-reason{padding:14px;border:1px solid #f3c36d;border-radius:12px;background:#fffaf0}.tax-receipt-revision-badge{display:inline-flex;margin:12px 0 0;padding:6px 10px;border-radius:999px;background:#fff4dc;color:#8a4b08;font-size:12px;font-weight:900}

.tax-receipt-preview{--receipt-navy:#17324d;--receipt-teal:#0f8a7b;--receipt-ink:#25313c;--receipt-muted:#6b7b87;--receipt-line:#cfd8de;border:2px solid var(--receipt-navy);border-radius:14px;background:#fff;color:var(--receipt-ink);padding:20px;font-family:"Microsoft JhengHei","Noto Sans TC",sans-serif;box-shadow:0 14px 34px rgba(23,50,77,.08)}.tax-receipt-head{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:start;border-bottom:1px solid var(--receipt-line);padding-bottom:13px}.tax-receipt-head h3{margin:0;color:var(--receipt-navy);font-size:31px;line-height:1.1;letter-spacing:1px}.tax-receipt-head p{margin:6px 0 0;color:var(--receipt-teal);font-size:13px;font-weight:900}.tax-receipt-meta{display:grid;gap:7px;text-align:right;font-size:12px}.tax-receipt-meta strong{font-size:14px}.tax-receipt-buyer{display:grid;grid-template-columns:1.05fr .9fr 1.25fr;gap:15px;margin-top:14px;border:1px solid var(--receipt-line);border-radius:10px;background:#f3f7f8;padding:13px 16px}.tax-receipt-buyer span{display:grid;gap:5px;min-width:0}.tax-receipt-buyer small,.tax-receipt-bottom small{color:var(--receipt-muted);font-size:11px;font-weight:800}.tax-receipt-buyer strong{font-size:14px;overflow-wrap:anywhere}.tax-receipt-items{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;margin-top:14px}.tax-receipt-items th{border:0;background:var(--receipt-navy);color:#fff;padding:10px 12px;text-align:left;font-size:12px}.tax-receipt-items th:first-child{width:55%;border-radius:8px 0 0}.tax-receipt-items th:last-child{border-radius:0 8px 0 0}.tax-receipt-items th:nth-child(2){width:10%}.tax-receipt-items th:nth-child(n+2),.tax-receipt-items td:nth-child(n+2){text-align:right}.tax-receipt-items td{border-left:1px solid var(--receipt-line);border-bottom:1px solid var(--receipt-line);padding:10px 12px;font-size:13px}.tax-receipt-items td:last-child{border-right:1px solid var(--receipt-line);font-weight:900}.tax-receipt-bottom{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px;margin-top:14px}.tax-receipt-bottom>section{min-height:136px;border:1px solid var(--receipt-line);border-radius:10px;padding:13px}.tax-receipt-seller{background:#f3f7f8}.tax-receipt-seller h4{margin:5px 0 8px;color:var(--receipt-navy);font-size:18px}.tax-receipt-seller p{margin:4px 0;font-size:12px}.tax-receipt-summary p{display:flex;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:12px}.tax-receipt-summary p.total{border-top:1px solid var(--receipt-line);padding-top:12px;color:var(--receipt-navy);font-weight:900}.tax-receipt-summary p.total strong{color:#b42318;font-size:19px}.tax-receipt-summary em{display:block;margin-top:14px;font-family:"DFKai-SB","BiauKai",serif;font-size:12px;font-style:normal}.tax-receipt-stamps>div{display:flex;align-items:flex-end;justify-content:center;gap:7px;margin-top:19px}.tax-receipt-stamps img{width:106px;max-height:80px;object-fit:contain}.tax-receipt-stamps img.private{width:47px;height:47px}.tax-receipt-preview footer{display:flex;justify-content:space-between;gap:15px;margin-top:10px;color:var(--receipt-muted);font-size:10px}

@media(max-width:720px){.tax-receipt-modes{display:grid}.tax-receipt-preview{padding:12px;overflow-x:auto}.tax-receipt-preview>.tax-receipt-head,.tax-receipt-preview>.tax-receipt-buyer,.tax-receipt-preview>.tax-receipt-items,.tax-receipt-preview>.tax-receipt-bottom,.tax-receipt-preview>footer{min-width:680px}.tax-receipt-head h3{font-size:26px}}
