/* DJOLLOF FRET-EXPRESS — V398 : couleurs du logo (marine #10285b, bleu globe #12519a, rouge #d7192d) pour les boutons + tableau de bord réorganisé */
:root{--lg-navy:#10285b;--lg-blue:#12519a;--lg-sky:#4a90d9;--lg-red:#d7192d;--lg-red2:#b30f22;--lg-line:#c6d7ee}

@media screen{
/* ───────── BOUTONS : principal = dégradé marine → bleu globe ; secondaire = contour bleu ; danger = rouge du logo ───────── */
html body :is(.btn,.djf-btn,button.submit,button.go,.wf-guide-actions button,.pres button:not(.device-tile):not(.device-open),#djfAsst form button,#djfAsstChips button,.sr button,.dj398-more .btn,button[type=submit]:not(.hs)){
 background:linear-gradient(135deg,#1a5ca8 0,#12519a 45%,#10285b 100%)!important;color:#fff!important;border:0!important;border-bottom:3px solid var(--lg-red)!important;border-radius:10px;
 font-weight:700!important;letter-spacing:.01em;box-shadow:0 3px 10px #10285b33;text-shadow:none;transition:transform .15s,box-shadow .15s,filter .15s}
html body :is(.btn,.djf-btn,button.submit,button.go,.wf-guide-actions button,.pres button,#djfAsst form button,.sr button,button[type=submit]):hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px #10285b55;filter:brightness(1.08)}
html body :is(.btn,.djf-btn,button[type=submit]):active:not(:disabled){transform:none;box-shadow:0 1px 4px #10285b55}
html body :is(.btn,.djf-btn,button[type=submit],button.go):disabled{background:#9db3d3!important;border-bottom-color:#c6d3e6!important;box-shadow:none;cursor:not-allowed}
/* secondaire */
html body :is(.btn.s,.btn.ghost,button.ghost,.djf-btn.ghost,.djf-btn.s,.btn.sec,.btn.secondary){background:#fff!important;color:var(--lg-blue)!important;border:2px solid var(--lg-blue)!important;border-bottom-width:2px!important;box-shadow:none}
html body :is(.btn.s,.btn.ghost,button.ghost,.djf-btn.ghost):hover:not(:disabled){background:#e8f1fc!important;color:var(--lg-navy)!important;box-shadow:0 3px 10px #12519a30}
/* danger / suppression */
html body :is(.btn.r,.btn.red,.btn.danger,.btn.del,button.danger,button.del,.djf-btn.danger,[data-act*=delete],[data-act*=suppr],[data-del],.djf-del){background:linear-gradient(135deg,#e8283c,#b30f22)!important;color:#fff!important;border:0!important;border-bottom:3px solid var(--lg-navy)!important}
/* onglets et boutons de navigation interne */
html body :is(.adm-tab,.djf-client-tab,.dakar-links a,.wf-guide-jump a,.dj-exp-tabs .btn){background:#fff!important;color:var(--lg-blue)!important;border:1px solid var(--lg-line)!important;border-radius:10px;font-weight:600!important}
html body :is(.adm-tab[aria-selected=true],.djf-client-tab.active,.dj-exp-tabs .btn[aria-current=page],.adm-actions .btn.on){background:linear-gradient(135deg,#12519a,#10285b)!important;color:#fff!important;border-color:var(--lg-navy)!important;border-bottom:3px solid var(--lg-red)!important}
/* grands boutons d'onglets (Comptes clients / Inscriptions / …) */
html body.djf-page .djf-client-tabs button,html body.djf-page :is(.tabs,.djf-tabs) button{background:linear-gradient(135deg,#12519a,#10285b)!important;color:#fff!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:12px}
html body.djf-page .djf-client-tabs button.active,html body.djf-page :is(.tabs,.djf-tabs) button.active{border-bottom-color:var(--lg-red)!important;background:linear-gradient(135deg,#d7192d,#b30f22)!important}
/* petits boutons d'action dans les tables (Fiche, QR, éditer…) */
html body table :is(.btn,button){border-radius:8px;padding:4px 10px;font-size:12px!important}
html body table :is(.ac button){background:transparent!important;color:var(--lg-blue)!important;border:0!important;box-shadow:none!important}
html body table :is(.ac button):hover{color:var(--lg-red)!important;background:#e8f1fc!important}
/* champs : accent des cases à cocher et focus aux couleurs du logo */
html body{accent-color:var(--lg-blue)}
html body :is(input,select,textarea):focus{border-color:var(--lg-blue)!important;outline:3px solid #12519a33!important}

/* ───────── TABLEAU DE BORD RÉORGANISÉ ───────── */
html body .dash.dj398{display:block!important;max-width:1500px;margin:0 auto;padding:14px 16px 28px!important;background:transparent!important}
html body .dash.dj398 .dj398-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
html body .dash.dj398 .dj398-head h1{font-size:23px;font-weight:900;color:var(--lg-navy)!important;margin:0}
/* barre de sauts entre sections */
html body .dash .dj398-jump{flex-direction:row!important;grid-template-columns:none!important;height:auto!important;min-height:0!important;position:sticky;top:0;z-index:6;display:flex;flex-wrap:wrap;gap:7px;padding:9px 10px;margin:0 0 14px;background:#ffffffee;backdrop-filter:blur(6px);border:1px solid var(--lg-line);border-radius:14px;box-shadow:0 3px 12px #10285b14}
html body .dash .dj398-jump a{width:auto!important;flex:none!important;text-align:center;font-size:12.5px;font-weight:600;color:var(--lg-blue);background:#e8f1fc;border:1px solid var(--lg-line);border-radius:999px;padding:5px 13px;text-decoration:none}
html body .dj398-jump a:hover{background:var(--lg-blue);color:#fff}
/* sections */
html body .dj398-sec{margin:0 0 20px;scroll-margin-top:64px}
html body .dj398-h{display:flex;align-items:center;gap:10px;margin:0 0 10px!important;padding:0!important;border:0!important;font-size:14px!important;font-weight:900!important;letter-spacing:.07em;text-transform:uppercase;color:var(--lg-navy)!important;background:none!important}
html body .dj398-h i{width:7px;height:22px;border-radius:4px;background:linear-gradient(180deg,var(--lg-blue),var(--lg-red));flex:none}
html body .dj398-h em{font-style:normal;font-weight:500;letter-spacing:0;text-transform:none;font-size:12.5px;color:#4a6285}
/* tuiles */
html body .dj398-tiles{display:grid;grid-template-columns:repeat(var(--n,5),minmax(0,1fr));gap:12px}
html body #dj398-colis .dj398-tiles{--n:6}
html body #dj398-douane .dj398-tiles{--n:5}
html body .dj398-tile{display:flex;align-items:center;gap:12px;min-height:92px;padding:14px;border-radius:16px;color:#fff;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 6px 16px #10285b2e;transition:transform .15s,box-shadow .15s;min-width:0}
html body .dj398-tile::after{content:"";position:absolute;right:-26px;top:-26px;width:90px;height:90px;border-radius:50%;background:#ffffff14}
html body .dj398-tile:hover,html body .dj398-tile:focus-visible{transform:translateY(-3px);box-shadow:0 12px 24px #10285b48;outline:3px solid #b7ddfa}
html body .dj398-tile.navy{background:linear-gradient(135deg,#10285b 0,#1b4a8d 100%)}
html body .dj398-tile.blue{background:linear-gradient(135deg,#12519a 0,#2f8be0 100%)}
html body .dj398-tile.red{background:linear-gradient(135deg,#b30f22 0,#ec3045 100%)}
html body .dj398-ico{flex:none;width:42px;height:42px;border-radius:12px;background:#ffffff26;display:grid;place-items:center}
html body .dj398-ico svg{width:22px;height:22px;stroke:#fff;color:#fff}
html body .dj398-txt{min-width:0;display:flex;flex-direction:column;gap:1px}
html body .dj398-txt small{font-size:11.5px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#ffffffe6!important;opacity:1!important;white-space:normal}
html body .dj398-txt strong{font-size:20px;font-weight:900;line-height:1.15;color:#fff!important;overflow-wrap:anywhere}
html body .dj398-txt span{font-size:11.5px;color:#ffffffd0;font-weight:400}
/* panneaux */
html body .dj398-panel{background:#fff;border:1px solid var(--lg-line);border-radius:16px;box-shadow:0 4px 16px #10285b14;overflow:hidden;min-width:0}
html body .dj398-panel>h3{margin:0!important;padding:11px 16px!important;font-size:14px!important;font-weight:700!important;letter-spacing:.02em;color:#fff!important;background:linear-gradient(90deg,#10285b,#12519a)!important;border-bottom:3px solid var(--lg-red)!important}
html body .dj398-panel .dj379-content{padding:12px 16px 16px;display:flex;flex-direction:column;gap:8px}
html body .dj398-wide{margin:0 0 14px}
html body .dj398-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body .dj398-panel .dj379-line{display:grid;grid-template-columns:minmax(110px,1.2fr) minmax(80px,2fr) 36px 42px;align-items:center;gap:10px;font-size:13px;color:var(--lg-navy)}
html body .dj398-panel .dj379-line span{font-weight:600}
html body .dj398-panel .dj379-track{height:12px;border-radius:99px;background:#e1ebf8;overflow:hidden}
html body .dj398-panel .dj379-track i{display:block;height:100%;border-radius:99px;min-width:0}
html body .dj398-panel .dj379-line b{text-align:right;font-weight:900}
html body .dj398-panel .dj379-line small{color:#4a6285!important;text-align:right}
html body .dj398-panel .dj379-chart{display:flex;align-items:flex-end;gap:12px;height:210px;padding:16px 18px 12px}
html body .dj398-panel .dj379-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px;min-width:0}
html body .dj398-panel .dj379-bar b{font-size:13px;color:var(--lg-navy);font-weight:900}
html body .dj398-panel .dj379-bar i{display:block;width:70%;max-width:46px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#d7192d,#10285b)!important;min-height:3px}
html body .dj398-panel .dj379-bar small{font-size:11.5px;color:#4a6285!important}
html body .dj398-panel .dj391-evolution{padding:10px 16px}
html body .dj398-table{padding:0}
html body .dj398-table .sc{max-height:none;overflow:auto}
html body .dj398-table table{border-radius:0!important;border:0!important;box-shadow:none!important}
html body .dj398-more{margin:0;padding:12px 16px;text-align:right;background:#f3f8fe;border-top:1px solid var(--lg-line)}
html body .dj379-empty{color:#4a6285;padding:10px 4px}
}
@media screen and (max-width:1280px){html body .dj398-tiles,html body #dj398-colis .dj398-tiles,html body #dj398-douane .dj398-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media screen and (max-width:860px){html body .dj398-grid{grid-template-columns:1fr}}
@media screen and (max-width:640px){html body .dj398-tiles,html body #dj398-colis .dj398-tiles,html body #dj398-douane .dj398-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}html body .dj398-tile{padding:10px;min-height:78px;gap:9px}html body .dj398-ico{width:34px;height:34px}html body .dj398-txt strong{font-size:18px}html body .dash.dj398{padding:8px!important}}
@media print{html body .dj398-jump{display:none}html body .dj398-tile{box-shadow:none;border:1px solid #10285b;color:#10285b;background:#fff!important}html body .dj398-txt *,html body .dj398-ico svg{color:#10285b!important;stroke:#10285b!important}}

/* ───────── V399 : barre de navigation du tableau de bord bien visible + sections structurées ───────── */
@media screen{
html body .dash .dj398-jump{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;margin:0 0 16px!important;background:#fff!important;border:1px solid var(--lg-line)!important;border-bottom:4px solid var(--lg-red)!important;border-radius:16px!important;box-shadow:0 8px 22px #10285b26!important;position:sticky;top:6px;z-index:20}
html body .dash .dj398-jump a{display:flex!important;align-items:center;gap:9px;width:auto!important;min-width:0;padding:8px 10px!important;border-radius:12px!important;border:1px solid var(--lg-line)!important;background:linear-gradient(180deg,#fff,#eef4fc)!important;color:var(--lg-navy)!important;text-align:left!important;text-decoration:none;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}
html body .dash .dj398-jump a b{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#12519a,#10285b)}
html body .dash .dj398-jump a b svg{width:19px;height:19px;stroke:#fff;color:#fff}
html body .dash .dj398-jump a span{display:flex;flex-direction:column;min-width:0;font-size:14px;font-weight:900;line-height:1.15;color:var(--lg-navy)}
html body .dash .dj398-jump a span small{font-size:11px!important;font-weight:500;color:#4a6285!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .dash .dj398-jump a:hover{transform:translateY(-2px);box-shadow:0 6px 14px #12519a30;background:#e4effc!important;border-color:var(--lg-blue)!important}
html body .dash .dj398-jump a.on{background:linear-gradient(135deg,#12519a,#10285b)!important;border-color:var(--lg-navy)!important;border-bottom:4px solid var(--lg-red)!important;box-shadow:0 6px 16px #10285b55}
html body .dash .dj398-jump a.on span,html body .dash .dj398-jump a.on span small{color:#fff!important}
html body .dash .dj398-jump a.on b{background:linear-gradient(135deg,#e8283c,#b30f22)}
html body .dash .dj398-jump a:focus-visible{outline:3px solid #b7ddfa;outline-offset:2px}
/* sections numérotées, en cartes */
html body .dash.dj398{counter-reset:djsec}
html body .dj398-sec{counter-increment:djsec;background:#fff;border:1px solid var(--lg-line);border-radius:20px;padding:14px 16px 16px;margin:0 0 18px!important;box-shadow:0 5px 18px #10285b14}
html body .dj398-h{display:flex;align-items:center;gap:10px;margin:0 0 12px!important;padding:0 0 10px!important;border-bottom:2px solid #e1ebf8!important}
html body .dj398-h i{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#e8283c,#b30f22);display:grid;place-items:center;flex:none;box-shadow:0 3px 8px #b30f2250}
html body .dj398-h i::before{content:counter(djsec);color:#fff;font-style:normal;font-weight:900;font-size:14px}
html body .dj398-h .dj398-t{font-size:16px;font-weight:900;color:var(--lg-navy)!important;letter-spacing:.05em}
html body .dj398-h em{flex:1;min-width:0}
html body .dj398-top{margin-left:auto;flex:none;font-size:12px;font-weight:700;color:var(--lg-blue)!important;background:#e8f1fc;border:1px solid var(--lg-line);border-radius:999px;padding:4px 12px;text-decoration:none;text-transform:none;letter-spacing:0}
html body .dj398-top:hover{background:var(--lg-blue);color:#fff!important}
html body .dj398-flash{animation:dj398f 1.2s ease}
@keyframes dj398f{0%,100%{box-shadow:0 5px 18px #10285b14}30%{box-shadow:0 0 0 4px #d7192d66,0 8px 24px #10285b30}}
}
@media screen and (max-width:1280px){html body .dash .dj398-jump{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media screen and (max-width:760px){html body .dash .dj398-jump{grid-template-columns:repeat(2,minmax(0,1fr))!important;position:static}html body .dash .dj398-jump a span small{display:none}html body .dj398-sec{padding:10px}}
@media print{html body .dash .dj398-jump,html body .dj398-top{display:none!important}}

/* V399 : le tableau de bord doit défiler (tous les éléments accessibles, même sur un écran de 768 px) */
html body main#main:has(.dj398),html body.djf-reference-dashboard main#main:has(.dj398){overflow-y:auto!important;overflow-x:hidden!important;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#12519a #e8f1fc}
html body main#main:has(.dj398)::-webkit-scrollbar{width:10px}
html body main#main:has(.dj398)::-webkit-scrollbar-thumb{background:#12519a;border-radius:8px;border:2px solid #e8f1fc}
html body main#main:has(.dj398)::-webkit-scrollbar-track{background:#e8f1fc}
html body .dash .dj398-jump{top:0!important;box-shadow:0 -12px 0 #eef3fb,0 8px 22px #10285b26!important}

/* ───────── V400 : tableau de bord compact et élégant (tuiles blanches à liseré de couleur) ───────── */
@media screen{
html body .dash.dj398{padding:10px 14px 24px!important}
html body .dash.dj398 .dj398-head{margin:0 0 8px}
html body .dash.dj398 .dj398-head h1{font-size:20px}
/* barre de navigation compacte */
html body .dash .dj398-jump{padding:6px!important;gap:6px!important;margin:0 0 12px!important;border-radius:14px!important;border-bottom-width:3px!important}
html body .dash .dj398-jump a{padding:5px 8px!important;gap:7px;border-radius:10px!important}
html body .dash .dj398-jump a b{width:28px;height:28px;border-radius:8px}
html body .dash .dj398-jump a b svg{width:16px;height:16px}
html body .dash .dj398-jump a span{font-size:12.5px}
html body .dash .dj398-jump a span small{font-size:10.5px!important}
/* sections */
html body .dj398-sec{padding:10px 12px 12px;margin:0 0 12px!important;border-radius:16px}
html body .dj398-h{margin:0 0 9px!important;padding:0 0 8px!important}
html body .dj398-h i{width:24px;height:24px}html body .dj398-h i::before{font-size:12px}
html body .dj398-h .dj398-t{font-size:13.5px}
html body .dj398-h em{font-size:12px}
html body .dj398-top{padding:2px 10px;font-size:11px}
/* tuiles : blanches, compactes, liseré de couleur à gauche */
html body .dj398-tiles{grid-template-columns:repeat(auto-fill,minmax(172px,1fr))!important;gap:9px!important}
html body #dj398-colis .dj398-tiles,html body #dj398-douane .dj398-tiles{grid-template-columns:repeat(auto-fill,minmax(172px,1fr))!important}
html body .dj398-tile{min-height:0!important;padding:9px 11px!important;gap:10px!important;border-radius:12px!important;background:#fff!important;color:var(--lg-navy)!important;border:1px solid var(--lg-line);border-left:5px solid var(--tone,#10285b);box-shadow:0 2px 8px #10285b12!important}
html body .dj398-tile::after{display:none}
html body .dj398-tile.navy{--tone:#10285b;background:#fff!important}
html body .dj398-tile.blue{--tone:#12519a;background:#fff!important}
html body .dj398-tile.red{--tone:#d7192d;background:#fff!important}
html body .dj398-tile:hover,html body .dj398-tile:focus-visible{transform:translateY(-2px);box-shadow:0 8px 18px #10285b2e!important;outline:2px solid var(--tone);background:#f3f8fe!important}
html body .dj398-ico{width:34px!important;height:34px!important;border-radius:10px!important;background:var(--tone)!important}
html body .dj398-ico svg{width:18px!important;height:18px!important}
html body .dj398-txt small{font-size:10.5px!important;color:#4a6285!important;letter-spacing:.05em}
html body .dj398-txt strong{font-size:17px!important;color:var(--tone)!important;line-height:1.2;white-space:nowrap}
html body .dj398-txt span{font-size:10.5px!important;color:#5b6f90!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .dj398-tile.red .dj398-txt strong{color:#d7192d!important}
/* panneaux et graphiques plus compacts */
html body .dj398-panel{border-radius:12px}
html body .dj398-panel>h3{padding:8px 12px!important;font-size:13px!important}
html body .dj398-panel .dj379-content{padding:9px 12px 12px;gap:6px}
html body .dj398-panel .dj379-line{font-size:12px;gap:8px;grid-template-columns:minmax(100px,1.1fr) minmax(70px,2fr) 30px 38px}
html body .dj398-panel .dj379-track{height:9px}
html body .dj398-panel .dj379-chart{height:150px;padding:10px 14px 8px}
html body .dj398-panel .dj391-evolution{padding:4px 12px}
html body .dj398-panel .dj391-evolution svg{max-height:170px}
html body .dj398-wide{margin:0 0 10px}
html body .dj398-grid{gap:10px}
html body .dj398-table table td,html body .dj398-table table th{padding:6px 9px!important}
html body .dj398-more{padding:8px 12px}
}
@media screen and (max-width:640px){html body .dj398-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .dj398-txt strong{font-size:15px!important}}
@media screen{
html body #dj398-colis .dj398-tiles{grid-template-columns:repeat(6,minmax(0,1fr))!important}
html body #dj398-fin .dj398-tiles,html body #dj398-douane .dj398-tiles,html body #dj398-parcours .dj398-tiles,html body #dj398-types .dj398-tiles{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html body .dj398-panel .dj391-evolution svg{max-height:230px!important;width:100%;height:auto}
html body .dj398-txt strong{font-size:16px!important}
}
@media screen and (max-width:1280px){html body #dj398-colis .dj398-tiles,html body #dj398-fin .dj398-tiles,html body #dj398-douane .dj398-tiles,html body #dj398-parcours .dj398-tiles,html body #dj398-types .dj398-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media screen and (max-width:640px){html body #dj398-colis .dj398-tiles,html body #dj398-fin .dj398-tiles,html body #dj398-douane .dj398-tiles,html body #dj398-parcours .dj398-tiles,html body #dj398-types .dj398-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
