@import "../../../../src/theme.less";
:host {
  width: 100%;
  height: 100%;
}

.jurisdictionManagement {
  height: 100%;
  background: #f9fafb;
  overflow: hidden;
  padding: 16px 20px;
  min-height: 532px;

  .groupInfo {
    float: left;
    width: 24%;
    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;
    }

    .operate {
      width: 100%;
      border-bottom: 1px solid #e5e9ed;
      position: relative;
      background: #fff;
      z-index: 2;
      display: flex;

      .item {
        display: inline-block;
        width: 50%;
        height: 34px;
        line-height: 34px;
        border-right: 1px solid #e5e9ed;
        text-align: center;
        color: #666;
        cursor: default;
        flex: 1;

        &:nth-last-child(1) {
          border: none;
        }
      }
    }

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

      .item {
        width: 100%;
        height: 34px;
        line-height: 34px;
        text-align: center;
        cursor: pointer;

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

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

  .userInfo {
    float: right;
    width: 74%;
    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: 2;
      background: #fff;

      div {
        width: 50%;
        display: inline-block;
        text-align: center;

        &:nth-child(1) {
          border-right: 1px solid #e5e9ed;
        }

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

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

      // &.menuViews {}

      .tree {
        min-height: 400px;
        padding-bottom: 40px;

        .checkedAll {
          label {
            color: @primary-color;
          }
        }

        .row {
          margin-top: 10px;

          .menuTitle {
            font-weight: 400;
          }

          label {
            margin-top: 5px;
          }
        }
      }

      &.infoViews {
        .con {
          min-height: 400px;

          .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;

        button {
          &:focus {
            outline: none;
          }
        }
      }
    }
  }

  .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: 220px;
      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: 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;
          }
        }
      }

      button {
        margin-top: 10px;

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

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

        .content {
          width: 100%;
          height: auto;
          padding: 18px 14px 0 14px;

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

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

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

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

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