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

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

  .groupInfo {
    float: left;
    width: 24%;
    height: 100%;
    min-height: calc(100vh - 120px);
    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;
      padding-right: 16px;
      border-bottom: 1px solid #e5e9ed;
      position: relative;
      background: #fff;
      z-index: 2;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

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

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

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

    .groups {
      width: 100%;
      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;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

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

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

  .userInfo {
    float: right;
    width: 74%;
    height: 100%;
    min-height: calc(100vh - 120px);
    border: 1px solid #e5e9ed;
    background: #fff;
    color: #333;
    position: relative;

    .top {
      height: 74px;
      padding: 0 16px;
      line-height: 74px;
      border-bottom: 1px solid #e5e9ed;
      position: relative;
      z-index: 2;

      & > div {
        input {
          width: 224px;
        }

        button {
          margin-left: 8px;
        }
      }
    }

    .table {
      width: 100%;
      height: 100%;
      padding: 15px;
      position: absolute;
      top: 0;
      padding-top: 90px;

      .groupManagementTable {
        border-radius: 5px;
        padding: 16px;
        background: #f9fafb;
        border: 1px solid #e5e9ed;
        .thead th {
          text-align: center;
        }

        .ant-table-tbody {
          tr {
            td {
              text-align: center;
            }
          }

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

  .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;
              }
							.ant-input-number{
								width: 100% !important;
							}
            }
          }

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

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

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