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