.device-detail-drawer {
  &__card {
    border-radius: 10px;

    & + & {
      margin-top: 12px;
    }

    .ant-card-head {
      min-height: 42px;
      padding: 0 16px;
    }

    .ant-card-head-title {
      padding: 10px 0;
      font-size: 14px;
      font-weight: 600;
    }

    .ant-card-body {
      padding: 16px;
    }
  }

  &__info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;

    > span:first-child {
      color: rgba(0, 0, 0, 0.55);
    }

    strong {
      font-weight: 600;
      color: rgba(0, 0, 0, 0.88);
    }
  }

  &__info-two-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;

    > span:first-child {
      color: rgba(0, 0, 0, 0.55);
    }

    strong {
      font-weight: 600;
      color: rgba(0, 0, 0, 0.88);
    }
  }

  &__profile-card {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f5f6f8;
    color: rgba(0, 0, 0, 0.72);
  }

  &__report-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__last-seen {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.45);
  }

  &__report-card {
    border-radius: 8px;
    background: #fafafa;

    .ant-card-head {
      min-height: 38px;
      padding: 0 12px;
    }

    .ant-card-head-title {
      padding: 8px 0;
      font-size: 13px;
      font-weight: 600;
    }

    .ant-card-body {
      padding: 12px;
    }
  }

  &__report-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
  }

  &__report-label {
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.55);
  }

  &__report-value,
  &__json-value {
    min-width: 0;
    color: rgba(0, 0, 0, 0.88);
    text-align: right;
    word-break: break-word;
  }

  &__battery-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  &__battery-icon {
    position: relative;
    box-sizing: border-box;
    width: 24px;
    height: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.65);
    border-radius: 3px;

    &::before {
      position: absolute;
      top: 2px;
      right: -4px;
      width: 2px;
      height: 6px;
      border-radius: 0 2px 2px 0;
      background: rgba(0, 0, 0, 0.65);
      content: '';
    }

    &.is-charging {
      border-color: #16a34a;

      &::before {
        background: #16a34a;
      }
    }
  }

  &__battery-fill {
    position: absolute;
    top: 2px;
    left: 2px;
    max-width: 17px;
    height: 5px;
    border-radius: 1px;
    background: #16a34a;
  }

  &__battery-bolt {
    position: absolute;
    top: -3px;
    left: 8px;
    width: 7px;
    height: 14px;
    background: #f59e0b;
    clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 35% 100%, 48% 56%, 0 56%);
  }

  &__battery-status {
    color: #16a34a;
  }

  &__online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  &__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);

    &.is-online {
      background: #16a34a;
    }
  }
}
