/* ===== Khối "Giải quyết TTHC" — snapshot 1 kỳ (hero + 3 chỉ số vòng tròn + thanh cơ cấu kênh) ===== */
/* Admin snapshot KHÔNG có chart → body 1 hàng phủ hết chiều cao (tránh grid auto 1fr để
   lại khoảng trống dưới). Nội dung tự dàn đều: hero+stats giữa, kênh tiếp nhận dưới đáy. */
.trend-card--admin .trend-card__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: var(--space-2) var(--space-4) var(--space-3);
}

.admin-snapshot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
  min-height: 0;
  padding-top: var(--space-1);
}

.admin-snapshot__top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1 1 auto;
  min-height: 0;
}

.admin-snapshot__hero {
  display: flex;
  flex-direction: column;
  flex: none;
  padding-right: var(--space-4);
  border-right: 1px solid color-mix(in srgb, var(--color-cyan) 22%, transparent);
}

.admin-snapshot__value {
  --stat-size: clamp(1.65rem, 2.6vh, 2.45rem);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: var(--stat-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.admin-snapshot__unit {
  display: inline-block;
  margin-top: 0;
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  font-weight: 700;
}

.admin-snapshot__stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-3);
  flex: 1 1 auto;
  min-width: 0;
}

.admin-stat {
  --tone: var(--color-cyan);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.admin-stat__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  color: var(--tone);
  border: 2px solid color-mix(in srgb, var(--tone) 50%, transparent);
  box-shadow:
    inset 0 0 0.55rem color-mix(in srgb, var(--tone) 20%, transparent),
    0 0 0.5rem color-mix(in srgb, var(--tone) 18%, transparent);
}

.admin-stat__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-stat__label {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.admin-stat__value {
  color: var(--tone);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.05;
}

.admin-stat__value small {
  font-size: var(--text-sm);
  font-weight: 800;
}

.admin-channels {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: none;
}

.admin-channels__title {
  color: var(--color-text-soft);
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-channels__bar {
  display: flex;
  gap: 0.3rem;
}

.admin-channel {
  --tone: var(--color-cyan);
  /* basis auto + min-width mặc định (content): segment rộng tối thiểu vừa chữ, KHÔNG co cắt
     nhãn; phần dư chia theo --w (tỉ lệ 9/31/60) → đọc được hết mà vẫn thấy tương quan. */
  flex: var(--w) 1 auto;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.42rem 0.6rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--tone) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 38%, transparent);
  color: var(--color-text);
  overflow: hidden;
}

.admin-channel__icon {
  flex: none;
  display: flex;
  color: var(--tone);
}

.admin-channel__label {
  min-width: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-channel__pct {
  margin-left: auto;
  font-size: var(--text-md);
  font-weight: 900;
  white-space: nowrap;
}

/* Toàn trình = kênh số hoá cao nhất → sáng + glow (đỉnh ramp tối→sáng) */
.admin-channel--primary {
  background: color-mix(in srgb, var(--tone) 58%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tone) 72%, transparent),
    0 0 0.8rem color-mix(in srgb, var(--tone) 42%, transparent);
  color: var(--color-white);
}

.admin-channel--primary .admin-channel__icon {
  color: var(--color-white);
}

.admin-channel--primary .admin-channel__pct {
  font-size: var(--text-lg);
}
