{{-- On-screen preview. The document itself is the PDF template rendered to HTML (passed in as $document) and embedded in an isolated iframe so its print CSS cannot leak into the app shell, what you see here matches the downloaded PDF. --}}
@php // Joined toolbar segments: one compact row, scrolls sideways on phones. $seg = 'inline-flex h-8 shrink-0 items-center gap-1.5 whitespace-nowrap px-3 text-xs font-medium transition'; @endphp