/* E-My Core — V441 UI layer (V440 shell + V441 buttons/motion/depth)
   Loaded last (after app.js-injected styles via !important where legacy layers fight).
   Refinement of the existing identity: navy + teal, Arabic-first, operate-mode calm.
   Principles: one type family, readable floor (12px+), one radius scale, one shadow scale,
   light page headers everywhere, instant press feedback, visible focus, reduced-motion. */

@font-face{font-family:"Cairo";src:url(../fonts/cairo-v441.woff2) format("woff2");font-weight:200 1000;font-style:normal;font-display:swap}

:root{
  --ui-font:"Cairo",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;
  --ui-bg:#f3f6f9;
  --ui-surface:#ffffff;
  --ui-surface-2:#f6f8fb;
  --ui-surface-3:#eef3f7;
  --ui-line:#e2e8ee;
  --ui-line-strong:#cfd9e2;
  --ui-ink:#0e2a40;
  --ui-ink-2:#2c4459;
  --ui-muted:#5d6f80;
  --ui-faint:#8696a5;
  --ui-brand:#0b3a5b;
  --ui-brand-2:#0a5a73;
  --ui-accent:#0b7f78;
  --ui-accent-soft:#e7f4f2;
  --ui-focus:0 0 0 3px rgba(11,127,120,.28);
  --ui-r-sm:8px;
  --ui-r-md:12px;
  --ui-r-lg:16px;
  --ui-shadow-sm:0 1px 2px rgba(14,42,64,.05),0 1px 1px rgba(14,42,64,.03);
  --ui-shadow-md:0 1px 2px rgba(14,42,64,.05),0 8px 24px rgba(14,42,64,.07);
  --ui-shadow-lg:0 2px 6px rgba(14,42,64,.06),0 22px 48px rgba(14,42,64,.14);
  --ui-ease:cubic-bezier(.2,.8,.2,1);
  /* legacy tokens re-pointed so old layers inherit the new values */
  --bg:var(--ui-bg);--line:var(--ui-line);--ink:var(--ui-ink);--muted:var(--ui-muted);
  --shadow:var(--ui-shadow-md);--radius:var(--ui-r-md);
  --osos-border:var(--ui-line);--osos-border-strong:var(--ui-line-strong);
  --osos-text:var(--ui-ink);--osos-text-soft:var(--ui-muted);
  --osos-shadow-sm:var(--ui-shadow-sm);--osos-shadow-md:var(--ui-shadow-md);
}

/* ---------- Type ---------- */
html body,html body *{
  font-family:var(--ui-font)!important;
}
html body{background:var(--ui-bg)!important;color:var(--ui-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* Arabic letters disconnect when letter-spacing is not zero */
html body *{letter-spacing:normal!important}
html body em{font-style:normal}
html body :is(td,th,strong,b,.kpi-value,[class*="amount"],[class*="value"],[class*="total"]){font-variant-numeric:tabular-nums}
html body :is(h1,h2){line-height:1.3}
html body p{line-height:1.7}

/* ---------- App bar: solid navy material, slimmer ---------- */
html body header.topbar.emycore-appbar{
  height:auto!important;min-height:64px!important;
  background:rgba(9,40,63,.94)!important;
  -webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px);
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 6px 20px rgba(9,40,63,.18)!important;
  border:0!important;
}
html body header.topbar .emycore-appbar-inner{min-height:64px!important;height:64px!important;padding-block:0!important}
html body header.topbar .emycore-brand-lockup{height:48px!important;padding:0!important}
html body header.topbar .emycore-brand-wordmark{height:46px!important;width:auto!important;max-height:46px!important}
html body header.topbar #emyCoreRouteTitle{font-size:15px!important;font-weight:600!important}
html body header.topbar #emyCoreRouteEyebrow{font-size:12px!important;opacity:.7}
html body header.topbar .emycore-current-route-icon{width:34px!important;height:34px!important;border-radius:10px!important}
html body header.topbar :is(.emycore-menu-button,.emycore-profile-button){border-radius:12px!important;min-height:42px!important}
@media (prefers-reduced-transparency:reduce){html body header.topbar.emycore-appbar{background:#09283f!important;backdrop-filter:none!important}}

/* ---------- Page width & rhythm ---------- */
html body .page-shell{padding-top:24px!important}

/* ---------- Legacy dark hero banners → light page headers (same as the new pages) ---------- */
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero){
  background:linear-gradient(90deg,var(--ui-accent),var(--ui-brand) 55%,#2a5c8a) top/100% 3px no-repeat,linear-gradient(180deg,#fff,#fbfdfe)!important;
  position:relative;isolation:isolate;
  color:var(--ui-ink)!important;
  border:1px solid var(--ui-line)!important;border-radius:var(--ui-r-lg)!important;
  box-shadow:var(--ui-shadow-sm)!important;
  min-height:0!important;padding:22px 24px!important;overflow:hidden;
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero)::before{display:none!important}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(h1,h2,h3){
  color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important;background:none!important;
  font-size:26px!important;font-weight:700!important;line-height:1.3!important;margin-bottom:6px!important;text-shadow:none!important
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) p{
  color:var(--ui-muted)!important;font-size:14px!important;max-width:72ch
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(small,em){
  color:var(--ui-muted)!important;font-size:12.5px!important;font-weight:500!important
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) strong{
  color:var(--ui-ink)!important;font-weight:700!important
}
/* stat tiles inside the headers */
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(div,article):has(> small){
  background:var(--ui-surface-2)!important;background-image:none!important;
  border:1px solid var(--ui-line)!important;border-radius:var(--ui-r-md)!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(div,article):has(> small) strong{font-size:17px!important}
/* chips / eyebrows */
html body :is(.suppliers-v2-hero,.branch-network-hero) span:not(:has(svg)):not(:empty):is([class*="eyebrow"],:not([class])){
  background:var(--ui-surface-3)!important;color:var(--ui-ink-2)!important;border-color:var(--ui-line)!important;font-size:12.5px!important
}
html body .employee-hero .emycore-title-icon{background:var(--ui-accent-soft)!important}
/* header buttons: one primary, the rest outline */
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(button,a)[class]{
  background:var(--ui-surface)!important;background-image:none!important;color:var(--ui-ink-2)!important;
  border:1px solid var(--ui-line-strong)!important;box-shadow:none!important;
  border-radius:10px!important;font-size:13.5px!important;font-weight:600!important;min-height:38px
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(button,a)[class] svg{color:currentColor!important}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(.bank-executive-action:not(.is-secondary),.df-action.is-primary,.employee-action.is-primary,.ali-custody-btn.is-gold)[class]{
  background:var(--ui-brand)!important;color:#fff!important;border-color:var(--ui-brand)!important
}

/* ---------- Surfaces: one radius & shadow scale ---------- */
html body :is(.panel,.kpi-card,.summary-card,.account-card,.audit-card,.toolbar,.employee-panel){
  border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow-sm)!important
}

/* ---------- Grid blowout: a wide table must scroll, not push the page ---------- */
html body .employee-center{grid-template-columns:minmax(0,1fr)!important}

/* ---------- Header text left in legacy white-on-dark tones ---------- */
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(span,div,b,i,label,time):not(button *):not(a *){color:inherit!important}

/* ---------- Grids that orphaned a card ---------- */
@media (min-width:1100px){html body .employee-summary{grid-template-columns:repeat(5,minmax(0,1fr))!important}}

/* ---------- Tables ---------- */
html body table th{color:var(--ui-muted)!important;font-weight:600!important}
html body table :is(td,th){border-color:var(--ui-line)!important}
html body table tbody tr{transition:background-color .12s ease}
html body table tbody tr:hover > td{background-color:rgba(11,127,120,.035)}

/* ---------- Form controls ---------- */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){
  border-color:var(--ui-line-strong);border-radius:10px;color:var(--ui-ink)
}
html body :is(input,select,textarea):focus-visible{outline:none!important;box-shadow:var(--ui-focus)!important;border-color:var(--ui-accent)!important}
html body :is(input,select,textarea)::placeholder{color:var(--ui-faint)}

/* ---------- Press feedback & focus (Apple: respond on press, instantly) ---------- */
html body :is(button,[role=button],a.df-action,.quick-btn){-webkit-tap-highlight-color:transparent}
html body :is(button,[role=button]):not(:disabled):active{transform:scale(.97);transition:transform 90ms var(--ui-ease)!important}
html body :is(button,a,[role=button],[tabindex]):focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
html body :is(.kpi-card,.quick-btn,.audit-card):hover{transform:none!important}

/* ---------- Drawer: material, spring-like ease ---------- */
html body .drawer-panel{box-shadow:var(--ui-shadow-lg)!important;transition:transform .32s var(--ui-ease)!important}
html body .drawer-overlay{background:rgba(9,40,63,.38)!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}

/* ---------- Scrollbars ---------- */
html{scrollbar-color:#c3cfd9 transparent}
html body ::-webkit-scrollbar{width:10px;height:10px}
html body ::-webkit-scrollbar-thumb{background:#c9d4dd;border-radius:10px;border:2px solid var(--ui-bg)}
html body ::-webkit-scrollbar-track{background:transparent}

/* ---------- Selection ---------- */
html body ::selection{background:rgba(11,127,120,.18)}


/* =====================================================================
   V441 — depth, buttons, motion
   ===================================================================== */

/* Canvas: a quiet brand light falling from the top of the page */
html body{
  background:
    radial-gradient(1100px 420px at 88% -160px,rgba(11,127,120,.10),transparent 62%),
    radial-gradient(900px 380px at 8% -180px,rgba(11,58,91,.10),transparent 60%),
    var(--ui-bg)!important;
  background-repeat:no-repeat!important;
}

/* Page headers: dot texture fading in from the far side */
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero)::after{
  content:""!important;display:block!important;position:absolute!important;z-index:-1;
  inset:0 auto 0 0!important;width:38%!important;height:auto!important;
  background:radial-gradient(rgba(11,58,91,.16) 1px,transparent 1.4px) 0 0/14px 14px!important;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 100%);mask-image:linear-gradient(90deg,#000 0%,transparent 100%);
  opacity:.9;pointer-events:none;border-radius:inherit;transform:none!important;filter:none!important;animation:none!important
}
html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(h1,h2,h3){font-size:28px!important;font-weight:800!important}

/* ---------- Button system (tagged by emy-ui-v441.js) ---------- */
html body .ui-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:36px;border-radius:11px!important;font-weight:700!important;
  transition:background .18s var(--ui-ease),box-shadow .2s var(--ui-ease),transform .14s var(--ui-ease),border-color .18s,color .18s!important;
  text-decoration:none!important;cursor:pointer;
}
html body .ui-btn svg{flex:none}
html body .ui-btn.ui-btn--primary{
  background:linear-gradient(180deg,#16618a 0%,#0b3a5b 100%)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #0a3452!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(11,58,91,.28),0 10px 20px -10px rgba(11,58,91,.65)!important;
}
html body .ui-btn.ui-btn--primary svg{color:#fff!important;stroke:currentColor}
html body .ui-btn.ui-btn--primary:hover:not(:disabled){
  background:linear-gradient(180deg,#1a72a1 0%,#0d4469 100%)!important;transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 2px 4px rgba(11,58,91,.25),0 16px 28px -12px rgba(11,58,91,.7)!important;
}
html body .ui-btn.ui-btn--secondary{
  background:#fff!important;color:#1d3b52!important;-webkit-text-fill-color:#1d3b52!important;
  border:1px solid #d3dde6!important;box-shadow:0 1px 2px rgba(14,42,64,.06),inset 0 -1px 0 rgba(14,42,64,.04)!important;
}
html body .ui-btn.ui-btn--secondary svg{color:#0b7f78!important}
html body .ui-btn.ui-btn--secondary:hover:not(:disabled){
  border-color:#0b7f78!important;color:#0a6b65!important;-webkit-text-fill-color:#0a6b65!important;background:#f2fbf9!important;
  transform:translateY(-1px);box-shadow:0 6px 14px -8px rgba(11,127,120,.45)!important;
}
html body .ui-btn.ui-btn--danger{
  background:#fff!important;color:#b42828!important;-webkit-text-fill-color:#b42828!important;border:1px solid #f0cdcd!important;box-shadow:none!important
}
html body .ui-btn.ui-btn--danger:hover:not(:disabled){background:#fdf1f1!important;border-color:#e3a4a4!important}
html body .ui-btn.ui-btn--chip{
  border-radius:999px!important;min-height:34px;background:#fff!important;color:#34536a!important;-webkit-text-fill-color:#34536a!important;
  border:1px solid #d9e3ea!important;box-shadow:0 1px 1px rgba(14,42,64,.04)!important;font-weight:600!important
}
html body .ui-btn.ui-btn--chip:hover:not(:disabled){background:#f1f7f9!important;border-color:#b9cbd7!important}
html body .ui-btn.ui-btn--chip-on{
  border-radius:999px!important;min-height:34px;background:linear-gradient(180deg,#145a80,#0b3a5b)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  border:1px solid #0a3452!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 6px 14px -8px rgba(11,58,91,.7)!important
}
html body .ui-btn:active:not(:disabled){transform:translateY(0) scale(.97)!important;transition-duration:.08s!important}
html body .ui-btn:disabled,html body .ui-btn[aria-disabled=true]{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}

/* ---------- Cards: lift on hover where they are clickable ---------- */
html body :is(.kpi-card,.audit-card,.eh-kpi,.eh-branch,.eh-alert,.suppliers-v2-card,.bank-workbench-card,.v-count,.account-card,.quick-btn){
  transition:transform .22s var(--ui-ease),box-shadow .22s var(--ui-ease),border-color .2s!important
}
html body :is(.audit-card,.eh-alert,.eh-branch,.suppliers-v2-card,.bank-workbench-card,.v-count,.account-card):hover{
  transform:translateY(-2px)!important;box-shadow:0 2px 4px rgba(14,42,64,.05),0 18px 36px -16px rgba(14,42,64,.28)!important;border-color:#cfdbe4!important
}

/* ---------- Tables: calmer header, row marker on hover ---------- */
html body table thead th{background-color:#f6f9fb;font-size:12.5px!important}
html body table tbody tr:hover > td:first-child{box-shadow:inset -3px 0 0 var(--ui-accent)}

/* ---------- Inputs: soft fill, crisp focus ---------- */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){background-color:#fbfcfd}
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea):hover{border-color:#b9c8d4}
html body input:is([type=checkbox],[type=radio]){accent-color:var(--ui-accent)}

/* ---------- Drawer menu ---------- */
html body .drawer-panel{border-radius:20px 0 0 20px}
html body .drawer-menu button{border-radius:12px!important;transition:background .15s,color .15s,padding .2s var(--ui-ease)!important}
html body .drawer-menu button:hover{background:#f0f6f8!important;color:var(--ui-brand)!important;padding-inline-start:14px!important}

/* ---------- Page entrance (route change only) ---------- */
@keyframes uiRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
html body .subview.ui-enter > *:not([hidden]),
html body .subview.ui-enter > * > *:not([hidden]):not(:only-child){animation:uiRise .5s var(--ui-ease) both}
html body .subview.ui-enter > *:nth-child(2),html body .subview.ui-enter > * > *:nth-child(2){animation-delay:.05s}
html body .subview.ui-enter > *:nth-child(3),html body .subview.ui-enter > * > *:nth-child(3){animation-delay:.1s}
html body .subview.ui-enter > *:nth-child(4),html body .subview.ui-enter > * > *:nth-child(4){animation-delay:.15s}
html body .subview.ui-enter > *:nth-child(n+5),html body .subview.ui-enter > * > *:nth-child(n+5){animation-delay:.2s}

/* ---------- Login ---------- */
html body .emy-login-brand img{filter:drop-shadow(0 10px 18px rgba(11,58,91,.25))}


/* =====================================================================
   V441 — persistent sidebar on wide screens (the drawer becomes the app's navigation)
   ===================================================================== */
@media (min-width:1360px){
  html.ui-has-sidebar body #openDrawer{display:none!important}
  html.ui-has-sidebar body .drawer{
    visibility:visible!important;position:fixed!important;inset:64px 0 0 auto!important;width:272px!important;z-index:25!important;pointer-events:auto!important;opacity:1!important
  }
  html.ui-has-sidebar body .drawer-overlay{display:none!important}
  html.ui-has-sidebar body .drawer-panel{
    position:absolute!important;inset:0!important;width:auto!important;transform:none!important;border-radius:0!important;pointer-events:auto!important;visibility:visible!important;opacity:1!important;
    background:linear-gradient(180deg,#0c3150 0%,#0a263d 60%,#09213a 100%)!important;color:#fff!important;
    padding:16px 12px 24px!important;overflow-y:auto!important;box-shadow:inset 1px 0 0 rgba(255,255,255,.05)!important;
    scrollbar-color:rgba(255,255,255,.18) transparent;transition:none!important
  }
  html.ui-has-sidebar body .drawer-panel::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-color:transparent}
  html.ui-has-sidebar body .drawer-panel :is(#closeDrawer,.drawer-brand,.emycore-drawer-footer-v378){display:none!important}
  html.ui-has-sidebar body .app > main.page-shell{margin-inline-start:272px!important;margin-inline-end:0!important;width:auto!important;min-width:0!important;max-width:none!important;padding-inline:32px!important}

  /* search */
  html.ui-has-sidebar body .emycore-drawer-search-v378{margin:0 0 14px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
  html.ui-has-sidebar body .emycore-drawer-search-field-v378{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:12px!important;box-shadow:none!important;color:#fff!important}
  html.ui-has-sidebar body .emycore-drawer-search-field-v378 input{background:transparent!important;color:#fff!important;border:0!important;box-shadow:none!important}
  html.ui-has-sidebar body .emycore-drawer-search-field-v378 input::placeholder{color:rgba(255,255,255,.5)!important}
  html.ui-has-sidebar body .emycore-drawer-search-field-v378 svg{color:rgba(255,255,255,.55)!important}

  /* groups → quiet section labels */
  html.ui-has-sidebar body .drawer-menu{margin-top:0!important;gap:6px!important}
  html.ui-has-sidebar body .emycore-drawer-group-v378{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important}
  html.ui-has-sidebar body .emycore-drawer-group-head-v378{background:none!important;border:0!important;padding:8px 12px 6px!important;min-height:0!important}
  html.ui-has-sidebar body .emycore-drawer-group-head-v378 :is(strong,b,h3,h4,span,div){color:rgba(255,255,255,.46)!important;-webkit-text-fill-color:rgba(255,255,255,.46)!important;font-size:12px!important;font-weight:700!important}
  html.ui-has-sidebar body .emycore-drawer-group-head-v378 :is(small,p){display:none!important}
  html.ui-has-sidebar body .emycore-drawer-group-head-v378 > b{display:none!important}
  html.ui-has-sidebar body .emycore-drawer-group-items-v378{display:flex!important;flex-direction:column!important;gap:2px!important;padding:0!important;background:none!important;border:0!important}

  /* items */
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;
    width:100%!important;min-height:40px!important;padding:8px 12px!important;margin:0!important;
    background:transparent!important;border:0!important;border-radius:10px!important;box-shadow:none!important;
    color:rgba(255,255,255,.78)!important;-webkit-text-fill-color:rgba(255,255,255,.78)!important;
    font-size:14px!important;font-weight:600!important;text-align:right!important;position:relative;
    transition:background .15s ease,color .15s ease!important;transform:none!important
  }
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button *{color:inherit!important;-webkit-text-fill-color:inherit!important;font-size:inherit!important;white-space:nowrap}
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button svg{width:18px!important;height:18px!important;color:#5fd0bf!important;opacity:.85;flex:none}
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button:hover{background:rgba(255,255,255,.07)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button.ui-nav-active{
    background:linear-gradient(270deg,rgba(95,208,191,.20),rgba(95,208,191,.06))!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
    box-shadow:inset -3px 0 0 #5fd0bf!important
  }
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button.ui-nav-active svg{opacity:1;color:#7ee6d6!important}
  html.ui-has-sidebar body .emycore-drawer-group-items-v378 button :is(.badge,[class*="badge"],[class*="count"]){
    margin-inline-start:auto!important;background:#e5484d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:11.5px!important;border-radius:999px!important;padding:1px 8px!important;min-width:22px;text-align:center
  }
}

/* sidebar layout: dense grids get room */
@media (min-width:1360px) and (max-width:1820px){
  html.ui-has-sidebar body .df-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html.ui-has-sidebar body .section-range-command{grid-template-columns:minmax(220px,1fr) auto!important}
  html.ui-has-sidebar body .section-range-command > .section-range-fields{grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(180px,230px)) auto!important;justify-content:start!important;width:auto!important}
  html.ui-has-sidebar body .section-range-field{width:auto!important;grid-template-columns:minmax(0,1fr)!important}
}

/* ---------- Mobile ---------- */
@media (max-width:760px){
  html body header.topbar .emycore-appbar-inner{height:56px!important;min-height:56px!important}
  html body header.topbar.emycore-appbar{min-height:56px!important}
  html body header.topbar .emycore-brand-wordmark{height:34px!important;max-height:34px!important}
  html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero){padding:16px!important;border-radius:var(--ui-r-md)!important}
  html body :is(.bank-executive-overview,.ali-custody-hero,.df-hero,.branch-network-hero,.suppliers-v2-hero,.employee-hero,.cash-studio-hero,.ososp-premium-hero,.vision-center-hero) :is(h1,h2,h3){font-size:21px!important}
  html body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px} /* stop iOS zoom-on-focus */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* V443 — نوع مطالبة عهدة علي */
.ali-type-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#e0f2fe;color:#075985;margin-inline-end:4px;vertical-align:middle}
.ali-type-badge.is-cash{background:#fef3c7;color:#92400e}
[data-ali-panel="cash"] .ali-custody-table td.num,[data-ali-panel="cash"] .ali-custody-table th.num{text-align:left;font-variant-numeric:tabular-nums;direction:ltr}
[data-ali-panel="cash"] .ali-custody-table th,[data-ali-panel="cash"] .ali-custody-table td{padding:9px 10px;border-bottom:1px solid #e2e8f0;text-align:right}
[data-ali-panel="cash"] .ali-custody-table tfoot th{background:#f8fafc;font-weight:800}

/* V445 — إخفاء الملاحظات الشارحة في كل الموقع (طلب المالك) */
.eh-note,.r-warn,.df-note.is-info,.supplier-v2-safe-note,.ali-custody-note,.loyalty-points-note,.employee-history-note,
.supplier-profile-note,.suppliers-v2-report-studio-footnote-v302,.supplier-upload-note,.unified-review-delete-note,
.statement-reader-form-note,.supplier-classification-manager-note,.branch-report-note,.cash-studio-alert.is-note,
.shared-docs-storage-note,p.note{display:none!important}
