/* Ripartizioni per stato affiancate (breakdown.js / BreakdownComponent):
   anello con il totale, dato chiave, righe con barra. Sfumature solo nei
   colori dello stile, niente bordini colorati. */
.breakdown { display: flex; flex-direction: column; gap: 18px; }
.breakdown__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.breakdown__heading { margin: 0; font-family: var(--font-heading); font-size: 19px; font-weight: 600; letter-spacing: -0.3px; }
.breakdown__subtitle { margin: 4px 0 0; font-size: 13px; color: rgba(18, 51, 63, 0.6); }
.breakdown__legend { display: flex; gap: 14px; font-size: 12px; color: rgba(18, 51, 63, 0.7); }
.breakdown__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.breakdown__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.breakdown__group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-lg, 16px);
    background:
        radial-gradient(110% 80% at 0% 0%, rgba(18, 51, 63, 0.07), transparent 45%),
        radial-gradient(110% 80% at 100% 100%, rgba(229, 201, 121, 0.22), transparent 50%),
        #fff;
    border: 1px solid rgba(18, 51, 63, 0.08);
    box-shadow: 0 1px 2px rgba(18, 51, 63, 0.04);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s, transform 0.15s;
}
a.breakdown__group:hover { box-shadow: 0 10px 26px rgba(18, 51, 63, 0.1); transform: translateY(-1px); }

.breakdown__head { display: flex; align-items: center; gap: 14px; }
.breakdown__head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.breakdown__title { margin: 0; font-family: var(--font-heading); font-size: 15px; font-weight: 600; }
.breakdown__chip { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.breakdown__chip--success { background: #e1efe5; color: #3d6b4f; }
.breakdown__chip--warning { background: #fbf0cf; color: #8a6510; }
.breakdown__chip--danger { background: #f8e3df; color: #9b3b30; }
.breakdown__chip--info { background: #e2edf2; color: #2f5f78; }
.breakdown__arrow { align-self: flex-start; color: rgba(18, 51, 63, 0.4); }
.breakdown__arrow svg { width: 14px; height: 14px; display: block; }
a.breakdown__group:hover .breakdown__arrow { color: var(--color-petrol); }

.breakdown__donut { position: relative; flex: 0 0 72px; width: 72px; height: 72px; }
.breakdown__donut-svg { display: block; }
.breakdown__donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.breakdown__donut-center strong { font-family: var(--font-heading); font-size: 20px; letter-spacing: -0.5px; }
.breakdown__donut-center span { margin-top: 3px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(18, 51, 63, 0.5); }

.breakdown__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.breakdown__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 10px; align-items: center; }
.breakdown__label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.breakdown__label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown__label-text::first-letter { text-transform: uppercase; }
.breakdown__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.breakdown__value { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.breakdown__value strong { font-family: var(--font-heading); font-size: 15px; }
.breakdown__percent { min-width: 34px; text-align: right; font-size: 11.5px; color: rgba(18, 51, 63, 0.55); }
.breakdown__track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(18, 51, 63, 0.07); overflow: hidden; }
.breakdown__fill { display: block; height: 100%; border-radius: 999px; }
.breakdown__empty { margin: 0; font-size: 13px; color: rgba(18, 51, 63, 0.55); }

/* Toni: verde = fatto, giallo = in corso, rosso = da sbloccare, blu = avviato. */
.breakdown--success { background: #4f8a64; }
.breakdown--warning { background: #d49a2a; }
.breakdown--danger { background: #c0533f; }
.breakdown--info { background: #4a7f9c; }
.breakdown--neutral { background: #8b83ad; }
