@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 118px 0;
      background-color: #fff;
      .contentInner{
        padding: 48px 206px;
        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 {
      .modalBody {
        width: 480px;
        height: auto;

        .content {
          width: 100%;
          height: auto;
          padding: 16px;
          max-height: 497px;
          overflow-y: auto;

          .addForm {
            .ant-form-item {
              margin-bottom: 0;

              .ant-form-item-label {
                text-align: left;
              }

              .desc {
                margin-top: 5px;
              }
            }

            .datesControl {
              margin-top: -16px;

              .ant-form-item-label {
                line-height: 40px;
              }
            }

            .timer {
              .ant-form-item-label {
                width: 100%;
                text-align: left;
              }

              .numInp {
                margin-right: 5px;
              }

              .line {
                margin-right: 5px;
              }
            }

            .timer2 {
              .ant-form-item-label {
                line-height: 20px;
              }
            }
          }

          .editForm {
            .ant-form-item {
              margin-bottom: 15px;

              .ant-form-item-label {
                line-height: 14px;
                text-align: left;
              }
            }
          }
        }
      }
    }
  }
}
