/* A full-screen contents page, then one document per menu. No scroll snapping,
   fixed content height or clipping: long tables remain readable within a page. */
body.tableau-pages { --page-accent:var(--accent, #047857); }
.tableau-pages [hidden] { display:none!important; }
.tableau-pages .sidebar nav a[aria-current="page"] { background:#18332f;color:#8ce3c5;border-left-color:#65d5b0; }
.tableau-pages .sommaire-return { display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #4e6c7a;border-radius:10px;color:#fff;font-weight:650;font-size:14px;margin:0 0 18px;min-height:44px; }
.tableau-pages .sommaire-return:hover { background:#29404c; }
.tableau-pages main { min-height:100svh;display:flex;flex-direction:column; }
.tableau-pages .page-heading { display:flex;align-items:center;justify-content:space-between;gap:24px;margin:5px 0 22px; }
.tableau-pages .page-heading h1 { font-size:clamp(26px,2.5vw,36px);color:var(--page-accent);line-height:1.2; }
.tableau-pages .page-tools { margin-bottom:22px; }
.tableau-pages .page-tools>.period-control { width:280px;max-width:100%; }
.tableau-pages .page-tools .organisation-controls { display:grid;grid-template-columns:1fr 1fr;max-width:760px;gap:20px; }
.tableau-pages .page-tools .territory-controls { max-width:680px; }
.tableau-pages .page-body { flex:1;min-width:0; }
.tableau-pages .page-body>.panel { margin:0; }
.tableau-pages .page-body>.chart-grid { margin:0; }
.tableau-pages .page-body>.chart-grid>.panel { margin-bottom:0; }
.tableau-pages .page-body>#apercu { margin:0; }
.tableau-pages .demo-banner { margin:20px 0 0;padding:0;border-radius:12px; }
.tableau-pages .demo-banner summary { background:transparent;color:#85500b;padding:10px 14px;font-size:10px;letter-spacing:.07em; }
.tableau-pages .demo-banner[open]>summary { margin:0; }
.tableau-pages .demo-banner p { padding:0 14px 12px; }
.tableau-pages footer { margin-top:16px;padding:10px 0 0; }
.tableau-pages .sidebar nav { gap:5px; }
.tableau-pages .sidebar nav a { min-height:44px;padding:10px;font-size:13px; }
.tableau-pages .sidebar .shop-name { margin-bottom:20px; }
.tableau-pages .sidebar-bottom { padding-top:18px; }
/* The contents occupies the viewport; no dashboard section follows it. */
.tableau-home .sidebar { position:static;inset:auto;width:100%;padding:18px 32px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;overflow:visible; }
.tableau-home .sidebar .shop-name { margin:0;text-align:right; }
.tableau-home .sidebar nav,.tableau-home .sidebar-bottom,.tableau-home .sommaire-return { display:none; }
.tableau-home main { margin:0 auto;max-width:1120px;width:100%;min-height:calc(100svh - 83px);padding:clamp(20px,3vh,40px) 32px 18px; }
.tableau-home .dashboard-header { display:block;margin:0 0 22px; }
.tableau-home .dashboard-header h1 { font-size:clamp(26px,3vw,36px); }
.tableau-home .dashboard-header h1 br { display:none; }
.tableau-home .dashboard-header h1 em { display:inline;margin-left:.18em; }
.tableau-home .dashboard-header>div>p:last-child { margin-top:8px; }
.tableau-home .sommaire-heading { font-size:13px;color:var(--muted);letter-spacing:.07em;margin-bottom:12px;text-transform:uppercase; }
.tableau-home .sommaire-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;flex:1;align-content:center; }
.tableau-home .sommaire-grid a { display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--accent-line,#cfe2d9);border-bottom:4px solid var(--accent-line,#b8d7c8);border-radius:18px;padding:24px 20px;min-height:108px;color:var(--ink);font-size:16px;font-weight:650;box-shadow:0 5px 14px #10233206; }
.tableau-home .sommaire-grid a:hover { background:var(--accent-soft,#ecfdf5);border-color:var(--page-accent); }
.tableau-home .sommaire-grid .ui-icon { color:var(--page-accent);width:30px;height:30px; }
.tableau-home .sommaire-grid a::after { content:'\2192';margin-left:auto;color:var(--page-accent);font-size:20px; }
@media(max-width:900px) {
 .tableau-pages:not(.tableau-home) .sidebar { position:sticky;top:0;z-index:5;width:100%;padding:14px 20px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px; }
 .tableau-pages:not(.tableau-home) .sidebar nav,.tableau-pages:not(.tableau-home) .sidebar .shop-name,.tableau-pages:not(.tableau-home) .sidebar-bottom { display:none; }
 .tableau-pages:not(.tableau-home) .sommaire-return { margin:0;padding:8px 12px; }
 .tableau-pages:not(.tableau-home) main { margin-left:0;min-height:calc(100svh - 74px);padding:20px; }
 .tableau-pages .brand { font-size:23px; }
 .tableau-home .sommaire-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .tableau-home .sommaire-grid a { min-height:88px;padding:18px; }
}
@media(max-width:600px) {
 .tableau-home .sidebar { padding:14px 16px;gap:10px; }
 .tableau-home .sidebar .shop-name { font-size:9px;letter-spacing:0; }
 .tableau-home .sidebar .shop-name small { font-size:9px; }
 .tableau-home main { padding:20px 16px 14px;min-height:calc(100svh - 69px); }
 .tableau-home .dashboard-header { margin-bottom:16px; }
 .tableau-home .dashboard-header h1 { font-size:25px;line-height:1.2; }
 .tableau-home .dashboard-header>div>p:last-child { font-size:11px; }
 .tableau-home .sommaire-grid { gap:10px; }
 .tableau-home .sommaire-grid a { min-height:80px;padding:12px 10px;gap:8px;font-size:12px;line-height:1.35;border-radius:13px; }
 .tableau-home .sommaire-grid .ui-icon { width:22px;height:22px; }
 .tableau-home .sommaire-grid a::after { display:none; }
 .tableau-home .sommaire-heading { margin-bottom:10px;font-size:11px; }
 .tableau-pages footer { font-size:10px;gap:6px; }
 .tableau-pages .page-tools .organisation-controls { grid-template-columns:1fr;gap:12px;padding:14px; }
 .tableau-pages .page-tools .period-control { width:100%;min-width:0;max-width:none; }
 .tableau-pages .page-body .panel { padding:18px; }
 .tableau-pages .page-heading { margin-bottom:18px; }
}
