%expand-action {
  -webkit-transition: width 1s;
  -moz-transition: width 1s;
  -o-transition: width 1s;
  transition: width 1s;
}

.empty-property-root {
  @extend %expand-action;

  position: absolute;
  top: 30px;
  right: 0;
  width: 35rem;
  height: calc(100% - 30px);

  .empty-property-btn {
    position: absolute;
    top: calc(50% - 50px);
    left: 5px;
    width: 1.8rem;
    height: 8rem;
    line-height: 8rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 0 5px rgba(43, 22, 54, 0.2);

    &:hover {
      background: #562984;
    }
  }

  .empty-property-panel {
    @extend %expand-action;

    position: absolute;
    top: 0;
    right: 0;
    width: calc(35rem - 27px);
    height: 100%;
    font-size: 14px;
    text-align: center;
    background: #E4E4E4;
    border: 1px solid #DDE4E5;
    border-top: none;

    .head-one {
      font-size: 15px;
      line-height: 30px;
      height: 30px;
      text-align: left;
      padding-left: 1rem;
      border-bottom: 1px solid #797979;
      background: #DDE4E5;
    }

    .head-two {
      height: 30px;
      border-bottom: 1px solid #797979;

      .head-two-one {
        border-right: 1px solid #797979;
        width: 15rem;
        height: 30px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 0%, rgba(228, 228, 228, 1) 100%, rgba(228, 228, 228, 1) 100%);
        border-bottom: 1px solid #797979;
      }

      .head-two-two {
        border-right: 1px solid #797979;
        width: 6rem;
        height: 30px;
        position: absolute;
        top: 30px;
        left: 15rem;
        font-size: 15px;
        line-height: 30px;
        background: linear-gradient(270deg, rgba(255, 255, 255, 1) 0%, rgba(242, 242, 242, 1) 0%, rgba(228, 228, 228, 1) 100%, rgba(255, 255, 255, 1) 100%);
        border-bottom: 1px solid #797979;
      }

      .head-two-three {
        border-right: 1px solid #797979;
        width: 6rem;
        height: 30px;
        position: absolute;
        top: 30px;
        left: 21rem;
        font-size: 15px;
        line-height: 30px;
        background: linear-gradient(270deg, rgba(255, 255, 255, 1) 0%, rgba(242, 242, 242, 1) 0%, rgba(228, 228, 228, 1) 100%, rgba(255, 255, 255, 1) 100%);
        border-bottom: 1px solid #797979;
      }

      .head-two-four {
        border-right: 1px solid #797979;
        width: calc(6rem - 4px);
        height: 30px;
        position: absolute;
        top: 30px;
        left: 27rem;
        font-size: 15px;
        line-height: 30px;
        background: linear-gradient(270deg, rgba(255, 255, 255, 1) 0%, rgba(242, 242, 242, 1) 0%, rgba(228, 228, 228, 1) 100%, rgba(255, 255, 255, 1) 100%);
        border-bottom: 1px solid #797979;
      }
    }
  }
}

.empty-property-root-hide {
  @extend %expand-action;

  position: absolute;
  top: 30px;
  right: 0;
  z-index: 101;
  width: 27px;
  height: calc(100% - 30px);

  .empty-property-btn {
    position: absolute;
    top: calc(50% - 50px);
    left: 5px;
    width: 1.8rem;
    height: 8rem;
    line-height: 8rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 0 5px rgba(43, 22, 54, 0.2);

    &:hover {
      background: #562984;
    }
  }

  .empty-property-panel {
    @extend %expand-action;

    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    font-size: 18px;
    text-align: center;
    background: #E4E4E4;
    border: 1px solid #DDE4E5;
    border-top: none;

    .config-panel {
      display: none;
    }
  }
}


.topo-content-device {
  position: absolute;
  visibility: hidden;

  .topo-content-device-switch {
    position: absolute;
    z-index: 1000;
  }

  .device-choose-content {
    position: absolute;
    z-index: 1000;
    background-color: white;
    width: 372px;
    overflow-y: auto;
    height: 600px;
    border: solid 1px #f5f5f5;

    .drag-card {
      margin: 5px;
      background-color: white;
      z-index: 1000;

      >div {
        width: 160px;
        height: 150px;
        margin: 10px;
        background-color: #f2f2f2;
        float: left;

        .card-info-img {
          width: calc(100% - 12px);
          height: calc(100% - 60px);
          margin: 6px 0 6px 6px;
          border: 5px solid #ccc;

          img {
            display: inline-block;
            // width: 100%;
            // height: 100%;
          }
        }

        .card-info-text {
          line-height: 20px;
          font-size: 14px;
          text-align: center;
        }
      }
    }
  }
}



.config-panel {
  width: 100%;
  height: 100%;
  background: #E4E4E4;

  .device-property-panel {
    width: 100%;
    height: 100%;
    font-size: 14px;

    .property-img-info {
      height: 18%;
      margin: 5px;
      border: 5px solid gray;
    }

    .property-basic-info {
      .property-basic-info-label {
        height: 25px;

        label {
          float: left;
          padding-left: 1rem;
          font-size: 15px;
          text-align: left;
        }

        .img-line {
          position: relative;
          top: -9px;
          width: 73%;
        }

        .img-last-temp {
          position: relative;
          top: 0;
          right: 0;
        }
      }

      .amos-editable-normal-container {
        top: 5px;
        height: 2.5rem;
        overflow: hidden;
        font-family: 'Microsoft Tai Le';
        font-size: 15px;
        line-height: 2.8rem;
        color: #345fa6;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
      }

      .amos-editable-editing-container {
        .amos-input {
          font-family: 'Microsoft Tai Le';
          font-size: 15px;
          line-height: 2.5rem;
          color: #345fa6;
        }
      }

      .amos-editable-icon {
        display: inline-block;
        float: right;
        width: 2rem;
        color: #707070;
        text-align: center;
        cursor: pointer;
        background-color: #F0F0F0;
        border-left: 1px solid #CCC;
      }
    }

    .property-property-info {
      .property-property-info-title {
        height: 25px;

        label {
          float: left;
          padding-left: 1rem;
          font-size: 15px;
          text-align: left;
        }

        .img-line {
          position: relative;
          top: -9px;
          width: 73%;
        }

        .img-last-temp {
          position: relative;
          top: 0;
          right: 0;
        }
      }

      .device-property-text {
        padding: 0.3rem 0.5rem;

        label {
          font-size: 15px;
        }
      }
    }

    .property-interface-info {
      border-bottom: none;

      .property-interface-info-label {
        height: 25px;

        label {
          float: left;
          padding-left: 1rem;
          font-size: 15px;
          text-align: left;
        }

        .img-line {
          position: relative;
          top: -9px;
          width: 73%;
        }

        .img-last-temp {
          position: relative;
          top: 0;
          right: 0;
        }
      }

      .property-interface-text {
        padding: 0.3rem 0.5rem;

        label {
          float: left;
          width: 120px;
          font-size: 15px;
        }
      }
    }
  }

  .capacity-interface-panel {
    position: absolute;
    top: 0;
    display: none;
    right: calc(35rem - 25px + 32rem);
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgb(228, 228, 228);
    border-right: 1px solid rgb(180, 180, 180);
    border-left: 1px solid rgb(180, 180, 180);

    .capacity-interface-panel-content {
      .capacity-interface-basic {
        .capacity-interface-basic-label {
          height: 25px;

          label {
            float: left;
            padding-left: 1rem;
            font-size: 15px;
            text-align: left;
          }

          .img-line {
            position: relative;
            top: -9px;
            width: 73%;
          }

          .img-last-temp {
            position: relative;
            top: 0;
            right: 0;
          }
        }
      }

      .capacity-interface-property {
        border-bottom: none;

        .capacity-interface-property-label {
          height: 25px;

          label {
            float: left;
            padding-left: 1rem;
            font-size: 15px;
            text-align: left;
          }

          .img-line {
            position: relative;
            top: -9px;
            width: 73%;
          }

          .img-last-temp {
            position: relative;
            top: 0;
            right: 0;
          }
        }

        .capacity-interface-text {
          padding: 0.3rem 0.5rem;

          label {
            font-size: 15px;
          }
        }
      }
    }
  }

  .device-capacity-panel {
    position: absolute;
    top: 0;
    right: calc(35rem - 30px);
    z-index: 100;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #E4E4E4;
    border-right: 1px solid #B4B4B4;
    border-left: 1px solid #B4B4B4;

    .device-capacity-panel-content {
      .device-capacity-basic {
        .device-capacity-basic-label {
          height: 25px;

          label {
            float: left;
            padding-left: 1rem;
            font-size: 15px;
            text-align: left;
          }

          .img-line {
            position: relative;
            top: -9px;
            width: 73%;
          }

          .img-last-temp {
            position: relative;
            top: 0;
            right: 0;
          }
        }
      }

      .device-capacity-property {
        .device-capacity-property-label {
          height: 25px;

          label {
            float: left;
            padding-left: 1rem;
            font-size: 15px;
            text-align: left;
          }

          .img-line {
            position: relative;
            top: -9px;
            width: 73%;
          }

          .img-last-temp {
            position: relative;
            top: 0;
            right: 0;
          }
        }

        .device-capacity-text {
          padding: 0.3rem 0.5rem;

          label {
            font-size: 15px;
          }
        }
      }

      .device-capacity-interface {
        border-bottom: none;

        .device-capacity-interface-label {
          height: 25px;

          label {
            float: left;
            padding-left: 1rem;
            font-size: 15px;
            text-align: left;
          }

          .img-line {
            position: relative;
            top: -9px;
            width: 73%;
          }

          .img-last-temp {
            position: relative;
            top: 0;
            right: 0;
          }
        }

        .capacity-interface-text {
          padding: 0.3rem 0.5rem;

          label {
            float: left;
            width: 80px;
            font-size: 15px;
          }
        }
      }
    }
  }
}

