.saas-device-planning-device-table {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;

  &__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 16px;
  }

  &__filters {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  &__add-button,
  &__empty-button {
    position: relative;
    z-index: 1;
  }

  &__table {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }

  &__device-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    .anticon {
      color: #1677ff;
    }
  }

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

  &__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 220px;
    padding: 32px 16px;
    text-align: center;
    color: rgba(0, 0, 0, 0.45);

    > .anticon {
      margin-bottom: 12px;
      font-size: 36px;
      color: rgba(0, 0, 0, 0.2);
    }
  }

  &__empty-title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.72);
  }

  &__empty-desc {
    margin-bottom: 12px;
    font-size: 13px;
  }

  :global(.ant-table-wrapper),
  :global(.ant-spin-nested-loading),
  :global(.ant-spin-container) {
    height: 100%;
  }
}

.saas-device-planning-device-table__row {
  cursor: pointer;
}
