body {
  --toolbar-height: 60px;
  background-color: #f4f4f4;
}

#toolbarContainer {
  height: var(--toolbar-height);
  background-color: #ffffff;
  box-shadow: none;
  border-bottom: thin solid #cfcfcf;
}

#toolbarViewer {
  display: flex;
  justify-content: space-between;
  height: var(--toolbar-height);
}

#toolbarViewerLeft,
#toolbarViewerMiddle,
#toolbarViewerRight {
  display: flex;
  align-items: center;
  height: var(--toolbar-height);
}

#sidebarToggle,
#sidebarViewButtons,
/*.splitToolbarButton.psetting,*/
.doorHangerRight::before,
.doorHangerRight::after,
.doorHanger::after,
.doorHanger::before {
  display: none !important;
}

#sidebarContent {
  box-shadow: none;
  border-radius: 0;
  border-right: thin solid #fafafa;
  inset-block: var(--toolbar-height) 0;
}

.toolbarButton.toggled {
  color: inherit;
  background: inherit;
}

.toolbarButton:is(:hover, :focus-visible),
.toolbarButton.active,
.toolbarButton.tbi-active,
#viewFind.toggled,
#toggleLayout.toggled {
  color: inherit;
  background: #f4f4f4;
}

@media (pointer: coarse) {
  .toolbarButton:is(:hover, :focus-visible):not(.active):not(.tbi-active) {
    background: transparent;
  }
  .toolbarButton {
    -webkit-tap-highlight-color: transparent;
  }
}


:is(.toolbarButton, .secondaryToolbarButton, .dialogButton)[disabled] {
  color: inherit !important;
  background-color: inherit !important;
}

.toolbarButton {
  color: #262626;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  width: 40px;
  height: 40px;
  border-radius: 9999px !important;
}

#viewThumbnail,
#viewOutline,
#viewExtraMaterial {
  width: 64px;
  height: 60px;
  border-radius: 0 !important;
}

.toolbarButtonSpacer {
  display: block;
  width: 1px;
  height: 40px;
  margin: auto 16px auto 0;
  background-color: #c5c5c5;
}

.toolbarButton > i.material-icons {
  font-size: 0;
  width: 30px;
}

.toolbarButton > i.material-icons::before {
  font-size: 30px;
}

#findbarInputContainer i.material-icons::before {
  font-size: 20px;
}

#findbarInputContainer i.material-icons {
  width: 20px;
}

#findPrevious,
#findNext {
  width: 32px;
  height: 32px;
}

#findbarInputContainer .splitToolbarButton {
  padding-left: 8px;
}

/*#toolbarViewerMiddle .toolbarButton > i.material-icons::before {
  font-size: 28px;
}*/

.toolbarFieldCenter {
  margin: 0 0 0 8px !important;
}

.splitToolbarButton {
  margin: 0 !important;
  gap: 0 !important;
}

#viewerContainer.pdfPresentationMode:fullscreen,
.splitToolbarButton > .toolbarButton:is(:hover, :focus-visible), .dropdownToolbarButton:hover,
:is(.toolbarButton, .secondaryToolbarButton).toggled:hover:active, .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active {
  background-color: #f4f4f4;
}

.toolbarField,
.toolbarLabel,
#findInput {
  color: #262626 !important;
  font-size: 14px !important;
}

.toolbarField:focus,
#findInput {
  border-color: #c5c5c5;
}

.toolbarField,
#findInput {
  outline: none;
  box-shadow: none;
  border: thin solid #c5c5c5;
  background: #ffffff;
}

.splitToolbarButton,
#toolbarViewerMiddle,
#toolbarViewerRight {
  gap: 8px;
}

#toolbarViewerRight {
  padding-right: 16px;
}

#page-number.error {
  color: rgba(209, 24, 24, 1) !important;
  background-color: rgba(209, 24, 24, 0.102);
  border: thin solid rgba(209, 24, 24, 0.102);
}

#presentationModeClose {
  top: 16px;
  right: 16px;
}

.toolbarFieldCenter {
  height: 30px;
  margin: 0;
}

.dropdownToolbarButton,
.dropdownToolbarButton > select {
  position: relative;
  font-size: 14px !important;
  margin: 0;
  min-width: 60px;
  border: none;
  background-color: #ffffff !important;
}

.dropdownToolbarButton::after {
  width: 20px;
  height: 20px;
  top: 5px;
}

#page-tool-wrapper {
  align-items: center;
  justify-content: flex-start;
}

.ant-page-toolbar, .ant-toolbar {
  border: none;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.161);
  background-color: #ffffff;
}

.color-picker {
  left: -80px;
  top: 50px;
  border: 0;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.161);
}

#draw-button.active > .color-picker, #highlight-button.active > .color-picker {
  width: 200px !important;
}

.findbar {
  right: 0;
  left: unset;
  top: 56px;
  max-width: 24rem;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.161);
}

#delete-button.tbi-active {
  color: rgba(209, 24, 24, 1);
  background-color: rgba(209, 24, 24, 0.102);
}

/* Replace Icons */
#viewThumbnail > i.material-icons::before {
  content: "\f734";
}

#viewOutline > i.material-icons::before {
  content: "\e94b";
}

#viewExtraMaterial > i.material-icons::before {
  content: "\e66d";
}

#previous > i.material-icons::before {
  content: "\e5d8";
}

#next > i.material-icons::before {
  content: "\e5db";
}

#highlight-button > i.material-icons::before {
  content: "\e6d1";
}

#comment-button > i.material-icons::before {
  content: "\e0b9";
}

#text-button > i.material-icons::before {
  content: "\e245";
}

#text-button > i.material-icons::before {
  content: "\e245";
}

#draw-button > i.material-icons::before {
  content: "\e3c9";
}

#cover-button > i.material-icons::before {
  content: "\e8f5";
}

#delete-button > i.material-icons::before {
  content: "\e872";
}

#h5p-button > i.material-icons::before {
  content: "\e226";
}

#toggleLayout > i.material-icons::before {
  content: "\f51f";
}

#viewFind > i.material-icons::before {
  content: "\ea5a";
}

#presentationMode > i.material-icons::before {
  content: "\e5d0";
}

#presentationModeClose > i.material-icons::before {
  content: "\e5cd";
}

#toggle-ant-toolbar > i.material-icons::before {
  content: "\e5d2";
}

#findPrevious > i.material-icons::before {
  content: "\e2ea";
}

#findNext > i.material-icons::before {
  content: "\e5e1";
}

#edit-button > i.material-icons::before {
  content: "\e89f";
}

#zoomOut  > i.material-icons::before {
  content: "\e900";
}

#zoomIn  > i.material-icons::before {
  content: "\e8ff";
}

@media (max-width: 1160px) {
  .findbar {
    top: 90px;
  }
}

@media (max-width: 840px) {
  .findbar {
    top: 130px;
  }
}
