.pdf-viewer-shell {
    background: #eef3f8;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    overflow: hidden;
}

.pdf-viewer-toolbar {
    min-height: 58px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #dbe4ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pdf-viewer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-viewer-button {
    appearance: none;
    border: 1px solid #d4dde8;
    background: #fff;
    border-radius: 8px;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    cursor: pointer;
    font: inherit;
    color: #24364b;
}

.pdf-viewer-button:hover {
    background: #f3f7fb;
}

.pdf-viewer-page-indicator {
    color: #526579;
    font-size: .92rem;
    white-space: nowrap;
}

.pdf-viewer-stage {
    min-height: 70vh;
    max-height: calc(100vh - 210px);
    overflow: auto;
    padding: 24px;
    text-align: center;
    background: #e8edf3;
}

.pdf-viewer-stage {
    position: relative;
}

.pdf-viewer-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    background: #e8edf3;
    color: #526579;
    text-align: center;
}

.pdf-viewer-loading strong {
    color: #24364b;
    font-size: 1rem;
}

.pdf-viewer-loading span {
    font-size: .9rem;
}

.pdf-viewer-loading.is-hidden {
    display: none;
}

.pdf-viewer-loading.is-error .pdf-viewer-spinner {
    display: none;
}

.pdf-viewer-loading.is-error strong {
    color: #7a2e2e;
}

.pdf-viewer-spinner {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border: 3px solid rgba(36, 54, 75, .18);
    border-top-color: #24364b;
    border-radius: 50%;
    animation: pdf-viewer-spin .8s linear infinite;
}

@keyframes pdf-viewer-spin {
    to {
        transform: rotate(360deg);
    }
}

.pdf-viewer-stage canvas {
    display: inline-block;
    max-width: none;
    background: #fff;
    box-shadow: 0 3px 18px rgba(22, 40, 60, .14);
}

.pdf-viewer-status {
    min-height: 24px;
    padding: 10px 16px;
    background: #fff;
    color: #526579;
    font-size: .9rem;
    text-align: center;
}

.pdf-viewer-shell:fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #e8edf3;
}

.pdf-viewer-shell:fullscreen .pdf-viewer-stage {
    height: calc(100vh - 110px);
    max-height: none;
}

@media (max-width: 700px) {
    .pdf-viewer-toolbar {
        justify-content: center;
    }

    .pdf-viewer-stage {
        padding: 12px;
        min-height: 65vh;
    }
}
