/* V403 — mobile + tablette : plein écran, pas de débordement, données bien visibles */
html,body{max-width:100%;overflow-x:hidden}
img,video,canvas,svg{max-width:100%}
@media(max-width:1024px){
html body main#main,html body main.djf-main{max-width:100%!important;box-sizing:border-box}
html body main#main .page,html body main.djf-main .card{min-width:0}
html body pre,html body code{white-space:pre-wrap;overflow-wrap:anywhere}
html body main#main .sc,html body main .tb,html body .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:1024px) and (min-width:641px){
html body main#main{padding:12px 14px calc(90px + env(safe-area-inset-bottom))!important}
html body .dj398-jump{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body main#main table{font-size:14px}
html body main#main td,html body main#main th{padding:10px 12px!important}
}
@media(max-width:640px){
html body input,html body select,html body textarea{font-size:16px!important}
html body main#main{padding:8px 8px calc(92px + env(safe-area-inset-bottom))!important}
html body main#main .sc,html body main .sc{max-height:none!important;height:auto!important;overflow:visible!important}
html body table.djm-cards{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body table.djm-cards thead{display:none!important}
html body table.djm-cards tbody,html body table.djm-cards tfoot{display:grid!important;gap:10px;padding:6px 2px}
html body table.djm-cards tr{display:block!important;background:#fff!important;border:1px solid #cfe0f5!important;border-left:5px solid #12519a!important;border-radius:14px!important;box-shadow:0 3px 10px #10285b14!important;overflow:hidden}
html body table.djm-cards tr:nth-child(even){border-left-color:#10285b!important}
html body table.djm-cards td{display:grid!important;grid-template-columns:40% 1fr;gap:8px;align-items:center;width:auto!important;padding:9px 12px!important;border:0!important;border-bottom:1px solid #e3ecf8!important;text-align:left!important;font-size:15px!important;white-space:normal!important;overflow-wrap:anywhere}
html body table.djm-cards td:last-child{border-bottom:0!important}
html body table.djm-cards td::before{content:attr(data-label);font:900 11px/1.2 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.4px;color:#12519a}
html body table.djm-cards td[data-label=""]::before{content:none}
html body table.djm-cards td:first-child{background:#eef4fc;font-weight:900;color:#10285b}
html body table.djm-cards td:empty{display:none!important}
html body table.djm-cards td .djf-num{text-align:left}
html body table.djm-cards img{max-width:90px;height:auto}
/* boutons larges et tactiles */
html body main#main .btn,html body main#main button.btn{min-height:46px}
html body .djf-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
}
@media(max-width:640px){
html body table.djm-cards td[data-label="Actions"],html body table.djm-cards td[data-label="Action"]{display:flex!important;flex-wrap:wrap;gap:10px;align-items:center}
html body table.djm-cards td[data-label="Actions"]::before,html body table.djm-cards td[data-label="Action"]::before{flex:0 0 100%}
html body table.djm-cards td[data-label="Actions"] button,html body table.djm-cards td[data-label="Actions"] a{min-width:44px;min-height:44px}
}
@media(max-width:1024px) and (min-width:641px){
html body main#main .sc{max-height:calc(100dvh - 250px)!important;min-height:320px}
html body main#main .page{overflow:visible!important}
}
