/* DjimlyStore Employee OS v1.5.32 — Shared dashboard contrast authority.
   Applies to all authenticated roles, not public pages, career flows, modals or
   dark promotional hero artwork. Loaded AFTER legacy inline CSS to prevent
   a dark header background with dark text on iOS Safari. */
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out){
  --deos32-ink:#101828;--deos32-muted:#475467;--deos32-blue:#175cd3;
  --deos32-line:#dbe6f3;--deos32-paper:#ffffff;
}
/* ---- Authenticated shared header: all role dashboards ---- */
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top{
  background:#f5f7fb!important;background-image:none!important;
  color:var(--deos32-ink)!important;border:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top > .deos-top-inner{
  background:linear-gradient(135deg,#ffffff 0%,#f4f8ff 100%)!important;
  background-color:#fff!important;color:var(--deos32-ink)!important;
  border:1px solid var(--deos32-line)!important;
  box-shadow:0 9px 25px rgba(18,52,105,.08)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top :is(#deosHeaderTitle,.deos-brand-text b,#deosName,.deos-user-copy strong){
  color:var(--deos32-ink)!important;-webkit-text-fill-color:var(--deos32-ink)!important;
  opacity:1!important;text-shadow:none!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top :is(#deosHeaderSubtitle,.deos-brand-text small,#deosRole,.deos-user-copy small){
  color:var(--deos32-muted)!important;-webkit-text-fill-color:var(--deos32-muted)!important;
  opacity:1!important;text-shadow:none!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top .deos-notification-btn{
  background:#fff!important;background-image:none!important;border:1px solid var(--deos32-line)!important;
  color:var(--deos32-ink)!important;-webkit-text-fill-color:var(--deos32-ink)!important;
  box-shadow:0 5px 14px rgba(16,24,40,.06)!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top :is(.deos-header-svg,.deos-notification-btn svg){
  color:var(--deos32-ink)!important;stroke:currentColor!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top .deos-user-id{
  background:#f5f8ff!important;background-image:none!important;
  border:1px solid var(--deos32-line)!important;box-shadow:none!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top .deos-avatar{
  background:#eaf2ff!important;background-image:none!important;border:1px solid #c6dcff!important;
  color:var(--deos32-blue)!important;-webkit-text-fill-color:var(--deos32-blue)!important;
  box-shadow:none!important;
}
/* Notification count must remain white-on-red, even when the surrounding
   notification bell is black-on-white. */
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top #deosNotificationCount{
  background:#ed2146!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
/* Keep any visible shared header sign-in or primary button white-on-blue. */
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top :is(.deos-btn-gold,[data-action="go-login"]){
  background:linear-gradient(135deg,#0a84ff,#175cd3)!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border:0!important;
}
html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top .deos-btn-dark{
  background:#fff!important;color:var(--deos32-ink)!important;
  -webkit-text-fill-color:var(--deos32-ink)!important;border:1px solid var(--deos32-line)!important;
}
/* ---- Shared light dashboard panels and buttons ----
   Only known base components. Role-specific banners/hero artwork retain their
   own color systems and are deliberately NOT forced to white. */
html body #deosApp:not(.deos-public-mode) #deosDash :is(.deos-panel-title,.deos-task-title){
  color:#101828!important;-webkit-text-fill-color:#101828!important;
}
html body #deosApp:not(.deos-public-mode) #deosDash .deos-panel :is(.deos-text,.deos-label){
  color:#475467!important;-webkit-text-fill-color:#475467!important;
}
html body #deosApp:not(.deos-public-mode) #deosDash :is(.deos-btn-gold,button.deos-btn-gold){
  background:linear-gradient(135deg,#0a84ff,#175cd3)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  border:0!important;box-shadow:0 10px 22px rgba(23,92,211,.18)!important;
}
html body #deosApp:not(.deos-public-mode) #deosDash .deos-btn-gold :is(span,b,strong,small,svg){
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
/* iOS may carry black -webkit-text-fill-color from old inline dark controls,
   so explicitly reset proven blue-gradient inline CTAs without touching
   white ghost buttons or yellow/orange warning actions. */
html body #deosApp:not(.deos-public-mode) #deosDash button[style*="background:linear-gradient(135deg,#0a84ff"],
html body #deosApp:not(.deos-public-mode) #deosDash button[style*="background:linear-gradient(135deg,#175cd3"],
html body #deosApp:not(.deos-public-mode) #deosDash button[style*="background:linear-gradient(90deg,#0a84ff"]{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html body #deosApp:not(.deos-public-mode) #deosDash button[style*="background:linear-gradient(135deg,#0a84ff"] :is(span,b,strong,small),
html body #deosApp:not(.deos-public-mode) #deosDash button[style*="background:linear-gradient(135deg,#175cd3"] :is(span,b,strong,small){
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
/* Keep light cards readable on all standard role pages, while intentionally
   leaving image heroes, task status badges and dark modal sheets untouched. */
html body #deosApp:not(.deos-public-mode) #deosDash :is(.deos-card,.deos-panel,.deos-task){
  color:#101828!important;
}
html body #deosApp:not(.deos-public-mode) #deosDash :is(.deos-input,.deos-select,.deos-textarea){
  background:#fff!important;color:#101828!important;-webkit-text-fill-color:#101828!important;
  border-color:#c7d4e5!important;
}
html body #deosApp:not(.deos-public-mode) #deosDash :is(.deos-input,.deos-select,.deos-textarea):focus-visible,
html body #deosApp:not(.deos-public-mode) #deosDash button:focus-visible{
  outline:3px solid rgba(23,92,211,.30)!important;outline-offset:2px!important;
}
/* ---- Shared demo banner (all read-only roles) ---- */
html body #deosApp.deos-demo-mode:not(.deos-public-mode) .deos-demo-banner{
  background:linear-gradient(135deg,#fff,#eff6ff)!important;
  border-color:#c4ddfc!important;color:#101828!important;
  box-shadow:0 8px 24px rgba(16,24,40,.06)!important;
}
html body #deosApp.deos-demo-mode:not(.deos-public-mode) .deos-demo-banner b{
  color:#101828!important;-webkit-text-fill-color:#101828!important;
}
html body #deosApp.deos-demo-mode:not(.deos-public-mode) .deos-demo-banner small{
  color:#475467!important;-webkit-text-fill-color:#475467!important;
}
html body #deosApp.deos-demo-mode:not(.deos-public-mode) .deos-demo-banner button{
  background:#0b2234!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
/* ---- Standalone delivery role navigation: preserve its dark app body,
   but make its navigation bars the same clear white header across roles. ---- */
html body #deosApp:not(.deos-public-mode) #livreurApp .lv-navbar{
  background:rgba(255,255,255,.97)!important;border-bottom:1px solid #dbe6f3!important;
  box-shadow:0 8px 20px rgba(16,24,40,.08)!important;
}
html body #deosApp:not(.deos-public-mode) #livreurApp .lv-navbar-title{
  color:#101828!important;-webkit-text-fill-color:#101828!important;
}
html body #deosApp:not(.deos-public-mode) #livreurApp .lv-navbar-back{
  color:#175cd3!important;-webkit-text-fill-color:#175cd3!important;
}
/* Label/icon spacing remains responsive; keep the existing mobile dock and
   desktop sidebar clickable rather than introducing a new overlay. */
@media(max-width:720px){
  html body #deosApp:not(.deos-public-mode):not(.deos-logged-out) > .deos-top > .deos-top-inner{
    border-radius:0 0 22px 22px!important;
  }
  html body #deosApp:not(.deos-public-mode) #deosDash .deos-btn-gold{
    min-height:46px!important;
  }
}
