/* 인쇄 전용(DESIGN 6장): A4 세로, 여백 15mm, 메뉴·단추 숨김, 검정 글자.
   index.html 에서 media="print" 로 불러온다. 업무 화면(출력)이 필요한 규칙은 여기에 더한다. */
@page { size: A4 portrait; margin: 15mm; }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; min-height: 0; }
  .topbar, .sidebar, .tabbar, .toasts, .no-print, .btn, .skip-link, .overlay { display: none !important; }
  .app, .app-body { display: block; }
  .main { padding: 0; }
  .page { max-width: none; padding: 0; gap: 8mm; }
  .card, .table-wrap { box-shadow: none; border-color: #000; background: #fff; }
  .table-wrap { overflow: visible; border: 0; }
  .table th, .table td { color: #000; background: #fff; border-bottom: 0.2mm solid #000; height: auto; padding: 1.5mm 2mm; }
  .table thead { display: table-header-group; }
  .table tr { break-inside: avoid; }
  .chip { background: #fff; color: #000; border: 0.2mm solid #000; }
  a { color: #000; text-decoration: none; }
  .print-page { break-after: page; }
  .print-page:last-child { break-after: auto; }
}

/* 출력 화면(업무 화면 C): 미리 보기 쪽을 그대로 인쇄 */
@media print {
  .print-preview { display: block; overflow: visible; padding: 0; }
  .sheet { width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; gap: 4mm; }
  .sheet.print-page { min-height: 0; }
  .notice-sheet .notice-grid { height: 262mm; grid-template-rows: repeat(4, 1fr); }
  .sheet-table thead { display: table-header-group; }
  .sheet-table tr { break-inside: avoid; }
  .view-page { max-width: none; }
  .print-page-wrap { gap: 0; }
}
