/*!
  *  Copyright (C) 2020 Robert Bosch GmbH Copyright (C) 2020 Robert Bosch Manufacturing Solutions GmbH, Germany. All rights reserved.
 */

@import '@bci-web-core/common-styles/sass/bci/bci-variables';

:host {
  display: block;
  height: 100%;
  width: 100%;

  svg {
    height: 100%;
    width: 100%;
  }
}

#gauge {
  transition: stroke 2s ease;
}

path {
  fill: none;
  stroke-width: 32;

  &.track {
    stroke: $boschGray95;
  }

  &.indicator {
    stroke: $boschGray80;
  }

  &.inverted {
    stroke: $boschWhite;
  }

  &.target-value-indicator {
    stroke-width: 50;
  }
}

.label {
  text-anchor: middle;
  fill: $boschGray40;
  font-family: $font-family-sans;
  font-size: 16px;
}

.digit {
  text-anchor: middle;
  fill: $boschBlack;
  font-family: $font-family-sans;
  font-size: 60px;

  .unknown {
    fill: $boschBlack;
  }

  .warn {
    fill: $boschSignalYellow;
  }

  .error {
    fill: $boschRed50;
  }

  .ok {
    fill: $boschSignalGreen;
  }
}
