/* V346 : couche d'harmonisation visuelle non destructive. */
:root{--dj346-blue:#153b78;--dj346-border:#dce6f2;--dj346-bg:#f4f7fb;--dj346-radius:12px}
html{max-width:100%;overflow-x:hidden}body{max-width:100%;overflow-x:hidden}
body .app,body .app>main,body .app>#main{min-width:0}
body .app>main,body .app>#main{background:var(--dj346-bg);padding:clamp(8px,1.1vw,16px)}
body .app nav .mi,body .app nav .mg>summary{border-radius:9px;min-height:38px;transition:background .15s ease}
body .app nav .mi:focus-visible,body .app nav .mg>summary:focus-visible{outline:2px solid #fff;outline-offset:2px}
body .dash{width:100%;max-width:100%;min-width:0;height:auto;min-height:0;display:flex;flex-direction:column;gap:10px;align-content:start}
body .dash>.top{min-height:36px;flex-wrap:wrap;gap:8px}
body .dash>.top h1{font-size:clamp(1.12rem,1.45vw,1.45rem);letter-spacing:-.025em}
body .dash .kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0}
body .dash .k{min-width:0;min-height:78px;padding:10px;gap:9px;border-radius:12px;box-shadow:0 2px 8px #17365d1c}
body .dash .kb{width:38px;height:38px;border-radius:10px}body .dash .k .i{font-size:1.5em}
body .dash .k strong{font-size:clamp(1.25rem,1.7vw,1.8rem)}body .dash .k small{font-size:.78rem}body .dash .k em{font-size:.73rem}
body .dash>.body{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,26%);gap:10px;min-width:0;min-height:0}
body .dash .left{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
body .dash .wf{padding:9px;border-radius:12px;min-height:0}
body .dash .ws{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;min-width:0}
body .dash .ws .arrow{display:none}
body .dash .st{min-height:78px;min-width:0;padding:6px 3px;font-size:.72rem;overflow-wrap:anywhere}
body .dash .st .i{font-size:1.7em}
body .dash .card{min-width:0;max-width:100%;border:1px solid var(--dj346-border);border-radius:var(--dj346-radius);box-shadow:0 2px 9px #1b3a6410;overflow:hidden}
body .dash .ch2{padding:9px 11px;min-height:37px;gap:6px;font-size:.88rem}
body .dash .sc{max-width:100%;overflow-x:auto;overflow-y:auto;scrollbar-width:thin}
body .dash .sc table{width:100%;min-width:720px;font-size:.8rem}
body .dash .sc th,body .dash .sc td{padding:8px 9px}
body .dash .b3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;min-width:0}
body .dash .b3 .cb{padding:10px}
body .dash .side{display:flex;flex-direction:column;gap:10px;min-width:0}
body .dash .side .card:last-child{min-height:140px}
body .dash .qa{gap:8px}body .dash .qa .a{min-width:0}
body .app main :is(input,select,textarea){max-width:100%;box-sizing:border-box}
body .app main :is(button,.btn){cursor:pointer}
body .app main :is(button,.btn,input,select,textarea):focus-visible{outline:2px solid #2563eb;outline-offset:2px}
body .app main :is(.sc,.table-responsive){max-width:100%;overflow-x:auto;scrollbar-width:thin}
body .app main :is(.card,.panel,.box){min-width:0}
body .app main table{max-width:100%}
body .app main th{background:#eef4fc;color:#1c3b65}
body .app main tr:hover td{background:#f6faff}
@media(max-width:1550px){body .dash .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}body .dash>.body{grid-template-columns:minmax(0,1fr) minmax(230px,29%)}body .dash .ws{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){body .dash>.body{grid-template-columns:minmax(0,1fr)}body .dash .side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body .dash .side .card:last-child{grid-column:1/-1}body .dash .b3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body .app>main,body .app>#main{padding:8px}body .dash .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body .dash .k{min-height:72px;padding:8px}body .dash .ws{grid-template-columns:repeat(2,minmax(0,1fr))}body .dash .b3,body .dash .side{grid-template-columns:minmax(0,1fr)}body .dash .side .card:last-child{grid-column:auto}body .dash .top{align-items:stretch}body .dash .top .per{margin-left:auto}body .dash .qa{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body .app nav .mi,body .app nav .mg>summary{transition:none}}
