/*========== Start Chart Style  ==========*/
/* Start Chart Heading */
.yoo-chart-heading {
  &.yoo-style1 {
    h3 {
      font-size: 36px;
      margin-bottom: 0;
      line-height: 1em;
      font-weight: 400;
    }

    p {
      font-size: 14px;
      margin-bottom: 0;
    }
  }

  &.yoo-style2 {
    display: flex;
    flex-wrap: wrap;
    padding: 3px 0;

    .yoo-chart-heading-in {
      &:not(:last-child) {
        margin-right: 30px;
      }
    }

    p {
      font-size: 12px;
      text-transform: uppercase;
      color: $base-color3;
      margin-bottom: 0;
      line-height: 1.45em;
    }

    h3 {
      font-size: 36px;
      margin-bottom: 0;
      font-weight: 400;
    }
  }

  &.yoo-style3 {
    padding: 3px 0;

    .yoo-chart-heading-in {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 2px;
      padding-top: 3px;
    }

    h3 {
      font-size: 18px;
      margin-right: 8px;
      margin-bottom: 0;
    }

    p {
      color: $base-color3;
      font-size: 14px;
      margin-bottom: -1px;
    }
  }

  &.yoo-style4 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;

    .yoo-chart-heading-in {
      display: flex;
      flex-wrap: wrap;

      >div {
        margin-right: 20px;
      }
    }

    .yoo-chart-heading-title,
    .yoo-chart-heading-number {
      span {
        display: block;
        color: $base-color3;
        line-height: 1.6em;
        font-size: 14px;
      }
    }

    .yoo-chart-heading-number {
      span {
        display: block;
        font-size: 14px;
        line-height: 1.6em;
        font-weight: 500;
        color: $base-color1;
      }
    }
  }
}

/* End Chart Heading */
// Start Chart Style

.yoo-chart-wrap.yoo-style1 {
  padding: 20px;
  padding-top: 30px;

  .yoo-chart-in {
    height: 299px;
    position: relative;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style2 {
  .yoo-chart-in {
    height: 76px;
    position: relative;
    border-bottom: 1.5px dashed $base-color4;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style3 {
  padding: 30px;

  .yoo-chart-inside {
    position: relative;
  }

  .yoo-chart-in {
    max-width: 229px;
    margin: auto;
    position: relative;
    z-index: 1;
  }

  .yoo-active-device {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;

    .yoo-active-device-per {
      font-size: 36px;
      color: $base-color1;
      position: relative;
      line-height: 1em;
      display: inline-block;

      span {
        font-size: 18px;
        color: $base-color2;
        position: absolute;
        top: -11px;
        right: -13px;
      }
    }

    .yoo-active-device-title {
      font-size: 12px;
      text-transform: uppercase;
      color: $base-color3;
      margin-top: 5px;
    }
  }

  &.yoo-type2 {
    .yoo-active-device {
      .yoo-active-device-per {
        font-size: 32px;

        span {
          font-size: 14px;
          top: -11px;
          right: -10px;
        }
      }

      .yoo-active-device-title {
        font-size: 10px;
        margin-top: 2px;
        line-height: 13px;
      }
    }

    .yoo-chart-in {
      max-width: 248px;
    }
  }
}

.yoo-circle-stroke.yoo-style1 {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  li {
    display: flex;
    align-items: center;
    margin-top: 5px;

    &:not(:last-child) {
      margin-right: 20px;
    }
  }

  .yoo-circle-color {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: block;
    margin-right: 8px;
  }

  &.yoo-type1 {
    .yoo-circle-color {
      height: 10px;
      width: 10px;
      border-radius: 2px;
    }
  }
}

.yoo-vertical-chart-wrap {
  overflow: hidden;
}

.yoo-vertical-chart-list {
  height: 305px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  padding-left: 32px;
  padding-top: 6px;
}

.yoo-vertical-chart-graph {
  width: 32px;
  position: absolute;
  left: 0;
  top: 0;
  height: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.yoo-graph-col {
  font-size: 13px;
  color: $base-color3;
  line-height: 11px;
  position: relative;
}

.yoo-graph-col:before {
  content: "";
  height: 1px;
  width: 10000px;
  position: absolute;
  background-color: $base-color4;
  left: 100%;
  top: 50%;
}

.yoo-vertical-chart {
  height: 100%;
  background-color: $main-color;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.yoo-vertical-chart-up {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin-right: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 21px;
  background-color: $main-color;
}

.yoo-vertical-chart-up:last-child {
  margin-right: 0;
}

.yoo-vertical-chart-wrap.yoo-style1 .yoo-vertical-chart-up:not(:last-child) {
  margin-right: 15px;
}

.yoo-vertical-chart-layer {
  width: 100%;
  background-color: $accent-color1;
}

.yoo-vertical-chart-wrap.yoo-style1 .yoo-vertical-chart-layer {
  background-color: $accent-color2;
}

.yoo-chart-label {
  text-align: center;
  position: absolute;
  white-space: nowrap;
  width: 100%;
  color: $base-color3;
  bottom: -4px;
  z-index: 1;
}

.yoo-chart-label-rotate .yoo-chart-label {
  transform: rotate(-45deg);
}

.yoo-vertical-chart-stroke {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  padding-left: 30px;
  margin-top: 15px;
}

.yoo-vertical-chart-stroke li {
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 14px;
}

.yoo-vertical-chart-stroke li:last-child {
  margin-right: 0;
}

.yoo-vertical-chart-stroke span {
  display: block;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: $accent-color1;
  margin-right: 8px;
}

.yoo-vertical-chart-wrap.yoo-style1 .yoo-vertical-chart-stroke span,
.yoo-vertical-chart-wrap.yoo-style2 .yoo-vertical-chart-stroke span {
  background: $accent-color2;
}

.yoo-vertical-chart-up-pair {
  height: 100%;
  flex: 1;
  margin-right: 30px;
  display: flex;
  position: relative;
  padding-bottom: 21px;
  flex-direction: row;
  align-items: flex-end;

  &:last-child {
    margin-right: 0;
  }

  .yoo-vertical-chart-up {
    height: 100%;
    padding-bottom: 0;
    margin-right: 0;
    margin-left: 5px;

    &:first-child {
      margin-left: 0;
    }
  }

  .yoo-vertical-chart-layer {
    height: 100% !important;
    width: 100%;
  }
}

.yoo-chart-wrap.yoo-style4 {
  padding: 25px 30px;
}

.yoo-chart-wrap.yoo-style5 {
  .yoo-chart-in {
    margin-left: -10px;
    margin-right: -5px;
    height: 163px;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style6 {
  .yoo-chart-in {
    margin-left: -10px;
    margin-right: -5px;
    height: 239px;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style7 {
  .yoo-chart-in {
    height: 40px;
    width: 100px;
  }

  canvas {
    height: 100% !important;
  }

  &.yoo-type1 {
    .yoo-chart-in {
      height: 34px;
    }
  }
}

.yoo-chart-wrap.yoo-style8 {
  position: relative;

  .yoo-chart-in {
    height: 221px;
    width: calc(100% + 8px);
    margin-left: -5px;
    // margin-bottom: -10px;
  }

  canvas {
    height: 100%;
  }
}

.yoo-chart-wrap.yoo-style9 {
  position: relative;
  padding-left: 25px;
  padding-right: 30px;

  .yoo-chart-in {
    height: 232px;
  }

  canvas {
    height: 100%;
  }
}

.yoo-chart-wrap.yoo-style10,
.yoo-chart-wrap.yoo-style11 {
  position: relative;
  padding-left: 25px;
  padding-right: 30px;

  .yoo-chart-in {
    height: 271px;
  }

  canvas {
    height: 100%;
  }
}

.yoo-chart-wrap.yoo-style10.yoo-type1 {
  .yoo-chart-in {
    height: 378px;
  }
}

.yoo-chart-wrap.yoo-style11 {
  padding-bottom: 20px;
  padding-top: 25px;

  .yoo-chart-in {
    height: 227px;
  }
}

.yoo-chart-wrap.yoo-style12 {
  width: 70px;

  .yoo-chart-in {
    height: 35px;
    width: 100px;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style13 {
  margin-top: 10px;

  .yoo-chart-in {
    height: 80px;
    width: 100%;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style14 {

  .yoo-chart-in {
    height: 275px;
    width: 100%;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style16 {

  .yoo-chart-in {
    height: 120px;
    width: 100%;
    max-width: 380px;
  }

  canvas {
    height: 100% !important;
  }
}

.yoo-chart-wrap.yoo-style17 {
  padding: 0 25px;

  .yoo-chart-in {
    height: 192px;
    width: 100%;
  }

  canvas {
    height: 100% !important;
  }
}


.yoo-chart-wrap.yoo-style15 {
  padding: 0 20px;

  .yoo-chart-in {
    height: 378px;
    width: 100%;
  }

  canvas {
    height: 100% !important;
  }
}

// Line Chart Stoke font-style:
.yoo-line-stroke.yoo-style1 {
  display: flex;
  align-items: center;

  li:not(:last-child) {
    margin-right: 20px;
  }

  .yoo-stroke-circle {
    display: inline-block;
    height: 12px;
    width: 12px;
    background-color: $accent-color1;
    border-radius: 50%;
    margin-right: 8px;
  }

  &.yoo-type1 {
    .yoo-stroke-circle {
      height: 10px;
      width: 10px;
      border-radius: 2px;
    }
  }
}


// funnel-chart
.yoo-funnel-chart-wrap.yoo-style1 {
  padding-left: 30px;
  padding-right: 30px;
}

.yoo-funnel-chart {
  width: 247px;
  height: 225px;
  margin: auto;
  position: relative;
  background: #7000ff;
  overflow: hidden;

  .yoo-funnel-structure-left,
  .yoo-funnel-structure-right {
    height: 115%;
    width: 47%;
    position: absolute;
    top: 0;
    background: $main-color;
    margin-top: 40px;
  }

  .yoo-funnel-structure-left {
    transform: skew(0deg, 55deg);
    left: -20px;
  }

  .yoo-funnel-structure-right {
    transform: skew(0deg, -55deg);
    right: -20px;
  }

  .yoo-funnel-structure-middle {
    position: absolute;
    height: 50px;
    width: 50%;
    bottom: -22px;
    left: 42%;
    transform: skew(-71deg, 0deg);
    background-color: $main-color;
  }
}

.yoo-funnel-chart {
  .yoo-vertical-chart-wrap {
    height: 100%;
  }

  .yoo-vertical-chart-list {
    height: 100%;
    padding-left: 0;
    padding-top: 0;
  }

  .yoo-vertical-chart-up {
    padding-bottom: 0;
  }
}

.yoo-chart-color1 {
  background-color: $accent-color2;
}

.yoo-chart-color2 {
  background-color: $accent-color2;
}

.yoo-chart-wrap.yoo-style1.yoo-type1 .yoo-chart-in {
  height: 218px;
}

.yoo-chart-wrap.yoo-style1.yoo-type1 {
  padding: 0;
}
/*========== End Chart Style  ==========*/
