.add-device {
  .ant-upload.ant-upload-select-picture-card {
    width: 320px;
    height: 180px;

    > .ant-upload {
      padding: 0;
    }
  }
}

.device-detail-basic-img {
  .ant-upload.ant-upload-select-picture-card {
    width: 320px;
    height: 180px;

    > .ant-upload {
      padding: 0;
    }
  }
}

.device-add-button-disable {
  width: 128px;
  line-height: 30px;
  color: white;
  padding: 0 15px;
  font-size: 15px;
  border-radius: 4px;
  height: 36px;
  outline: 0;
  display: inline-block;
  margin: 5px;
  font-weight: 500;
  text-align: center;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: default;
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  position: relative;
  background: -webkit-linear-gradient(#CCCCCC,#999999);
  background: -o-linear-gradient(#CCCCCC,#999999);
  background: -moz-linear-gradient(#CCCCCC,#999999);
  background: -mos-linear-gradient(#CCCCCC,#999999);
  background: linear-gradient(#CCCCCC,#999999);

  a {
    color: white;
    text-decoration: none;
    cursor: default;

    &:hover {
      text-decoration: none;
      color: white;
      cursor: default;
    }
  }
}

.device-add-button {
  width: 128px;
  line-height: 30px;
  color: white;
  padding: 0 15px;
  font-size: 15px;
  border-radius: 4px;
  height: 36px;
  outline: 0;
  display: inline-block;
  margin: 5px;
  font-weight: 500;
  text-align: center;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  position: relative;
  background: -webkit-linear-gradient(#1789BC,#32679A);
  background: -o-linear-gradient(#1789BC,#32679A);
  background: -moz-linear-gradient(#1789BC,#32679A);
  background: -mos-linear-gradient(#1789BC,#32679A);
  background: linear-gradient(#1789BC,#32679A);

  a {
    color: white;
    text-decoration: none;

    &:hover {
      text-decoration: none;
      color: white;
    }
  }

  &:hover {
    background: -webkit-linear-gradient(#306A9D,#306A9D);
    background: -o-linear-gradient(#306A9D,#306A9D);
    background: -moz-linear-gradient(#306A9D,#306A9D);
    background: -mos-linear-gradient(#306A9D,#306A9D);
    background: linear-gradient(#306A9D,#306A9D);
  }

}

.device-common-cell {
  width: 278px;
  float: left;
  height: 172px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 6px 0 #BDBDBD;
  border: 1px solid #E7E7E7;
  margin: 10px 5px;

  .device-detail-title {
    height: 40px;
    line-height: 20px;
    border-radius: 10px 10px 0 0;
    background-image: linear-gradient(to top, #F3F3F3, white);

    &::before {
      content: "";
      border-width: 3px;
      border-style: solid;
      border-color: #306A9D;
      border-radius: 2px;
      left: 18px;
      position: relative;
      top: 9px;
    }

    .device-detail-title-name {
      color: #333;
      font-weight: bold;
      font-size: 15px;
      position: relative;
      top: -11px;
      left: 11px;
    }

    .device-detail-title-button {
      float: right;
      border: none;
      background-color: transparent;
      padding-top: 10px;
      position: relative;
      top: -18px;
    }
  }

  .device-detail-title-content {
    background-color: white;
    height: 132px;
    color: #666;
    display: inherit;
    font-size: 14px;
    line-height: 26px;

    &:first-child {
      padding-left: 20px;
      padding-top: 15px;
    }

    &:not(:first-child) {
      padding-left: 20px;
    }
  }
}

.small-device-common-cell {
  width: 88px;
  float: left;
  height: 28px;
  border-radius: 10px;
  box-shadow: 0 0 6px 0 #BDBDBD;
  border: 1px solid #E7E7E7;
  margin-top: 6px;
  margin-left: 6px;

  .device-detail-title {

    .device-detail-title-name {
      position: relative;
      top: -2px;
      left: 7px;
      color: #333;
      font-size: 13px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .device-detail-title-button {
      float: right;
      border: none;
      background-color: transparent;
      padding-top: 0;
    }
  }

  .device-detail-title-content {
    display: none;
  }
}
