/* Global navigation remains identical whichever document is open. */
body{--entity-accent:#477c16;--entity-dark:#263b32;--entity-soft:#f4f6f4;--entity-line:#d7dfda;--entity-muted:#596b61;--entity-shadow:#263b3214}
.sidebar{--entity-accent:#78be20;--entity-dark:#071a12;--entity-soft:#f5f9f5;--entity-muted:#88a196;--entity-line:#284237;--green:#78be20;--green2:#78be20;--greenSoft:#edf6e8;--deep:#071a12;--pale:#edf6e8;--line:#284237;background:linear-gradient(180deg,#071a12,#06150f)!important;color:#dce6df!important}
body .sidebar .navbtn.active,body[data-entity-scope] .sidebar .navbtn.active{background:linear-gradient(90deg,#548d15,#78be20)!important;color:white!important;box-shadow:inset 3px 0 0 #c8e6a9!important}
.sidebar .side-bottom{background:#06150f!important}
/* Neutral operational surfaces; entity palettes belong to quote and invoice documents. */
.order-card,.closed-card-5313,.planning-brand-row,.vw-global-card,.dash-prod-row,.prod-card,.event,.capacity-5311,.verywood-logo-box{
 --entity-accent:#63766c!important;--entity-dark:#263b32!important;--entity-soft:#f4f6f4!important;--entity-line:#d7dfda!important;--entity-muted:#596b61!important;--entity-shadow:#263b3214!important;
 --green:#63766c!important;--green2:#63766c!important;--greenSoft:#f4f6f4!important;--deep:#263b32!important;--pale:#f4f6f4!important;--line:#d7dfda!important;
 --production-entity:#63766c!important;--production-pale:#f4f6f4!important;--production-line:#d7dfda!important;
}
.order-card,.closed-card-5313{background:#fff!important;border-color:#d7dfda!important}
.dash-prod-progress i,.prod-card .progress i,.capacity-bar-5311 i{background:#63766c!important}
.order-card .status{background:#edf1ee!important;color:#263b32!important}
.dash-event:not(.rdv),.dash-month-event:not(.rdv),.event:not(.rdv),.verywood-btn,.verywood-nav-icon,.entity-pill,.brand-badge{background:#edf1ee!important;border-color:#d7dfda!important;color:#263b32!important}
.neutral-load5192{background:#e9eeeb!important;overflow:hidden}.neutral-load5192 i{display:block;height:100%;background:#63766c!important}
.load-entities5192{font-size:10px;color:#596b61;margin-top:4px;line-height:1.4;white-space:normal}
.production-card-537>.prod-compact-summary-5169{display:none!important}
.production-card-537.collapsed-5169>.production-progress-row{display:grid!important}
.kitchen-picker5192{margin:14px 0;border:1px solid var(--entity-line,#d7dfda);padding:18px}.kitchen-picker5192 h3{margin:0 0 6px}.kitchen-picker5192 p{color:#657369;font-size:12px}
.kitchen-picker-grid5192{display:grid;grid-template-columns:minmax(220px,2fr) minmax(90px,.5fr) minmax(130px,.75fr) auto;gap:12px;align-items:end}
.kitchen-picker-grid5192 label{display:block;margin:0 0 6px}.kitchen-picker-grid5192 input,.kitchen-picker-grid5192 select{width:100%;min-width:0;min-height:42px}
#kbError{color:#a33b32}.quote-vat-override{min-width:210px;grid-column:span 2}.quote-vat-override select{width:100%;min-width:0;white-space:normal}
.profit-entities5192{margin-bottom:18px;display:flex;flex-wrap:wrap;gap:8px}
.rdt-dash-tools{flex-wrap:wrap}.rdt-dash-head{min-height:54px;height:auto}
@media(max-width:1100px){.kitchen-picker-grid5192{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.kitchen-picker-grid5192{grid-template-columns:minmax(0,1fr)}.quote-vat-override{grid-column:1/-1;min-width:0}}

/* V5.1.93: application controls stay green; document styles retain their own scope. */
body{--ui-action:#78be20;--ui-action-text:#142211;--ink:#1c2922;--bg:#f4f6f4;--line:#d7dfda;--green:#78be20;--green2:#78be20;--greenSoft:#f4f6f4;--deep:#263b32;--pale:#f4f6f4;background:#f4f6f4;color:#1c2922}
body .btn.green,body .btn.primary,body .btn.dark,body .btn.verywood-btn,
body.rdt-v475-ui .btn.green,body.rdt-v475-ui .btn.primary,
body.rdt-v470-test .btn.green,body .rdt-v471-quick .btn.primary,
body [data-entity-scope] .btn.green,body [data-entity-scope] .btn.verywood-btn,
body #quoteEditor .quote-editor-confirm,body .prod-collapse-tools-5169 .btn.compact,
body .chip.active,body .agenda-tab.active,body .site-tab.active,
body .archive-tabs button.active,body .closed-tabs-5313 button.active,
body .closed-brand-switch-5332 button.active-rdt,body .closed-brand-switch-5332 button.active-vw,
body .rdt-v51-entity-tab.active,body .rdt-v51-post-tab.active,
body .peppol-tab.active,body .dash-view-switch button.active,
body [data-document-entity].active,
body .rdt-v5-settings-tabs button.active,body .rdt5176-tab.active,
body .rdt5176-preview-switch button.active,body .rdt5171-seg button.active,
body .rdt5185-entity-tabs button.active,body .project-tab.active,
body .rdt-dash-kpi.primary{
 background:#78be20!important;border-color:#78be20!important;color:#142211!important;box-shadow:none!important
}
body .site-tab.active b,body .rdt-v51-entity-tab.active b{color:#142211!important}
body .project-tab.active{border-radius:7px 7px 0 0}
body .project-tab.active:after{background:#78be20!important}
body .btn:focus-visible,body .chip:focus-visible,body [role=tab]:focus-visible{outline:2px solid #477c16;outline-offset:3px}
body #quoteEditor{color:#1c2922;background:#f4f6f4}
body #quoteEditor .quote-edit-card,body #quoteEditor .quote-editor-client-card{background:#fff}

/* V5.1.95: a local cockpit zoom, with readable, stationary controls. */
body .rdt-dash-kpi.primary label,body .rdt-dash-kpi.primary small,body .rdt-dash-kpi.primary strong{color:#142211!important}
body .rdt-dash-kpi.primary .rdt-dash-kpi-icon{background:#ffffff4d!important;color:#263b32!important}
body .rdt-v5155-zoom input[type=range],body .rdt-cockpit-zoom-5195 input[type=range]{accent-color:#78be20!important}
body #content.cockpit-content-compact{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important;height:calc(100dvh - 72px)!important;overflow:hidden!important;min-width:0}
body #content.cockpit-content-compact>.rdt-dash-head{min-height:54px;height:auto!important;flex-wrap:wrap;margin:0!important}
.rdt-cockpit-viewport-5195{overflow:auto;min-height:0;min-width:0;max-width:100%;overscroll-behavior:contain;padding:2px;box-sizing:border-box}
.rdt-cockpit-canvas-5195{display:grid;grid-template-rows:88px minmax(274px,1.18fr) minmax(230px,.92fr);gap:10px;min-height:100%;min-width:960px;width:100%;box-sizing:border-box;align-content:stretch}
.rdt-cockpit-canvas-5195>.rdt-dash-kpis,.rdt-cockpit-canvas-5195>.rdt-dash-middle{margin:0!important}
.rdt-cockpit-zoom-5195{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d7dfda;border-radius:12px;background:#fff;max-width:100%;box-sizing:border-box;flex-wrap:wrap}
.rdt-cockpit-zoom-5195 button{height:34px;min-width:34px;border:1px solid #d7dfda;border-radius:8px;background:#f4f6f4;color:#142211;font:inherit;font-size:14px;font-weight:800;padding:0 10px;cursor:pointer}
.rdt-cockpit-zoom-5195 button:hover{background:#78be20;border-color:#78be20}
.rdt-cockpit-zoom-5195 button:disabled{opacity:.45;cursor:default}
.rdt-cockpit-zoom-5195 input[type=range]{width:160px;min-width:90px;height:24px;padding:0;cursor:pointer}
.rdt-cockpit-zoom-5195 output{min-width:56px;text-align:center;font-size:15px;font-weight:850;color:#142211}
.rdt-cockpit-zoom-5195 button:focus-visible,.rdt-cockpit-zoom-5195 input:focus-visible{outline:2px solid #477c16;outline-offset:2px}
@media(max-width:900px){
 body #content.cockpit-content-compact{height:auto!important;overflow:visible!important;grid-template-rows:auto auto!important}
 .rdt-cockpit-viewport-5195{max-height:none}
 .rdt-cockpit-canvas-5195{min-width:0;grid-template-rows:auto auto auto;min-height:0}
 .rdt-cockpit-zoom-5195 input[type=range]{width:120px}
}

/* Group quote follow-up stays in the neutral working interface. */
.rdt5196-sent-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.rdt5174-qrow[hidden],#rdt5174SearchEmpty[hidden]{display:none!important}
/* Library configuration: neutral panels with the common bright-green actions. */
.kb-pricing fieldset,.rdt5197-finish{border:1px solid #d7dfda;border-radius:12px;padding:14px;margin:8px 0;min-width:0;background:#fff}
.kb-pricing-row{display:grid;grid-template-columns:1fr 150px 1fr 40px;gap:8px;margin:6px 0;align-items:center}.kb-pricing-row>*{min-width:0;width:100%;box-sizing:border-box}
.kb-pricing-labels{display:grid;grid-template-columns:1fr 150px 1fr;gap:8px;font-size:12px;color:#596b61;margin-right:48px}
.kb-pricing p,.kb-pricing small{line-height:1.5;color:#596b61}
.rdt5197-form-grid,.rdt5197-models,.rdt5197-finish-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rdt5197-form-grid>.wide{grid-column:1/-1}
.rdt5197-config label,.rdt5197-service label,.rdt5197-library label{display:grid;gap:6px;margin:10px 0;font-size:13px;font-weight:650}
.rdt5197-config input,.rdt5197-config select,.rdt5197-service input,.rdt5197-service select,.rdt5197-service textarea,.rdt5197-library input{width:100%;min-width:0;box-sizing:border-box;min-height:40px}
.rdt5197-config p,.rdt5197-service p,.rdt5197-library p{font-size:13px;line-height:1.5;color:#596b61}
.rdt5197-model{display:grid;gap:8px;border:1px solid #d7dfda;border-radius:12px;padding:16px;background:white;text-align:left;cursor:pointer;color:#1c2922}.rdt5197-model:hover{border-color:#78be20}.rdt5197-model span{font-size:12px}
.rdt5197-model[hidden],#rdt5197KitchenEmpty[hidden]{display:none!important}
.rdt5197-price{display:grid;gap:8px;padding:16px;margin:12px 0;border:1px solid #d7dfda;border-radius:12px;background:#f4f6f4;color:#1c2922;font-size:14px}.rdt5197-price b{font-size:20px}
.rdt5197-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.rdt5197-finish-summary>div{display:grid;gap:5px;background:#f4f6f4;padding:12px;border-radius:10px;margin-bottom:10px}
#rdt5197KitchenError,#rdt5197ServiceError{color:#a13d30}
@media(max-width:700px){.rdt5197-form-grid,.rdt5197-models,.rdt5197-finish-summary{grid-template-columns:1fr}.kb-pricing-row{grid-template-columns:1fr 1fr}.kb-pricing-labels{display:none}}

/* V5.1.98 — choix des coloris directement dans la ligne du devis. */
.rdt5198-inline-kitchen{width:100%;min-width:0}.rdt5198-inline-kitchen fieldset{min-width:0;margin:0;padding:14px;border:1px solid #d7dfda;border-radius:12px}.rdt5198-inline-kitchen legend{font-weight:750;padding:0 6px}.rdt5198-inline-kitchen select{max-width:100%}.rdt5198-kitchen-error,#rdt5198LibraryError{color:#a13d30!important}.rdt5198-inline-kitchen .rdt5198-kitchen-status{min-height:1.5em}
.quote-tech-choice[data-kitchen-preset] textarea{width:100%;min-width:0;box-sizing:border-box;resize:vertical;font:inherit}

/* V5.1.99 — same finish controls as furniture, responsive inside each quote line. */
.rdt5198-inline-kitchen .multi-decor-box{min-width:0}.rdt5198-inline-kitchen .multi-decor-add{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(100px,1.3fr) auto;gap:8px}.rdt5198-inline-kitchen .multi-decor-add .btn{white-space:nowrap}.rdt5198-inline-kitchen .multi-decor-box small{display:block;margin-top:8px;color:#596b61}
@media(max-width:1100px){.rdt5198-inline-kitchen .rdt5197-form-grid{grid-template-columns:1fr}}
@media(max-width:500px){.rdt5198-inline-kitchen .multi-decor-add{grid-template-columns:1fr}.rdt5198-inline-kitchen .multi-decor-add select{width:100%}}

/* Unified project costing: one accordion and three clearly separated sections. */
.rdt5199-project-costs .rdt70-setting-body{padding:18px!important;background:white}.rdt5199-project-costs .rdt70-setting-body>.card{box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;background:white!important}.rdt5199-project-costs #rdt5144CostCard{margin-top:22px!important;padding-top:20px!important;border-top:1px solid #d7dfda!important}
.rdt5199-project-costs h3{font-size:16px!important;margin-bottom:8px}.rdt5199-project-costs .rdt5144-prehead p,.rdt5199-project-costs .rdt5144-costhead p,.rdt5199-project-costs .rdt5144-help{font-size:12px!important;line-height:1.5}.rdt5199-project-costs .rdt5144-pregrid span,.rdt5199-project-costs .rdt5144-costgrid span{font-size:12px!important}.rdt5199-project-costs .rdt5144-pregrid b,.rdt5199-project-costs .rdt5144-costgrid b{font-size:16px!important;margin-top:8px}.rdt5199-project-costs .rdt5144-pregrid>div,.rdt5199-project-costs .rdt5144-costgrid>div{padding:12px}.rdt5199-project-costs .rdt5199-price-heading{margin-top:24px!important}.rdt5199-project-costs .rdt5154-cost-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.rdt5199-times-editor p{font-size:14px;line-height:1.5}.rdt5199-times-editor label,.rdt5199-times-editor .rdt5144-phase-result span,.rdt5199-times-editor .rdt5144-formula{font-size:12px!important}.rdt5199-times-editor input{font-size:16px!important;min-height:40px}.rdt5199-times-editor input[type=checkbox]{min-height:0}.rdt5199-times-editor .rdt5144-phase-name{font-size:15px!important}
@media(max-width:1000px){.rdt5199-project-costs .rdt5144-pregrid,.rdt5199-project-costs .rdt5144-costgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.rdt5199-project-costs .rdt5144-prehead{flex-wrap:wrap}}
@media(max-width:560px){.rdt5199-project-costs .rdt5144-pregrid,.rdt5199-project-costs .rdt5144-costgrid{grid-template-columns:1fr}.rdt5199-project-costs summary{flex-wrap:wrap}}

/* Workshop and installation loads: the three entities remain distinguishable. */
body .entity-load51100{display:flex!important;align-items:stretch;overflow:hidden;background:#e9eeeb!important}
body .entity-load51100 i{display:block;flex:0 0 auto;height:100%;border-radius:0!important;min-width:0}
body [data-load-entity="RDT_WOOD"],body [data-load-legend="RDT_WOOD"] i{background:#78be20!important}
body [data-load-entity="VERYWOOD"],body [data-load-legend="VERYWOOD"] i{background:#f8531c!important}
body [data-load-entity="KYVO"],body [data-load-legend="KYVO"] i{background:#b78a57!important}
.load-entities5192{display:flex;flex-wrap:wrap;gap:4px 10px}.load-entities5192 [data-load-legend]{display:inline-flex;align-items:center;gap:4px}.load-entities5192 [data-load-legend] i{display:inline-block;width:8px;height:8px;border-radius:2px;flex-shrink:0}.load-over51100{color:#922b1c}
