.commercial-list{display:grid;gap:12px}.commercial-card{border:1px solid #d1e2ed;border-radius:16px;padding:16px;background:#fff}.commercial-card h3{margin:0 0 8px}.commercial-meta{font-size:13px;color:#536b7b}.commercial-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.commercial-toolbar input{min-width:0;flex:1}.commercial-form{display:grid;gap:14px}.commercial-form label{display:grid;gap:6px}.commercial-form input,.commercial-form textarea,.commercial-form select{width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid #b8cddd;border-radius:10px}.commercial-form textarea{min-height:90px}.commercial-sources{overflow-wrap:anywhere;max-height:350px;overflow:auto}.commercial-total{position:sticky;bottom:0;background:#075b7f;color:white;padding:16px;border-radius:12px}.commercial-warning{background:#fff5e6;padding:12px;border-radius:12px}.commercial-preview{white-space:pre-wrap;overflow-wrap:anywhere}.commercial-list button{min-height:44px} .commercial-pager{display:flex;justify-content:space-between;margin:15px 0}

.commercial-pdf{width:100%;height:55vh;border:1px solid #c7dce9;border-radius:12px;margin:12px 0}.commercial-form fieldset{display:grid;gap:14px;min-width:0;border:0;padding:0}.commercial-form input[type=checkbox]{width:22px;min-height:22px;height:22px}.commercial-form canvas{width:100%;height:150px;touch-action:none;background:#fff;border:1px solid #96b8ca;border-radius:12px}.commercial-card img{max-width:100%;max-height:150px;object-fit:contain}.commercial-form button{min-height:44px}

.commercial-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:92dvh;border:1px solid #d1e2ed;border-radius:20px;padding:0;color:#123e50}.commercial-dialog::backdrop{background:#123e5066}.commercial-dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #d1e2ed;position:sticky;top:0;background:white;z-index:2}.commercial-dialog .dialog-head h2{font-size:20px;margin:0}.commercial-dialog .dialog-body{padding:16px;overflow-wrap:anywhere}.commercial-dialog .error:empty{display:none}.commercial-dialog select{max-width:100%}.commercial-dialog .commercial-toolbar>*{max-width:100%}.commercial-dialog button,.commercial-dialog a.button{min-height:44px}.commercial-dialog .commercial-pdf{height:40dvh;box-sizing:border-box}.commercial-dialog .commercial-card{min-width:0}

[data-photos] img{max-width:160px;height:auto}

.commercial-admin-page>[data-admin-back]{position:sticky;top:76px;z-index:4;background:#fff;box-shadow:0 2px 10px #123e5018}.commercial-admin:not(.commercial-editor-open)>[data-editor]{display:none}.commercial-admin.commercial-editor-open>:not([data-editor]):not([role=alert]){display:none}.commercial-editor-back{position:sticky;top:128px;z-index:3;background:#fff;margin-bottom:16px}.commercial-admin [data-editor]{scroll-margin-top:130px}.commercial-admin .commercial-list{scroll-margin-top:130px}

.commercial-tabs{display:flex;gap:8px;margin:22px 0 12px}.commercial-tabs button{flex:1;min-height:54px;background:#eef5fa;color:#174f68;border:1px solid #c9deea}.commercial-tabs button[aria-pressed=true]{background:#075b7f;color:white}.commercial-badge{display:inline-block;padding:5px 10px;border-radius:20px;background:#e8f6ef;color:#176442;font-size:12px;font-weight:700;margin-bottom:12px}.commercial-badge.suggestion{background:#fff2df;color:#815217}.commercial-advanced{margin:24px 0;color:#536b7b}.commercial-admin summary{cursor:pointer;padding:12px 0;font-weight:600}.commercial-form details label{margin:12px 0}.commercial-admin .commercial-card{overflow-wrap:anywhere}.commercial-admin [data-list-info]{font-size:14px;color:#536b7b}.commercial-admin .error:empty{display:none}

.commercial-admin input[type=search]{min-height:46px;width:100%;padding:12px;border:1px solid #b8cddd;border-radius:12px;box-sizing:border-box}.commercial-pager span{align-self:center;text-align:center}

/* Catalogue: use the app scroll container and compact rows. */
#app>.commercial-admin-page{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;margin:0;padding:14px 16px 24px;scroll-padding-top:64px}
.commercial-admin-page>[data-admin-back]{position:static;box-shadow:none}
.commercial-admin-page h1{font-size:22px;margin:12px 0}
.commercial-admin>p:first-child{display:none}
.commercial-admin .commercial-tabs{margin:14px 0 10px}
.commercial-admin .commercial-toolbar{margin:10px 0}
.commercial-admin [data-list-info]{margin:8px 0 12px;font-size:12px;line-height:1.4}
.commercial-admin .commercial-list{gap:0;border:1px solid #d1e2ed;border-radius:12px;overflow:hidden;scroll-margin-top:10px}
.commercial-admin .commercial-list .commercial-card{border:0;border-bottom:1px solid #d1e2ed;border-radius:0;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center}
.commercial-admin .commercial-list .commercial-card:last-child{border-bottom:0}
.commercial-admin .commercial-card h3{grid-column:1/-1;font-size:14px;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.commercial-admin .commercial-list .commercial-badge{grid-column:1/-1;justify-self:start;font-size:10px;padding:2px 6px;margin:0 0 2px}
.commercial-admin .commercial-card p{grid-column:1;font-size:12px;line-height:1.35;margin:0}
.commercial-admin .commercial-card .commercial-row-description{display:none}
.commercial-admin .commercial-card button{grid-column:2;grid-row:3/5;padding:6px 10px;font-size:12px;max-width:135px}
.commercial-admin .commercial-card label{grid-column:1/-1}
.commercial-admin .commercial-editor-back{top:0;scroll-margin-top:0}
.commercial-admin [data-editor]{scroll-margin-top:0}

.commercial-terrain-info{background:#eff8fb;padding:10px 12px;border-radius:10px;margin:8px 0}.commercial-terrain-info p{font-size:13px;line-height:1.4;margin:6px 0}

.commercial-admin .commercial-form[hidden]{display:none}

.commercial-wizard .dialog-body{max-height:calc(90dvh - 80px);overflow-y:auto;overscroll-behavior:contain}.commercial-wizard input[type=number],.commercial-wizard input[type=search]{box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid #bdd5e2;border-radius:10px}.commercial-wizard label{display:block;margin:12px 0}.commercial-wizard .commercial-check{display:flex;align-items:flex-start;gap:8px;line-height:1.5}.commercial-wizard input[type=checkbox]{width:20px;height:20px;flex:none}.commercial-wizard .commercial-picker-row{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #dae6ec}.commercial-picker-row small{display:block;margin-top:4px}.commercial-search-hit{display:block;width:100%;text-align:left;margin:6px 0}.commercial-wizard-nav{display:flex;justify-content:space-between;gap:10px;padding-top:18px}.commercial-step{font-weight:700;color:#09658a}.commercial-wizard [data-kind][aria-pressed=false]{background:#edf5fa;color:#0b5778}.commercial-wizard [hidden]{display:none!important}

.commercial-wizard-nav [data-next]{margin-left:auto}
.commercial-universe{border-bottom:1px solid #d1e2ed;background:white}
.commercial-universe:last-child{border-bottom:0}
.commercial-admin .commercial-universe>summary,.commercial-wizard .commercial-universe>summary{cursor:pointer;padding:16px 12px;font-weight:700;min-height:44px;box-sizing:border-box;background:#eff7fb;color:#123e50}
.commercial-universe>summary span{float:right;background:white;border-radius:20px;padding:2px 9px;font-size:12px}
.commercial-universe-items{padding:0 8px}
.commercial-wizard .commercial-universe{border:1px solid #d1e2ed;border-radius:10px;overflow:hidden;margin:8px 0}

.commercial-quote-pages img{display:block;width:100%;height:auto;background:white;margin:0 0 12px}.commercial-signature-steps [hidden]{display:none!important}.commercial-signature-steps canvas{border:2px solid #96b8ca}.commercial-signature-steps [data-signature-next]{margin-left:auto}.commercial-signature-steps fieldset>section{min-width:0}

.commercial-dialog.commercial-signing{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.commercial-signing .dialog-body{max-height:calc(100dvh - 80px);box-sizing:border-box;overflow-y:auto}.commercial-signing .commercial-quote-pages{width:100%}

.commercial-dialog canvas[aria-label="Signature du montant modifié"]{display:block;width:100%;height:150px;touch-action:none;border:2px solid #96b8ca;background:white;border-radius:12px}

.bi-followup-dialog{width:calc(100% - 32px);max-width:520px}.bi-followup-content{padding:24px}.bi-followup-content h2{margin:0 0 24px;font-size:1.2rem;line-height:1.4}.bi-followup-actions{display:flex;flex-wrap:wrap;gap:12px}.bi-followup-actions button{flex:1;min-width:90px;min-height:48px}
.commercial-invoice-editor{gap:12px}.commercial-invoice-editor>p,.commercial-invoice-editor label{margin:0}.commercial-editor-heading p{margin:4px 0 18px;color:#536b7b}.commercial-invoice-lines{border:1px solid #d1e2ed;border-radius:14px;overflow:hidden}.commercial-invoice-line{display:grid;grid-template-columns:minmax(0,1fr) 76px auto;align-items:center;gap:12px;padding:14px;border-bottom:1px solid #e0eaf0}.commercial-invoice-line:last-child{border:0}.commercial-invoice-line strong{font-size:15px;line-height:1.4;display:block}.commercial-invoice-line small{display:block;color:#536b7b;margin-top:4px}.commercial-invoice-line label{font-size:12px}.commercial-invoice-line.is-removed strong{text-decoration:line-through;color:#708591}.commercial-adjust-actions,.commercial-document-actions{display:flex;flex-wrap:wrap;gap:10px}.commercial-invoice-editor section{padding:14px;background:#f2f8fb;border-radius:12px}.commercial-editor-footer{display:flex;justify-content:flex-end;padding-top:12px}.commercial-payment{display:grid;gap:18px}.commercial-payment p,.commercial-payment h3{margin:0}.commercial-payment-heading{display:flex;align-items:center;gap:14px}.commercial-payment-heading p{margin-top:5px;color:#536b7b}.commercial-success-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e5f5ed;color:#147448;font-size:26px;flex:none}.commercial-balance{padding:18px;border:1px solid #cee0eb;background:#f1f8fb;border-radius:14px}.commercial-balance>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.commercial-balance strong{font-size:26px;white-space:nowrap}.commercial-balance small{display:block;margin-top:8px;color:#536b7b}.commercial-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.commercial-payment-form .commercial-option-grid label{margin:0;display:flex;align-items:center;gap:7px;border:1px solid #bdd5e2;border-radius:10px;padding:12px 8px;cursor:pointer;font-size:14px}.commercial-option-grid label:has(input:checked){background:#e3f3fb;border-color:#087da3;color:#075b7f}.commercial-form input[type=radio]{width:18px;height:18px;min-height:18px;flex:none;margin:0;padding:0}.commercial-payment-form{padding-top:4px;gap:14px}.commercial-payment-form label,.commercial-payment-form legend{margin:0}.commercial-finish-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #dbe7ee;padding-top:18px}.commercial-send-form{padding:16px;background:#f3f8fb;border-radius:12px}.commercial-payment [hidden],.commercial-invoice-editor [hidden]{display:none!important}@media(max-width:480px){.commercial-invoice-line{grid-template-columns:minmax(0,1fr) 66px;gap:8px;padding:12px}.commercial-invoice-line>button{grid-column:1/-1;justify-self:end;padding:6px 10px}.commercial-option-grid{grid-template-columns:1fr}.commercial-option-grid label{min-height:44px}.commercial-document-actions>button,.commercial-finish-actions>button{flex:1 1 140px}.commercial-balance strong{font-size:24px}}
.commercial-article-types{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 16px}.commercial-article-types label{display:flex!important;align-items:center;gap:8px;border:1px solid #bed7e6;border-radius:10px;padding:12px;margin:0!important}.commercial-article-types input{width:auto!important;min-height:0!important}.commercial-article-types label:has(input:checked){background:#e5f4fb;border-color:#006b94;font-weight:700}.commercial-form [data-labor-fields][hidden]{display:none!important}.commercial-finalize{padding:16px;background:#eaf6ef;border-radius:14px;margin:16px 0}

/* Guided quote: one decision per screen, compact supplies and aligned amounts. */
.commercial-heading{min-width:0;flex:1}.commercial-heading h2{margin:0}.commercial-heading .commercial-step{margin:.35rem 0 0;font-size:.85rem;line-height:1.35}
.commercial-universe-nav,.commercial-family-nav,.commercial-breadcrumb{display:flex;flex-wrap:wrap;gap:.45rem;margin:.7rem 0}.commercial-family-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.commercial-family-nav button{text-align:left}
.commercial-universe-nav [aria-pressed=true]{background:#075b80;color:#fff}.commercial-supply-row{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #d5e3ed}.commercial-supply-name{display:flex;align-items:center;gap:10px;min-width:0;margin:0!important}.commercial-supply-name span{min-width:0}.commercial-supply-name strong{overflow-wrap:anywhere}.commercial-supply-name small{display:block;color:#526d81}.commercial-supply-name input[type=checkbox]{width:22px;min-width:22px;height:22px}.commercial-supply-quantity{margin:0!important}.commercial-supply-quantity span,.commercial-added-supply label span{display:block;font-size:.8rem}.commercial-supply-quantity input{width:100%;min-width:0}
.commercial-added-supply{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #d5e3ed}.commercial-added-supply strong{font-size:.95rem;overflow-wrap:anywhere}.commercial-added-supply label{margin:0!important}.commercial-added-supply input{min-width:0;width:100%}.commercial-added-supply button{padding:10px 8px;font-size:.8rem}.commercial-picker-footer{margin-top:1rem}
.commercial-quote-table{width:100%;border-collapse:collapse;font-size:.95rem}.commercial-quote-table th{text-align:left;font-size:.8rem;color:#526d81}.commercial-quote-table td,.commercial-quote-table th{padding:12px 4px;border-bottom:1px solid #d5e3ed;vertical-align:top}.commercial-quote-table td:first-child{overflow-wrap:anywhere}.commercial-quote-table td:nth-child(2),.commercial-quote-table th:nth-child(2){text-align:right;white-space:nowrap}.commercial-quote-table td:last-child,.commercial-quote-table th:last-child{text-align:right;white-space:nowrap;padding-left:12px;font-variant-numeric:tabular-nums}.commercial-quote-totals{max-width:320px;margin:22px 0 0 auto}.commercial-quote-totals>div{display:flex;justify-content:space-between;gap:24px;padding:8px 0}.commercial-quote-totals dd{margin:0;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.commercial-quote-totals .grand-total{border-top:2px solid #075b80;font-size:1.15rem;font-weight:750;margin-top:6px;padding-top:12px}
@media(max-width:400px){.commercial-dialog .dialog-head{gap:10px}.commercial-dialog .dialog-head h2{font-size:1.1rem}.commercial-added-supply{grid-template-columns:minmax(0,1fr) 62px auto;gap:6px}.commercial-quote-table{font-size:.85rem}.commercial-quote-table td:last-child{padding-left:6px}.commercial-universe-nav button,.commercial-breadcrumb button{font-size:.85rem}}
.commercial-success{background:#edf8f0;color:#16492b;border-radius:12px;padding:16px;margin:12px 0 22px}.commercial-success h4{margin:0 0 8px;font-size:1.15rem}.commercial-success p{margin:0}.commercial-documents{margin:14px 0}.commercial-documents summary{font-weight:600;color:#075b80;padding:10px 0}.commercial-documents .commercial-toolbar{margin-top:10px}.commercial-next-action>button{width:100%;margin-top:14px}.commercial-delivery [data-known]{overflow-wrap:anywhere}.commercial-delivery [data-copy]{margin-top:14px}.commercial-delivery [data-send]{width:100%}
.commercial-dialog .commercial-heading h2{line-height:1.35;overflow:visible}.commercial-heading .commercial-step{position:static;line-height:1.4;background:transparent}

.commercial-ongoing-list{display:grid;gap:10px;margin:0 0 20px}.commercial-ongoing-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;text-align:left;width:100%;padding:14px;border:1px solid #74b3c8;border-left:5px solid #0877a1;border-radius:14px}.commercial-ongoing-card strong{grid-column:1/-1}.commercial-ongoing-card .commercial-badge{grid-column:1;margin:0;justify-self:start}.commercial-ongoing-card>span:last-child{grid-column:2;grid-row:2/4;align-self:center}.commercial-ongoing-card>span{font-size:13px;overflow-wrap:anywhere}

/* Compact repair follow-up: one page, stable actions, visible validation. */
.repair-followup-dialog{width:min(560px,calc(100vw - 20px))!important;max-height:92dvh}
.repair-followup-dialog .dialog-body{padding:12px!important}
.repair-followup-dialog .commercial-card{border:0;padding:0;margin:0}
.repair-followup-dialog .commercial-next-action{margin:0;padding:0}
.repair-heading{padding:10px 12px;background:#e5f3fc;border-left:4px solid #008ab8;border-radius:10px;margin-bottom:10px}
.repair-heading small,.repair-line small,.repair-total small{display:block;color:#50657a;font-size:12px;margin-top:4px}
.repair-wizard{gap:8px!important;min-height:370px;display:flex;flex-direction:column}
.repair-page{flex:1;min-width:0}.repair-page h3{margin:8px 0 16px}
.repair-choices{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.repair-choices button{flex:1;min-width:100px;padding:12px 8px}
.repair-choices button[aria-pressed=true]{background:#00618a;color:white;border-color:#00618a;box-shadow:0 0 0 2px #9bdbec}
.repair-line{display:grid;grid-template-columns:minmax(0,1fr) 64px auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #dbe6ed;font-size:14px}
.repair-line input{width:64px!important;min-width:0;padding:8px!important;margin:0!important;text-align:center}
.repair-line button{padding:8px 4px;font-size:12px}.repair-line.is-removed{opacity:.6}
.repair-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}
.repair-pagination button{padding:8px 10px}.repair-total{text-align:right;padding:8px;background:#edf8f5;border-radius:8px;font-size:14px}
.repair-error:not([hidden]){background:#fff0ec;color:#9d2716;border:2px solid #d85739;border-radius:8px;padding:10px;font-weight:700;font-size:14px}
.repair-recap{padding:12px;background:#eef6fc;border-radius:8px}.repair-recap p{margin:8px 0}
.repair-wizard .commercial-wizard-nav{margin-top:auto!important;position:sticky;bottom:0;background:white;padding:10px 0 0;display:flex;justify-content:space-between;gap:8px;border-top:1px solid #dae6ed}
.repair-wizard .commercial-wizard-nav button{font-size:13px;padding:12px;min-height:44px}
.repair-price-fields{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px}
@media(max-height:700px){.repair-wizard{min-height:300px}.repair-heading{padding:6px 10px}.repair-line{padding:6px 0}.repair-page h3{margin:4px 0 10px}}

.repair-followup-dialog{height:min(680px,92dvh)}
.repair-followup-dialog .dialog-body{display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto}
.repair-followup-dialog [data-commercial-cases],.repair-followup-card,.repair-followup-card>.commercial-next-action{display:flex;flex-direction:column;flex:1;min-height:0}
.repair-followup-dialog .repair-wizard{min-height:0;flex:1;overflow:hidden}
.repair-followup-dialog .repair-page{overflow:auto;min-height:0}
.repair-followup-dialog [hidden]{display:none!important}
.repair-followup-dialog .repair-error{flex-shrink:0}
.repair-followup-dialog .commercial-wizard-nav{flex-shrink:0}

.repair-followup-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.repair-followup-dialog .dialog-head{flex-shrink:0}
.repair-followup-dialog .dialog-body{max-height:none;overflow:hidden;box-sizing:border-box}
