@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bs-font-sans-serif: "Open Sans", Helvetica, Arial, sans-serif;
    --fo-menu-font-size: 15px;
    --fo-body-font-size: 14px;
    --pdfViewerConfigBgColor: #ffffff; /* Background-color */
    --pdfViewerConfigFgColor: #101010; /* Background-color */
    --pdfBodyBackground: linear-gradient(180deg, rgba(255, 255, 255, 1) 35%, rgba(0, 105, 179, 0.1) 100%);
    --mainColor: #0069b3;
    --buttonEnabledForeground: #0069b3; /* Foreground btn color */
    --buttonHoverBackground: #0069b3;
    --buttonActiveForeground: #fff;
    --pdfViewerBtnBgColor: #bdbdbd; /* Background btn color */
    --pdfViewerBtnBgColorActive: #555454; /* Background active btn color */
    --pdfViewerBtnFgColorActive: #ffffff; /* Foreground active btn color */
    --pdfViewerBtnBorderColor: rgba(0, 105, 179, 0.2);
    --shadow: rgba(0, 105, 179, 0.2);
}

body {
    background: var(--pdfBodyBackground);
    font-family: var(--bs-font-sans-serif);
}

#viewerContainer {
    overflow: auto;
    position: absolute;
    outline: none;
    inset: 50px 0 50px 0;
}

#sidebarContainer {
    inset-block: 85px 85px;
}

#topToolbarContainer,
#bottomToolbarContainer {
    background-color: var(--pdfViewerConfigBgColor);
    color: var(--pdfViewerConfigFgColor);
    position: absolute;
    width: 100%;
    height: 50px;
    z-index: 6;
}

#topToolbarContainer {
    top: 0;
    box-shadow: 0 4px 6px 0 var(--shadow);
}

#bottomToolbarContainer {
    bottom: 0;
    box-shadow: 0 -2px 6px 0 var(--shadow);
}

#topToolbar,
#bottomToolbar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

#topToolbarLeftContainer,
#topToolbarRightContainer,
#topToolbarMiddleContainer,
#bottomToolbarLeftContainer,
#bottomToolbarRightContainer,
#bottomToolbarMiddleContainer {
    flex: 0 0 33.333%;
}

#topToolbarLeft,
#topToolbarMiddle,
#topToolbarRight,
#bottomToolbarLeft,
#bottomToolbarMiddle,
#bottomToolbarRight {
    display: flex;
    height: 100%;
    align-items: center;
}

#topToolbarLeft,
#bottomToolbarLeft {
    justify-content: start;
}

#topToolbarMiddle,
#bottomToolbarMiddle {
    justify-content: center;
}

#topToolbarRight,
#bottomToolbarRight {
    justify-content: end;
    margin-right: 20px;
}

#logoContainer {
    height: 35px;
    margin: 0 0 0 10px;
}

#logoContainer img {
    width: auto;
    height: 100%;
}

.pdfViewer {
    margin: 15px 0 0 0;
}

#zoomToolbarContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#pageNumber {
    width: 30px;
    background-size: 0 0;
    transition-property: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid var(--buttonEnabledForeground);
    font-size: 16px;
    padding: 2px 3px;
}

.btn-pdf {
    height: 33px;
    width: 33px;
    margin: 0 10px;
    padding: 6px;
    border-radius: 100%;
    cursor: pointer;
    background: white;
    filter: drop-shadow(0px 2px 2px var(--shadow));
    border: 1px solid var(--pdfViewerBtnBorderColor);
    transition: .2s ease-in-out;
}

.searchBarOptionsContainer{
    display: flex;
    justify-content: center;
    align-items: center;
}


.btn-pdf-secondary{
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 6px;

    height: 33px;
    width: 33px;
    cursor: pointer;
    background: white;
    border: 0;
    border-right: 1px solid var(--pdfViewerBtnBorderColor);
    transition: .2s ease-in-out;
}

.btn-icon {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--buttonEnabledForeground);
    transition: .2s ease-in-out;
}


@media (hover: hover) and (pointer: fine) {
  .btn-pdf:not(.toggled):hover,
  .btn-pdf-secondary:not(.toggled):hover {
    background: var(--buttonHoverBackground);
    i {
        background-color: #fff;
    }
  }
}


.btn-pdf.toggled,
.btn-pdf:active,
.btn-pdf-secondary.toggled,
.btn-pdf-secondary:active {
    background: var(--buttonHoverBackground);
}

.btn-pdf.toggled .btn-icon,
.btn-pdf:active .btn-icon,
.btn-pdf-secondary.toggled .btn-icon,
.btn-pdf-secondary:active .btn-icon{
    background-color: var(--buttonActiveForeground);
}

.btn-pdf[disabled] {
    opacity: 0.5;
    pointer-events: none;
}


.btn-pdf object {
    pointer-events: none;
}

.pdfViewer .canvasWrapper {
    box-shadow: 0 0 8px rgba(0, 0, 0, .1);
}









.custom-findbar {
    background: white;
    position: absolute;
    display: flex;
    border: 2px solid #0069b3;
    box-shadow: 0 3px 8px rgba(0, 105, 179, 0.2);
    bottom: 65px;
    z-index: 3;
    border-radius: 4px;
    flex-wrap: wrap;
    width: 350px;
    left: 50px;
    padding: 15px;
}

#findbarInputContainer {
    width: 100%;
    display: flex;
}

#searchBarNavigationContainer {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}

#findInput {
    width: 100%;
    padding: 6px 4px;
    border: 1px solid rgba(9, 0, 0, 0.2);
    border-radius: 4px;
}

#findResultsCount {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

#thumbnailView {
    overflow-x: hidden;
    background: linear-gradient(90deg, white 0%, black 100%);
}


@keyframes fromTopToolbar {
    0% {
        top: -150px;
    }
    50%{
        opacity: 0;
    }
    90%{
        opacity: 100%;
    }
    100% {
        opacity: 100%;
        top: 60px;
    }
}

@keyframes fromBottomToolbar {
    0% {
        bottom: 0;
    }
    50%{
        opacity: 0;
    }
    90%{
        opacity: 100%;
    }
    100% {
        opacity: 100%;
        bottom: 60px;
    }
}




.dropupMenu,
.dropdownMenu {
    opacity: 0;
    padding: 10px 12px;
    background-color: white !important;
    position: absolute;
    display: flex;
    border: 2px solid #0069b3;
    box-shadow: 0 3px 8px rgba(0, 105, 179, 0.2);
    border-radius: 4px;
    flex-wrap: wrap;
    z-index: 5;

    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.dropdownMenu {
    top: -150px;
    animation-name: fromTopToolbar;
}

.dropupMenu {
    bottom: -150px;
    animation-name: fromBottomToolbar;
}


.dropupMenu#findbar{
    width: 300px;
}


.dropdownMenu#editorFreeTextParamsToolbar {
    inset-inline-end: 65px !important;
}

.dropdownMenu#editorInkParamsToolbar {
    inset-inline-end: 30px !important;
}

.dropdownMenuItem {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.dropdownMenuItem .dropdownMenuItemLabel {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--mainColor);
    border-radius: 4px;
    padding: 2px 6px;
}

.dropdownMenuItem .dropdownMenuItemInput {
    margin-top: 5px;
}

.dropdownMenuItem .dropdownMenuItemInput[type="range"] {
    margin-top: 10px;
}

#zoomSliderContainer label {
    display: none;
}


#dropdownMenuInputColors {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
}

.selectableColor {
    flex: 0 0 25%;
}

.selectableColor .color {
    border-radius: 100%;
    background: black;
    width: 100%;
    height: 100%;
    padding: 2px;
}

#findInput{
    width: 100%;
    padding: 6px;
    font-size: 16px;
    height: 24px;
    border: 1px solid #cce1f0;
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.05);
    border-radius: 4px;
    color: black;
}

#findInput[data-status="notFound"]{
    background-color: #e7e7e7;
}

.searchBarOption{
    font-size: 16px;
}

.searchBarToolbar{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.searchBarNavigationButtonsContainer{
    justify-content: flex-end;
    display: flex;
}

.searchBarNavigationButtonsContainer #findNext{
    margin: 0;
}

:focus {
    outline: var(--mainColor) auto 2px;
}

button:focus{
    outline: none;
}

#findbarInputContainer{
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}

#findResultsCount{
    transition: all 0.1s linear;
    text-align: left;
}

#searchBarMessageContainer{
    position: absolute;
    top: 45px;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#findMsg{
    font-size: 12px;
}

.searchBarContainer{
  position: relative;
  width: 100%;
}