/* ---- bill: matches "sample bill format" ---- */
.bill { font:14px/1.3 Arial,sans-serif; color:#000; border:1px solid #000; }
.bill .hd { display:grid; grid-template-columns:42.6% 20.7% 36.7%; border-bottom:1px solid #000; }
.bill .hd > div { padding:5px 8px; }
.bill .hd .hl { padding:8px 12px; }
.bill .hd .hm { padding:0; display:flex; flex-direction:column; justify-content:flex-end; border-left:1px solid #000; border-right:1px solid #000; }
.bill .hd .hm div { display:grid; grid-template-columns:41% 59%; border-top:1px solid #000; }
.bill .hd .hm div:first-child { border-top:0; } .bill .hd .hm div:first-child { border-top:1px solid #000; }
.bill .hd .hm span { padding:0 3px; } .bill .hd .hm span + span { border-left:1px solid #000; }
.bill .hd .hr { text-align:right; padding:8px 12px; }
.bill .pt { text-align:center; font-weight:700; border-bottom:1px solid #000; }
.bill table { width:100%; border-collapse:collapse; table-layout:fixed; }
.bill th, .bill td { padding:1px 4px; font-size:14px; font-weight:400; color:#000; text-transform:none; letter-spacing:0; border-left:1px solid #000; border-bottom:0; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.bill th { font-weight:700; border-bottom:1px solid #000; } .bill th:first-child, .bill td:first-child { border-left:0; }
.bill td.n { text-align:right; }
.bill .deal { font-size:12px; margin-top:2px; }
.bill thead { display:table-header-group; } .bill tr { break-inside:avoid; }
.bill td.tl { border-left:0; border-top:1px solid #000; } .bill td.tl2 { border-left:0; border-top:0 !important; }
.bill tr.tt td { border-top:1px solid #000; } .bill tr.tt td.lab { text-align:left; }
.bill tr.tt td.amt { border-left:1px solid #000; }
.bill tr.tt.first td.lab, .bill tr.tt.first td.amt { border-top:1px solid #000; }
.bill tr.tt b { font-weight:700; }
@page { size:A4; margin:0; }   /* zero margin makes the browser drop its own date/title/URL header and footer */
