/* ===== Khối "Doanh nghiệp & hộ cá thể" (rail trái) — theo thiết kế hình 1 ===== */
.business-panel {
  display: flex;
  flex-direction: column;
}

.business__title {
  display: flex;
  align-items: center;
}

.business__title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grid 3 hàng: 2 thẻ số (LỚN) · header chart · chart (nhỏ lại). Cân lại để số dễ đọc,
   chart không nuốt hết chỗ. */
.business {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: var(--space-2);
  flex: 1;
  min-height: 0;
  padding: 0.1rem var(--space-3) var(--space-2);
}

/* 2 thẻ chỉ số cạnh nhau — chiếm hàng 1 (cao), nội dung căn giữa cho thoáng */
.business__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  min-height: 0;
}

.business__card {
  --tone: var(--color-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  border-left: 4px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 20%, transparent);
}

.business__card--blue { --tone: var(--color-blue); }
.business__card--cyan { --tone: var(--color-cyan); }

.business__card-label {
  color: var(--color-text);
  font-size: var(--text-3xs);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business__numrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.business__value {
  --stat-size: clamp(1.7rem, 3vh, 3.3rem);
  font-size: var(--stat-size);
  font-weight: 900;
  line-height: 1;
  color: var(--color-white);
}

.business__note {
  color: var(--color-text-soft);
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1.1;
}

.business__note--up {
  color: var(--color-mint);
  font-weight: 800;
}

/* Chip delta tăng — xanh lá; mũi tên + [%/"so quý trước"] xếp 2 dòng */
.business__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.45rem;
  color: var(--color-mint);
  background: color-mix(in srgb, var(--color-mint) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-mint) 30%, transparent);
  white-space: nowrap;
}

.business__delta-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.business__delta b {
  font-size: var(--text-sm);
  font-weight: 900;
}

.business__delta small {
  color: var(--color-text-soft);
  font-size: var(--text-2xs);
  font-weight: 700;
}

/* Header biểu đồ: tiêu đề "XU HƯỚNG…" + chú giải (đường liền blue / đứt cyan) */
.business__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.15rem var(--space-2);
  flex: none;
}

.business__chart-title {
  color: var(--color-text);
  font-size: var(--text-2xs);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.business__legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.7rem;
}

.business__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text-soft);
  font-size: var(--text-2xs);
  font-weight: 700;
  white-space: nowrap;
}

.business__legend-line {
  width: 1.1rem;
  height: 0;
  border-top: 3px solid var(--color-blue);
  border-radius: 2px;
}

.business__legend-line--dashed {
  border-top-style: dashed;
  border-top-color: var(--color-cyan);
}

.business__chart {
  min-height: 0;
}

.business__chart .home-echart {
  width: 100%;
  height: 100%;
  min-height: 2.2rem;
}
