@import "../../../../src/theme.less";

::ng-deep .executeTime,
::ng-deep
  .executeTime[nzplaceholder="请选择定时发送时间"]
  .ant-calendar-picker {
  width: 100% !important;
}

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

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

    .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;
      height: 117px;
      background: #f9fafb;
      border: 1px solid #e5e9ed;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 12px;

      & > 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: 18px;
        }

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

    button {
      margin-top: 10px;

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

  // 新增
  &.add {
    .modalBody {
      width: 480px;
      height: auto;

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

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

            .ant-form-item-label {
              line-height: 14px;
              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;
            }
          }
        }
      }

      button {
        &:nth-child(1) {
          margin-right: 20px;
        }
      }
    }
  }
}

.hospitalTable {
  padding: 21px 12px;
  padding-bottom: 0;

  .thead {
    background-image: linear-gradient(to right, @bg-start, @bg-end);

    th {
      background: transparent;
      color: #fff;
      text-align: center;
      font-size: 14px;
    }
  }

  .ant-table-body {
    border-bottom: 1px solid #e5e9ed;
  }

  .ant-table-tbody {
    tr {
      text-align: center;
      font-size: 14px;
      border: none;
      color: #333;

      td {
        border: none;

        .coop {
          span {
            display: inline-block;
            width: 60px;
            cursor: pointer;

            &::after {
              content: "|";
              float: right;
            }

            &:hover {
              color: @primary-color;
            }

            &:active {
              color: @primary-color;
            }

            &:nth-last-child(1) {
              &::after {
                content: "";
              }
            }
          }
        }
      }
    }

    tr:nth-child(2n-1) {
      background: #f9fafb;
    }
  }
}

// 右侧悬浮菜单
.fixed {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 9;
  border-radius: 5px 0 0 5px;

  .fixedMark {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 88;
  }

  // overflow: hidden;
  & > .left {
    width: 480px;
    // height: 280px;
    float: left;
    background: #fff;
    padding: 16px;
    border-radius: 5px;
    border: 1px solid #e5e9ed;
    // box-shadow: -8px 5px 15px #eae9e9;
    position: relative;
    z-index: 98;

    .con {
      background: #f9fafb;
      width: 100%;
      // height: 300px;
      // overflow: auto;
      border-radius: 5px;
      border: 1px solid #e5e9ed;
      padding: 16px;
      &.bindingExtension {
        min-height: 246px;
        .bindingExtension_content {
          display: flex;
          flex-wrap: wrap;
        }
        .noContentFlex {
          display: flex;
          justify-content: center;
          align-items: center;
          height: 136px;
          flex-direction: column;
          .noContent {
            width: 128px;
          }
          p {
            margin-top: 8px;
          }
        }
        .ant-checkbox-wrapper {
          font-size: 12px;
          width: 100%;
          display: flex;
          margin-top: 8px;
          justify-content: space-between;
          align-items: center;
          ::ng-deep .ant-checkbox {
            font-size: 12px;
            top: 0;
          }
          ::ng-deep .ant-checkbox + span {
            flex: 1;
          }
        }
      }

      &.tableCon {
        padding: 0;

        .table {
          font-size: 14px;

          tr {
            td {
              padding: 15px 6px;
              text-align: center;

              & > .tdiv {
                overflow: hidden;

                .name {
                  float: left;
                }

                .num {
                  float: right;
                  font-size: 12px;

                  span {
                    color: @primary-color;
                    font-size: 14px;
                  }
                }
              }

              .notOpen {
                color: #666;
                font-size: 12px;

                img {
                  margin-bottom: 8px;
                }
              }
            }
          }
        }
      }

      .title {
        color: #333;
        text-align: center;
      }

      .conditions {
        & > .ant-row {
          margin: 8px 0;
          display: flex;
          align-items: center;

          .ant-row {
            .ant-col-6 {
              margin: 2px 0;
            }
          }

          .checkAll {
            width: 100%;
            border-bottom: 1px solid rgb(233, 233, 233);
            color: @primary-color;
          }
        }
      }

      .btns {
        padding: 5px 20px 0 20px;
      }
    }
  }
}

// 表单生成弹框
.newOrder {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  &.newOrder_todo{
    .modalBody{
      width: 625px;
      height: auto;
    }
    .content{
      padding: 16px;
    }
    .btns{
      margin-top: 0;
    }
    .conditions {
      & > .ant-row {
        margin: 8px 0;
        display: flex;
        align-items: center;

        .ant-row {
          .ant-col-6 {
            margin: 2px 0;
          }
        }

        .checkAll {
          width: 100%;
          border-bottom: 1px solid rgb(233, 233, 233);
          color: @primary-color;
        }
      }
    }
  }

  .modalBody {
    width: 1200px;
    height: 580px;
    background: #fff;
    border-radius: 5px;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    position: relative;

    .title {
      font-size: 18px;
      text-align: center;
      line-height: 24px;
      margin: 0;
      margin-bottom: 12px;
      position: relative;

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

    .content {
      // width: 960px;
      border: 1px solid #e5e9ed;
      background: #f9fafb;
      border-radius: 5px;
      overflow: hidden;

      .grayFont {
        color: #666;
      }

      .col {
        height: 100%;

        &.left {
          border-right: 2px solid #e5e9ed;
          display: flex;
          flex-direction: column;

          .top {
            padding: 8px;
            nz-select {
              margin-right: 8px;
            }

            .tel {
              margin: 0 8px 0 0;
            }
          }
          // tab 任务类型
          .tabs {
            display: flex;
            height: 41px;
            border-top: 1px solid #e5e9ed;
            border-bottom: 1px solid #e5e9ed;
            background-color: #fff;
            .tabs__inner {
              flex: 1;
              overflow: hidden;
              .tabs__wrap {
                position: relative;
                z-index: 1;
                display: flex;
                transition: all 1s;
                .tab {
                  width: 93px;
                  height: 41px;
                  text-align: center;
                  line-height: 41px;
                  background: #fff;
                  border-right: 1px solid #e5e9ed;
                  cursor: pointer;

                  &.checked {
                    background: #e5e9ed;
                  }
                }
              }
            }
            .tabs__operate {
              border-bottom: 1px solid #e5e9ed;
              border-left: 1px solid #e5e9ed;
              width: 22px;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              position: relative;
              z-index: 2;
              .tabs__Icon--left {
                font-size: 12px;
                color: #e5e9ed;
                cursor: pointer;
                &:hover {
                  color: #333;
                }
              }
              .tabs__Icon--right {
                transform: rotateY(180deg);
                font-size: 12px;
                color: #e5e9ed;
                cursor: pointer;
                &:hover {
                  color: #333;
                }
              }
            }
          }

          // 底部tab页
          .bottomWrap {
            flex: 1;
            height: 300px;
            .bottom {
              padding: 0 36px;
              height: 310px;
              overflow-y: auto;
              .ant-form {
                height: 100%;
                .ant-form-item {
                  margin-bottom: 0;
                }
              }
              .control-flex {
                display: flex;
                justify-content: space-between;
                align-items: center;
                .control-flex__5 {
                  flex: 5;
                }
                .control-flex__7 {
                  flex: 7;
                }
              }
              .goods-wrap {
                margin-left: 8px;
                .goods-item {
                  display: inline-block;
                }
              }
              // 标本轮巡
              .bottom380256 {
                height: 100%;
                font-size: 16px;
                color: #333;
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
              }
              .bottom255 {
                height: 100%;
                // overflow-y: auto;
                .txtC {
                  height: 100%;
                  display: flex;
                  flex-direction: column;
                  justify-content: center;
                  align-items: center;
                }
              }

              .label {
                text-align: left;
              }

              .handlerType {
                margin: 21px 0 0 0;
              }

              .radios {
                height: 96px;
                width: 100%;
                overflow-y: auto;
                padding: 10px 18px;
                background: #fff;
                border: 1px solid #e6dede;
                border-radius: 5px;
                .ant-row {
                  width: 100%;
                  display: flex;
                  flex-wrap: wrap;
                  .ant-radio-wrapper {
                    // flex: 1;
                    // max-width: 100%;
                    // width: 160px;
                    display: flex;
                    align-items: center;
                    ::ng-deep span.ant-radio + * {
                      // min-width: 110px;
                      white-space: normal;
                      float: left;
                      padding-right: 0;
                    }
                    ::ng-deep span.ant-radio {
                      float: left;
                    }
                  }
                }
              }
            }
          }
          // 底部信息提示
          .bottomInfo {
            border-top: 2px solid #e5e9ed;
            padding-left: 32px;
            padding-right: 32px;
            height: 52px;
            line-height: 52px;
            font-size: 14px;
            color: #ff3b53;
          }
        }

        &.right {
          background: #fff;
          position: relative;

          .rightTitle {
            position: absolute;
            width: 100%;
            height: 46px;
            line-height: 46px;
            font-size: 16px;
            margin: 0;
            border-bottom: 1px solid #e5e9ed;
            background: #fff;
            z-index: 9999;
            display: flex;
            align-items: center;
            .rightTitle_tab {
              height: 100%;
              padding: 0 16px;
              border-right: 1px solid #e5e9ed;
              cursor: pointer;
              background-color: #fff;
              &.active {
                background-color: #f9fafb;
              }
            }
          }

          .cots_body {
            width: 100%;
            height: 100%;
            // overflow: scroll;
            // padding-right: 2%;
            padding-top: 47px;
          }
        }
      }
    }
  }

  .btns {
    .btn {
      margin: 9px;
      margin-bottom: 0;
    }
  }
}

.pagination {
  margin-top: 14px;
  position: absolute;
  right: 5px;
}

.btns {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  margin: 48px auto 0;

  .btn {
    margin: 9px;
    margin-bottom: 0;
  }
}
