/* Progressi - Trainex */

.progressi-main {
  max-width: 1200px;
  margin: 0 auto;
}

.progressi-select-section {
  margin-bottom: 1.5rem;
}

.progressi-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.progressi-form .form-group {
  margin-bottom: 0;
}

.progressi-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted, #8b949e);
}

.progressi-form select {
  min-width: 220px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border, #30363d);
  border-radius: 8px;
  background: var(--bg-card, #161b22);
  color: inherit;
  font-size: 1rem;
}

.progressi-titolo {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent, #e85d04);
}

.progressi-chart-wrapper {
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border, #30363d);
  background: var(--bg-card, #161b22);
}

.progressi-chart-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted, #8b949e);
}

.progressi-chart-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #8b949e);
  margin-bottom: 1rem;
  line-height: 1.4;
  max-width: 56rem;
}

.progressi-chart-desc.hidden {
  display: none;
}

#progressiChart {
  max-height: 320px;
}

.progressi-content.hidden {
  display: none;
}

.progressi-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border, #30363d);
}

.tabella-progressi {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tabella-progressi th,
.tabella-progressi td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #30363d);
}

.tabella-progressi th {
  background: var(--bg-card, #161b22);
  color: var(--text-muted, #8b949e);
  font-weight: 600;
  white-space: nowrap;
}

.tabella-progressi tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tabella-progressi td:first-child,
.tabella-progressi th:first-child {
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
}

.tabella-progressi thead th:first-child {
  background: var(--bg-card, #161b22);
}

.progressi-placeholder,
.text-muted {
  color: var(--text-muted, #8b949e);
}
