.footer {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: $smallFontSize;
}

.legendItem {
  display: flex;
  margin-bottom: 4px;
  line-height: 16px;
}

.legendItemColor {
  margin-right: 8px;
  width: 30px;
  height: 16px;
  border-radius: 4px;
}

.queue {
  composes: legendItemColor;

  background-color: var(--queueColor);
}

.continuing {
  composes: legendItemColor;

  background-color: var(--primaryColor);
}

.availNotMonitored {
  composes: legendItemColor;

  background-color: var(--darkGray);
}

.ended {
  composes: legendItemColor;

  background-color: var(--successColor);
}

.missingMonitored {
  composes: legendItemColor;

  background-color: var(--dangerColor);

  &:global(.colorImpaired) {
    background: repeating-linear-gradient(90deg, var(--dangerColor), var(--dangerColor) 5px, var(--dangerColor) 5px, var(--dimColor) 10px);
  }
}

.missingUnmonitored {
  composes: legendItemColor;

  background-color: var(--warningColor);

  &:global(.colorImpaired) {
    background: repeating-linear-gradient(45deg, var(--warningColor), var(--warningColor) 5px, var(--warningColor) 5px, var(--dimColor) 10px);
  }
}

.statistics {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: $breakpointLarge) {
  .statistics {
    display: block;
  }
}

@media (max-width: $breakpointSmall) {
  .footer {
    display: block;
  }

  .statistics {
    display: flex;
    margin-top: 20px;
  }
}
