.el-table {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  .el-table__header-wrapper {
    min-height: 49px;
  }
  .el-table__body-wrapper {
    // overflow: auto;
    overflow-y: auto;
    @include scroll;
  }
  .cell {
    text-overflow: clip !important;
  }
}

// 关闭大图的样式
.el-image {
  .el-icon-circle-close {
    color: white;
  }
}

// 弹框的基本样式
.base-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  .el-dialog {
    margin-top: 0 !important;
    border-radius: 10px;
    display: flex;
    flex-direction: column;

    .el-dialog__header {
      padding: 10px 20px;
      // border: solid red 1px;
      // .el-dialog__title {
      // font-size: 14px;
      // color: #333333;
      // border: solid red 1px;
      // }
      .el-dialog__headerbtn {
        top: 14px;
      }
    }

    .el-dialog__body {
      flex: 1 1 auto;
      padding: 20px;
      overflow: auto;
    }

    .el-dialog__footer {
      padding: 10px 20px;
    }
  }
}

// 工具栏 小程序样式
.we-app-dialog {
  @extend .base-dialog;
  .el-dialog {
    width: 724px;
    height: 507px;

    .el-dialog__body {
      display: flex;
      flex-direction: row;
      align-content: flex-start;
    }
  }
}

.my-collection-dialog {
  @extend .base-dialog;
  .el-dialog {
    width: 746px;
    height: 507px;

    .el-dialog__body {
      display: flex;
      flex-direction: row;
      align-content: flex-start;
      padding: 0 20px;

      .el-tabs {
        overflow: hidden;
        .el-tabs__content {
          // overflow: auto;
          // display: flex;
          // border: solid red 1px;

          .picture-list {
            @extend .scroll;

            width: 100%;
            max-height: 354px;
            overflow: auto;

            display: flex;
            flex-wrap: wrap;

            .picture-item {
              position: relative;
              width: 90px;
              height: 90px;
              min-width: 90px;
              margin: 5px;
              display: flex;
              align-items: center;
              justify-content: center;
              cursor: pointer;
            }
            .picture-item-checked {
              border: solid #409eff 1px;
            }
          }
          .delete-icon {
            position: absolute;
            top: 2px;
            right: 2px;
            color: red;
            cursor: pointer;
          }
          .link-list {
            height: 354px;
            display: flex;
            flex-wrap: wrap;
            overflow: auto;
            @extend .scroll;
          }
        }
      }
    }
  }
}

.we-app-item {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  cursor: pointer;
  .we-app-img {
    width: 53px;
    height: 53px;
    border-radius: 50%;
  }
  .we-app-img-no {
    @extend .we-app-img;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .we-app-name {
    max-width: 90px;
    padding: 5px;
  }
  .el-icon-delete {
    color: #f56c6c;
    position: absolute;
    top: 5px;
    right: 5px;
  }
}
.we-app-item-checked {
  background-color: #eff5fd;
  color: #5a9cf8;
}

.label-dialog {
  @extend .base-dialog;

  .el-dialog {
    height: 50%;
    min-height: 500px;

    .el-dialog__body {
      @extend .scroll;
      .p-class {
        font-size: 14px;
        height: 30px;
        line-height: 30px;
        font-weight: 600;
      }
      .chose {
        color: #ffd04b;
      }
    }
  }
}

// SlotFriends的样式
.slot-friends {
  display: flex;
  align-items: center;
  justify-content: center;

  .el-dialog {
    margin-top: 0 !important;
    width: 724px;
    height: 507px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .el-dialog__header {
      padding: 10px;
      .el-dialog__title {
        width: 150px;
        font-size: 14px;
        color: #333333;
      }
      .el-dialog__headerbtn {
        top: 15px;
      }
    }

    .el-dialog__body {
      flex: 1 1 auto;
      overflow: auto;
      display: flex;
      flex-direction: column;
      padding: 0 10px;

      .all-check {
        display: flex;
        align-items: center;
        cursor: pointer;
      }

      .slot-friends-content {
        flex: 1 1 auto;
        display: flex;
        overflow: auto;

        .operation-box {
          width: 137px;
          min-width: 137px;
          height: 100%;
          padding: 5px 5px 0 5px;
          border-radius: 5px 0 0 5px;
          border: solid #eeeeee 1px;
          overflow: hidden;

          display: flex;
          flex-direction: column;

          .search-input {
            .el-input__inner {
              height: 28px;
              line-height: 28px;
              color: #dadada;
              font-size: 12px;
              padding-left: 5px;
            }
          }

          .label-list {
            width: 100%;
            flex: 1 1 auto;
            overflow: auto;
            .label-item {
              display: flex;
              align-items: center;
              color: #333333;
              font-size: 12px;
              height: 26px;
              cursor: pointer;
              p {
                margin-left: 5px;
                width: 90px;
                height: 26px;
                line-height: 26px;
                @extend .ellipsis;
              }
            }
            .current-label {
              color: #ff9f00;
            }
            .label-disabled {
              // border: solid red 1px;
              color: #c0c4cc;
              cursor: not-allowed;
              input {
                cursor: not-allowed;
                color: #c0c4cc;
                border: solid #c0c4cc 1px;
              }
            }
          }
        }

        .friends-list {
          padding: 5px;
          overflow: hidden;
          flex: 1 1 auto;
          border: solid #eeeeee 1px;
          border-left: none;
          border-radius: 0 5px 5px 0;
          display: flex;
          flex-direction: column;
          .el-table {
            width: 100%;
            height: 100%;
            .el-table__header-wrapper {
              // min-height: 60px;
              min-height: 40px;
              display: flex;
              align-items: center;
              background-color: #ff9f000d;

              .el-table__header {
                th {
                  background-color: #ff9f000d;
                  padding: 0;
                  border-bottom: none;
                }
              }
            }
            td {
              padding: 5px;
            }
          }
        }
      }
      .tip {
        font-size: 12px;
        color: #999999;
        padding: 5px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    }
    .el-dialog__footer {
      padding: 10px;
    }
  }
}

// 添加群发dialog样式
.group-send-dialog {
  @extend .base-dialog;
  .el-dialog {
    width: 876px;
    height: 646px;

    .el-dialog__header {
      // height: 44px;
      padding: 10px 20px;
      border-bottom: solid #e9e9eb 1px;
      .el-dialog__title {
        font-size: 14px;
      }
    }

    .el-dialog__body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      justify-content: space-between;

      .msg-list {
        width: 520px;
        height: 294px;
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.08);
        overflow: auto;
        @extend .scroll;

        .no-msg {
          width: 100%;
          height: 100%;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }

        .msg-item {
          height: 50px;
          padding: 0 10px;
          font-size: 14px;
          font-weight: 400;
          display: flex;
          align-items: center;
          justify-content: space-between;
          border-bottom: 1px solid rgba(0, 0, 0, 0.08);
          // color: #a8a8a8;
        }
      }

      .add-msg {
        height: 192px;
        width: 520px;
        margin-top: 14px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.08);

        .el-tabs__header {
          margin-bottom: 2px;
        }
        .el-tabs__nav-wrap {
          padding-left: 20px;
        }
        .el-tab-pane {
          padding: 5px;
          .el-textarea {
            height: 100px;
            .el-textarea__inner {
              @extend .scroll;
              width: 100%;
              height: 100px !important;
              border: none;
            }
          }
        }

        .tab-pane-picture {
          display: flex;
          align-items: center;
          justify-content: center;
          .pic-btn {
            margin-left: 10px;
            line-height: 30px;
            display: flex;
            flex-direction: column;
          }
        }

        .link-list {
          display: flex;
          flex-wrap: wrap;
          overflow: auto !important;
          @extend .scroll;
        }
      }

      .preview-box {
        width: 254px;
        height: 500px;
        background-image: url("~@/assets/images/group/previewBg.png");
        padding: 70px 14px;

        .preview-list {
          height: 100%;
          overflow: auto;
          @extend .scroll;

          .preview-item {
            margin: 10px 5px;
            display: flex;
            // align-items: center;

            .preview-item-bg {
              background-color: #ffffff;
              padding: 5px;
            }
            .preview-item-link {
              width: 170px;
              display: flex;
              flex-direction: column;
              .ellipsis-3 {
                color: #a8a8a8;
                overflow: hidden;
                font-size: 12px;
                line-height: 20px;
                margin: 5px;
                @include ellipsis(3);
              }
            }
          }
        }
      }

      .add-reply-aside {
        li {
          width: 115px;
          min-width: 115px;
          height: 27px;
          line-height: 27px;
          cursor: pointer;
          font-size: 14px;
          font-weight: 500;
          color: #333333;
          border-left: solid #fff 4px;
          i {
            color: #999999;
            margin-left: 26px;
            margin-right: 6px;
          }
        }
        .li-selected {
          background-color: #fffaf2;
          color: #ff9f00;
          border-left: solid #ff9f00 4px;
          i {
            color: #ff9f00;
          }
        }
      }
    }

    .el-dialog__footer {
      border-top: solid #e9e9eb 1px;
      // height: 60px;
      // min-height: 60px;
      .group-send-footer {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
    }
  }
}

// 消息预览的样式
.preview-box {
  width: 254px;
  height: 500px;
  background-image: url("~@/assets/images/group/previewBg.png");
  padding: 70px 14px;

  .preview-list {
    height: 100%;
    overflow: auto;
    @extend .scroll;

    .preview-item {
      margin: 10px 5px;
      display: flex;
      // align-items: center;

      .preview-item-bg {
        background-color: #ffffff;
        padding: 5px;
      }
      .preview-item-link {
        width: 170px;
        display: flex;
        flex-direction: column;
        .ellipsis-3 {
          color: #a8a8a8;
          overflow: hidden;
          font-size: 12px;
          line-height: 20px;
          margin: 5px;
          @include ellipsis(3);
        }
      }
    }
  }
}

// 任务详情
.task-detail-dialog {
  @extend .base-dialog;
  .el-dialog {
    width: 600px;
    height: 646px;

    .el-dialog__header {
      border-bottom: solid #e9e9eb 1px;
    }

    .el-dialog__body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      justify-content: space-between;
      .detail-ls {
        width: 254px;
        li {
          display: flex;
          line-height: 40px;
        }
      }
    }

    .el-dialog__footer {
      border-top: solid #e9e9eb 1px;
    }
  }
}

// 添加回复的dialog样式
.add-reply-dialog {
  @extend .base-dialog;
  .el-dialog {
    width: 724px;
    height: 477px;

    .el-dialog__body {
      padding: 0 30px;
      .add-reply-content {
        flex: 1 1 auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;

        .key-word {
          color: #999999;
          font-size: 12px;
          padding: 10px 0;
          align-self: flex-start;
        }

        .key-type {
          width: 100%;
        }

        .set-conntent {
          flex: 1 1 auto;
          width: 100%;
          display: flex;
          justify-content: space-between;

          .add-reply-aside {
            li {
              width: 115px;
              min-width: 115px;
              height: 27px;
              line-height: 27px;
              cursor: pointer;
              font-size: 14px;
              font-weight: 500;
              color: #333333;
              border-left: solid #fff 4px;
              i {
                color: #999999;
                margin-left: 26px;
                margin-right: 6px;
              }
            }
            .li-selected {
              background-color: #fffaf2;
              color: #ff9f00;
              border-left: solid #ff9f00 4px;
              i {
                color: #ff9f00;
              }
            }
          }

          .write-content {
            flex: 1 1 auto;
            height: 200px;
            margin-left: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            border: solid 1px #dcdfe6;

            .el-textarea {
              .el-textarea__inner {
                border: none;
              }
            }

            .link-app-box {
              flex: 1 1 auto;
              width: 100%;
              @extend .scroll;
              display: flex;
              flex-wrap: wrap;
            }
          }
        }
      }
    }
  }
}
