/* Thống kê số lượng tham dự theo lớp — thanh ngang dưới bảng danh sách tham dự */
.class-stats {
  margin-top: 22px;
  padding: 22px 24px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.cstat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cstat-title {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.cstat-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
}

.cstat-total {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-deep);
  white-space: nowrap;
  padding-top: 4px;
}

/* Cột tên lớp cố định để mọi thanh bắt đầu thẳng hàng bên trái */
.cstat-row {
  display: grid;
  grid-template-columns: 118px 1fr 44px;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}

.cstat-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cstat-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  overflow: hidden;
}

.cstat-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan-deep) 70%, var(--ink-2));
  transition: width 0.6s ease;
}

.cstat-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-deep);
  text-align: right;
}

@media (max-width: 560px) {
  .class-stats { padding: 16px 14px 12px; }
  .cstat-row { grid-template-columns: 92px 1fr 36px; gap: 8px; }
}
