/* Progress view (leaderboard sub-view) */

.progress-view {
  width: 100%;
  margin-top: 8px;
}

.progress-empty {
  text-align: center;
  padding: 60px 24px;
  color: #718096;
  font-size: 15px;
}

/* Card around the chart */
.progress-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.progress-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.progress-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
}

.progress-card-sub {
  font-size: 13px;
  color: #718096;
  margin-top: 2px;
  max-width: 720px;
  line-height: 1.5;
}

.progress-card-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Reuse the shared .checkbox-container styling with a tighter footprint,
   since this lives in a card header rather than the main filter row. */
.progress-toggle.checkbox-container {
  padding: 4px 8px;
  gap: 6px;
}

.progress-toggle .checkbox-checkmark {
  height: 16px;
  width: 16px;
  border-width: 1.5px;
  border-radius: 4px;
}

.progress-toggle .checkbox-checkmark:after {
  width: 4px;
  height: 8px;
  border-width: 0 1.5px 1.5px 0;
}

.progress-toggle .checkbox-label {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

/* SVG */
.progress-svg-wrap {
  width: 100%;
  overflow: hidden;
}

.progress-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.progress-dot.hover circle:first-of-type {
  stroke: #047857;
  stroke-width: 2;
}

.progress-label {
  pointer-events: none;
}

/* Legend */
.progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  font-size: 12px;
  color: #4a5568;
  margin-top: 12px;
  padding: 0 4px;
}

.progress-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-legend-logo {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.progress-legend-logo img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.progress-legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2.5px dashed #047857;
}

.progress-footnote {
  font-size: 11.5px;
  color: #718096;
  margin-top: 10px;
  padding: 0 4px;
  line-height: 1.55;
}

.progress-footnote code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.95em;
  color: #475569;
}

@media (max-width: 720px) {
  .progress-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .progress-card-sub {
    max-width: 100%;
  }
}
