<!DOCTYPE html><html><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Cetak Antrian</title>
<style>
  body{font-family:Arial, sans-serif; font-size:12px; margin:8px;}
  .big{font-size:26px;font-weight:bold}
  .center{text-align:center}
  hr{border:0;border-top:1px dashed #000;margin:6px 0}
</style>
</head><body onload="window.print(); setTimeout(()=>window.close(), 200);">
<div class="center">
  <div class="big">No. <?= (int)$no_antrian ?></div>
  <div><?= html_escape($poli->nama_poli ?? 'POLI'); ?></div>
  <hr>
  <div><?= date('d/m/Y H:i', strtotime($reg->created_at ?? date('Y-m-d H:i:s'))) ?></div>
  <div><?= html_escape($pasien->nama_lengkap ?? '') ?></div>
  <div>RM: <?= html_escape($pasien->rme_no ?? '-') ?></div>
</div>
</body></html>
