
/* NUJIZ MOBILE FIXED PREVIEW V566 */

.pn566-toggle,
.pn566-placeholder {
    display:none!important;
}

@media(max-width:800px) {

    html body .pdf-workspace:has(.pagenum-panel),
    html body .pdf-workspace .pagenum-panel,
    html body .pdf-workspace .pagenum-layout {

        overflow:visible!important;
        min-width:0!important;
    }

    html body .pdf-workspace .pagenum-layout {

        display:flex!important;
        flex-direction:column!important;
        align-items:stretch!important;
        gap:12px!important;
    }

    html body .pdf-workspace
    .pagenum-panel .pagenum-document {

        position:relative!important;

        top:auto!important;
        bottom:auto!important;

        order:-2!important;

        width:100%!important;
        min-width:0!important;

        max-height:40dvh!important;

        overflow:hidden!important;

        background:#171b24!important;

        border:1px solid #465166!important;
        border-radius:12px!important;

        box-sizing:border-box!important;
    }

    html body .pdf-workspace
    .pagenum-panel .pagenum-document.pn566-fixed {

        position:fixed!important;

        top:var(--pn566-top,75px)!important;

        left:var(--pn566-left,10px)!important;

        right:auto!important;
        bottom:auto!important;

        width:var(--pn566-width,calc(100vw - 20px))!important;

        max-width:none!important;

        margin:0!important;

        z-index:900!important;

        transform:none!important;

        box-shadow:0 8px 24px #00000070!important;
    }

    html body .pagenum-panel
    .pn566-placeholder:not([hidden]) {

        display:block!important;

        order:-2!important;

        flex:0 0 auto!important;

        width:100%!important;

        pointer-events:none!important;
    }

    html body .pagenum-panel .pagenum-toolbar {

        position:relative!important;

        top:auto!important;

        display:flex!important;

        flex-wrap:wrap!important;

        align-items:center!important;

        justify-content:center!important;

        gap:6px!important;

        padding:6px!important;

        background:#171b24!important;

        min-height:36px!important;
    }

    html body .pagenum-panel .pagenum-preview {

        max-height:30dvh!important;

        min-height:0!important;

        overflow:auto!important;

        padding:5px!important;

        box-sizing:border-box!important;
    }

    html body .pagenum-panel .pn562-sheet {

        position:relative!important;

        margin-inline:auto!important;
    }

    html body .pagenum-panel #pageNumCanvas {

        display:block!important;

        width:100%!important;

        height:auto!important;
    }

    html body .pagenum-panel #pn562Overlay {

        position:absolute!important;

        inset:0!important;

        width:100%!important;

        height:100%!important;

        pointer-events:none!important;
    }

    html body .pagenum-panel .pn566-toggle {

        display:inline-flex!important;

        align-items:center!important;

        justify-content:center!important;

        width:auto!important;

        min-height:30px!important;

        padding:5px 9px!important;

        border-radius:7px!important;

        border:1px solid #8b5cf6!important;

        background:#30234e!important;

        color:#ffffff!important;

        -webkit-text-fill-color:#ffffff!important;

        font-size:11px!important;

        font-weight:700!important;
    }

    html body .pagenum-panel
    .pn566-collapsed .pagenum-preview {

        display:none!important;
    }

    html body .pdf-workspace
    .pagenum-panel .pagenum-controls {

        position:relative!important;

        order:1!important;

        top:auto!important;

        max-height:none!important;

        overflow:visible!important;

        min-width:0!important;

        width:100%!important;
    }

    .pagenum-panel input,
    .pagenum-panel select {

        scroll-margin-top:calc(40dvh + 90px);
    }
}

@media(max-width:800px) and (orientation:landscape) {

    html body .pagenum-panel .pagenum-preview {

        max-height:22dvh!important;
    }
}
