/**
   Copyright 2021 Carlos A. (https://github.com/dealfonso)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

.pdfjs-viewer {
  overflow: auto;
  border: 1px solid #aaa;
  background: #ccc
}
.pdfjs-viewer.horizontal-scroll {
  display: flex
}
.pdfjs-viewer.horizontal-scroll .pdfpage {
  margin-left: 1em;
  margin-top: .25em!important;
  margin-bottom: .25em!important;
  display: block
}
.pdfpage {
  position: relative;
  margin-bottom: 1em;
  margin-top: 1em;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,.1),0 6px 20px 0 rgba(0,0,0,.09)
}
.pdfpage canvas {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%
}
.pdfpage.placeholder {
  display: flex;
  margin-bottom: 0!important;
  margin-top: 0!important;
  height: 100%;
  width: 100%
}
.pdfpage .content-wrapper {
  margin: 0!important;
  padding: 0!important;
  display: flex!important
}
.pdfpage .content-wrapper .loader {
  border: 2px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: auto
}
@keyframes spin {
  0% {
    transform: rotate(0)
  }
  100% {
    transform: rotate(360deg)
  }
}
.pdfjs-toolbar {
  width: 100%;
  height: 32px;
  background: #ddd;
  z-index: 100;
  vertical-align: middle;
  display: flex;
  margin: 0;
  padding: 0
}
.pdfjs-toolbar * {
  margin: auto 0
}
.pdfjs-toolbar span {
  margin-right: .5em;
  margin-left: .5em;
  width: 4em!important;
  font-size: 12px
}
.pdfjs-toolbar a.button,
.pdfjs-toolbar button,
.pdfjs-toolbar label.button {
  min-width: 26px;
  height: 28px;
  border: none;
  padding: 2px 4px 0;
  margin: auto 1px;
  border-radius: 2px;
  line-height: 12px;
  font-size: 14px;
  background-color: #ddd;
  cursor: pointer
}
.pdfjs-toolbar button i,
.pdfjs-toolbar label.button i {
  font-size: 26px;
  padding: 0;
  margin: 0
}
.pdfjs-toolbar a.button:hover,
.pdfjs-toolbar button:hover,
.pdfjs-toolbar label.button:hover {
  background-color: #ccc
}
button.pushed {
  background-color: #aaa!important
}
.pdfjs-toolbar a.button {
  color: inherit
}
.pdfjs-toolbar .divider {
  flex: 1
}
.pdfjs-toolbar .v-sep {
  width: 0;
  height: 20px;
  border-left: 1px solid #bbb
}
.pdfjs-toolbar .h-sep {
  width: 100%;
  height: 0;
  border-top: 1px solid #bbb;
  margin: .25em 0
}
.pdfjs-toolbar .dropdown.dropdown-right,
.pdfjs-toolbar .dropdown.right {
  float: right
}
.pdfjs-toolbar .dropdown.dropdown-right .dropdown-content,
.pdfjs-toolbar .dropdown.right .dropdown-content {
  right: 0;
  left: auto
}
.pdfjs-toolbar .dropdown-value {
  background-color: #ccc;
  padding: 0 4px 2;
  cursor: pointer
}
.pdfjs-toolbar .dropdown-value i {
  width: auto;
  font-size: 12px
}
.pdfjs-toolbar .dropdown-content {
  display: none;
  position: absolute;
  margin-top: 0;
  background-color: #eee;
  min-width: 10em;
  z-index: 1;
  font-size: 12px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,.1),0 6px 20px 0 rgba(0,0,0,.09)
}
.pdfjs-toolbar .dropdown-content a {
  all: initial;
  font: inherit;
  color: #000;
  padding: 6px 8px;
  text-decoration: none;
  display: flex;
  cursor: pointer
}
.pdfjs-toolbar .dropdown-content i {
  font-size: 16px;
  padding-right: .5em
}
.pdfjs-toolbar .dropdown-content a:hover {
  background-color: #ddd
}
.dropdown .dropdown-content:hover,
.pdfjs-toolbar .dropdown:hover .dropdown-content {
  display: block
}