/* 共用樣式（Tailwind 走 CDN，這裡只放少數客製樣式） */
#signatureCanvas { touch-action: none; }
.status-badge { display:inline-block; padding:2px 10px; border-radius:9999px; font-size:12px; font-weight:600; }
.status-draft { background:#f3f4f6; color:#6b7280; }
.status-pending_signature { background:#fef3c7; color:#92400e; }
.status-signed { background:#dcfce7; color:#166534; }
.status-voided { background:#fee2e2; color:#991b1b; }

@media print {
  @page { size: A4 portrait; margin: 8mm 10mm; }
  .no-print { display: none !important; }
  body { background: #fff !important; }
  main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .print-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 12px;
  }
  .print-sheet h2 { margin-bottom: 6px !important; }
  .print-sheet table { page-break-inside: avoid; margin-bottom: 4px !important; }
  .print-sheet td { padding: 4px 7px !important; }
  /* 單頁配置：證件、存摺欄位固定高度撐滿版面，影像放大清楚，簽名縮小 */
  .print-id-cell { height: 62mm; vertical-align: middle; }
  .print-bankbook-cell { height: 68mm; vertical-align: middle; }
  .print-id-img { max-height: 60mm !important; max-width: 100% !important; }
  .print-bankbook-img { max-height: 66mm !important; max-width: 100% !important; }
  .print-sign-img { max-height: 22mm !important; }
}
