/* ==========================================================
   PDF VIEWER
   ========================================================== */

#modalPreviewPdf .modal-dialog {
    width: 96vw;
    max-width: 1600px;
    height: 96vh;
    margin: 2vh auto;
}

#modalPreviewPdf .modal-content {
    height: 96vh;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}


/* ==========================================================
   HEADER
   ========================================================== */

.pdf-viewer-header {
    min-height: 60px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}


/* ==========================================================
   TOOLBAR
   ========================================================== */

.pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-toolbar .btn {
    min-width: 36px;
    height: 34px;
    padding: 4px 10px;
}

.pdf-page-info {
    min-width: 80px;
    text-align: center;
    font-weight: 600;
}


/* ==========================================================
   VIEWER BODY
   ========================================================== */

.pdf-viewer-body {
    display: flex;
    height: calc(96vh - 60px);
    min-height: 0;
    background: #525659;
}


/* ==========================================================
   THUMBNAIL SIDEBAR
   ========================================================== */

.pdf-thumbnails {
    width: 190px;
    min-width: 190px;
    height: 100%;
    overflow-y: auto;
    padding: 15px 12px;
    background: #343638;
    border-right: 1px solid rgba(255,255,255,.1);
}


/* ==========================================================
   THUMBNAIL
   ========================================================== */

.pdf-thumbnail {
    position: relative;
    margin-bottom: 15px;
    padding: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: .2s ease;
}

.pdf-thumbnail:hover {
    background: rgba(255,255,255,.08);
}

.pdf-thumbnail.active {
    border-color: #556ee6;
    background: rgba(85,110,230,.15);
}

.pdf-thumbnail canvas {
    display: block;
    width: 100%;
    height: auto;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

.pdf-thumbnail-number {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: #ddd;
}


/* ==========================================================
   MAIN DOCUMENT
   ========================================================== */

.pdf-document-container {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: auto;
    padding: 25px;
    text-align: center;
}


/* ==========================================================
   PAGE
   ========================================================== */

.pdf-page-wrapper {
    display: inline-block;
    margin: 0 auto 25px;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,.35);
}

#pdfMainCanvas {
    display: block;
    background: white;
}


/* ==========================================================
   LOADING
   ========================================================== */

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(82,86,89,.85);
    z-index: 20;
}

.pdf-loading-content {
    text-align: center;
    color: white;
}

.pdf-loading-content i {
    font-size: 45px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    #modalPreviewPdf .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        margin: 0;
    }

    #modalPreviewPdf .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .pdf-viewer-body {
        height: calc(100vh - 60px);
    }

    .pdf-thumbnails {
        width: 90px;
        min-width: 90px;
    }

    .pdf-document-container {
        padding: 10px;
    }

}