.verdeling {
  margin-top: 2rem;
}

.verdeling-table {
  border-color: transparent;
}

.verdeling-header,
.theme-row,
.indicator-row,
.indicator-row-container,
.indicator-row-container > .verdeling-indicator,
.verdeling-mutation,
.verdeling-position {
  display: flex;
  gap: 0 0.25rem;
}

.verdeling-th,
.verdeling-th-theme,
.verdeling-th-indicator,
.verdeling-theme-indicator {
  position: relative;
}

.verdeling-th-theme {
  flex: 0 0 220px;
}

.verdeling-th-indicator,
.verdeling-theme-indicator {
  flex: 0 0 260px;
}

.verdeling-theme-indicator {
  display: none;
}

.vl {
  position: absolute;
  border-left: 2px dashed #bdbcbc;
  margin-left: -1px;
  height: 750px;
  z-index: -1;
}

.indicator-row-container,
.verdeling-theme {
  margin-bottom: 0.3rem;
}

.verdeling-theme,
.indicator-row-container > .verdeling-indicator {
  padding: 0.25rem 0.75rem;
}

.indicator-row-container {
  width: 100%;
}

.verdeling-theme {
  flex: 0 0 220px;
}

.indicator-row-container > .verdeling-indicator {
  flex: 0 0 260px;
}

.indicator-row-container > svg,
.verdeling-totaal,
.verdeling-th {
  flex: 1;
}

.verdeling-th,
.verdeling-totaal {
  text-align: center;
}

.verdeling-totaal span {
  font-size: var(--font-size-small);
  padding-right: 0.15rem;
  width: 1.875rem;
  display: inline-block;
  text-align: right;
  white-space: nowrap;
}

.verdeling-totaal svg {
  width: 50px;
}

.verdeling-header {
  border-bottom: 1px solid black;
}

.theme-row {
  margin-top: 1.5rem;
}

.theme-row img {
  margin: -1rem 0.5rem -0.75rem -0.75rem;
  height: 2rem;
}

.small-line-height * {
  line-height: 0.9;
}

.small-line-height .verdeling-indicator {
  max-height: 22px;
}

.verdeling-indicator {
  background-color: #f5f5f5;
}

.verdeling-indicator-white {
  background-image: white;
  border: 1px solid #878787;
}

.verdeling-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.verdeling-legend-item {
  display: flex;
  max-width: 260px;
  margin-bottom: 0.5rem;
  padding-right: 1rem;
}

.verdeling-legend-visual,
.verdeling-legend-item > svg {
  border-radius: 0.5rem;
  margin-right: 0.75rem;
}

.verdeling-legend-visual {
  margin-top: 0.25rem;
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
}

.verdeling-legend-item > svg {
  width: 14px;
  min-width: 14px;
}

.verdeling:not(.selected),
.mutatie-waarde:not(.selected),
.trend-waarde:not(.selected) {
  display: none;
}

.mbw-view-select .view-item {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-medium);
  color: var(--cbs-dark-aqua);
  font-weight: bold;
  cursor: pointer;
}

.mbw-view-select .view-item.active span {
  border-bottom: 2px solid var(--cbs-dark-aqua);
}

.verd-datatable thead th {
  white-space: nowrap;
}

.verd-info-container {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  background-color: white;
  padding: 5px;
  border: 2px solid var(--cbs-gray);
  border-radius: 5px;
  z-index: 9999;
  opacity: 0;
  transition:
    top 0.3s,
    left 0.3s,
    opacity 0.3s;
}

.verd-info-text {
  display: none;
  font-size: 12px;
  max-width: 300px;
}

.verd-info-text.visible {
  display: block;
}

.verd-info-container.visible {
  opacity: 0.9;
}

.tooltip-title {
  font-size: 10.2px;
}

@media print, only screen and (max-width: 1150px) {
  .theme-row,
  .indicator-row {
    flex-flow: column wrap;
  }

  .indicator-row .verdeling-theme {
    display: none;
  }

  .radio-container {
    margin-top: 0;
  }

  .verdeling-th-indicator,
  .verdeling-th-theme {
    display: none;
  }

  .verdeling-theme {
    flex: 0;
  }

  .verdeling-theme-indicator {
    display: block;
  }

  .vl {
    height: 1000px;
  }
}

@media only screen and (max-width: 991.5px) {
  .verdeling {
    position: relative;
  }

  .verdeling::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 100%;
    pointer-events: none;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgb(255, 255, 255) 100%
    );
  }

  .verdeling-table {
    overflow-x: auto;
    display: block;
  }

  .verdeling-table-inner {
    width: max-content;
  }

  .verdeling-header {
    padding-right: 5rem;
  }

  .indicator-row-container {
    gap: 0;
  }

  .verdeling-header,
  .verdeling-th,
  .verdeling-theme-indicator,
  .indicator-row-container > .verdeling-indicator,
  .indicator-row-container > .verdeling-waarde-container,
  .indicator-row-container > .verdeling-totaal {
    display: inline-block;
    white-space: nowrap;
  }

  .verdeling-waarde-container,
  .verdeling-totaal {
    margin-left: 3.25px;
  }

  .verdeling-th,
  .indicator-row-container > .verdeling-indicator {
    white-space: wrap;
  }

  .theme-row,
  .indicator-row,
  .verdeling-indicator {
    display: block;
    white-space: nowrap;
  }

  .verdeling-subject {
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .verdeling-th,
  .indicator-row-container > svg,
  .verdeling-totaal {
    flex: none;
    width: 100px;
  }

  .verdeling-theme-indicator {
    width: 260px;
  }
}
