/* In-site document viewer (shared by the Documents and Account pages).
   Theme tokens only; body.pdf-modal-open locks the page behind the overlay. */

.pdf-modal[hidden] { display: none; }
.pdf-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.pdf-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.pdf-modal-panel {
    position: relative; width: min(1000px, 92vw); height: min(88vh, 1100px);
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--bg-card-hover, #2a2d31);
    border-radius: 8px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.pdf-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid var(--bg-card-hover, #2a2d31);
}
.pdf-modal-title { color: var(--text-primary); font-size: 13px; font-weight: 600; }
.pdf-modal-actions { display: flex; align-items: center; gap: 12px; }
.pdf-modal-open { color: var(--accent-emphasis); font-size: 12px; text-decoration: none; }
.pdf-modal-open:hover { text-decoration: underline; }
.pdf-modal-close {
    background: transparent; border: 0; color: var(--text-secondary);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.pdf-modal-close:hover { color: var(--text-primary); }
.pdf-modal-frame { flex: 1; width: 100%; border: 0; background: #fff; }
body.pdf-modal-open { overflow: hidden; }
