/* ============================================================
   kdp-pilotage-argent.css : « Où part l'argent ? » de l'onglet Pilotage (PilotageArgent.razor), d'après la maquette design/pilotage_ou_part_argent.html.
   Réutilise les classes .pl-* de kdp-pilotage.css ; ici seulement ce qui est propre à ce bloc (.pa-*).
   ============================================================ */
.pa-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.pa-t { border: 1px solid var(--sol-line); border-radius: 12px; padding: 12px 16px; background: #fff; }
.pa-q { font-weight: 600; color: var(--sol-muted); font-size: 13.5px; }
.pa-n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.pa-n small { font-size: 13px; color: var(--sol-muted); margin-left: 4px; font-weight: 600; letter-spacing: 0; }

.pa-table th:nth-child(1), .pa-table td:nth-child(1), .pa-table th:nth-child(2), .pa-table td:nth-child(2), .pa-table th:nth-child(5), .pa-table td:nth-child(5),
.pa-table th:nth-child(6), .pa-table td:nth-child(6), .pa-table th:nth-child(7), .pa-table td:nth-child(7) { text-align: left; }
.pa-table td { vertical-align: top; }
.pa-sm { display: block; color: var(--kdp-placeholder); font-size: 12px; font-weight: 600; }
.pa-mu { color: var(--kdp-placeholder); }
.pa-cls { display: inline-block; border-radius: 6px; padding: 0 7px; font-size: 11.5px; font-weight: 700; background: var(--kdp-neutre-bg); color: var(--sol-muted); margin-right: 6px; }
.pa-gauge-td { min-width: 170px; }
.pa-gauge { position: relative; height: 10px; border-radius: 6px; background: var(--kdp-track); min-width: 120px; overflow: hidden; }
.pa-gauge i { display: block; height: 100%; border-radius: 6px; background: #d97706; }
.pa-gauge i.pa-full { background: #b42318; }
.pa-gauge.pa-prov i { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 4px, rgba(255, 255, 255, 0) 4px 8px); background-color: #d97706; }
.pa-lien { color: var(--sol-accent); font-weight: 700; }

.pa-det { margin-top: 14px; border: 1px solid var(--sol-line); border-radius: 14px; padding: 16px 18px; background: var(--kdp-raised, #faf8f3); }
.pa-det h3 { margin: 0 0 4px; font-size: 16px; }
.pa-det h3 .pl-chip { margin-left: 8px; vertical-align: middle; }
.pa-detsub { color: var(--sol-muted); font-size: 13.5px; }
.pa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.pa-bx { background: #fff; border: 1px solid var(--sol-line); border-radius: 12px; padding: 12px 14px; }
.pa-t2 { display: block; font-size: 13px; color: var(--kdp-placeholder); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.pa-p { font-size: 14.5px; margin: 2px 0 8px; }
.pa-m { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.pa-m > span:first-child { color: var(--sol-muted); }
.pa-note { color: var(--kdp-placeholder); font-size: 12.5px; margin-top: 6px; }
.pa-up { color: var(--kdp-pos); }
.pa-nb { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sol-accent); color: #fff; font-weight: 700; font-size: 11.5px; margin-right: 4px; vertical-align: 1px; }

@media (max-width: 1000px) {
    .pa-sum, .pa-row2 { grid-template-columns: 1fr; }
}
.pa-segs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pa-arr { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--kdp-track); color: var(--sol-muted); font-size: 14px; }
.pa-modifs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--sol-muted); }
.pa-modifs li { display: flex; align-items: center; gap: 6px; }
.pa-nbc { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #2f5fa8; color: #fff; font-weight: 700; font-size: 11.5px; margin-right: 4px; vertical-align: 1px; }
.pa-warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fdf1e3; color: #7c3f06; font-size: 14px; }

/* « Qu'est-ce qui rapporte ? » (miroir de « Où part l'argent ? ») */
.pa-pos { color: var(--kdp-pos, #14683a); }
.pa-gauge.pa-ok i { background: #14683a; }
.pr-table th:nth-child(1), .pr-table td:nth-child(1), .pr-table th:nth-child(7), .pr-table td:nth-child(7), .pr-table th:nth-child(8), .pr-table td:nth-child(8) { text-align: left; }
.pr-table td { vertical-align: top; }
.pr-rb { height: 6px; border-radius: 4px; background: var(--kdp-track); margin: 4px 0 0 auto; width: 90px; overflow: hidden; }
.pr-rb i { display: block; height: 100%; }
.pr-rb i.pr-up { background: #14683a; }
.pr-rb i.pr-dn { background: #b42318; }
.pr-graph { margin-top: 16px; }
.pr-h3 { font-size: 16px; font-weight: 700; margin: 20px 0 0; }
