/* 统一进度条（实时百分比） */

.iar-progress {
  --iar-progress-height: 16px;
}

.iar-progress .iar-progress-track {
  height: var(--iar-progress-height);
  overflow: hidden;
  background-color: var(--bs-secondary-bg, #e9ecef);
}

.iar-progress .iar-progress-bar {
  transition: width 0.28s ease;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

/* 进度很小时，百分比改显示在条外（避免挤在窄条内看不见） */
.iar-progress .iar-progress-bar.iar-progress-bar-empty {
  color: var(--bs-secondary-color, #6c757d);
  /* 文字画在轨道左侧，由 count 区承担百分比时可不依赖此色 */
}

.iar-progress-inline .iar-progress-msg {
  color: var(--bs-secondary-color, #6c757d);
}

.iar-progress-card .iar-progress-msg {
  font-weight: 600;
}

.iar-progress-count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 2.75rem;
  text-align: right;
}

.iar-progress-items {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  color: var(--bs-body-color, #212529);
}

.iar-progress-meta {
  gap: 0.65rem;
}

.iar-progress-header {
  gap: 0.5rem;
}

.iar-progress-done.is-visible,
.iar-progress-done:not(.d-none) {
  display: block;
}

/* 不确定进度：条纹动画保持满宽视觉反馈 */
.iar-progress-bar.is-indeterminate {
  width: 100% !important;
}

/* 隐藏兼容：Bootstrap d-none 与原生 hidden */
.iar-progress[hidden] {
  display: none !important;
}
