/* Print: slips and reports on plain white paper (DESIGN.md "A slip is its own layout").
   The app chrome disappears; a .slip fits one 80mm / A6 page; a .report uses the page. */

@page slip {
  size: A6;
  margin: 6mm;
}

@media print {
  @page { margin: 8mm; }

  html,
  body {
    background: var(--print-paper);
    color: var(--print-ink);
    font-size: 11pt;
  }

  .topbar,
  .tabbar,
  .toasts,
  .actions,
  .savebar,
  .btn,
  .icon-btn,
  .no-print { display: none !important; }

  .app-main { padding: 0; }

  .band,
  .band-alt {
    background: var(--print-paper);
    padding: 0 0 6mm;
  }

  .card,
  .notice {
    background: var(--print-paper);
    border-color: var(--print-ink);
    break-inside: avoid;
  }

  .display { font-size: 22pt; }
  .section-title { font-size: 15pt; }

  .report { width: 100%; font-size: 9pt; }
  .report table { width: 100%; border-collapse: collapse; }
  .report th,
  .report td { border: 0.5pt solid var(--print-ink); padding: 2pt 4pt; }

  .grid-scroll { overflow: visible; }

  /* reports: the table uses the page; the tanda tangan column appears only on paper */
  .print-only { display: table-cell; }
  .table { font-size: 8.5pt; }
  .table th,
  .table td { padding: 3pt 5pt; border: 0.5pt solid var(--print-ink); white-space: normal; }
  .table .ttd { min-width: 30mm; }
  .table-grid th:first-child,
  .table-grid td:first-child { position: static; background: var(--print-paper); }
  .report-band { padding-top: 0; }
  .hero { padding: 0 0 4mm; }
  .eyebrow { display: none; }

  /* a slip prints alone, on its own small page (A6; an 80mm roll scales it to fit) */
  .slip-band,
  .slip-band .col { padding: 0; }
  .slip {
    page: slip;
    max-width: none;
    padding: 0;
    border: 0;
    background: var(--print-paper);
    font-size: 8.5pt;
    break-inside: avoid;
  }
  .slip-rows td { padding: 1pt 0; }
  .slip-head .card-title { font-size: 12pt; }
  .week { min-width: 0; }
  .week .week-name { position: static; }
  a { text-decoration: none; }
}
