.pdf2html-viewer-container {
    position: relative;
    overflow: hidden;
    background: #FFF;
    border: 1px solid #E2EDED;
    outline: none;
    @media print {
        display: none;
    }

    * {
        box-sizing: border-box;
    }

    &--en {
        .pdf2html-viewer-toolbar .toolbar-scale-select {
            width: 120px;
            background-position-x: 108px;

            select {
                width: 140px;
            }
        }
    }

    &.pdf2html-viewer-fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        width: 100vw !important;
        height: 100vh !important;
        background: #C0C9C9;
    }
}

.pdf2html-viewer-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    align-items: center;
    height: 40px;
    color: #7F8789;
    background: #F7F7F7;
    border-bottom: 1px solid #E8E8E8;
    transition: top .3s ease;

    .toolbar-title {
        max-width: 240px;
        padding: 10px 14px 10px 24px;
        overflow: hidden;
        font-size: 14px;
        font-weight: bold;
        line-height: 20px;
        color: #333;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .toolbar-center {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    .toolbar-right {
        position: absolute;
        top: 8px;
        right: 18px;
    }

    .toolbar-scale-select {
        float: left;
        width: 80px;
        height: 24px;
        margin-left: 8px;
        overflow: hidden;
        font-size: 14px;
        background: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_arrow2_nml@2x.png") no-repeat 64px 6px;
        background-size: 12px 12px;

        > select {
            width: 100px;
            height: 22px;
            color: #333;
            vertical-align: top;
            cursor: pointer;
            background: none;
            border: none;
            outline: none;
        }
    }

    .toolbar-current-page {
        float: left;
        margin-left: 8px;
        font-size: 13px;
        color: #333;
        text-align: center;

        input {
            width: 40px;
            height: 24px;
            font-size: inherit;
            color: inherit;
            text-align: center;
            border: solid 1px #D9D9D9;
            border-radius: 4px;
            outline: none;

            &:focus {
                border-color: rgba(255, 115, 69, .6);
            }
        }
    }

    .toolbar-btn {
        float: left;
        width: 24px;
        height: 24px;
        color: #FFF;
        cursor: pointer;
        background: no-repeat center;
        background-size: 14px 14px;
        border: none;
        outline: none;

        + .toolbar-btn {
            margin-left: 4px;
        }

        &.btn-zoom-in {
            background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_narrow_nml@2x.png");

            &:hover {
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_narrow_hover@2x.png");
            }
        }

        &.btn-zoom-out {
            background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_enlarge_nml@2x.png");

            &:hover {
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_enlarge_hover@2x.png");
            }
        }

        &.btn-download {
            margin-right: 20px;
            background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_download_nml@2x.png");

            &:hover {
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_download_hover@2x.png");
            }
        }

        &.btn-prev-page,
        &.btn-next-page {
            background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_arrow_nml@2x.png");

            &:hover {
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_arrow_hover@2x.png");
            }

            &:disabled {
                cursor: default;
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_arrow_disable@2x.png");
            }
        }

        &.btn-prev-page {
            transform: rotate(180deg);
        }

        &.btn-fullscreen {
            margin-left: 18px;
            background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_fullscreen_nml@2x.png");

            &:hover {
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_fullscreen_hover@2x.png");
            }
        }

        &.btn-exit-fullscreen {
            margin-left: 24px;
            background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_exit_nml@2x.png");

            &:hover {
                background-image: url("//hr-web.apps.danlu.netease.com/ehr-ui/assets/icon_exit_hover@2x.png");
            }
        }
    }
}

.pdf2html-viewer-fullscreen .pdf2html-viewer-toolbar {
    .toolbar-title {
        max-width: 360px;
        padding-left: 20px;
    }

    .toolbar-btn {
        + .toolbar-btn {
            margin-left: 10px;
        }

        &.btn-exit-fullscreen {
            margin-left: 18px;
        }
    }

    .toolbar-scale-select {
        margin-left: 16px;
    }

    .toolbar-right {
        right: 18px;
    }

    .toolbar-current-page {
        margin-left: 16px;
    }
}

.pdf2html-viewer-pages-wrapper {
    position: absolute;
    top: 0;
    bottom: 4px;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.pdf2html-viewer-pages {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: scroll;

    &::-webkit-scrollbar:vertical {
        display: none;
    }
}

.pdf2html-viewer-page {
    margin: 0 auto 20px;
    background: #FFF;
    opacity: 0;

    &:first-child {
        margin-top: 40px;
    }

    &.is-loading {
        position: relative;
    }
}

.pdf2html-viewer-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;

    &::before,
    &::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        content: "";
        background-color: #43DBCC;
        border-radius: 50%;
        opacity: .5;
        animation: pdf2htmlViewerSpin 2s infinite ease-in-out;
    }

    &::after {
        animation-delay: -1s;
    }
}

.pdf2html-viewer-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #FFF;

    .progress-bar {
        height: 100%;
        background: #F53436;
        transition: width .3s ease;
    }

    .progress-text {
        position: absolute;
        top: -40px;
        left: 10px;
        width: 90px;
        height: 25px;
        font-size: 12px;
        line-height: 25px;
        color: #FFF;
        text-align: center;
        background: rgba(0, 0, 0, .5);
        border-radius: 5px;
        opacity: 1;
        transition: opacity .3s ease;
    }
}

.pdf2html-viewer-container.hide-controls {
    border-color: transparent;

    .pdf2html-viewer-toolbar {
        top: -40px;
    }

    .pdf2html-viewer-progress {
        .progress-text {
            opacity: 0;
        }
    }
}

/** pdf2htmlEx **/
.pf {
    position: relative;
    margin: 0;
    overflow: hidden;
    background-color: white;
    border: 0;
    transform-origin: 0 0;
}

.pc {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    -ms-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}

.bf {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    border: 0;
}

.bi {
    position: absolute;
    margin: 0;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    border: 0;
}

.c {
    position: absolute;
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
}

.t {
    position: absolute;
    font-size: 1px;
    white-space: pre;
    -ms-transform-origin: 0 100%;
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
    unicode-bidi: bidi-override;
    -moz-font-feature-settings: "liga" 0;
}

.t::after {
    content: "";
}

.t span {
    position: relative;
    display: inline-block;
    unicode-bidi: bidi-override;
}

._ {
    z-index: -1;
    color: transparent;
}

.pi {
    display: none;
}

.d {
    position: absolute;
    -ms-transform-origin: 0 100%;
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}

@keyframes pdf2htmlViewerSpin {
    0%,
    100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}
