.kpi-widget--normal {
  height: 100%;
  padding: 32px 24px;
  position: relative;
  background-color: var(--kpi-background-color);
  border-radius: 4px;

  $top-percentage: 32px + 13.5px;

  &--percentage {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;

    background: linear-gradient(to right, transparent, var(--kpi-background-color));

    .percentage {
      --kpi-percentage-color: white;
      position: absolute;
      top: $top-percentage;
      right: 24px;
      padding: 3px 19px;
      border: 1px solid var(--kpi-percentage-color, #00ffd1);
      border-radius: 30px;
      height: fit-content;
      width: fit-content;
      color: var(--kpi-percentage-color, #00ffd1);
    }

    &.bottom-align {
      .percentage {
        top: unset;
        bottom: $top-percentage - 4px;
      }
    }
  }

  &--content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    &-icon {
      border-radius: 4px;
      height: 48px;
      width: 48px;
      background-color: var(--kpi-header-icon-background-color, #bee2ca);
      position: relative;

      img {
        position: absolute;
        top: 25%;
        left: 25%;
        height: 27px;
        width: 27px;
      }
    }
  }
}

.kpi-widget--style-6 {
  height: 100%;
  padding: 35px 26px;
  background: var(--kpi-background-color);
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  &--content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    div:last-child {
      display: flex;
      flex-direction: row;
      align-items: center;
    }
  }

  &--percentage {
    margin-left: 8px;

    .percentage {
      padding: 3px 19px;
      color: var(--percentage-text-color);
      border: 1px solid var(--percentage-text-color);
      border-radius: 30px;
    }
  }
}

.kpi-widget--style-6.no-icon {
  padding: 40px 30px;

  .kpi-widget--style-6--content {
    width: 100%;
    &--title {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
  }
}

.kpi-widget--style-7 {
  height: 100%;
  padding: 32px 24px;
  background: var(--kpi-background-color);
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  &--content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .kpi-widget--value {
      margin-bottom: 12px;
    }

    .kpi-widget--title:has(.kpi-widget--subtitle) {
      margin-bottom: 12px;
    }
  }

  .percentage {
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--percentage-text-color);

    div:first-child {
      margin-right: 8px;
    }

    .icon-percentage-decrease {
      color: #ff4c13;
    }

    .icon-percentage-increase {
      rotate: 270deg;
      color: #00ffd1;
    }
  }
}

.kpi-widget--style-9 {
  height: 100%;
  padding: 39px 24px;
  background: var(--kpi-background-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  &--header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .percentage {
      height: fit-content;
      padding: 3px 19px;
      color: var(--percentage-text-color);
      border: 1px solid var(--percentage-text-color);
      border-radius: 30px;
    }
  }

  .kpi-widget--title:has(.kpi-widget--subtitle) {
    margin-bottom: 12px;
  }
}

.kpi-widget--icon {
  border-radius: var(--border-shape, 4px);
  height: 48px;
  width: 48px;
  background: var(--shape-background);
  box-shadow: var(--shape-box-shadow);
  display: flex;
  align-items: center;
  justify-content: center;

  i {
    font-size: 32px;
  }
}
