.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, grid-columns(3, 6));
  grid-gap: $spacing--xl grid-gutter('s');
  row-gap: $spacing--s;

  .dashboard-card {
    border-radius: $border-radius--l;
    overflow: hidden;
    overflow-wrap: break-word;
    width: auto;

    &--top {
      @include font-style('body--m', 'title--xs');
    }

    &--middle {
      @include font-style('title--l', 'title--xl');
      overflow: hidden;
    }

    &--bottom {
      @include font-style('body--xs', 'body--m');
    }

    &--profile {
      z-index: 0;
    }

    &.cards__item {
      min-height: unset;
    }
  }

  @include viewport--l {
    grid-template-columns: repeat(4, grid-columns(3, 12));
    grid-gap: $spacing--xl grid-gutter('l');
  }

  @media only screen and (min-width: 941px) and (max-width: 1280px) {
    .dashboard-card--profile .dashboard-card--middle {
      margin: 25px 0;
    }
  }

  @include viewport--xl {
    .dashboard-card--profile {
      .dashboard-card--middle {
        //todo: delete when TW is live
        margin: 25px 0 10px;
      }

      .rating-readonly,
      .rating-readonly__icon--wrapper,
      .icon--filled {
        height: $spacing--m;
      }

      .rating-readonly.rating--m {
        .rating-readonly__icon--wrapper,
        .icon--filled:before {
          width: 160px;
        }
      }

      .icon--filled {
        background-size: 40px 30px;

        &:before {
          background-size: 40px 30px;
          width: 160px;
        }
      }

      .dashboard-card--bottom {
        //todo: delete when TW is live
        padding-top: $spacing--s;
      }
    }
  }
}

// background mappings
@include indicators-rating-readonly-background-mapping;
@include my-environment-bg-map;
