﻿/* Custom style for Web Access*/

body {
    background-color: #FAFAFA;
    background-image: none;
}

#toolbarContainer, .findbar, .secondaryToolbar {
    background-color: #FAFAFA;
    border-bottom: 1px solid #ccc;
    background-image: none;
}

.toolbarLabel {
    color: #202020;
}

.toolbarButton,
.dropdownToolbarButton,
.secondaryToolbarButton,
.overlayButton {
    color: #202020;
}

.toolbarField {
    color: #202020;
}

.dropdownToolbarButton > select {
    color: #202020;
}

.dropdownToolbarButton > select > option {
    background: #FAFAFA;
}

.toolbarButton:hover:active,
.overlayButton:hover:active,
.dropdownToolbarButton:hover:active,
.secondaryToolbarButton:hover:active {
    background-color: #FAFAFA;
}

.splitToolbarButton:hover > .toolbarButton,
.splitToolbarButton:focus > .toolbarButton,
.splitToolbarButton.toggled > .toolbarButton,
.toolbarButton.textButton {
    background-color: #e5e5e5;
}

.splitToolbarButton > .toolbarButton:hover,
.splitToolbarButton > .toolbarButton:focus,
.dropdownToolbarButton:hover,
.overlayButton:hover,
.overlayButton:focus,
.toolbarButton.textButton:hover,
.toolbarButton.textButton:focus {
    background-color: #ddd;
}

.toolbarButton:hover,
.toolbarButton:focus,
.dropdownToolbarButton,
.overlayButton,
.secondaryToolbarButton:hover,
.secondaryToolbarButton:focus {
  background-color: #e5e5e5;
  background-image: none;
}

#loadingBar {
    background-color: #FAFAFA;
}

#loadingBar .progress {
    background-color: #ccc;
}

.pdfViewer .page {
    margin: 4px auto 8px auto !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border-image: none;
    background-color: white;
}

/* Hide side bar command*/
#sidebarContainer #toolbarSidebar{
    display: none !important;
}
#sidebarContainer #sidebarContent {
    top: 0 !important;
}

/* Hide top right command*/
#openFile {
    display: none !important;
}
#print {
  display: none !important;
}
#download {
    display: none !important;
}
#viewBookmark {
    display: none !important;
}
#toolbarViewerRight .verticalToolbarSeparator {
    display: none !important;
}

/* Hide commands in right dropdown */
#secondaryOpenFile {
    display: none !important;
}
#secondaryPrint {
  display: none !important;
}
#secondaryDownload {
    display: none !important;
}
#secondaryViewBookmark {
    display: none !important;
}
#secondaryToolbarButtonContainer .horizontalToolbarSeparator.visibleLargeView {
    display: none !important;
}

.dropdownToolbarButton {
  background: url(images/pdfviewer/toolbarButton-menuArrows_inverted.png) no-repeat;
}

html[dir='ltr'] .toolbarButton#sidebarToggle::before {
  content: url(images/pdfviewer/toolbarButton-sidebarToggle_inverted.png);
}
html[dir='rtl'] .toolbarButton#sidebarToggle::before {
  content: url(images/pdfviewer/toolbarButton-sidebarToggle-rtl_inverted.png);
}

html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
  content: url(images/pdfviewer/toolbarButton-secondaryToolbarToggle_inverted.png);
}
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
  content: url(images/pdfviewer/toolbarButton-secondaryToolbarToggle-rtl_inverted.png);
}

html[dir='ltr'] .toolbarButton.findPrevious::before {
  content: url(images/pdfviewer/findbarButton-previous_inverted.png);
}
html[dir='rtl'] .toolbarButton.findPrevious::before {
  content: url(images/pdfviewer/findbarButton-previous-rtl_inverted.png);
}

html[dir='ltr'] .toolbarButton.findNext::before {
  content: url(images/pdfviewer/findbarButton-next_inverted.png);
}
html[dir='rtl'] .toolbarButton.findNext::before {
  content: url(images/pdfviewer/findbarButton-next-rtl_inverted.png);
}

html[dir='ltr'] .toolbarButton.pageUp::before {
  content: url(images/pdfviewer/toolbarButton-pageUp_inverted.png);
}
html[dir='rtl'] .toolbarButton.pageUp::before {
  content: url(images/pdfviewer/toolbarButton-pageUp-rtl_inverted.png);
}

html[dir='ltr'] .toolbarButton.pageDown::before {
  content: url(images/pdfviewer/toolbarButton-pageDown_inverted.png);
}
html[dir='rtl'] .toolbarButton.pageDown::before {
  content: url(images/pdfviewer/toolbarButton-pageDown-rtl_inverted.png);
}

.toolbarButton.zoomOut::before {
  content: url(images/pdfviewer/toolbarButton-zoomOut_inverted.png);
}

.toolbarButton.zoomIn::before {
  content: url(images/pdfviewer/toolbarButton-zoomIn_inverted.png);
}

.toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before {
  content: url(images/pdfviewer/toolbarButton-presentationMode_inverted.png);
}

.toolbarButton.print::before,
.secondaryToolbarButton.print::before {
  content: url(images/pdfviewer/toolbarButton-print_inverted.png);
}

.toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before {
  content: url(images/pdfviewer/toolbarButton-openFile_inverted.png);
}

.toolbarButton.download::before,
.secondaryToolbarButton.download::before {
  content: url(images/pdfviewer/toolbarButton-download_inverted.png);
}


.toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before {
  content: url(images/pdfviewer/toolbarButton-bookmark_inverted.png);
}

#viewThumbnail.toolbarButton::before {
  content: url(images/pdfviewer/toolbarButton-viewThumbnail_inverted.png);
}

html[dir="ltr"] #viewOutline.toolbarButton::before {
  content: url(images/pdfviewer/toolbarButton-viewOutline_inverted.png);
}
html[dir="rtl"] #viewOutline.toolbarButton::before {
  content: url(images/pdfviewer/toolbarButton-viewOutline-rtl_inverted.png);
}

#viewAttachments.toolbarButton::before {
  content: url(images/pdfviewer/toolbarButton-viewAttachments_inverted.png);
}

#viewFind.toolbarButton::before {
  content: url(images/pdfviewer/toolbarButton-search_inverted.png);
}


.secondaryToolbarButton.firstPage::before {
  content: url(images/pdfviewer/secondaryToolbarButton-firstPage_inverted.png);
}

.secondaryToolbarButton.lastPage::before {
  content: url(images/pdfviewer/secondaryToolbarButton-lastPage_inverted.png);
}

.secondaryToolbarButton.rotateCcw::before {
  content: url(images/pdfviewer/secondaryToolbarButton-rotateCcw_inverted.png);
}

.secondaryToolbarButton.rotateCw::before {
  content: url(images/pdfviewer/secondaryToolbarButton-rotateCw_inverted.png);
}

.secondaryToolbarButton.handTool::before {
  content: url(images/pdfviewer/secondaryToolbarButton-handTool_inverted.png);
}

.secondaryToolbarButton.documentProperties::before {
  content: url(images/pdfviewer/secondaryToolbarButton-documentProperties_inverted.png);
}

.toolbarField.pageNumber.visiblePageIsLoading {
  background-image: url(images/pdfviewer/loading-small_inverted.png);
}

.outlineItemToggler::before {
  content: url(images/pdfviewer/treeitem-expanded_inverted.png);
}
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
  content: url(images/pdfviewer/treeitem-collapsed_inverted.png);
}
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
  content: url(images/pdfviewer/treeitem-collapsed-rtl_inverted.png);
}

@media screen and (min-resolution: 2dppx) {
    .toolbarField.pageNumber.visiblePageIsLoading,
    #findInput[data-status="pending"] {
        background-image: url(images/pdfviewer/loading-small@2x_inverted.png);
    }

    .dropdownToolbarButton {
        background: url(images/pdfviewer/toolbarButton-menuArrows@2x_inverted.png) no-repeat;
    }

    html[dir='ltr'] .toolbarButton#sidebarToggle::before {
        content: url(images/pdfviewer/toolbarButton-sidebarToggle@2x_inverted.png);
    }

    html[dir='rtl'] .toolbarButton#sidebarToggle::before {
        content: url(images/pdfviewer/toolbarButton-sidebarToggle-rtl@2x_inverted.png);
    }

    html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
        content: url(images/pdfviewer/toolbarButton-secondaryToolbarToggle@2x_inverted.png);
    }

    html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
        content: url(images/pdfviewer/toolbarButton-secondaryToolbarToggle-rtl@2x_inverted.png);
    }

    html[dir='ltr'] .toolbarButton.findPrevious::before {
        content: url(images/pdfviewer/findbarButton-previous@2x_inverted.png);
    }

    html[dir='rtl'] .toolbarButton.findPrevious::before {
        content: url(images/pdfviewer/findbarButton-previous-rtl@2x_inverted.png);
    }

    html[dir='ltr'] .toolbarButton.findNext::before {
        content: url(images/pdfviewer/findbarButton-next@2x_inverted.png);
    }

    html[dir='rtl'] .toolbarButton.findNext::before {
        content: url(images/pdfviewer/findbarButton-next-rtl@2x_inverted.png);
    }

    html[dir='ltr'] .toolbarButton.pageUp::before {
        content: url(images/pdfviewer/toolbarButton-pageUp@2x_inverted.png);
    }

    html[dir='rtl'] .toolbarButton.pageUp::before {
        content: url(images/pdfviewer/toolbarButton-pageUp-rtl@2x_inverted.png);
    }

    html[dir='ltr'] .toolbarButton.pageDown::before {
        content: url(images/pdfviewer/toolbarButton-pageDown@2x_inverted.png);
    }

    html[dir='rtl'] .toolbarButton.pageDown::before {
        content: url(images/pdfviewer/toolbarButton-pageDown-rtl@2x_inverted.png);
    }

    .toolbarButton.zoomIn::before {
        content: url(images/pdfviewer/toolbarButton-zoomIn@2x_inverted.png);
    }

    .toolbarButton.zoomOut::before {
        content: url(images/pdfviewer/toolbarButton-zoomOut@2x_inverted.png);
    }

    .toolbarButton.presentationMode::before,
    .secondaryToolbarButton.presentationMode::before {
        content: url(images/pdfviewer/toolbarButton-presentationMode@2x_inverted.png);
    }

    .toolbarButton.print::before,
    .secondaryToolbarButton.print::before {
        content: url(images/pdfviewer/toolbarButton-print@2x_inverted.png);
    }

    .toolbarButton.openFile::before,
    .secondaryToolbarButton.openFile::before {
        content: url(images/pdfviewer/toolbarButton-openFile@2x_inverted.png);
    }

    .toolbarButton.download::before,
    .secondaryToolbarButton.download::before {
        content: url(images/pdfviewer/toolbarButton-download@2x_inverted.png);
    }

    .toolbarButton.bookmark::before,
    .secondaryToolbarButton.bookmark::before {
        content: url(images/pdfviewer/toolbarButton-bookmark@2x_inverted.png);
    }

    #viewThumbnail.toolbarButton::before {
        content: url(images/pdfviewer/toolbarButton-viewThumbnail@2x_inverted.png);
    }

    html[dir="ltr"] #viewOutline.toolbarButton::before {
        content: url(images/pdfviewer/toolbarButton-viewOutline@2x_inverted.png);
    }

    html[dir="rtl"] #viewOutline.toolbarButton::before {
        content: url(images/pdfviewer/toolbarButton-viewOutline-rtl@2x_inverted.png);
    }

    #viewAttachments.toolbarButton::before {
        content: url(images/pdfviewer/toolbarButton-viewAttachments@2x_inverted.png);
    }

    #viewFind.toolbarButton::before {
        content: url(images/pdfviewer/toolbarButton-search@2x_inverted.png);
    }

    .secondaryToolbarButton.firstPage::before {
        content: url(images/pdfviewer/secondaryToolbarButton-firstPage@2x_inverted.png);
    }

    .secondaryToolbarButton.lastPage::before {
        content: url(images/pdfviewer/secondaryToolbarButton-lastPage@2x_inverted.png);
    }

    .secondaryToolbarButton.rotateCcw::before {
        content: url(images/pdfviewer/secondaryToolbarButton-rotateCcw@2x_inverted.png);
    }

    .secondaryToolbarButton.rotateCw::before {
        content: url(images/pdfviewer/secondaryToolbarButton-rotateCw@2x_inverted.png);
    }

    .secondaryToolbarButton.handTool::before {
        content: url(images/pdfviewer/secondaryToolbarButton-handTool@2x_inverted.png);
    }

    .secondaryToolbarButton.documentProperties::before {
        content: url(images/pdfviewer/secondaryToolbarButton-documentProperties@2x_inverted.png);
    }

    .outlineItemToggler::before {
        content: url(images/pdfviewer/treeitem-expanded@2x_inverted.png);
    }

    html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
        content: url(images/pdfviewer/treeitem-collapsed@2x_inverted.png);
    }

    html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
        content: url(images/pdfviewer/treeitem-collapsed-rtl@2x_inverted.png);
    }
}

#overlayContainer {
  background-color: #7D7D7D;
}

#overlayContainer > .container > .dialog {
  color: #202020;
  background-color: #FAFAFA; /* fallback */
  background-image: none;
}


/* Stuff hidden in preview pane */

.previewPanePdfViewer #viewFind {
    display: none !important;
}

.previewPanePdfViewer .firstLastPageSeparator {
    display: none !important;
}

.previewPanePdfViewer #firstPage {
    display: none !important;
}

.previewPanePdfViewer #lastPage {
    display: none !important;
}

.previewPanePdfViewer .pdfRotateSeparator {
    display: none !important;
}

.previewPanePdfViewer #pageRotateCw {
    display: none !important;
}

.previewPanePdfViewer #pageRotateCcw {
    display: none !important;
}

.previewPanePdfViewer .pdfDocumentHandToolSeparator {
    display: none !important;
}

.previewPanePdfViewer .pdfDocumentPropertiesSeparator {
    display: none !important;
}

.previewPanePdfViewer #documentProperties {
    display: none !important;
}

/* Stuff hidden in import dialog preview */

.importDialogPdfViewer #toolbarViewerLeft {
    display: none !important;
    width: 0;
}

/* Don't remove the zoom dropdown when the width gets too small*/
@media all and (max-width: 510px) {
  .importDialogPdfViewer #scaleSelectContainer {
    display: inline-block;
  }
}

html[dir="ltr"] .importDialogPdfViewer .innerCenter {
    left: 0 !important;
    position: absolute;
}

html[dir="rtl"] .importDialogPdfViewer .innerCenter {
    right: 0 !important;
    position: absolute;
}

html[dir="ltr"] .importDialogPdfViewer .outerCenter {
    left: 0 !important;
    position: absolute;
}

html[dir="rtl"] .importDialogPdfViewer .outerCenter {
    right: 0 !important;
    position: absolute;
}

.importDialogPdfViewer #sidebarToggle {
    display: none !important;
}

.importDialogPdfViewer #previous {
    display: none !important;
}

.importDialogPdfViewer #next {
    display: none !important;
}

.importDialogPdfViewer #pageNumberLabel {
    display: none !important;
}

.importDialogPdfViewer #pageNumber {
    display: none !important;
}

.importDialogPdfViewer #numPages {
    display: none !important;
}

.importDialogPdfViewer .firstLastPageSeparator {
    display: none !important;
}

.importDialogPdfViewer #firstPage {
    display: none !important;
}

.importDialogPdfViewer #lastPage {
    display: none !important;
}

.importDialogPdfViewer .pdfRotateSeparator {
    display: none !important;
}

.importDialogPdfViewer #pageRotateCw {
    display: none !important;
}

.importDialogPdfViewer #pageRotateCcw {
    display: none !important;
}

.importDialogPdfViewer .pdfDocumentHandToolSeparator {
    display: none !important;
}

.importDialogPdfViewer .pdfDocumentPropertiesSeparator {
    display: none !important;
}

.importDialogPdfViewer #documentProperties {
    display: none !important;
}

/* Stuff hidden in doc viewer */

.docViewPdfViewer .pdfRotateSeparator {
    display: none !important;
}

.docViewPdfViewer #firstPage {
    display: none !important;
}

.docViewPdfViewer #lastPage {
    display: none !important;
}