/* route: Progressi — Blocco 8 · B7B2a. Estratto da progressi.html inline. */
[data-route="progressi"] .card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; margin-bottom: 13px;
  box-shadow: 0 6px 20px rgba(60, 90, 60, .06);
}
[data-route="progressi"] .card > h2 { margin: 0 0 4px; font-size: .95rem; }
[data-route="progressi"] .card .sub { margin: 0 0 10px; font-size: .72rem; color: var(--muted); }

[data-route="progressi"] .periodo { display: flex; gap: 6px; margin-bottom: 14px; }
[data-route="progressi"] .periodo button {
  flex: 1; border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 11px; padding: 8px 4px; font: 600 .8rem 'Poppins', Arial, sans-serif; cursor: pointer;
}
[data-route="progressi"] .periodo button.on { border-color: var(--green); background: var(--green-soft); color: var(--ink); }
[data-route="progressi"] .periodo-nota { font-size: .72rem; color: var(--muted); margin: -8px 2px 14px; }

[data-route="progressi"] .stato { font-size: .82rem; color: var(--muted); padding: 12px 2px; line-height: 1.5; }
[data-route="progressi"] .stato.err { color: #b4453c; }

[data-route="progressi"] .metriche, [data-route="progressi"] .grafsel { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
[data-route="progressi"] .metriche button, [data-route="progressi"] .grafsel button {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 9px; padding: 5px 10px; font: 600 .74rem 'Poppins', Arial, sans-serif; cursor: pointer;
}
[data-route="progressi"] .metriche button.on, [data-route="progressi"] .grafsel button.on { border-color: var(--green); background: var(--green-soft); color: var(--ink); }

[data-route="progressi"] .chart-host { min-height: 40px; margin: 4px 0 6px; }
[data-route="progressi"] .kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; font-size: .8rem; margin: 8px 0; }
[data-route="progressi"] .kv > div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--line); }
[data-route="progressi"] .kv > div:last-child, [data-route="progressi"] .kv > div:nth-last-child(2):nth-child(odd) { border-bottom: none; }
[data-route="progressi"] .kv b { color: var(--ink); font-weight: 600; }
[data-route="progressi"] .kv .na { color: var(--muted); font-style: italic; }
[data-route="progressi"] .riga-info { font-size: .78rem; color: #44513f; line-height: 1.5; margin: 6px 0 2px; }
[data-route="progressi"] .riga-info .muted { color: var(--muted); }
[data-route="progressi"] .cov { font-size: .74rem; color: var(--muted); margin-top: 6px; }

[data-route="progressi"] .tl { display: grid; gap: 6px; }
[data-route="progressi"] .tl a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: .8rem; background: #fff;
}
[data-route="progressi"] .tl a:active { background: var(--green-soft); }
[data-route="progressi"] .tl .tl-data { font-weight: 600; flex: none; min-width: 96px; }
[data-route="progressi"] .tl .tl-badges { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
[data-route="progressi"] .tl .b { font-size: .68rem; border-radius: 7px; padding: 1px 6px; background: #f0f4ee; color: #55635a; }
[data-route="progressi"] .tl .b.mis { background: #eef4fb; color: #3f6b8f; }
[data-route="progressi"] .tl .b.cibo { background: #eef7ef; color: #3a7d4e; }
[data-route="progressi"] .tl .b.mov { background: #fdf1e6; color: #b06f2e; }
[data-route="progressi"] .tl .chev { color: var(--muted); flex: none; }

@media (min-width: 760px) {
  [data-route="progressi"] #griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  [data-route="progressi"] .card { margin-bottom: 0; }
  [data-route="progressi"] #card-timeline { grid-column: 1 / -1; }
}
