/* =========================================================
   THE CORTS FOUNDATION
   PDF VIEWER
   ========================================================= */


/* =========================================================
   KLEUREN
   ========================================================= */

:root {
  --corts-blue: #4d62bd;
  --corts-blue-dark: #2f467e;
  --corts-blue-button: #5067a5;
  --corts-blue-button-dark: #3d5390;
  --corts-blue-border: #34487e;

  --corts-light: #f5f6fa;
  --corts-border: #d2d6df;
  --corts-text: #333333;
  --corts-sidebar: #eef0f5;
}


/* =========================================================
   BASIS
   ========================================================= */

html,
body {
  font-family: Arial, Helvetica, sans-serif !important;
}

body {
  background: #e8eaf0 !important;
}


/* =========================================================
   HOOFD TOOLBAR
   ========================================================= */

#toolbarContainer {
  position: relative !important;

  min-height: 52px !important;
  height: 52px !important;

  box-sizing: border-box !important;

  background:
    linear-gradient(
      to bottom,
      #5067a5 0%,
      #3d5390 100%
    ) !important;

  border-bottom: 1px solid #34487e !important;

  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.20) !important;
}


/* =========================================================
   PDF.JS TOOLBAR
   ========================================================= */

#toolbarViewer {
  position: relative !important;

  width: 100% !important;
  min-width: 0 !important;

  height: 52px !important;
  min-height: 52px !important;

  box-sizing: border-box !important;
}


/* =========================================================
   THE CORTS FOUNDATION BRANDING
   ========================================================= */

#cortsViewerBrand {
  position: absolute !important;

  left: 0 !important;
  top: 0 !important;

  z-index: 20 !important;

  display: flex !important;

  align-items: center !important;

  width: 285px !important;
  height: 52px !important;

  box-sizing: border-box !important;

  padding: 0 12px !important;

  color: #ffffff !important;

  font-family: Arial, Helvetica, sans-serif !important;

  font-size: 12px !important;
  font-weight: 400 !important;

  line-height: 1 !important;

  white-space: nowrap !important;

  background: transparent !important;

  /*
   * De branding zelf mag geen PDF.js-knoppen
   * onderscheppen.
   */
  pointer-events: none !important;
}


/* Logo */

#cortsViewerBrand img {
  display: block !important;

  width: auto !important;
  height: 30px !important;

  margin: 0 10px 0 0 !important;

  flex: 0 0 auto !important;
}


/* Tekst */

#cortsViewerBrand span {
  display: block !important;

  padding-left: 10px !important;

  border-left: 1px solid rgba(255, 255, 255, 0.30) !important;

  color: rgba(255, 255, 255, 0.92) !important;

  font-size: 12px !important;
  font-weight: 400 !important;

  letter-spacing: 0.1px !important;
}


/* =========================================================
   RUIMTE VOOR DE PDF.JS LINKER KNOPPEN
   ========================================================= */

/*
 * De branding neemt 285px in beslag.
 * De PDF.js-knoppen beginnen daarna.
 */

#toolbarViewerLeft {
  margin-left: 285px !important;

  min-width: 0 !important;
}


/* =========================================================
   TOOLBAR KNOPPEN
   ========================================================= */

.toolbarButton {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;

  width: 32px !important;
  min-width: 32px !important;

  height: 40px !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  padding: 0 !important;

  color: #ffffff !important;

  border-radius: 4px !important;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease !important;
}


/* Hover */

.toolbarButton:hover,
.toolbarButton:focus-visible {
  background:
    linear-gradient(
      to bottom,
      #405694 0%,
      #30457d 100%
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}


/* Actieve knop */

.toolbarButton.toggled {
  background: #2f467e !important;
}


/* Uitgeschakelde knop */

.toolbarButton:disabled {
  opacity: 0.45 !important;
}


/* =========================================================
   PAGINANUMMER
   ========================================================= */

#pageNumber {
  box-sizing: border-box !important;

  width: 42px !important;
  min-width: 42px !important;

  height: 30px !important;

  margin-top: 0 !important;

  padding: 0 5px !important;

  border: 1px solid #c4c9d5 !important;

  border-radius: 4px !important;

  background: #ffffff !important;

  color: #333333 !important;

  font-family: Arial, Helvetica, sans-serif !important;

  text-align: center !important;
}


#numPages {
  color: #ffffff !important;

  line-height: 30px !important;

  white-space: nowrap !important;
}


/* =========================================================
   ZOOM SELECTOR
   ========================================================= */

#scaleSelect {
  box-sizing: border-box !important;

  height: 30px !important;

  margin-top: 0 !important;

  border: 1px solid #34487e !important;

  border-radius: 4px !important;

  background:
    linear-gradient(
      to bottom,
      #5067a5 0%,
      #3d5390 100%
    ) !important;

  color: #ffffff !important;
}


/* =========================================================
   TOOLBAR VELDEN
   ========================================================= */

.toolbarField,
.toolbarButton {
  vertical-align: middle !important;
}


/* =========================================================
   PDF WERKRUIMTE
   ========================================================= */

#viewerContainer {
  background:
    linear-gradient(
      to bottom,
      #f0f1f5 0%,
      #e4e6ec 100%
    ) !important;
}


/* =========================================================
   PDF PAGINA
   ========================================================= */

.pdfViewer .page {
  border: 1px solid #d2d6df !important;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.18) !important;
}


/* =========================================================
   LINKER SIDEBAR
   ========================================================= */

#sidebarContainer {
  width: 220px !important;

  background: #eef0f5 !important;

  border-right: 1px solid #d2d6df !important;
}


#sidebarContent {
  background: #eef0f5 !important;
}


#sidebarContent button {
  color: #2f467e !important;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.thumbnail {
  border-radius: 5px !important;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease !important;
}


.thumbnail:hover {
  background: rgba(77, 98, 189, 0.12) !important;
}


.thumbnail.selected {
  background: rgba(77, 98, 189, 0.20) !important;

  box-shadow:
    inset 4px 0 0 #4d62bd !important;
}


.thumbnailSelectionRing {
  border-radius: 5px !important;
}


/* =========================================================
   ZOEKVENSTER
   ========================================================= */

#findbar {
  background:
    linear-gradient(
      to bottom,
      #5067a5 0%,
      #3d5390 100%
    ) !important;

  border-bottom: 1px solid #34487e !important;

  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.20) !important;
}


#findInput {
  border: 1px solid #c4c9d5 !important;

  border-radius: 4px !important;

  background: #ffffff !important;

  color: #333333 !important;
}


/* =========================================================
   DIALOOGVENSTERS
   ========================================================= */

.dialog {
  border: 1px solid #d2d6df !important;

  border-radius: 7px !important;

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.22) !important;
}


/* =========================================================
   SECONDARY TOOLBAR / MENU
   ========================================================= */

#secondaryToolbar {
  background: #ffffff !important;

  border: 1px solid #d2d6df !important;

  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.18) !important;
}


#secondaryToolbar button {
  color: #333333 !important;

  border-radius: 4px !important;
}


#secondaryToolbar button:hover {
  background: #eef0f5 !important;

  color: #2f467e !important;
}


/* =========================================================
   SELECTIE
   ========================================================= */

::selection {
  background: rgba(77, 98, 189, 0.25);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  #cortsViewerBrand {
    width: 235px !important;

    padding-left: 10px !important;
    padding-right: 8px !important;
  }


  #cortsViewerBrand img {
    height: 28px !important;
  }


  #cortsViewerBrand span {
    font-size: 11px !important;

    padding-left: 8px !important;
  }


  #toolbarViewerLeft {
    margin-left: 235px !important;
  }
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 700px) {

  #toolbarContainer,
  #toolbarViewer {
    min-height: 50px !important;
    height: 50px !important;
  }


  /*
   * Alleen het logo tonen op kleine schermen.
   */

  #cortsViewerBrand {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    width: 48px !important;
    height: 50px !important;

    padding: 0 8px !important;

    justify-content: center !important;
  }


  #cortsViewerBrand img {
    height: 28px !important;

    margin: 0 !important;
  }


  #cortsViewerBrand span {
    display: none !important;
  }


  /*
   * Ruimte reserveren voor het logo.
   */

  #toolbarViewerLeft {
    margin-left: 48px !important;
  }


  .toolbarButton {
    width: 32px !important;

    min-width: 32px !important;
  }
}


/* =========================================================
   HEEL KLEINE TELEFOONS
   ========================================================= */

@media (max-width: 480px) {

  #cortsViewerBrand {
    width: 42px !important;

    padding-left: 5px !important;
    padding-right: 5px !important;
  }


  #cortsViewerBrand img {
    height: 25px !important;
  }


  #toolbarViewerLeft {
    margin-left: 42px !important;
  }
}


/* =========================================================
   SIDEBAR RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

  #sidebarContainer {
    width: 190px !important;
  }
}


@media (max-width: 600px) {

  #sidebarContainer {
    width: 170px !important;
  }


  .thumbnail {
    margin-left: 8px !important;

    margin-right: 8px !important;
  }
}
/* =========================================================
   PDF.JS SECONDARY TOOLBAR / DROPDOWN
   ========================================================= */

#secondaryToolbar {
  box-sizing: border-box !important;

  background: #ffffff !important;

  border: 1px solid #d2d6df !important;
  border-radius: 4px !important;

  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.18) !important;
}


/* Menu-items */

#secondaryToolbar .toolbarButton {
  display: flex !important;

  align-items: center !important;
  justify-content: flex-start !important;

  box-sizing: border-box !important;

  width: 100% !important;
  min-width: 0 !important;

  height: 20px !important;
  min-height: 20px !important;

  margin: 0 !important;
  padding: 0 10px !important;

  color: #333333 !important;

  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  font-size: 12px !important;
}


/* Hover */

#secondaryToolbar .toolbarButton:hover,
#secondaryToolbar .toolbarButton:focus {
  background: #eef0f5 !important;

  color: #2f467e !important;

  box-shadow: none !important;
}


/* Tekst */

#secondaryToolbar .toolbarButton > span {
  font-size: 12px !important;

  white-space: nowrap !important;
}


/* =========================================================
   BELANGRIJK:
   PDF.JS BEPAALT ZELF WANNEER HET MENU ZICHTBAAR IS.
   Geen display/visibility/opacity hier forceren.
   ========================================================= */
