@import '../../../../scss/settings/color-variables.scss';

::ng-deep.widget-data {
  .card.todoList {
    .card-header {
      padding: 14px;
    }
    .btn {
      i {
        font-size: 16px;
      }
      svg {
        width: 16px;
        height: 16px;
      }
    }
  }

  .user-activity-card {
    .u-img {
      position: relative;

      .cover-img {
        width: 40px;
        height: 40px;
      }

      .profile-img {
        display: flex;
        position: absolute;
        min-width: 8px;
        padding: 0px;
        height: 8px;
        border-radius: 4px;
        z-index: 1;
        bottom: 14%;
        right: 14%;
        transform: scale(1) translate(50%, 50%);
        transform-origin: 100% 100%;
      }
    }
  }

  .latest-update-card {
    .card-body {
      padding-top: 0;

      .latest-update-box {
        position: relative;

        &:after {
          content: '';
          position: absolute;
          background: #ebebeb;
          height: 100%;
          width: 1px;
          top: 0;
          left: 88px;
          z-index: 1;
        }

        .update-meta {
          z-index: 2;
          display: flex;
          align-items: center;

          .update-icon {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-family: 'Public Sans', sans-serif;
            line-height: 1;
            border-radius: 50%;
            overflow: hidden;
            user-select: none;
            font-size: 1rem;
            width: 40px;
            height: 40px;
          }

          i.update-icon {
            margin-right: 4px;
          }
        }
      }
    }
  }

  .task-card {
    .card-body {
      position: relative;

      &:after {
        content: '';
        position: absolute;
        background: var(--bs-border-color);
        height: 90%;
        width: 2px;
        top: 10px;
        left: 36px;
        z-index: 1;
      }

      li {
        position: relative;

        .task-icon {
          border-radius: 50%;
          z-index: 2;
          font-size: 14px;
        }
      }
    }
  }

  .latest-posts-card {
    a {
      transition: all 0.3s ease-in-out;

      &:hover h6 {
        color: var(--bs-primary);
      }

      ~ p {
        font-size: 11px;
      }
    }

    .latest-posts-img {
      width: 90px;
      height: 80px;
    }
  }

  .latest-order {
    .btn i {
      font-size: 20px;
      svg {
        width: 20px;
        height: 20px;
      }
    }
  }

  .income-request {
    .request-details {
      padding: 12px 16px;

      &:hover {
        background: $gray-300;

        ::ng-deep.mantis-dark & {
          background: rgba(255, 255, 255, 0.08);
        }
      }

      .request-type {
        width: 12px;
        height: 12px;
        border-radius: 50%;
      }
    }
  }

  .revenue-list {
    .revenue-details {
      padding: 12px 16px;
      &:hover {
        background: $gray-300;

        ::ng-deep.mantis-dark & {
          background: rgba(255, 255, 255, 0.08);
        }
      }
    }
  }

  .new-customer-card {
    img {
      width: 40px;
    }

    .align-middle {
      position: relative;

      .status {
        position: absolute;
        right: 0;
        top: 19px;
        font-size: 13px;

        &.active {
          width: 10px;
          height: 10px;
          border-radius: 50%;
          background: var(--bs-success);
        }
      }
    }
  }

  .ticket-table {
    .ticket-status {
      display: inline-block;
      border: 1px solid rgba(140, 140, 140, 0.7);
      padding: 0px 8px;
      font-size: 13px;
    }
  }
}
