:root{--ink:#1e2924;--muted:#78817d;--sage:#526f5e;--sage-light:#e4eee7;--bg:#f7f9f7;--line:#e7ece9;--white:#fff;--shadow:0 12px 38px rgba(31,50,38,.035)}*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #adcbb7;outline-offset:2px}svg{flex-shrink:0}.app-shell{min-height:100vh;display:flex}.sidebar{position:sticky;top:0;width:263px;min-width:263px;height:100vh;background:#19241f;color:#edf4ee;padding:25px 15px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:2px 10px 29px}.brand-mark,.auth-mark{width:39px;height:39px;background:#b7d6be;color:#1c2b23;border-radius:12px;display:grid;place-items:center;font-size:23px;font-weight:780;letter-spacing:-.11em;padding-right:3px}.brand strong{font-size:15px;font-weight:760;white-space:nowrap;letter-spacing:-.3px}.brand strong span{font-weight:450;color:#afcbb9}.brand small{display:block;color:#8fa498;font-size:9px;letter-spacing:2px;margin-top:5px}.store{margin:0 7px 25px;padding:12px 10px;border:1px solid #36483d;background:#26352b;border-radius:11px;font-size:12px;display:flex;align-items:center;gap:9px;color:#dcece0}.store i,.connected i{display:inline-block;width:7px;height:7px;background:#a4d6ac;border-radius:50%}.nav{display:grid;gap:4px}.nav button{background:transparent;border:0;color:#bacdc0;padding:13px 14px;display:flex;gap:13px;align-items:center;text-align:left;font-size:13px;border-radius:11px;transition:.15s}.nav button:hover{background:#2b3a30;color:white}.nav button.active{background:#dcece1;color:#243d2d;font-weight:700}.sidebar-footer{margin-top:auto;border-top:1px solid #3b4b40;padding:19px 8px 0;display:flex;align-items:center;gap:8px;font-size:11px;color:#b5c8b8}.sidebar-footer button{margin-left:auto;border:0;background:transparent;color:inherit;padding:6px}.main{min-width:0;flex:1}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,53px);background:rgba(255,255,255,.86)}.breadcrumb{color:#273d30;font-size:12px;font-weight:650}.breadcrumb span{margin:0 9px;color:#adb8b1}.user-tools{display:flex;align-items:center;gap:21px}.connected{font-size:11px;color:#607a68;display:flex;align-items:center;gap:7px}.connected i{background:#76b08b}.avatar{background:#e4ebe5;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:750;color:#4e6a54}.page{padding:40px clamp(20px,4vw,53px) 80px}.wrap{max-width:1170px;margin:0 auto}.eyebrow{letter-spacing:2.1px;font-size:10px;font-weight:800;color:#84988a;margin-bottom:10px}.headline{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:29px}.headline h1{font-size:clamp(25px,2.6vw,35px);line-height:1.2;letter-spacing:-1.15px;font-weight:750;margin:0 0 9px}.headline p{font-size:14px;color:#86918b;margin:0}.btn{border-radius:11px;padding:12px 17px;border:1px solid #d9e4dc;background:white;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:750;min-height:43px;white-space:nowrap;transition:.2s}.btn:hover{transform:translateY(-1px);box-shadow:0 6px 17px #152c1914}.btn.primary{background:#4a6b56;color:#fff;border-color:#4a6b56}.btn.ghost{background:white;color:#52745c}.btn.full{width:100%}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 25px}.metric{padding:25px 23px;background:white;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:15px;min-height:151px}.metric>span{font-size:12px;color:#737f78}.metric strong{font-size:35px;letter-spacing:-1.6px;font-weight:730}.metric small{font-size:11px;color:#a2ada6}.card{border:1px solid var(--line);background:white;border-radius:18px;box-shadow:var(--shadow);overflow:hidden;margin-bottom:19px}.card-head{padding:23px 25px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eff2ef}.card h2{font-size:16px;letter-spacing:-.25px;margin:0;font-weight:730}.text-button{background:none;border:0;color:#52755d;font-size:12px;font-weight:700;display:flex;gap:7px;align-items:center}.repair-row{width:100%;display:flex;align-items:center;gap:17px;background:white;border:0;border-bottom:1px solid #eef1ef;padding:17px 24px;text-align:left;color:var(--ink)}.repair-row:hover{background:#f9fbf9}.repair-row:last-child{border-bottom:0}.device-icon{width:40px;height:40px;border-radius:12px;background:#eff4ef;color:#54715c;display:grid;place-items:center;flex-shrink:0}.repair-name{flex:1;min-width:0}.repair-name strong{font-size:13px;font-weight:680;display:block;margin-bottom:5px}.repair-name small,.client-row small{font-size:11px;display:block;color:#929f96;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{display:inline-block;border-radius:999px;padding:7px 11px;background:#edf2ed;color:#607765;font-size:10px;font-weight:750;white-space:nowrap}.status-repairing,.status-diagnosing,.status-quality_check{background:#eaf1ff;color:#5372a3}.status-quote_pending{background:#fff5df;color:#9b792b}.status-ready,.status-approved{background:#e5f5e8;color:#3c8550}.status-cancelled{background:#fce9ea;color:#a85454}.date{font-size:11px;color:#a2afa5;white-space:nowrap;min-width:75px;text-align:right}.empty{padding:55px 18px;text-align:center;font-size:13px;color:#8c9990}.intake{max-width:940px}.form-card{padding:26px 28px 31px}.form-card h2{display:flex;align-items:center;gap:13px;margin-bottom:26px}.step{background:#e8f1e9;color:#50745b;border-radius:10px;width:34px;height:34px;display:inline-grid;place-items:center;font-size:12px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 24px}.fields label,.auth-card label,.status-field{display:flex;flex-direction:column;gap:9px;color:#5b6a60;font-size:12px;font-weight:650}.fields label.full{grid-column:1/-1}.fields input,.fields textarea,.fields select,.auth-card input,.status-field select{width:100%;border:1px solid #dfe7e1;background:#fbfcfb;border-radius:10px;padding:13px 14px;font-size:13px;color:#273a2c;min-height:44px;outline:none}.fields textarea{resize:vertical;line-height:1.6}.fields input:focus,.fields textarea:focus,.fields select:focus,.auth-card input:focus{border-color:#8cba95;box-shadow:0 0 0 3px #b0d4b328}.hint{font-size:11px;color:#92a096;line-height:1.65;margin:19px 0 0}.actions{display:flex;justify-content:flex-end;gap:13px;margin:28px 0}.step-pill{background:#ecf2ec;color:#6c806e;border-radius:99px;padding:9px 13px;font-size:11px;font-weight:700}.tools{padding:17px;display:flex;align-items:center;gap:12px}.search{display:flex;align-items:center;flex:1;gap:9px;background:#f7faf7;padding:0 13px;border:1px solid #e8eee8;border-radius:11px;min-width:0;color:#8b9b8f}.search input{outline:none;border:0;background:transparent;min-width:0;width:100%;padding:12px 0;font-size:12px}.tools select{padding:12px;border:1px solid #e5ebe6;background:white;border-radius:11px;color:#536859;font-size:12px;max-width:170px}.icon-btn{background:#f5f8f5;border:1px solid #e2eae3;border-radius:10px;width:42px;height:42px;display:grid;place-items:center;color:#5f8068}.client-row{display:flex;align-items:center;gap:16px;padding:18px 23px;border-bottom:1px solid #edf2ee}.client-row:last-child{border:0}.client-row strong{font-size:13px;display:block;margin-bottom:5px}.blank-feature{min-height:510px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:18px;color:#799282}.blank-feature h1{color:#273c2d;font-size:30px;margin:0}.blank-feature p{max-width:420px;font-size:13px;color:#809187;line-height:1.8;margin:0 0 10px}.notice,.demo-banner{padding:15px 19px;border-radius:12px;margin-bottom:20px;background:#e8f1e8;color:#355843;font-size:12px;line-height:1.6}.notice{display:flex;justify-content:space-between;gap:15px}.notice.error{background:#fce9ea;color:#a94444}.notice button{border:0;background:transparent;font-size:20px;color:inherit}.demo-banner{background:#fff7de;color:#8b6a2e}.overlay{position:fixed;inset:0;z-index:70;background:#15241c91;display:flex;justify-content:flex-end}.drawer{background:#fff;width:min(530px,100%);height:100%;overflow-y:auto;box-shadow:-30px 0 50px #091b1229}.drawer-header{padding:26px 28px;border-bottom:1px solid #e6ebe7;display:flex;align-items:center;justify-content:space-between}.drawer-header h2{margin:0;font-size:21px}.drawer-body{padding:28px}.drawer-body h3{font-size:24px;letter-spacing:-.6px;margin:18px 0 6px}.drawer-body>p{font-size:13px;color:#77867b;line-height:1.7}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin:30px 0}.detail-grid>div{border-bottom:1px solid #e8efea;padding-bottom:13px;min-width:0}.detail-grid small{display:block;color:#8d9e92;font-size:11px;margin-bottom:9px}.detail-grid strong{display:block;overflow-wrap:anywhere;font-size:13px;font-weight:650;line-height:1.5}.status-field{margin-top:25px}.auth-scene{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f9fbf8}.auth-card{width:min(410px,calc(100% - 36px));margin:auto;padding:45px 0}.auth-mark{width:53px;height:53px;font-size:34px;border-radius:15px;margin-bottom:42px}.auth-card h1{font-size:clamp(32px,4vw,49px);letter-spacing:-2.3px;line-height:1.08;margin:0 0 14px}.auth-card h1 em{font-style:normal;color:#648774}.auth-card>p{font-size:14px;line-height:1.8;color:#8a988d;margin-bottom:35px}.auth-card form{display:grid;gap:20px}.auth-card input{margin-top:2px}.auth-card form .btn{margin-top:10px;height:48px}.auth-foot{display:block;margin-top:34px;text-align:center;color:#9fab9e;font-size:11px}.auth-side{background:#1b2a21;color:#f0f5ef;display:flex;flex-direction:column;justify-content:center;padding:9vw;overflow:hidden;position:relative}.auth-side h2{font-size:clamp(38px,5vw,72px);letter-spacing:-3px;line-height:1.1;z-index:1;margin:10px 0 14px}.auth-side p{color:#a8c4af;z-index:1}.auth-side .eyebrow{color:#9aba9c}.spheres span{position:absolute;display:block;border-radius:50%;filter:blur(2px);opacity:.25;background:#95bd9d}.spheres span:nth-child(1){height:400px;width:400px;right:-130px;bottom:-160px}.spheres span:nth-child(2){height:150px;width:150px;right:50px;top:15%}.spheres span:nth-child(3){height:260px;width:260px;right:28%;bottom:-170px}.loading-view{height:100vh;display:grid;place-content:center;color:#203728;font-size:30px;font-weight:800;letter-spacing:-1px}.loading-view span{color:#87ab91}.menu-button,.mobile-close,.mobile-shade{display:none}
@media(max-width:1150px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:230px;min-width:230px}.date{display:none}}
@media(max-width:800px){.sidebar{position:fixed;left:0;transform:translateX(-105%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-shade.visible{display:block;position:fixed;inset:0;background:#11251b73;z-index:18}.mobile-close{display:grid;margin-left:auto;border:0;background:transparent;color:#e4eee5}.menu-button{display:grid;border:0;background:transparent;padding:5px;margin-right:10px;color:#3c5945}.topbar{height:65px;padding:0 19px;justify-content:flex-start}.user-tools{margin-left:auto}.page{padding:27px 17px 70px}.headline{flex-direction:column;align-items:stretch;gap:18px}.headline .btn{align-self:flex-start}.auth-scene{display:flex}.auth-card{width:min(420px,calc(100% - 38px))}.auth-side{display:none}}
@media(max-width:520px){.metrics{gap:9px}.metric{padding:19px 16px;min-height:130px;gap:13px}.metric strong{font-size:29px}.metric span{font-size:11px}.fields{grid-template-columns:1fr;gap:16px}.form-card{padding:20px 17px}.form-card h2{font-size:14px}.tools{flex-wrap:wrap}.search{flex-basis:100%}.tools select{flex:1;max-width:none}.connected{font-size:0}.connected i{width:9px;height:9px}.repair-row{padding:15px 14px;gap:10px}.repair-row .status{max-width:100px;text-align:center;white-space:normal}.repair-row .date{display:none}.repair-row>.device-icon{width:32px;height:32px}.repair-name strong{font-size:12px}.repair-name small{font-size:10px}.actions{justify-content:stretch}.actions .btn{flex:1}.detail-grid{grid-template-columns:1fr 1fr}.drawer-body{padding:22px}.card-head{padding:19px 17px}.step-pill{display:none}}

/* NORTH V1.1 : contrôles techniques et documents */
.workshop-card{margin:26px 0 40px;padding-top:22px;border-top:1px solid #e7efe8}
.workshop-card h3{font-size:18px;letter-spacing:-.3px;margin:15px 0 12px}
.workshop-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.workshop-title h3{margin:8px 0 0}
.mini-help{font-size:12px;color:#76887a;line-height:1.7;margin:9px 0 16px}
.checklist{border:1px solid #e6ece7;border-radius:13px;overflow:hidden;background:#fff}
.check-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #ecf0ed;font-size:12px}
.check-row:last-child{border:0}
.check-row span{flex:1}
.check-select{font-size:11px;font-weight:650;padding:8px;border:1px solid #e1e8e1;background:#f6f9f6;color:#546957;border-radius:8px;max-width:145px;min-width:115px}
.check-select.check-ok{color:#276a40;background:#e6f5e9}.check-select.check-fail{color:#9f513f;background:#fcefe9}
.check-select.check-na{color:#626c76;background:#edf0f3}
.ws-label{display:flex;flex-direction:column;gap:10px;margin-top:20px;font-size:12px;font-weight:700;color:#5b6a60}
.ws-label textarea{min-height:90px;border:1px solid #dfe8e1;border-radius:11px;padding:13px;resize:vertical;color:#273a2c}
.workshop-actions{margin:14px 0}.ws-divider{border-top:1px solid #e7efe8;margin:30px 0 22px}
.ws-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
.ws-gallery img,.ws-image-placeholder{width:100%;height:100px;object-fit:cover;border-radius:11px;border:1px solid #e9eeeb;background:#f4f6f4}
.ws-image-placeholder{display:grid;place-items:center;color:#98a39b;font-size:10px}
.ws-upload{margin-bottom:8px}
.signature-canvas{display:block;width:100%;height:auto;aspect-ratio:680/210;border:1px dashed #a6b9ab;border-radius:11px;background:#fff;touch-action:none;cursor:crosshair}
.signature-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;flex-wrap:wrap}
.signature-controls label{font-size:11px;line-height:1.4;color:#65766b;display:flex;gap:8px;align-items:center;flex:1}
.ws-saved-signature{border:1px solid #e5ebe6;border-radius:12px;padding:10px 12px}
.ws-saved-signature img{display:block;object-fit:contain;max-width:100%;max-height:155px}
.ws-saved-signature small{color:#7e9283}
.workshop-alert,.workshop-success{padding:11px;border-radius:9px;font-size:12px;line-height:1.5}
.workshop-alert{background:#fff0ef;color:#9d3d3d}.workshop-success{background:#ecf7ef;color:#33744b}
.north-print-sheet{display:none}
@media(max-width:520px){.check-row{padding:9px 8px}.check-select{min-width:103px}.ws-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{
 @page{size:A4;margin:14mm}
 body.north-printing{background:white;color:black;font-family:Arial,sans-serif}
 body.north-printing #app{display:none!important}
 body.north-printing .north-print-sheet{display:block!important;position:static;background:white;color:#1d281f;width:100%;font-size:10pt;line-height:1.35}
 .north-print-sheet header{border-bottom:2px solid #354b3b;padding-bottom:12px;display:flex;justify-content:space-between;align-items:end}
 .north-print-sheet header h1{font-size:21pt;letter-spacing:-1px;margin:0}
 .north-print-sheet header h1 span{font-weight:400;color:#657c68}
 .north-print-sheet header p{font-size:9pt;margin:0}
 .north-print-sheet h2{font-size:10pt;margin:18px 0 6px;border-bottom:1px solid #d4ded4;padding-bottom:4px}
 .north-print-sheet .print-heading{display:flex;justify-content:space-between;gap:15px;margin:18px 0}
 .north-print-sheet .print-heading strong{font-size:12pt}
 .north-print-sheet .print-heading small{font-size:8pt}
 .north-print-sheet .print-columns{display:grid;grid-template-columns:1fr 1fr;gap:1px 15px}
 .north-print-sheet p{margin:5px 0;overflow-wrap:anywhere}
 .north-print-sheet .print-checks{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}
 .north-print-sheet .print-checks p{display:flex;justify-content:space-between;gap:6px;border-bottom:1px dotted #d4ded4;padding:5px 0;font-size:8pt}
 .north-print-sheet .print-checks b{white-space:nowrap}
 .north-print-sheet .print-note{font-size:8pt}
 .north-print-sheet .print-sign{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:25px}
 .north-print-sheet .print-sign>div{border-top:1px solid #aaa;min-height:75px;padding-top:8px;font-size:8pt}
 .north-print-sheet .print-sign img{max-height:65px;max-width:90%;display:block}
 .north-print-sheet footer{margin-top:20px;border-top:1px solid #d5ddd6;color:#637468;font-size:8pt}
}

/* NORTH V1.2 — Devis et ventes : tonalité NORTH Studio vert sauge. */
.commerce-warning{font-size:12px;line-height:1.65;color:#80683f;background:#fbf6e9;border:1px solid #efe4c8;border-radius:13px;padding:15px 18px;margin:0 0 21px}
.commerce-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;margin:20px 0}
.commerce-card{overflow:hidden}.commerce-card .card-head{margin:0;padding:22px 25px;border-bottom:1px solid #eaf0eb}.commerce-card .card-head h2{font-size:16px;margin:0;letter-spacing:-.25px}
.commerce-form{display:flex;flex-direction:column;gap:16px;padding:22px 25px}.commerce-form label{font-size:12px;color:#52695a;font-weight:680;display:flex;flex-direction:column;gap:7px;min-width:0}
.commerce-form input,.commerce-form select{width:100%;min-height:43px;border:1px solid #dfe9e1;border-radius:10px;padding:10px 12px;color:#314338;background:#fbfdfb;outline:none;font:inherit;font-size:12px}
.commerce-form input:focus,.commerce-form select:focus{border-color:#8aba95;box-shadow:0 0 0 3px #8aba9526}.commerce-form .full{width:100%;justify-content:center}.commerce-form .mini-help{margin:0}
.commerce-inline{display:grid;grid-template-columns:1fr 1fr;gap:13px}.commerce-entry-row{display:grid;gap:8px;align-items:center}
.quote-line{grid-template-columns:minmax(100px,2fr) 70px minmax(95px,1fr) 90px 28px;margin-bottom:9px}
.quote-line input,.quote-line select{min-width:0}.quote-head{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;color:#8c9f90;font-weight:750;margin-top:6px}
.sale-line{grid-template-columns:minmax(130px,1fr) 76px 28px;margin-bottom:9px}.remove-line{background:#f2f6f2;color:#647b68;border:1px solid #e6eee7;border-radius:9px;height:37px;cursor:pointer;font-size:18px}
.commerce-totals{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;background:#f3f8f3;padding:14px 16px;border-radius:11px;font-size:12px;color:#55705b}
.commerce-totals span{display:flex;align-items:center;gap:6px}.commerce-totals strong{font-size:13px;color:#24392a}
.commerce-stack{max-height:560px;overflow-y:auto}.commerce-count{font-size:11px;color:#93a195;background:#edf2ef;border-radius:30px;padding:5px 9px;margin-left:7px}
.commerce-history{padding:20px 23px;border-bottom:1px solid #e9efe9}.commerce-history:last-child,.catalog-item:last-child{border-bottom:0}
.commerce-history p{margin:10px 0;color:#77877b;font-size:12px}.commerce-history-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.commerce-history-top strong{font-size:14px}.commerce-history-top small{color:#8d9d91;font-size:11px}
.commerce-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.commerce-actions .small-btn{min-height:33px;padding:7px 11px;font-size:11px}
.status.quote-draft{background:#f1f4f1;color:#647b68}.status.quote-sent{background:#edf3fd;color:#4b6d9d}.status.quote-accepted{background:#e4f5ea;color:#3f8255}.status.quote-rejected{background:#fbeaea;color:#a94c4c}
.catalog-item{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:17px 23px;border-bottom:1px solid #edf1ed;font-size:12px}.catalog-item>div{min-width:0}.catalog-item strong{display:block;font-size:13px;margin-bottom:5px}.catalog-item small{display:block;color:#8b9b8f;line-height:1.65;overflow-wrap:anywhere}
.catalog-right{text-align:right;white-space:nowrap}.catalog-right .low-stock{color:#bd674d}
.commerce-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.commerce-metric{padding:20px 18px;border:1px solid #e8ede9;background:white;border-radius:14px;display:flex;flex-direction:column;gap:11px}
.commerce-metric small{font-size:11px;color:#88978c}.commerce-metric strong{font-size:22px;letter-spacing:-.5px}
.commerce-repair-link{border-top:1px solid #e5eee7;margin-top:20px;padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:13px}
.commerce-repair-link strong{font-size:14px}.commerce-repair-link .mini-help{margin:5px 0}.commerce-repair-link .btn{flex-shrink:0;font-size:11px}
@media(max-width:1170px){.commerce-two-col{grid-template-columns:1fr}}
@media(max-width:710px){.commerce-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-inline{grid-template-columns:1fr}.commerce-form{padding:18px}.commerce-card .card-head{padding:18px}.quote-line{grid-template-columns:minmax(100px,1fr) 60px 76px 28px}.quote-line select[name="vat_rate"]{grid-column:1/4;grid-row:2}.commerce-repair-link{flex-direction:column;align-items:stretch}}
@media(max-width:440px){.commerce-metrics{gap:8px}.commerce-metric{padding:15px}.commerce-metric strong{font-size:19px}.quote-line{gap:6px}.quote-line input,.quote-line select{padding:9px 7px;font-size:11px}.sale-line{grid-template-columns:minmax(105px,1fr) 66px 27px}}

/* NORTH V1.3 — Inventaire unifié, responsive et discret. */
.stock-metrics{margin-bottom:22px}
.stock-list-card{margin:20px 0}.stock-list-card .card-head{gap:12px;flex-wrap:wrap}
.stock-filter{background:#f8fbf8;border:1px solid #dce8de;border-radius:10px;padding:9px 12px;color:#37533e;font-size:12px;max-width:100%}
.stock-grid-head,.stock-grid-row{display:grid;grid-template-columns:minmax(160px,1fr) 95px 80px 125px;gap:14px;align-items:center;padding:14px 25px}
.stock-grid-head{font-size:10px;text-transform:uppercase;color:#8b9c90;letter-spacing:1px;font-weight:700;background:#f7faf7}
.stock-grid-row{border-top:1px solid #edf2ed;font-size:12px;min-height:69px}
.stock-item-title{min-width:0}.stock-item-title strong{font-size:13px;font-weight:700;display:block}.stock-item-title small{display:block;color:#8c9b8d;font-size:11px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.stock-unit{font-size:13px;color:#465e4c}.stock-tag{font-size:10px;font-weight:750;display:inline-block;padding:8px 10px;border-radius:999px;justify-self:start;white-space:nowrap}
.stock-tag.stock-low{color:#a66c2f;background:#fbf0db}.stock-tag.stock-ok{color:#3a7952;background:#e8f5eb}
.stock-supplier-list{max-height:210px;overflow:auto;border-top:1px solid #edf2ed}.stock-pad{padding:0 22px}
.stock-history{max-height:390px;overflow-y:auto}.stock-event{display:grid;grid-template-columns:58px 1fr auto;gap:16px;padding:15px 25px;align-items:center;border-bottom:1px solid #edf1ed;font-size:12px}
.stock-event:last-child{border:0}.stock-event strong{display:block;margin-bottom:4px}.stock-event small{font-size:11px;color:#869588;display:block}.stock-event time{font-size:11px;color:#97a49a;white-space:nowrap}
.stock-delta{padding:7px 10px;text-align:center;font-weight:750;border-radius:9px}.stock-delta.positive{color:#2d794c;background:#eaf5ec}.stock-delta.negative{color:#a0594c;background:#fcf0eb}
@media(max-width:700px){.stock-grid-head{display:none}.stock-grid-row{grid-template-columns:minmax(0,1fr) 40px 95px;gap:9px;padding:16px}.stock-grid-row .stock-unit:nth-of-type(2){display:none}.stock-unit{text-align:center}.stock-event{padding:13px 15px;gap:8px;grid-template-columns:42px 1fr}.stock-event time{grid-column:2;font-size:10px}.stock-tag{padding:7px 8px;font-size:9px}.stock-list-card .card-head{padding:17px}}
/* NORTH Manager V1.4 — documents de facturation préparatoires */
.billing-legal{border:1px solid #ead5b8;background:#fff9ee;color:#6a5132;border-radius:14px;padding:16px 19px;margin-bottom:23px;font-size:12.5px;line-height:1.65}
.billing-legal strong{display:block;color:#724820;font-size:14px;margin-bottom:2px}
.billing-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:23px}
.billing-metrics>div{padding:22px 18px;border-radius:15px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);min-width:0}
.billing-metrics small,.billing-metrics span{display:block;color:var(--muted);font-size:11px}
.billing-metrics strong{display:block;font-size:clamp(21px,2.4vw,27px);letter-spacing:-1px;margin:12px 0 7px;color:var(--ink)}
.billing-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start;margin-bottom:20px}
.billing-card{padding:22px;margin-bottom:19px;min-width:0}
.billing-card .card-head{margin-bottom:18px}
.billing-field-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.billing-list{margin-bottom:20px}
.billing-documents{display:grid;gap:10px}
.billing-document{border:1px solid var(--line);border-radius:14px;padding:17px 18px;background:#fff}
.billing-document-top,.billing-document-bottom{display:flex;align-items:start;justify-content:space-between;gap:12px}
.billing-document-top strong{font-size:14px}
.billing-document-top p{font-size:12px;color:var(--muted);margin:7px 0 16px}
.billing-document-bottom strong{font-size:20px;letter-spacing:-.5px}
.billing-document-bottom small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.billing-tag{border-radius:99px;background:#e9f2eb;color:#426d50;padding:7px 10px;font-size:10px;font-weight:700;white-space:nowrap}
.billing-document-bottom .btn{margin-top:5px;white-space:nowrap}
.billing-payment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.billing-payment-row:last-child{border-bottom:0}
.billing-payment-row strong{font-size:13px}
.billing-payment-row small{display:block;font-size:11px;color:var(--muted);margin-top:6px}
@media(max-width:1100px){.billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:730px){.billing-grid{grid-template-columns:1fr}.billing-card{padding:17px}.billing-document-top,.billing-document-bottom{flex-wrap:wrap}.billing-metrics>div{padding:18px 14px}}
@media(max-width:420px){.billing-field-row{grid-template-columns:1fr}.billing-document-bottom .btn{width:100%}.billing-tag{white-space:normal}}
