/* Print styles (§0.2: PDFs are print-styled HTML routes under /print/... saved with the browser's "Save as PDF").
   Loaded with media="print" for every page, and applied to screen as well on /print/* (body.print-mode). */
@page{ size:A4; margin:14mm 12mm; }
@media print{
  :root{ color-scheme:light; --bg:#fff; --surface:#fff; --ink:#000; --ink-2:#333; --line:#999; }
  body{ background:#fff; color:#000; font-size:11pt; }
  .topbar,.tabbar,.rail,.subtabs,.snackbar,.toast,.update-toast,.primary-bar,.no-print,.skip-link,dialog{ display:none!important; }
  .app{ display:block!important; }
  #view{ padding:0!important; max-width:none; }
  a{ color:#000; text-decoration:none; }
  .card,.list,.dtable,.table-wrap{ box-shadow:none; border-color:#999; break-inside:avoid; }
  .modal-wrap.open{ position:static; background:none; } .modal{ height:auto; width:100%; padding:0; }
}
body.print-mode .topbar,body.print-mode .tabbar,body.print-mode .rail,body.print-mode .subtabs{ display:none!important; }
body.print-mode .app{ display:block; }
body.print-mode #view{ padding:16px; max-width:210mm; margin:0 auto; background:#fff; color:#000; }
.print-head{ display:flex; align-items:center; gap:12px; border-bottom:2px solid #0F766E; padding-bottom:8px; margin-bottom:12px; }
.print-head img{ height:40px; }
.print-head .org{ font-weight:800; font-size:14pt; }
.print-head .meta{ margin-left:auto; text-align:right; font-size:9pt; color:#333; }
.print-foot{ margin-top:16px; font-size:8pt; color:#555; display:flex; justify-content:space-between; border-top:1px solid #999; padding-top:6px; }
.print-actions{ display:flex; gap:8px; justify-content:flex-end; margin-bottom:12px; }
@media print{ .print-actions{ display:none; } }
