html{
    background-color: #F2F4F5;
    overflow-x: hidden;
}
.pdf-reader canvas{
    transform-origin: center;
}
.pdf-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    box-sizing: border-box;
    z-index: 1000;
    background-color: white;
}

.pdf-header-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
}

.pdf-title h1 {
    margin: 0;
    font-size: 18px;
    color: #0A1F44;
}

.pdf-header-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
}

.pdf-header-bottom button {
    background: none;
    border: none;
    cursor: pointer;
}
.pdf-page-indicator {
    font-size: 14px;
    color: #0A1F44;
}

.pdf-zoom {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdf-reader {
    margin-top: 84px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #F2F4F5;
}
.pdf-title{
    display: flex;
    gap: 12px;
    align-items: center;
}
.pdf-title h1{
    font-family:"SF UI Text",sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}
.pdf-title p{
    font-family:"SF UI Text",sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #8693A1;
    margin: 0;
}
.settings{
    display: flex;
}
.pdf-header-bottom{
    display: flex;
    justify-content: space-between;
}
.pdf-menu-btn{
    padding: 0;
}
.pdf-header, .pdf-header-bottom {
    transition: top 0.3s;
}
.fullscreen .pdf-header,
.fullscreen .pdf-header-bottom {
    top: -100px;
}

.fullscreen .pdf-tooltip {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 50px;
    background-color: #8693A1;
    font-family:"SF UI Text",sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: white;
}

.fullscreen.show-tooltip .pdf-tooltip {
    opacity: 1;
}
.pdf-reader {
    width: 100%;
    height: 100vh;
}
.pdf-tooltip {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 50px;
    background-color: #8693A1;
    font-family:"SF UI Text",sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: white;
}

body.show-tooltip .pdf-tooltip {
    opacity: 1;
}
.pdf-header-bottom button:focus,
.pdf-header-bottom button:focus-visible {
    outline: none;
}
.pdf-sidebar {
    position: fixed;
    top: 97px;
    left: -300px;
    width: 156px;
    height: calc(100% - 133px);
    background: white;
    overflow-y: auto;
    transition: left 0.3s;
    z-index: 1000;
    padding: 40px;
    padding-bottom: 0px;
}
.pdf-sidebar.show {
    left: 0;
}
.pdf-sidebar .page-thumb {
    cursor: pointer;
    margin-bottom: 12px;
    text-align: center;
}
.pdf-sidebar .page-thumb img {
    width: 100%;
    display: block;
    margin-bottom: 5px;
}
.page-thumb{
    display: grid;
    justify-content: center;
    gap: 8px;
}
.pdf-sidebar{
    background-color: #F9F9FA;
}
.page-thumb {
    border: 2px solid transparent;
}

.page-thumb canvas {
    border: 2px solid transparent;
}

.page-thumb canvas.active {
    border: 2px solid #D4DADE;
    padding: 2px;
    border-radius: 8px;
}
.pdf-page-input{
    all: unset;
    max-width: 44px;
    text-align: center;
    background-color: #F2F4F5;
    border-radius: 4px;
    border-color: white;
    color: #0A1F44;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    font-family: "SF UI Text", sans-serif;
}

input[type=number] {
    -moz-appearance: textfield;
    font-family: "SF UI Text", sans-serif;
}
.pdf-navigation{
    font-family:"SF UI Text",sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    gap: 13px;
}
.pdf-total-pages{
    color: #8693A1;
}
.input-with-percent {
    position: relative;
    display: inline-block;
    max-width: 44px;
    margin-right: 12px;
}

.zoom-input {
    all: unset;
    padding-right: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    color: #0A1F44;
    background-color: #F2F4F5;
    border-radius: 4px;
    border-color: white;
}

.input-with-percent::after {
    content: "%";
    font-family: SF UI Display;
    position: absolute;
    font-weight: 500;
    right: -2px;
    top: 50%;
    font-size: 14px;
    transform: translateY(-45%);
    pointer-events: none;
    color: #0A1F44;
}
.m-setting{
    display: flex;
}
.pdf-header-bottom {
    display: flex;
    align-items: center;
}

.left,
.right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.left {
    justify-content: flex-start;
}

.right {
    justify-content: space-between;
}

.center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.settings {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pdf-header-bottom button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.number{
    display: flex;
    gap: 4px;
}
.add-set{
    display: flex;
    gap: 16px;
}
.pdf-divider {
    height: 1px;
    background: #E7EBED;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.back {
    display: none;
}
@media (max-width: 768px){
    .pdf-header-bottom{
        display: none;
    }
    .pdf-header-top{
        margin-bottom: 0px;
    }
    .pdf-divider{
        display: none;
    }
    .pdf-reader{
        margin-top: 52px;
    }
    .pdf-header-top {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 16px;
    }

    .load-for-mobile {
        margin-left: auto;
    }
    .pdf-logo{
        display: none;
    }
    .back {
        display: block;
        max-height: 24px;
    }
    .pdf-title {
        display: flex;
        align-items: baseline;
        gap: 8px;
        max-width: 100%;
        overflow: hidden;
    }

    .pdf-title h1 {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }

    .pdf-author {
        flex: 0 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }
}
@media (max-width: 375px){
    .pdf-author{
        display: none;
    }
    .pdf-title h1{
        font-size: 14px;
    }
    .number {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        user-select: none;
    }

    .js-page-trigger {
        position: relative;
        display: inline-flex;
        align-items: center;
    }
}
@media (max-width: 768px){
    .pdf-input-field {
        -webkit-appearance: none;
        appearance: none;
        border: none;
        outline: none;
        box-shadow: none;
    }
    .mobile-page-input {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: none;
        z-index: 99999;
        text-align: center;
        padding: 10px 0;
    }

    .mobile-page-input.active {
        display: block;
    }

    .pdf-input-field {
        max-width: 76px;
        font-size: 14px;
        text-align: center;
        height: 28px;
        line-height: 28px;
        padding: 0;
        border-radius: 100px;
        margin: 0 auto;
        display: block;
        background-color: rgba(10, 31, 68, 0.8);
        color: white;
        outline: none;
        box-sizing: border-box;
    }
}
.mobile-page-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    background-color: #0A1F444D;
}
.mobile-page-bar .center .pdf-navigation .pdf-total-pages{
    color: white;
}
.mobile-page-bar .center .pdf-navigation .current-page{
    color: white;
}
.mobile-page-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-page-input {
    text-align: center;
    display: none;
}
.mobile-page-bar {
    display: none;
}
@media (max-width: 768px) {
    .mobile-page-bar {
        display: flex;
    }
    .pdf-header {
        padding: 8px 16px;
    }
}
.load-for-mobile .pdf-load{
    all: unset;
}
.pdf-reader {
    width: 100%;
}

.pdf-page {
    width: 100%;
    max-width: 100%;
}

.pdf-pages-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pdf-loader {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    margin: 0 auto;
    z-index: 100000;
    width: calc(100% - 32px);
    max-width: 400px;
    padding: 8px 16px;
    background: white;
    color: #0A1F44;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.pdf-loader.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.pdf-loader-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.pdf-loader-bar {
    width: 100%;
    height: 4px;
    background: #E7EBED;
    border-radius: 6px;
    overflow: hidden;
}

.pdf-loader-progress {
    height: 100%;
    width: 0%;
    background: #A63244;
    transition: width 0.2s ease;
    border-radius: 8px;
}
@media (max-width: 480px) {
    .pdf-loader {
        max-width: 300px
    }
}
.pdf-logo {
    cursor: pointer;
}
