#print-root { display: none; }
@page { margin: 12mm; }
@media print {
  body { background: #fff !important; color: #111 !important; }
  body.is-printing #app, body.is-printing #modal-root, body.is-printing #toast-root { display: none !important; }
  body.is-printing #print-root { display: block !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.print-doc { font-family: 'Inter', 'Noto Sans Tamil', sans-serif; color: #111; font-size: 12px; background: #fff; }
.print-doc :lang(ta), .print-doc [lang="ta"] { font-family: 'Noto Sans Tamil', sans-serif; }
.pd-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 2px solid #163D34; margin-bottom: 14px; }
.pd-brand { display: flex; gap: 12px; align-items: center; }
.pd-brand h1 { font-size: 18px; color: #163D34; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; }
.pd-brand p { font-size: 11px; color: #444; }
.pd-title { text-align: right; display: grid; gap: 2px; }
.pd-title h2 { font-size: 15px; letter-spacing: .08em; color: #163D34; margin-bottom: 4px; }
.pd-title div { display: flex; gap: 8px; justify-content: flex-end; font-size: 11.5px; }
.pd-title span { color: #555; }
.pd-party { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid #ccd5d0; border-radius: 8px; margin-bottom: 12px; background: #F5F8F6; }
.pd-party span { display: block; font-size: 10.5px; color: #555; text-transform: uppercase; letter-spacing: .05em; }
.pd-party strong { font-size: 13.5px; } .pd-party small { display: block; color: #444; }
.pd-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.pd-table th { background: #163D34; color: #fff; text-align: left; padding: 6px 8px; font-size: 11px; }
.pd-table td { padding: 6px 8px; border-bottom: 1px solid #dde3df; }
.pd-table tfoot td { font-weight: 700; border-top: 2px solid #163D34; background: #F5F8F6; }
.pd-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.pd-table tr { page-break-inside: avoid; }
.pd-totals { margin-left: auto; width: 320px; display: grid; gap: 2px; }
.pd-totals.inline { width: auto; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.pd-totals div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #ccd5d0; }
.pd-totals.inline div { flex-direction: column; border: 1px solid #ccd5d0; border-radius: 6px; padding: 6px 8px; }
.pd-totals .grand { border-top: 2px solid #163D34; border-bottom: 2px solid #163D34; font-size: 14px; font-weight: 800; padding: 6px 0; margin-top: 4px; }
.pd-totals strong { font-variant-numeric: tabular-nums; }
.pd-words { font-size: 11px; color: #333; font-style: italic; margin-top: 6px; }
.pd-note { font-size: 10.5px; color: #555; margin: 8px 0; }
.pd-sign { display: flex; justify-content: space-between; margin-top: 46px; }
.pd-sign div { border-top: 1px solid #333; padding-top: 4px; width: 200px; text-align: center; font-size: 11px; }
.pd-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 8px; border-top: 1px solid #ccd5d0; font-size: 10px; color: #555; }
.pd-demo { font-weight: 800; color: #9A6A12; letter-spacing: .06em; }
/* 80 mm thermal */
.print-thermal { width: 72mm; font-size: 10.5px; margin: 0 auto; }
.print-thermal .pd-head { flex-direction: column; gap: 6px; border-bottom-width: 1px; }
.print-thermal .pd-brand svg { display: none; }
.print-thermal .pd-brand h1 { font-size: 14px; }
.print-thermal .pd-title { text-align: left; }
.print-thermal .pd-title div { justify-content: space-between; }
.print-thermal .pd-party { flex-direction: column; gap: 4px; background: none; border-radius: 0; border-width: 1px 0; padding: 6px 0; }
.print-thermal .pd-table th { background: none; color: #111; border-bottom: 1px solid #111; padding: 3px 2px; font-size: 9.5px; }
.print-thermal .pd-table td { padding: 3px 2px; font-size: 10px; }
.print-thermal .pd-totals { width: 100%; }
.print-thermal .pd-sign { margin-top: 26px; }
.print-thermal .pd-sign div { width: 45%; }
