.fv-custom-dashboard-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0;padding:20px 24px;background:#f1f6f4;border-left:4px solid #82a62c;border-radius:6px}
.fv-custom-dashboard-intro h2{margin:0 0 7px;font-size:22px}.fv-custom-dashboard-intro p{margin:0 0 7px}.fv-custom-dashboard-intro small,.fv-module-description,.fv-dashboard-source-note{color:#5a7181;line-height:1.5}
.fv-custom-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.fv-dashboard-module{min-width:0;background:white;border:1px solid #dbe5ec;border-radius:10px;padding:20px;box-shadow:0 3px 12px #17374705}
.fv-dashboard-module.is-wide{grid-column:1/-1}.fv-dashboard-module>header{display:flex;justify-content:space-between;align-items:start;gap:12px}.fv-dashboard-module>header h2{margin:0;font-size:20px;font-weight:600}.fv-module-description{font-size:13px;margin:8px 0 16px}.fv-dashboard-module>.pa-list-panel,.fv-dashboard-module>.facturier-detail-reporting{border:0;box-shadow:none;margin:0;padding:0}.fv-dashboard-module .fv-detail-head h2{font-size:17px}.fv-dashboard-source-note{font-size:12px;margin:20px 0}
.fv-ergonomics-dialog{width:min(850px,94vw);max-height:88dvh;overflow:auto;box-sizing:border-box;padding:26px;border:1px solid #cddbe4;border-radius:12px;color:#163849;background:#fff}.fv-ergonomics-dialog::backdrop{background:#092c3b99}.fv-ergonomics-dialog h2{margin-top:0}.fv-ergonomics-dialog>p{line-height:1.5;color:#5a7181}.fv-module-setting{padding:16px 0;border-bottom:1px solid #e5ecef}.fv-module-setting>label{display:flex;gap:10px;align-items:center;font-weight:700}.fv-module-setting>label input{width:18px;height:18px}.fv-module-setting p{font-size:13px;line-height:1.5;color:#5a7181;margin:8px 0}.fv-module-setting-actions{display:flex;flex-wrap:wrap;gap:8px}.fv-module-setting-actions input{flex:1 1 230px;min-width:0}.fv-ergonomics-dialog button,.fv-ergonomics-dialog select,.fv-ergonomics-dialog input:not([type=checkbox]){font:inherit;padding:9px 12px;border:1px solid #cddbe4;border-radius:6px;background:#fff;color:#163849}.fv-ergonomics-dialog button{cursor:pointer}.fv-ergonomics-dialog button:disabled{opacity:.4;cursor:default}.fv-ergonomics-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:20px}.fv-ergonomics-dialog footer button:last-child{background:#567f1b;color:#fff}
.fv-customer-ergonomics{grid-template-columns:minmax(220px,.7fr) minmax(0,2fr);align-items:start}.fv-customer-ergonomics .facturier-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.fv-customer-ergonomics .facturier-form-grid>label{align-content:start}.fv-customer-ergonomics .facturier-form-grid input:not([type=checkbox]),.fv-customer-ergonomics select{height:42px;min-height:42px}.fv-customer-ergonomics .facturier-lookup-row{display:grid;grid-template-columns:minmax(0,1fr) 85px auto;align-items:center}.fv-lookup-help{font-size:13px;line-height:1.5;color:#5a7181;margin:10px 0}
#customer_delivery_dialog [data-notice]{padding:18px;background:#f0f6ec;border-left:4px solid #7a9b30;border-radius:6px;font-size:16px;line-height:1.5;margin:18px 0}#customer_delivery_dialog h2{font-size:24px;margin-top:0}#customer_delivery_dialog details{margin:18px 0;font-size:13px;color:#536c7e}#customer_delivery_dialog summary{cursor:pointer}#customer_delivery_dialog [data-choice].is-recommended{border:2px solid #83a834;background:#f6faef}
@media(max-width:1000px){.fv-custom-dashboard-grid{grid-template-columns:minmax(0,1fr)}.fv-dashboard-module{grid-column:1/-1}.fv-customer-ergonomics{grid-template-columns:minmax(0,1fr)}.fv-customer-ergonomics>.facturier-identity-card{order:2}}
@media(max-width:600px){.fv-custom-dashboard-intro{display:block;padding:16px}.fv-custom-dashboard-intro button{margin-top:12px}.fv-dashboard-module{padding:14px}.fv-customer-ergonomics .facturier-form-grid{grid-template-columns:minmax(0,1fr)}.fv-customer-ergonomics .facturier-lookup-row{grid-template-columns:minmax(0,1fr) 75px}.fv-customer-ergonomics .facturier-lookup-row button{grid-column:1/-1}.fv-ergonomics-dialog{padding:16px}}

/* Keep the existing phone home for the simple view; expose the chosen detailed view. */
@media(max-width:760px){
 #app_view.bn-phone-essential.phone-essential-overview:has(.facturier-dashboard-shell.is-detail) #facturier_section_content{display:block!important}
 #app_view.bn-phone-essential.phone-essential-overview:has(.facturier-dashboard-shell.is-detail) #phone_facturier_hub{display:none!important}
}

.fv-simple-scope{margin:0 0 18px;padding:12px 16px;border:1px solid #dbe5ec;border-radius:8px;background:white}.fv-simple-scope>summary{cursor:pointer;font-size:13px;color:#526b7d}.fv-simple-scope .pa-list-panel{margin:12px 0 0;border:0;box-shadow:none}.facturier-simple-panel-head>small{font-size:11px;color:#5a7181}

.fv-dashboard-data-notice{padding:14px 18px;border-left:4px solid #c99836;background:#fff8e8;border-radius:6px;line-height:1.5}

/* Keep the first indicators close to the scope controls. */
.facturier-dashboard-shell.is-detail{gap:16px}
.facturier-dashboard-shell.is-detail .facturier-dashboard-heading-row{margin:0;padding:0}
.facturier-dashboard-shell.is-detail .facturier-dashboard-head{margin:0;padding:0}
.facturier-dashboard-shell.is-detail .fv-custom-dashboard-intro{margin:0;padding:12px 18px}
.facturier-dashboard-shell.is-detail .fv-custom-dashboard-intro h2{font-size:18px;margin-bottom:4px}
.facturier-dashboard-shell.is-detail .fv-custom-dashboard-intro p{font-size:13px;margin-bottom:4px}
.fv-dashboard-module[data-fv-module="summary"] .fv-detail-head{display:none}
.fv-dashboard-module[data-fv-module="summary"] .facturier-executive-grid{margin-top:0}
