@import '../../variables.scss';

.app-traffic-lights {
  display: inline-flex;
  flex-flow: row nowrap;
}

.app-traffic-lights_left {
  align-items: center;
  flex-flow: row;
  justify-content: flex-start;
}

.app-traffic-lights_right {
  align-items: center;
  flex-flow: row-reverse;
  justify-content: flex-start;
}

.app-traffic-lights_top {
  align-items: center;
  flex-flow: column;
  justify-content: center;
}

.app-traffic-lights_bottom {
  align-items: center;
  flex-flow: column-reverse;
  justify-content: center;
}

.app-traffic-lights__label {
  
}

.app-traffic-lights__value {
  background-color: $color-default;
  background-color: var(--color-default);
  border-radius: 50%;
  height: 1.2rem;
  width: 1.2rem;
}

.app-traffic-lights_left .app-traffic-lights__value {
  margin-right: 8px;
}

.app-traffic-lights_right .app-traffic-lights__value {
  margin-left: 8px;
}

.app-traffic-lights_top .app-traffic-lights__label,
.app-traffic-lights_bottom .app-traffic-lights__label {
  text-align: center;
}

.app-traffic-lights_top .app-traffic-lights__value {
  margin-bottom: 4px;
}

.app-traffic-lights_bottom .app-traffic-lights__value {
  margin-top: 4px;
}

.app-traffic-lights__value_normal {
  background-color: $color-success;
  background-color: var(--color-success);
}

.app-traffic-lights__value_deviation {
  background-color: $color-warn;
  background-color: var(--color-warn);
}

.app-traffic-lights__value_critical {
  background-color: $color-primary;
  background-color: var(--color-primary);
}
