/* Imports, style iOS : pipeline en liste groupée, fiche et édition dans le panneau, réception en feuille.
   Les champs groupés (.cm-f, .cm-add, .cm-st, .cm-ta) viennent de commerce.css. */
.imp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .imp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.imp-st { display: flex; align-items: center; gap: 6px; }
.imp-st .gdot { width: 8px; height: 8px; }
.imp-right { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.imp-late, .imp-loss { color: var(--red); }

/* fiche */
.imp-title { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.imp-sub { gap: 6px; }
.imp-dpad { width: 60px; flex: none; }
.imp-iv { max-width: 60%; text-align: right; word-break: break-word; }
.imp-note { white-space: pre-wrap; }
.imp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px 0; }
.imp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.imp-step::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--fill-2); }
.imp-step:first-child::before { display: none; }
.imp-step.done::before, .imp-step.now::before { background: var(--green); }
.imp-step .b { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); }
.imp-step.done .b { background: var(--green); box-shadow: none; color: #fff; }
.imp-step.now .b { background: var(--accent); box-shadow: none; color: #fff; }
.imp-step .l { font-size: 13px; color: var(--muted); }
.imp-step.now .l { color: var(--text); font-weight: 600; }
.imp-table table.data td { white-space: nowrap; }
.imp-table table.data td:first-child { white-space: normal; min-width: 150px; }
.imp-m.good { color: var(--green); } .imp-m.mid { color: var(--orange); } .imp-m.bad { color: var(--red); }
.imp-lcards { display: none; }
@media (max-width: 640px) { .imp-table { display: none; } .imp-lcards { display: block; } }
.list > .item.imp-grand { font-weight: 600; }
.imp-cancel { background: var(--surface); }
.imp-dfoot { gap: 10px; }

/* édition */
.list > .item.imp-eline { flex-direction: column; align-items: stretch; gap: 10px; }
.imp-egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.imp-egrid.w { grid-template-columns: 1fr 1fr 1fr; }
.imp-egrid input { min-height: 38px; padding: 6px 10px; font-size: 16px; }
@media (max-width: 420px) { .imp-egrid.w { grid-template-columns: 1fr 1fr; } }
.list > .item.imp-ecost { gap: 8px; flex-wrap: wrap; }
.imp-kind { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 32px; padding: 0 10px; border-radius: 8px; background: var(--fill); color: var(--accent-text); font-size: 15px; font-weight: 500; }
.imp-elabel { min-width: 120px; min-height: 36px; padding: 4px 10px; font-size: 16px; }
.imp-amt { width: 110px; flex: none; min-height: 36px; padding: 4px 10px; text-align: right; font-size: 16px; }
.imp-pick { max-height: 55vh; overflow: auto; }
.list > .item.imp-dim { opacity: .5; }

/* réception */
.list > .item.imp-rline { flex-direction: column; align-items: stretch; gap: 6px; }
.imp-qty { flex: none; width: 96px; min-height: 36px; padding: 4px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.imp-exp { display: flex; color: var(--text); font-weight: 400; }
.imp-date { width: auto; min-height: 36px; padding: 4px 10px; font-size: 16px; }
.imp-rprev:empty { display: none; }
.imp-rtotal { margin-top: -4px; }

/* les feuilles ouvertes depuis le panneau (réception, choix d'article, confirmation) passent devant lui */
.imp-rhead { margin: 0 4px; }
