.pdfjs-toolbar {
  width: 100%;
  height: 32px;
  background: #f5f9ff;
  z-index: 1;
  vertical-align: middle;
  display: flex;
  margin: 0;
  padding: 0;
  position: relative;
}
.pdfjs-toolbar * {
  margin: auto 0;
}
.pdfjs-toolbar span {
  margin-right: 0.5em;
  margin-left: 0.5em;
  width: 5em !important;
  font-size: 12px;
}
.pdfjs-toolbar button,
.pdfjs-toolbar label.button,
.pdfjs-toolbar a.button {
  min-width: 26px;
  height: 24px;
  border: none;
  padding: 2px 4px 0;
  margin: auto 1px;
  border-radius: 2px;
  line-height: 12px;
  font-size: 14px;
  background-color: #f5f9ff;
  cursor: pointer;
}
.pdfjs-toolbar i {
  font-size: 20px;
  color: #093c9b;
}
.pdfjs-toolbar button i,
.pdfjs-toolbar label.button i {
  font-size: 18px !important;
  padding: 0;
  margin: 0;
}
.pdfjs-toolbar button:hover,
.pdfjs-toolbar label.button:hover,
.pdfjs-toolbar a.button:hover {
  background-color: #dde4ef;
  border-radius: 4px;
}
button.pushed {
  background-color: #dde4ef !important;
}
.pdfjs-toolbar a.button {
  color: inherit;
}
.pdfjs-toolbar .divider {
  flex: 1;
}
.pdfjs-toolbar .v-sep {
  width: 0px;
  height: 20px;
  border-left: 1px solid #bbb;
}
.pdfjs-toolbar .h-sep {
  width: 100%;
  height: 0px;
  border-top: 1px solid #bbb;
  margin: 0.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: #fff;
  padding: 0px 4px 2;
  cursor: pointer;
  border: 1px solid #f5f9ff;
}
.pdfjs-toolbar .dropdown-value i {
  width: auto;
  font-size: 12px;
}
/* Dropdown Content (Hidden by Default) */
.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, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09);
}
/* Links inside the dropdown */
.pdfjs-toolbar .dropdown-content a {
  all: initial;
  font: inherit;
  color: black;
  padding: 6px 8px;
  text-decoration: none;
  display: flex;
  cursor: pointer;
}
.pdfjs-toolbar .dropdown-content i {
  font-size: 16px;
  padding-right: 0.5em;
}
.pdfjs-toolbar .dropdown-content a:hover {
  background-color: #ddd;
}
.pdfjs-toolbar .dropdown:hover .dropdown-content,
.dropdown .dropdown-content:hover {
  display: block;
}

.pdfjs-viewer {
  overflow: auto;
  border: 1px solid #f3f3f3;
  background: #fff;
  /* width: 100%; */
}
.pdfjs-viewer.horizontal-scroll {
  display: flex;
}
.pdfjs-viewer.horizontal-scroll .pdfpage {
  margin-left: 1em;
  margin-top: 0.25em !important;
  margin-bottom: 0.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, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09);
  /* display: flex; */
}
.pdfpage canvas {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}
.pdfpage.placeholder {
  display: flex;
  margin-bottom: 0em !important;
  margin-top: 0em !important;
  height: 100%;
  width: 100%;
  background: #fff;
}
.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(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pdfviewer {
  height: calc(100vh - 163px);
  padding-bottom: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pdfviewer-container {
  margin: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
  flex: 1;
}
.thumbnails {
  width: 150px !important;
  border: 1px solid #fff;
  border-right: 3px solid #fff;
  background: #fff;
}
.thumbnails .pdfpage.selected {
  border: 2px solid #082c6f;
  border-radius: 2px;
}
.maindoc {
  flex: 1;
}
.hide {
  display: none;
}
input[type="file"] {
  display: none;
}
.numbering {
  width: 100%;
  text-align: center;
  font-size: 0.75em;
  margin-top: 0.25em;
  color: #555;
}
.thumbnails .pdfpage {
  margin-bottom: 2em !important;
}
.thumbnails .pdfpage.hidden {
  opacity: 0.3;
}
.maindoc .pdfpage.hidden {
  display: none;
}
