.workbench-page {
  .header {
    padding: 16px 32px;
    border-bottom: 1px solid #e8eaec;
    background: #fff;

    .title {
      font-size: 20px;
      font-weight: 500;
      color: #17233d;
      margin-bottom: 16px;
    }

    .content {
      @apply flex;
      .el-avatar {
        margin-right: 16px;
      }

      .greeting {
        @apply flex-1;
        .hello {
          font-size: 20px;
          font-weight: 700;
          margin-bottom: 12px;
        }

        .weather {
          color: #808695;
        }
      }

      .summary {
        @apply flex;
        margin-top: 8px;

        .item {
          padding-left: 6px;
          padding-right: 6px;

          .text {
            @apply flex;
            color: #808695;

            .icon {
              width: 20px;
              height: 22px;
              margin-right: 4px;
            }
          }

          .number {
            @apply block text-center;
            font-size: 19px;
            line-height: 1.5;
          }
        }
      }
    }
  }

  .row {
    @apply flex flex-row w-full;
    padding: 16px 24px 60px;

    @media (max-width: $small-screen) {
      @apply flex-col;

      .col {
        &.left {
          flex: 24;
          margin-right: 0 !important;
        }

        &.right {
          flex: 24;
          margin-left: 0 !important;
        }
      }
    }

    .col {
      ::v-deep .el-card {
        border: none;

        .el-card__header {
          border-bottom: 1px solid #e8eaec;
          padding: 14px 16px;

          .card-header {
            @apply flex justify-between;
            .text {
              @apply flex items-center;
              .icon {
                @apply inline;
                width: 20px;
                height: 22px;
                margin-right: 8px;
              }
            }

            .link {
              color: #2d8cf0;

              &:hover {
                color: #57a3f3;
              }
            }
          }
        }

        .el-card__body {
          .card-body {
          }
        }

        &.dynamic, &.todo, &.member {
          margin-top: 16px;

          .el-card__body {
            padding: 16px;
          }
        }

        @media (max-width: $small-screen) {
          &.shortcut {
            margin-top: 16px;
          }
        }

        &.my-project {
          .el-card__body {
            padding: 6px;

            .card-body {
              .list {
                .item {
                  @apply inline-block w-1/3 cursor-pointer;
                  padding: 6px;
                  height: 112px;

                  &:hover {
                    box-shadow: 0 1px 6px rgb(0 0 0 / 20%);
                  }

                  .wrap {
                    @apply relative h-full;
                    border-radius: 3px;
                    background: #b6e8ff no-repeat center;
                    background-size: cover;

                    &::before {
                      @apply absolute block top-0 left-0 right-0 bottom-0 z-0;
                      content: "";
                      border-radius: 3px;
                      z-index: 0;
                    }


                    .name {
                      @apply relative;
                      color: #fff;
                      font-weight: 600;
                      padding: 4px 0 0 8px;
                      font-size: 15px;
                    }

                    .desc {
                      @apply relative;
                      font-weight: 400;
                      font-size: 12px;
                      color: #fff;
                      padding: 4px 0 0 8px;
                      margin-right: 45px;
                    }
                  }

                  &:nth-child(1) {
                    .wrap {
                      background-image: url("@/assets/project-figure1.png");
                    }
                  }

                  &:nth-child(2) {
                    .wrap {
                      background-image: url("@/assets/project-figure2.png");
                    }
                  }

                  &:nth-child(3) {
                    .wrap {
                      background-image: url("@/assets/project-figure3.png");
                    }
                  }

                  &:nth-child(4) {
                    .wrap {
                      background-image: url("@/assets/project-figure4.png");
                    }
                  }

                  &:nth-child(5) {
                    .wrap {
                      background-image: url("@/assets/project-figure5.png");
                    }
                  }

                  &:nth-child(6) {
                    .wrap {
                      background-image: url("@/assets/project-figure6.png");
                    }
                  }
                }
              }
            }
          }
        }

        &.dynamic {
          .card-body {
            .list {
              .item {
                @apply flex;
                border-bottom: 1px solid #e8eaec;
                padding: 20px 0;

                &:last-child {
                  border-bottom: none;
                }

                .el-avatar {
                  margin: 0 30px;
                }

                .wrap {
                  .content {
                    .name {
                      margin-right: 5px;
                    }

                    .do {
                      margin-right: 5px;
                    }

                    .link {
                      color: #2d8cf0;

                      &:hover {
                        color: #57a3f3;
                      }
                    }
                  }

                  .time {
                    font-size: 12px;
                    color: rgb(128, 134, 149);
                  }
                }
              }
            }
          }
        }

        &.shortcut {
          .card-body {
            .list {
              .item {
                @apply inline-flex flex-col items-center w-1/3 cursor-pointer;
                margin-bottom: 16px;

                &:hover {
                  color: #2d8cf0;
                }

                .icon {
                  font-size: 24px;
                }

                .text {
                  margin-top: 8px;
                }

                &:nth-child(4),
                &:nth-child(5),
                &:nth-child(6) {
                  margin-bottom: 0;
                }

              }
            }
          }
        }

        &.todo {
          .el-card__body {
            padding: 10px;

            .card-body {
              .list {
                .item {
                  height: 46px;
                  line-height: 46px;
                  padding: 0 20px;
                  border-bottom: 1px solid #e8eaec;

                  &:last-child {
                    border-bottom: none;
                  }

                  .task {
                    @apply inline-block w-3/4;
                  }

                  .deadline {
                    @apply inline-block w-1/4;
                    font-size: 12px;
                    color: #808695;
                  }


                  &.head {
                    font-weight: 600;

                    .task, .deadline {
                      color: #303133 !important;
                      font-size: 14px !important;
                    }
                  }
                }
              }
            }
          }
        }

        &.member {
          .card-body {
            .list {
              .item {
                @apply flex items-center;
                margin-bottom: 16px;

                .el-avatar {
                  margin: 0 20px;
                }

                .desc {
                  @apply flex flex-col flex-1;
                  .name {

                  }

                  .position {
                    font-size: 12px;
                    color: rgb(128, 134, 149);
                  }
                }

                .el-tag {

                }
              }
            }
          }
        }
      }

      &.left {
        flex: 16;
        margin-right: 12px;
      }

      &.right {
        flex: 8;
        margin-left: 12px;
      }


    }
  }
}
