/* SiteFlow — Export & print registers (pairs with sf-export.js) */

/* Hidden frame the print view is built in */
.sf-export-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; opacity: 0; pointer-events: none; }

/* Export sheet */
.sf-ex { padding-top: 4px; }
.sf-ex .sf-ex-lbl { font-size: 14px; font-weight: 600; color: var(--n5); margin: 12px 0 6px; }
.sf-ex .sf-seg.sf-ex-seg { margin: 0; }
.sf-ex .sf-ex-seg button { font-size: 14px; padding: 0 6px; }
.sf-ex .sf-ex-note { margin: 12px 0 0; font-size: 13px; color: var(--n5); line-height: 1.45; }
.sf-ex .sf-ex-list { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.sf-ex .sf-ex-list .sf-row { padding-right: 14px; }
.sf-ex .sf-ex-list .sf-row:hover { background: var(--ground); }
.sf-ex .sf-ex-list .sf-row > .ms:first-child { color: var(--n9); font-size: 24px; }
.sf-ex .sf-ex-list .sf-row > .ms:last-child { color: var(--n4); font-size: 22px; }
.sf-ex .sf-ex-list .t, .sf-ex .sf-ex-list .m { display: block; }
.sf-ex .sf-ex-busy { opacity: .55; pointer-events: none; }

/* Phone top bar icon sits with the others */
.sf-top .sf-ex-ico { flex: none; }
.sf-top-sub .sf-ex-ico { margin-left: auto; }
.sf-top-sub .tt + .sf-ex-ico, .sf-top-sub .sf-iconbtn + .sf-ex-ico { margin-left: 0; }

/* ── Printing the app page directly (browser Print on any screen) ── */
@media print {
  @page { size: A4; margin: 12mm; }
  html.v3, body.v3, body.v3 #app, body.v3 .main-content { background: #fff !important; }
  body.v3 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sf-tabs, .sf-top, .sf-side, .sf-dtop, .sf-bar, .sf-fbar, .sf-toast, .sf-sheet, .sf-backdrop,
  .sf-ex-btn, .sf-ex-ico, .sf-search-results, body.v3 #app .main-content > .topbar,
  body.v3 #app .sidebar, body.v3 #app .bottom-nav, body.v3 #app .mobile-nav { display: none !important; }
  body.v3 #app .main-content { margin: 0 !important; padding: 0 !important; }
  body.v3 #app .page-body { padding: 0 !important; }
  body.v3 #app .sf-scr { padding: 0 !important; max-width: none !important; }
  /* Show both layouts' content plainly; buttons and filters aren't useful on paper */
  body.v3 #app .sf-dh .acts, body.v3 #app .sf-filters, body.v3 #app .sf-roles, body.v3 #app .sf-seg,
  body.v3 #app .sf-banner, body.v3 #app .sf-rec .acts, body.v3 #app .sf-panel .acts, body.v3 #app .sf-b { display: none !important; }
  body.v3 #app .sf-2col { display: block !important; }
  body.v3 #app .sf-2col > * { margin-bottom: 12px; }
  body.v3 #app .sf-tablewrap, body.v3 #app .sf-panel, body.v3 #app .sf-list, body.v3 #app .sf-stat, body.v3 #app .sf-hero {
    box-shadow: none !important; border-color: #D5DBE5 !important; overflow: visible !important; max-height: none !important;
  }
  body.v3 #app .sf-hscroll { overflow: visible !important; flex-wrap: wrap; }
  body.v3 #app .sf-t { width: 100%; }
  body.v3 #app .sf-t thead { display: table-header-group; }
  body.v3 #app .sf-t tr, body.v3 #app .sf-rec, body.v3 #app .sf-row { break-inside: avoid; page-break-inside: avoid; }
  body.v3 #app .sf-t tr.sel { background: none !important; }
  body.v3 #app a[href^="http"]::after { content: ""; }
}
