.charts {
  /* Reset some defaults to more sensible values */

  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
}
.content {
  position: relative;
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  width: 100%;
  height: 100%;
  max-width: 70%;
  max-height: 75%;
  display: flex;
  flex-flow: column nowrap;
  z-index: 1;
}

.fullscreen {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.1s;
  fill: var(--dark-grey);
}

.fullscreen:hover {
  transform: scale(1.1);
}

.controls {
  margin: 8px;
  border-radius: 8px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 10px;
  background-color: var(--blue);
  color: var(--white);
  padding: 4px;
}

.controls table {
  table-layout: fixed;
}

.controls .label {
  font-weight: bold;
  text-transform: uppercase;
  font-family: monospace;
  font-size: 14px;
  white-space: nowrap;
  padding: 0 6px;
  text-align: end;
  vertical-align: middle;
  position: relative;
  bottom: -0.1em; /* Slighly lower the font to match with the dropdown */
}

.controls .divider {
  height: 100%;
  width: 2px;
  background-color: #fff4;
  display: inline-block;
  transform: scaleY(0.8);
}

.controls select {
  width: 100%;
  border-radius: 0;
  border: none;
  outline: none;
  padding: 4px 8px;
  background-color: transparent;
  color: var(--white);
}

@media (max-width: 1000px) {
  .content {
    border-radius: 6px;
  }

  .controls {
    margin: 0;
    border-radius: 6px 6px 0 0;
    flex-flow: column nowrap;
    justify-content: center;
    gap: 0;
  }

  .controls .divider {
    display: none;
  }

  .controls .label {
    width: 50%;
  }
}

.charts {
  flex: 1;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.charts .layout {
  flex: 2;
}

.charts .legend {
  flex: 1;
}
