.dv-core-index {
  display: flex;
  align-items: center;

  &-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    &-inner {
      z-index: 1;
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: center;
      padding: $text-padding $content-padding-large;
      border-left: $border-width-large solid;
    }

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      content: '';
      background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    }

    &:not(last-child) {
      margin-right: $component-span-large;
    }

    @each $color in $screen-theme-colors {
      $i:index($screen-theme-colors, $color);
      $lighten-color: saturate($color, 100%);

      &:nth-child(#{$i}) {
        .dv-core-index-item-inner {
          border-color: $lighten-color;
        }

        .dv-core-index-value {
          color: $lighten-color;
        }

        &::after {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          content: '';
          background: -webkit-linear-gradient(left, rgba($color, 0.6), rgba($color, 0));
        }
      }
    }

    .dv-core-index-value {
      font-size: $font-size-largest;
      user-select: none;

      .dv-core-index-unit {
        margin-left: $text-padding;
        font-size: 60%;
        user-select: none;
      }
    }

    .dv-core-index-name {
      font-size: $font-size;
      color: $dv-dark-primary-text-color;
      user-select: none;
    }
  }
}