/*
    Safety method to hide Pdftron iframe.
    See Best practices > Preload WebViewer page
*/
#document-viewer-app.PdftronIsHidden {
    width: 0;
    height: 0;
}

#document-viewer-app.PdftronZeroOpacity {
    opacity: 0.25;
}

/*
    jQuery fadeIn effect
 */
#document-viewer-app.PdftronFadeIn {
    transition: opacity 750ms;
}

/* Border to separate white PDFTron header */
#document-viewer-app.PdftronWithBorder {
    border-top: 1px solid #e0e0e0;
}

/* Fix vertical buttons gluing if button text very long */
#pdftronModal .modal-footer .btn {
    margin-bottom: 2px;
}


/* PDFTron Search Component */
.glyphicon.rotate-spinner {
    -webkit-animation: rotate-spinner-animation 1s infinite linear;
    animation: rotate-spinner-animation 1s infinite linear;
}

.glyphicon.no-rotate-spinner {
    -webkit-animation: none;
    animation: none;
}

@-webkit-keyframes rotate-spinner-animation {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes rotate-spinner-animation {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

#cscMessageBlock {
    padding-top: 2px;
    padding-left: 5px;
    font-size: 12px;
}

/* Disabled search input more lighter than default, to improve visual */
.pdf-tron-legacy-search .form-control[disabled] {
    background-color: #f5f5f5;
}

.pdf-tron-legacy-search {
    /* Fix line break for [x] button for mobile and tablet devices */
    display: flex;
    justify-content: flex-end;
    gap: 1em;
}

.csc-marginTop {
    margin-top: 20px;
}

/* xs only */
@media (max-width: 767px) {
    /* Fix to show search component for mobile devices correctly, like desktop  */
    .pdf-tron-legacy-search .form-group {
        display: inline-block;
        margin-bottom: 0;
        vertical-align: middle;
    }

    .csc-mobileMarginTop {
        margin-top: 10px;
    }
}

/* md desktop+ */
@media (min-width: 992px) {
    .csc-desktopMarginTop {
        margin-top: 20px;
    }

    .pull-md-right {
        float: right;
    }
}

/* sm+ */
@media (min-width: 768px) {
    .pull-sm-right {
        float: right;
    }

    /* fix checkbox rendering for sm+ */
    /*#cscTransliterationCheckbox {*/
    /*    margin-top: -5px;*/
    /*    margin-right: 5px;*/
    /*}*/
}

/* sm only */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .csc-tabletMarginTop {
        margin-top: 20px;
    }
}

/* @end PDFTron Search Component */
