/* Extension des composants existants : aucune nouvelle palette ou grille principale. */
.advanced{border-top:1px solid var(--border);margin-top:18px;padding-top:13px;font-size:12px}.advanced summary,.price-detail summary{color:#2163b8;cursor:pointer;font-weight:600;margin-bottom:12px}.advanced .fields{margin-top:14px}.types{flex-wrap:wrap}.type-card{min-width:105px}.type-card svg{width:100%;height:62px;display:block}.needs-review{background:#fff9ed}.quote-lines th{white-space:normal;min-width:75px}.quote-lines th:first-child{min-width:160px}.quote-lines .price-input{width:74px}.price-detail{margin-top:8px;font-size:10px}.price-detail summary{font-weight:400;margin-bottom:5px}.price-detail small{max-width:170px}#works-panel .tabs-inline{margin-bottom:14px}#workspace-dialog form .actions{margin-top:22px}#workspace-dialog{max-width:600px}.advanced p{font-size:11px;line-height:1.7}.error{overflow-wrap:anywhere}@media print{.no-print,.price-detail,.editable-quote th:nth-child(3),.editable-quote th:nth-child(4),.editable-quote td:nth-child(3),.editable-quote td:nth-child(4),.quote-lines button,.quote-lines input,.editable-quote td:nth-child(2) small{display:none!important}.quote-lines th{min-width:0}.quote-lines th:first-child{min-width:0}}

.component-row{display:flex;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.component-row span{flex:1}.component-row small{display:block;color:var(--muted);font-size:10px}

.live-materials{font-size:11px;border:1px solid var(--border);border-radius:9px;padding:8px 12px;margin:12px 0}.live-materials>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.live-materials strong{white-space:nowrap;color:#2163b8}.quote-paper,.quote-sidebar{min-width:0}.success-note{color:#286851;font-size:11px}.component-row{flex-wrap:wrap}.component-row span{min-width:130px;overflow-wrap:anywhere}@media print{.quote-paper .table-wrap{overflow:visible}.quote-lines td{overflow-wrap:anywhere}.quote-lines thead{display:table-header-group}#recovery-notice{display:none!important}}

.quote-summary{margin:0 0 20px;padding:18px 22px}.quote-summary summary{margin:0}.quote-summary h3{margin-top:20px}.quote-summary th{white-space:normal}.quote-summary td:first-child{min-width:170px}.quote-summary .table-wrap{margin-top:10px}

@media(max-width:600px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.steps .step{min-width:0;min-height:56px;padding:10px;gap:8px}.steps .number{flex-shrink:0}.steps .step:nth-child(2){border-right:0}.steps .step:nth-child(-n+2){border-bottom:1px solid var(--border)}}
/* Même document client pour brouillon imprimé et révision, sans coûts internes. */
.field textarea{font:inherit;width:100%;border:1px solid #cdd9e9;border-radius:7px;padding:10px 12px;color:var(--ink);resize:vertical}.multiline{white-space:pre-wrap;overflow-wrap:anywhere}.quote-dates{font-size:11px;margin:0 0 18px}.quote-terms p{margin:10px 0;white-space:normal}.document-totals{max-width:320px;margin:20px 0 0 auto;break-inside:avoid}.document-lines{table-layout:fixed}.document-lines td,.document-lines th{overflow-wrap:anywhere}.document-lines th small{display:block;text-transform:none;font-size:9px;font-weight:400;letter-spacing:0}.quote-head>div,.quote-meta>div{min-width:0;max-width:60%;overflow-wrap:anywhere}.quote-brand{overflow-wrap:anywhere}.document-incomplete{border:1px solid #d8a77c;padding:12px}.quote-document-fields{margin-bottom:16px}
@media print{.quote-editor{display:none!important}.quote-print{display:block!important}.quote-print .quote-head{break-inside:avoid}.document-lines{font-size:10px}.document-lines th{font-size:9px}.document-lines td{padding:9px 7px}.document-lines th{padding:9px 7px}.document-lines tr{break-inside:avoid;page-break-inside:avoid}.document-lines thead{display:table-header-group}.document-totals{break-inside:avoid;page-break-inside:avoid}.quote-terms p{break-inside:avoid;orphans:3;widows:3}.quote-head,.quote-meta{break-inside:avoid}.quote-brand{font-size:20px}.quote-paper{padding:0!important}.quote-print .quote-terms,.quote-paper .quote-terms{color:#334155}.quote-dates{color:#334155}}
/* Les formulaires métier restent accessibles dans le panneau étroit et sur mobile. */
#workspace-dialog{width:600px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}#workspace-dialog .actions{flex-wrap:wrap}#workspace-dialog input,#workspace-dialog select{min-width:0;max-width:100%}
.document-lines{min-width:600px}.document-lines .num{white-space:nowrap}@media print{.document-lines{min-width:0}.quote-print .table-wrap,.quote-paper>.table-wrap{overflow:visible}}
/* Repères natifs de pagination, y compris sur les pages de conditions seules. */
.quote-terms> b{display:block;break-after:avoid}.quote-terms p>b:first-child{break-after:avoid}
@page{@bottom-right{content:"Page " counter(page) " / " counter(pages);font-family:Arial,sans-serif;font-size:8pt;color:#64748b}}

/* Métrés : trois étapes ; les mêmes contrôles et résultats, sans copie de formulaire. */
.measure-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr);gap:16px;align-items:start}
.measure-workspace>.measure-editor{grid-column:1;grid-row:1;margin:0;min-width:0}
.measure-workspace>.measure-results{grid-column:2;grid-row:1 / span 2;margin:0;min-width:0;padding:18px}
.measure-workspace>.measure-options{grid-column:1;grid-row:2;margin:0;padding:4px 18px 16px;min-width:0}
.measure-options>.advanced:first-child{border-top:0}.measure-options>.advanced{margin-top:8px;padding-top:10px}
.measure-workspace h2{font-size:17px}.measure-workspace .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.measure-workspace .result-bar{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));margin:12px 0;gap:10px}
.measure-workspace .result-bar strong{font-size:20px}.measure-workspace .result-bar>div{min-width:0}
.measure-workspace .live-materials>div{flex-wrap:wrap}.measure-workspace .framework-config-section.only-optional{display:none}
.measure-choice{padding:14px 18px}.measure-choice .section-head{margin-bottom:10px}.measure-choice h2{font-size:17px}
.app-layout .measure-choice .trade-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
.measure-choice .trade-card{display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px 8px;padding:10px;align-items:center;grid-column:auto;min-width:0}
.measure-choice .trade-card.selected{padding:9px}.measure-choice .trade-card .work-family-icon{width:28px;height:32px;grid-row:1 / span 2}
.measure-choice .trade-card strong{font-size:12px;margin:0;overflow-wrap:anywhere}.measure-choice .trade-card small{grid-column:2;font-size:10px;margin:0;line-height:1.35}
.measure-choice .check{right:4px;top:0;font-size:12px}
.measure-workspace .floor-illustration,.measure-workspace .framework-illustration,.measure-workspace .trade-illustration{height:76px}
.measure-workspace .work-variants{gap:8px}.measure-workspace .work-variants .type-card{padding:9px;overflow-wrap:anywhere}.measure-workspace .drawing svg{max-height:110px}
.work-context{display:flex;flex-wrap:wrap;gap:5px 12px;margin:10px 0;font-size:12px}.work-context span{color:var(--muted)}
.saved-work-list{display:grid;gap:0}.saved-work{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}
.saved-work strong,.saved-work small{display:block;overflow-wrap:anywhere}.saved-work small{color:var(--muted);font-size:11px;margin-top:4px}.saved-work>b{white-space:nowrap;font-size:13px}.saved-work .row-actions{grid-column:1/-1}
.missing-information{padding:10px 12px;margin:12px 0;background:#f8fbff;border:1px solid var(--border);border-radius:8px;font-size:12px}
.missing-information .actions{justify-content:flex-start;flex-wrap:wrap;gap:4px;margin-top:6px}
.wall-row>details>summary{padding:7px 0}
@media(max-width:1050px){.measure-workspace{grid-template-columns:minmax(0,1fr)}.measure-workspace>.measure-editor{grid-column:1;grid-row:1}.measure-workspace>.measure-results{grid-column:1;grid-row:2}.measure-workspace>.measure-options{grid-column:1;grid-row:3}}
@media(max-width:600px){.app-layout .measure-choice .trade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.measure-workspace .fields{grid-template-columns:1fr}.measure-workspace .work-variants{grid-template-columns:repeat(2,minmax(0,1fr))}.measure-workspace{gap:12px}.saved-work{grid-template-columns:1fr}.saved-work>b{white-space:normal}}.wall-row{border:1px solid var(--border);border-radius:9px;padding:12px;margin:10px 0}.wall-row.selected{border-color:#91b9ef;background:#fafdff}.wall-row .pill{font-size:10px}.wall-row .table-action{padding:5px}.measure-results>h2{margin-bottom:12px}.measure-results #works-panel{margin-top:16px}.measure-results .section-head{margin-bottom:10px}.measure-config-heading{grid-column:1/-1;padding:18px 18px 0;margin:0}.measure-choice .trade-grid{margin-bottom:12px}


/* Planchers : schéma proche des cotes, sans colonne vide sur toute la fiche. */
.app-layout .floor-editor.editor{display:block}.floor-editor .measure-config-heading{padding-bottom:0}.floor-editor .configuration{padding-top:10px}.floor-editor .types{margin-top:0}.floor-editor .advanced{margin-top:12px;padding-top:10px}.floor-illustration{display:block;width:100%;height:110px;object-fit:contain;background:#fff;border-radius:5px;margin:0 0 8px}.floor-editor .types>.type-card{padding:10px 14px}.composition-choices{margin:10px 0 14px}.composition-choices>span{color:var(--muted)}.composition-choices .actions{justify-content:flex-start;flex-wrap:wrap;margin:4px 0 0;gap:8px}.composition-choices button{font-size:inherit}



/* Même fiche compacte pour les six familles ; les champs métier restent propres. */
.app-layout .measure-editor.editor{display:block}.measure-editor>.configuration{padding:10px 18px 18px}.measure-editor .measure-config-heading{padding:18px 18px 0}.measure-editor .work-variants{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:12px 0 16px}.work-variants .type-card{min-width:0;padding:10px 14px}.work-variants .type-card svg{height:90px;margin-bottom:8px}.work-variants .type-card>span{display:block}.measure-setup{display:grid;grid-template-columns:minmax(140px,190px) minmax(0,1fr);gap:18px;align-items:center;margin-bottom:10px}.measure-setup .visual{position:static;border:0;background:transparent;padding:0}.measure-setup .drawing{min-height:0;margin:0}.measure-setup .drawing svg{max-height:135px}.measure-editor .fields{gap:12px}.measure-editor .advanced{margin-top:12px;padding-top:10px}
@media(min-width:1000px){.measure-editor .configuration>.fields,.measure-editor .advanced .fields{grid-template-columns:repeat(3,minmax(0,1fr))}.measure-setup>.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.measure-setup{grid-template-columns:1fr}.measure-setup .drawing svg{max-height:120px}.measure-editor .work-variants{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.measure-editor .work-variants{grid-template-columns:1fr}}

/* Systèmes de charpente : mêmes cartes compactes que les autres familles. */
.measure-editor .framework-systems{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:8px}.framework-illustration{display:block;width:100%;height:110px;object-fit:contain;margin-bottom:8px;background:#fff}.framework-systems .type-card{padding:10px}.framework-pieces{justify-content:flex-end;margin:0 0 8px}.framework-components{margin-bottom:8px}
@media(max-width:1100px){.measure-editor .framework-systems{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.measure-editor .framework-systems{grid-template-columns:1fr}}

/* Charpente : illustration contextuelle et actions à côté de la toiture. */
.framework-editor .measure-setup{grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:16px}.framework-editor .measure-setup>.fields{align-items:start}.framework-context{margin:0}.framework-component-illustration{display:block;width:100%;height:145px;object-fit:contain;background:#fff}.framework-context figcaption{font-size:12px;line-height:1.4;color:var(--muted);margin-top:6px}.framework-roof-field{min-width:0}.framework-roof-field .actions{justify-content:flex-start;flex-wrap:wrap;gap:8px;margin:6px 0 0}.framework-roof-field .table-action{padding:4px 0}
@media(max-width:700px){.framework-editor .measure-setup{grid-template-columns:1fr}.framework-component-illustration{height:130px}}

.framework-geometry .framework-roof-field p{margin:4px 0}.framework-editor .framework-work-visual{position:static;border:0;background:transparent;padding:0;max-width:320px;margin:10px 0}.framework-work-visual .drawing{min-height:0;margin:0}

/* Charpente : sous-rubriques dans la même configuration que les autres métiers. */
.framework-config-section+.framework-config-section{border-top:1px solid var(--border);margin-top:18px;padding-top:18px}.framework-config-section>h3{margin-bottom:12px}
@media(min-width:1000px){.measure-editor .framework-config-section>.fields{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Résumé de la toiture commune sous les cartes illustrées existantes. */
.roof-geometry-summary{border:1px solid var(--border);border-radius:9px;padding:12px 14px;background:#f8fbff}.roof-geometry-summary .note{margin-top:0}.roof-geometry-summary .actions{margin-top:10px}

.roof-geometry-fields{margin-top:14px}.roof-geometry-fields fieldset{border:0;padding:0;margin:0;min-width:0}.roof-geometry-fields .fields{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-bottom:10px}.roof-geometry-fields .roof-shape-variant{max-width:250px;margin-bottom:12px}

.required-parameters{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--line,#dce5f2)}
.required-parameters h4{margin:0 0 10px}
.required-parameters .actions{margin-top:10px}

/* Cartes métier harmonisées, sans colonne illustrée redondante. */
.trade-illustration{display:block;width:100%;height:120px;object-fit:contain;background:#fff;margin-bottom:8px}.roof-work-identity>.fields{grid-template-columns:minmax(160px,1fr) minmax(0,2fr);align-items:start}.roof-work-identity .roof-geometry-summary p{margin:2px 0}.composition-choices p{margin:6px 0}.trade-variants .type-card[aria-pressed="true"]{border-color:var(--blue)}

@media(max-width:700px){.roof-work-identity>.fields{grid-template-columns:1fr}}


/* Synthèse de lecture, sans ouvrage ni calcul métier supplémentaire. */
.roof-quantity-card{padding:18px 0;border-top:1px solid var(--border)}.roof-quantity-card h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.roof-quantity-card h4{margin:18px 0 10px}.roof-quantity-card .table-wrap{margin:10px 0}.roof-quantity-card .result-bar{margin:10px 0;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.roof-quantity-card .result-bar strong{font-size:20px}.roof-edge-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}.roof-edge-totals>div{border:1px solid var(--border);border-radius:8px;padding:10px;background:#f8fbff}.roof-edge-totals b,.roof-edge-totals span{display:block}.roof-edge-totals span{margin:5px 0;color:var(--ink)}.roof-edge-totals details{padding:8px 0 0;margin:6px 0 0}.quantity-work-details>summary{font-size:15px;margin-bottom:14px}.roof-zinc-summary strong{overflow-wrap:anywhere}.roof-zinc-summary>div{min-width:0}

/* Devis : chiffrage lisible et aperçu client séparé, mêmes composants blancs/bleus. */
.quote-workspace{grid-template-columns:minmax(0,1fr) 290px}
.quote-editor .quote-summary{margin:20px 0 0;padding:14px;box-shadow:none}
.quote-pricing-lines{table-layout:fixed;min-width:710px;margin:16px 0}
.quote-pricing-lines .quote-designation-col{width:43%}.quote-pricing-lines .quote-quantity-col{width:13%}.quote-pricing-lines .quote-unit-col{width:8%}.quote-pricing-lines .quote-price-col{width:18%}
.quote-pricing-lines th,.quote-pricing-lines td{white-space:normal;min-width:0;overflow-wrap:anywhere}
.quote-pricing-lines th{padding:11px 10px}.quote-pricing-lines td{padding:12px 10px}
.quote-pricing-lines td small{font-size:11px;line-height:1.5}.quote-pricing-lines .quote-group-title th{color:#1d4e87;background:#eef4fc;padding-top:14px;text-transform:none;font-size:13px}
.quote-pricing-lines .price-input{width:100%;min-width:86px;max-width:145px;padding:9px;border:1px solid #cdd9e9;border-radius:7px;background:#fff;color:var(--ink)}
.quote-pricing-lines .quote-sale-input{text-align:right;border-color:#90b8ee;background:#fbfdff;font-size:14px}
.quote-pricing-lines .quote-quantity-edit{display:inline-flex;gap:5px;align-items:center;border:1px solid #cdd9e9;border-radius:7px;padding:8px;background:white;color:#215da8;font-weight:600;white-space:nowrap}
.quote-pricing-lines .quote-line-amount{font-weight:700;font-size:14px;white-space:nowrap}
.quote-pricing-lines .quote-line-settings td{padding:0 10px 12px;border-bottom:1px solid var(--border)}
.quote-line-details{font-size:12px}.quote-line-details>summary{cursor:pointer;color:#2163b8;padding:5px 0}.quote-line-details>.fields{max-width:660px;margin:12px 0}.quote-line-details p{margin:8px 0}.quote-line-details .price-detail small{max-width:none}
.quote-missing{border:1px solid var(--border);background:#f8fbff;border-radius:9px;padding:14px;margin:12px 0 20px}
.quote-missing h3{font-size:14px}.quote-missing ul{list-style:none;margin:8px 0 0;padding:0}.quote-missing li{padding:8px 0;border-bottom:1px solid #e7eef8;font-size:12px}.quote-missing li:last-child{border:0}.quote-missing li span{display:block;color:#64748b}
.quote-missing .advanced{margin-top:10px}.quote-client-preview{margin-top:28px}.quote-client-preview>.section-head{padding-bottom:16px;border-bottom:1px solid var(--border)}.quote-client-preview #quote-preview-state:empty{display:none}
@media(max-width:1200px){.quote-workspace{grid-template-columns:minmax(0,1fr)}.quote-workspace .quote-sidebar{display:block}.quote-pricing-lines .quote-designation-col{width:41%}}
@media print{.quote-workspace,.quote-client-preview>.section-head,#quote-preview-state{display:none!important}.quote-client-preview{display:block!important;margin:0;border:0;box-shadow:none}}

/* Two simple company templates, existing document renderer and native PDF printing. */
.document-template-layout{display:grid;grid-template-columns:minmax(270px,360px) minmax(0,1fr);gap:20px;align-items:start}.document-template-layout .field{margin-bottom:14px}.document-template-preview{min-width:0}.document-template-preview .quote-paper{padding:12px 0}.document-template-preview .advanced{margin-top:16px}.document-template-preview .quote-head>div{max-width:55%}.document-template-preview .quote-head h2{font-size:18px}.supplier-document-panel summary{color:#2163b8;cursor:pointer}.supplier-document-panel .quote-paper{padding:20px 0}.supplier-document-panel .field{max-width:600px}.supplier-document-panel .document-lines small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
@media(max-width:1100px){.document-template-layout{grid-template-columns:1fr}}
@media print{body.printing-supplier #screen>:not(.supplier-document-panel),body.printing-supplier .project-heading,body.printing-supplier .steps,body.printing-supplier .footer-nav{display:none!important}body.printing-supplier .supplier-document-panel{border:0;padding:0;box-shadow:none}body.printing-supplier .supplier-document-panel summary,body.printing-supplier .supplier-document-panel .no-print{display:none!important}body.printing-supplier .supplier-document-panel details,body.printing-supplier #supplier-document-paper{display:block!important}body.printing-supplier #supplier-document-paper .table-wrap{overflow:visible}body.printing-supplier .supplier-document-panel td{padding:9px 7px}body.printing-supplier .supplier-document-panel tr{break-inside:avoid}body.printing-supplier .supplier-document-panel thead{display:table-header-group}}

/* Administration: existing document templates, one preview at a time. */
.document-menu-label{padding:12px 14px 5px;font-size:12px;color:var(--muted);font-weight:700}.administration-submenu .document-submenu{padding-left:26px;font-size:13px}.document-identity-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.document-template-layout>.panel{min-width:0}.document-template-layout textarea{width:100%}

/* Enterprise identity: one source for both document templates. */
.enterprise-identity-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:32px;align-items:start}.enterprise-main-fields,.enterprise-logo-panel{min-width:0}.enterprise-logo-panel h3{margin-top:0}.company-logo-drop{border:2px dashed #cbdcf0;border-radius:12px;padding:20px;text-align:center;background:#f8fbff}.company-logo-drop.dragging{border-color:#0066ff;background:#edf5ff}.company-logo-drop small,.enterprise-address small{display:block;color:var(--muted);margin-top:8px}.company-logo-drop .company-logo{display:block;max-width:100%;max-height:140px;object-fit:contain;margin:0 auto 12px}.logo-file-choice{display:inline-flex;position:relative;cursor:pointer}.logo-file-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.logo-file-choice:focus-within{outline:2px solid #0066ff;outline-offset:3px}.enterprise-address{grid-column:1/-1}.enterprise-address [role=listbox]{border:1px solid #cbdcf0;border-radius:8px;overflow:hidden}.enterprise-address [role=option]{display:block;width:100%;border:0;background:white;text-align:left;padding:10px 12px;color:var(--ink);cursor:pointer}.enterprise-address [role=option]:hover,.enterprise-address [role=option]:focus{background:#edf5ff}.enterprise-address [hidden]{display:none}
@media(max-width:760px){.enterprise-identity-layout{grid-template-columns:1fr;gap:20px}.enterprise-logo-panel{max-width:360px;width:100%}}
/* Focused wood configuration: one editor, compact results, contextual product search. */
.wood-editor .wood-config-section{border-top:1px solid #dce6f3;padding:16px 0 4px;margin-top:12px}.wood-editor h3{margin:0 0 10px}.wood-editor h4{margin:0 0 6px}.wood-location,.wood-setting{padding:10px 0;margin:4px 0;border:0}.wood-location>summary,.wood-setting>summary{color:#2464af;cursor:pointer;font-weight:600}.wood-setting[open]>summary,.wood-location[open]>summary{margin-bottom:12px}.wood-geometry{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.8fr);gap:16px;align-items:center}.wood-geometry .drawing{min-height:0;max-height:230px;background:#fff}.wood-geometry svg{max-height:230px}.wood-product-row{border:1px solid #dce6f3;border-radius:10px;padding:12px;margin:10px 0}.wood-product-row small,.compact-wall small{display:block;color:var(--muted);margin-top:4px}.wood-editor .section-head{gap:10px;flex-wrap:wrap}.wood-editor .section-head .actions{margin:0}.wall-level-group,.work-level-group{margin:20px 0;border:1px solid #cbdcf0;border-radius:10px;overflow:hidden;background:#fff}.wall-level-group>summary,.work-level-group>summary{padding:12px 14px;background:#edf4fd;color:#153d6a;font-size:15px;font-weight:700;cursor:pointer}.wall-level-content,.work-level-group>.saved-work-list{padding:2px 10px 10px}.wall-level-group .wall-row{border-color:#e0e8f2}.measure-level-filter{margin-top:18px;padding-top:14px;border-top:1px solid #dce6f3}.measure-level-filter>.tabs-inline{margin:8px 0;gap:7px;flex-wrap:wrap}.measure-level-filter>small{display:block;color:var(--muted)}.measure-scope-note{padding:12px;background:#f2f6fc;border-radius:8px}.measure-level-filter .filter{white-space:normal}.wall-row.compact-wall{display:flex;gap:10px;align-items:center;padding:12px;margin:8px 0}.compact-wall>div:first-of-type{flex:1;min-width:0}.compact-wall .pill{font-size:10px;margin-top:6px}.wall-batch-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;background:#edf4ff;border:1px solid #c8dcf7;padding:8px;border-radius:8px;font-size:12px;margin:6px 0}.wall-batch-actions>b{flex-basis:100%}.work-batch-buttons{display:flex;gap:8px;flex-wrap:wrap}.wall-select{flex:none}.saved-work:has(.wall-select){grid-template-columns:auto minmax(0,1fr) auto}.wood-navigation>summary .work-selection-toggle{display:inline-block;text-align:left;font-size:11px;margin:3px 0 0 5px;padding:0;font-weight:500}.wood-navigation>summary{padding:10px 12px}.wood-progress-family{font-size:12px;white-space:nowrap}.wood-wall-categories .filter{font-size:14px;padding:7px 14px;border:1px solid #a9c4e8;font-weight:600}.wood-progress-status{align-items:flex-start;row-gap:5px}.wood-progress-counts{border-top:1px solid #dbe6f5;padding-top:5px;width:100%}.batch-property{display:grid;grid-template-columns:minmax(180px,1fr) minmax(100px,1fr);gap:10px;align-items:center;margin:12px 0}.product-suggestions{border:1px solid #dce6f3;border-radius:8px;max-height:260px;overflow:auto}.product-suggestion{display:block;width:100%;background:white;border:0;border-bottom:1px solid #edf2f8;padding:10px;text-align:left;cursor:pointer}.product-suggestion:hover,.product-suggestion:focus{background:#edf5ff}.product-suggestion small{display:block;color:var(--muted);margin-top:3px}.context-product-search input{width:100%}.wood-config-section .direct-products{margin-top:12px}.wood-workspace .measure-results{min-width:0}.wood-workspace .result-bar{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.wood-workspace .result-bar strong{font-size:24px}

@media(max-width:760px){.wood-geometry{grid-template-columns:1fr}.wood-geometry .drawing{max-height:200px}.compact-wall{flex-wrap:wrap}.compact-wall .row-actions{margin-left:auto}.batch-property{grid-template-columns:1fr}.wood-editor .actions{gap:8px}.wood-editor .actions button{white-space:normal}.wood-product-row .section-head{align-items:flex-start}}
.wood-editor .direct-products{display:block}


/* Wood workspace: compact list and wide configurator; normal page scroll. */
.app-layout:has(.wood-compact) main{max-width:none;padding:0 16px 28px}
.app-layout:has(.wood-compact) #breadcrumb{padding-top:10px}
.app-layout:has(.wood-compact) .project-heading{margin:8px 0 12px;gap:12px}
.app-layout:has(.wood-compact) .project-heading h1{font-size:20px;line-height:1.3;margin:0 0 4px}
.app-layout:has(.wood-compact) #project-tools{margin-bottom:10px}
.app-layout:has(.wood-compact) .optional-note{display:none}
.app-layout:has(.wood-compact) .steps{margin-bottom:12px}
.app-layout:has(.wood-compact) .step{padding:9px 12px;gap:8px}
.wood-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wood-toolbar.measure-choice{display:flex;align-items:center;gap:12px;padding:8px 10px;margin-bottom:8px;border-color:#afc9eb;box-shadow:0 1px 4px #153d6a12}
.app-layout .wood-toolbar .trade-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;gap:6px;margin:0}
.app-layout .wood-toolbar .trade-card,.app-layout .wood-toolbar .trade-card.selected{display:flex;align-items:center;gap:8px;padding:6px 10px;border-width:1px;border-radius:6px}
.app-layout .wood-toolbar .trade-card.selected{border-left-width:5px}
.wood-toolbar .trade-card strong{font-size:12px;margin:0}
.wood-toolbar .trade-card .work-family-icon,.wood-toolbar .trade-card .trade-illustration,.wood-toolbar .trade-card .floor-illustration{display:block;width:44px;height:32px;min-height:0;flex:0 0 44px;object-fit:contain;margin:0}.wood-toolbar .trade-card small{display:none}.wood-toolbar .trade-card .check{display:block;position:absolute;right:4px;top:0;margin:0;color:#0065ff;font-size:14px}
.wood-level-filter{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.wood-level-filter select{max-width:215px;min-height:36px;border:1px solid #cdd9e9;border-radius:6px;padding:6px 24px 6px 8px;color:var(--ink);background:#fff}
.measure-workspace.wood-compact{grid-template-columns:var(--workspace-list-width,280px) minmax(0,1fr);gap:12px;align-items:start}
.wood-compact>.wood-navigation{grid-column:1;grid-row:1;margin:0;padding:0;min-width:0;box-shadow:none;border-radius:9px}
.wood-navigation>summary{padding:12px;font-weight:700;color:#153d6a;cursor:pointer}
.wood-navigation-content{padding:0 10px 10px}
.wood-list-actions{margin:0 0 8px}
.wood-list-actions .creation-action{width:100%}.wood-list-actions .secondary{flex:1;min-width:0;padding:8px;font-size:12px;text-align:left}
.wood-compact .wall-level-group,.wood-compact .work-level-group{margin:10px 0;border:0;border-top:1px solid #dce6f3;border-radius:0;background:transparent;overflow:visible}
.wood-compact .wall-level-group>summary,.wood-compact .work-level-group>summary{padding:8px;background:#edf4fd;border-radius:5px;font-size:12px}
.wood-compact .wall-level-content,.wood-compact .work-level-group>.saved-work-list{padding:0}
.wood-compact .wall-row.compact-wall,.wood-compact .saved-work{padding:8px 3px;margin:0;border:0;border-bottom:1px solid #edf1f6;border-radius:0;display:flex;gap:4px;align-items:flex-start;flex-wrap:wrap}
.wood-compact .saved-work>div:first-child{flex:1;min-width:0}
.wood-compact .saved-work>b{font-size:11px;width:100%;font-weight:400;color:var(--muted)}
.wood-compact .saved-work .row-actions,.wood-compact .compact-wall .row-actions{margin-left:auto}
.wood-work-select{border:0;background:transparent;color:#254d7f;font:inherit;font-size:12px;font-weight:600;text-align:left;padding:2px 0;overflow-wrap:anywhere;cursor:pointer;max-width:100%}
.wood-work-select[aria-current=true]{color:#075bd8}
.wood-compact .compact-wall.selected,.wood-compact .saved-work:has([aria-current=true]){background:#eff5ff}
.wood-compact .compact-wall small,.wood-compact .saved-work small{font-size:11px;overflow-wrap:anywhere}
.wood-compact .compact-wall .pill{font-size:10px;padding:2px 4px;margin-top:3px}
.wood-navigation #works-panel{border-top:1px solid #dce6f3;margin-top:12px}
.wood-navigation #works-panel>.advanced{padding-top:10px;margin-top:0;border:0;font-size:12px}
.wood-navigation:has([data-panel=other-project-works][open]) #wall-rows,.wood-navigation:has([data-panel=other-project-works][open]) #wood-floor-rows,.wood-navigation:has([data-panel=other-project-works][open]) #work-batch,.wood-navigation:has([data-panel=other-project-works][open]) #work-selection{display:none}
.wood-compact>.wood-editor{grid-column:2;grid-row:1;margin:0;padding:14px;overflow:visible;box-shadow:none;border-radius:9px}
.wood-compact .wood-editor>h2{font-size:16px;margin:0 0 6px}
.wood-compact .wood-editor .wood-config-section{padding:10px 0 0;margin-top:10px}
.wood-compact .wood-editor h3{font-size:13px;margin-bottom:8px}
.wood-compact .wood-editor h4{font-size:12px}
.wood-compact .wood-location,.wood-compact .wood-setting{padding:7px 0;margin:0;font-size:12px}
.saved-work:has(.wall-select){grid-template-columns:auto minmax(0,1fr)}.saved-work:has(.wall-select)>b{grid-column:2}.wood-compact .wood-geometry{grid-template-columns:minmax(0,1fr) 110px;gap:12px}
.wood-compact .wood-geometry .drawing,.wood-compact .wood-geometry svg{max-height:100px;margin:0}
.wood-compact .fields{gap:10px}
.wood-compact .field>span{font-size:12px;margin-bottom:4px}
.wood-compact .field input,.wood-compact .field select{padding:8px;min-height:38px}
.wood-compact .wood-product-row{padding:8px 0;margin:6px 0;border:0;border-bottom:1px solid #edf1f6;border-radius:0}
.wood-compact .wood-product-row h4{margin:0}
.wood-compact .wood-type-choice .work-variants{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0;gap:8px}
.wood-compact .wood-type-choice .type-card{display:flex;align-items:center;gap:10px;padding:6px 8px;text-align:left}.wood-compact .wood-type-choice .type-card svg,.wood-compact .wood-type-choice .type-card img{width:96px;height:54px;max-height:54px;flex:0 0 96px;margin:0;object-fit:contain}.wood-compact .wood-type-choice .type-card span{font-size:12px;min-width:0;overflow-wrap:anywhere}
.wood-compact .wood-compact-results{margin:12px 0 0;padding:12px 0 0;border:0;border-top:1px solid #dce6f3;box-shadow:none}
.wood-compact-results h2{font-size:14px;margin:0 0 6px}
.wood-essential-results .result-bar{padding:8px 10px;margin:8px 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.wood-essential-results .result-bar strong{font-size:21px}
.wood-essential-results .result-bar>div{border:0;padding:0;min-width:0}
.wood-essential-results .result-caption{font-weight:400;overflow-wrap:anywhere}
.wood-compact-results .live-materials>div{padding:6px 0;font-size:12px}
.wood-compact .wood-essential-results .note{margin-top:6px}
.wood-compact .wood-setting ul{padding-left:18px;margin:8px 0}
.wood-compact .wood-editor,.wood-compact #wood-active-editor,.wood-compact .field{min-width:0}
.wood-compact .field input,.wood-compact .field select{max-width:100%;box-sizing:border-box}
@media(max-width:900px){.measure-workspace.wood-compact{grid-template-columns:minmax(0,1fr)}.wood-compact>.wood-navigation{grid-column:1;grid-row:1}.wood-compact>.wood-editor{grid-column:1;grid-row:2}.wood-toolbar.measure-choice{flex-wrap:wrap;gap:8px}.wood-level-filter{white-space:normal}.wood-level-filter select{max-width:100%}}
@media(max-width:600px){.app-layout:has(.wood-compact) main{padding:0 12px 24px}.app-layout .wood-toolbar .trade-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.app-layout .wood-toolbar .trade-card,.app-layout .wood-toolbar .trade-card.selected{padding:6px}.app-layout .wood-toolbar .trade-card[data-family-trade="bardage"]{grid-column:1/-1}.wood-toolbar .trade-card strong{font-size:12px}.wood-level-filter{width:100%;justify-content:space-between}.wood-level-filter select{flex:1;max-width:230px}.saved-work:has(.wall-select){grid-template-columns:auto minmax(0,1fr)}.saved-work:has(.wall-select)>b{grid-column:2}.wood-compact .wood-geometry{grid-template-columns:minmax(0,1fr)}.wood-compact .wood-geometry .drawing{display:none}.wood-compact .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.wood-compact .field>span{font-size:11px}.wood-compact .wood-essential-results .result-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.wood-compact .wood-editor .section-head{gap:4px}.wood-compact .section-head .table-action{white-space:normal;text-align:left}}

/* Opt-in two-zone splitter; never changes project data or page scrolling. */
.resizable-workspace{position:relative}
.workspace-separator{position:absolute;top:0;bottom:0;left:var(--workspace-list-width,280px);width:12px;cursor:col-resize;touch-action:none;z-index:2;outline:none}
.workspace-separator::before{content:"";position:absolute;top:0;bottom:0;left:5px;width:2px;border-radius:2px;background:#d7e3f3}
.workspace-separator::after{content:"";position:absolute;top:42px;left:4px;width:4px;height:32px;border-radius:3px;background:#8ba9ce}
.workspace-separator:hover::before,.workspace-separator:focus-visible::before,.workspace-resizing>.workspace-separator::before{background:#0b63f6}
.workspace-separator:focus-visible::after,.workspace-resizing>.workspace-separator::after{background:#0b63f6}
.workspace-resizing,.workspace-resizing *{cursor:col-resize!important;user-select:none!important}
.measure-workspace.wood-compact[data-resize-stacked]{grid-template-columns:minmax(0,1fr)}
.wood-compact[data-resize-stacked]>.wood-navigation{grid-column:1;grid-row:1}
.wood-compact[data-resize-stacked]>.wood-editor{grid-column:1;grid-row:2}
.wood-compact .wood-navigation>summary,.wood-compact .wood-editor>h2{overflow-wrap:anywhere}
@media(max-width:900px){.workspace-separator{display:none}}

@media(max-width:600px){.wood-compact .wood-type-choice .type-card{gap:5px}.wood-compact .wood-type-choice .type-card svg,.wood-compact .wood-type-choice .type-card img{width:64px;height:40px;flex-basis:64px}}

/* Même sélection visuelle, sans confondre les commandes métier et les types. */
.trade-card.selected,.type-card.selected,.filter.active{background:var(--soft);border-color:var(--blue);color:#003b8e;box-shadow:inset 0 0 0 1px var(--blue);font-weight:700}
.wood-wall-categories .filter.active::after{content:'✓';margin-left:6px;color:var(--blue)}
.type-card.selected::after{content:'✓';position:absolute;top:4px;right:6px;color:var(--blue);font-size:12px;line-height:1}
/* Une action d’ajout, avec le nombre de fiches indépendantes. */
.creation-count{display:inline-flex;align-items:center;gap:.45rem;font-size:.8rem;color:#49617e;white-space:nowrap}.creation-count input{width:4rem;min-width:0;padding:.4rem}.creation-action{display:inline-flex;align-items:stretch;gap:6px;max-width:100%;min-width:0}.creation-action .creation-count{flex:none;align-items:stretch}.creation-action button,.creation-action .creation-count input{min-height:38px;border-width:1px;border-style:solid;border-radius:9px;font-size:12px;line-height:1.5}.creation-action button{min-width:0;white-space:normal}.creation-action .creation-count input{width:3.6rem;padding:8px;border-color:var(--border);background:#fff;color:var(--ink);text-align:center}.wood-wall-categories{margin:0;gap:.4rem}.independent-position{border:0;border-top:1px solid #dbe5f2;padding:1rem 0;margin:0}.independent-position legend{font-weight:600;padding-right:.5rem}@media(max-width:600px){.creation-count{flex-wrap:wrap;white-space:normal}.wood-list-actions{gap:.4rem}.independent-position .fields{grid-template-columns:1fr}}

/* Un état réel et la sélection existante, proches des dimensions à toutes les largeurs. */
.wood-progress{position:sticky;top:var(--wood-progress-top,0px);z-index:5;background:#fff;border:1px solid #cddff5;border-radius:8px;padding:8px 12px;margin-bottom:10px;box-shadow:0 3px 9px #163c6610;min-width:0}
.wood-progress-status,.wood-progress-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.wood-section-heading,.wood-section-context{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.wood-section-heading{justify-content:space-between;margin-bottom:5px}.wood-section-heading .wood-level-filter{margin-left:auto}.wood-progress small{color:var(--muted);font-size:11px}.wood-progress .filter{padding:7px 14px;font-size:14px}.wood-progress-counts{display:flex;align-items:center;gap:12px;font-size:12px;flex-wrap:wrap}.wood-progress-controls{margin-top:6px}.wood-element-navigation{display:flex;align-items:center;gap:4px;min-width:0;flex:0 1 400px}.wood-element-navigation label{min-width:0;flex:1}.wood-element-navigation select{width:100%;min-width:0;padding:6px;font-size:12px}.wood-element-navigation .secondary{padding:6px 10px}.wood-next-action{flex:1 1 200px;margin:0;font-size:12px;color:#3e5878}.wood-progress-controls>.table-action{white-space:nowrap}.wood-progress-pending{color:#9b5a07}.wood-editor{scroll-margin-top:var(--wood-editor-offset,110px)}
@media(max-width:600px){.wood-progress{padding:6px 8px}.wood-section-heading,.wood-section-context{width:100%;gap:4px}.wood-section-heading .wood-level-filter{margin-left:0}.wood-progress-counts{font-size:11px;gap:6px 10px}.wood-progress-controls{gap:4px}.wood-element-navigation{flex:1 1 210px}.wood-next-action{flex-basis:100%;order:3;font-size:11px}.wood-progress .filter{font-size:13px}.wood-progress-controls>.table-action{font-size:11px}}

/* Charpente : même espace compact, regroupé par toiture ; visuels existants. */
.framework-compact .framework-systems .framework-illustration{height:64px;margin-bottom:4px}
.framework-compact .framework-systems .type-card{padding:8px;font-size:12px}
.framework-compact .configuration{padding:8px 0 0}
.framework-compact .framework-essential-results{margin:8px 0}
.framework-compact .framework-essential-results .result-bar{margin:8px 0;padding:8px 10px}
.framework-compact .saved-work{display:grid;grid-template-columns:minmax(0,1fr) auto}.framework-compact .saved-work>div{min-width:0}
.framework-compact .saved-work:has(.wall-select){grid-template-columns:auto minmax(0,1fr) auto}
.framework-compact .framework-config-section+.framework-config-section{margin-top:10px;padding-top:10px}
@media(max-width:600px){.framework-compact .measure-editor .framework-systems{grid-template-columns:repeat(2,minmax(0,1fr))}.framework-compact .framework-systems .framework-illustration{height:52px}.framework-compact .framework-essential-results .result-bar{grid-template-columns:1fr}}

/* One compact work projection, shared by the project and the home page. */
.overview-navigation{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.overview-filters{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.overview-filters .field{flex:0 1 240px;margin:0}
.overview-filters .tabs-inline{flex-wrap:wrap}
.overview-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.overview-indicators>div{display:flex;align-items:baseline;gap:8px;padding:9px 12px;border-radius:8px;background:#f1f7ff;flex-wrap:wrap}
.overview-indicators strong{font-size:22px;color:#12365f}.overview-indicators span{font-size:12px}
.overview-trade{border-top:1px solid #d9e4ef;padding:8px 0}.overview-trade>summary{cursor:pointer;font-size:15px;font-weight:700;padding:5px 0;color:#143458}
.overview-trade>summary span{font-weight:400;margin-left:8px}.overview-trade h3{font-size:13px;margin:10px 0 4px}
.overview-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,230px) 18px;gap:12px;align-items:center;text-align:left;width:100%;padding:9px 6px;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:transparent;color:inherit;min-width:0}
.overview-work:hover,.overview-work:focus-visible{background:#eef6ff}.overview-work span{min-width:0;overflow-wrap:anywhere}.overview-work small{display:block;font-weight:400;font-size:12px;color:#536783;margin-top:3px}.overview-work strong{font-size:14px}.overview-status{font-size:12px;color:#7e5108}.overview-status.is-complete{color:#12613d}
.dashboard-overview{margin-bottom:18px}.dashboard-overview>.field{margin-bottom:8px}.dashboard-overview .works-overview{margin-bottom:0}.works-overview{min-width:0}
@media(max-width:700px){.overview-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-filters{align-items:stretch}.overview-filters .field{flex-basis:100%}.overview-work{grid-template-columns:minmax(0,1fr) 18px;gap:4px 8px}.overview-work>span:first-child{grid-column:1}.overview-work .overview-status{grid-column:1}.overview-work>span:last-child{grid-column:2;grid-row:1/3}.overview-navigation button{flex:1;padding:9px 7px}.works-overview{padding:14px}}

/* Couverture : géométrie commune et métré rapprochés, sans troisième colonne. */
.covering-geometry{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr);gap:12px;align-items:start}
.covering-geometry>div{min-width:0}.covering-geometry-results .result-bar{margin-top:6px;display:grid;grid-template-columns:minmax(0,1fr)}.covering-geometry-results .result-bar>div{min-width:0}.covering-geometry-results .result-bar strong{font-size:20px}.covering-geometry .drawing{min-height:0;margin:0;position:static}.covering-geometry .drawing svg{max-height:230px}
.covering-editor .work-variants{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}
.covering-editor .trade-illustration{height:90px;margin:0}.covering-editor .type-card{padding:8px}
.covering-compact .saved-work small{overflow-wrap:anywhere}
@media(max-width:600px){.covering-geometry{grid-template-columns:minmax(0,1fr)}.covering-geometry .drawing svg{max-height:170px}.covering-editor .trade-illustration{height:66px}.covering-editor .type-card{padding:5px;font-size:12px}}

.roof-geometry-fields .fields.dimensions-fields{grid-template-columns:repeat(3,minmax(0,170px));gap:10px;align-items:end}
.covering-editor .roof-geometry-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.covering-editor .roof-geometry-cards .framework-illustration{height:54px;width:100%;object-fit:contain;margin:0}
@media(max-width:600px){.roof-geometry-fields .fields.dimensions-fields{grid-template-columns:repeat(2,minmax(0,170px))}.covering-editor .roof-geometry-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.covering-editor .roof-geometry-cards .type-card{display:flex;align-items:center;gap:5px}.covering-editor .roof-geometry-cards .framework-illustration{width:54px;height:40px;flex:none}}

/* Flat-roof sides use the shared form grid, without nested selection cards. */
.flat-roof-side{border-top:1px solid #dae4f1;padding:10px 0}.flat-roof-side h4{margin:0 0 8px}.flat-roof-side .fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px}.flat-roof-fields h3{margin:18px 0 10px}

/* One data-driven overview and section for all four flat-roof sides. */
.flat-roof-visual{border:1px solid #d5e3f0;border-radius:12px;padding:12px;background:linear-gradient(135deg,#fff,#f6f9fc);min-width:0}
.flat-visual-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.flat-visual-head .tabs-inline{margin:0;display:flex;gap:4px;flex-wrap:wrap}.flat-visual-head .filter{padding:6px 9px}
.flat-visual-drawings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}.flat-visual-drawings figure{margin:0;min-width:0}.flat-visual-drawings svg{display:block;width:100%;height:auto;max-height:235px}.flat-visual-drawings figcaption{font-size:11px;color:var(--muted);text-align:center}
.flat-section-empty{min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);padding:14px}
.flat-visual-quantity{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:baseline;background:#edf5ff;color:#164c85;padding:9px 12px;margin-top:10px;border-radius:8px}.flat-visual-quantity span{font-size:12px}.flat-roof-visual>.note{font-size:11px;margin:8px 0 0}
.flat-roof-side.flat-side-active{border-left:3px solid var(--blue);padding-left:10px;background:linear-gradient(90deg,#f0f6ff,transparent)}
@media(max-width:600px){.flat-visual-drawings{grid-template-columns:minmax(0,1fr);gap:12px}.flat-visual-drawings svg{max-height:200px}.flat-visual-head{align-items:flex-start}.flat-section-empty{min-height:40px}.flat-visual-head .filter{padding:5px 7px}.flat-visual-quantity strong{font-size:14px}}

/* Zinguerie : neuf choix homogènes, puis mesures, schéma et fournitures. */
.zinc-compact .zinc-editor .configuration{padding:0}
.zinc-families{margin:6px 0 8px}.zinc-families section{min-width:0}.zinc-families h3{font-size:12px;margin:8px 0 5px}
.zinc-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.zinc-choice-grid .type-card{display:flex;align-items:center;gap:6px;min-width:0;min-height:62px;padding:5px 8px;text-align:left;font-size:12px;line-height:1.25}
.zinc-choice-grid .type-card span{min-width:0;overflow-wrap:anywhere}.zinc-choice-grid .trade-illustration{flex:0 0 64px;width:64px;height:48px;object-fit:contain;margin:0}
.zinc-compact .advanced{margin-top:10px;padding-top:8px}.zinc-compact .advanced summary{margin-bottom:6px}
.zinc-compact .roof-geometry-summary{padding:8px 10px;margin:8px 0}.zinc-compact .roof-geometry-summary p{margin:2px 0}.zinc-compact .roof-geometry-summary .actions{margin-top:4px}
.zinc-measurement,.joinery-measurement{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);align-items:start;gap:12px;margin:10px 0}
.zinc-measure-fields,.joinery-measure-fields{min-width:0}.zinc-measure-fields .dimensions-fields,.joinery-measure-fields .dimensions-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));max-width:440px;margin:0}
.zinc-measure-fields .field input[type=number],.joinery-measure-fields .field input[type=number]{width:100%;max-width:170px}
.zinc-measure-preview,.joinery-measure-preview{display:grid;gap:6px;min-width:0}.zinc-measure-preview .drawing,.joinery-measure-preview .drawing{display:block;padding:0;margin:0;min-height:0}.zinc-measure-preview .drawing svg,.joinery-measure-preview .drawing svg{height:205px;max-height:205px;width:100%}.zinc-measure-preview #zinc-essential-results{min-width:0}.zinc-measure-figure{margin:0;width:100%}.zinc-measure-figure figcaption{font-size:11px;line-height:1.4}.zinc-measure-figure figcaption small{display:block;color:var(--muted);margin-top:4px}.zinc-measure-legend{display:flex;flex-wrap:wrap;gap:3px 12px}.zinc-measure-legend span{display:block}.zinc-measure-legend b{font-weight:500}
.zinc-measure-preview .result-bar,.joinery-measure-preview .result-bar{margin:0;padding:8px;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px}.zinc-measure-preview .result-bar strong,.joinery-measure-preview .result-bar strong{font-size:20px}.zinc-measure-preview .note,.joinery-measure-preview .note{font-size:11px;margin:4px 0}
.zinc-products{border-top:1px solid #e0e8f2;padding-top:8px}
.zinc-progress .wood-section-heading{margin:0}.zinc-progress .wood-progress-counts{font-size:11px;gap:6px 12px}.zinc-progress .wood-progress-controls{margin-top:4px}
@media(min-width:901px){.zinc-progress{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap}.zinc-progress .wood-progress-controls{flex:1 1 100%;margin:0}}
@media(max-width:600px){.zinc-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.zinc-choice-grid .type-card{min-height:60px;padding:4px;gap:4px;font-size:11px}.zinc-choice-grid .trade-illustration{width:48px;height:42px;flex-basis:48px}.zinc-measurement,.joinery-measurement{grid-template-columns:minmax(0,1fr);gap:6px}.zinc-measure-preview .drawing svg,.joinery-measure-preview .drawing svg{height:200px;max-height:200px}.zinc-measure-preview .result-bar,.joinery-measure-preview .result-bar{grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}.zinc-progress .wood-section-heading{font-size:11px}.zinc-progress .wood-progress-counts{font-size:10px;gap:3px 8px}.zinc-progress .wood-progress-controls{gap:3px}.zinc-progress .wood-element-navigation{flex-basis:200px}.zinc-compact .zinc-supply-lines{min-width:0;table-layout:fixed;width:100%}.zinc-compact .zinc-supply-lines th,.zinc-compact .zinc-supply-lines td{white-space:normal;overflow-wrap:anywhere;padding:8px 6px}.zinc-compact .zinc-supply-lines th:first-child{width:52%}}

/* Abergements : faces explicites, sans nouvelle page ni hypothèse de pièces. */
.abergement-faces{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border:0;padding:8px 0;margin:0}.abergement-faces legend{font-size:12px;color:var(--muted)}.abergement-faces label{display:flex;gap:6px;align-items:center;font-size:12px}.abergement-faces input{accent-color:var(--blue)}.abergement-face-readout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px}.abergement-face-readout b{font-weight:500}

/* Menuiserie : types existants et métrés rectangulaires dans le parcours commun. */
.joinery-editor .joinery-variants{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0}.joinery-variants .type-card{display:flex;align-items:center;gap:6px;min-width:0;padding:6px;font-size:12px}.joinery-variants .type-card.selected{padding:5px}.joinery-variants .trade-illustration,.joinery-variants .type-card svg{width:64px;height:48px;flex:0 0 64px;margin:0;object-fit:contain}.joinery-variants .type-card span{min-width:0;overflow-wrap:anywhere}.joinery-closure-note{display:flex;gap:8px;align-items:center}.joinery-closure-note .trade-illustration{width:70px;height:60px;flex:none;margin:0}.joinery-progress .wood-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.joinery-compact .advanced{margin-top:10px;padding-top:8px}.joinery-compact .advanced summary{margin-bottom:6px}
@media(max-width:600px){.joinery-editor .joinery-variants{grid-template-columns:repeat(2,minmax(0,1fr))}.joinery-variants .trade-illustration,.joinery-variants .type-card svg{width:48px;height:42px;flex-basis:48px}.joinery-progress .wood-section-heading{flex-wrap:wrap}}

.joinery-measure-figure{margin:0;min-width:0}.joinery-measure-figure figcaption{font-size:11px;line-height:1.4;color:var(--muted)}
@media(min-width:601px) and (max-width:1100px){.joinery-editor .joinery-variants{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Géométrie : les mêmes mesures restent lisibles sans tableau large sur téléphone. */
@media(max-width:600px){
 .table-wrap table.geometry-table{display:block;min-width:0;width:100%;font-size:12px}
 .geometry-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .geometry-table tbody{display:block;width:100%}
 .geometry-table tr{display:block;min-width:0;border:1px solid var(--border);border-radius:9px;overflow:hidden;margin-bottom:10px}
 .geometry-table td{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:10px;align-items:baseline;padding:9px 10px;overflow-wrap:anywhere;text-align:right}
 .geometry-table td::before{content:attr(data-label);color:var(--muted);font-weight:400;text-align:left}
 .geometry-table td:first-child{background:var(--soft);font-weight:650}
 .geometry-table td:last-child{border-bottom:0}
}

/* Bardage : mêmes zones de travail, géométrie et résultats rapprochés. */
.cladding-measurement{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.9fr);gap:16px;align-items:start}.cladding-measurement>*{min-width:0}.cladding-measurement .drawing{max-width:420px;margin:auto}.cladding-variants{grid-template-columns:repeat(auto-fit,minmax(95px,1fr))}.cladding-variants .type-card img{height:70px;object-fit:contain}.cladding-opening-list{display:grid;gap:8px;margin:10px 0;border:1px solid var(--line,#dce5ef);padding:10px}.cladding-opening-list label{display:flex;gap:8px;align-items:center;overflow-wrap:anywhere}@media(max-width:800px){.cladding-measurement{grid-template-columns:minmax(0,1fr)}.cladding-variants{grid-template-columns:repeat(3,minmax(0,1fr))}.cladding-variants .type-card img{height:55px}}

/* Rapport technique : mêmes mesures, mêmes tableaux accessibles et impression native. */
.building-report-panel>details>summary{font-size:16px;font-weight:700;color:#2163b8;cursor:pointer}.building-report-panel>details[open]>summary{margin-bottom:12px}.building-report-head h2{margin:0 0 7px}.building-report-head p{margin:5px 0}.building-report-limits{padding:8px 8px 8px 24px;border-left:3px solid #d69b26;background:#fffbeb;font-size:12px}.building-report-panel section{margin-top:16px}.building-report-panel .geometry-table{width:100%;table-layout:fixed;min-width:0}.building-report-panel .geometry-table td{white-space:pre-line;vertical-align:top;overflow-wrap:anywhere}.building-report-panel .geometry-table th{white-space:normal;overflow-wrap:anywhere;line-height:1.35}.building-report-panel .geometry-table td:first-child{font-weight:600}.building-report-panel .geometry-table small{white-space:normal}.building-report-panel>.section-head{justify-content:flex-end;margin-bottom:8px}.building-report-panel .building-report-notes{margin-top:12px}
@media screen and (max-width:600px){.building-report-panel .geometry-table td{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.building-report-panel>details>summary{overflow-wrap:anywhere}.building-report-panel>.section-head{justify-content:flex-start}}
@media print{
 body.printing-building-report .topbar,body.printing-building-report .sidebar,body.printing-building-report .project-heading,body.printing-building-report .steps,body.printing-building-report #breadcrumb,body.printing-building-report #project-tools,body.printing-building-report #save-error-notice,body.printing-building-report #recovery-notice,body.printing-building-report #toast,body.printing-building-report #screen>:not(.building-report-panel){display:none!important}
 body.printing-building-report .app-layout{display:block}body.printing-building-report .app-layout main{width:100%;max-width:none;padding:0;margin:0}body.printing-building-report .building-report-panel{border:0;box-shadow:none;padding:0;margin:0}
 body.printing-building-report .building-report-panel>details,body.printing-building-report #building-report-paper{display:block!important}body.printing-building-report .building-report-panel summary,body.printing-building-report .no-print{display:none!important}
 body.printing-building-report .building-report-panel .table-wrap{overflow:visible}body.printing-building-report .building-report-panel table.geometry-table{display:table;width:100%;font-size:9px;min-width:0;table-layout:fixed}
 body.printing-building-report .building-report-panel .geometry-table thead{position:static;display:table-header-group;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}body.printing-building-report .building-report-panel .geometry-table tbody{display:table-row-group}body.printing-building-report .building-report-panel .geometry-table tr{display:table-row;break-inside:avoid;page-break-inside:avoid;border-radius:0}
 body.printing-building-report .building-report-panel .geometry-table td,body.printing-building-report .building-report-panel .geometry-table th{display:table-cell;text-align:left;padding:7px 5px;font-size:9px}body.printing-building-report .building-report-panel .geometry-table td::before{display:none}
 body.printing-building-report h2,body.printing-building-report h3{break-after:avoid}body.printing-building-report .building-report-levels{break-before:auto}body.printing-building-report .note,body.printing-building-report .building-report-limits{font-size:9px}
}
