/* PDF Inline Viewer — Desktop Quality + Zoom Enabled */

html, body {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.piv-wrap {
    background: #ffffff;
    margin: 0;
    padding: 24px 0 32px;
    box-sizing: border-box;
    min-height: 200px;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Pages — centered column */
.piv-pages {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Each page */
.piv-page {
    width: 100%;
    max-width: calc(100% - 20px);
    background: #fff;
    margin: 0 auto 24px auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    /* Skeleton loading state - pure white */
    min-height: 400px;
    background: #f5f5f5;
}
.piv-page:last-child { margin-bottom: 0; }

.piv-page.piv-done {
    background: #fff;
    min-height: unset;
}

/* Loading animation removed - using simple background */

/* Canvas */
.piv-page canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    background: #fff;
    line-height: 0;
    font-size: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Loading spinner */
.piv-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}
.piv-loader.piv-hide { display: none; }

.piv-spin {
    width: 36px; height: 36px;
    border: 3px solid rgba(51,51,51,.2);
    border-top-color: #333333;
    border-radius: 50%;
    animation: pivSpin .75s linear infinite;
}
@keyframes pivSpin { to { transform: rotate(360deg); } }

/* Error */
.piv-error {
    margin: 20px auto;
    max-width: 500px;
    padding: 16px 20px;
    background: #fff5f5;
    color: #c92a2a;
    border-left: 4px solid #ff6b6b;
    border-radius: 2px;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

/* Force Desktop View — No mobile layout changes */
