:root {
  --primary: #424C6F;
  --secondary: #f77e4b;
}

/* Footer/header */
#documentation-title {
  margin-left: 10%;
  margin-right: 10%;
}

#documentation-top-message {
  margin-left: 10%;
  text-align: justify;
  margin-right: 10%;
  margin-bottom: 20px;
}

#documentation-footer {
  margin: 20px 0;
}

/* Main view */
.doc-container {
  display: flex;
  margin: 0 100px;
}

#plz-select {
  text-align: left;
  min-height: 350px;
}

#display-doc {
  display: none;
}

/* Document list */
.file {
  margin: 15px;
}

.filters-dropdown-header {
  display: flex;
  justify-content: space-between;
}
.filters-dropdown-header a {
  display: inline-flex;
}

.doc-list {
  flex: 1;
  padding: 20px;
  min-height: 350px;
}
.doc-list .filtervalues {
  display: flex;
  margin-bottom: 10px;
}
.doc-list .filtervalues .filtervalues-item {
  margin-right: 20px;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 12px;
  display: inline-flex;
  font-size: small;
}
.doc-list .filtervalues .filtervalues-item .doc-chip-label {
  display: inline-flex;
}
.doc-list .section .title {
  padding: 5px 0;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.doc-list .section .docs {
  display: flex;
  flex-flow: row wrap;
  padding: 20px 10px;
}
.doc-list .section .document-tile {
  display: flex;
  align-items: start;
  border: 2px solid var(--primary);
  border-radius: 12px;
  margin: 10px;
  min-width: 160px;
  position: relative;
  min-height: 80px;
}
.doc-list .section .document-tile :hover {
  cursor: pointer;
  background-color: lightgrey;
  border-radius: 12px;
}
.doc-list .section .document-tile .doc-tile-text {
  font-size: small;
}
.doc-list .section .document-tile a {
  line-height: 1em;
  width: 100%;
  width: 200px;
  top: 0;
  left: 0;
  z-index: 1;
  background-image: none !important;
  transition: none !important;
  color: black !important;
}
.doc-list .section .document-tile a .doc-tile-text {
  font-weight: normal;
}
.doc-list #older {
  border-top: 1px solid var(--primary);
}
.doc-list #older .show-link, .doc-list #older .hide-link {
  vertical-align: sub;
}
.doc-list #older .docs .document-tile {
  background-color: lightgrey;
}
.doc-list #older .docs .document-tile :hover {
  background-color: #eee;
}

.document-type {
  font-weight: bold;
  padding-bottom: 5px;
  text-align: center;
  height: 28px;
  align-items: center;
  display: flex;
  justify-content: center;
}

#filters {
  display: flex;
  flex-direction: column;
}

/* Selects/dropdowns */
.filters {
  width: 200px;
  border-right: 1px solid transparent;
  border-right-color: transparent;
  border-right-color: rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.filter-drop {
  margin-bottom: 10px;
  background-color: var(--primary);
  height: 40px !important;
  border-radius: 7px;
  font-size: medium;
  color: white;
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg width="20px" height="20px" stroke-width="2.3" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="%23ffffff"><path d="M6 9L12 15L18 9" stroke="%23ffffff" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"></path></svg>') !important;
  cursor: pointer !important;
}

#filters-doctype {
  margin-top: 10px;
}

.chip-value {
  padding-left: 5px;
}

.select-box {
  position: relative;
  margin-bottom: 0;
}
.select-box select {
  width: 100% !important;
}

.over-select {
  position: absolute;
  /* disable csslint rule for next block because inset is not well supported by safari */
  /* stylelint-disable declaration-block-no-redundant-longhand-properties */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* stylelint-enable declaration-block-no-redundant-longhand-properties */
}

.filters-dropdown-content {
  display: none;
  border: 1px #dadada solid;
  border-radius: 7px;
  background-color: rgba(220, 220, 220, 0.5);
  box-shadow: 0.1em 0 0.4em gray;
  text-align: start;
  padding: 5px 25px;
}
.filters-dropdown-content .filters-dropdown-header {
  line-height: normal;
}
.filters-dropdown-content label {
  display: block;
  margin: 5px;
}
.filters-dropdown-content label :hover {
  background-color: #1e90ff;
}

.checkbox {
  display: inline-flex;
  align-items: center;
}

/* Tooltip text */
.document-tile .tooltiptext {
  visibility: hidden;
  width: 200px;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  margin-left: -100px;
  background-color: #555;
  z-index: 100;
}

.document-tile .tooltiptext::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #555;
}

.document-tile:hover .tooltiptext {
  visibility: visible;
}

.document-tile:hover .tooltiptext:hover {
  /* Hide tooltip when hovering it */
  visibility: hidden;
}