.ca-segment-head {
  margin-bottom: 12px;
}

.ca-segment-title {
  font-size: 16px;
  font-weight: 600;
  color: rgb(0 0 0 / 88%);
}

.ca-segment-desc {
  margin-top: 3px;
  font-size: 13px;
  color: rgb(0 0 0 / 45%);
}

.ca-segment-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;

  .ca-segment-search {
    width: 260px;
  }
}

.ca-segment-table {
  .ant-table-thead > tr > th {
    white-space: nowrap;
    background: #f8f9fb;
  }

  .ant-pagination {
    margin: 14px 0 0;
  }
}

.ca-segment-customer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ca-segment-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-radius: 50%;
}

.ca-segment-customer-main {
  min-width: 0;
}

.ca-segment-customer-name {
  font-weight: 500;
  color: rgb(0 0 0 / 88%);
}

.ca-segment-customer-phone {
  margin-top: 2px;
  font-size: 12px;
  color: rgb(0 0 0 / 45%);
}

.ca-segment-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;

  .ant-tag {
    margin-inline-end: 0;
  }
}

.ca-segment-action-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ca-segment-action {
  padding-inline: 0;
}

.ca-segment-row-dimmed td {
  opacity: 0.55;
}

.ca-segment-row-dimmed:hover td {
  opacity: 0.78;
}

.ca-member-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.ca-member-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: #1677ff;
  border-radius: 50%;
}

.ca-member-head-main {
  min-width: 0;
}

.ca-member-name-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ca-member-name {
  font-size: 16px;
  font-weight: 600;
  color: rgb(0 0 0 / 88%);
}

.ca-member-meta {
  margin-top: 3px;
  font-size: 12px;
  color: rgb(0 0 0 / 45%);
}

.ca-member-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.ca-member-ov-item {
  padding: 12px 8px;
  text-align: center;
  background: #f8f9fb;
  border-radius: 8px;
}

.ca-member-ov-val {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 700;
  color: rgb(0 0 0 / 88%);
  white-space: nowrap;
}

.ca-member-ov-label {
  margin-top: 4px;
  font-size: 11px;
  color: rgb(0 0 0 / 45%);
}

.ca-member-section {
  margin-bottom: 20px;
}

.ca-member-section-title {
  padding-left: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: rgb(0 0 0 / 88%);
  border-left: 3px solid #1677ff;
}

.ca-member-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  .ant-tag {
    margin-inline-end: 0;
  }
}

.ca-member-empty-text {
  font-size: 13px;
  color: rgb(0 0 0 / 45%);
}

.ca-member-order-table {
  .ant-table-thead > tr > th {
    font-size: 12px;
    white-space: nowrap;
    background: #f8f9fb;
  }
}

.ca-member-order-status {
  font-weight: 600;

  &.success {
    color: #52c41a;
  }

  &.danger {
    color: #ff4d4f;
  }

  &.processing {
    color: #1677ff;
  }

  &.default {
    color: rgb(0 0 0 / 65%);
  }
}
