.home-overview{min-width:0}.home-overview section{padding:0;border:0;box-shadow:none;background:transparent}
.home-overview .home-overview-tools,.home-overview .home-overview-period{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.home-overview .home-overview-period{margin:0}.home-overview .home-overview-period label{margin:0;flex:1 1 140px;min-width:0}.home-overview .home-overview-period input{font-size:16px}
.home-overview .home-overview-tools{justify-content:space-between;margin:0 0 20px}.home-overview .home-overview-tools button{min-height:44px}
.home-overview .home-overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.home-overview .home-overview-metrics>div,.home-overview .home-overview-card,.home-overview .dashboard-graph-panel{border:1px solid #dce5eb;border-radius:12px;padding:18px;background:#fff;min-width:0}
.home-overview .home-overview-metrics dt{font-weight:600;color:#536578;font-size:14px}.home-overview .home-overview-metrics dd{font-size:24px;font-weight:650;margin:6px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-overview .home-overview-metrics p{font-size:14px;color:#536578;margin:8px 0 0}.home-overview .home-overview-cards,.home-overview .dashboard-graph-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-overview .home-overview-quality,.home-overview .home-overview-status{color:#664e1c;overflow-wrap:anywhere}.home-overview .home-overview-read{color:#536578;font-size:14px}
.home-overview .home-overview-card{display:flex;flex-direction:column;align-items:start;gap:8px}.home-overview .home-overview-card h3,.home-overview .home-overview-card p{margin:0;overflow-wrap:anywhere}.home-overview .home-overview-card button{margin-top:auto}
.home-overview .home-overview-card dl{margin:6px 0}.home-overview .home-overview-card dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.home-overview .home-overview-scope{overflow-wrap:anywhere}
.home-overview .home-overview-status:empty,.home-overview .home-overview-quality:empty{display:none}
.home-overview .home-overview-cards>.home-overview-statistics{grid-column:1/-1;min-width:0}
.home-preferences{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}.home-preferences>p:empty{display:none}.home-preferences>button{min-height:44px}
.home-preferences-dialog{border:1px solid #dce5eb;border-radius:12px;background:#fff;box-shadow:0 12px 40px #152a3d33;width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;box-sizing:border-box}.home-preferences-dialog h2{font-size:22px}.home-preference-row{display:flex;align-items:center;gap:8px;padding:8px 0;min-width:0}.home-preference-row label{display:flex;flex-direction:row;align-items:center;gap:10px;flex:1;min-width:0;margin:0;font-size:16px}.home-preference-row span{overflow-wrap:anywhere}.home-preference-row input{width:20px;height:20px;flex-shrink:0}.home-preference-row button{min-width:44px;min-height:44px;padding:8px}.home-preferences-dialog .button-group{margin-top:16px;flex-wrap:wrap}
.home-overview .dashboard-graph-panel .list-table-options select{min-width:110px;max-width:100%;width:auto;font-size:16px}
@media(max-width:400px){.home-preference-row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px}.home-preference-row label{grid-column:1/-1}.home-preference-row label+button{grid-column:2}}
@media(max-width:1000px){.home-overview .home-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.home-overview .home-overview-cards,.home-overview .dashboard-graph-grid,.home-overview .home-overview-metrics{grid-template-columns:minmax(0,1fr)}.home-overview .home-overview-metrics>div,.home-overview .home-overview-card,.home-overview .dashboard-graph-panel{padding:16px}.home-overview .home-overview-period{width:100%}}


/* D033: Home context/status rules stay with Home, not the shared control. */
.home-context-actions{margin:0 0 8px;font-size:14px}.home-context-actions>summary{cursor:pointer;min-height:32px;align-content:center;color:#526174}.home-context-actions>button{margin:4px 8px 4px 0;min-height:44px}.home-overview-context-status:empty{display:none}.home-overview-context-status[data-state=saved]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.home-overview .home-overview-period-pending{margin:4px 0}.home-overview .home-overview-status:empty{display:none}

/* D045: four sales panels use the shared shell and the same applied date range. */
.home-overview .home-overview-metrics dt{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.home-overview .home-overview-metrics dt .help-icon{flex-shrink:0}
/* Tuile du CA détaillée par magasin : colonne deux fois plus large, les trois autres tuiles restent sur la même ligne. */
.home-overview .home-overview-metrics:has(>.home-overview-metric-stores){grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr))}
.home-overview .home-overview-metrics dd.home-store-breakdown{font-size:14px;font-weight:400;margin:12px 0 0}
.home-overview .home-store-title{display:block;color:#536578;font-weight:600}
.home-overview .home-store-breakdown ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
.home-overview .home-store-breakdown li{display:grid;grid-template-columns:minmax(0,1fr) auto 4.6em;column-gap:10px;row-gap:3px;align-items:baseline}
.home-overview .home-store-name{overflow-wrap:anywhere}
.home-overview .home-store-amount{font-weight:650;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-overview .home-store-share{text-align:right;color:#536578;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-overview .home-store-bar{grid-column:1/-1;height:4px;border-radius:2px;background:linear-gradient(90deg,#2f7d6d var(--share),#e8eef2 var(--share))}
.home-overview .home-store-breakdown details{margin-top:6px}
@media(max-width:1000px){.home-overview .home-overview-metrics:has(>.home-overview-metric-stores){grid-template-columns:repeat(3,minmax(0,1fr))}.home-overview .home-overview-metrics>div.home-overview-metric-stores{grid-column:1/-1}}
/* Détail par magasin dans chaque tuile : quatre colonnes sur grand écran, deux par deux en dessous de 1600 px, une colonne sur téléphone. */
.home-overview .home-overview-metrics:has(>.home-overview-metric-stores+.home-overview-metric-stores){grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr))}
@media(max-width:1600px){.home-overview .home-overview-metrics:has(>.home-overview-metric-stores+.home-overview-metric-stores){grid-template-columns:repeat(2,minmax(0,1fr))}.home-overview .home-overview-metrics:has(>.home-overview-metric-stores+.home-overview-metric-stores)>div.home-overview-metric-stores{grid-column:auto}}
@media(max-width:650px){.home-overview .home-overview-metrics:has(>.home-overview-metric-stores),.home-overview .home-overview-metrics:has(>.home-overview-metric-stores+.home-overview-metric-stores){grid-template-columns:minmax(0,1fr)}.home-overview .home-overview-metrics>div.home-overview-metric-stores{grid-column:auto}}
.home-overview .home-overview-metrics details{font-size:14px}.home-overview .home-overview-metrics summary{cursor:pointer;min-height:44px;align-content:center;color:#536578}
.home-overview .home-sales-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.home-overview .home-sales-panel{min-width:0;padding:18px;border:1px solid #dce5eb;background:#fff;border-radius:12px}
.home-overview .home-sales-heading{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
.home-overview .home-sales-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;flex-wrap:wrap}
.home-overview .home-sales-title h3{font-size:18px;margin:0;overflow-wrap:anywhere}
.home-overview .home-sales-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.home-overview .home-sales-select{display:flex;flex-direction:column;gap:4px;flex:1 1 120px;min-width:0;margin:0;font-size:14px}
.home-overview .home-sales-select select{width:100%;min-width:0;min-height:44px;font-size:16px;max-width:100%}
.home-overview .home-sales-frame{height:260px;position:relative;min-width:0;max-width:100%}.home-overview .home-sales-frame canvas{max-width:100%}
.home-overview .home-sales-frame canvas:focus-visible{outline:2px solid #217a66;outline-offset:3px}
.home-overview .home-sales-selection{font-size:14px;min-height:22px;margin:8px 0;overflow-wrap:anywhere}
.home-overview .home-sales-note{font-size:14px;color:#536578;margin:8px 0;overflow-wrap:anywhere}
.home-overview .home-sales-values>summary,.home-overview .home-sales-definition>summary{cursor:pointer;font-size:14px;min-height:44px;align-content:center;color:#536578}
.home-overview .home-sales-definition p{font-size:14px;overflow-wrap:anywhere}
.home-overview .home-sales-values,.home-overview .home-sales-table{min-width:0;max-width:100%}
.home-overview .home-sales-values .list-column-title-group{min-width:0;flex-wrap:wrap}.home-overview .home-sales-values h2{font-size:16px;overflow-wrap:anywhere}
.home-overview .home-sales-unavailable{font-size:14px;min-height:180px;align-content:center;color:#664e1c;overflow-wrap:anywhere}
@media(max-width:850px){.home-overview .home-sales-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:400px){.home-overview .home-sales-panel{padding:14px}.home-overview .home-sales-frame{height:230px}}

/* D046: authorized stores share the date toolbar and the existing searchable choice. */
.workspace-title-tools .home-store-filter{flex:1 1 190px;min-width:0;max-width:270px}
.workspace-title-tools .home-store-filter .multi-filter{margin:0;min-width:0;max-width:100%}
.workspace-title-tools .home-store-filter .multi-filter>summary{min-height:49px;box-sizing:border-box;align-content:center;font-size:16px;overflow-wrap:anywhere}
.workspace-title-tools .home-store-filter .multi-panel{z-index:40;max-width:calc(100vw - 24px);box-sizing:border-box}
@media(max-width:650px){.workspace-title-tools .home-store-filter{width:100%;max-width:none}}

