.device-detail-drawer-root {
  .ant-drawer-content,
  .ant-drawer-wrapper-body,
  .ant-drawer-body {
    height: 100%;
  }

  .ant-drawer-body {
    padding: 0;
  }
}

.device-detail-drawer {
  .ant-drawer-body {
    height: 100%;
    padding: 0;
  }

  &__root {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  &__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #e6f4ff;
  }

  &__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1677ff;
  }

  &__heading {
    flex: 1;
    min-width: 0;
  }

  &__name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
  }

  &__type {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
  }

  &__content {
    flex: 1;
    min-height: 0;
    padding: 20px 24px;
    overflow: auto;
  }

  &__section-title {
    margin: 10px 0 12px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
  }

  &__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);
  }

  &__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;
    }
  }

  &__footer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
  }
}
