/* Étape 5 : devis en 3 temps (devis-ui.js). Mêmes repères visuels que la facture (simple-ui.css). */
.dv-steps{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.dv-steps[hidden]{display:none}
.dv-steps button{border:1px solid #304f61;background:#0f2231;color:#a8c0cc;border-radius:9px;padding:10px 16px;font-size:14px}
.dv-steps button.cur{background:#23dcba;border-color:#1ce0b7;color:#032c2d;font-weight:800}
.dv-steps button.done{background:#16463b;border-color:#31856b;color:#93efd0}
.dv-steps button:disabled{cursor:default;opacity:1}
.dv-panel:empty,.dv-foot:empty{display:none}
.dv-panel{margin-bottom:14px}
.dv-banner{border:1px solid #3b769b;background:#12293a;color:#cdeaf6;border-radius:12px;padding:12px 14px;font-size:14px}
.dv-banner b{color:#f3cb89}
.dv-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:14px;align-items:start}
.dv-card{border:1px solid #304f61;background:#0f2231;border-radius:14px;padding:14px 16px}
.dv-title{font-weight:800;font-size:16px;margin-bottom:8px}
.dv-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.dv-head .dv-title{margin:0}
.dv-work{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #304f61;border-radius:12px;padding:11px 14px;margin:8px 0;background:#0b1c29}
.dv-work.urgent{border-left:4px solid #d46a6a}
.dv-work.later{border-left:4px solid #3b9bc9}
.dv-work.small{font-size:13px;color:#a8c0cc;padding:8px 14px}
.dv-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.05em;border-radius:6px;padding:2px 7px;margin-right:8px;vertical-align:1px}
.dv-tag.urg{background:#3a1f22;color:#f7b4b4;border:1px solid #8a3b3b}
.dv-tag.later{background:#193848;color:#cdeaf6;border:1px solid #3b769b}
.dv-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:12px}
.dv-total b{font-size:30px;font-weight:850;letter-spacing:-.02em}
.dv-choice{display:block;width:100%;text-align:left;border:1px solid #304f61;border-radius:12px;padding:12px 14px;margin:0 0 8px;background:#0b1c29;color:#e9fbf6;cursor:pointer}
.dv-choice:hover,.dv-choice:focus-visible{border-color:#1ce0b7;background:#153536}
.dv-choice b{display:block;font-size:15px}
.dv-choice small{display:block;color:#a8c0cc;font-size:12px;margin-top:2px}
.dv-big{width:100%;min-height:50px;font-size:16px;font-weight:800;margin-top:10px}
.dv-wide{width:100%;margin-top:8px}
.dv-foot{margin:14px 0}
.dv-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:10px}
.dv-seg{display:inline-flex;border:1px solid #3f6173;border-radius:10px;overflow:hidden}
.dv-seg button{background:#0f2231;color:#b9d0da;border:0;border-left:1px solid #3f6173;padding:8px 13px;font-size:13px}
.dv-seg button:first-child{border-left:0}
.dv-seg button.ok{background:#23dcba;color:#032c2d;font-weight:800}
.dv-seg button.later{background:#2a5d7a;color:#e6f6ff;font-weight:800}
.dv-seg button.no{background:#7a3434;color:#ffe9e9;font-weight:800}
.dv-chips{display:flex;gap:6px;flex-wrap:wrap}
.dv-chips button{border:1px solid #3f6173;background:#0f2231;color:#cfe3ea;border-radius:999px;padding:7px 14px;font-size:13px}
.dv-chips button.on{background:#23dcba;border-color:#1ce0b7;color:#032c2d;font-weight:800}
.dv-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.dv-sum div{border:1px solid #304f61;border-radius:10px;padding:10px 12px;background:#0b1c29}
.dv-sum div.ok{border-color:#2c9e86;background:#153536}
.dv-sum span{color:#a8c0cc;font-size:12px}
.dv-sum b{display:block;font-size:19px;margin-top:3px}
.dv-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:12px}
.dv-form label{display:grid;gap:4px;font-size:12px;color:#a8c0cc}
.dv-ok{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #2c9e86;background:#123a33;border-radius:14px;padding:14px 16px;margin-bottom:12px}
.dv-ok b{font-size:17px;color:#bff8ea}
.dv-ok span,.dv-muted{color:#a8c0cc;font-size:12px}
.dv-phone-layer{position:fixed;inset:0;z-index:80;background:rgba(3,12,18,.82);display:grid;place-items:center;padding:16px}
.dv-phone-layer[hidden]{display:none}
.dv-phone{position:relative;width:min(760px,100%);max-height:92vh;overflow:auto;font-size:21px;line-height:1.6;border:1px solid #3b769b;border-radius:16px;padding:22px 26px;background:#0b1c29;color:#e9fbf6}
.dv-phone .row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px dashed #284556;padding:6px 0}
.dv-phone .row.tot{font-weight:850;color:#5ae9c7;border-bottom:0}
.dv-phone .dv-expl{font-size:18px;margin:6px 0 14px}
.dv-phone .dv-tag{font-size:11px}
.dv-phone-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.dv-phone-actions .btn{font-size:15px}
.dv-close{position:absolute;top:10px;right:12px;background:transparent;border:0;color:#a8c0cc;font-size:26px;cursor:pointer}
.dv-relances{border:1px solid #304f61;background:#0f2231;border-radius:14px;padding:14px 16px;margin:12px 0}
.dv-relances[hidden]{display:none}
.dv-rel{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #304f61;border-radius:12px;padding:11px 14px;margin:8px 0;background:#0b1c29}
.dv-rel.late{border-color:#9d7948;background:#2b2a22}
.dv-plate{border:1px solid #6d8a99;border-radius:5px;padding:0 6px;font-size:12px;letter-spacing:.04em}
.dv-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:8px;border-radius:999px;background:#e5b363;color:#2b1d05;font-size:11px;font-weight:800}
.dv-badge[hidden]{display:none}
/* Pendant l'attente de réponse : la préparation et l'ancienne saisie d'accord passent derrière le panneau. */
.dv-prep #quote-actions,.dv-wait .invoice-draft-wrap,.dv-wait #manual-quote-status,.dv-on #quote-approval-demo{display:none!important}
.fs-group-head .dv-tag{margin-right:6px}
@media (max-width:820px){.dv-grid,.dv-sum{grid-template-columns:1fr}.dv-phone{font-size:18px;padding:18px}}
.dv-mo{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed #2c9e86;background:#103129;border-radius:10px;padding:9px 12px;margin:6px 0 10px 18px;font-size:13px}
.dv-mo-act{display:flex;align-items:center;gap:6px}.dv-mo-act input{width:76px!important;padding:6px!important}
