@import "../../../../src/theme.less";
:host {
  width: 100%;
  height: 100%;
  .btn[disabled] {
    color: rgba(0, 0, 0, 0.25) !important;
    background: #f5f5f5 !important;
    cursor: not-allowed !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
  }
}

.jobAssignment {
  height: 100%;
  background: #f9fafb;
  overflow: hidden;
  padding: 0 20px 16px;
  min-height: 500px;
  overflow-y: auto;
  .breadNav {
    height: 64px;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    h2 {
      color: #333;
      font-size: 18px;
      font-weight: bold;
      margin: 0;
    }
  }

  .typeInfo {
    float: left;
    width: 21%;
    height: 100%;
    min-height: 500px;
    border: 1px solid #e5e9ed;
    background: #fff;
    color: #333;
    font-size: 14px;
    position: relative;
    overflow: hidden;

    .title {
      width: 100%;
      height: 40px;
      line-height: 40px;
      padding-left: 16px;
      border-bottom: 1px solid #e5e9ed;
      position: relative;
      background: #fff;
      z-index: 2;
    }

    .roles {
      width: 100%;
      height: 100%;
      // padding-right: 10%;
      position: absolute;
      top: 0;
      padding-top: 40px;
      overflow-y: auto;
      z-index: 1;

      .item {
        width: 100%;
        height: 34px;
        line-height: 34px;
        text-align: center;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        &:hover {
          color: @primary-color;
          background: #f0f6ed;
        }

        &.checked {
          color: @primary-color;
          background: #f0f6ed;
        }
      }
    }
  }

  .classesInfo {
    float: right;
    width: 77%;
    height: 100%;
    min-height: 500px;
    border: 1px solid #e5e9ed;
    background: #fff;
    color: #333;
    position: relative;

    & > .top {
      width: 100%;
      height: 74px;
      line-height: 73px;
      border-bottom: 1px solid #e5e9ed;
      position: relative;
      z-index: 3;
      background: #fff;

      div {
        width: 100%;
        display: inline-block;
        text-align: center;
        border-right: 1px solid #e5e9ed;

        &:last-child {
          border-right: 0;
        }

        &.checked {
          background: #f0f6ed;
        }
      }
    }

    .views {
      width: 100%;
      height: 100%;
      padding: 8px;
      position: absolute;
      top: 0;
      padding-top: 90px;
      overflow-y: auto;

      .radioes {
        height: 40px;
        position: absolute;
        z-index: 2;
      }
      .replicationScheme {
        position: absolute;
        height: 40px;
        right: 16px;
        z-index: 2;
        font-size: 16px;
        color: @primary-color;
        text-decoration: underline;
        cursor: pointer;
      }

      .con {
        width: 100%;
        height: 100%;
        min-height: 460px;
        position: relative;
        top: 0;
        padding-top: 40px;

        .inner {
          width: 100%;
          height: 89%;
          position: relative;
          // padding-bottom: 76px;

          .innerBox {
            width: 100%;
            height: 100%;
            position: relative;
            text-align: center;
            border-radius: 5px;
            background: #f9fafb;
            border: 1px solid #e5e9ed;
          }

          .table {
            width: 100%;
            height: 100%;
            padding: 15px;
            position: relative;
            border-radius: 5px;
            background: #f9fafb;
            padding-top: 0;
            border: 1px solid #e5e9ed;
            overflow-y: auto;
          }

          .groupManagementTable {
            border-radius: 5px;
            padding: 16px;
            background: #f9fafb;
            padding-top: 0;

            .ant-table-tbody {
              tr {
                td {
                  text-align: left;
                  padding: 6px 8px;
                }
              }

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

            &.nopadding {
              padding: 16px;

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

                th {
                  color: #fff;
                  background: transparent;
                  text-align: left;
                }
              }

              .ant-table-tbody {
                tr:nth-child(2n) {
                  background: #fff;
                }
              }
            }
          }

          .pagination {
            position: absolute;
            bottom: 12px;
            right: 5px;
          }

          .box {
            width: 100%;
            height: 100%;
            position: relative;
            // overflow-y: auto;

            .top {
              .search {
                .searchBoxes {
                  font-size: 14px;

                  .items {
                    font-size: 12px;
                    width: 120px;
                    margin-right: 8px;

                    .ant-select-selection__rendered {
                      padding: 0 5px;
                    }
                  }
                }
              }

              .assign {
                margin-top: 14px;

                .btn {
                  height: 34px;
                  line-height: 34px;
                  padding: 0 32px;
                  margin-right: 8px;

                  &:nth-child(1) {
                    color: @primary-color;
                    border: 1px solid @primary-color;
                  }

                  &:nth-child(2) {
                    color: #666;
                    border: 1px solid #666;
                  }
                }
              }
            }

            .center {
              height: 400px;
              border: 1px solid #e5e9ed;
              border-radius: 5px;
              background: #f9fafb;
              margin: 10px 0;

              &.bind {
                height: auto;
                position: relative;
                padding-bottom: 40px;

                th {
                  text-align: center !important;
                }

                td {
                  text-align: center !important;

                  .coop {
                    span {
                      cursor: default;

                      &:hover {
                        color: #53bc5f;
                      }

                      &:focus {
                        color: #269554;
                      }
                    }

                    .line {
                      margin: 10px;
                    }
                  }
                }
              }
            }

            .bottom {
              min-height: 104px;

              .left {
                width: 100%;
                border: 1px solid #e5e9ed;
                padding: 13px 16px;

                & > div {
                  text-align: right;
                }
              }

              .right {
                width: 160px;
                margin-left: 10px;

                .btn {
                  width: 100%;
                  height: 34px;
                  line-height: 34px;
                  border-radius: 5px;
                  text-align: center;
                  cursor: pointer;

                  &:nth-child(1) {
                    color: #666;
                    border: 1px solid #666;
                  }

                  &:nth-child(2) {
                    color: #fff;
                    border: 1px solid @primary-color;
                    background: @primary-color;
                  }

                  &:nth-child(3) {
                    color: @primary-color;
                    border: 1px solid @primary-color;
                    background: #fff;
                  }
                }
              }
            }
          }
        }
      }

      &.infoViews {
        .con {
          .hospital {
            padding: 40px;
            border-bottom: 1px solid #e5e9ed;

            .title {
              float: left;
              width: 120px;
              font-size: 14px;
            }

            .checkBox {
              padding-left: 120px;
              margin-bottom: 10px;

              .label {
                color: @primary-color;
                margin-bottom: 8px;
              }
            }
          }
        }
      }

      .btnBox {
        width: 100%;
        padding: 10px 16px;
        border-top: 1px solid #e5e9ed;
        margin-top: 16px;
        position: absolute;
        bottom: 0;
      }
    }
  }
}

.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: 240px;
    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;
      // height: 137px;
      background: #f9fafb;
      border: 1px solid #e5e9ed;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 12px;
      padding: 16px 10px;
      .content-ct {
        // height: 60px;
        overflow: auto;
      }

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

        &.title {
          text-align: left;
          color: #333;
          font-size: 14px;
          line-height: 30px;
        }

        &.icon {
          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;
        }
      }
    }

    button {
      margin-top: 10px;

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