.report-preview-overlay{z-index:50000;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;padding:var(--layout-work-dialog-gutter,clamp(8px, 2vw, 24px));color:inherit;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172ab3;border:0;place-items:center;margin:0;display:none;position:fixed;inset:0;overflow:hidden}.report-preview-overlay[open]{display:grid}.report-preview-overlay::backdrop{background:0 0}.report-preview-dialog{width:var(--layout-work-dialog-width,min(1500px, 98vw));border:1px solid var(--border-strong);min-width:0;height:min(960px,96dvh);color:var(--text-primary);background:var(--surface-1);border-radius:18px;grid-template-rows:auto minmax(0,1fr);display:grid;overflow:hidden;box-shadow:0 28px 90px #02061766}.report-preview-toolbar{border-bottom:1px solid var(--border-default);background:var(--surface-2);justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:10px 14px;display:flex}.report-preview-toolbar>div{gap:2px;min-width:0;display:grid}.report-preview-toolbar :is(small,strong){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.report-preview-toolbar small{color:var(--text-muted)}.report-preview-toolbar strong{font-size:var(--font-section-title)}.report-preview-loading{min-height:360px;color:var(--text-secondary);align-content:center;justify-items:center;gap:8px;display:grid}.report-preview-loading>span{border:3px solid var(--border-default);border-top-color:var(--primary);border-radius:50%;width:34px;height:34px;animation:.8s linear infinite report-preview-spin}@keyframes report-preview-spin{to{transform:rotate(360deg)}}.report-pdf-preview{background:#64748b;grid-template-rows:auto auto minmax(0,1fr);min-width:0;min-height:0;display:grid}.report-approval-notice{align-items:center;gap:var(--space-2);padding:var(--space-3);color:var(--warning-text);background:var(--warning-soft);font-size:var(--font-caption);flex-wrap:wrap;display:flex}.report-approval-notice[data-approved=true]{color:var(--primary);background:var(--primary-soft)}.report-approval-notice>span{overflow-wrap:anywhere;min-width:0;color:var(--text-secondary)}.report-approval-notice>a{min-height:44px;padding:var(--space-2);color:var(--primary);align-items:center;margin-inline-start:auto;font-weight:700;display:inline-flex}.report-preview-error{place-content:center;justify-items:center;gap:var(--space-3);padding:var(--space-4);color:var(--danger-text);background:var(--surface-1);text-align:center;display:grid}.report-preview-error>button{min-height:44px;padding:var(--space-2) var(--space-4);border:1px solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);background:var(--surface-2)}.report-approval-notice a:focus-visible,.report-preview-error button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.report-preview-fatal{align-content:center;justify-items:center;gap:var(--space-4);min-width:0;min-height:360px;color:var(--text-primary);background:var(--surface-1);text-align:center;padding:clamp(20px,5vw,48px);display:grid}.report-preview-fatal>span{width:52px;height:52px;color:var(--danger-text);background:var(--danger-soft);font-size:var(--font-card-title);border-radius:16px;place-items:center;font-weight:800;display:grid}.report-preview-fatal>div:not(.report-preview-fatal-actions){gap:var(--space-2);max-width:620px;display:grid}.report-preview-fatal h2,.report-preview-fatal p{margin:0}.report-preview-fatal p{color:var(--text-secondary);line-height:1.8}.report-preview-fatal-actions{justify-content:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.report-preview-fatal-actions button{min-height:44px;padding:var(--space-2) var(--space-4);border:1px solid var(--primary);border-radius:var(--radius-control);color:var(--text-on-accent);background:var(--primary);font:inherit;cursor:pointer;font-weight:700}.report-preview-fatal-actions button.secondary-button{color:var(--text-primary);background:var(--surface-2);border-color:var(--border-default)}.report-preview-fatal-actions button:focus-visible{outline:3px solid color-mix(in srgb, var(--primary) 34%, transparent);outline-offset:2px}.report-preview-actions{background:var(--surface-1);border-bottom:1px solid var(--border-default);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;padding:8px 12px;display:grid}.report-preview-file-actions{align-items:center;gap:4px;min-width:0;display:inline-flex}.report-preview-actions :is(button,a){border:1px solid var(--border-default);border-radius:var(--radius-control);min-height:40px;color:var(--text-primary);background:var(--surface-2);font:inherit;cursor:pointer;justify-content:center;align-items:center;padding:7px 14px;font-weight:700;text-decoration:none;display:inline-flex}.report-preview-file-actions>button:first-child{border-color:var(--primary);color:var(--text-on-accent);background:var(--primary)}.report-preview-actions :is(button,a):hover:not(:disabled){border-color:var(--primary)}.report-preview-actions :is(button,a):focus-visible{outline:3px solid color-mix(in srgb, var(--primary) 34%, transparent);outline-offset:2px}.report-preview-actions button:disabled{opacity:.55;cursor:not-allowed}.report-preview-summary{min-width:0;color:var(--text-muted);font-size:var(--font-caption);text-align:end}.report-pdf-stage{scrollbar-gutter:stable both-edges;background:#64748b;min-width:0;min-height:0;padding:16px;overflow:auto}.report-pdf-stage canvas{background:#fff;max-width:none;margin-inline:auto;display:block;box-shadow:0 0 0 1px #0f172a1f,0 8px 24px #0f172a29}.report-pdf-stage:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}.report-print-frame{opacity:0;pointer-events:none;border:0;width:1px;height:1px;position:fixed;inset:auto auto 0 0}@media (width<=640px){.report-preview-overlay{padding:0}.report-preview-dialog{border:0;border-radius:0;width:100vw;height:100dvh}.report-preview-toolbar{padding-top:max(9px, env(safe-area-inset-top))}.report-preview-actions{grid-template-columns:1fr;padding:8px}.report-preview-file-actions,.report-preview-actions :is(button,a){min-height:44px;padding-inline:8px}.report-preview-summary{text-align:center;width:100%}.report-pdf-stage{padding:8px}}
