/* Paper formats cloned from the owner's photos (source/bill_format.jpg etc.). A5 portrait, black borders, serif body. */
.paper { background: #fff; color: #000; font-family: "Times New Roman", "Liberation Serif", "DejaVu Serif", Georgia, serif; width: 148mm; min-height: 210mm; padding: 7mm 7mm; font-size: 10.5pt; line-height: 1.25; }
.paper table { border-collapse: collapse; width: 100%; }
.paper .r { text-align: right; } .paper .c { text-align: center; }
/* BILL */
.bill .b-title { text-align: center; font-weight: 700; font-size: 13pt; letter-spacing: .05em; margin-bottom: 2mm; }
.b-head { border: 1px solid #000; } .b-head > tbody > tr > td { vertical-align: top; padding: 1.5mm 2mm; }
.b-left { width: 52%; border-right: 1px solid #000; font-weight: 700; } .b-left div { min-height: 5mm; }
.b-right table th { text-align: left; font-weight: 700; width: 26mm; padding: .3mm 0; } .b-right table td { font-weight: 700; padding: .3mm 0; }
.b-items { border: 1px solid #000; border-top: 0; table-layout: fixed; }
.b-items th { font-weight: 700; border: 1px solid #000; padding: 1.2mm 1mm; font-size: 10pt; }
.b-items td { border-left: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; padding: .9mm 1.2mm; vertical-align: top; }
.b-items tr.empty td { border-bottom: 0; height: 5mm; }
.b-items .it { font-weight: 700; }
.c-item { width: 34%; } .c-bags { width: 8%; } .c-wt { width: 12%; } .c-unit { width: 9%; } .c-rate { width: 17%; } .c-amt { width: 20%; }
.b-foot { border: 1px solid #000; border-top: 1px solid #000; } .b-foot > tbody > tr > td { vertical-align: top; padding: 1.5mm 2mm; }
.b-foot .words { width: 58%; border-right: 1px solid #000; } .b-foot .words .lbl { font-weight: 700; } .b-foot .drv { margin-top: 2mm; font-size: 9.5pt; }
.b-foot .sums th { text-align: right; font-weight: 700; padding: .3mm 2mm; } .b-foot .sums td { text-align: right; width: 28mm; padding: .3mm 0; }
.b-foot .sums tr.tot td, .b-foot .sums tr.tot th { font-weight: 700; font-size: 11.5pt; }
/* STATEMENT: Customer Bill Wise Detail */
.stmt, .area { font-family: Arial, "Liberation Sans", sans-serif; }
.s-firm { text-align: center; font-size: 9pt; margin-bottom: 1mm; }
.s-title { text-align: center; font-size: 16pt; margin-bottom: 1.5mm; }
.s-range { text-align: center; font-size: 10pt; margin-bottom: 1.5mm; } .s-party { text-align: center; font-size: 14pt; font-weight: 700; margin-bottom: 3mm; }
.s-tab th, .s-tab td { border: 1.4px solid #000; padding: .8mm 1.2mm; font-size: 9pt; } .s-tab th { font-weight: 400; }
.s-tab tr.red td { color: #d00000; } .s-tab tr.open td { font-weight: 700; } .s-tab tr.tot td { font-size: 10pt; }
.s-grand { display: flex; justify-content: center; gap: 18mm; margin-top: 3mm; font-size: 11pt; } .s-grand span { font-weight: 700; }
/* AREA OUTSTANDING (Lendari list) */
.a-tab { border: 1px solid #000; } .a-tab > tbody > tr > td { vertical-align: top; border-bottom: 1px solid #000; padding: 1mm 1.5mm; width: 50%; }
.a-tab .a-l { border-right: 1.5px solid #000; } .a-name { font-size: 9.5pt; }
.a-in { border: 1px solid #555; border-radius: 2mm; margin: 1mm 0; font-size: 9pt; } .a-in th { font-weight: 700; text-align: left; padding: .5mm 1.5mm; } .a-in td { padding: .3mm 1.5mm; }
.a-sub { display: flex; justify-content: space-between; gap: 2mm; font-size: 9.5pt; } .a-cr { text-align: right; font-size: 9pt; }
.a-end td { border-bottom: 0 !important; padding-top: 2mm !important; }
@page { size: A5 portrait; margin: 0; }
@media print {
  body { background: #fff; }
  body > #app { display: none !important; }
  body.printing #print-root { display: block !important; }
  /* print-media emulation / screenshot without printDoc(): show the on-screen preview paper only */
  body:not(.printing) #app { display: block !important; }
  body:not(.printing) #app > *:not(main), body:not(.printing) main > *:not(.preview) { display: none !important; }
  body:not(.printing) main, body:not(.printing) .preview { padding: 0 !important; margin: 0 !important; background: #fff !important; }
  .paper { box-shadow: none !important; margin: 0 !important; width: 148mm; min-height: 209mm; page-break-after: always; }
  .toast, .sheet-wrap { display: none !important; }
}
