.pipeline-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0 18px}.pipeline-controls label{font-size:12px;min-width:135px}.pipeline-controls input,.pipeline-controls select{padding:9px 12px}.pipeline-metrics .metric{border-bottom:3px solid #b8c5cc;min-width:0}.pipeline-metrics .metric>strong{font-size:clamp(21px,2vw,30px);line-height:1.3;overflow-wrap:normal}.pipeline-metrics .metric>strong .currency{display:inline;font-size:12px;white-space:nowrap}.pipeline-badge{display:inline-block;align-self:start;width:max-content;font-size:11px!important;font-weight:600;padding:4px 8px;border-radius:20px;background:#eef1f4;color:#536676;margin-top:9px;max-width:100%}.pipeline-metrics .pipeline-alert{border-bottom-color:#b9273c}.pipeline-alert .pipeline-badge{color:#a71b32;background:#fde9ed}.pipeline-metrics .pipeline-minimum{border-bottom-color:#b77b0b}.pipeline-minimum .pipeline-badge{color:#875800;background:#fff2cd}.pipeline-metrics .pipeline-central{border-bottom-color:#165fc1}.pipeline-central .pipeline-badge{color:#174fa0;background:#eaf2ff}.pipeline-metrics .pipeline-over{border-bottom-color:#008947}.pipeline-over .pipeline-badge{color:#087444;background:#e5f6ed}.pipeline-summary{display:flex;gap:8px 20px;flex-wrap:wrap;font-size:12px;margin:12px 0}.pipeline-summary>span{color:#647b8c}.pipeline-details{font-size:13px;margin:0 0 22px;border-top:0!important}.pipeline-details>summary{color:#41647b;font-size:12px}.pipeline-details table{min-width:700px}.pipeline-details th,.pipeline-details td{text-align:left;padding:12px}.pipeline-details .table-wrap{margin:15px 0}.pipeline-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.pipeline-entry-grid fieldset{min-width:0;display:grid;gap:12px;border:1px solid #dbe5ec;border-radius:10px;padding:18px}.pipeline-entry-grid legend{font-weight:700;font-size:14px}.pipeline-settings form{gap:20px}.pipeline-settings>.editor{margin-top:28px}@media(max-width:760px){.pipeline-controls{gap:10px}.pipeline-controls label{flex:1;min-width:130px}.pipeline-entry-grid{grid-template-columns:1fr}.pipeline-metrics .metric>strong{font-size:24px}}

/* Dashboard administrateur uniquement : données et états issus du pipeline existant. */
.dash-pipeline .pipeline-controls{display:grid;grid-template-columns:1.1fr 1fr 1.1fr;gap:24px;background:white;border:1px solid #e5ecf2;padding:22px 24px;border-radius:17px;box-shadow:0 5px 22px #17385505;margin:0 0 22px}
.dash-pipeline .pipeline-controls label{margin:0;min-width:0;color:#536b86;font-size:13px}.dash-pipeline .pipeline-controls select,.dash-pipeline .pipeline-controls input{min-height:46px;border:1px solid #dce6ef;border-radius:9px;color:#102d48;font-weight:600;padding:10px 13px;background-color:#fff}
.dash-pipeline-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.dash-pipeline-card{--accent:#008c54;--soft:#e6f6ee;position:relative;min-width:0;background:#fff;border:1px solid #edf1f6;border-left:4px solid var(--accent);border-radius:17px;padding:23px 20px 17px;box-shadow:0 8px 24px #16344b06;display:flex;flex-direction:column}
.dash-pipeline-card.metric-won{--accent:#2586eb;--soft:#eaf3ff}.dash-pipeline-card.metric-cash_ht{--accent:#8e45d9;--soft:#f1e9fc}.dash-pipeline-card.metric-retained{--accent:#ec940e;--soft:#fff4e4}
.dash-metric-icon{width:51px;height:51px;display:grid;place-items:center;background:var(--soft);color:var(--accent);border-radius:50%;margin-bottom:17px}.dash-metric-icon svg{width:25px;height:25px}
.dash-pipeline-card h3{font-size:15px;font-weight:600;line-height:1.4;color:#536b86;min-height:42px;margin:0 0 9px}
.dash-metric-value{font-size:clamp(24px,2.1vw,38px);font-weight:750;line-height:1.25;letter-spacing:-1px;color:#0b2445;overflow-wrap:anywhere;min-height:48px}.dash-metric-value small{font-size:12px;letter-spacing:0;white-space:nowrap}
.dash-pipeline-card .pipeline-badge{margin:9px 0 21px;font-size:11px!important;padding:5px 11px}
.dash-progress-row{display:flex;align-items:center;gap:12px;font-size:12px;color:#18344e}.dash-progress{height:10px;border-radius:20px;background:#edf1f7;overflow:hidden;flex:1}.dash-progress i{display:block;height:100%;border-radius:20px;background:#4d98f2}.pipeline-alert .dash-progress i{background:#fa6571}.pipeline-minimum .dash-progress i{background:#efac12}.pipeline-over .dash-progress i{background:#00a66a}
.dash-targets{display:flex;justify-content:space-between;gap:8px;margin:12px 0 20px;font-size:11px;line-height:1.5;color:#60758d}.dash-targets span:last-child{text-align:right}.dash-targets b{font-weight:600}.dash-targets span:first-child{color:#1b3752}
.dash-comparison{margin-top:auto;background:#f4f7fa;border-radius:12px;padding:15px 13px;display:grid;gap:7px;min-height:115px;border-top:1px solid #f0f3f7}.dash-comparison>span{font-size:11px;color:#637b92}.dash-comparison strong{font-size:19px;line-height:1.35;color:#566d80}.dash-comparison small{font-size:11px;color:#657b91}.dash-comparison.up{background:#eff9f3}.dash-comparison.up strong{color:#008447}.dash-comparison.down{background:#fff2f4}.dash-comparison.down strong{color:#c83048}
.dash-comparison-note{font-size:12px;color:#6b7d8e;margin:14px 0}.dash-pipeline .pipeline-summary{margin-top:18px}.dash-pipeline .pipeline-details{background:#fff;border:1px solid #e5ecf2!important;border-radius:12px;padding:16px}
@media(max-width:1350px){.dash-pipeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-metric-value{font-size:32px}.dash-pipeline-card h3{min-height:22px}}
@media(max-width:760px){.dash-pipeline .pipeline-controls{grid-template-columns:1fr;gap:14px;padding:18px}.dash-pipeline-grid{grid-template-columns:1fr}.dash-pipeline-card{padding:21px}.dash-metric-value{font-size:32px}}
