/* DJOLLOF FRET-EXPRESS — V397 : police Roboto + tables de données colorées + pages lisibles (chargé en dernier sur toutes les pages) */

/* ───────── Police Roboto auto-hébergée (aucun accès Internet nécessaire) ───────── */
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/roboto-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Roboto";font-style:normal;font-weight:900;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-900-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:900;font-display:swap;src:url(/assets/fonts/roboto-latin-900-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
 --v397-font:"Roboto","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
 --v397-navy:#10285b;--v397-blue:#12519a;--v397-sky:#e8f1fc;--v397-sky2:#f3f8fe;--v397-red:#d7192d;
 --v397-ink:#14284b;--v397-ink2:#3f5578;--v397-line:#c6d7ee;--v397-line2:#dce7f6;--v397-bg:#e9f0fa;
}

/* ───────── Police unique sur toute l'application ───────── */
html,html body,html body :is(h1,h2,h3,h4,h5,h6,p,span,div,a,li,label,small,strong,b,em,td,th,button,input,select,textarea,option,summary,dialog,legend,figcaption,nav,header,footer,section,article,aside,main){font-family:var(--v397-font)!important}
html body{font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;color:var(--v397-ink)}
html body :is(code,pre,kbd,samp){font-family:"Roboto Mono",Consolas,"Courier New",monospace!important}

@media screen{
/* ───────── Fond et lisibilité : fin des pages « fades » ───────── */
html body.djf-page{background:linear-gradient(180deg,#e4edf9 0,#eef4fc 260px,#f3f7fd 100%)!important;color:var(--v397-ink)!important;font-size:15px;font-weight:400}
html body :is(.djf-main,.page,.card,.djf-card,.panel,dialog,.modal) :is(.muted,.djf-note,.djf-lead,.intro,.notice,small):not(.k *):not(.dash .k small){color:var(--v397-ink2)!important;opacity:1!important}
html body :is(input,select,textarea)::placeholder{color:#62789a!important;opacity:1!important}
html body.djf-page :is(h1,h2,h3,h4):not(.dakar-hero *):not(.djf-foot *):not(footer *),html body main#main .page :is(h2,h3,h4):not(.dash *){color:var(--v397-navy)!important;font-weight:700;letter-spacing:-.005em}
html body.djf-page .djf-main>:is(h1,.djf-title),html body.djf-page .djf-title{font-weight:900!important;color:var(--v397-navy)!important}
html body.djf-page :is(a:not(.btn):not(.djf-btn):not([class*=button])){font-weight:500}

/* ───────── Pages secondaires : une seule colonne pleine largeur (fin du découpage en colonnes) ───────── */
html body.djf-page .djf-main,html body.djf-page #main .djf-main{column-width:auto!important;columns:auto!important;column-count:auto!important;display:block!important;max-width:1440px!important;width:100%!important;margin:0 auto!important;padding:16px 18px 32px!important}
html body.djf-page .djf-main>*{break-inside:auto}

/* ───────── Cartes ───────── */
html body.djf-page :is(.card,.djf-card,.panel,.djf-panel){background:#fff!important;border:1px solid var(--v397-line)!important;border-radius:16px!important;box-shadow:0 4px 18px #10285b14,0 1px 3px #10285b10!important;color:var(--v397-ink)}
html body.djf-page :is(.card,.djf-card,.panel,.djf-panel)>:is(h2,h3):first-child{margin-top:0;padding-bottom:9px;border-bottom:2px solid var(--v397-sky);color:var(--v397-navy)!important}

/* ───────── Navigation haute des pages secondaires ───────── */
html body.djf-page .djf-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;width:100%;max-width:none!important;padding:10px 14px;background:#fff!important;border-bottom:1px solid var(--v397-line)!important;box-sizing:border-box}
html body.djf-page .djf-nav a{font-weight:500!important;font-size:13.5px;color:var(--v397-blue)!important;background:var(--v397-sky);border:1px solid var(--v397-line)!important;border-radius:999px;padding:7px 14px;text-decoration:none;transition:background .15s,color .15s,transform .15s}
html body.djf-page .djf-nav a:hover{background:#d4e5fa;transform:translateY(-1px)}
html body.djf-page .djf-nav a[aria-current=page]{background:linear-gradient(135deg,var(--v397-blue),var(--v397-navy))!important;color:#fff!important;border-color:var(--v397-navy)!important;font-weight:700!important;box-shadow:0 3px 10px #10285b40}

/* ───────── TABLES DE DONNÉES : en-tête marine, lignes alternées, survol, bordures nettes ───────── */
html body :is(.sc,.scroller,.tablewrap,.djf-tscroll,.dj-manifest-scroll,.dj-manif-table,.dj-client-table,.tw){scrollbar-width:thin;scrollbar-color:#8fb1dc #e8f1fc}
html body table:not(.doctable):not(.leaflet-table):not(.cal),html body .doctable{width:100%;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;border:1px solid var(--v397-line)!important;border-radius:14px!important;overflow:hidden;box-shadow:0 3px 14px #10285b12;font-size:13.5px!important;color:var(--v397-ink)!important;font-variant-numeric:tabular-nums}
html body table :is(thead th,tr:first-child>th):not(.nostyle),html body table thead td{background:linear-gradient(180deg,#1a5ca8 0,#10285b 100%)!important;color:#fff!important;font-size:11.5px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.03em;text-align:left;padding:10px 9px!important;border-bottom:3px solid var(--v397-red)!important;border-right:1px solid #ffffff22!important;white-space:nowrap;vertical-align:middle;position:sticky;top:0;z-index:2}
html body table thead th:last-child{border-right:0!important}
html body table tbody td,html body table tfoot td,html body table tbody th{padding:8px 9px!important;border-bottom:1px solid var(--v397-line2)!important;color:var(--v397-ink)!important;font-weight:400;vertical-align:middle;background:transparent}
html body table tbody tr:nth-child(odd){background:#fff!important}
html body table tbody tr:nth-child(even){background:var(--v397-sky2)!important}
html body table tbody tr:hover{background:#d9e8fb!important;box-shadow:inset 4px 0 0 var(--v397-blue)}
html body table tbody tr:last-child>td{border-bottom:0!important}
html body table tbody td:first-child{font-weight:700;color:var(--v397-navy)!important}
html body table tfoot td,html body table tfoot th{background:#e2edfb!important;color:var(--v397-navy)!important;font-weight:700;border-top:2px solid var(--v397-blue)!important}
html body table td[colspan]:only-child{text-align:center;color:var(--v397-ink2)!important;font-style:italic;padding:22px 12px!important;background:#fff}
html body table :is(td.n,td.r,td.num,td.right,th.n,th.num,th.right,.djf-num){text-align:right!important;font-variant-numeric:tabular-nums}
html body table td.djf-num{font-weight:700;color:var(--v397-navy)!important;white-space:nowrap}
html body table td.ac{white-space:nowrap}
html body table :is(button,.btn,a.djf-btn){font-size:12px}
/* lignes de tableaux dans les modales et le tableau de bord (écrase les anciens styles !important) */
html body :is(main#main,.dash,.djf-main,dialog,.modal,#dlg) :is(.sc,.dj-manifest-scroll,.dj-manif-table,.dj-client-table) table thead th{background:linear-gradient(180deg,#1a5ca8 0,#10285b 100%)!important;color:#fff!important;border-bottom:3px solid var(--v397-red)!important}
html body main#main .dash .sc tbody tr:nth-child(even),html body main#main .page .sc tbody tr:nth-child(even){background:var(--v397-sky2)!important}
html body main#main .dash .sc tbody tr:hover{background:#d9e8fb!important}

/* ───────── Badges de statut (colorés automatiquement par tableaux-v397.js) ───────── */
.djf-badge,html body .pill{display:inline-flex;align-items:center;gap:6px;padding:3px 11px;border-radius:999px;font-size:12px!important;font-weight:700!important;line-height:1.5;white-space:nowrap;border:1px solid transparent;letter-spacing:.01em}
.djf-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
html body .djf-b-green,html body .pill.g{background:#d7f3e3!important;color:#0a5c32!important;border-color:#9fdcb9!important}
html body .djf-b-blue,html body .pill.b{background:#d8e8fd!important;color:#0b3f8a!important;border-color:#9fc3f2!important}
html body .djf-b-amber,html body .pill:not(.g):not(.b):not(.r):not([class*=djf-b-]){background:#fff0c2!important;color:#7a4a00!important;border-color:#f0cf6a!important}
html body .djf-b-red,html body .pill.r{background:#ffd9de!important;color:#9a1226!important;border-color:#f3a2ae!important}
html body .djf-b-violet{background:#e6defc!important;color:#472a9c!important;border-color:#bfaef0!important}
html body .djf-b-teal{background:#d2f1f1!important;color:#075a5a!important;border-color:#95d6d6!important}
html body .djf-b-slate{background:#e5eaf2!important;color:#33445f!important;border-color:#c1cbdb!important}

/* ───────── Boutons et champs : police et contraste uniformes ───────── */
html body :is(button,.btn,.djf-btn,input[type=button],input[type=submit]){font-weight:600!important;letter-spacing:.01em}
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){color:var(--v397-ink)!important;background:#fff;border:1px solid #9db8dc!important;border-radius:10px;font-weight:400;font-size:14px}
html body :is(input,select,textarea):focus{outline:3px solid #12519a33!important;border-color:var(--v397-blue)!important}
html body label{color:var(--v397-ink);font-weight:500}

/* ───────── Pages Livreurs & Dakar, Comptes clients, etc. : étapes et navigation interne ───────── */
html body .dakar-hero{background:linear-gradient(120deg,#10285b 0,#12519a 70%,#2a7bd1 100%)!important;color:#fff;border-radius:18px;box-shadow:0 8px 24px #10285b33}
html body .dakar-hero :is(h1,p,.dakar-eyebrow){color:#fff!important}
html body .dakar-steps{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:14px 0!important}
html body .dakar-steps span{background:#fff!important;border:1px solid var(--v397-line)!important;border-top:4px solid var(--v397-blue)!important;border-radius:12px;color:var(--v397-navy)!important;font-weight:700;box-shadow:0 2px 8px #10285b10}
html body .dakar-steps span:nth-child(2){border-top-color:#e0a800!important}html body .dakar-steps span:nth-child(3){border-top-color:var(--v397-red)!important}html body .dakar-steps span:nth-child(4){border-top-color:#118a52!important}
html body .dakar-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-bottom:16px}
html body .dakar-nav-group{background:#fff!important;border:1px solid var(--v397-line)!important;border-radius:14px!important}
html body .dakar-nav-group>strong{color:var(--v397-navy)!important;font-weight:700;text-transform:uppercase;font-size:11.5px;letter-spacing:.06em}
html body .dakar-links a{background:var(--v397-sky)!important;color:var(--v397-blue)!important;border:1px solid var(--v397-line)!important;font-weight:500;border-radius:10px}
html body .dakar-links a[aria-current=page]{background:linear-gradient(135deg,var(--v397-blue),var(--v397-navy))!important;color:#fff!important}
html body .dakar-section-head h2{color:var(--v397-navy)!important;font-weight:900}
html body .dakar-section-pill{background:var(--v397-sky)!important;color:var(--v397-blue)!important;border-color:var(--v397-line)!important}

/* ───────── Indicateurs (cartes chiffres) des pages secondaires ───────── */
html body :is(.dp-kpi,.kpi,.stat,.metric,.cards>div){background:#fff!important;border:1px solid var(--v397-line)!important;border-radius:14px!important;box-shadow:0 3px 12px #10285b12;color:var(--v397-ink)}
html body :is(.stat strong,.metric b,.kpi b,.dp-kpi b){color:var(--v397-navy)!important;font-weight:900}

/* ───────── Pied de page ───────── */
html body :is(footer.djf-foot,.djf-footer,body.djf-page>footer){font-weight:400}
}

/* ───────── Mobile : tables défilantes et badges compacts ───────── */
@media screen and (max-width:760px){
 html body.djf-page .djf-main,html body.djf-page #main .djf-main{padding:10px!important}
 html body .dakar-steps,html body .dakar-nav{grid-template-columns:1fr 1fr!important}
 html body table:not(.doctable){font-size:12.5px!important}
 html body table thead th{padding:9px 9px!important;font-size:11px!important}
 html body table tbody td{padding:8px 9px!important}
}
@media screen and (max-width:520px){html body .dakar-nav{grid-template-columns:1fr!important}}

/* ───────── Impression : documents clairs, sans effets ───────── */
@media print{
 html body table{box-shadow:none!important;border-radius:0!important}
 html body table thead th{background:#e6eef9!important;color:#10285b!important;border-bottom:2px solid #10285b!important;position:static}
 html body table tbody tr:nth-child(even){background:#f4f8fd!important}
 .djf-badge{border:1px solid #999}
}
