:root{--d2-navy:#101828;--d2-navy-2:#0b1220;--d2-blue:#2563eb;--d2-bg:#f3f6fb;--d2-ink:#182230;--d2-muted:#667085;--d2-line:#e4e7ec;--d2-card:#fff;--d2-shadow:0 8px 28px rgba(16,24,40,.06)}
html body{margin:0;background:radial-gradient(circle at top right,rgba(37,99,235,.07),transparent 30%),var(--d2-bg)!important;color:var(--d2-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;font-size:14px}
body .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:258px!important;height:100vh!important;padding:22px 16px!important;background:linear-gradient(180deg,#101828,#0b1220)!important;color:#fff!important;overflow-y:auto!important;z-index:30!important}
body .sidebar .logo{padding:8px 12px 22px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;margin:0 0 16px!important}.d2-brand{display:flex!important;align-items:center!important;gap:10px!important;color:#fff!important;text-decoration:none!important;font-size:20px!important;font-weight:850!important;letter-spacing:-.02em!important}.d2-brand img{display:block!important;width:38px!important;height:38px!important;object-fit:contain!important;border-radius:11px!important}.d2-brand span{display:inline!important}
body .sidebar .nav{display:flex!important;flex-direction:column!important;gap:6px!important}.sidebar .nav a,.sidebar .nav .menu-item{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:46px!important;height:auto!important;padding:11px 13px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#d0d5dd!important;text-decoration:none!important;text-align:left!important;font:600 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;letter-spacing:0!important;box-shadow:none!important;cursor:pointer!important;transition:.18s ease!important}.sidebar .nav a:hover{background:#1d2939!important;color:#fff!important;transform:none!important}.sidebar .nav a.active{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;color:#fff!important;font-weight:750!important;box-shadow:0 8px 18px rgba(37,99,235,.24)!important}.sidebar .menu-icon{display:grid!important;place-items:center!important;flex:0 0 22px!important;width:22px!important;height:22px!important;font-size:0!important}.sidebar .menu-icon svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.sidebar #adminNav,.sidebar #adminMessagesNav{display:none!important;color:#ffe6a3!important;border:1px solid rgba(255,219,111,.22)!important}.sidebar #adminNav.d2-admin-visible,.sidebar #adminMessagesNav.d2-admin-visible{display:flex!important}
body .main{margin-left:258px!important;padding:34px 36px 60px!important;min-height:100vh!important;max-width:none!important}.d2-page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;margin:0 0 24px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.d2-page-head>div:first-child{min-width:0}.d2-page-head h1{margin:0!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;font-size:34px!important;line-height:1.14!important;font-weight:800!important;letter-spacing:-.035em!important;color:#182230!important}.d2-page-head .subtitle,.d2-page-head p{margin:8px 0 0!important;color:#667085!important;font-size:13px!important;line-height:1.55!important;max-width:820px!important}.d2-tools{display:flex!important;align-items:center!important;gap:9px!important;flex:0 0 auto!important;min-width:max-content!important}.d2-round,.d2-logout,.d2-language-trigger{box-sizing:border-box;height:42px!important;min-height:42px!important;border-radius:10px!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}.d2-round{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;padding:0!important;border:1px solid var(--d2-line)!important;background:#fff!important;color:#344054!important;cursor:pointer!important;box-shadow:0 3px 12px rgba(20,39,83,.035)!important}.d2-round svg,.d2-avatar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}.d2-logout{width:auto!important;min-width:max-content!important;padding:0 13px!important;border:1px solid #ffd6da!important;background:#fff5f6!important;color:#b42318!important;font-size:12px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important}.d2-avatar{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;border-radius:50%!important;background:linear-gradient(145deg,#674cff,#2f64ed)!important;color:#fff!important}
.d2-language{position:relative;z-index:100}.d2-language-trigger{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:58px!important;padding:0 9px!important;border:1px solid var(--d2-line)!important;background:#fff!important;color:#344054!important;cursor:pointer!important;box-shadow:0 3px 12px rgba(20,39,83,.035)!important}.d2-language-trigger svg.chev{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2}.d2-flag{display:block;width:24px;height:17px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(15,23,42,.12)}.d2-flag svg{display:block;width:100%;height:100%}.d2-language-menu{position:absolute;right:0;top:48px;display:none;min-width:150px;padding:6px;border:1px solid var(--d2-line);border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(16,24,40,.16)}.d2-language.open .d2-language-menu{display:grid;gap:3px}.d2-language-option{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:7px 9px;border:0;border-radius:8px;background:#fff;color:#344054;font-size:12px;font-weight:650;text-align:left;cursor:pointer}.d2-language-option:hover,.d2-language-option.active{background:#f2f4f7;color:#101828}.d2-native-language{display:none!important}.legacy-tools,.hero-actions,.head-tools,.tools:has(> select[id="language"]){display:none!important}
.d2-public-language{position:fixed;right:18px;top:18px;z-index:9999}.d2-public-language .d2-language-menu{right:0}
@media(max-width:900px){body .sidebar{display:none!important}body .main{margin-left:0!important;padding:22px!important}.d2-page-head{align-items:flex-start!important}.d2-logout{display:none!important}}
@media(max-width:600px){body .main{padding:16px!important}.d2-avatar,.d2-round{display:none!important}.d2-page-head h1{font-size:29px!important}.d2-language-trigger{width:50px!important}.d2-public-language{right:10px;top:10px}}

/* Barre de retour lorsqu’un administrateur consulte une session vendeur */
.d2-impersonation-bar{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%) translateY(12px);
  z-index:99999;
  display:none;
  align-items:center;
  gap:10px;
  max-width:min(92vw,620px);
  padding:7px 8px 7px 12px;
  background:#05070b;
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  box-shadow:0 10px 32px rgba(0,0,0,.30);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.d2-impersonation-bar.visible{display:flex;animation:d2ImpersonationIn .18s ease-out forwards}
@keyframes d2ImpersonationIn{to{transform:translateX(-50%) translateY(0)}}
.d2-impersonation-text{display:flex;align-items:center;gap:7px;min-width:0}
.d2-impersonation-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.14)}
.d2-impersonation-text strong{font-size:11px;font-weight:800;white-space:nowrap}
.d2-impersonation-text span:not(.d2-impersonation-dot){max-width:230px;font-size:10px;color:#b8c0ce;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d2-impersonation-bar button{
  min-height:30px;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:#fff;
  color:#0b1220;
  font:800 10px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  cursor:pointer
}
.d2-impersonation-bar button:disabled{opacity:.65;cursor:wait}
body.d2-impersonating{padding-bottom:0}
@media(max-width:650px){
  .d2-impersonation-bar{bottom:12px;max-width:calc(100vw - 20px);padding:6px 7px 6px 10px}
  .d2-impersonation-text span:not(.d2-impersonation-dot){display:none}
  .d2-impersonation-text strong{font-size:10px}
  .d2-impersonation-bar button{min-height:28px;padding:4px 9px}
}

/* D2_ACTION_UX_V3 */
.d2-action-overlay{position:fixed;inset:0;z-index:5000;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(7,20,50,.38);backdrop-filter:blur(6px)}
.d2-action-overlay.open{display:flex}.d2-action-card{width:min(360px,100%);padding:28px 24px 25px;border:1px solid rgba(255,255,255,.7);border-radius:22px;background:rgba(255,255,255,.98);box-shadow:0 30px 100px rgba(7,22,59,.28);text-align:center}.d2-action-kicker{font-size:12px;font-weight:650;color:#71809d}.d2-action-number{margin:8px 0 7px;font-size:72px;line-height:1;font-weight:700;letter-spacing:-.06em;color:#3156ed}.d2-action-label{font-size:14px;font-weight:700;color:#1b2947}.d2-action-sub{margin-top:6px;font-size:12px;color:#7a859d}.d2-action-popup{width:min(430px,100%);padding:27px 25px;border-radius:20px;background:#fff;box-shadow:0 30px 100px rgba(7,22,59,.28);text-align:center}.d2-action-popup .d2-action-ok{width:48px;height:48px;margin:0 auto 12px;display:grid;place-items:center;border-radius:14px;background:#ecfdf5;color:#12805a;font-size:24px;font-weight:800}.d2-action-popup h2{margin:0;color:#15213c;font-size:19px}.d2-action-popup p{margin:8px 0 18px;color:#66738c;font-size:13px}.d2-action-popup button{min-height:40px;padding:8px 16px;border:1px solid #dce2ed;border-radius:10px;background:#fff;color:#263451;font-weight:700;cursor:pointer}

/* V11.8.15 — sélecteur public unique, aligné avec Connexion */
.d2-public-language-slot{display:inline-flex;align-items:center;flex:0 0 auto}.d2-public-language-slot .d2-public-language{position:relative!important;right:auto!important;top:auto!important;z-index:200!important}.d2-public-actions{display:flex;align-items:center;gap:10px}.d2-public-login{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:1px solid #d8deea;border-radius:10px;background:#fff;color:#273454!important;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap}
@media(max-width:600px){.d2-public-actions{gap:7px}.d2-public-login{min-height:40px;padding:0 10px;font-size:12px}}


/* V11.8.23 — header/footer publics isolés, modèle home.html */
.mp23-topbar,.mp23-topbar *,.mp23-dark,.mp23-dark *{box-sizing:border-box}

.mp23-topbar{
  position:sticky!important;top:0!important;z-index:950!important;
  width:100%!important;margin:0!important;padding:0!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;
  border-bottom:1px solid rgba(229,231,239,.9)!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
}
.mp23-container{
  width:min(1180px,calc(100% - 48px))!important;
  margin:0 auto!important;padding-left:0!important;padding-right:0!important;
  max-width:1180px!important;
}
.mp23-nav{
  min-height:76px!important;display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;gap:30px!important;
}
.mp23-brand{
  display:flex!important;align-items:center!important;
  width:max-content!important;text-decoration:none!important;
}
.mp23-brand img{
  width:48px!important;height:48px!important;display:block!important;
  object-fit:contain!important;border-radius:12px!important;margin:0!important;
}
.mp23-nav-links{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:32px!important;margin:0!important;padding:0!important;
}
.mp23-nav-links a{
  color:#475467!important;text-decoration:none!important;
  font-size:14px!important;font-weight:600!important;white-space:nowrap!important;
}
.mp23-nav-links a:hover{color:#3857f7!important}
.mp23-nav-actions{
  justify-self:end!important;display:flex!important;align-items:center!important;
  gap:10px!important;margin:0!important;padding:0!important;width:auto!important;
}
.mp23-btn{
  min-height:46px!important;padding:0 16px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:10px!important;text-decoration:none!important;
  font-size:14px!important;font-weight:800!important;white-space:nowrap!important;
}
.mp23-login{
  color:#1f2937!important;background:#fff!important;border:1px solid #d8deea!important;
}
.mp23-primary{
  color:#fff!important;border:1px solid transparent!important;
  background:linear-gradient(135deg,#3857f7,#6847f5)!important;
  box-shadow:0 10px 26px rgba(56,87,247,.23)!important;
}
.mp23-lang-slot{
  display:inline-flex!important;align-items:center!important;
  position:relative!important;flex:0 0 auto!important;margin:0!important;padding:0!important;
}
.mp23-lang-slot .d2-public-language{
  position:relative!important;inset:auto!important;
  right:auto!important;top:auto!important;left:auto!important;bottom:auto!important;
  margin:0!important;z-index:980!important;
}
.mp23-lang-slot .d2-language-trigger{
  min-height:42px!important;height:42px!important;margin:0!important;
}
.mp23-lang-slot .d2-language-menu{
  position:absolute!important;right:0!important;left:auto!important;
  top:48px!important;bottom:auto!important;z-index:999!important;
}

.mp23-dark{
  width:100%!important;margin:0!important;padding:0!important;
  background:#071326!important;color:#fff!important;
  border:0!important;border-radius:0!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
}
.mp23-footer{
  margin:0!important;padding:0!important;background:transparent!important;
  color:#fff!important;border:0!important;display:block!important;
}
.mp23-footer-grid{
  display:grid!important;
  grid-template-columns:1.35fr repeat(4,minmax(0,1fr))!important;
  gap:34px!important;padding:42px 0 38px!important;
  align-items:start!important;
}
.mp23-footer-about p{
  max-width:280px!important;margin:14px 0 0!important;
  color:#aeb8ca!important;font-size:13px!important;line-height:1.7!important;
}
.mp23-footer-title{
  margin:0 0 14px!important;color:#fff!important;
  font-size:12px!important;font-weight:900!important;
  letter-spacing:.05em!important;text-transform:uppercase!important;
}
.mp23-footer-links{
  display:grid!important;gap:10px!important;margin:0!important;padding:0!important;
}
.mp23-footer-links a{
  color:#c7cfdd!important;text-decoration:none!important;
  font-size:13px!important;line-height:1.45!important;
}
.mp23-footer-links a:hover{color:#fff!important}
.mp23-footer-bottom{
  padding:22px 0 28px!important;
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  gap:20px!important;border-top:1px solid rgba(255,255,255,.08)!important;
  color:#8f9bad!important;font-size:12px!important;
}

@media(max-width:900px){
  .mp23-container{width:min(1180px,calc(100% - 28px))!important}
  .mp23-nav{grid-template-columns:auto 1fr!important;gap:12px!important;min-height:68px!important}
  .mp23-nav-links{display:none!important}
  .mp23-nav-actions{gap:7px!important}
  .mp23-brand img{width:42px!important;height:42px!important}
  .mp23-btn{min-height:42px!important;padding:0 10px!important;font-size:12px!important}
  .mp23-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mp23-footer-about{grid-column:1/-1!important}
}
@media(max-width:560px){
  .mp23-container{width:calc(100% - 20px)!important}
  .mp23-nav{min-height:64px!important;gap:8px!important}
  .mp23-nav-actions{gap:6px!important}
  .mp23-primary{display:none!important}
  .mp23-login{min-height:40px!important;padding:0 9px!important;font-size:11px!important}
  .mp23-lang-slot .d2-language-trigger{
    width:48px!important;min-width:48px!important;height:40px!important;min-height:40px!important;
  }
  .mp23-lang-slot .d2-language-menu{top:45px!important}
  .mp23-footer-grid{grid-template-columns:1fr!important;gap:28px!important;padding-top:36px!important}
  .mp23-footer-about{grid-column:auto!important}
  .mp23-footer-bottom{flex-direction:column!important;align-items:flex-start!important}
}

/* V11.8.24 */
.mp23-footer-about{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important}
.mp23-footer-about .mp23-brand,.mp23-footer-about p{margin-left:auto!important;margin-right:auto!important}

/* D2_HEADER_FINANCE_V18 */
.d2-finance{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}.d2-finance-pill{box-sizing:border-box;min-width:112px;height:42px;padding:6px 10px;border:1px solid var(--d2-line)!important;border-radius:10px;background:#fff;box-shadow:0 3px 12px rgba(20,39,83,.035)}.d2-finance-pill small{display:block;margin:0!important;color:#667085!important;font-size:9px!important;line-height:1.05!important;white-space:nowrap}.d2-finance-pill b{display:block;margin-top:3px;color:#182230;font-size:12px;line-height:1.05;font-weight:750;white-space:nowrap}@media(max-width:1180px){.d2-finance-pill{min-width:96px;padding-left:8px;padding-right:8px}.d2-finance-pill small{font-size:8px!important}.d2-finance-pill b{font-size:11px}}@media(max-width:900px){.d2-finance{display:none!important}}
/* /D2_HEADER_FINANCE_V18 */

/* D2_I18N_EUROPE_ASIA_V22 */
.d2-language-menu{max-height:min(62vh,520px)!important;overflow-y:auto!important;overscroll-behavior:contain;min-width:220px}
.d2-flag-emoji{font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;width:24px;height:18px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.d2-language-option{gap:10px}
/* /D2_I18N_EUROPE_ASIA_V22 */

/* D2_FLAG_IMAGES_V35: real country flags for systems where regional-indicator emoji render as PT/NL/etc. */
.d2-flag-image{background:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.d2-flag-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}

/* Multipify wordmark */
.d2-brand{width:100%!important;gap:0!important}.d2-brand img{width:168px!important;height:48px!important;max-width:100%!important;object-fit:contain!important;object-position:left center!important;border-radius:0!important}.d2-brand span{display:none!important}


/* Home header logo override — exact selector */
.mp23-topbar .mp23-nav > .mp23-brand{
  width:150px!important;min-width:150px!important;max-width:150px!important;
  height:52px!important;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;overflow:visible!important
}
.mp23-topbar .mp23-nav > .mp23-brand > img{
  width:150px!important;min-width:150px!important;max-width:150px!important;
  height:52px!important;max-height:52px!important;object-fit:contain!important;
  object-position:left center!important;margin:0!important;padding:0!important;
  border-radius:0!important;transform:none!important
}
@media(max-width:700px){
  .mp23-topbar .mp23-nav > .mp23-brand{width:112px!important;min-width:112px!important;max-width:112px!important;height:44px!important}
  .mp23-topbar .mp23-nav > .mp23-brand > img{width:112px!important;min-width:112px!important;max-width:112px!important;height:44px!important;max-height:44px!important}
}


/* Connected-pages light/dark switch */
.d2-theme-toggle{box-sizing:border-box;height:42px;min-height:42px;padding:0 8px;display:flex;align-items:center;gap:6px;border:1px solid var(--d2-line,#dfe5ee);border-radius:10px;background:#fff;color:#344054;cursor:pointer;box-shadow:0 3px 12px rgba(20,39,83,.035)}.d2-theme-icon{font-size:14px}.d2-theme-track{position:relative;width:30px;height:17px;border-radius:999px;background:#cfd5df;transition:.2s}.d2-theme-track span{position:absolute;left:2px;top:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}.d2-theme-toggle[aria-pressed="true"] .d2-theme-track{background:#4f62f4}.d2-theme-toggle[aria-pressed="true"] .d2-theme-track span{transform:translateX(13px)}
html[data-d2-theme="dark"] body:has(.sidebar){color-scheme:dark;background:#0b1020!important;color:#edf2ff!important}html[data-d2-theme="dark"] body:has(.sidebar) .main{background:#0b1020!important;color:#edf2ff!important}html[data-d2-theme="dark"] body:has(.sidebar) .d2-page-head,html[data-d2-theme="dark"] body:has(.sidebar) .card,html[data-d2-theme="dark"] body:has(.sidebar) .panel,html[data-d2-theme="dark"] body:has(.sidebar) .section-card,html[data-d2-theme="dark"] body:has(.sidebar) .modal-content{background:#131a2b!important;color:#edf2ff!important;border-color:#27324a!important}html[data-d2-theme="dark"] body:has(.sidebar) .d2-page-head h1,html[data-d2-theme="dark"] body:has(.sidebar) h1,html[data-d2-theme="dark"] body:has(.sidebar) h2,html[data-d2-theme="dark"] body:has(.sidebar) h3{color:#edf2ff!important}html[data-d2-theme="dark"] body:has(.sidebar) .d2-page-head p,html[data-d2-theme="dark"] body:has(.sidebar) .subtitle,html[data-d2-theme="dark"] body:has(.sidebar) .muted{color:#98a2b3!important}html[data-d2-theme="dark"] body:has(.sidebar) input,html[data-d2-theme="dark"] body:has(.sidebar) select,html[data-d2-theme="dark"] body:has(.sidebar) textarea{background:#101727!important;color:#edf2ff!important;border-color:#33405b!important}html[data-d2-theme="dark"] body:has(.sidebar) .d2-round,html[data-d2-theme="dark"] body:has(.sidebar) .d2-language-trigger,html[data-d2-theme="dark"] body:has(.sidebar) .d2-language-menu,html[data-d2-theme="dark"] body:has(.sidebar) .d2-language-option,html[data-d2-theme="dark"] body:has(.sidebar) .d2-theme-toggle,html[data-d2-theme="dark"] body:has(.sidebar) .d2-finance-pill{background:#131a2b!important;color:#edf2ff!important;border-color:#33405b!important}html[data-d2-theme="dark"] body:has(.sidebar) .d2-language-option:hover,html[data-d2-theme="dark"] body:has(.sidebar) .d2-language-option.active{background:#202a40!important}html[data-d2-theme="dark"] body:has(.sidebar) table,html[data-d2-theme="dark"] body:has(.sidebar) th,html[data-d2-theme="dark"] body:has(.sidebar) td{border-color:#27324a!important}html[data-d2-theme="dark"] body:has(.sidebar) .sidebar{background:#080d18!important;border-color:#202a3d!important}
@media(max-width:600px){.d2-theme-toggle{height:40px;min-height:40px;padding:0 7px}.d2-theme-track{width:28px}}

/* V2 dark-mode hardening for connected pages with page-local light styles */
html[data-d2-theme="dark"] body:has(.sidebar) .section,
html[data-d2-theme="dark"] body:has(.sidebar) .box,
html[data-d2-theme="dark"] body:has(.sidebar) .widget,
html[data-d2-theme="dark"] body:has(.sidebar) .content-card,
html[data-d2-theme="dark"] body:has(.sidebar) .table-wrap,
html[data-d2-theme="dark"] body:has(.sidebar) .toolbar,
html[data-d2-theme="dark"] body:has(.sidebar) .filters,
html[data-d2-theme="dark"] body:has(.sidebar) .form-card,
html[data-d2-theme="dark"] body:has(.sidebar) .summary-card,
html[data-d2-theme="dark"] body:has(.sidebar) .stat-card {
  background:#131a2b !important;color:#edf2ff !important;border-color:#27324a !important;
}
html[data-d2-theme="dark"] body:has(.sidebar) button:not(.primary):not(.btn-primary):not(.danger):not(.d2-logout),
html[data-d2-theme="dark"] body:has(.sidebar) .btn:not(.primary):not(.btn-primary):not(.danger) {
  background:#202a40 !important;color:#edf2ff !important;border-color:#33405b !important;
}
html[data-d2-theme="dark"] body:has(.sidebar) thead,
html[data-d2-theme="dark"] body:has(.sidebar) tbody,
html[data-d2-theme="dark"] body:has(.sidebar) tr {background:transparent !important;color:#edf2ff !important;}
html[data-d2-theme="dark"] body:has(.sidebar) input::placeholder,
html[data-d2-theme="dark"] body:has(.sidebar) textarea::placeholder {color:#718096 !important;}

/* V11 theme reload + finance contrast */
html[data-d2-theme="dark"] body:has(.sidebar) .d2-finance-pill b,html.multipify-dark body:has(.sidebar) .d2-finance-pill b{color:#cbd5e1!important}
html[data-d2-theme="dark"] body:has(.sidebar) .d2-finance-pill small,html.multipify-dark body:has(.sidebar) .d2-finance-pill small{color:#94a3b8!important}

/* V15 — global dark surfaces audit (connected pages) */
html[data-d2-theme="dark"] body:has(.sidebar),
html.multipify-dark body:has(.sidebar){
  --bg:#0b1220!important;
  --card:#111c2e!important;
  --text:#e8eef8!important;
  --muted:#93a3b8!important;
  --line:#27364e!important;
}

/* Surfaces detected dynamically by design2-shell.js. This catches page-local
   #fff/#fafbfe blocks without changing the original light-theme CSS. */
html[data-d2-theme="dark"] body:has(.sidebar) .d2-dark-auto-surface,
html.multipify-dark body:has(.sidebar) .d2-dark-auto-surface{
  background:#111c2e!important;
  background-color:#111c2e!important;
  color:#e8eef8!important;
  border-color:#27364e!important;
  box-shadow:none!important;
}
html[data-d2-theme="dark"] body:has(.sidebar) .d2-dark-auto-surface-soft,
html.multipify-dark body:has(.sidebar) .d2-dark-auto-surface-soft{
  background:#152238!important;
  background-color:#152238!important;
  color:#e8eef8!important;
  border-color:#31415b!important;
}

/* Messagerie clients */
html[data-d2-theme="dark"] body:has(.sidebar) :is(
  .messages,.statusbar,.msg-settings-panel,.msg-setting-card,.product-card,
  .chatHead,.composer,.conv,.tools,.filter,.list
),
html.multipify-dark body:has(.sidebar) :is(
  .messages,.statusbar,.msg-settings-panel,.msg-setting-card,.product-card,
  .chatHead,.composer,.conv,.tools,.filter,.list
){background:#111c2e!important;color:#e8eef8!important;border-color:#27364e!important}
html[data-d2-theme="dark"] body:has(.sidebar) :is(.conv:hover,.conv.active,.filter button.active,.channel.active),
html.multipify-dark body:has(.sidebar) :is(.conv:hover,.conv.active,.filter button.active,.channel.active){
  background:#1b2942!important;color:#dbe7ff!important;border-color:#3b4c6b!important;
}
html[data-d2-theme="dark"] body:has(.sidebar) :is(.bubble,.channel,.filter button,.msg-setting-logo,.market-logo,.product-card img),
html.multipify-dark body:has(.sidebar) :is(.bubble,.channel,.filter button,.msg-setting-logo,.market-logo,.product-card img){
  background:#152238!important;color:#e8eef8!important;border-color:#31415b!important;
}
html[data-d2-theme="dark"] body:has(.sidebar) .out .bubble,
html.multipify-dark body:has(.sidebar) .out .bubble{background:#315dfb!important;color:#fff!important;border-color:#315dfb!important}

/* Frequently used legacy light blocks across connected pages. */
html[data-d2-theme="dark"] body:has(.sidebar) :is(
  .pool-item,.profile-source-card,.profile-catalog-status,.image-box,.sync-row,
  .status-card,.log-card,.videoia-card,.videoia-provider,.videoia-btn,.cat-btn,
  .pcard,.supplier-mini,.supplier-hero,.supplier-hero-logo,.stat,.product,
  .summary-card,.connection-card,.recipient-line,.editor,.attachment,.signature,
  .thumb,.variant-btn,.supplier-head,.fact,.description,.message,.mini-icon
),
html.multipify-dark body:has(.sidebar) :is(
  .pool-item,.profile-source-card,.profile-catalog-status,.image-box,.sync-row,
  .status-card,.log-card,.videoia-card,.videoia-provider,.videoia-btn,.cat-btn,
  .pcard,.supplier-mini,.supplier-hero,.supplier-hero-logo,.stat,.product,
  .summary-card,.connection-card,.recipient-line,.editor,.attachment,.signature,
  .thumb,.variant-btn,.supplier-head,.fact,.description,.message,.mini-icon
){background:#111c2e!important;color:#e8eef8!important;border-color:#27364e!important}

/* Keep semantic state chips readable rather than turning them into white cards. */
html[data-d2-theme="dark"] body:has(.sidebar) :is(.badge,.msg-setting-status,.success,.warning,.error,.danger,.on,.off),
html.multipify-dark body:has(.sidebar) :is(.badge,.msg-setting-status,.success,.warning,.error,.danger,.on,.off){box-shadow:none!important}

/* V72 — sidebar uniforme sur toutes les pages */
body .sidebar .nav{gap:3px!important;row-gap:3px!important}
body .sidebar .nav a,body .sidebar .nav .menu-item,body .sidebar .d2-nav-group-trigger{min-height:42px!important;height:42px!important;padding:8px 12px!important;margin:0!important;border-radius:10px!important}
body .sidebar .d2-nav-group{margin:0!important;padding:0!important}
html[data-d2-theme="dark"] body:has(.sidebar) .stores .store{background:#131a2b!important;color:#edf2ff!important;border-color:#33405b!important}
html[data-d2-theme="dark"] body:has(.sidebar) .stores .store.active{background:#315dfb!important;color:#fff!important}

/* V73 — sidebar vendeur canonique : mêmes dimensions/espacements que import-web.html */
body .sidebar{
  position:fixed!important;inset:0 auto 0 0!important;width:250px!important;min-width:250px!important;
  height:100vh!important;padding:24px 16px!important;overflow-y:auto!important;background:#111827!important;
  color:#fff!important;z-index:1000!important;display:block!important;box-sizing:border-box!important;
}
body .sidebar .logo{padding:8px 12px 24px!important;margin:0!important;border-bottom:0!important}
body .sidebar .nav{display:flex!important;flex-direction:column!important;gap:6px!important;row-gap:6px!important;margin:0!important;padding:0!important}
body .sidebar .nav a,body .sidebar .nav .menu-item,body .sidebar .d2-nav-group-trigger{
  display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;
  min-height:46px!important;height:46px!important;padding:11px 13px!important;margin:0!important;
  border:0!important;border-radius:9px!important;background:transparent!important;color:#d1d5db!important;
  text-decoration:none!important;text-align:left!important;font-size:15px!important;font-weight:600!important;
  line-height:24px!important;box-sizing:border-box!important;box-shadow:none!important;
}
body .sidebar .nav a:hover,body .sidebar .d2-nav-group-trigger:hover{background:#1f2937!important;color:#fff!important}
body .sidebar .nav a.active,body .sidebar .nav .menu-item.active{background:#315dfb!important;color:#fff!important;font-weight:700!important;box-shadow:none!important}
body .sidebar .menu-icon{width:22px!important;min-width:22px!important;flex:0 0 22px!important;height:22px!important}
body .sidebar .d2-nav-group{margin:0!important;padding:0!important}
body .main{margin-left:250px!important}
@media(max-width:900px){body .sidebar{display:none!important}body .main{margin-left:0!important}}
