@import "../../../../../src/theme.less";
:host {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #F0F2F5;
  .list-template__nzTable,
  .list-template__bottom{
    padding: 0!important;
    border: none!important;
    background: #fff!important;
  }
  .list-template{
    width: 100%!important;
    height: 100%!important;
  }
  .content{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #EEF3F9;
    &.priority{
      margin: 24px 64px 0;
      background-color: #fff;
      .contentInner{
        padding: 24px;
        border: 1px solid #E8EBEF;
      }
    }
    .contentItem{
      padding: 4px 16px;
      cursor: pointer;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      &.active{
        color: @primary-color;
        background-color: #F0F6ED;
        border-radius: 4px;
      }
    }
    .contentInner{
      flex: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 16px;
      gap: 16px;
      .contentHead{
        height: 45px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 0 16px;
        font-size: 16px;
        font-weight: bold;
        border-bottom: 1px solid #D9D9D9;
        .title{
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .btns{
          flex-shrink: 0;
        }
      }
      .contentBody{
        padding: 0 8px;
        margin: 4px 0;
        flex: 1;
      }
      .address{
        flex: 1;
        height: 100%;
        background: #FFFFFF;
        border: 1px solid #E8EBEF;
        display: flex;
        flex-direction: column;
        width: 0;
      }
      .addressAssign{
        flex: 3;
        height: 100%;
        background: #FFFFFF;
        border: 1px solid #E8EBEF;
        display: flex;
        flex-direction: column;
        width: 0;
      }
      .list-template__searchItem {
        margin-bottom: 16px;
        .label {
          color: #333;
          display: inline-block;
          width: 70px;
          text-align-last: justify;
          text-align: justify;
          &.label--big {
            width: 100px;
          }
        }
        .formItem {
          width: 135px;
        }
      }
    }
    .contentBtns{
      margin-bottom: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .save {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;

    .tips{
      margin-bottom: 16px!important;
    }

    .modalBody {
      width: 350px;
      background: #fff;
      border-radius: 5px;
      padding: 10px 20px;
      color: #333;

      .title {
        width: 100%;
        text-align: center;
        font-size: 18px;
        position: relative;

        i {
          position: absolute;
          right: 0;
          top: 0;
          font-size: 20px;
          color: #666;
          cursor: pointer;
          padding: 0 5px;
        }
      }

      .content {
        width: 310px;
        background: #f9fafb;
        border: 1px solid #e5e9ed;
        border-radius: 5px;
        overflow: hidden;
        margin-top: 12px;
        padding: 16px 0;

        .busyList{
          display: flex;
          margin-bottom: 8px;
          .busyContent{
            margin-right: 8px;
            flex: 1;
          }
        }

        & > div {
          text-align: center;
          margin: 0;

          &.icon {
            // margin-top: 17px;

            i {
              color: #34b349;
              font-size: 30px !important;

              &.transport-wenhao {
                color: #f5a523;
              }

              &.transport-shibai {
                color: #ff3a52;
              }
            }
          }

          &.defeat {
            color: #333;
            font-size: 14px;
          }

          &:nth-child(3) {
            font-size: 14px;
            color: #666;
          }
        }
        .workAssignmentTips {
          font-size: 12px;
        }
      }

      button {
        margin-top: 10px;

        &.btn {
          margin-left: 8px;
        }
      }
    }

    // 新增
    &.add {
      .transport-required{
        font-size: 10px;
        margin-right: 4px;
        position: relative;
        bottom: 2px;
      }
      .modalBody {
        width: 926px;
        height: auto;

        .content {
          display: block;
          width: 100%;
          height: auto;
          padding: 0;
          max-height: 600px;
          overflow-y: auto;
          border: 1px solid #E9E9E9;

          .message_head{
            height: 50px;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .head_item{
              flex: 1;
              &:first-of-type{
                text-align: left;
              }
              &:last-of-type{
                text-align: right;
              }
              .inputNumber{
                width: 62px;
                margin-left: 2px;
                margin-right: 5px;
              }
            }
          }

          .message_tab{
            height: 56px;
            display: flex;
            border-top: 1px solid #E9E9E9;
            .tab{
              height: 100%;
              flex: 1;
              display: flex;
              justify-content: center;
              align-items: center;
              cursor: pointer;
              &.active{
                color: @primary-color;
                background-color: #EEEEEE;
              }
            }
          }

          .message_body{
            border-top: 1px solid #E9E9E9;
            width: 300%;
            display: flex;
            .message_body_list{
              width: 884px;
              padding: 16px;
              .message_body_list_title{
                display: flex;
                margin-top: 0;
                align-items: center;
                span{
                  flex-shrink: 0;
                }
              }
              .message_body_list_body{
                display: flex;
                margin-top: 16px;
                line-height: 32px;
                span{
                  flex-shrink: 0;
                }
              }
              .message_body_list_configure{
                display: flex;
                text-align: left;
                margin-top: 8px;
                span{
                  flex-shrink: 0;
                }
                em{
                  font-style: normal;
                  color: @primary-color;
                  cursor: pointer;
                }
              }
              .message_body_list_wechatConfig{
                display: flex;
                align-items: center;
                margin-bottom: 8px;
                span{
                  flex-shrink: 0;
                }
              }
            }
          }
        }
      }
    }
  }
}
