/* Dialog di layar; dokumen iframe memakai CSS yang sama tanpa inline/CSP bypass. */
.ui-print-dialog{width:min(620px,94vw);max-height:90dvh;overflow:auto}
.ui-print-dialog fieldset{margin:14px 0;border:1px solid var(--line,#ddd);border-radius:8px;padding:12px;min-width:0}
.ui-print-dialog fieldset>label{display:inline-flex;align-items:center;margin-right:18px;gap:4px}
.ui-print-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-top:12px}
.ui-print-columns label{display:flex;align-items:center;gap:7px}
.ui-print-change-filter{padding:0;border:0;text-decoration:underline;background:transparent}
.ui-print-frame{position:fixed;left:-10000px;top:0;width:1px;height:1px;border:0}
@page{margin:12mm;@bottom-center{content:counter(page) " / " counter(pages);font:8pt Arial,sans-serif}}
@page cetak-tegak{size:A4 portrait;margin:12mm}
@page cetak-mendatar{size:A4 landscape;margin:12mm}
body.cetak-tegak{page:cetak-tegak}
body.cetak-mendatar{page:cetak-mendatar}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar){margin:0;color:#111;background:white;font:9.5pt Arial,sans-serif}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) header{display:block;border-bottom:1px solid #555;padding-bottom:8px;margin-bottom:10px;break-inside:avoid}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) img{width:150px;height:auto;max-height:65px;object-fit:contain;object-position:left}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) h1{font-size:16pt;margin:8px 0}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) p{margin:4px 0;overflow-wrap:anywhere}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) table{border-collapse:collapse;width:100%;table-layout:auto}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) :is(th,td){border:1px solid #888;padding:4px 5px;overflow-wrap:break-word;word-break:normal;hyphens:manual;white-space:normal;vertical-align:top;text-align:left}
/* Kertas tegak: huruf sedikit kecil supaya kata utuh muat. */
@media print and (orientation:portrait){body:is(.cetak-otomatis,.cetak-tegak) table{font-size:8pt}body:is(.cetak-otomatis,.cetak-tegak) :is(th,td){padding:3px 4px}}
body.cetak-tegak table{font-size:8pt}
/* Hanya sel berisi kata/kode >18 huruf tanpa spasi yang boleh dipotong di mana saja. */
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) td.cetak-panjang{overflow-wrap:anywhere}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) thead{display:table-header-group}
body:is(.cetak-otomatis,.cetak-tegak,.cetak-mendatar) tr{break-inside:avoid}
