/* Sorti de new-order.php le 19/09/2026 — deux blocs reunis dans leur ordre.
 *
 * Les feuilles etaient ecrites dans la page, ce qui obligeait la politique
 * de securite a autoriser 'unsafe-inline' sur style-src. Deplacees sans une
 * modification. */

/* ── full-viewport lock ── */
html,body{height:100%;overflow:hidden;}
.app{height:100vh;overflow:hidden;}
.main{height:100vh;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
.wiz-shell{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;}

/* ── page header ── */
.wiz-page-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-5) var(--space-8) 0;flex-shrink:0;}
.wiz-page-kicker{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--psg-gold-dark,#b8860b);margin-bottom:2px;}
.wiz-page-title{font-size:1.5rem;font-weight:900;color:var(--psg-navy);margin:0;line-height:1.1;}

/* ── step bar — floating card ── */
.wiz-steps{display:flex;align-items:center;margin:var(--space-5) var(--space-8) 0;background:#fff;border:1px solid #d9d9d9;border-radius:10px;padding:0 var(--space-5);flex-shrink:0;overflow:hidden;}
.wiz-step{display:flex;align-items:center;gap:10px;padding:14px 0;flex:1;position:relative;cursor:default;}
.wiz-step:not(:last-child)::after{content:'';position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:32px;background:var(--grey-100);}
.wiz-step-num{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:900;flex-shrink:0;background:var(--grey-100);color:var(--grey-400);transition:background .2s,color .2s;}
.wiz-step-info{min-width:0;}
.wiz-step-label{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--grey-400);transition:color .2s;}
.wiz-step-sub{font-size:.72rem;font-weight:800;color:var(--grey-300);transition:color .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px;}
/* active */
.wiz-step.active .wiz-step-num{background:var(--psg-navy);color:#fff;}
.wiz-step.active .wiz-step-label{color:var(--psg-navy);}
.wiz-step.active .wiz-step-sub{color:var(--grey-600);}
/* done */
.wiz-step.done .wiz-step-num{background:#059669;color:#fff;}
.wiz-step.done .wiz-step-label{color:#059669;}
.wiz-step.done .wiz-step-sub{color:var(--grey-500);}

/* ── scrollable content ── */
.wiz-content{flex:1;min-height:0;overflow-y:auto;padding:var(--space-5) var(--space-8);background:var(--grey-100);}

/* ── panels ── */
.wiz-panel{display:none;}
.wiz-panel.active{display:block;}

/* ── card ── */
.wiz-card{background:#fff;border:1px solid #d9d9d9;border-radius:12px;overflow:visible;margin-bottom:var(--space-4);}
.wiz-card-header{border-radius:12px 12px 0 0;overflow:hidden;}
.wiz-card-header{padding:14px 20px;border-bottom:1px solid var(--grey-100);display:flex;align-items:center;gap:10px;}
.wiz-card-header svg{width:16px;height:16px;color:var(--psg-navy);flex-shrink:0;}
.wiz-card-title{font-size:.82rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--psg-navy);}
.wiz-card-body{padding:var(--space-5);}

/* ── form grid ── */
.fg2{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3);}
.fg3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:var(--space-3);}
.fg2 .span2,.fg3 .span2{grid-column:1/-1;}
.form-label{display:block;font-size:.75rem;font-weight:700;color:var(--grey-600);margin-bottom:4px;}
.form-label .req{color:#dc2626;}

/* ── customer typeahead ── */
.customer-wrap{position:relative;}
.customer-results{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--grey-200);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:200;max-height:240px;overflow-y:auto;display:none;}
.customer-results.open{display:block;}
/* product search autocomplete */
.prod-search-wrap{position:relative;}
.prod-search-results{position:absolute;top:calc(100% + 2px);left:0;right:0;background:#fff;border:1px solid var(--grey-200);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:200;max-height:380px;overflow-y:auto;display:none;}
.prod-search-results.open{display:block;}
.prod-search-result{padding:9px 12px;cursor:pointer;border-bottom:1px solid var(--grey-50);transition:background .1s;}
.prod-search-result:last-child{border-bottom:0;}
.prod-search-result:hover,.prod-search-result.focused{background:var(--grey-50);}
.prod-search-name{font-weight:700;font-size:.85rem;color:var(--grey-800);}
.prod-search-meta{font-size:.72rem;color:var(--grey-400);font-weight:600;margin-top:2px;display:flex;gap:10px;}
.prod-selected{background:#f0fdf4;border:1px solid #86efac;border-radius:6px;padding:6px 10px;font-size:.78rem;font-weight:700;color:#166534;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;}
.prod-clear{background:none;border:none;cursor:pointer;color:#166534;padding:0;display:flex;align-items:center;flex-shrink:0;}
.customer-result{padding:10px 14px;cursor:pointer;border-bottom:1px solid var(--grey-50);transition:background .1s;}
.customer-result:last-child{border-bottom:0;}
.customer-result:hover{background:var(--grey-50);}
.customer-result-name{font-weight:800;color:var(--grey-800);font-size:.88rem;}
.customer-result-sub{font-size:.75rem;color:var(--grey-400);margin-top:1px;}

/* ── product rows ── */
.prod-row{display:grid;grid-template-columns:110px 1fr 70px 110px 36px;gap:var(--space-2);align-items:start;padding:var(--space-2) 0;border-bottom:1px solid var(--grey-50);}
.prod-row:first-child{border-top:1px solid var(--grey-50);}
.prod-row-hdr{display:grid;grid-template-columns:110px 1fr 70px 110px 36px;gap:var(--space-2);padding-bottom:6px;}
.prod-row-hdr span{font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--grey-400);}
.btn-rm{background:none;border:1px solid var(--grey-200);border-radius:6px;cursor:pointer;width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:var(--grey-400);transition:background .1s,color .1s,border-color .1s;margin-top:1px;}
.btn-rm:hover{background:#fee2e2;color:#dc2626;border-color:#fca5a5;}
.sku-found{font-size:.7rem;color:#059669;font-weight:700;margin-top:3px;}
.sku-nf{font-size:.7rem;color:#dc2626;font-weight:700;margin-top:3px;}
.sku-loading{font-size:.7rem;color:var(--grey-400);margin-top:3px;}

/* ── recap ── */
.recap-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4);margin-bottom:var(--space-4);}
.recap-section{background:#fff;border:1px solid #d9d9d9;border-radius:12px;overflow:hidden;}
.recap-section-title{padding:12px 16px;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--psg-navy);border-bottom:1px solid var(--grey-100);display:flex;align-items:center;gap:7px;background:#f8faff;}
.recap-section-title svg{width:13px;height:13px;}
.recap-row{display:flex;justify-content:space-between;gap:var(--space-3);font-size:.82rem;border-bottom:1px solid var(--grey-50);padding:8px 16px;}
.recap-row:last-child{border-bottom:0;}
.recap-label{color:var(--grey-400);font-weight:700;flex-shrink:0;}
.recap-val{color:var(--grey-800);font-weight:800;text-align:right;word-break:break-word;}
.recap-articles{background:#fff;border:1px solid #d9d9d9;border-radius:12px;overflow:hidden;margin-bottom:var(--space-4);}
.recap-art-row{display:grid;grid-template-columns:1fr 60px 110px;gap:var(--space-3);padding:10px 16px;border-bottom:1px solid var(--grey-50);font-size:.85rem;}
.recap-art-row:last-child{border-bottom:0;}
.recap-total-bar{background:var(--psg-navy);color:#fff;border-radius:12px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-4);}
.recap-total-label{font-size:.8rem;font-weight:700;opacity:.7;}
.recap-total-value{font-size:1.8rem;font-weight:900;}

/* ── nav buttons ── */
.wiz-nav{display:flex;align-items:center;gap:var(--space-3);padding-top:var(--space-4);}

/* ── success overlay ── */
.success-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:900;align-items:center;justify-content:center;}
.success-overlay.open{display:flex;}
.success-box{background:#fff;border-radius:14px;padding:var(--space-8);max-width:440px;width:90%;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.2);}
.success-icon{width:56px;height:56px;background:#dcfce7;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto var(--space-4);}
.success-icon svg{width:28px;height:28px;color:#16a34a;}

/* Second bloc, en fin de page dans l'original. */
@keyframes spin{to{transform:rotate(360deg)}}
