/*
    ========================
        Recent Activities
    ========================
*/

.widget-activity-four {
  padding-right: 0;
  padding-left: 0;

  .widget-heading {
    margin-bottom: 28px;
    padding: 0 20px;

    .w-icon {
      position: absolute;
      right: 20px;
      top: 15px;

      a {
        padding: 6px;
        border-radius: 10px;
        padding: 6px;
        background: #c7e6e4 !important;
        border: none;
        -webkit-transform: translateY(0);
        transform: translateY(0);

        svg {
          color: $m-color_14;
        }
      }
    }
  }

  .mt-container {
    position: relative;
    height: 326px;
    overflow: auto;
    padding-right: 12px;
  }

  .widget-content {
    padding: 0 8px 0 20px;
  }

  .timeline-line .item-timeline {
    display: flex;
    width: 100%;
    padding: 8px 0;
    transition: .5s;
    position: relative;
    border-radius: 6px;
    cursor: pointer;

    .t-dot {
      position: relative;

      &:before {
        content: '';
        position: absolute;
        border-color: inherit;
        border-radius: 50%;
        width: 6px;
        height: 6px;
        top: 7px;
        left: 5px;
        transform: translateX(-50%);
        border-color: $m-color_3;
        background: $m-color_4;
        z-index: 1;
      }

      &:after {
        position: absolute;
        border-color: inherit;
        border-width: 1px;
        border-style: solid;
        border-radius: 50%;
        width: 10px;
        height: 10px;
        left: 5px;
        transform: translateX(-50%);
        border-color: $m-color_3;
        width: 0;
        height: auto;
        top: 12px;
        bottom: -19px;
        border-right-width: 0;
        border-top-width: 0;
        border-bottom-width: 0;
        border-radius: 0;
      }
    }

    &.timeline-primary .t-dot:before {
      background: $l-primary;
      border: 2px solid rgba(27, 85, 226, 0.33);
    }

    &.timeline-success .t-dot:before {
      background-color: $l-success;
      border: 2px solid rgb(154, 210, 205);
    }

    &.timeline-danger .t-dot:before {
      background-color: $l-danger;
      border: 2px solid rgb(241, 172, 176);
    }

    &.timeline-dark .t-dot:before {
      background-color: $l-dark;
      border: 2px solid rgb(159, 163, 187);
    }

    &.timeline-secondary .t-dot:before {
      background: $l-secondary;
      border: 2px solid rgba(92, 26, 195, 0.35);
    }

    &.timeline-warning .t-dot:before {
      background-color: $l-warning;
      border: 2px solid rgb(222, 199, 165);
    }

    &:last-child .t-dot:after {
      display: none;
    }

    .t-meta-time {
      margin: 0;
      min-width: 100px;
      max-width: 100px;
      font-size: 12px;
      font-weight: 700;
      color: $m-color_6;
      align-self: center;
    }

    .t-text {
      align-self: center;
      margin-left: 14px;
      display: flex;
      width: 100%;
      justify-content: space-between;
      transition: .5s;

      p {
        margin: 0;
        font-size: 13px;
        letter-spacing: 0;
        font-weight: 600;
        margin-bottom: 0;

        a {
          margin-bottom: 0;
          font-size: 13px;
          font-weight: 600;
          color: $m-color_14;
        }
      }

      span.badge {
        position: absolute;
        right: -1px;
        padding: 2px 4px;
        font-size: 10px;
        letter-spacing: 1px;
        opacity: 0;
        font-weight: 600;
        transform: none;
        top: 6px;
      }
    }

    &.timeline-primary .t-text span.badge {
      color: $primary;
      border: 1px solid $primary;
      background-color: $l-primary;
    }

    &.timeline-secondary .t-text span.badge {
      color: $secondary;
      border: 1px solid $secondary;
      background-color: $l-secondary;
    }

    &.timeline-danger .t-text span.badge {
      color: $danger;
      border: 1px solid $danger;
      background-color: $l-danger;
    }

    &.timeline-warning .t-text span.badge {
      color: $warning;
      border: 1px solid $warning;
      background-color: $l-warning;
    }

    &.timeline-success .t-text span.badge {
      color: $m-color_14;
      border: 1px solid $m-color_14;
      background-color: $l-success;
    }

    &.timeline-dark .t-text span.badge {
      color: $dark;
      border: 1px solid $dark;
      background-color: $l-dark;
    }

    &:hover .t-text span.badge {
      opacity: 1;
    }

    .t-text p.t-time {
      text-align: right;
      color: $m-color_6;
      font-size: 10px;
    }

    .t-time {
      margin: 0;
      min-width: 80px;
      max-width: 80px;
      font-size: 13px;
      font-weight: 600;
      color: $l-dark;
      letter-spacing: 1px;
    }
  }

  .tm-action-btn {
    text-align: center;
    padding-top: 19px;

    button {
      background: transparent;
      box-shadow: none;
      padding: 0;
      color: $m-color_23;
      font-weight: 800;
      letter-spacing: 0;
      border: none;
      font-size: 14px;

      &:hover {
        transform: translateY(0);
      }

      span {
        margin-right: 6px;
        display: inline-block;
        transition: .5s;
      }

      &:hover span {
        transform: translateX(-6px);
      }
    }

    svg {
      width: 17px;
      height: 17px;
      vertical-align: sub;
      color: $l-dark;
      stroke-width: 2.5px;
      transition: .5s;
    }

    button:hover svg {
      transform: translateX(6px);
    }
  }
}