.document-viewer-card {
    position: relative;
    width: min(100%, 1180px);
    height: min(92vh, 720px);
    padding: 0;
    overflow: hidden;
    border-radius: 2px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
    text-align: left;
}

.document-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    padding: 10px 16px;
    background: transparent;
    pointer-events: none;
}

.document-viewer-header .video-content-close-button {
    pointer-events: auto;
}

.document-viewer-toolbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 44px;
    padding: 0 30px;
    background: rgba(22, 22, 22, 0.96);
}

.document-viewer-control-group,
.document-viewer-page-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

.document-viewer-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.document-viewer-icon-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.document-viewer-icon-button:disabled {
    cursor: default;
    opacity: 0.36;
}

.document-viewer-button-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
}

.document-viewer-page-control,
.document-viewer-zoom-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.document-viewer-page-input {
    width: 48px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.document-viewer-page-input:focus {
    border-color: rgba(0, 67, 206, 0.68);
}

.document-viewer-zoom-value {
    width: 58px;
    text-align: center;
}

.document-viewer-viewport {
    position: absolute;
    inset: 0 0 44px;
    overflow: auto;
    background: #000000;
    text-align: center;
}

.document-viewer-page-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    height: max-content;
    min-height: 100%;
    padding: 16px;
}

.document-viewer-canvas {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
    cursor: pointer;
}

.document-viewer-feedback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #000000;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    text-align: center;
}

.document-viewer-feedback.hidden {
    display: none;
}

.document-viewer-error {
    color: #ffb3b3;
}

@media (max-width: 640px) {
    .document-viewer-card {
        height: min(76vh, 520px);
    }

    .document-viewer-toolbar {
        height: 88px;
        padding: 6px 12px;
        flex-wrap: wrap;
    }

    .document-viewer-viewport {
        bottom: 88px;
    }

    .document-viewer-control-group:first-child {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .document-viewer-control-group:last-child {
        margin-left: auto;
        gap: 8px;
    }
}
