/* Report Charts */
.ac-rp-line-chart,
.ac-rp-bar-chart,
.ac-rp-area-chart {
  position: absolute;

  .view-chart {
    margin-bottom: 15px;
    position: absolute;

    &:hover {
      .tooltip-line-chart {
        display: block;
      }
    }

    .tooltip-line-chart {
      display: none;
      position: absolute;
      z-index: 10;
    }

    .recharts-responsive-container {
      position: relative;
    }
  }
  .list-switch {
    &.two-col {
      &.vertical {
        .inner-col {
          &:last-child {
            margin-bottom: 0;
          }
          width: 100%;
          margin-right: 0;
          margin-bottom: 15px;
        }
        .title {
          margin-bottom: 5px;
          overflow: hidden;
          .name {
            cursor: default;
            font-weight: bold;
            float: left;
            text-align: left;
          }
        }
      }
      .inner-title {
        display: block;
      }
      .inner-col {
        float: left;
        width: 50%;
      }
      .inner-item {
        display: block;
      }
    }

    &.vertical {
      .inner-item {
        display: flex;
        padding-right: 0;
      }
    }
  }
  .inner-title {
    display: none;
    margin-bottom: 5px;
    overflow: hidden;
    .inner-name {
      gap: 10px;
      cursor: default;
      font-weight: bold;
      float: left;
      text-align: left;
      width: 50%;
      display: flex;
      align-items: center;
    }
  }
  .inner-col {
    &:before,
    &:after {
      content: '';
      display: table;
    }
    &:after {
      clear: both;
    }
  }
  .inner-item {
    display: inline-flex;
    align-items: center;
    padding: 5px 4% 5px 0;
    gap: 10px;
    .custom-switch {
      float: left;
      font-size: 0;
      margin-right: 5px;
    }
    .label-rounder {
      background-color: #ccc;
      border-radius: 50%;
      width: 13px;
      height: 13px;
      margin-right: 8px;
    }
  }
  .item-name {
    cursor: default;
    display: block;
    text-align: left;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .scrollbar {
    min-height: 20px;
    max-height: 100px;
    overflow-y: hidden;
    &:hover {
      overflow-y: overlay;
    }
  }
  .recharts-cartesian-axis-line {
    stroke: #f5f5f5;
  }
}

/* Report Charts Tooltip */
.ac-rp-tooltip-bar-chart,
.ac-rp-tooltip-area-chart,
.ac-rp-tooltip-line-chart {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  font-family: 'Roboto', serif;
  padding: 10px 10px;
  width: max-content;
  .date-name {
    margin-bottom: 5px;
  }
  .list-info {
    border-right: 1px solid #eee;
    margin-right: 15px;
    padding-right: 15px;
    min-width: 200px;
    max-width: 300px;
    &:last-child {
      border: 0 none;
      margin-right: 0;
      padding-right: 0;
    }
  }
  .sub-title {
    color: #666;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .inner-row {
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    padding: 5px 5px;
    &:last-child {
      border: 0 none;
    }
    .info-name {
      cursor: default;
      position: relative;
      padding-left: 18px;
      padding-right: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      .round {
        background-color: #aaa;
        border-radius: 50%;
        display: block;
        width: 10px;
        height: 10px;
        position: absolute;
        left: 0;
        top: 5px;
      }
    }
    .info-number {
      cursor: default;
      font-size: 13px;
      font-weight: bold;
    }
  }
}

/* Report PieChart */
.ac-rp-pie-chart {
  position: relative;

  .info-pie-chart {
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-family: 'Roboto', serif;
    padding: 5px 5px;
    margin-left: 10px;

    &.vertical {
      .inner-row {
        &:nth-child(odd) {
          padding-right: 5px;
        }

        display: flex;
        width: 100%;
      }
    }

    .list-info {
      margin-bottom: 20px;
      &:last-child {
        margin-bottom: 0;
      }
    }

    .inner-row {
      &:nth-child(odd) {
        padding-right: 10px;
      }
      display: inline-flex;
      width: 50%;
      justify-content: space-between;
      padding: 5px 5px;
      span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        &.info-name {
          cursor: default;
          width: calc(100% - 47px);
          position: relative;
          padding-right: 5px;
          .round {
            background-color: #aaa;
            border-radius: 50%;
            display: inline-block;
            width: 10px;
            height: 10px;
            margin-right: 5px;
          }
        }
        &.info-number {
          cursor: default;
          font-size: 13px;
          font-weight: bold;
          width: 47px;
          text-align: right;
        }
      }
    }

    .scrollbar {
      min-height: 20px;
      max-height: 100px;
      overflow-y: hidden;
      &:hover {
        overflow-y: overlay;
      }
    }
  }
}

/* Report Piechart Tooltip */
.ac-rp-tooltip-pie-chart {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
  display: inline-block;
  font-family: 'Roboto', serif;
  padding: 10px 10px;
  letter-spacing: 0.5px;
  max-width: 200px;
  .title {
    color: #666;
    font-size: 14px;
    text-align: left;
    margin-bottom: 3px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  span {
    display: block;
    text-align: left;
    &.line {
      background-color: #bdd630;
      width: 100%;
      height: 2px;
      margin-bottom: 5px;
    }
    &.number {
      color: #bdd630;
      font-size: 36px;
      font-weight: bold;
      line-height: 1.3;
      i {
        font-size: 24px;
        font-weight: bold;
        font-style: normal;
      }
    }
    &.name {
      color: #999;
      font-weight: bold;
      font-size: 16px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }
}
