.bill-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:0 auto 24px;display:flex}.bill-actions a{align-items:center;text-decoration:none;display:inline-flex}.bill-preview-button{width:100%;margin:12px 0}.standard-bill{box-sizing:border-box;color:#111;background:#fff;width:100%;max-width:400px;margin:20px auto;padding:24px;font:14px/1.5 Arial,sans-serif;box-shadow:0 2px 18px #0000000d}.standard-bill header{text-align:center;border-bottom:1px dashed #777;padding-bottom:12px}.standard-bill h1{margin:0 0 4px;font-size:24px}.standard-bill h2{margin:12px 0 0;font-size:15px}.standard-bill h3{margin:8px 0;font-size:12px}.standard-bill p{margin:4px 0}.standard-bill small{font-size:11px;line-height:1.5;display:block}.bill-meta{grid-template-columns:75px 1fr;gap:4px;margin:14px 0;font-size:12px;display:grid}.bill-meta dd{overflow-wrap:anywhere;margin:0}.standard-bill table{border-collapse:collapse;width:100%;font-size:12px}.standard-bill th,.standard-bill td{text-align:left;vertical-align:top;border-bottom:1px dashed #aaa;padding:8px 0}.standard-bill th:last-child,.standard-bill td:last-child{text-align:right;white-space:nowrap;width:30%}.bill-totals{border-bottom:1px dashed #777;padding:10px 0}.bill-totals>div{justify-content:space-between;gap:8px;margin:5px 0;display:flex}.bill-grand{border-bottom:1px solid #111;padding-bottom:8px;font-size:17px}.bill-totals b,.bill-payments span{text-transform:capitalize}.bill-payments span{justify-content:space-between;gap:8px;display:flex}.bill-payments small,.bill-notes{overflow-wrap:anywhere}.standard-bill footer{text-align:center;border-top:1px dashed #777;margin-top:14px;padding-top:12px;font-size:12px}.bill-draft{text-align:center;border-bottom:1px dashed #777;padding:8px;font-size:11px;font-weight:700}.bill-preview-overlay{z-index:10000;background:#f3f2f8;padding:20px;position:fixed;inset:0;overflow:auto}.bill-preview-content{max-width:600px;margin:auto}@media print{body:has(.standard-bill) *{visibility:hidden!important}:is(body:has(.standard-bill) .standard-bill,body:has(.standard-bill) .standard-bill *){visibility:visible!important}body:has(.standard-bill) .app-shell{display:block!important}body:has(.standard-bill) .bill-actions{display:none!important}.bill-preview-overlay{background:#fff!important;padding:0!important;position:absolute!important;inset:0!important;overflow:visible!important}.standard-bill{font-size:11px;width:74mm!important;max-width:74mm!important;box-shadow:none!important;margin:0!important;padding:2mm!important;position:absolute!important;top:0!important;left:0!important}.standard-bill h1{font-size:18px}.standard-bill table,.bill-meta{font-size:10px}.bill-grand{font-size:14px}.standard-bill tr,.standard-bill footer{break-inside:avoid}body:has(.bill-preview-overlay) .app-shell{display:none!important}}.standard-bill.bill-sinhala{font-family:Noto Sans Sinhala,Iskoola Pota,Nirmala UI,sans-serif;line-height:1.7}.standard-bill.bill-sinhala h1,.standard-bill.bill-sinhala h2,.standard-bill.bill-sinhala h3,.standard-bill.bill-sinhala th,.standard-bill.bill-sinhala b,.standard-bill.bill-sinhala dt{font-family:Noto Sans Sinhala,Iskoola Pota,Nirmala UI,sans-serif}.bill-language{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:3px;padding:4px;display:inline-flex}.bill-language button{color:var(--muted);background:0 0;border:0;border-radius:7px;padding:7px 10px;font:700 13px Noto Sans Sinhala,Iskoola Pota,Nirmala UI,sans-serif}.bill-language button.active{color:var(--brand-dark);background:#ede9fe}.bill-detail-tools{align-items:center;gap:10px;display:flex}.receipt-company-panel{grid-template-columns:minmax(220px,1fr) minmax(320px,1.3fr);align-items:end;gap:22px;margin-bottom:18px;display:grid}.receipt-company-panel h2{margin:6px 0}.receipt-company-panel p{color:var(--muted);margin:0;line-height:1.5}.receipt-company-panel form{align-items:end;gap:10px;display:flex}.receipt-company-panel label{flex:1;gap:6px;font-size:13px;font-weight:750;display:grid}.receipt-company-panel input{border:1px solid var(--line);border-radius:10px;height:44px;padding:0 12px}.receipt-language{justify-content:center;margin:0 auto 12px}@media (max-width:700px){.receipt-company-panel{grid-template-columns:1fr}.receipt-company-panel form{flex-direction:column;align-items:stretch}.bill-detail-tools{flex-wrap:wrap}.receipt-language{margin:0 0 12px}}.standard-bill.bill-weight-purchase{max-width:720px;padding:22px}.standard-bill .bill-weight-table{table-layout:fixed;font-size:clamp(9px,1.7vw,12px)}.bill-weight-table th,.bill-weight-table td{overflow-wrap:anywhere;padding:7px 3px}.bill-weight-table th:first-child,.bill-weight-table td:first-child{width:6%}.bill-weight-table th:nth-child(2),.bill-weight-table td:nth-child(2){width:25%}.bill-weight-table th:nth-child(3),.bill-weight-table td:nth-child(3){text-align:right;width:13%}.bill-weight-table th:nth-child(4),.bill-weight-table td:nth-child(4){text-align:right;width:19%}.bill-weight-table th:nth-child(5),.bill-weight-table td:nth-child(5){text-align:right;width:18%}.bill-weight-table th:nth-child(6),.bill-weight-table td:nth-child(6){text-align:right;width:19%}.bill-weight-table td:nth-child(n+3){white-space:nowrap}.bill-weight-table td:nth-child(2) small{font-size:9px}@media print{.standard-bill.bill-weight-purchase{width:100mm!important;max-width:100mm!important;padding:2mm!important}.standard-bill.bill-weight-purchase .bill-weight-table{font-size:7px}.standard-bill.bill-weight-purchase .bill-weight-table th,.standard-bill.bill-weight-purchase .bill-weight-table td{padding:1.2mm .35mm}.standard-bill.bill-weight-purchase .bill-weight-table td:nth-child(n+3){white-space:normal;overflow-wrap:anywhere}}.standard-bill.bill-tamil,.standard-bill.bill-tamil :is(h1,h2,h3,th,b,dt){font-family:Noto Sans Tamil,Tamil Sangam MN,Latha,Nirmala UI,sans-serif;line-height:1.7}.standard-bill.bill-tamil{overflow-wrap:anywhere}.bill-language{flex-wrap:wrap;max-width:100%}.bill-language button[lang=ta]{font-family:Noto Sans Tamil,Tamil Sangam MN,Latha,Nirmala UI,sans-serif}
