.doughnut {
  display: inline-block;
  position: relative;

  .button {
    &--plain {
      cursor: default;
    }
  }

  &--checkable {
    .button {
      &--plain {
        cursor: pointer;
      }
    }
  }

  &__main {
    $savedpath: &;

    @at-root {
      .doughnut {
        &--big {
          & #{$savedpath} {
            @extend .float--left;
            height: 100%;
            position: relative;
            text-align: center;
          }
        }
      }
    }
  }

  &--big {
    @extend .float--left;
    font-weight: normal;
    margin-bottom: 15px;
    margin-top: 15px;
    padding: 40px 0 0 10px;
  }

  &__chart {
    max-width: 100%;
    height: auto !important;

    $savedpath: &;

    @at-root {
      .doughnut {
        &--big {
          & #{$savedpath} {
            display: inline-block;
          }
        }
      }
    }
  }

  &__legend {
    @extend %text-size--13;
    font-weight: normal;
    color: $color-stone-grey;
    padding: 45px 0 0 15px;

    &__color {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-bottom: 1px;
    }

    &__label {
      margin-bottom: 10px;
      font-weight: normal;
    }
  }

  &__data {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    width: 100%;

    div {
      margin: 0;
    }

    .flag {
      height: 100%;
    }

    &__title {
      font-weight: bold;
      color: $color-graphite-black;

      $savedpath: &;

      @at-root {
        .doughnut {
          &--big {
            & #{$savedpath} {
              font-size: 25px;
            }
          }
        }
      }
    }

    &__block {
      display: none;

      &:first-child {
        display: block;
      }
    }
  }

  &__label {
    position: absolute;
    bottom: -15px;
    width: 100%;
  }
}



.line-chart {
  clear: both;
  width: 100%;
  height: 300px;
  margin-top: $base-spacing-unit;


  #flotTip {
    border: 1px solid $color-telenor-blue-dark;
    border-radius: 2px;
    background-clip: padding-box;
    background-color: $color-telenor-blue;
    background-image: linear-gradient(to bottom, $color-telenor-blue-dark 0%, $color-telenor-blue 100%);
    color: $color-white;
    font-family: Arial;
    font-size: 13px;
    font-weight: normal;
    padding: 10px 15px;
    text-align: center;
    z-index: 999;
  }

  .tooltip {
    &__date {
      font-size: 11px;
      margin-bottom: 5px;
    }
  }

  .flot-tick-label {
    color: $color-blue-white;
    font-family: Arial;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
  }

  .axisLabels {
    color: $color-white !important;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
  }

  .xaxisLabel {
    margin-top: -15px;
  }

  .yaxisLabel {
    background-color: $color-telenor-blue;
    left: auto !important;
    padding: 0 0 5px 5px;
    right: 0;
    transform: translate(0, 0) rotate(0) !important;
  }

  .flot-x-axis {
    .flot-tick-label {
      display: none;
      margin-top: 10px;

      &:first-child,
      &:last-child {
        display: block;
      }
    }
  }
}
