/* 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}}
