.document-pdf { background:var(--slate-100,#f1f5f9); }
.document-pdf [hidden] { display:none !important; }
.document-pdf-toolbar { display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.65rem;flex-wrap:wrap;border-bottom:1px solid var(--slate-200,#e2e8f0);background:#fff; }
.document-pdf button { min-width:40px;min-height:40px;padding:.4rem .75rem;border:1px solid var(--slate-200,#e2e8f0);border-radius:8px;background:#fff;color:var(--navy,#013684);font:inherit;cursor:pointer; }
.document-pdf button:disabled { opacity:.4;cursor:default; }
.document-pdf a:focus-visible,.document-pdf button:focus-visible,.document-pdf-stage:focus-visible { outline:3px solid var(--sky,#0ea5e9);outline-offset:2px; }
.document-pdf-stage { position:relative;overflow:auto;height:min(78vh,860px);min-height:620px;padding:1rem; }
.document-pdf-status { position:sticky;left:0;top:0;display:flex;min-height:420px;align-items:center;justify-content:center;flex-direction:column;gap:.9rem;text-align:center;padding:2rem;color:var(--navy,#013684); }
.document-pdf-status strong { font-size:1.05rem; }
.document-pdf-status [data-pdf-detail] { max-width:30rem;color:var(--slate-600,#475569);font-size:.875rem;line-height:1.6; }
.document-pdf-spinner { width:42px;height:42px;border:4px solid #dbeafe;border-top-color:var(--sky,#0ea5e9);border-radius:50%;animation:document-pdf-spin .9s linear infinite; }
.document-pdf[data-pdf-state="error"] .document-pdf-spinner { display:none; }
.document-pdf-page { position:relative;margin:0 auto;background:#fff;box-shadow:0 2px 12px #002b4e1a; }
.document-pdf-page canvas { display:block; }
.document-pdf-text { position:absolute;inset:0;overflow:hidden;line-height:1;text-align:initial;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0; }
.document-pdf-text span,.document-pdf-text br { position:absolute;white-space:pre;color:transparent;cursor:text;transform-origin:0 0; }
.document-pdf-text ::selection { background:#0ea5e955; }
.document-pdf-text .endOfContent { display:none; }
.document-pdf-links { display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem;background:#fff;font-size:.85rem; }
.document-pdf-links a { color:var(--navy,#013684);text-decoration:underline;text-underline-offset:3px; }
@keyframes document-pdf-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .document-pdf-spinner { animation:none; } }
@media(max-width:600px) { .document-pdf-stage { height:70vh;min-height:480px;padding:.5rem; }.document-pdf-status { min-height:360px;padding:1rem; } }
