.viewReport {
  background: #F1F1F1;
  height: 100%;
  min-height: 100vh;
  font-family: 'LabGrotesque', sans-serif;

  .container {
    max-width: 1160px;
    margin-top: 23px;

    @media (max-width: 570px) {
      margin-top: 0;
    }
  }

  &__info {
    display: flex;
    flex-direction: column;
    margin-top: 23px;
  }

  &__title {
    font-weight: 700;
    font-size: 22px;
    line-height: 32px;
    color: #000000;
    span {
      color: #52B709;
    }

    @media (max-width: 500px) {
      font-size: 18px;
    }
  }

  &__back {
    display: flex;
    align-items: center;
    column-gap: 30px;
    margin-top: 20px;
    cursor: pointer;

    &:hover {
      text-decoration: none;
    }
    p {
      margin-bottom: 0;
      font-weight: 400;
      font-size: 14px;
      line-height: 32px;
      color: #000000;
      text-decoration: none;
    }
  }

  &__bar {
    display: flex;
    margin-top: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 33px;
    align-items: center;
    column-gap: 60px;
    height: 72px;
    justify-content: space-between;

    button {
      color: #000000;
      font-size: 15px;
      font-weight: 500;
      line-height: 32px;
      padding: 8px 24px;
    }

    &__edit {
      background: #E1FCCF;
      border-radius: 44px;
      border: none;
    }

    &__delete {
      background: white;
      border-radius: 12px;
      border: 1px dashed #8BCC60;
    }

    .disable {
      pointer-events: none;
      opacity: 0.5;
    }

    .loader {
      max-width: 150px;
    }
  }

  h3 {
    margin-bottom: 0;
  }

  p {
    margin-bottom: 0;
  }

  &__switch-date {
    display: flex;
    margin: 20px 0;
    justify-content: center;
    column-gap: 30px;
    align-items: center;

    @media (max-width: 500px) {
      column-gap: 0;
      justify-content: space-between;
    }

    p {
      font-weight: 400;
      font-size: 18px;
      line-height: 32px;
      color: #000000;
    }

    .switch-date {
      width: 48px;
      height: 48px;
      background: #8DC63F;
      border-radius: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;

      img {
        margin-left: 3px;
      }
    }

    &__prev {
      transform: rotate(180deg);
    }
  }

  .disable {
    pointer-events: none;
    opacity: 0.3;
  }

  .loader {
    &:hover {
      path {
        fill: #ffffff;
      }
    }
  }

  .table__container {
    margin: 0 -28px;
    overflow: hidden;
    position: relative;

    @media (max-width: 1205px) {
      margin: 0;
    }
  }

  &__done {
    width: 100%;
    border-collapse: separate;
    border-spacing: 28px 0;


    @media (max-width: 1205px) {
      display: grid;
      border-collapse: collapse;
      thead {
        display: grid;

        tr {
          display: grid;
          grid-template-columns: 74% calc(26% - 28px);
          column-gap: 28px;
        }
      }

      tbody {
        display: grid;

        tr {
          display: grid;
          grid-template-columns: 74% calc(26% - 28px);
          column-gap: 28px;
        }
      }
    }

    @media (max-width: 900px) {
      thead {
        tr {
          th {
            padding: 15px;
          }
        }
      }

      tbody {
        tr {
          td {
            padding: 15px;
            display: flex;
            justify-content: space-between;
          }
        }
      }
    }

    @media (max-width: 650px) {
      tr {
        grid-template-columns: 74% calc(26% - 10px) !important;
        column-gap: 10px !important;
      }
    }

    th {
      padding: 32px 40px;
      background: white;
      border-radius: 12px 12px 0 0;
      font-weight: 500;
      font-size: 22px;
      line-height: 32px;
      color: #000000;

      @media (max-width: 650px) {
        font-size: 16px;
        line-height: 20px;
      }
    }

    td {
      padding: 15px 40px;
      background: white;

      p {
        font-weight: 400;
        font-size: 15px;
        line-height: 20px;
        max-width: 755px;
        color: #000000;

        @media (max-width: 465px) {
          text-align: center;
          line-height: 14px;
        }
      }
    }

    tr:last-child {
      td {
        border-radius: 0 0 12px 12px;
      }

      td:last-child {
        font-weight: 500;
        font-size: 17px;
        line-height: 32px;
        color: #000000;

        @media (max-width: 750px) {
          font-size: 14px;
          line-height: 20px;
        }

        @media (max-width: 575px) {
          text-align: center;
        }
      }
    }

    &__hours {
      width: 25%;
      background: #FFFFFF;
      border-radius: 12px;
      padding: 32px 40px 18px;
      display: flex;
      flex-direction: column;
      row-gap: 30px;

      h3 {
        font-weight: 500;
        font-size: 22px;
        line-height: 32px;
        color: #000000;
      }

      &__item {
        display: flex;
        column-gap: 25px;
        align-items: center;
        min-width: 155px;

        .hours {
          font-size: 15px;

          @media (max-width: 1170px) {
            font-size: 13px;
            text-align: center;
          }
        }

        @media (max-width: 900px) {
          column-gap: 0;
          justify-content: space-between;
          min-width: auto;
          width: 100%;
        }

        @media (max-width: 775px) {
          flex-direction: column;
          justify-content: center;
          row-gap: 10px;
        }

        span {
          max-width: 48px;
          height: 48px;
          background: #8DC63F;
          border-radius: 50px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: 700;
          font-size: 22px;
          line-height: 32px;
          color: #000000;
          width: 100%;

          @media (max-width: 900px) {
            max-width: 28px;
            height: 28px;
            font-size: 15px;
          }
        }

        p {
          font-weight: 400;
          font-size: 12px;
          line-height: 32px;
        }
      }

      &__total {
        font-weight: 500;
        font-size: 17px;
        line-height: 32px;
      }
    }
  }

  &__item {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    background: #FFFFFF;
    border-radius: 12px;
    margin: 20px 0;
    padding: 15px;

    h3 {
      font-weight: 500;
      font-size: 22px;
      line-height: 32px;

      @media (max-width: 650px) {
        font-size: 16px;
        line-height: 20px;
      }
    }

    p {
      font-weight: 400;
      font-size: 15px;

      @media (max-width: 650px) {
        font-size: 13px;
      }
    }
  }

  &__item:last-child {
    margin-bottom: 0;
  }

  &__noTask {
    padding: 25px 10px;
    background: #FFFFFF;
    border-radius: 12px;
    text-align: center;

    p {
      font-weight: 400;
      font-size: 22px;
      line-height: 32px;
      color: #000000;

      @media (max-width: 500px) {
        font-size: 18px;
      }

      span {
        color: #8BCC60;
        font-weight: 500;
      }
    }
  }

  footer {
    margin-top: 70px;

    @media (max-width: 575px) {
      margin-top: 0;
    }
  }
}
