html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    background-color: hsl(0, 0%, 75%);
    background-image: none;
}

.sidebarContainer,
/*#toolbarViewerLeft,*/

#toolbarViewerRight, #scaleSelectContainer {
    display: none;
}

#toolbarViewerLeft .hidden {
    display: none;
}

html[dir='ltr'] .pdfjs #viewerContainer {
    box-shadow: 0 0;
}

.pdfjs .pdfViewer .page {
    margin: 1em auto;
    border: 0;
    border-image: none;
    box-shadow: 0 0.25em 1.75em -0.25em rgba(22, 45, 61, 0.2);
}

.pdfjs #viewerContainer {
    top: 3.5rem;
    /*padding-top: 1em;*/
}

.pdfjs #loadingBar {
    height: 0;
    background-color: #fff;
    border-bottom: 0;
}

/* TOOLBAR */

html[dir='ltr'] .pdfjs #toolbarContainer {
    box-shadow: 0 0;
}

.pdfjs .toolbar {
    height: 3.5rem;
    color: #222;
}

html[dir='ltr'] .pdfjs #toolbarContainer, .pdfjs #toolbarContainer {
    background-color: #fff;
    background-image: none;
    box-shadow: 0 0.25em 1.75em -0.25em rgba(22, 45, 61, 0.2);
}

.pdfjs #toolbarViewer {
    display: flex;
    justify-content: space-between;
}

.pdfjs #toolbarViewerMiddle {
    position: initial;
    left: 0;
    transform: none;
}

@font-face {
    font-family: 'EDP Preon';
    src: url("../fonts/edp_preon/edp_preon_regular-webfont.eot#iefix") format("embedded-opentype"), url("../fonts/edp_preon/edp_preon_regular-webfont.woff") format("woff"), url("../fonts/edp_preon/edp_preon_regular-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.pdfjs #toolbarContainer, .pdfjs #toolbarViewer, .pdfjs #toolbarViewerMiddle, .pdfjs .splitToolbarButton {
    height: 100%;
    font-family: 'EDP Preon', sans-serif;
}

/*.pdfjs #custom-download span:last-child {
    font-size: 14px;
}*/

html[dir='ltr'] .pdfjs .splitToolbarButton:first-child {
    margin: 0;
}

html[dir='ltr'] .pdfjs .splitToolbarButton, .pdfjs .splitToolbarButton, html[dir='ltr'] .pdfjs .toolbarButton, .pdfjs .toolbarButton {
    margin: 0;
    border: 0;
    font-size: 1rem;
}

.pdfjs .toolbarButton {
    width: 3.5em;
    max-width: initial;
    height: 3.5em;
    padding: 1em;
    border-radius: 0;
    cursor: pointer;
}
html[dir='ltr'] .pdfjs .splitToolbarButton>.toolbarButton{
  float:none;
}

.pdfjs .splitToolbarButton>.toolbarButton:hover, .pdfjs .splitToolbarButton>.toolbarButton:focus, .pdfjs .dropdownToolbarButton:hover, .pdfjs .overlayButton:hover, .pdfjs .overlayButton:focus, .pdfjs .toolbarButton.textButton:hover, .pdfjs .toolbarButton.textButton:focus, .pdfjs .splitToolbarButton:hover>.toolbarButton, .pdfjs .splitToolbarButton:focus>.toolbarButton, .pdfjs .splitToolbarButton.toggled>.toolbarButton, .pdfjs .toolbarButton.textButton, .pdfjs .toolbarButton, html[dir='ltr'] .pdfjs .splitToolbarButton>.toolbarButton:first-child html[dir='rtl'] .pdfjs .splitToolbarButton>.toolbarButton:last-child {
    margin: 0 !important;
    margin-right: 0;
    border: 0;
    border-radius: 0 !important;
    background-color: transparent;
    box-shadow: 0 0;
    box-sizing: border-box;
    text-decoration: none;
}

a.toolbarButton:active {
    text-decoration: none;
    border: none;
}

.pdfjs .toolbarButton:hover, .pdfjs .toolbarButton:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ICONS */

.pdfjs .toolbarButton::before, .pdfjs .secondaryToolbarButton::before, .pdfjs .toolbarButton::after, .pdfjs .secondaryToolbarButton::after {
    content: initial !important;
}

.pdfjs .toolbarButton.zoomOut::before, .pdfjs .toolbarButton.zoomIn::before, .pdfjs .toolbarButton.download::before, .pdfjs .toolbarButton.zoomOut::after, .pdfjs .toolbarButton.zoomIn::after, .pdfjs .toolbarButton.download::after {
    content: '';
}

.icon--plus:before, .icon--minus:before {
    top: 1.65625em;
    left: 1.25em;
    width: 1em;
    border-top: 0.1875em solid #222;
}

.icon--plus::after, .icon--download:before {
    top: 1.25em;
    left: 1.65625em;
    height: 1em;
    border-left: 0.1875em solid #222;
}

.icon--download:after {
    bottom: 1.25em;
    left: 1.4em;
    width: 0.5em;
    height: 0.5em;
    border: 0 solid #222;
    border-bottom-width: 0.1875em;
    border-right-width: 0.1875em;
    transform: rotate(45deg);
}

.pdfjs .toolbarButton.download {
    width: initial;
    color: inherit;
}

#zoomIn span {
    line-height: 0.6;
    font-size: 32px;
    margin: 0 0 0 -0.4em;
    padding: 0;
    text-align: center;
}

#zoomOut span {
    line-height: 0.6;
    font-size: 32px;
    margin: 0 0 0 -0.4em;
    padding: 0;
    text-align: center;
}
a#custom-download {
    margin: 0 !important;
    padding: 0;
    text-align: center;
    position: absolute;
    top: 1.2em;
    right: 15px;
    width: 180px;
    height: auto;
    display: flex;
    align-items: center;
}
a#custom-download:focus {
    text-decoration: none;
    border:none;
    outline: 0;
}



.pdfjs .toolbarButton span {
    width: initial;
    height: initial;
    visibility: hidden;
    line-height: 1.5;
}

.pdfjs .toolbarButton.download span {
    visibility: visible;
}

.pdfjs .toolbarButton span.icon {
    width: 1.5em;
    height: 1.5em;
    visibility: visible;
    color: #333;
    font-family: 'EDP Preon', sans-serif;
}

.pdfjs .toolbarButton span.icon+span {
    margin-left: 0.5em;

}

.icon {
    width: 1.5em;
    height: 1.5em;
    visibility: visible;
}

.icon:before, .icon:after {
    position: absolute;
    display: block;
    content: '';
}

@media (max-width: 900px) {
    .pdfjs #toolbarViewerMiddle {
        display: block;
        margin: 0;
    }
}

.pdfjs .page {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.pdfjs .page--rendered {
    opacity: 1;
}
