.wf-pdf-document {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
}

.wf-pdf-frame {
    width: 100%;
    min-height: 520px;
    height: var(--wf-pdf-height, min(82vh, 1100px));
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08);
}

.wf-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
    font-size: 0.9rem;
}

.wf-pdf-link {
    color: var(--bs-link-color);
    text-decoration: none;
    font-weight: 600;
}

.wf-pdf-link:hover,
.wf-pdf-link:focus {
    color: var(--bs-link-hover-color);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 767.98px) {
    .wf-pdf-frame {
        min-height: 70vh;
        border-radius: 6px;
    }

    .wf-pdf-actions {
        justify-content: flex-start;
    }
}

:root[data-bs-theme="dark"] .wf-pdf-frame {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.28);
}
