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

  &.flex {
    .dv-core-index1-item {
      flex: 1;
    }
  }

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

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

      .dv-core-index1-item-main {
        display: flex;
        align-items: flex-end;
        line-height: 1;

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

        .dv-core-index1-item-value {
          margin-left: $text-padding;
          font-size: $font-size-huge;
          user-select: none;
          font-weight: bold;
        }

        .dv-core-index1-item-unit {
          font-size: $font-size;
          margin-left: $text-padding;
          user-select: none;
          color: $dv-dark-primary-text-color;
        }
      }

      .dv-core-index1-item-sub {
        display: flex;
        align-items: flex-end;
        margin-top: $component-span-large;

        .dv-core-index1-item-name {
          font-size: $font-size-small;
          color: $dv-dark-primary-text-color;
          user-select: none;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }

        .dv-core-index1-item-value {
          margin-left: $text-padding;
          font-size: $font-size-small;
          user-select: none;
          font-weight: bold;
        }

        .dv-core-index1-item-unit {
          font-size: $font-size-small;
          margin-left: $text-padding;
          user-select: none;
          color: $dv-dark-primary-text-color;
        }
      }
    }

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

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

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

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

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