%tow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-client {
  height: calc(100vh - 75px);
  &-top {
    padding: 20px;
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 10px;
    .current-mail {
      &-wrap {
        position: relative;
        min-width: 240px;
      }
      &-show {
        border-radius: 30px;
        border: 1px solid #d2def6;
        padding: 0 15px;
        display: flex;
        align-items: center;
        height: 32px;
        justify-content: space-between;
        cursor: pointer;
        i {
          font-size: 14px;
        }
        &:hover {
          color: #316cf5;
          border-color: #316cf5;
        }
      }
      &-list {
        position: absolute;
        width: 100%;
        top: 35px;
        background: #fff;
        border: 1px solid #d2def6;
        border-radius: 5px;
        overflow: hidden;
        padding: 5px 0;
        display: none;
        li {
          height: 30px;
          line-height: 30px;
          padding: 0 15px;
          cursor: pointer;
          &:hover {
            background: #eff4ff;
            color: #316cf5;
          }
        }
        li + li {
          margin-top: 5px;
        }
      }
    }
    .write-email,
    .pull-email {
      display: flex;
      align-items: center;
      margin-left: 15px;
      border-radius: 30px;
      border: 1px solid #d2def6;
      height: 32px;
      padding: 0 15px;
      cursor: pointer;
      i {
        margin-right: 5px;
      }
    }
    .write-email {
      background: #316cf5;
      color: #fff;
      border-color: #316cf5;
      &:hover {
        background: #5785e8;
        border-color: #5785e8;
      }
    }
    .pull-email:hover {
      color: #316cf5;
      border-color: #316cf5;
    }
    .icon-weibiaoti102 {
      font-size: 13px;
    }
  }
  &-menu {
    margin-top: 16px;
    padding: 0 8px 0 16px;
    li {
      font-size: 14px;
      a {
        display: flex;
        width: 100%;
        height: 35px;
        align-items: center;
        color: #273f60;
        padding: 0 16px;
        text-decoration: none;
        transition: all 0.4s;
        &.on,
        &:hover {
          color: #316cf5;
          background: #eff4ff;
          border-radius: 4px;
        }
      }
      i {
        margin-right: 8px;
        margin-top: 2px;
      }
      em {
        font-style: normal;
        margin-left: auto;
      }
    }
  }
  &-body {
    display: flex;
    border: 1px solid #d2def6;
    height: calc(100% - 76px);
    background: #fff;
    &__left {
      width: 240px;
      border-right: 1px solid #d2def6;
      &-top {
        background: #316cf5;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        i {
          color: #fff;
          font-size: 20px;
        }
      }
    }
    &__right {
      flex: 1;
      min-width: 1px;
      padding-left: 10px;
    }
  }
  &-list {
    &__tool {
      display: flex;
      align-items: center;
      height: 40px;
      border-bottom: 1px solid #d2def6;
      .email-checkbox-all {
        margin-left: 4px;
        margin-top: 4px;
        input {
          margin: 0;
        }
        &.choice {
          position: relative;
          input:checked ~ label {
            display: none;
          }
          label {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            margin:auto;
            width: 7px;
            height: 7px;
            background: #316cf5;
          }
        }
      }
      span {
        display: flex;
        width: 30px;
        height: 30px;
        justify-content: center;
        align-items: center;
        line-height: 1;
        cursor: pointer;
        i {
          font-size: 18px;
          color: #19212d;
        }
      }
    }
    &_item {
      margin-top: 12px;
      &-time {
        margin: 0 16px 0 12px;
        font-size: 14px;
        color: #687990;
        span {
          color: #316cf5;
        }
      }
      &-li {
        border-bottom: 1px solid #d2def6;
        padding: 0 12px;
        display: flex;
        height: 51px;
        align-items: center;
        .email-checkbox {
          margin: 0 5px 0 0;
        }
        a {
          flex: 1;
          min-width: 1px;
          font-size: 14px;
          text-decoration: none;
          display: flex;
        }
        i {
          margin: 0 10px;
          &.icon-already_read {
            color: #19212d;
          }
          &.icon-Mail {
            color: #316CF5;
          }
        }
        .sent-name {
          width: 80px;
          @extend %tow;
          margin-right: 16px;
          color: #19212d;
        }
        .email-title {
          width: 112px;
          color: rgb(39, 63, 96);
          @extend %tow;
        }
        .email-dsc {
          flex: 1;
          min-width: 1px;
          color: #687990;
          font-weight: 400;
          @extend %tow;
          margin-right: 20px;
        }
        .email-time {
          margin-left: auto;
          color: #687990;
          font-weight: 400;
        }
        &:hover {
          background: #eff4ff;
          .sent-name {
            color: #316cf5;
            font-weight: bold;
          }
        }
      }
    }
    &_none {
      text-align: center;
      line-height: 50px;
      font-size: 16px;
      color: #0f6674;
    }
  }
  &-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  &-detail {
    height: calc(100vh - 193px);
    overflow-y: scroll;
    &__tool {
      display: flex;
      border-bottom: 1px solid #D2DEF6;
      align-items: center;
      height: 40px;
      margin: 0 10px;
      span {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        width: 30px;
        margin-right: 10px;
        cursor: pointer;
      }
      i {
        font-size: 18px;
        color: #316CF5;
      }
      .icon-back {
        color: #687990;
      }
    }
    &__header {
      border-bottom: 1px solid #D2DEF6;
      padding: 8px 24px;
      &-subject {
        font-size: 16px;
        color: rgb(39, 63, 96);
        font-weight: bold;
        line-height: 35px;
      }
      &-list {
        li {
          display: flex;
          align-items: center;
          font-size: 14px;
          color: #687990;
          line-height: 27px;
          strong {
            color: #273f60;
            margin-right: 5px;
          }
        }
      }
      &-success {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #687990;
        i {
          color: #5BE1A8;
          margin-right: 5px;
        }
      }
    }
    &_html {
      padding: 10px 0;
      min-height: 200px;
      iframe {
        width: 100%;
        border: none;
        height: 100%;
      }
    }
    &__attachment {
      border-top: 1px solid #D2DEF6;
      padding-bottom: 10px;
      > h3 {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        font-size: 14px;
      }
      > div {
        a {
          padding: 5px 7px;
          background: #EFF4FF;
          border-radius: 2px;
          margin: 3px;
          &:hover {
            opacity: 0.5;
          }
        }
      }
    }
  }
}

.bind-email {
  &-title {
    h3 {
      font-size: 16px;
      font-weight: bold;
    }
  }
  &-add_btn {
    display: flex;
    align-items: center;
    border: 1px solid #cad0d9;
    border-radius: 2px;
    width: 110px;
    height: 32px;
    justify-content: center;
    color: #687990;
    cursor: pointer;
    i {
      margin-right: 5px;
    }
    &:hover {
      border-color: #5785e8;
      color: #5785e8;
    }
  }
  &-list {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    li {
      display: flex;
      align-items: center;
      margin: 5px 50px 5px 0;
      i {
        font-size: 18px;
      }
      span {
        font-size: 16px;
      }
      .icon-a-youjian1 {
        color: #2d67e3;
        margin-right: 5px;
      }
      .icon-close {
        color: #e85757;
        margin-left: 10px;
        cursor: pointer;
      }
    }
  }
}

// 绑定邮箱弹窗
.sun #bind-email-modal .modal-dialog {
  width: 620px !important;
}
.sun #send-email-modal .modal-dialog {
  width: 900px !important;
}

#bind-email-modal {
  .modal-body {
    padding: 30px;
  }
  .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    .form-text {
      color: red;
      margin-top: 3px;
      display: none;
      position: absolute;
    }
    label {
      margin-bottom: 0;
      &:before {
        content: "*";
        color: red;
      }
    }
    &-body {
      flex: 1;
      margin-left: 10px;
    }
    .form-control.error {
      border-color: red;
    }
  }
  .form-group-title {
    font-size: 16px;
    font-weight: bold;
  }
}

.emial-loading {
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  img {
    width: 60px;
  }
}

.send-email-group {
  display: flex;
  border-bottom: 1px solid #D2DEF6;
  position: relative;
  align-items: flex-start;
  > span {
    width: 70px;
    line-height: 34px;
    color: #687990;
    text-align: right;
    i {
      color: red;
      margin-right: 5px;
    }
  }
  input {
    flex: 1;
    border: none;
    height: 34px;
    background: transparent;
    &:focus {
      outline: none;
    }
    &::placeholder {
      color: #C9CFD7;
    }
  }
}
.send-email-input {
  flex: 1;
  display: flex;
  padding-right: 120px;
}
.enter-email-wrap {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  input {
    min-width: 140px;
  }
}
.enter-email-btns {
  display: flex;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 9px;
  i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    margin-right: 5px;
  }
  .cc-btn i {
    background: #16A34A;
  }
  .bc-btn i {
    background: #316CF5;
  }
  span {
    margin-left: 10px;
    align-items: center;
    display: flex;
    cursor: pointer;
    &.on {
      .icon-add {
        display: none;
      }
      .icon--jianhao {
        display: flex;
      }
    }
  }
  .icon--jianhao {
    display: none;
  }
}
.enter-email-list {
  display: flex;
  flex-wrap: wrap;
  padding-top: 3px;
  span {
    display: flex;
    align-items: center;
    margin: 3px;
    border: 1px dashed #A7B1BF;
    height: 22px;
    font-size: 12px;
    border-radius: 20px;
    padding: 0 5px;
    line-height: 1;
    color: #273f60;
  }
  i {
    font-size: 12px;
    color: #273f60;
    cursor: pointer;
    margin-left: 5px;
  }
}

#editor-email {
  margin-top: 10px;
}

#send-email-modal .modal-content {
  position: relative;
}
.send-email-modal-loading {
  position: absolute;
  display: none;
  top: 69px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1201;
  background: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  img {
    width: 50px;
  }
}
.send-email-attachments {
  display: none;
}

#attachment-container {
  display: flex;
  align-items: center;
  padding-top: 10px;
  .filepath {
    font-size: 14px;
    padding: 5px 15px;
  }
}

.send-email-cc,
.send-email-bcc {
  display: none;
}
