/* copyright 2014 mozilla foundation
 *
 * 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.
 */

.textlayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.2;
}

.textlayer > div {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  -webkit-transform-origin: 0% 0%;
  -moz-transform-origin: 0% 0%;
  -o-transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  transform-origin: 0% 0%;
}

.textlayer .highlight {
  margin: -1px;
  padding: 1px;

  background-color: rgb(180, 0, 170);
  border-radius: 4px;
}

.textlayer .highlight.begin {
  border-radius: 4px 0px 0px 4px;
}

.textlayer .highlight.end {
  border-radius: 0px 4px 4px 0px;
}

.textlayer .highlight.middle {
  border-radius: 0px;
}

.textlayer .highlight.selected {
  background-color: rgb(0, 100, 0);
}

.textlayer ::selection { background: rgb(0,0,255); }
.textlayer ::-moz-selection { background: rgb(0,0,255); }

.pdfviewer .canvaswrapper {
  overflow: hidden;
}

.pdfviewer .page {
  direction: ltr;
  width: 816px;
  height: 1056px;
  margin: 1px auto -8px auto;
  position: relative;
  overflow: visible;
  border: 9px solid transparent;
  background-clip: content-box;
  border-image:  9 9 repeat;
  background-color: white;
}

.pdfviewer.removepageborders .page {
  margin: 0px auto 10px auto;
  border: none;
}

.pdfviewer .page canvas {
  margin: 0;
  display: block;
}

.pdfviewer .page .loadingicon {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background:  center no-repeat;
}

.pdfviewer .page .annotlink > a:hover {
  opacity: 0.2;
  background: #ff0;
  box-shadow: 0px 2px 10px #ff0;
}

.pdfpresentationmode:-webkit-full-screen .pdfviewer .page {
  margin-bottom: 100%;
  border: 0;
}

.pdfpresentationmode:-moz-full-screen .pdfviewer .page {
  margin-bottom: 100%;
  border: 0;
}

.pdfpresentationmode:-ms-fullscreen .pdfviewer .page {
  margin-bottom: 100% !important;
  border: 0;
}

.pdfpresentationmode:fullscreen .pdfviewer .page {
  margin-bottom: 100%;
  border: 0;
}

.pdfviewer .page .annottext > img {
  position: absolute;
  cursor: pointer;
}

.pdfviewer .page .annottextcontentwrapper {
  position: absolute;
  width: 20em;
}

.pdfviewer .page .annottextcontent {
  z-index: 200;
  float: left;
  max-width: 20em;
  background-color: #ffff99;
  box-shadow: 0px 2px 5px #333;
  border-radius: 2px;
  padding: 0.6em;
  cursor: pointer;
}

.pdfviewer .page .annottextcontent > h1 {
  font-size: 1em;
  border-bottom: 1px solid #000000;
  padding-bottom: 0.2em;
}

.pdfviewer .page .annottextcontent > p {
  padding-top: 0.2em;
}

.pdfviewer .page .annotlink > a {
  position: absolute;
  font-size: 1em;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pdfviewer .page .annotlink > a /* -ms-a */  {
  background:  0 0 repeat;
}

* {
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
  /* font size is needed to make the activity bar the correct size. */
  font-size: 10px;
}

body {
  height: 100%;
  background-color: #404040;
  background-image: ;
}

body,
input,
button,
select {
  font: message-box;
  outline: none;
}

.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}

#viewercontainer.pdfpresentationmode:-webkit-full-screen {
  top: 0px;
  border-top: 2px solid transparent;
  background-color: #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
  -webkit-user-select: none;
}

#viewercontainer.pdfpresentationmode:-moz-full-screen {
  top: 0px;
  border-top: 2px solid transparent;
  background-color: #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
  -moz-user-select: none;
}

#viewercontainer.pdfpresentationmode:-ms-fullscreen {
  top: 0px !important;
  border-top: 2px solid transparent;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  cursor: none;
  -ms-user-select: none;
}

#viewercontainer.pdfpresentationmode:-ms-fullscreen::-ms-backdrop {
  background-color: #000;
}

#viewercontainer.pdfpresentationmode:fullscreen {
  top: 0px;
  border-top: 2px solid transparent;
  background-color: #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.pdfpresentationmode:-webkit-full-screen a:not(.internallink) {
  display: none;
}

.pdfpresentationmode:-moz-full-screen a:not(.internallink) {
  display: none;
}

.pdfpresentationmode:-ms-fullscreen a:not(.internallink) {
  display: none !important;
}

.pdfpresentationmode:fullscreen a:not(.internallink) {
  display: none;
}

.pdfpresentationmode:-webkit-full-screen .textlayer > div {
  cursor: none;
}

.pdfpresentationmode:-moz-full-screen .textlayer > div {
  cursor: none;
}

.pdfpresentationmode:-ms-fullscreen .textlayer > div {
  cursor: none;
}

.pdfpresentationmode:fullscreen .textlayer > div {
  cursor: none;
}

.pdfpresentationmode.pdfpresentationmodecontrols > *,
.pdfpresentationmode.pdfpresentationmodecontrols .textlayer > div {
  cursor: default;
}

/* outer/inner center provides horizontal center */
.outercenter {
  pointer-events: none;
  position: relative;
}
html[dir='ltr'] .outercenter {
  float: right;
  right: 50%;
}
html[dir='rtl'] .outercenter {
  float: left;
  left: 50%;
}
.innercenter {
  pointer-events: auto;
  position: relative;
}
html[dir='ltr'] .innercenter {
  float: right;
  right: -50%;
}
html[dir='rtl'] .innercenter {
  float: left;
  left: -50%;
}

#outercontainer {
  width: 100%;
  height: 100%;
  position: relative;
}

#sidebarcontainer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  visibility: hidden;
  -webkit-transition-duration: 200ms;
  -webkit-transition-timing-function: ease;
  transition-duration: 200ms;
  transition-timing-function: ease;

}
html[dir='ltr'] #sidebarcontainer {
  -webkit-transition-property: left;
  transition-property: left;
  left: -200px;
}
html[dir='rtl'] #sidebarcontainer {
  -webkit-transition-property: right;
  transition-property: right;
  right: -200px;
}

#outercontainer.sidebarmoving > #sidebarcontainer,
#outercontainer.sidebaropen > #sidebarcontainer {
  visibility: visible;
}
html[dir='ltr'] #outercontainer.sidebaropen > #sidebarcontainer {
  left: 0px;
}
html[dir='rtl'] #outercontainer.sidebaropen > #sidebarcontainer {
  right: 0px;
}

#maincontainer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-width: 320px;
  -webkit-transition-duration: 200ms;
  -webkit-transition-timing-function: ease;
  transition-duration: 200ms;
  transition-timing-function: ease;
}
html[dir='ltr'] #outercontainer.sidebaropen > #maincontainer {
  -webkit-transition-property: left;
  transition-property: left;
  left: 200px;
}
html[dir='rtl'] #outercontainer.sidebaropen > #maincontainer {
  -webkit-transition-property: right;
  transition-property: right;
  right: 200px;
}

#sidebarcontent {
  top: 32px;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  width: 200px;
  background-color: hsla(0,0%,0%,.1);
}
html[dir='ltr'] #sidebarcontent {
  left: 0;
  box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25);
}
html[dir='rtl'] #sidebarcontent {
  right: 0;
  box-shadow: inset 1px 0 0 hsla(0,0%,0%,.25);
}

#viewercontainer {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  top: 32px;
  right: 0;
  bottom: 0;
  left: 0;
  outline: none;
}
html[dir='ltr'] #viewercontainer {
  box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05);
}
html[dir='rtl'] #viewercontainer {
  box-shadow: inset -1px 0 0 hsla(0,0%,100%,.05);
}

.toolbar {
  position: relative;
  left: 0;
  right: 0;
  z-index: 9999;
  cursor: default;
}

#toolbarcontainer {
  width: 100%;
}

#toolbarsidebar {
  width: 200px;
  height: 32px;
  background-color: #424242; /* fallback */
  background-image: ,
                    linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95));
}
html[dir='ltr'] #toolbarsidebar {
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
              inset 0 -1px 0 hsla(0,0%,100%,.05),
              0 1px 0 hsla(0,0%,0%,.15),
              0 0 1px hsla(0,0%,0%,.1);
}
html[dir='rtl'] #toolbarsidebar {
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
              inset 0 1px 0 hsla(0,0%,100%,.05),
              0 1px 0 hsla(0,0%,0%,.15),
              0 0 1px hsla(0,0%,0%,.1);
}

#toolbarcontainer, .findbar, .secondarytoolbar {
  position: relative;
  height: 32px;
  background-color: #474747; /* fallback */
  background-image: ,
                    linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
}
html[dir='ltr'] #toolbarcontainer, .findbar, .secondarytoolbar {
  box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
              inset 0 1px 1px hsla(0,0%,0%,.15),
              inset 0 -1px 0 hsla(0,0%,100%,.05),
              0 1px 0 hsla(0,0%,0%,.15),
              0 1px 1px hsla(0,0%,0%,.1);
}
html[dir='rtl'] #toolbarcontainer, .findbar, .secondarytoolbar {
  box-shadow: inset -1px 0 0 hsla(0,0%,100%,.08),
              inset 0 1px 1px hsla(0,0%,0%,.15),
              inset 0 -1px 0 hsla(0,0%,100%,.05),
              0 1px 0 hsla(0,0%,0%,.15),
              0 1px 1px hsla(0,0%,0%,.1);
}

#toolbarviewer {
  height: 32px;
}

#loadingbar {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: #333;
  border-bottom: 1px solid #333;
}

#loadingbar .progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #ddd;
  overflow: hidden;
  -webkit-transition: width 200ms;
  transition: width 200ms;
}

@-webkit-keyframes progressindeterminate {
  0% { left: 0%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes progressindeterminate {
  0% { left: 0%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

#loadingbar .progress.indeterminate {
  background-color: #999;
  -webkit-transition: none;
  transition: none;
}

#loadingbar .indeterminate .glimmer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50px;

  background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;

  -webkit-animation: progressindeterminate 2s linear infinite;
  animation: progressindeterminate 2s linear infinite;
}

.findbar, .secondarytoolbar {
  top: 32px;
  position: absolute;
  z-index: 10000;
  height: 32px;

  min-width: 16px;
  padding: 0px 6px 0px 6px;
  margin: 4px 2px 4px 2px;
  color: hsl(0,0%,85%);
  font-size: 12px;
  line-height: 14px;
  text-align: left;
  cursor: default;
}

html[dir='ltr'] .findbar {
  left: 68px;
}

html[dir='rtl'] .findbar {
  right: 68px;
}

.findbar label {
  -webkit-user-select: none;
  -moz-user-select: none;
}

#findinput[data-status="pending"] {
  background-image: ;
  background-repeat: no-repeat;
  background-position: right;
}
html[dir='rtl'] #findinput[data-status="pending"] {
  background-position: left;
}

.secondarytoolbar {
  padding: 6px;
  height: auto;
  z-index: 30000;
}
html[dir='ltr'] .secondarytoolbar {
  right: 4px;
}
html[dir='rtl'] .secondarytoolbar {
  left: 4px;
}

#secondarytoolbarbuttoncontainer {
  max-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: -4px;
}

.doorhanger,
.doorhangerright {
  border: 1px solid hsla(0,0%,0%,.5);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.doorhanger:after, .doorhanger:before,
.doorhangerright:after, .doorhangerright:before {
  bottom: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.doorhanger:after,
.doorhangerright:after {
  border-bottom-color: hsla(0,0%,32%,.99);
  border-width: 8px;
}
.doorhanger:before,
.doorhangerright:before {
  border-bottom-color: hsla(0,0%,0%,.5);
  border-width: 9px;
}

html[dir='ltr'] .doorhanger:after,
html[dir='rtl'] .doorhangerright:after {
  left: 13px;
  margin-left: -8px;
}

html[dir='ltr'] .doorhanger:before,
html[dir='rtl'] .doorhangerright:before {
  left: 13px;
  margin-left: -9px;
}

html[dir='rtl'] .doorhanger:after,
html[dir='ltr'] .doorhangerright:after {
  right: 13px;
  margin-right: -8px;
}

html[dir='rtl'] .doorhanger:before,
html[dir='ltr'] .doorhangerright:before {
  right: 13px;
  margin-right: -9px;
}

#findmsg {
  font-style: italic;
  color: #a6b7d0;
}

#findinput.notfound {
  background-color: rgb(255, 102, 102);
}

html[dir='ltr'] #toolbarviewerleft {
  margin-left: -1px;
}
html[dir='rtl'] #toolbarviewerright {
  margin-right: -1px;
}

html[dir='ltr'] #toolbarviewerleft,
html[dir='rtl'] #toolbarviewerright {
  position: absolute;
  top: 0;
  left: 0;
}
html[dir='ltr'] #toolbarviewerright,
html[dir='rtl'] #toolbarviewerleft {
  position: absolute;
  top: 0;
  right: 0;
}
html[dir='ltr'] #toolbarviewerleft > *,
html[dir='ltr'] #toolbarviewermiddle > *,
html[dir='ltr'] #toolbarviewerright > *,
html[dir='ltr'] .findbar > * {
  position: relative;
  float: left;
}
html[dir='rtl'] #toolbarviewerleft > *,
html[dir='rtl'] #toolbarviewermiddle > *,
html[dir='rtl'] #toolbarviewerright > *,
html[dir='rtl'] .findbar > * {
  position: relative;
  float: right;
}

html[dir='ltr'] .splittoolbarbutton {
  margin: 3px 2px 4px 0;
  display: inline-block;
}
html[dir='rtl'] .splittoolbarbutton {
  margin: 3px 0 4px 2px;
  display: inline-block;
}
html[dir='ltr'] .splittoolbarbutton > .toolbarbutton {
  border-radius: 0;
  float: left;
}
html[dir='rtl'] .splittoolbarbutton > .toolbarbutton {
  border-radius: 0;
  float: right;
}

.toolbarbutton,
.secondarytoolbarbutton,
.overlaybutton {
  border: 0 none;
  background: none;
  width: 32px;
  height: 25px;
}

.toolbarbutton > span {
  display: inline-block;
  width: 0;
  height: 0;
  overflow: hidden;
}

.toolbarbutton[disabled],
.secondarytoolbarbutton[disabled],
.overlaybutton[disabled] {
  opacity: .5;
}

.toolbarbutton.group {
  margin-right: 0;
}

.splittoolbarbutton.toggled .toolbarbutton {
  margin: 0;
}

.splittoolbarbutton:hover > .toolbarbutton,
.splittoolbarbutton:focus > .toolbarbutton,
.splittoolbarbutton.toggled > .toolbarbutton,
.toolbarbutton.textbutton {
  background-color: hsla(0,0%,0%,.12);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  border: 1px solid hsla(0,0%,0%,.35);
  border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.15) inset,
              0 1px 0 hsla(0,0%,100%,.05);
  -webkit-transition-property: background-color, border-color, box-shadow;
  -webkit-transition-duration: 150ms;
  -webkit-transition-timing-function: ease;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease;

}
.splittoolbarbutton > .toolbarbutton:hover,
.splittoolbarbutton > .toolbarbutton:focus,
.dropdowntoolbarbutton:hover,
.overlaybutton:hover,
.toolbarbutton.textbutton:hover,
.toolbarbutton.textbutton:focus {
  background-color: hsla(0,0%,0%,.2);
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.15) inset,
              0 0 1px hsla(0,0%,0%,.05);
  z-index: 199;
}
.splittoolbarbutton > .toolbarbutton {
  position: relative;
}
html[dir='ltr'] .splittoolbarbutton > .toolbarbutton:first-child,
html[dir='rtl'] .splittoolbarbutton > .toolbarbutton:last-child {
  position: relative;
  margin: 0;
  margin-right: -1px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  border-right-color: transparent;
}
html[dir='ltr'] .splittoolbarbutton > .toolbarbutton:last-child,
html[dir='rtl'] .splittoolbarbutton > .toolbarbutton:first-child {
  position: relative;
  margin: 0;
  margin-left: -1px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  border-left-color: transparent;
}
.splittoolbarbuttonseparator {
  padding: 8px 0;
  width: 1px;
  background-color: hsla(0,0%,0%,.5);
  z-index: 99;
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
  display: inline-block;
  margin: 5px 0;
}
html[dir='ltr'] .splittoolbarbuttonseparator {
  float: left;
}
html[dir='rtl'] .splittoolbarbuttonseparator {
  float: right;
}
.splittoolbarbutton:hover > .splittoolbarbuttonseparator,
.splittoolbarbutton.toggled > .splittoolbarbuttonseparator {
  padding: 12px 0;
  margin: 1px 0;
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
  -webkit-transition-property: padding;
  -webkit-transition-duration: 10ms;
  -webkit-transition-timing-function: ease;
  transition-property: padding;
  transition-duration: 10ms;
  transition-timing-function: ease;
}

.toolbarbutton,
.dropdowntoolbarbutton,
.secondarytoolbarbutton,
.overlaybutton {
  min-width: 16px;
  padding: 2px 6px 0;
  border: 1px solid transparent;
  border-radius: 2px;
  color: hsla(0,0%,100%,.8);
  font-size: 12px;
  line-height: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* opera does not support user-select, use <... unselectable="on"> instead */
  cursor: default;
  -webkit-transition-property: background-color, border-color, box-shadow;
  -webkit-transition-duration: 150ms;
  -webkit-transition-timing-function: ease;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

html[dir='ltr'] .toolbarbutton,
html[dir='ltr'] .overlaybutton,
html[dir='ltr'] .dropdowntoolbarbutton {
  margin: 3px 2px 4px 0;
}
html[dir='rtl'] .toolbarbutton,
html[dir='rtl'] .overlaybutton,
html[dir='rtl'] .dropdowntoolbarbutton {
  margin: 3px 0 4px 2px;
}

.toolbarbutton:hover,
.toolbarbutton:focus,
.dropdowntoolbarbutton,
.overlaybutton,
.secondarytoolbarbutton:hover,
.secondarytoolbarbutton:focus {
  background-color: hsla(0,0%,0%,.12);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  border: 1px solid hsla(0,0%,0%,.35);
  border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.15) inset,
              0 1px 0 hsla(0,0%,100%,.05);
}

.toolbarbutton:hover:active,
.overlaybutton:hover:active,
.dropdowntoolbarbutton:hover:active,
.secondarytoolbarbutton:hover:active {
  background-color: hsla(0,0%,0%,.2);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
  box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
              0 0 1px hsla(0,0%,0%,.2) inset,
              0 1px 0 hsla(0,0%,100%,.05);
  -webkit-transition-property: background-color, border-color, box-shadow;
  -webkit-transition-duration: 10ms;
  -webkit-transition-timing-function: linear;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 10ms;
  transition-timing-function: linear;
}

.toolbarbutton.toggled,
.splittoolbarbutton.toggled > .toolbarbutton.toggled,
.secondarytoolbarbutton.toggled {
  background-color: hsla(0,0%,0%,.3);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
  box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
              0 0 1px hsla(0,0%,0%,.2) inset,
              0 1px 0 hsla(0,0%,100%,.05);
  -webkit-transition-property: background-color, border-color, box-shadow;
  -webkit-transition-duration: 10ms;
  -webkit-transition-timing-function: linear;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 10ms;
  transition-timing-function: linear;
}

.toolbarbutton.toggled:hover:active,
.splittoolbarbutton.toggled > .toolbarbutton.toggled:hover:active,
.secondarytoolbarbutton.toggled:hover:active {
  background-color: hsla(0,0%,0%,.4);
  border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
  box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
              0 0 1px hsla(0,0%,0%,.3) inset,
              0 1px 0 hsla(0,0%,100%,.05);
}

.dropdowntoolbarbutton {
  width: 120px;
  max-width: 120px;
  padding: 3px 2px 2px;
  overflow: hidden;
  background:  no-repeat;
}
html[dir='ltr'] .dropdowntoolbarbutton {
  background-position: 95%;
}
html[dir='rtl'] .dropdowntoolbarbutton {
  background-position: 5%;
}

.dropdowntoolbarbutton > select {
  min-width: 140px;
  font-size: 12px;
  color: hsl(0,0%,95%);
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0,0,0,0); /* opera does not support 'transparent' <select> background */
}

.dropdowntoolbarbutton > select > option {
  background: hsl(0,0%,24%);
}

#customscaleoption {
  display: none;
}

#pagewidthoption {
  border-bottom: 1px rgba(255, 255, 255, .5) solid;
}

html[dir='ltr'] .splittoolbarbutton:first-child,
html[dir='ltr'] .toolbarbutton:first-child,
html[dir='rtl'] .splittoolbarbutton:last-child,
html[dir='rtl'] .toolbarbutton:last-child {
  margin-left: 4px;
}
html[dir='ltr'] .splittoolbarbutton:last-child,
html[dir='ltr'] .toolbarbutton:last-child,
html[dir='rtl'] .splittoolbarbutton:first-child,
html[dir='rtl'] .toolbarbutton:first-child {
  margin-right: 4px;
}

.toolbarbuttonspacer {
  width: 30px;
  display: inline-block;
  height: 1px;
}

.toolbarbuttonflexiblespacer {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  min-width: 30px;
}

html[dir='ltr'] #findprevious {
  margin-left: 3px;
}
html[dir='ltr'] #findnext {
  margin-right: 3px;
}

html[dir='rtl'] #findprevious {
  margin-right: 3px;
}
html[dir='rtl'] #findnext {
  margin-left: 3px;
}

.toolbarbutton::before,
.secondarytoolbarbutton::before {
  /* all matching images have a size of 16x16
   * all relevant containers have a size of 32x25 */
  position: absolute;
  display: inline-block;
  top: 4px;
  left: 7px;
}

html[dir="ltr"] .secondarytoolbarbutton::before {
  left: 4px;
}
html[dir="rtl"] .secondarytoolbarbutton::before {
  right: 4px;
}

html[dir='ltr'] .toolbarbutton#sidebartoggle::before {
  content: ;
}
html[dir='rtl'] .toolbarbutton#sidebartoggle::before {
  content: ;
}

html[dir='ltr'] .toolbarbutton#secondarytoolbartoggle::before {
  content: ;
}
html[dir='rtl'] .toolbarbutton#secondarytoolbartoggle::before {
  content: ;
}

html[dir='ltr'] .toolbarbutton.findprevious::before {
  content: ;
}
html[dir='rtl'] .toolbarbutton.findprevious::before {
  content: ;
}

html[dir='ltr'] .toolbarbutton.findnext::before {
  content: ;
}
html[dir='rtl'] .toolbarbutton.findnext::before {
  content: ;
}

html[dir='ltr'] .toolbarbutton.pageup::before {
  content: ;
}
html[dir='rtl'] .toolbarbutton.pageup::before {
  content: ;
}

html[dir='ltr'] .toolbarbutton.pagedown::before {
  content: ;
}
html[dir='rtl'] .toolbarbutton.pagedown::before {
  content: ;
}

.toolbarbutton.zoomout::before {
  content: ;
}

.toolbarbutton.zoomin::before {
  content: ;
}

.toolbarbutton.presentationmode::before,
.secondarytoolbarbutton.presentationmode::before {
  content: ;
}

.toolbarbutton.print::before,
.secondarytoolbarbutton.print::before {
  content: ;
}

.toolbarbutton.openfile::before,
.secondarytoolbarbutton.openfile::before {
  content: ;
}

.toolbarbutton.download::before,
.secondarytoolbarbutton.download::before {
  content: ;
}

.toolbarbutton.bookmark,
.secondarytoolbarbutton.bookmark {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  padding-top: 4px;
  text-decoration: none;
}
.secondarytoolbarbutton.bookmark {
  padding-top: 5px;
}

.bookmark[href='#'] {
  opacity: .5;
  pointer-events: none;
}

.toolbarbutton.bookmark::before,
.secondarytoolbarbutton.bookmark::before {
  content: ;
}

#viewthumbnail.toolbarbutton::before {
  content: ;
}

html[dir="ltr"] #viewoutline.toolbarbutton::before {
  content: ;
}
html[dir="rtl"] #viewoutline.toolbarbutton::before {
  content: ;
}

#viewattachments.toolbarbutton::before {
  content: ;
}

#viewfind.toolbarbutton::before {
  content: ;
}

.secondarytoolbarbutton {
  position: relative;
  margin: 0 0 4px 0;
  padding: 3px 0 1px 0;
  height: auto;
  min-height: 25px;
  width: auto;
  min-width: 100%;
  white-space: normal;
}
html[dir="ltr"] .secondarytoolbarbutton {
  padding-left: 24px;
  text-align: left;
}
html[dir="rtl"] .secondarytoolbarbutton {
  padding-right: 24px;
  text-align: right;
}
html[dir="ltr"] .secondarytoolbarbutton.bookmark {
  padding-left: 27px;
}
html[dir="rtl"] .secondarytoolbarbutton.bookmark {
  padding-right: 27px;
}

html[dir="ltr"] .secondarytoolbarbutton > span {
  padding-right: 4px;
}
html[dir="rtl"] .secondarytoolbarbutton > span {
  padding-left: 4px;
}

.secondarytoolbarbutton.firstpage::before {
  content: ;
}

.secondarytoolbarbutton.lastpage::before {
  content: ;
}

.secondarytoolbarbutton.rotateccw::before {
  content: ;
}

.secondarytoolbarbutton.rotatecw::before {
  content: ;
}

.secondarytoolbarbutton.handtool::before {
  content: ;
}

.secondarytoolbarbutton.documentproperties::before {
  content: ;
}

.verticaltoolbarseparator {
  display: block;
  padding: 8px 0;
  margin: 8px 4px;
  width: 1px;
  background-color: hsla(0,0%,0%,.5);
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
}
html[dir='ltr'] .verticaltoolbarseparator {
  margin-left: 2px;
}
html[dir='rtl'] .verticaltoolbarseparator {
  margin-right: 2px;
}

.horizontaltoolbarseparator {
  display: block;
  margin: 0 0 4px 0;
  height: 1px;
  width: 100%;
  background-color: hsla(0,0%,0%,.5);
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
}

.toolbarfield {
  padding: 3px 6px;
  margin: 4px 0 4px 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background-color: hsla(0,0%,100%,.09);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  border: 1px solid hsla(0,0%,0%,.35);
  border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
  box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
              0 1px 0 hsla(0,0%,100%,.05);
  color: hsl(0,0%,95%);
  font-size: 12px;
  line-height: 14px;
  outline-style: none;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

.toolbarfield[type=checkbox] {
  display: inline-block;
  margin: 8px 0px;
}

.toolbarfield.pagenumber {
  -moz-appearance: textfield; /* hides the spinner in moz */
  min-width: 16px;
  text-align: right;
  width: 40px;
}

.toolbarfield.pagenumber.visiblepageisloading {
  background-image: ;
  background-repeat: no-repeat;
  background-position: 1px;
}

.toolbarfield.pagenumber::-webkit-inner-spin-button,
.toolbarfield.pagenumber::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.toolbarfield:hover {
  background-color: hsla(0,0%,100%,.11);
  border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
}

.toolbarfield:focus {
  background-color: hsla(0,0%,100%,.15);
  border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
}

.toolbarlabel {
  min-width: 16px;
  padding: 3px 6px 3px 2px;
  margin: 4px 2px 4px 0;
  border: 1px solid transparent;
  border-radius: 2px;
  color: hsl(0,0%,85%);
  font-size: 12px;
  line-height: 14px;
  text-align: left;
  -webkit-user-select: none;
  -moz-user-select: none;
  cursor: default;
}

#thumbnailview {
  position: absolute;
  width: 120px;
  top: 0;
  bottom: 0;
  padding: 10px 40px 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.thumbnail {
  float: left;
  margin-bottom: 5px;
}

#thumbnailview > a:last-of-type > .thumbnail {
  margin-bottom: 10px;
}

#thumbnailview > a:last-of-type > .thumbnail:not([data-loaded]) {
  margin-bottom: 9px;
}

.thumbnail:not([data-loaded]) {
  border: 1px dashed rgba(255, 255, 255, 0.5);
  margin: -1px -1px 4px -1px;
}

.thumbnailimage {
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  z-index: 99;
  background-color: white;
  background-clip: content-box;
}

.thumbnailselectionring {
  border-radius: 2px;
  padding: 7px;
}

a:focus > .thumbnail > .thumbnailselectionring > .thumbnailimage,
.thumbnail:hover > .thumbnailselectionring > .thumbnailimage {
  opacity: .9;
}

a:focus > .thumbnail > .thumbnailselectionring,
.thumbnail:hover > .thumbnailselectionring {
  background-color: hsla(0,0%,100%,.15);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.2) inset,
              0 0 1px hsla(0,0%,0%,.2);
  color: hsla(0,0%,100%,.9);
}

.thumbnail.selected > .thumbnailselectionring > .thumbnailimage {
  box-shadow: 0 0 0 1px hsla(0,0%,0%,.5);
  opacity: 1;
}

.thumbnail.selected > .thumbnailselectionring {
  background-color: hsla(0,0%,100%,.3);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.1) inset,
              0 0 1px hsla(0,0%,0%,.2);
  color: hsla(0,0%,100%,1);
}

#outlineview,
#attachmentsview {
  position: absolute;
  width: 192px;
  top: 0;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  -moz-user-select: none;
}

#outlineview {
  padding: 4px 4px 0;
}
#attachmentsview {
  padding: 3px 4px 0;
}

html[dir='ltr'] .outlineitem > .outlineitems {
  margin-left: 20px;
}

html[dir='rtl'] .outlineitem > .outlineitems {
  margin-right: 20px;
}

.outlineitem > a,
.attachmentsitem > button {
  text-decoration: none;
  display: inline-block;
  min-width: 95%;
  height: auto;
  margin-bottom: 1px;
  border-radius: 2px;
  color: hsla(0,0%,100%,.8);
  font-size: 13px;
  line-height: 15px;
  -moz-user-select: none;
  white-space: normal;
}

.attachmentsitem > button {
  border: 0 none;
  background: none;
  cursor: pointer;
  width: 100%;
}

html[dir='ltr'] .outlineitem > a {
  padding: 2px 0 5px 10px;
}
html[dir='ltr'] .attachmentsitem > button {
  padding: 2px 0 3px 7px;
  text-align: left;
}

html[dir='rtl'] .outlineitem > a {
  padding: 2px 10px 5px 0;
}
html[dir='rtl'] .attachmentsitem > button {
  padding: 2px 7px 3px 0;
  text-align: right;
}

.outlineitem > a:hover,
.attachmentsitem > button:hover {
  background-color: hsla(0,0%,100%,.02);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.2) inset,
              0 0 1px hsla(0,0%,0%,.2);
  color: hsla(0,0%,100%,.9);
}

.outlineitem.selected {
  background-color: hsla(0,0%,100%,.08);
  background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
  background-clip: padding-box;
  box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
              0 0 1px hsla(0,0%,100%,.1) inset,
              0 0 1px hsla(0,0%,0%,.2);
  color: hsla(0,0%,100%,1);
}

.noresults {
  font-size: 12px;
  color: hsla(0,0%,100%,.8);
  font-style: italic;
  cursor: default;
}

/* todo: file ff bug to support ::-moz-selection:window-inactive
   so we can override the opaque grey background when the window is inactive;
   see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
::selection { background: rgba(0,0,255,0.3); }
::-moz-selection { background: rgba(0,0,255,0.3); }

#errorwrapper {
  background: none repeat scroll 0 0 #ff5555;
  color: white;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 1000;
  padding: 3px;
  font-size: 0.8em;
}
.loadinginprogress #errorwrapper {
  top: 37px;
}

#errormessageleft {
  float: left;
}

#errormessageright {
  float: right;
}

#errormoreinfo {
  background-color: #ffffff;
  color: black;
  padding: 3px;
  margin: 3px;
  width: 98%;
}

.overlaybutton {
  width: auto;
  margin: 3px 4px 2px 4px !important;
  padding: 2px 6px 3px 6px;
}

#overlaycontainer {
  display: table;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(0,0%,0%,.2);
  z-index: 40000;
}
#overlaycontainer > * {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#overlaycontainer > .container {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

#overlaycontainer > .container > .dialog {
  display: inline-block;
  padding: 15px;
  border-spacing: 4px;
  color: hsl(0,0%,85%);
  font-size: 12px;
  line-height: 14px;
  background-color: #474747; /* fallback */
  background-image: ,
                    linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
  box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
              inset 0 1px 1px hsla(0,0%,0%,.15),
              inset 0 -1px 0 hsla(0,0%,100%,.05),
              0 1px 0 hsla(0,0%,0%,.15),
              0 1px 1px hsla(0,0%,0%,.1);
  border: 1px solid hsla(0,0%,0%,.5);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.dialog > .row {
  display: table-row;
}

.dialog > .row > * {
  display: table-cell;
}

.dialog .toolbarfield {
  margin: 5px 0;
}

.dialog .separator {
  display: block;
  margin: 4px 0 4px 0;
  height: 1px;
  width: 100%;
  background-color: hsla(0,0%,0%,.5);
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
}

.dialog .buttonrow {
  text-align: center;
  vertical-align: middle;
}

#passwordoverlay > .dialog {
  text-align: center;
}
#passwordoverlay .toolbarfield {
  width: 200px;
}

#documentpropertiesoverlay > .dialog {
  text-align: left;
}
#documentpropertiesoverlay .row > * {
  min-width: 100px;
}
html[dir='ltr'] #documentpropertiesoverlay .row > * {
  text-align: left;
}
html[dir='rtl'] #documentpropertiesoverlay .row > * {
  text-align: right;
}
#documentpropertiesoverlay .row > span {
  width: 125px;
  word-wrap: break-word;
}
#documentpropertiesoverlay .row > p {
  max-width: 225px;
  word-wrap: break-word;
}
#documentpropertiesoverlay .buttonrow {
  margin-top: 10px;
}

.clearboth {
  clear: both;
}

.fileinput {
  background: white;
  color: black;
  margin-top: 5px;
  visibility: hidden;
  position: fixed;
  right: 0;
  top: 0;
}

#pdfbug {
  background: none repeat scroll 0 0 white;
  border: 1px solid #666666;
  position: fixed;
  top: 32px;
  right: 0;
  bottom: 0;
  font-size: 10px;
  padding: 0;
  width: 300px;
}
#pdfbug .controls {
    background:#eeeeee;
    border-bottom: 1px solid #666666;
    padding: 3px;
}
#pdfbug .panels {
  bottom: 0;
  left: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  right: 0;
  top: 27px;
}
#pdfbug button.active {
  font-weight: bold;
}
.debuggershowtext {
  background: none repeat scroll 0 0 yellow;
  color: blue;
}
.debuggerhidetext:hover {
  background: none repeat scroll 0 0 yellow;
}
#pdfbug .stats {
  font-family: courier;
  font-size: 10px;
  white-space: pre;
}
#pdfbug .stats .title {
    font-weight: bold;
}
#pdfbug table {
  font-size: 10px;
}

#viewer.textlayer-visible .textlayer > div,
#viewer.textlayer-hover .textlayer > div:hover {
  background-color: white;
  color: black;
}

#viewer.textlayer-shadow .textlayer > div {
  background-color: rgba(255,255,255, .6);
  color: black;
}

.grab-to-pan-grab {
  cursor: , move !important;
  cursor: -webkit-grab !important;
  cursor: -moz-grab !important;
  cursor: grab !important;
}
.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
  cursor: inherit !important;
}
.grab-to-pan-grab:active,
.grab-to-pan-grabbing {
  cursor: , move !important;
  cursor: -webkit-grabbing !important;
  cursor: -moz-grabbing !important;
  cursor: grabbing !important;

  position: fixed;
  background: transparent;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 50000; /* should be higher than anything else in pdf.js! */
}

@page {
  margin: 0;
}

#printcontainer {
  display: none;
}

@media screen and (min-resolution: 2dppx) {
  /* rules for retina screens */
  .toolbarbutton::before {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    top: -5px;
  }

  .secondarytoolbarbutton::before {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    top: -4px;
  }

  html[dir='ltr'] .toolbarbutton::before,
  html[dir='rtl'] .toolbarbutton::before {
    left: -1px;
  }

  html[dir='ltr'] .secondarytoolbarbutton::before {
    left: -2px;
  }
  html[dir='rtl'] .secondarytoolbarbutton::before {
    left: 186px;
  }

  .toolbarfield.pagenumber.visiblepageisloading,
  #findinput[data-status="pending"] {
    background-image: ;
    background-size: 16px 17px;
  }

  .dropdowntoolbarbutton {
    background:  no-repeat;
    background-size: 7px 16px;
  }

  html[dir='ltr'] .toolbarbutton#sidebartoggle::before {
    content: ;
  }
  html[dir='rtl'] .toolbarbutton#sidebartoggle::before {
    content: ;
  }

  html[dir='ltr'] .toolbarbutton#secondarytoolbartoggle::before {
    content: ;
  }
  html[dir='rtl'] .toolbarbutton#secondarytoolbartoggle::before {
    content: ;
  }

  html[dir='ltr'] .toolbarbutton.findprevious::before {
    content: ;
  }
  html[dir='rtl'] .toolbarbutton.findprevious::before {
    content: ;
  }

  html[dir='ltr'] .toolbarbutton.findnext::before {
    content: ;
  }
  html[dir='rtl'] .toolbarbutton.findnext::before {
    content: ;
  }

  html[dir='ltr'] .toolbarbutton.pageup::before {
    content: ;
  }
  html[dir='rtl'] .toolbarbutton.pageup::before {
    content: ;
  }

  html[dir='ltr'] .toolbarbutton.pagedown::before {
    content: ;
  }
  html[dir='rtl'] .toolbarbutton.pagedown::before {
    content: ;
  }

  .toolbarbutton.zoomin::before {
    content: ;
  }

  .toolbarbutton.zoomout::before {
    content: ;
  }

  .toolbarbutton.presentationmode::before,
  .secondarytoolbarbutton.presentationmode::before {
    content: ;
  }

  .toolbarbutton.print::before,
  .secondarytoolbarbutton.print::before {
    content: ;
  }

  .toolbarbutton.openfile::before,
  .secondarytoolbarbutton.openfile::before {
    content: ;
  }

  .toolbarbutton.download::before,
  .secondarytoolbarbutton.download::before {
    content: ;
  }

  .toolbarbutton.bookmark::before,
  .secondarytoolbarbutton.bookmark::before {
    content: ;
  }

  #viewthumbnail.toolbarbutton::before {
    content: ;
  }

  html[dir="ltr"] #viewoutline.toolbarbutton::before {
    content: ;
  }
  html[dir="rtl"] #viewoutline.toolbarbutton::before {
    content: ;
  }

  #viewattachments.toolbarbutton::before {
    content: ;
  }

  #viewfind.toolbarbutton::before {
    content: ;
  }

  .secondarytoolbarbutton.firstpage::before {
    content: ;
  }

  .secondarytoolbarbutton.lastpage::before {
    content: ;
  }

  .secondarytoolbarbutton.rotateccw::before {
    content: ;
  }

  .secondarytoolbarbutton.rotatecw::before {
    content: ;
  }

  .secondarytoolbarbutton.handtool::before {
    content: ;
  }

  .secondarytoolbarbutton.documentproperties::before {
    content: ;
  }
}

@media print {
  /* general rules for printing. */
  body {
    background: transparent none;
  }

  /* rules for browsers that don't support mozprintcallback. */
  #sidebarcontainer, #secondarytoolbar, .toolbar, #loadingbox, #errorwrapper, .textlayer {
    display: none;
  }
  #viewercontainer {
    overflow: visible;
  }

  #maincontainer, #viewercontainer, .page, .page canvas {
    position: static;
    padding: 0;
    margin: 0;
  }

  .page {
    float: left;
    display: none;
    border: none;
    box-shadow: none;
    background-clip: content-box;
    background-color: white;
  }

  .page[data-loaded] {
    display: block;
  }

  .fileinput {
    display: none;
  }

  /* rules for browsers that support mozprintcallback */
  body[data-mozprintcallback] #outercontainer {
    display: none;
  }
  body[data-mozprintcallback] #printcontainer {
    display: block;
  }
  /* wrapper around (scaled) print canvas elements */
  #printcontainer > div {
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
  }
  #printcontainer canvas {
    display: block;
  }
}

.visiblelargeview,
.visiblemediumview,
.visiblesmallview {
  display: none;
}

@media all and (max-width: 960px) {
  html[dir='ltr'] #outercontainer.sidebarmoving .outercenter,
  html[dir='ltr'] #outercontainer.sidebaropen .outercenter {
    float: left;
    left: 205px;
  }
  html[dir='rtl'] #outercontainer.sidebarmoving .outercenter,
  html[dir='rtl'] #outercontainer.sidebaropen .outercenter {
    float: right;
    right: 205px;
  }
}

@media all and (max-width: 900px) {
  .sidebaropen .hiddenlargeview {
    display: none;
  }
  .sidebaropen .visiblelargeview {
    display: inherit;
  }
}

@media all and (max-width: 860px) {
  .sidebaropen .hiddenmediumview {
    display: none;
  }
  .sidebaropen .visiblemediumview {
    display: inherit;
  }
}

@media all and (max-width: 770px) {
  #sidebarcontainer {
    top: 32px;
    z-index: 100;
  }
  .loadinginprogress #sidebarcontainer {
    top: 37px;
  }
  #sidebarcontent {
    top: 32px;
    background-color: hsla(0,0%,0%,.7);
  }

  html[dir='ltr'] #outercontainer.sidebaropen > #maincontainer {
    left: 0px;
  }
  html[dir='rtl'] #outercontainer.sidebaropen > #maincontainer {
    right: 0px;
  }

  html[dir='ltr'] .outercenter {
    float: left;
    left: 205px;
  }
  html[dir='rtl'] .outercenter {
    float: right;
    right: 205px;
  }

  #outercontainer .hiddenlargeview,
  #outercontainer .hiddenmediumview {
    display: inherit;
  }
  #outercontainer .visiblelargeview,
  #outercontainer .visiblemediumview {
    display: none;
  }
}

@media all and (max-width: 700px) {
  #outercontainer .hiddenlargeview {
    display: none;
  }
  #outercontainer .visiblelargeview {
    display: inherit;
  }
}

@media all and (max-width: 660px) {
  #outercontainer .hiddenmediumview {
    display: none;
  }
  #outercontainer .visiblemediumview {
    display: inherit;
  }
}

@media all and (max-width: 600px) {
  .hiddensmallview {
    display: none;
  }
  .visiblesmallview {
    display: inherit;
  }
  html[dir='ltr'] #outercontainer.sidebarmoving .outercenter,
  html[dir='ltr'] #outercontainer.sidebaropen .outercenter,
  html[dir='ltr'] .outercenter {
    left: 156px;
  }
  html[dir='rtl'] #outercontainer.sidebarmoving .outercenter,
  html[dir='rtl'] #outercontainer.sidebaropen .outercenter,
  html[dir='rtl'] .outercenter {
    right: 156px;
  }
  .toolbarbuttonspacer {
    width: 0;
  }
}

@media all and (max-width: 510px) {
  #scaleselectcontainer, #pagenumberlabel {
    display: none;
  }
}
