/* =====================================================================
   Enjaz admin theme  (v3)
   - SHAPE comes from the restyle: compact controls, rounded cards,
     hairlines, IBM Plex Sans Arabic, spacing.
   - COLOUR stays the app's own: template and module colour classes
     (btn-*, badge-*, bg-*, text-*, gradients, module accents) are NOT
     recoloured here.
   - CHROME comes from the Enjaz site: navy panels with 45° hatching,
     the chevron watermark, the cyan "second square" offset, cyan accent.
   Loaded last from layouts/head.blade.php; scoped to body.enjaz-ui
   (app), body.enjaz-standalone (mobile/standalone) and body.enjaz-auth.
   ===================================================================== */

:root{
  /* neutrals (stronger than the site's for an admin tool) */
  --ez-bg-alt:#eaeff5;
  --ez-surface:#ffffff;
  --ez-surface-2:#f1f5f9;
  --ez-border:#d8e0ea;
  --ez-border-strong:#c3cedb;
  --ez-heading:#0b1324;
  --ez-text:#243244;
  --ez-muted:#475569;

  /* site brand */
  --ez-navy:#0f172a;
  --ez-navy-2:#16233a;
  --ez-navy-3:#1e2f4d;
  --ez-accent:#0e7490;
  --ez-accent-ink:#0b5f74;
  --ez-accent-soft:rgba(6,182,212,.12);
  --ez-mark:#06b6d4;
  --ez-mark-tint:#67e8f9;
  --ez-mark-soft:rgba(6,182,212,.4);
  --ez-focus:0 0 0 .2rem rgba(14,116,144,.18);

  --ez-shadow-sm:0 1px 2px rgba(15,23,42,.05), 0 2px 8px rgba(15,23,42,.04);
  --ez-shadow-md:0 6px 18px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.05);
  --ez-shadow-lg:0 20px 48px rgba(15,23,42,.14), 0 3px 10px rgba(15,23,42,.06);

  --ez-r-xs:8px; --ez-r-sm:10px; --ez-r-md:14px; --ez-r-lg:16px; --ez-r-xl:22px;
  --ez-font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* site motifs */
  --ez-hatch:repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 9px);
  --ez-glow:radial-gradient(520px 220px at 12% 0%, rgba(6,182,212,.28), transparent 70%);
  --ez-chevrons:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 270'%3E%3Cpath d='M100 21 43 135l57 114M420 21l57 114-57 114' fill='none' stroke='%23000' stroke-width='43' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ez-chevrons-tight:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 270'%3E%3Cpath d='M120 21 63 135l57 114M180 21l57 114-57 114' fill='none' stroke='%23000' stroke-width='43' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ez-offset:10px;
}

/* =====================================================================
   1. Base
   ===================================================================== */
body.enjaz-ui{
  background:var(--ez-bg-alt) !important;
  color:var(--ez-text);
  font-family:var(--ez-font) !important;
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}
body.enjaz-ui :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,p,label,td,th,button,input,select,textarea,
  .btn,.form-control,.table,.tooltip,.popover,.dropdown-menu,.modal,.swal2-popup,
  .side-menu__label,.slide-item,.side-item-category,.card-title,.badge,.breadcrumb){
  font-family:var(--ez-font) !important;
}
body.enjaz-ui :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6){ font-weight:700; letter-spacing:0; text-shadow:none; }
body.enjaz-ui :is(h1,h2,h3,h4,h5,h6):not([class*="text-"]):not([style*="color"]){ color:var(--ez-heading); }
body.enjaz-ui hr{ border-color:var(--ez-border); }
body.enjaz-ui ::selection{ background:rgba(6,182,212,.22); color:var(--ez-heading); }
body.enjaz-ui .main-content.app-content{ background:transparent; }
body.enjaz-ui .main-content > .container-fluid{ padding-left:1.5rem; padding-right:1.5rem; }
body.enjaz-ui #global-loader{ background:var(--ez-bg-alt); }
body.enjaz-ui ::-webkit-scrollbar{ width:8px; height:8px; }
body.enjaz-ui ::-webkit-scrollbar-thumb{ background:var(--ez-border-strong); border-radius:8px; }

/* =====================================================================
   2. Rail (sidebar)
   ===================================================================== */
body.enjaz-ui .app-sidebar{
  background:var(--ez-surface) !important;
  border:0 !important;
  border-inline-start:1px solid var(--ez-border) !important;
  box-shadow:none !important;
}
body.enjaz-ui .app-sidebar__user{ padding:.75rem .75rem 0 !important; border:0 !important; background:transparent !important; }

/* Profile: a navy brand block with the site's hatching and chevrons */
body.enjaz-ui .app-sidebar .user-info-card{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:.7rem .7rem !important;
  background:linear-gradient(150deg, var(--ez-navy) 0%, var(--ez-navy-3) 100%) !important;
  border:0 !important;
  border-radius:var(--ez-r-md) !important;
  box-shadow:none !important;
  transform:none !important;
}
body.enjaz-ui .app-sidebar .user-info-card::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background-image:var(--ez-hatch), var(--ez-glow);
}
body.enjaz-ui .app-sidebar .user-info-card::after{
  content:""; position:absolute; z-index:-1; inset-inline-end:-18px; bottom:-14px;
  width:120px; aspect-ratio:520/270; background:#fff; opacity:.07;
  -webkit-mask:var(--ez-chevrons) center/contain no-repeat; mask:var(--ez-chevrons) center/contain no-repeat;
}
body.enjaz-ui .app-sidebar .user-pro-body > div{ display:flex; align-items:center; gap:.65rem; }
body.enjaz-ui .app-sidebar .user-pro-body > div > a{ position:relative; flex:none; display:block; }
body.enjaz-ui .app-sidebar .user-pro-body .avatar{
  width:40px !important; height:40px !important; border-radius:var(--ez-r-sm) !important;
  border:2px solid rgba(255,255,255,.18); box-shadow:none; object-fit:cover;
}
body.enjaz-ui .app-sidebar .user-pro-body .profile-status{
  top:auto !important; bottom:-2px !important; right:-2px !important; left:auto !important;
  width:11px !important; height:11px !important; border:2px solid var(--ez-navy) !important;
}
body.enjaz-ui .app-sidebar .user-info{ min-width:0; flex:1; padding:0 !important; text-align:start !important; }
body.enjaz-ui .app-sidebar .user-info h4{
  margin:0 !important; color:#fff !important; font-size:.86rem !important; font-weight:700 !important;
  line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.enjaz-ui .app-sidebar .user-meta{ color:rgba(255,255,255,.75) !important; font-size:.7rem !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.enjaz-ui .app-sidebar .branch-badge{
  display:inline-flex !important; align-items:center; gap:.25rem; margin-top:.35rem !important;
  padding:.05rem .5rem !important; border:1px solid rgba(103,232,249,.35) !important; border-radius:6px !important;
  background:rgba(6,182,212,.16) !important; color:var(--ez-mark-tint) !important; box-shadow:none !important;
  font-size:.68rem !important; font-weight:700;
}
body.enjaz-ui .app-sidebar .branch-badge *{ color:inherit !important; font-size:inherit !important; }
body.enjaz-ui .app-sidebar .alert{ margin:.5rem 0 0; border-radius:var(--ez-r-sm); font-size:.76rem; padding:.5rem .65rem; }
body.enjaz-ui .app-sidebar input:is([type="search"],[type="text"]){
  height:34px; background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important;
  border-radius:9px !important; box-shadow:none !important; font-size:.78rem;
}

/* Menu */
body.enjaz-ui .main-sidemenu{ margin-top:.5rem !important; }
body.enjaz-ui .side-menu{ padding:.25rem .65rem 1rem !important; }
body.enjaz-ui .side-item.side-item-category{
  color:var(--ez-muted) !important; font-size:.68rem !important; font-weight:700 !important;
  letter-spacing:0 !important; text-transform:none !important; padding:.9rem .6rem .3rem !important; margin:0 !important;
}
body.enjaz-ui .side-menu .slide{ margin:0 0 2px; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item{
  display:flex !important; align-items:center; gap:.6rem; min-height:38px;
  border-radius:var(--ez-r-sm) !important; padding:.45rem .6rem !important; margin:0 !important;
  color:var(--ez-text) !important; background:transparent !important; border:0 !important; box-shadow:none !important;
  transition:background-color .15s ease, color .15s ease;
}
body.enjaz-ui .side-menu__item::after{ display:none !important; }
body.enjaz-ui .side-menu__item:not(.active)::before{ display:none !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item:hover{ background:var(--ez-surface-2) !important; color:var(--ez-heading) !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item :is(.side-menu__label, .d-flex){ flex:1; min-width:0; color:inherit !important; font-size:.82rem !important; font-weight:500 !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item > .d-flex, body.enjaz-ui .side-menu__item > div > .d-flex{ gap:.6rem; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu :is(.side-menu__icon, .side-menu__item > i, .side-menu__item > svg, .side-menu__item .d-flex svg, .side-menu__item .d-flex > i){
  flex:none; width:18px !important; height:18px !important; margin:0 !important; padding:0 !important;
  line-height:18px !important; font-size:15px !important; color:inherit !important; fill:currentColor !important;
  background:transparent !important; box-shadow:none !important;
}
/* active: the site's cyan accent with a mark bar on the reading-start edge */
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.side-menu__item.active, .slide.is-expanded > .side-menu__item){
  position:relative; background:var(--ez-accent-soft) !important; color:var(--ez-accent-ink) !important; font-weight:700;
}
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item.active::before{
  content:"" !important; display:block !important; position:absolute; inset-block:8px; inset-inline-start:0;
  width:3px; border-radius:3px; background:var(--ez-mark);
}
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item.active :is(.side-menu__label, .side-menu__icon, svg, i){ color:var(--ez-accent-ink) !important; fill:var(--ez-accent-ink) !important; font-weight:700 !important; }
body.enjaz-ui .side-menu__item .angle{ color:var(--ez-muted) !important; font-size:.75rem; margin:0 !important; }

body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-menu, .sub-slide-menu, .sub-slide-menu2){
  background:transparent !important; border:0 !important; border-inline-start:1px solid var(--ez-border) !important;
  margin:.15rem 0 .4rem !important; margin-inline-start:1.15rem !important;
  padding:0 !important; padding-inline-start:.35rem !important; box-shadow:none !important;
}
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-slide-item2, .sub-side-menu__item, .slide-menu .side-menu__item){
  display:flex !important; align-items:center; gap:.5rem; min-height:32px;
  color:var(--ez-text) !important; font-size:.78rem !important; font-weight:500 !important;
  border-radius:var(--ez-r-xs) !important; padding:.3rem .65rem !important; margin:1px 0 !important; background:transparent !important;
}
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-slide-item2, .sub-side-menu__item)::before{ display:none !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-slide-item2, .sub-side-menu__item, .slide-menu .side-menu__item):hover{ color:var(--ez-heading) !important; background:var(--ez-surface-2) !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-slide-item2, .sub-side-menu__item).active{ color:var(--ez-accent-ink) !important; background:var(--ez-accent-soft) !important; font-weight:700 !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-side-menu__item) :is(.side-menu__label, .sub-side-menu__label){ color:inherit !important; }
/* menu counters keep their own colours; only the shape changes */
body.enjaz-ui .app-sidebar :is(.menu-badge, .menu-badge-red, .notification-count2, .side-badge, .side-menu .badge){
  position:static !important; display:inline-grid !important; place-items:center;
  min-width:20px; height:19px !important; margin:0 !important; padding:0 .4rem !important;
  border-radius:999px !important; box-shadow:none !important;
  font-family:var(--ez-font) !important; font-size:.66rem !important; font-weight:700 !important; line-height:19px !important; order:3;
}
body.enjaz-ui .app-sidebar .menu-badge.hide{ display:none !important; }

/* =====================================================================
   3. Top bar
   ===================================================================== */
body.enjaz-ui .main-header{
  height:64px; background:var(--ez-surface) !important; border-bottom:1px solid var(--ez-border) !important; box-shadow:none !important;
}
body.enjaz-ui .main-header::after{
  content:""; position:absolute; inset-inline:0; bottom:-1px; height:2px; pointer-events:none;
  background:linear-gradient(to left, var(--ez-mark), rgba(6,182,212,0) 45%);
}
body.enjaz-ui .main-header > .container-fluid{ gap:.75rem; padding-left:1rem; padding-right:1rem; }
body.enjaz-ui :is(.main-header-left, .main-header-right){ display:flex !important; flex-wrap:nowrap !important; align-items:center; gap:.4rem; min-width:0; }
body.enjaz-ui .main-header-left > img{ width:36px !important; height:36px !important; object-fit:contain; }
body.enjaz-ui .main-header-left > a{ margin:0 !important; }
body.enjaz-ui .main-header-right{ overflow:visible; }
body.enjaz-ui .main-header-right > .nav{ flex-wrap:nowrap !important; align-items:center; gap:.3rem; margin:0 !important; }
body.enjaz-ui .main-header-right > .nav > :is(.nav-item, .dropdown){ margin:0 !important; padding:0 !important; }
body.enjaz-ui .national-day-brand{ display:flex; align-items:center; gap:.5rem; height:40px; flex:none; overflow:hidden; }
body.enjaz-ui .national-day-brand img{ height:34px !important; width:auto !important; max-width:150px !important; object-fit:contain; }

body.enjaz-ui :is(.main-header-left a > i.header-icons, .main-header .nav-link.new, .main-header .full-screen-link, .main-header .main-header-right > li > .nav-link){
  display:inline-grid !important; place-items:center; width:34px !important; height:34px !important;
  padding:0 !important; margin:0 !important; background:var(--ez-surface-2) !important;
  border:1px solid var(--ez-border) !important; border-radius:9px !important;
  color:var(--ez-text) !important; font-size:16px !important; line-height:1 !important;
}
body.enjaz-ui .main-header .app-sidebar__toggle{ margin:0 !important; }
body.enjaz-ui .main-header .app-sidebar__toggle > a{ place-items:center; width:34px !important; height:34px !important; padding:0 !important; background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important; border-radius:9px !important; }
body.enjaz-ui .main-header .app-sidebar__toggle > a.open-toggle{ display:grid; }
body.enjaz-ui.sidenav-toggled .main-header .app-sidebar__toggle > a.open-toggle{ display:none; }
body.enjaz-ui:not(.sidenav-toggled) .main-header .app-sidebar__toggle > a.close-toggle{ display:none; }
body.enjaz-ui .main-header :is(.header-icons, .header-icon, .nav-link i){ color:var(--ez-text) !important; font-size:16px !important; }
body.enjaz-ui .main-header .nav-link svg{ width:18px !important; height:18px !important; fill:var(--ez-text) !important; }
body.enjaz-ui .main-header #openSystemUsersSidebar{ display:inline-flex !important; width:auto !important; padding:0 .2rem !important; background:transparent !important; border:0 !important; }
body.enjaz-ui .main-header :is(a.position-relative > span[style], .notification-count, #uptimeDownBadge){
  top:-6px !important; right:-6px !important; left:auto !important; min-width:18px !important; height:18px !important;
  padding:0 5px !important; border-radius:999px !important; font-family:var(--ez-font) !important;
  font-size:.64rem !important; font-weight:700 !important; line-height:18px !important; text-align:center;
  box-shadow:0 0 0 2px var(--ez-surface) !important;
}
body.enjaz-ui .main-header .pulse{ display:none !important; }
body.enjaz-ui .main-header-center{ position:relative; flex:none !important; width:auto !important; margin:0 !important; max-width:none !important; }
body.enjaz-ui .main-header-center .form-control{
  width:190px !important; height:34px !important; min-height:0; padding-inline:.75rem 2rem;
  background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important; border-radius:9px !important;
  box-shadow:none !important; font-size:.78rem;
}
body.enjaz-ui .main-header-center .btn{ position:absolute; top:0; inset-inline-end:0; min-height:0; height:34px; padding:0 .6rem; color:var(--ez-muted) !important; background:transparent !important; border:0 !important; }
/* service shortcuts with balances: compact pills on one line (their own outline colours) */
body.enjaz-ui .main-header-right > a.btn{
  display:inline-flex !important; align-items:center; justify-content:center; gap:.35rem; flex:none;
  min-width:34px; height:34px !important; min-height:0 !important; padding:0 .55rem !important; margin:0 !important;
  border-radius:9px !important; font-size:.72rem !important; font-weight:700 !important; line-height:1.2 !important;
  white-space:nowrap; flex-direction:row !important;
}
body.enjaz-ui .main-header-right > a.btn br{ display:none; }
body.enjaz-ui .main-header-right > a.btn img{ max-height:20px !important; width:auto !important; margin:0 !important; }
body.enjaz-ui .main-header .profile-user img{ width:34px !important; height:34px !important; border-radius:9px !important; }
body.enjaz-ui .main-header .main-profile-menu{ padding:0 !important; }
body.enjaz-ui .main-header .btn-success-gradient{ height:28px; min-height:0; padding:0 .6rem !important; border:0 !important; border-radius:var(--ez-r-xs) !important; font-size:.72rem !important; font-weight:700 !important; box-shadow:none !important; }
body.enjaz-ui .main-header .dropdown-menu{ padding:0; overflow:hidden; border-radius:var(--ez-r-md) !important; box-shadow:var(--ez-shadow-lg) !important; }
/* dropdown headers: the site's navy band */
body.enjaz-ui .main-header :is(.menu-header-content, .main-header-profile){
  background-color:var(--ez-navy) !important;
  background-image:var(--ez-hatch), linear-gradient(150deg, var(--ez-navy), var(--ez-navy-3)) !important;
}
body.enjaz-ui .main-header :is(.menu-header-content, .main-header-profile) :is(h6, .dropdown-title, h5, h4){ color:#fff !important; }
body.enjaz-ui .main-header :is(.menu-header-content, .main-header-profile) :is(p, small, span:not(.badge)){ color:rgba(255,255,255,.78) !important; }
body.enjaz-ui .main-header .dropdown-footer{ background:var(--ez-surface-2) !important; border-top:1px solid var(--ez-border); }
body.enjaz-ui .main-header .dropdown-footer a{ color:var(--ez-accent-ink) !important; font-weight:700; }
body.enjaz-ui .main-header .notifyimg{ border-radius:var(--ez-r-sm) !important; box-shadow:none !important; }

/* =====================================================================
   4. Page header -> the site's navy hero band
   ===================================================================== */
body.enjaz-ui .breadcrumb-header{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  margin:1.6rem 0 1.4rem !important;
  padding:1.15rem 1.4rem !important;
  min-height:84px;
  align-items:center;
  gap:.75rem 1rem;
  flex-wrap:wrap;
  background:linear-gradient(150deg, var(--ez-navy) 0%, var(--ez-navy-2) 55%, var(--ez-navy-3) 100%) !important;
  border-radius:var(--ez-r-lg) !important;
  box-shadow:var(--ez-offset) calc(var(--ez-offset) * -1) 0 var(--ez-mark-soft), var(--ez-shadow-md) !important;
  color:#fff;
}
body.enjaz-ui .breadcrumb-header::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:var(--ez-hatch), var(--ez-glow);
}
body.enjaz-ui .breadcrumb-header::after{
  content:""; position:absolute; z-index:-1; inset-inline-end:28%; top:50%; transform:translateY(-50%);
  width:220px; aspect-ratio:520/270; background:#fff; opacity:.06; pointer-events:none;
  -webkit-mask:var(--ez-chevrons) center/contain no-repeat; mask:var(--ez-chevrons) center/contain no-repeat;
}
body.enjaz-ui .breadcrumb-header .my-auto{ margin-top:0 !important; margin-bottom:0 !important; }
body.enjaz-ui .breadcrumb-header :is(.content-title, .main-content-title, h4, h2, h3){
  margin:0 !important; color:#fff !important; font-size:1.25rem !important; font-weight:700 !important; line-height:1.5;
}
body.enjaz-ui .breadcrumb-header :is(.text-muted, p, .tx-13){ color:rgba(255,255,255,.8) !important; font-size:.82rem !important; margin:0; }
body.enjaz-ui .breadcrumb-header .breadcrumb{ background:transparent !important; padding:0 !important; margin:0 !important; }
body.enjaz-ui .breadcrumb-header :is(.breadcrumb-item, .breadcrumb-item a){ color:rgba(255,255,255,.75) !important; font-size:.8rem; }
body.enjaz-ui .breadcrumb-header .breadcrumb-item.active{ color:var(--ez-mark-tint) !important; font-weight:700; }
body.enjaz-ui .breadcrumb-header .breadcrumb-item + .breadcrumb-item::before{ color:rgba(255,255,255,.45) !important; }
body.enjaz-ui .breadcrumb-header [class*="btn-outline"]{ background:rgba(255,255,255,.08) !important; border-color:rgba(255,255,255,.25) !important; color:#fff !important; }
body.enjaz-ui .breadcrumb{ background:transparent !important; }

/* =====================================================================
   5. Surfaces
   ===================================================================== */
body.enjaz-ui .card{
  border:1px solid var(--ez-border) !important;
  border-radius:var(--ez-r-md) !important;
  box-shadow:var(--ez-shadow-sm) !important;
  margin-bottom:1rem;
}
body.enjaz-ui .card-header{ border-bottom:1px solid var(--ez-border) !important; padding:.85rem 1.1rem !important; }
body.enjaz-ui .card-header:not([class*="bg-"]):not([style*="background"]){ background:transparent !important; }
body.enjaz-ui .card-header:first-child{ border-radius:var(--ez-r-md) var(--ez-r-md) 0 0 !important; }
body.enjaz-ui :is(.card-title, .card-header .card-title, .card-header h3, .card-header h4, .card-header h5){
  font-size:.95rem !important; font-weight:700 !important; text-transform:none !important; letter-spacing:0 !important;
}
/* site eyebrow: chevron mark before card titles */
body.enjaz-ui .card-header:not([class*="bg-"]) :is(.card-title, h3, h4, h5):not(:empty)::before{
  content:""; display:inline-block; width:16px; height:12px; margin-inline-end:.45rem; vertical-align:-1px;
  background:var(--ez-mark);
  -webkit-mask:var(--ez-chevrons-tight) center/contain no-repeat; mask:var(--ez-chevrons-tight) center/contain no-repeat;
}
body.enjaz-ui .card-footer{ border-top:1px solid var(--ez-border) !important; border-radius:0 0 var(--ez-r-md) var(--ez-r-md) !important; }

/* Filter accordions (panel-heading1, usually bg-primary or an inline navy): a navy band */
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x){
  position:relative; overflow:hidden; isolation:isolate;
  border:0 !important; border-radius:var(--ez-r-md) !important;
  background-color:var(--ez-navy) !important;
  background-image:var(--ez-hatch), linear-gradient(150deg, var(--ez-navy), var(--ez-navy-3)) !important;
}
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x) :is(a, .accordion-toggle, h4, .panel-title1, i){
  background:transparent !important; color:#fff !important; font-weight:700; font-size:.86rem;
}
body.enjaz-ui .panel-group1 .panel-body{ border-color:var(--ez-border) !important; }

/* =====================================================================
   6. KPI cards (.sales-card): original gradients + site overlays
   ===================================================================== */
body.enjaz-ui .card.sales-card{
  position:relative; isolation:isolate; overflow:hidden;
  border:0 !important; border-radius:var(--ez-r-md) !important;
  box-shadow:var(--ez-shadow-md) !important;
  transition:transform .15s ease, box-shadow .15s ease;
}
body.enjaz-ui .card.sales-card::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 1px, transparent 1px 9px);
  -webkit-mask-image:linear-gradient(to left, #000, transparent 75%); mask-image:linear-gradient(to left, #000, transparent 75%);
}
body.enjaz-ui .card.sales-card::after{
  content:""; position:absolute; z-index:0; inset-inline-start:-22px; bottom:-18px; pointer-events:none;
  width:130px; aspect-ratio:520/270; background:#fff; opacity:.1;
  -webkit-mask:var(--ez-chevrons) center/contain no-repeat; mask:var(--ez-chevrons) center/contain no-repeat;
}
body.enjaz-ui .card.sales-card > *{ position:relative; z-index:1; }
body.enjaz-ui :is(a:hover > .card.sales-card, a .card.sales-card:hover){ transform:translateY(-2px); box-shadow:var(--ez-shadow-lg) !important; }
body.enjaz-ui .card.sales-card h6{ font-size:.8rem !important; font-weight:700 !important; }
body.enjaz-ui .card.sales-card :is(h4, h4 *){ font-size:1.55rem !important; font-weight:700 !important; line-height:1.4 !important; font-variant-numeric:tabular-nums; }
body.enjaz-ui .card.sales-card p{ font-size:.7rem !important; }
body.enjaz-ui .card.sales-card .float-right{
  display:inline-flex !important; align-items:center; gap:.25rem; height:22px; margin:0 !important; padding:0 .5rem;
  border-radius:var(--ez-r-xs); background:rgba(255,255,255,.16); font-size:.7rem; font-weight:700; direction:ltr;
}
body.enjaz-ui .card.sales-card .float-right:not(:has(i)){ display:none !important; }

/* =====================================================================
   7. Controls: shape only, colours stay the app's
   ===================================================================== */
body.enjaz-ui .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.35rem;
  min-height:34px; padding:.3rem .85rem; border-radius:var(--ez-r-xs);
  font-size:.8rem; font-weight:700; line-height:1.4;
  box-shadow:none !important; text-shadow:none !important;
  transition:filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.enjaz-ui .btn:hover{ filter:brightness(.95) saturate(1.05); }
body.enjaz-ui .btn.btn-block{ display:flex; width:100%; }
body.enjaz-ui :is(.btn-sm, .btn-group-sm > .btn){ min-height:30px; padding:.2rem .65rem; font-size:.74rem; }
body.enjaz-ui .btn-lg{ min-height:44px; padding:.5rem 1.15rem; font-size:.92rem; border-radius:var(--ez-r-sm); }
body.enjaz-ui :is(.btn:focus, .btn.focus){ box-shadow:var(--ez-focus) !important; }
body.enjaz-ui :is(.btn-rounded, .btn-pill){ border-radius:999px !important; }
body.enjaz-ui .btn-icon{ width:34px; padding:0; }
body.enjaz-ui .btn-sm.btn-icon{ width:30px; }
body.enjaz-ui .main-content button.close{ background:none; border:0; opacity:1; text-shadow:none; }

body.enjaz-ui .badge{
  display:inline-flex; align-items:center; gap:.25rem; padding:.22rem .55rem; border-radius:6px;
  font-size:.72rem; font-weight:700; line-height:1.5; box-shadow:none;
}
body.enjaz-ui .badge-pill{ border-radius:999px; }
body.enjaz-ui .main-content li[class*="bg-"]{ border-radius:6px; font-size:.76rem; font-weight:700; }

/* =====================================================================
   8. Forms (neutral, with the site's focus ring)
   ===================================================================== */
body.enjaz-ui :is(.form-control, .custom-select, .form-select, select.form-control,
  .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple){
  min-height:38px; border:1px solid var(--ez-border-strong) !important; border-radius:var(--ez-r-xs) !important;
  font-size:.84rem; box-shadow:none !important;
}
body.enjaz-ui textarea.form-control{ min-height:72px; }
body.enjaz-ui :is(.form-control:focus, .custom-select:focus, .form-select:focus, .select2-container--focus .select2-selection, .select2-container--open .select2-selection){
  border-color:var(--ez-accent) !important; box-shadow:var(--ez-focus) !important;
}
body.enjaz-ui .form-control::placeholder{ color:#6b7789; }
body.enjaz-ui :is(label, .form-label){ font-weight:700; font-size:.8rem; margin-bottom:.3rem; }
body.enjaz-ui label:not([class*="text-"]):not([style*="color"]){ color:var(--ez-heading); }
body.enjaz-ui .input-group-text{ background:var(--ez-surface-2) !important; border-color:var(--ez-border-strong) !important; color:var(--ez-muted) !important; }
body.enjaz-ui .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height:36px; }
body.enjaz-ui .select2-container--default .select2-selection--single .select2-selection__arrow{ height:36px; }
body.enjaz-ui .select2-dropdown{ border:1px solid var(--ez-border) !important; border-radius:var(--ez-r-sm) !important; box-shadow:var(--ez-shadow-md); overflow:hidden; }
body.enjaz-ui :is(input[type="checkbox"], input[type="radio"]){ accent-color:var(--ez-accent); }

/* =====================================================================
   9. Tables
   ===================================================================== */
body.enjaz-ui .table{ border-color:var(--ez-border); font-size:.84rem; }
body.enjaz-ui .table td{ padding:.6rem .75rem; vertical-align:middle; }
body.enjaz-ui :is(.table td, .table th, .table-bordered, .table-bordered td, .table-bordered th){ border-color:var(--ez-border) !important; }
body.enjaz-ui .table thead th{
  font-size:.76rem !important; font-weight:700 !important; text-transform:none !important; letter-spacing:0 !important;
  padding:.65rem .75rem !important; white-space:nowrap; border-top:0 !important;
}
body.enjaz-ui .table thead:not([class*="bg-"]):not([class*="thead-"]):not([style]) th:not([class*="bg-"]):not([style*="background"]){
  background:var(--ez-surface-2) !important; color:var(--ez-heading) !important; border-bottom:1px solid var(--ez-border-strong) !important;
}
body.enjaz-ui :is(.table-hover tbody tr:hover, table.dataTable tbody tr:hover){ background:rgba(6,182,212,.06) !important; }
body.enjaz-ui .table-responsive{ border-radius:var(--ez-r-sm); }
body.enjaz-ui .list-group-item{ border-color:var(--ez-border); }
body.enjaz-ui :is(.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select){
  height:36px; border:1px solid var(--ez-border-strong) !important; border-radius:var(--ez-r-xs) !important; background:var(--ez-surface) !important; box-shadow:none !important;
}
body.enjaz-ui .dataTables_wrapper .dataTables_info{ color:var(--ez-muted); font-size:.78rem; }
body.enjaz-ui :is(.dt-buttons .btn, .dt-buttons .dt-button){ min-height:30px; border-radius:var(--ez-r-xs) !important; font-size:.76rem; }

/* pager: shape from the site; the current page keeps the app's own colour */
body.enjaz-ui .pagination{ gap:.25rem; flex-wrap:wrap; }
body.enjaz-ui .pagination .page-link{
  display:grid; place-items:center; min-width:32px; height:32px; padding:0 .45rem !important; margin:0 !important;
  border-radius:7px !important; font-size:.78rem; font-weight:700; box-shadow:none !important;
}
body.enjaz-ui .pagination .page-item:not(.active) .page-link{ border:1px solid var(--ez-border) !important; background:var(--ez-surface) !important; color:var(--ez-text) !important; }

/* =====================================================================
   10. Tabs (segmented shape; active tabs keep the app's colours)
   ===================================================================== */
body.enjaz-ui :is(.nav-tabs, .tabs-menu ul, .tabs-menu1 ul, .panel-tabs){
  display:inline-flex; flex-wrap:wrap; gap:.25rem; padding:3px; border:0 !important; border-radius:var(--ez-r-sm); background:var(--ez-surface-2);
}
body.enjaz-ui :is(.nav-tabs .nav-link, .tabs-menu ul li a, .tabs-menu1 ul li a, .panel-tabs a){
  margin:0 !important; padding:.35rem .85rem !important; border:0 !important; border-radius:7px !important;
  font-size:.8rem; font-weight:700; box-shadow:none !important;
}
body.enjaz-ui :is(.nav-tabs .nav-link, .tabs-menu ul li a, .tabs-menu1 ul li a, .panel-tabs a):not(.active){ background:transparent !important; color:var(--ez-muted) !important; }
body.enjaz-ui .nav-tabs .nav-link.active{ background:var(--ez-surface) !important; color:var(--ez-accent-ink) !important; box-shadow:var(--ez-shadow-sm) !important; }

/* =====================================================================
   11. Alerts, dropdowns, modals
   ===================================================================== */
body.enjaz-ui .alert{ border-radius:var(--ez-r-sm); box-shadow:none; font-size:.84rem; }
body.enjaz-ui .dropdown-menu{ border:1px solid var(--ez-border) !important; border-radius:var(--ez-r-sm) !important; box-shadow:var(--ez-shadow-md) !important; padding:.3rem; }
body.enjaz-ui .dropdown-item{ border-radius:6px; font-size:.82rem; padding:.42rem .7rem; }
body.enjaz-ui :is(.dropdown-item:hover, .dropdown-item:focus){ background:var(--ez-surface-2); }

body.enjaz-ui .modal-content{ border:0 !important; border-radius:var(--ez-r-lg) !important; box-shadow:var(--ez-shadow-lg) !important; overflow:hidden; }
/* modal header: the site's navy band */
body.enjaz-ui :is(.modal, #ez-x) .modal-header{
  position:relative; isolation:isolate;
  padding:.95rem 1.15rem !important; border-bottom:0 !important;
  background-color:var(--ez-navy) !important;
  background-image:var(--ez-hatch), linear-gradient(150deg, var(--ez-navy), var(--ez-navy-3)) !important;
}
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.modal-title, h1, h2, h3, h4, h5, h6, span, p){ color:#fff !important; font-weight:700 !important; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.close, .btn-close){
  display:inline-grid; place-items:center; width:32px; height:32px; padding:0 !important; margin:0 !important;
  background:rgba(255,255,255,.1) !important; border:1px solid rgba(255,255,255,.22) !important; border-radius:var(--ez-r-xs) !important;
  color:#fff !important; opacity:1 !important; text-shadow:none !important;
}
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.close, .btn-close) *{ color:#fff !important; }
body.enjaz-ui .modal-header .btn-close{ filter:invert(1) grayscale(1) brightness(2); }
body.enjaz-ui .modal-body{ padding:1.15rem; }
body.enjaz-ui .modal-footer{ background:var(--ez-surface-2) !important; border-top:1px solid var(--ez-border) !important; padding:.75rem 1.15rem; gap:.4rem; }
body.enjaz-ui .modal-backdrop.show{ opacity:.5; background:#0b1324; }
body.enjaz-ui .tooltip-inner{ background:var(--ez-navy); border-radius:6px; font-size:.76rem; }
body.enjaz-ui .popover{ border-color:var(--ez-border); border-radius:var(--ez-r-sm); box-shadow:var(--ez-shadow-md); }
body.enjaz-ui .swal2-popup{ border-radius:var(--ez-r-lg) !important; font-family:var(--ez-font) !important; }

/* =====================================================================
   12. Footer and floating controls (own colours, quieter depth)
   ===================================================================== */
body.enjaz-ui .main-footer{ background:transparent !important; border-top:1px solid var(--ez-border) !important; color:var(--ez-muted); font-size:.78rem; }
body.enjaz-ui .main-footer span{ color:var(--ez-muted) !important; }
body.enjaz-ui #back-to-top{ border-radius:var(--ez-r-sm) !important; box-shadow:var(--ez-shadow-md) !important; }
.leads-fab .leads-fab-btn, .leads-fab .leads-fab-panel{ font-family:"IBM Plex Sans Arabic", system-ui, sans-serif !important; }
.leads-fab .leads-fab-panel{ border-radius:16px !important; }

/* =====================================================================
   13. Auth screens: the site's navy panel behind a light card
   ===================================================================== */
body.enjaz-auth{
  background-color:#0f172a !important;
  background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px), radial-gradient(900px 500px at 15% 10%, rgba(6,182,212,.22), transparent 60%), linear-gradient(160deg, #0f172a, #16233a 60%, #1e2f4d) !important;
  font-family:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  color:#243244;
}
body.enjaz-auth .container-login100{ background:transparent !important; background-image:none !important; }
body.enjaz-auth .container-login100::before{ display:none !important; }
body.enjaz-auth .wrap-login100{
  width:400px; max-width:calc(100vw - 32px); padding:2rem 1.75rem 1.75rem !important;
  background:#ffffff !important; border:0; border-radius:22px !important; overflow:hidden;
  box-shadow:10px -10px 0 rgba(6,182,212,.4), 0 20px 48px rgba(0,0,0,.35) !important;
}
body.enjaz-auth .login100-form-title{ color:#0b1324 !important; font-family:inherit !important; font-size:1.25rem !important; font-weight:700 !important; text-transform:none !important; padding-bottom:.25rem !important; text-align:center; }
body.enjaz-auth .login100-form{ background:transparent !important; border-radius:0 !important; padding:0 !important; }
body.enjaz-auth .login100-form img{ width:120px !important; height:120px !important; object-fit:contain; margin-bottom:.75rem; }
body.enjaz-auth .wrap-input100{ margin:0 0 .75rem !important; padding:0 !important; background:#fff; border:1px solid #c3cedb !important; border-radius:10px !important; overflow:hidden; }
body.enjaz-auth .wrap-input100:focus-within{ border-color:#0e7490 !important; box-shadow:0 0 0 .2rem rgba(14,116,144,.18); }
body.enjaz-auth .input100{ height:46px !important; padding-inline-start:44px !important; background:transparent !important; color:#0b1324 !important; font-family:inherit !important; font-size:.92rem !important; }
body.enjaz-auth .input100::placeholder{ color:#6b7789; }
body.enjaz-auth .focus-input100::before{ display:none !important; }
body.enjaz-auth .focus-input100::after{ top:50% !important; left:16px !important; width:auto !important; transform:translateY(-50%); font-size:16px !important; line-height:1 !important; color:#6b7789 !important; }
body.enjaz-auth :is(.input100:focus + .focus-input100::after, .has-val.input100 + .focus-input100::after){ left:16px !important; color:#0e7490 !important; }
body.enjaz-auth .container-login100-form-btn{ padding:0 !important; margin-top:1.1rem !important; }
body.enjaz-auth .login100-form-btn{ width:100% !important; height:46px !important; border-radius:10px !important; background:#0f172a !important; color:#fff !important; font-family:inherit !important; font-weight:700 !important; font-size:.92rem !important; text-transform:none !important; box-shadow:none !important; }
body.enjaz-auth .login100-form-btn:hover{ background:#1e2f4d !important; }
body.enjaz-auth .alert-danger{ display:block; margin-top:.5rem; padding:.45rem .7rem; border-radius:10px; }
body.enjaz-auth :is(.alert-danger h5, .alert-danger h6){ margin:0; font-size:.8rem; color:inherit; font-family:inherit; }
body.enjaz-auth.main-body .card{ border-radius:22px; }

@media (prefers-reduced-motion: reduce){
  body.enjaz-ui *, body.enjaz-auth *{ transition:none !important; animation:none !important; }
}

/* menu rows with a counter: only the label group stretches */
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item > .d-flex:not(:first-of-type),
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item > span.d-flex{ flex:none !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item .side-menu__label{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* =====================================================================
   14. Contrast: the template's semantic colours, same hues, one step deeper
   ===================================================================== */
body.enjaz-ui :is(.btn-primary, .badge-primary, .bg-primary:not([class*="gradient"])){ background-color:#0156cc !important; border-color:#0156cc !important; }
body.enjaz-ui :is(.btn-success, .badge-success, .bg-success:not(.card)){ background-color:#15803d !important; border-color:#15803d !important; color:#fff !important; }
body.enjaz-ui :is(.btn-info, .badge-info, .bg-info:not(.card)){ background-color:#0277bd !important; border-color:#0277bd !important; color:#fff !important; }
body.enjaz-ui :is(.btn-danger, .badge-danger, .bg-danger:not(.card)){ background-color:#c81e4a !important; border-color:#c81e4a !important; color:#fff !important; }
body.enjaz-ui :is(.btn-warning, .badge-warning, .bg-warning:not(.card)){ color:#1f2937 !important; }
body.enjaz-ui :is(.btn-secondary, .badge-secondary){ background-color:#5b6b85 !important; border-color:#5b6b85 !important; color:#fff !important; }
body.enjaz-ui :is(.bg-inverse){ background-color:#1769c2 !important; color:#fff !important; }
body.enjaz-ui :is(.btn-pink, .badge-pink, .bg-pink){ background-color:#c4005f !important; }
body.enjaz-ui :is(.btn-purple, .badge-purple, .bg-purple){ background-color:#8b2fd6 !important; }
body.enjaz-ui :is(.btn-teal, .badge-teal, .bg-teal){ background-color:#0b7c7c !important; }
body.enjaz-ui :is(.btn-orange, .bg-orange){ background-color:#c2410c !important; }
body.enjaz-ui :is(.text-primary, .tx-primary){ color:#0156cc !important; }
body.enjaz-ui :is(.text-success, .tx-success){ color:#15803d !important; }
body.enjaz-ui :is(.text-info, .tx-info){ color:#0277bd !important; }
body.enjaz-ui :is(.text-danger, .tx-danger){ color:#c81e4a !important; }
body.enjaz-ui :is(.text-warning, .tx-warning){ color:#a16207 !important; }
body.enjaz-ui .text-muted{ color:#56657d !important; }
body.enjaz-ui .text-secondary{ color:#56657d !important; }

/* =====================================================================
   15. Design pass 4
   ===================================================================== */
/* 15.1 User card: a plain light row (no hero treatment) */
body.enjaz-ui .app-sidebar .user-info-card{
  background:var(--ez-surface-2) !important;
  background-image:none !important;
  border:1px solid var(--ez-border) !important;
}
body.enjaz-ui .app-sidebar .user-info-card::before,
body.enjaz-ui .app-sidebar .user-info-card::after{ display:none !important; }
body.enjaz-ui .app-sidebar .user-pro-body .avatar{ border:0 !important; }
body.enjaz-ui .app-sidebar .user-pro-body .profile-status{ border-color:var(--ez-surface-2) !important; }
body.enjaz-ui .app-sidebar .user-info h4{ color:var(--ez-heading) !important; }
body.enjaz-ui .app-sidebar .user-meta{ color:var(--ez-muted) !important; }
body.enjaz-ui .app-sidebar .branch-badge{
  background:var(--ez-surface) !important;
  border:1px solid var(--ez-border) !important;
  color:var(--ez-text) !important;
}

/* 15.2 Hero: a heavily transparent navy band, dark text, the site's hatching + logo, no cyan */
:root{
  --ez-hero-bg:rgba(15,23,42,.05);
  --ez-hero-line:rgba(15,23,42,.12);
  --ez-hero-hatch:repeating-linear-gradient(45deg, rgba(15,23,42,.07) 0 1px, transparent 1px 9px);
}
body.enjaz-ui .breadcrumb-header,
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar){
  position:relative !important;
  isolation:isolate;
  overflow:hidden !important;
  background:var(--ez-hero-bg) !important;
  background-image:none !important;
  border:1px solid var(--ez-hero-line) !important;
  border-radius:var(--ez-r-lg) !important;
  box-shadow:none !important;
  color:var(--ez-heading) !important;
  animation:none !important;
}
body.enjaz-ui .breadcrumb-header::before,
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar)::before{
  content:"" !important; display:block !important; position:absolute !important; inset:0 !important; z-index:-1 !important;
  width:auto !important; height:auto !important; transform:none !important; opacity:1 !important; border-radius:0 !important;
  background:none !important;
  background-image:var(--ez-hero-hatch) !important;
  -webkit-mask-image:linear-gradient(to left, #000, transparent 70%); mask-image:linear-gradient(to left, #000, transparent 70%);
  pointer-events:none;
}
body.enjaz-ui .breadcrumb-header::after,
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar)::after{
  content:"" !important; display:block !important; position:absolute !important; z-index:-1 !important;
  inset:auto !important; inset-inline-end:26% !important; top:50% !important; transform:translateY(-50%) !important;
  width:200px !important; height:auto !important; aspect-ratio:520/270; border-radius:0 !important;
  background:var(--ez-navy) !important; opacity:.06 !important; pointer-events:none;
  -webkit-mask:var(--ez-chevrons) center/contain no-repeat; mask:var(--ez-chevrons) center/contain no-repeat;
}
/* text on the light band */
body.enjaz-ui .breadcrumb-header :is(.content-title, .main-content-title, h2, h3, h4),
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero, [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar)
  :is(h1, h2, h3, h4, .title, [class*="-title"], strong){
  color:var(--ez-heading) !important; text-shadow:none !important;
}
body.enjaz-ui .breadcrumb-header :is(.text-muted, p, .tx-13),
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero, [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar)
  :is(p, small, .sub, .subtitle, [class*="-sub"], [class*="-desc"], [style*="color"]):not(.btn):not([class*="btn"]):not(.badge):not([class*="pill"]):not([class*="chip"]){
  color:var(--ez-muted) !important; opacity:1 !important;
}
body.enjaz-ui .breadcrumb-header :is(.breadcrumb-item, .breadcrumb-item a){ color:var(--ez-muted) !important; }
body.enjaz-ui .breadcrumb-header .breadcrumb-item.active{ color:var(--ez-heading) !important; }
body.enjaz-ui .breadcrumb-header .breadcrumb-item + .breadcrumb-item::before{ color:var(--ez-border-strong) !important; }
/* ghost buttons that were white-on-dark become light controls */
body.enjaz-ui .breadcrumb-header [class*="btn-outline"],
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero, .supervision-toolbar)
  :is(a, button):is([class*="ghost"], [class*="hero-btn"], [class*="back-btn"]){
  background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; color:var(--ez-heading) !important;
}
/* hero icon tiles: dark tile on the light band */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is([class*="hero-icon"], .cc-header-icon){
  background:var(--ez-navy) !important; background-image:none !important; color:#fff !important; box-shadow:none !important;
}

/* 15.3 Cards and titles: the logo mark in dark navy instead of cyan */
body.enjaz-ui .card-header:not([class*="bg-"]) :is(.card-title, h3, h4, h5):not(:empty)::before,
body.enjaz-ui .main-content .main-card > h3::before{ background:var(--ez-navy) !important; opacity:.85; }

/* 15.4 Type scale for IBM Plex Sans Arabic (a wide face): back to the app's usual sizes */
body.enjaz-ui, body.enjaz-standalone{ font-size:13px !important; line-height:1.6; }
body.enjaz-ui :is(p, td, li, span, div){ line-height:inherit; }
/* rail */
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item :is(.side-menu__label, .d-flex){ font-size:.78rem !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-slide-item2, .sub-side-menu__item, .slide-menu .side-menu__item){ font-size:.74rem !important; min-height:30px; }
body.enjaz-ui .side-item.side-item-category{ font-size:.64rem !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item{ min-height:36px; }
body.enjaz-ui .app-sidebar .user-info h4{ font-size:.8rem !important; }
body.enjaz-ui .app-sidebar .user-meta{ font-size:.66rem !important; }
body.enjaz-ui .app-sidebar .branch-badge{ font-size:.64rem !important; }
/* top bar */
body.enjaz-ui .main-header-right > a.btn{ font-size:.68rem !important; }
body.enjaz-ui .main-header-center .form-control{ font-size:.74rem; }
/* hero */
body.enjaz-ui .breadcrumb-header :is(.content-title, .main-content-title, h2, h3, h4){ font-size:1.12rem !important; }
body.enjaz-ui .breadcrumb-header :is(.text-muted, p, .tx-13){ font-size:.76rem !important; }
body.enjaz-ui .breadcrumb-header :is(.breadcrumb-item, .breadcrumb-item a){ font-size:.74rem !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero) :is(h1, h2){ font-size:1.15rem !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero) :is(h3, h4){ font-size:1.02rem !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero) p{ font-size:.78rem !important; }
/* surfaces */
body.enjaz-ui :is(.card-title, .card-header .card-title, .card-header h3, .card-header h4, .card-header h5){ font-size:.88rem !important; }
body.enjaz-ui .main-content .main-card > h3, body.enjaz-ui .zk-att-card-head h3{ font-size:.92rem !important; }
body.enjaz-ui .card.sales-card h6{ font-size:.74rem !important; }
body.enjaz-ui .card.sales-card :is(h4, h4 *){ font-size:1.35rem !important; }
body.enjaz-ui .card.sales-card p{ font-size:.66rem !important; }
body.enjaz-ui .card.sales-card .float-right{ font-size:.66rem !important; height:20px; }
body.enjaz-ui .card1 h5{ font-size:.76rem !important; }
body.enjaz-ui .card1 .stat-number{ font-size:1.2rem !important; }
/* controls */
body.enjaz-ui .btn{ font-size:.76rem; min-height:32px; padding:.25rem .8rem; }
body.enjaz-ui :is(.btn-sm, .btn-group-sm > .btn){ font-size:.7rem; min-height:28px; padding:.15rem .6rem; }
body.enjaz-ui .btn-lg{ font-size:.86rem; min-height:40px; }
body.enjaz-ui .badge{ font-size:.68rem; padding:.18rem .5rem; }
body.enjaz-ui .main-content li[class*="bg-"]{ font-size:.72rem; }
/* forms */
body.enjaz-ui :is(.form-control, .custom-select, .form-select, select.form-control){ font-size:.8rem; min-height:36px; }
body.enjaz-ui :is(label, .form-label){ font-size:.76rem; }
/* tables */
body.enjaz-ui .table{ font-size:.8rem; }
body.enjaz-ui .table thead th{ font-size:.72rem !important; }
body.enjaz-ui .pagination .page-link{ font-size:.74rem; min-width:30px; height:30px; }
/* tabs, dropdowns, modals */
body.enjaz-ui :is(.nav-tabs .nav-link, .tabs-menu ul li a, .tabs-menu1 ul li a, .panel-tabs a){ font-size:.76rem; }
body.enjaz-ui .dropdown-item{ font-size:.78rem; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.modal-title, h4, h5, h6){ font-size:.92rem !important; }
body.enjaz-ui .alert{ font-size:.8rem; }
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x) :is(a, .accordion-toggle, h4, .panel-title1){ font-size:.8rem !important; }

/* 15.5 Fallback hero (pages without a header): hidden when the page already draws its own hero */
body.enjaz-ui .main-content > .container-fluid:has(:is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar):not(.ez-auto-hero)) > .ez-auto-hero{ display:none !important; }

/* 15.6 Inside heroes: text that was white-on-dark reads dark; ghost controls become light controls */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar)
  :is(div, span, small, p, li, label, a):not(.btn):not([class*="btn"]):not([class*="badge"]):not([class*="pill"]):not([class*="chip"]):not([class*="icon"]):not(.active){
  color:var(--ez-text) !important; opacity:1 !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero, .supervision-toolbar)
  :is(.btn-soft, .btn-outline-light, .btn-light, .mq-btn, nav a, .supervision-nav a){
  background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; color:var(--ez-heading) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .supervision-toolbar :is(nav a, .supervision-nav a).active{
  background:var(--ez-navy) !important; border-color:var(--ez-navy) !important; color:#fff !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .security-state.on{ color:#146c48 !important; }

/* =====================================================================
   16. Design pass 5
   ===================================================================== */
/* 16.1 Lightness: between the first minimal version and pass 4 */
:root{
  --ez-bg-alt:#f1f4f8;
  --ez-surface-2:#f4f6f9;
  --ez-border:#e2e8f0;
  --ez-border-strong:#cbd5e1;
  --ez-shadow-sm:0 1px 2px rgba(15,23,42,.04);
  --ez-shadow-md:0 4px 14px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --ez-hero-bg:rgba(15,23,42,.025);
  --ez-hero-line:rgba(15,23,42,.08);
  --ez-hero-hatch:repeating-linear-gradient(45deg, rgba(15,23,42,.045) 0 1px, transparent 1px 9px);
}
body.enjaz-ui .breadcrumb-header::after,
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar)::after{ opacity:.045 !important; }
body.enjaz-ui .card{ box-shadow:var(--ez-shadow-sm) !important; }

/* 16.2 One type scale for every page (IBM Plex Sans Arabic)
   11 meta/tags · 12 labels/table heads · 13 body/controls · 14 card titles
   16 page titles · 18 section figures · 20 KPI figures — weights 400/500/600/700 only */
:root{ --fs-11:11px; --fs-12:12px; --fs-13:13px; --fs-14:14px; --fs-16:16px; --fs-18:18px; --fs-20:20px; }
body.enjaz-ui, body.enjaz-standalone{ font-size:var(--fs-13) !important; line-height:1.65; }
/* headings inside content */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(h1, .h1){ font-size:var(--fs-18) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(h2, .h2){ font-size:var(--fs-16) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(h3, .h3){ font-size:var(--fs-14) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(h4, .h4, h5, .h5){ font-size:var(--fs-14) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(h6, .h6){ font-size:var(--fs-13) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(h1, h2, h3, h4, h5, h6){ font-weight:700 !important; line-height:1.5; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(b, strong){ font-weight:700; }
/* template size utilities: no outsized one-offs */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is([class*="tx-10"], [class*="tx-11"]){ font-size:var(--fs-11) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.tx-12, .tx-13){ font-size:var(--fs-12) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.tx-14, .tx-15){ font-size:var(--fs-13) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.tx-16, .tx-17, .tx-18){ font-size:var(--fs-14) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.tx-20, .tx-22, .tx-24, .tx-26, .tx-28, .tx-30, .tx-32, .tx-36, .tx-40, .tx-48, .font-14, .font-16){ font-size:var(--fs-16) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.font-weight-bolder, .font-weight-extrabold, .fw-bolder, .fw-900, .fw-800, .tx-bold){ font-weight:700 !important; }
/* page title band */
body.enjaz-ui .breadcrumb-header :is(.content-title, .main-content-title, h2, h3, h4),
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero, .supervision-toolbar) :is(h1, h2, h3, h4, .title, .hero-title){
  font-size:var(--fs-16) !important; font-weight:700 !important;
}
body.enjaz-ui .breadcrumb-header :is(.text-muted, p, .tx-13, .breadcrumb-item, .breadcrumb-item a),
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, [class$="-hero"], [class*="-hero "], .cc-header, .mq-hero) p{ font-size:var(--fs-12) !important; }
/* rail */
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item :is(.side-menu__label, .d-flex){ font-size:var(--fs-13) !important; font-weight:500 !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu__item.active :is(.side-menu__label, .d-flex){ font-weight:600 !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-item, .sub-slide-item, .sub-slide-item2, .sub-side-menu__item, .slide-menu .side-menu__item){ font-size:var(--fs-12) !important; }
body.enjaz-ui .side-item.side-item-category{ font-size:var(--fs-11) !important; font-weight:600 !important; }
body.enjaz-ui .app-sidebar .user-info h4{ font-size:var(--fs-13) !important; font-weight:600 !important; }
body.enjaz-ui .app-sidebar :is(.user-meta, .branch-badge){ font-size:var(--fs-11) !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .side-menu :is(.side-menu__icon, .side-menu__item > i, .side-menu__item .d-flex > i){ font-size:16px !important; width:18px !important; text-align:center; }
/* surfaces */
body.enjaz-ui :is(.card-title, .card-header .card-title, .card-header h3, .card-header h4, .card-header h5, .main-card > h3, .zk-att-card-head h3){ font-size:var(--fs-14) !important; font-weight:700 !important; }
body.enjaz-ui .card.sales-card h6{ font-size:var(--fs-12) !important; font-weight:600 !important; }
body.enjaz-ui .card.sales-card :is(h4, h4 *){ font-size:var(--fs-20) !important; font-weight:700 !important; }
body.enjaz-ui .card.sales-card :is(p, .float-right, .float-right *){ font-size:var(--fs-11) !important; }
body.enjaz-ui .card1 h5{ font-size:var(--fs-12) !important; }
body.enjaz-ui .card1 .stat-number{ font-size:var(--fs-18) !important; font-weight:700 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.stat-card, .kpi-card, .kpi, .stat-box, .zk-stat, .stat, .mc-stat, .network-stat, [class$="-stat"], [class*="-stat "], .main-card) :is(.stat-number2, .kpi-value, .stat-value, .val, .num, [class$="-value"], .stat-num, .stat-amount){ font-size:var(--fs-18) !important; font-weight:700 !important; line-height:1.4 !important; }
/* controls */
body.enjaz-ui .btn{ font-size:var(--fs-13) !important; font-weight:600 !important; }
body.enjaz-ui :is(.btn-sm, .btn-group-sm > .btn){ font-size:var(--fs-12) !important; }
body.enjaz-ui .btn-lg{ font-size:var(--fs-14) !important; }
body.enjaz-ui :is(.badge, .main-content li[class*="bg-"]){ font-size:var(--fs-11) !important; font-weight:600 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.pill, .chip, .tag, .badge-soft, .status-badge, [class$="-pill"], [class*="-pill "], [class*="-pill-"], [class$="-chip"], [class*="-chip "], [class$="-badge"], [class*="-badge "], [class*="request-tag"]){
  font-size:var(--fs-11) !important; font-weight:600 !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(button, a):is([class*="-btn"], [class^="btn-"], [class*=" btn-"]):not(.btn){ font-size:var(--fs-12) !important; font-weight:600 !important; }
/* forms */
body.enjaz-ui :is(.form-control, .custom-select, .form-select, select.form-control, input, select, textarea){ font-size:var(--fs-13) !important; }
body.enjaz-ui :is(label, .form-label){ font-size:var(--fs-12) !important; font-weight:600 !important; }
/* tables */
body.enjaz-ui .table{ font-size:var(--fs-13) !important; }
body.enjaz-ui .table :is(td, th){ font-size:var(--fs-13); }
body.enjaz-ui .table thead th{ font-size:var(--fs-12) !important; font-weight:600 !important; }
body.enjaz-ui .pagination .page-link{ font-size:var(--fs-12) !important; font-weight:600 !important; }
/* tabs, menus, modals, alerts */
body.enjaz-ui :is(.nav-tabs .nav-link, .tabs-menu ul li a, .tabs-menu1 ul li a, .panel-tabs a){ font-size:var(--fs-13) !important; font-weight:600 !important; }
body.enjaz-ui .dropdown-item{ font-size:var(--fs-13) !important; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.modal-title, h4, h5, h6){ font-size:var(--fs-14) !important; font-weight:700 !important; }
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x) :is(a, .accordion-toggle, h4, .panel-title1){ font-size:var(--fs-13) !important; font-weight:600 !important; }
body.enjaz-ui .main-header-right > a.btn{ font-size:var(--fs-11) !important; }

/* 16.3 One alert / warning component everywhere (each keeps its own hue) */
:root{
  --al-ok-bg:#ecfdf3;   --al-ok-line:#bbf7d0;   --al-ok-bar:#16a34a;   --al-ok-ink:#166534;
  --al-bad-bg:#fef2f2;  --al-bad-line:#fecaca;  --al-bad-bar:#dc2626;  --al-bad-ink:#991b1b;
  --al-warn-bg:#fffbeb; --al-warn-line:#fde68a; --al-warn-bar:#f59e0b; --al-warn-ink:#92400e;
  --al-info-bg:#eff6ff; --al-info-line:#bfdbfe; --al-info-bar:#3b82f6; --al-info-ink:#1e40af;
  --al-neu-bg:#f4f6f9;  --al-neu-line:#e2e8f0;  --al-neu-bar:#64748b;  --al-neu-ink:#334155;
}
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert, [class$="-alert"], [class*="-alert "], [class*="warning-box"], [class*="-notice"], .notice, .callout, [class*="global-warning"]):not(.alert-dismissible-x){
  --al-bg:var(--al-info-bg); --al-line:var(--al-info-line); --al-bar:var(--al-info-bar); --al-ink:var(--al-info-ink);
  display:block;
  padding:.65rem .9rem !important;
  border:1px solid var(--al-line) !important;
  border-inline-start:4px solid var(--al-bar) !important;
  border-radius:10px !important;
  background:var(--al-bg) !important;
  background-image:none !important;
  color:var(--al-ink) !important;
  box-shadow:none !important;
  font-size:var(--fs-13) !important;
  font-weight:500 !important;
  line-height:1.65 !important;
}
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert, [class$="-alert"], [class*="-alert "], [class*="warning-box"], [class*="-notice"], .notice, .callout, [class*="global-warning"]).d-flex{ display:flex; align-items:center; gap:.5rem; }
/* tones */
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert-success, .alert-outline-success, [class*="-alert"][class*="success"], [class*="notice"][class*="success"]){ --al-bg:var(--al-ok-bg); --al-line:var(--al-ok-line); --al-bar:var(--al-ok-bar); --al-ink:var(--al-ok-ink); }
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert-danger, .alert-outline-danger, [class*="-alert"]:is([class*="danger"], [class*="urgent"], [class*="error"], [class*="expired"], [class*="red"]), [class*="notice"][class*="danger"]){ --al-bg:var(--al-bad-bg); --al-line:var(--al-bad-line); --al-bar:var(--al-bad-bar); --al-ink:var(--al-bad-ink); }
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert-warning, .alert-outline-warning, [class*="-alert"][class*="warn"], [class*="warning-box"], [class*="global-warning"], [class*="notice"][class*="warn"]){ --al-bg:var(--al-warn-bg); --al-line:var(--al-warn-line); --al-bar:var(--al-warn-bar); --al-ink:var(--al-warn-ink); }
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert-info, .alert-outline-info, .alert-primary){ --al-bg:var(--al-info-bg); --al-line:var(--al-info-line); --al-bar:var(--al-info-bar); --al-ink:var(--al-info-ink); }
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert-secondary, .alert-light, .alert-dark){ --al-bg:var(--al-neu-bg); --al-line:var(--al-neu-line); --al-bar:var(--al-neu-bar); --al-ink:var(--al-neu-ink); }
/* contents inherit the alert's ink */
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert, [class$="-alert"], [class*="-alert "], [class*="warning-box"], [class*="-notice"], .notice, .callout, [class*="global-warning"])
  :is(h4, h5, h6, p, span, strong, b, small, div, i, li):not(.btn):not(.badge):not([class*="pill"]):not([class*="count"]){ color:inherit !important; }
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert, [class$="-alert"], [class*="-alert "]) :is(h4, h5, h6, .alert-heading, strong:first-child){ font-size:var(--fs-13) !important; font-weight:700 !important; margin-bottom:.15rem; }
:is(body.enjaz-ui, body.enjaz-standalone) :is(.alert, [class$="-alert"], [class*="-alert "]) a:not(.btn){ color:inherit !important; font-weight:600; text-decoration:underline; text-underline-offset:2px; }
:is(body.enjaz-ui, body.enjaz-standalone) .alert .close{ color:inherit !important; opacity:.7 !important; text-shadow:none !important; }
/* the sidebar's own alerts keep the same component, a touch smaller */
body.enjaz-ui .app-sidebar .alert{ font-size:var(--fs-12) !important; padding:.5rem .65rem !important; }

/* 16.4 Overdue / expired notices read as red alerts */
:is(body.enjaz-ui, body.enjaz-standalone) :is([class*="-alert"], [class*="-notice"], .notice):is([class*="overdue"], [class*="expired"], [class*="late"]){
  --al-bg:var(--al-bad-bg) !important; --al-line:var(--al-bad-line) !important; --al-bar:var(--al-bad-bar) !important; --al-ink:var(--al-bad-ink) !important;
}

/* 16.5 Small text never drops below the 11px step */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(small, .small, code){ font-size:var(--fs-11) !important; }

/* =====================================================================
   17. Page-by-page consistency
   ===================================================================== */
/* 17.1 Notification lists (page and header dropdown) */
body.enjaz-ui .main-content > .container-fluid .menu-header-content{
  display:block; padding:.85rem 1.1rem !important;
  background:var(--ez-surface) !important; background-image:none !important;
  border:1px solid var(--ez-border) !important; border-bottom:0 !important;
  border-radius:var(--ez-r-md) var(--ez-r-md) 0 0 !important;
}
body.enjaz-ui .main-content > .container-fluid .menu-header-content :is(h6, .dropdown-title, h5){ color:var(--ez-heading) !important; font-size:var(--fs-14) !important; font-weight:700 !important; }
body.enjaz-ui .main-content > .container-fluid .menu-header-content :is(p, .subtext, small){ color:var(--ez-muted) !important; font-size:var(--fs-12) !important; }
body.enjaz-ui .main-content > .container-fluid .main-notification-list{
  background:var(--ez-surface); border:1px solid var(--ez-border); border-radius:0 0 var(--ez-r-md) var(--ez-r-md); overflow:hidden;
}
/* status rows: tint + bar by the row's own colour */
body.enjaz-ui :is(.main-notification-list > a, .main-notification-list > div > a, tr, li, .list-group-item):is([style*="#fff3cd"], [style*="#FFF3CD"], [style*="#f8d7da"], [style*="#F8D7DA"], [style*="#f9dada"], [style*="#d4edda"], [style*="#D4EDDA"], [style*="#d1ecf1"]){
  position:relative;
  border-inline-start:4px solid var(--al-bar) !important;
  background-color:var(--al-bg) !important;
}
body.enjaz-ui :is(a, tr, li, .list-group-item):is([style*="#fff3cd"], [style*="#FFF3CD"]){ --al-bg:var(--al-warn-bg); --al-bar:var(--al-warn-bar); }
body.enjaz-ui :is(a, tr, li, .list-group-item):is([style*="#f8d7da"], [style*="#F8D7DA"], [style*="#f9dada"]){ --al-bg:var(--al-bad-bg); --al-bar:var(--al-bad-bar); }
body.enjaz-ui :is(a, tr, li, .list-group-item):is([style*="#d4edda"], [style*="#D4EDDA"]){ --al-bg:var(--al-ok-bg); --al-bar:var(--al-ok-bar); }
body.enjaz-ui :is(a, tr, li, .list-group-item)[style*="#d1ecf1"]{ --al-bg:var(--al-info-bg); --al-bar:var(--al-info-bar); }
body.enjaz-ui .main-notification-list > a{ padding:.8rem 1rem !important; border-bottom:1px solid var(--ez-border) !important; transition:filter .15s ease; }
body.enjaz-ui .main-notification-list > a:hover{ filter:brightness(.98); }
body.enjaz-ui .main-notification-list :is(h5, .notification-label){ color:var(--ez-heading) !important; font-size:var(--fs-13) !important; font-weight:600 !important; margin-bottom:.15rem !important; }
body.enjaz-ui .main-notification-list .notification-subtext{ color:var(--ez-muted) !important; font-size:var(--fs-12) !important; }
/* notification icon tile: one shape, own colour */
body.enjaz-ui .notifyimg{
  display:grid !important; place-items:center; flex:none;
  width:36px !important; height:36px !important; border-radius:10px !important; box-shadow:none !important;
}
body.enjaz-ui .notifyimg i{ color:#fff !important; font-size:16px !important; line-height:1 !important; }

/* 17.2 Coloured card headers -> standard light header + a top strip in their own colour */
body.enjaz-ui .main-content .card-header:is(.bg-primary, .bg-info, .bg-success, .bg-danger, .bg-warning, .bg-dark, .bg-secondary, [class*="-gradient"]):not(.panel-heading1){
  --ch-strip:#0156cc;
  background:var(--ez-surface) !important; background-image:none !important;
  color:var(--ez-heading) !important;
  border-top:3px solid var(--ch-strip) !important;
  border-bottom:1px solid var(--ez-border) !important;
}
body.enjaz-ui .main-content .card-header.bg-info{ --ch-strip:#0277bd; }
body.enjaz-ui .main-content .card-header.bg-success{ --ch-strip:#15803d; }
body.enjaz-ui .main-content .card-header.bg-danger{ --ch-strip:#c81e4a; }
body.enjaz-ui .main-content .card-header.bg-warning{ --ch-strip:#f59e0b; }
body.enjaz-ui .main-content .card-header:is(.bg-dark, .bg-secondary){ --ch-strip:#334155; }
body.enjaz-ui .main-content .card-header:is(.bg-primary, .bg-info, .bg-success, .bg-danger, .bg-warning, .bg-dark, .bg-secondary, [class*="-gradient"]) :is(*, .text-white){ color:var(--ez-heading) !important; }
body.enjaz-ui .main-content .card-header:is(.bg-primary, .bg-info, .bg-success, .bg-danger, .bg-warning, .bg-dark, .bg-secondary):is(.text-white, [class]){ font-size:var(--fs-13) !important; font-weight:700 !important; }

/* 17.3 Service logos: contained on white, not cropped */
body.enjaz-ui .main-content img.card-img-top[src*="Attachments_services"]{
  height:140px !important; object-fit:contain !important; padding:1rem; background:var(--ez-surface); border-bottom:1px solid var(--ez-border);
}

/* 17.4 Hero icon tiles on the light band: light tile, navy icon */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is([class*="hero-icon"], .cc-header-icon, .security-hero-icon){
  display:inline-grid !important; place-items:center;
  width:44px !important; height:44px !important; min-width:44px;
  background:var(--ez-surface) !important; background-image:none !important;
  border:1px solid var(--ez-border) !important; border-radius:12px !important;
  color:var(--ez-navy) !important; box-shadow:none !important; font-size:20px !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is([class*="hero-icon"], .cc-header-icon, .security-hero-icon) :is(i, svg){ color:inherit !important; fill:currentColor; font-size:20px !important; }

/* 17.5 More module banners join the shared hero band; filter bars and modal headers use the same band */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head, .filter-head),
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x),
body.enjaz-ui :is(.modal, #ez-x) .modal-header{
  position:relative !important; isolation:isolate; overflow:hidden !important;
  background:var(--ez-hero-bg) !important; background-color:transparent !important;
  background-image:none !important;
  border:1px solid var(--ez-hero-line) !important;
  box-shadow:none !important;
  color:var(--ez-heading) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head){ border-radius:var(--ez-r-lg) !important; }
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x){ border-radius:var(--ez-r-md) !important; background-color:#f7f9fb !important; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header{ border-width:0 0 1px 0 !important; border-radius:0 !important; background-color:#f7f9fb !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head)::before,
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x)::before,
body.enjaz-ui :is(.modal, #ez-x) .modal-header::before{
  content:"" !important; display:block !important; position:absolute !important; inset:0 !important; z-index:-1 !important;
  background:none !important; background-image:var(--ez-hero-hatch) !important;
  -webkit-mask-image:linear-gradient(to left, #000, transparent 70%); mask-image:linear-gradient(to left, #000, transparent 70%);
  pointer-events:none; opacity:1 !important; transform:none !important; width:auto !important; height:auto !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head)::after{
  content:"" !important; display:block !important; position:absolute !important; z-index:-1 !important;
  inset:auto !important; inset-inline-end:26% !important; top:50% !important; transform:translateY(-50%) !important;
  width:180px !important; height:auto !important; aspect-ratio:520/270; background:var(--ez-navy) !important; opacity:.045 !important;
  -webkit-mask:var(--ez-chevrons) center/contain no-repeat; mask:var(--ez-chevrons) center/contain no-repeat; pointer-events:none;
}
/* text on these light bands */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head, .filter-head) :is(h1, h2, h3, h4, h5, .title, [class*="-title"], strong){
  color:var(--ez-heading) !important; font-size:var(--fs-16) !important; font-weight:700 !important; text-shadow:none !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head, .filter-head)
  :is(p, small, span, div, label):not(.btn):not([class*="btn"]):not([class*="badge"]):not([class*="pill"]):not([class*="chip"]):not([class*="icon"]){
  color:var(--ez-text) !important; opacity:1 !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.page-header-card, .hero-card, .agents-head, .page-head) :is(i, [class*="icon"]):not(.btn i){ color:var(--ez-navy) !important; }
body.enjaz-ui :is(.panel-heading1, .panel-heading, #ez-x) :is(a, .accordion-toggle, h4, .panel-title1, i){ color:var(--ez-heading) !important; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.modal-title, h1, h2, h3, h4, h5, h6, span, p){ color:var(--ez-heading) !important; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.close, .btn-close){ background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; color:var(--ez-muted) !important; }
body.enjaz-ui :is(.modal, #ez-x) .modal-header :is(.close, .btn-close) *{ color:inherit !important; }
body.enjaz-ui .modal-header .btn-close{ filter:none; }
/* pages that paint a gradient behind everything */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.leads-page, .cvs-page){ background:transparent !important; background-image:none !important; }
/* the fallback band steps aside for these banners too */
body.enjaz-ui .main-content > .container-fluid:has(:is(.page-header-card, .hero-card, .agents-head, .page-head)) > .ez-auto-hero{ display:none !important; }

/* 17.6 One hero per page: a plain breadcrumb band steps aside when the page draws its own hero */
body.enjaz-ui .main-content > .container-fluid:has(:is(.hero, .wa-bg, .page-hero, .hero-box, .top-hero, [class$="-hero"], [class*="-hero "],
  .cc-header, .mq-hero, .supervision-toolbar, .page-header-card, .hero-card, .agents-head, .page-head):not(.breadcrumb-header))
  > .breadcrumb-header:not(:has(.btn, form, select, input, button, .status-container)){ display:none !important; }

/* 17.7 Every hero band shares one padding and spacing */
body.enjaz-ui .breadcrumb-header,
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hero, .wa-bg, .page-hero, .dashboard-header, .hero-box, .top-hero,
  [class$="-hero"], [class*="-hero "], .cc-header, .cc-head, .mq-hero, .supervision-toolbar, .page-header-card, .hero-card, .agents-head, .page-head){
  padding:1.1rem 1.35rem !important;
  min-height:72px;
  margin-top:1.25rem !important;
  margin-bottom:1.25rem !important;
}

/* 17.8 Translucent status fills (cancelled / ended / ending soon) -> status tint + edge bar */
body.enjaz-ui .main-content :is([style*="#fdc1c1a8"], [style*="#ffd4d4a8"], [style*="#b95959a8"], [style*="#f5ebcfa8"]){
  border-inline-start:4px solid var(--al-bar) !important;
  background-color:var(--al-bg) !important;
}
body.enjaz-ui .main-content :is([style*="#fdc1c1a8"], [style*="#ffd4d4a8"], [style*="#b95959a8"]){ --al-bg:var(--al-bad-bg); --al-bar:var(--al-bad-bar); }
body.enjaz-ui .main-content [style*="#f5ebcfa8"]{ --al-bg:var(--al-warn-bg); --al-bar:var(--al-warn-bar); }

/* 17.9 Contrast: restore fixes dropped in v3 and deepen near-miss colours within their own hue */
/* render-time colours */
body.enjaz-ui .main-content :is([style*="color: red"], [style*="color:red"], [style*="color: #ff0000"], [style*="color:#ff0000"]),
body.enjaz-ui .main-content :is([style*="color: red"], [style*="color:red"]) *{ color:#c81e1e !important; }
body.enjaz-ui .main-content :is([style*="color: green"], [style*="color:green"]),
body.enjaz-ui .main-content :is([style*="color: green"], [style*="color:green"]) *{ color:#166534 !important; }
body.enjaz-ui .main-content [style*="#fbbc0b"]:not([style*="background"]){ color:#a16207 !important; }
body.enjaz-ui :is(.main-content, .main-header) span[style*="background:red"], body.enjaz-ui :is(.main-content, .main-header) span[style*="background: red"]{ background:#dc2626 !important; }
/* links inside tags take the tag's colour */
body.enjaz-ui :is(.badge, #ez-x) a{ color:inherit !important; }
/* card-primary headers with white text */
body.enjaz-ui .main-content :is(.card-primary, .card-info, .card-success, .card-danger, .card-warning) > .card-header,
body.enjaz-ui .main-content :is(.card-primary, .card-info, .card-success, .card-danger, .card-warning) > .card-header *:not(.btn):not(.badge){ color:var(--ez-heading) !important; }
/* dark totals rows on the revenues page: ink row, white figures */
body.enjaz-ui .main-content [style*="darkslategray"]{ background-color:var(--ez-navy) !important; }
body.enjaz-ui .main-content [style*="darkslategray"] *:not(.btn):not(.badge){ color:#fff !important; }
body.enjaz-ui .main-content [style*="darkslategray"] :is(.text-warning, .text-danger, [style*="color"]){ color:#fcd34d !important; }
/* strong pink worker rows join the status tint */
body.enjaz-ui .main-content [style*="#f1babd"]{ background-color:var(--al-bad-bg) !important; border-inline-start:4px solid var(--al-bad-bar) !important; }
/* outline buttons: same hues, one step deeper */
body.enjaz-ui .btn-outline-primary{ color:#0156cc !important; border-color:#0156cc !important; }
body.enjaz-ui .btn-outline-success{ color:#15803d !important; border-color:#15803d !important; }
body.enjaz-ui .btn-outline-danger{ color:#c81e4a !important; border-color:#c81e4a !important; }
body.enjaz-ui .btn-outline-info{ color:#0277bd !important; border-color:#0277bd !important; }
body.enjaz-ui .btn-outline-warning{ color:#a16207 !important; border-color:#d9a40a !important; }
body.enjaz-ui .btn-outline-secondary{ color:#4b5a74 !important; border-color:#94a3b8 !important; }
body.enjaz-ui :is(.btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-info, .btn-outline-secondary):hover{ color:#fff !important; }
body.enjaz-ui .btn-outline-primary:hover{ background:#0156cc !important; }
body.enjaz-ui .btn-outline-success:hover{ background:#15803d !important; }
body.enjaz-ui .btn-outline-danger:hover{ background:#c81e4a !important; }
body.enjaz-ui .btn-outline-info:hover{ background:#0277bd !important; }
body.enjaz-ui .btn-outline-secondary:hover{ background:#4b5a74 !important; }
body.enjaz-ui [class*="btn-gray-"]{ background-color:#64748b !important; border-color:#64748b !important; color:#fff !important; }
body.enjaz-ui :is(.btn-indigo, .bg-indigo){ background-color:#8e3fa0 !important; border-color:#8e3fa0 !important; }
body.enjaz-ui .main-content .btn.btn-sm:not([class*="btn-"]):is([style*="color"], .text-danger){ color:#c81e4a !important; }
body.enjaz-ui .text-info{ color:#02679f !important; }
/* module figures and names just under 4.5:1 */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.money-positive, .balance-positive, [class*="-positive"]){ color:#116a4c !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.amount-badge, .result-count-badge){ color:#25667a !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-employee-name, .chat-employee-name){ color:#0f6b60 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.pill-accent, .badge-soft:not([class*="badge-"][class*=" badge-"]):not(.badge-red):not(.badge-blue):not(.badge-amber):not(.badge-yellow):not(.badge-orange):not(.badge-gray):not(.badge-grey):not(.badge-purple), .agent-tag.active){ color:#166534 !important; }
/* coloured soft badges keep their own meaning, with readable inks */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .badge-soft.badge-green{ color:#166534 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .badge-soft.badge-red{ color:#9f1239 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .badge-soft.badge-blue{ color:#1e40af !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .badge-soft:is(.badge-amber, .badge-yellow, .badge-orange){ color:#92400e !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .badge-soft:is(.badge-gray, .badge-grey){ color:#334155 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .badge-soft.badge-purple{ color:#5b21b6 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.muted, .main-profile-name-text){ color:var(--ez-muted) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) code{ color:#b8005a !important; }
/* ERP tools: header text that was white on a gradient */
body.enjaz-ui .main-content header > :is(.subtitle, p){ color:var(--ez-muted) !important; }
body.enjaz-ui .main-content header > h1{ color:var(--ez-heading) !important; }
/* red warning text that sits inside a solid info chip */
body.enjaz-ui .main-content :is(.bg-info, .btn-info, .badge-info) :is([style*="color: red"], [style*="color:red"]){ color:#fff !important; font-weight:700; }

/* =====================================================================
   18. Consistency pass (reported examples + sweep)
   ===================================================================== */
/* 18.1 Section headings inside home/module cards: same as card titles */
body.enjaz-ui .main-content :is(.main-card > h3, .main-card > h4, .zk-att-card-head h3, .section-title, .panel-title){
  font-size:var(--fs-14) !important; font-weight:700 !important; color:var(--ez-heading) !important; line-height:1.5 !important;
}
/* 18.2 Revenue / expense tiles keep their white text on their gradients */
body.enjaz-ui .main-content .card1, body.enjaz-ui .main-content .card1 :is(h5, span, .stat-number, small, b){ color:#fff !important; }
body.enjaz-ui .main-content .card1 .riyal-icon{ filter:brightness(0) invert(1); opacity:.85; }
/* 18.3 Conversation lists: names/phones 13/600, previews 12/400, times 11/400 */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-phone-number, .wa-name, .chat-name, .wa-contact-name){ font-size:var(--fs-13) !important; font-weight:600 !important; line-height:1.5 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-preview, .chat-preview, .wa-last-message){ font-size:var(--fs-12) !important; font-weight:400 !important; color:var(--ez-muted) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-time, .wa-list-time, .chat-time){ font-size:var(--fs-11) !important; font-weight:400 !important; color:var(--ez-muted) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .wa-employee-name{ font-size:var(--fs-11) !important; font-weight:500 !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .wa-brand-title{ font-size:var(--fs-14) !important; }

/* 18.4 One tag component (each tag keeps its own colour) */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(
  .badge, li[class*="bg-"], .branchnameList li, .branchname,
  .pill, .chip, .tag, .badge-soft, .status-badge,
  [class$="-pill"], [class*="-pill "], [class*="-pill-"], [class$="-chip"], [class*="-chip "],
  [class$="-badge"]:not(.notification-badge):not(.wa-badge), [class*="-badge "], [class*="request-tag"],
  .hr-urgent-count, .hr-dashboard-total, .hr-status-total, .hr-status-page-count, .hr-accordion-badge, .badge-count, .result-count-badge
):not(.btn):not(button.hr-pill):not(.notifyimg){
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center;
  gap:.3rem !important;
  height:24px !important;
  min-height:0 !important;
  padding:0 .55rem !important;
  margin:2px !important;
  border-radius:6px !important;
  font-size:var(--fs-11) !important;
  font-weight:600 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  vertical-align:middle;
  box-shadow:none !important;
  list-style:none;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.badge, li[class*="bg-"], .branchnameList li, [class*="-pill"], [class*="-chip"], [class*="-badge"], .hr-urgent-count, .hr-dashboard-total, .hr-status-total, .hr-status-page-count) :is(i, svg){
  font-size:11px !important; width:auto !important; height:auto !important; margin:0 !important;
}
/* tag lists sit on one wrapping row */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.branchnameList, ul:has(> li[class*="bg-"])){ display:flex !important; flex-wrap:wrap; align-items:center; gap:.3rem; padding:0 !important; margin:0 0 .5rem !important; }
/* clickable pills (buttons styled as tags) get the same box */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) button.hr-pill{ height:24px !important; padding:0 .55rem !important; border-radius:6px !important; font-size:var(--fs-11) !important; font-weight:600 !important; line-height:1 !important; }
/* small status buttons used as tags in contract cards line up with the tags */
:is(body.enjaz-ui .main-content) a.btn-sm.text-white.disabled{ height:24px !important; min-height:0 !important; padding:0 .55rem !important; font-size:var(--fs-11) !important; }

/* 18.5 One font for all text in content (modules that set Cairo/Tahoma/Tajawal on containers).
   The exclusions sit on the SAME element (no whitespace between them), so icon fonts are never touched. */
:is(body.enjaz-ui .main-content, body.enjaz-ui .app-sidebar, body.enjaz-ui .main-header, body.enjaz-standalone, body.enjaz-ui .modal, body.enjaz-ui .sidebar) *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fe):not(.las):not(.lar):not(.lab):not(.la):not(.mdi):not(.typcn):not(.bx):not(.bi):not(.ion):not(.ti):not(.glyphicon):not(.si):not([class^="fa-"]):not([class*=" fa-"]):not([class^="fe-"]):not([class*=" fe-"]):not([class^="la-"]):not([class*=" la-"]):not([class^="ti-"]):not([class*=" ti-"]):not([class^="icon-"]):not([class*=" icon-"]):not([class^="mdi-"]):not([class*=" mdi-"]):not([class^="bx-"]):not([class*=" bx-"]):not([class^="bi-"]):not([class*=" bi-"]):not([class^="ion-"]):not([class*=" ion-"]):not([class^="si-"]):not([class*=" si-"]):not(code):not(pre):not(kbd):not(samp):not(.pbx-ip):not(.mono){
  font-family:var(--ez-font) !important;
}
/* 18.6 Off-scale stragglers */
body.enjaz-ui .dataTables_wrapper :is(.dataTables_info, .dataTables_length, .dataTables_filter, .dataTables_paginate){ font-size:var(--fs-12) !important; }
body.enjaz-ui .select2-container .select2-selection__rendered, body.enjaz-ui .select2-results__option{ font-size:var(--fs-13) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) p.text-justify{ font-size:var(--fs-13) !important; }

/* 18.7 HR follow-up and other modules that set fonts with higher weight */
:is(body.enjaz-ui .main-content, #ez-x) :is(.hr-hero-date, .hr-dashboard-total, .hr-groups-title, .hr-register-caption, .hr-overdue-notice, .pbx-subtitle, [class^="hr-"], [class*=" hr-"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fe):not(.las):not(.lar):not(.lab):not(.la):not(.mdi):not(.typcn):not(.bx):not(.bi):not(.ion):not(.ti):not(.glyphicon):not(.si):not([class^="fa-"]):not([class*=" fa-"]):not([class^="fe-"]):not([class*=" fe-"]):not([class^="la-"]):not([class*=" la-"]):not([class^="ti-"]):not([class*=" ti-"]):not([class^="icon-"]):not([class*=" icon-"]):not([class^="mdi-"]):not([class*=" mdi-"]):not([class^="bx-"]):not([class*=" bx-"]):not([class^="bi-"]):not([class*=" bi-"]):not([class^="ion-"]):not([class*=" ion-"]):not([class^="si-"]):not([class*=" si-"]):not(code):not(pre):not(kbd):not(samp):not(.pbx-ip):not(.mono){
  font-family:var(--ez-font) !important;
}
/* 18.8 Residency follow-up: lower menu / register contrast */
:is(body.enjaz-ui .main-content, #ez-x) .hr-register-caption{ color:var(--ez-muted) !important; }
:is(body.enjaz-ui .main-content, #ez-x) .btn-outline-light{ color:var(--ez-text) !important; border-color:var(--ez-border-strong) !important; background:var(--ez-surface) !important; }
:is(body.enjaz-ui .main-content, #ez-x) .btn-outline-light:hover{ background:var(--ez-surface-2) !important; }
/* the "online" status button keeps a solid green with white text */
body.enjaz-ui :is(.btn-success-gradient, #ez-x).btn-sm{ background:#15803d !important; background-image:none !important; color:#fff !important; border:0 !important; }

/* 18.9 Section headers that were dark gradients (HR register etc.) -> the shared light band */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-register-head, [class$="-register-head"], [class*="-register-head "]){
  position:relative !important; isolation:isolate; overflow:hidden !important;
  background:#f7f9fb !important; background-image:none !important;
  border-bottom:1px solid var(--ez-hero-line) !important; box-shadow:none !important;
  color:var(--ez-heading) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-register-head, [class$="-register-head"])::before{
  content:"" !important; display:block !important; position:absolute !important; inset:0 !important; z-index:-1 !important;
  background:none !important; background-image:var(--ez-hero-hatch) !important; opacity:1 !important;
  -webkit-mask-image:linear-gradient(to left, #000, transparent 70%); mask-image:linear-gradient(to left, #000, transparent 70%);
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-register-head, [class$="-register-head"]) :is(h1, h2, h3, h4, h5, strong, [class*="title"]){ color:var(--ez-heading) !important; font-size:var(--fs-14) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-register-head, [class$="-register-head"]) :is(p, small, span, div, [class*="caption"]):not(.btn):not([class*="btn"]):not([class*="badge"]):not([class*="pill"]){ color:var(--ez-muted) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-register-head, [class$="-register-head"]) :is(i, [class*="icon"]){ color:var(--ez-navy) !important; }

/* 18.10 WhatsApp module headers that were still dark (send log, send/templates/ramadan topbars, country & nationality settings)
   -> the shared light band, with dark text and light controls */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head){
  position:relative !important; isolation:isolate; overflow:hidden !important;
  background:var(--ez-hero-bg) !important; background-color:transparent !important; background-image:none !important;
  border:1px solid var(--ez-hero-line) !important; border-radius:var(--ez-r-lg) !important;
  box-shadow:none !important; color:var(--ez-heading) !important;
  padding:1.1rem 1.35rem !important; min-height:72px; margin-top:1.25rem !important; margin-bottom:1.25rem !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head)::before{
  content:"" !important; display:block !important; position:absolute !important; inset:0 !important; z-index:-1 !important;
  background:none !important; background-image:var(--ez-hero-hatch) !important;
  -webkit-mask-image:linear-gradient(to left, #000, transparent 70%); mask-image:linear-gradient(to left, #000, transparent 70%);
  pointer-events:none; opacity:1 !important; transform:none !important; width:auto !important; height:auto !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head)::after{
  content:"" !important; display:block !important; position:absolute !important; z-index:-1 !important;
  inset:auto !important; inset-inline-end:26% !important; top:50% !important; transform:translateY(-50%) !important;
  width:180px !important; height:auto !important; aspect-ratio:520/270; background:var(--ez-navy) !important; opacity:.045 !important;
  -webkit-mask:var(--ez-chevrons) center/contain no-repeat; mask:var(--ez-chevrons) center/contain no-repeat; pointer-events:none;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head) :is(h1, h2, h3, h4, h5, .title, .t-title, .wa-title){
  color:var(--ez-heading) !important; font-size:var(--fs-16) !important; font-weight:700 !important; text-shadow:none !important; opacity:1 !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head) :is(p, .sub, .t-sub, .wa-sub){
  color:var(--ez-text) !important; opacity:1 !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head) :is(h1, h2, h3, h4, h5, .title, .t-title, .wa-title) i{ color:var(--ez-navy) !important; }
/* ghost buttons and the date pill were white-on-dark: now the light control */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head) :is(.btn-ghost, .btn-light, .pill){
  background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; color:var(--ez-heading) !important;
  border-radius:var(--ez-r-xs) !important; box-shadow:none !important; transform:none !important; opacity:1 !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head) :is(.btn-ghost, .btn-light, .pill):hover{ background:var(--ez-surface-2) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.wa-head, .topbar, .wrap > .head) :is(.btn-ghost, .btn-light, .pill) i{ color:inherit !important; }
/* one hero per page: the fallback band steps aside */
body.enjaz-ui .main-content > .container-fluid:has(:is(.wa-head, .topbar, .wrap > .head)) > :is(.ez-auto-hero, .breadcrumb-header:not(:has(.btn, form, select, input, button, .status-container))){ display:none !important; }

/* 18.11 Request-page stat tiles: no stray blue blob; the two loose counters sit side by side */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat:not(.zk-stat)::after{ display:none !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :not(.stats) > .stat:not(.zk-stat):has(+ .stat){
  display:inline-block !important; width:calc(50% - 10px) !important; margin-inline-end:12px !important; vertical-align:top;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :not(.stats) > .stat:not(.zk-stat) + .stat:not(.zk-stat){
  display:inline-block !important; width:calc(50% - 10px) !important; vertical-align:top;
}

/* 18.12 Contrast on coloured tiles/heads that keep their own colours */
/* WhatsApp inbox side head (green gradient): the title was picked up by the heading colour */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .wa-side-head :is(.wa-brand-title, .wa-brand-sub, h1, h2, h3, h4, h5, h6, strong){ color:#fff !important; }
/* Warning KPI tiles (now muted cyan): white text */
body.enjaz-ui .card.sales-card.bg-warning-gradient :is(h1, h2, h3, h4, h5, h6, p, span, small, i, .text-white, .text-white-50){ color:#fff !important; opacity:1 !important; }

/* 18.13 Muted palette for coloured cards (blue / green / red as in the original colours; the old amber/warning slot is now a muted cyan,
   toned down). Matches the chart palette in enjaz-charts.js. Remove this section to return to the original card colours. */
:root{
  --pal-blue:#2f4f7f;  --pal-blue-2:#46689b;
  --pal-green:#2f7766; --pal-green-2:#43917d;
  --pal-red:#a9473b;   --pal-red-2:#c45d4e;
  --pal-amber:#287589; --pal-amber-2:#3f95ab; /* muted cyan (was mustard) */
}
body.enjaz-ui .card.sales-card:is(.bg-primary-gradient, .bg-primary){ background:linear-gradient(135deg, var(--pal-blue) 0%, var(--pal-blue-2) 100%) !important; }
body.enjaz-ui .card.sales-card.bg-success-gradient{ background:linear-gradient(135deg, var(--pal-green) 0%, var(--pal-green-2) 100%) !important; }
body.enjaz-ui .card.sales-card.bg-danger-gradient{ background:linear-gradient(135deg, var(--pal-red) 0%, var(--pal-red-2) 100%) !important; }
body.enjaz-ui .card.sales-card.bg-warning-gradient{ background:linear-gradient(135deg, var(--pal-amber) 0%, var(--pal-amber-2) 100%) !important; }
body.enjaz-ui .main-content .card1.revenue{ background:linear-gradient(135deg, var(--pal-green) 0%, var(--pal-green-2) 100%) !important; }
body.enjaz-ui .main-content .card1.expense{ background:linear-gradient(135deg, var(--pal-red) 0%, var(--pal-red-2) 100%) !important; }

/* 18.14 Soft tiles, icon tiles and badges on the muted palette (attendance, Musaned revenue, ZK, supervision, Musaned mobile) */
:root{
  --pal-blue-bg:#e9eef6;  --pal-blue-line:#c9d4e6;  --pal-blue-ink:#2f4f7f;
  --pal-green-bg:#e7f2ef; --pal-green-line:#bfdcd3; --pal-green-ink:#2a6a5b;
  --pal-red-bg:#f7eae8;   --pal-red-line:#e6c7c2;   --pal-red-ink:#9a4034;
  --pal-amber-bg:#e6f2f5; --pal-amber-line:#bcdbe3; --pal-amber-ink:#1f6476;
  --pal-violet-bg:#eeecf4; --pal-violet-ink:#55497a;
}
/* attendance summary boxes */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-mini-box.in{ background:var(--pal-green-bg) !important; border-color:var(--pal-green-line) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-mini-box.out{ background:var(--pal-red-bg) !important; border-color:var(--pal-red-line) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-mini-box.total{ background:var(--pal-blue-bg) !important; border-color:var(--pal-blue-line) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-mini-box.in strong{ color:var(--pal-green-ink) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-mini-box.out strong{ color:var(--pal-red-ink) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-mini-box.total strong{ color:var(--pal-blue-ink) !important; }
/* attendance badges */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-badge.in{ background:var(--pal-green-bg) !important; color:var(--pal-green-ink) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-badge.out{ background:var(--pal-red-bg) !important; color:var(--pal-red-ink) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-att-badge.face{ background:var(--pal-violet-bg) !important; color:var(--pal-violet-ink) !important; }
/* Musaned revenue icon tiles (solid) and their amounts */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.primary{ background:linear-gradient(135deg, var(--pal-blue), var(--pal-blue-2)) !important; box-shadow:none !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.success{ background:linear-gradient(135deg, var(--pal-green), var(--pal-green-2)) !important; box-shadow:none !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.warning{ background:linear-gradient(135deg, var(--pal-amber), var(--pal-amber-2)) !important; box-shadow:none !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.danger{ background:linear-gradient(135deg, var(--pal-red), var(--pal-red-2)) !important; box-shadow:none !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-card [style*="color: #0d746c"]{ color:var(--pal-green-ink) !important; }
/* supervision icon tiles (soft) */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.blue{ background:var(--pal-blue-bg) !important; color:var(--pal-blue-ink) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.green{ background:var(--pal-green-bg) !important; color:var(--pal-green-ink) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .stat-icon.red{ background:var(--pal-red-bg) !important; color:var(--pal-red-ink) !important; }
/* ZK attendance page stat tiles (solid) */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-stat:not(.green):not(.gold):not(.red){ background:linear-gradient(135deg, var(--pal-blue), var(--pal-blue-2)) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-stat.green{ background:linear-gradient(135deg, var(--pal-green), var(--pal-green-2)) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-stat.gold{ background:linear-gradient(135deg, var(--pal-amber), var(--pal-amber-2)) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .zk-stat.red{ background:linear-gradient(135deg, var(--pal-red), var(--pal-red-2)) !important; }
/* Musaned mobile status icons */
body.enjaz-standalone .card-icon.done{ background:linear-gradient(135deg, var(--pal-green), var(--pal-green-2)) !important; box-shadow:none !important; }
body.enjaz-standalone .card-icon.wait{ background:linear-gradient(135deg, var(--pal-amber), var(--pal-amber-2)) !important; box-shadow:none !important; }

/* 18.15 Home: employee productivity cards (profile tiles, branch / contracts tags, rank marks) */
body.enjaz-ui .main-content .employee-rank-container{ gap:12px; padding:14px 16px 16px !important; }
body.enjaz-ui .main-content .employee-card{
  background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; border-radius:var(--ez-r-md) !important;
  box-shadow:var(--ez-shadow-sm) !important; padding:14px 12px !important; margin:0 !important; min-width:170px; gap:6px;
  transition:transform .15s ease, box-shadow .15s ease;
}
body.enjaz-ui .main-content .employee-card:hover{ transform:translateY(-2px); box-shadow:var(--ez-shadow-md) !important; }
body.enjaz-ui .main-content .employee-card .employee-img{
  width:64px !important; height:64px !important; border-radius:50% !important; object-fit:cover;
  border:2px solid var(--pal-blue-line) !important; background:var(--pal-blue-bg); padding:3px; box-shadow:none !important;
}
body.enjaz-ui .main-content .employee-card .rank-icon{
  position:absolute; top:10px; inset-inline-start:10px; width:28px !important; height:28px !important; margin:0 !important;
  display:grid; place-items:center; border-radius:8px; font-size:15px !important; line-height:1;
  background:var(--ez-surface-2); border:1px solid var(--ez-border);
}
body.enjaz-ui .main-content .employee-card .rank-icon.rank-0{ background:var(--pal-amber-bg); border-color:var(--pal-amber-line); }
body.enjaz-ui .main-content .employee-card .rank-icon:not(.rank-0):not(.rank-1):not(.rank-2){ display:none; }
body.enjaz-ui .main-content .employee-card .employee-info{ display:flex; flex-direction:column; align-items:center; gap:6px; }
body.enjaz-ui .main-content .employee-card .employee-info h5{ font-size:var(--fs-13) !important; font-weight:700 !important; color:var(--ez-heading) !important; margin:4px 0 2px !important; }
/* the two lines become tags: branch (blue), contracts (green) */
body.enjaz-ui .main-content .employee-card .employee-info p{
  display:inline-flex; align-items:center; height:22px; margin:0 !important; padding:0 8px; border-radius:6px;
  font-size:var(--fs-11) !important; font-weight:600 !important; line-height:1 !important; white-space:nowrap;
  background:var(--pal-blue-bg); color:var(--pal-blue-ink) !important; border:1px solid var(--pal-blue-line);
}
body.enjaz-ui .main-content .employee-card .employee-info p + p{ background:var(--pal-green-bg); color:var(--pal-green-ink) !important; border-color:var(--pal-green-line); }

/* 18.16 Customer reviews (home + profile): same card / avatar / tag language as the employee cards */
body.enjaz-ui .main-content .review-item{
  background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; border-radius:var(--ez-r-md) !important;
  box-shadow:var(--ez-shadow-sm) !important; padding:12px 14px !important; margin:0 0 10px !important; gap:8px;
}
body.enjaz-ui .main-content .review-item:last-child{ margin-bottom:0 !important; }
body.enjaz-ui .main-content .review-header{ margin:0 !important; gap:12px; align-items:flex-start !important; }
body.enjaz-ui .main-content .review-img{
  width:44px !important; height:44px !important; flex:0 0 44px; margin:0 !important; border-radius:50% !important; object-fit:cover;
  border:2px solid var(--pal-blue-line); background:var(--pal-blue-bg); padding:2px;
}
body.enjaz-ui .main-content .review-details{ flex-wrap:wrap; align-items:center; gap:6px 10px; }
body.enjaz-ui .main-content .review-name-rating{ margin:0 !important; gap:2px; }
body.enjaz-ui .main-content .review-name{ font-size:var(--fs-13) !important; font-weight:700 !important; color:var(--ez-heading) !important; margin:0 !important; }
body.enjaz-ui .main-content .review-rating{ font-size:var(--fs-11) !important; letter-spacing:1px; line-height:1.4; }
body.enjaz-ui .main-content .review-employee{ margin:0 !important; }
/* employee name -> blue tag, date -> neutral tag */
body.enjaz-ui .main-content .review-employee .employee-name{
  display:inline-flex; align-items:center; height:22px; margin:0 !important; padding:0 8px; border-radius:6px;
  background:var(--pal-blue-bg); border:1px solid var(--pal-blue-line); color:var(--pal-blue-ink) !important;
  font-size:var(--fs-11) !important; font-weight:600 !important; white-space:nowrap;
}
body.enjaz-ui .main-content .review-employee .employee-name b{ font-weight:600 !important; color:inherit !important; }
body.enjaz-ui .main-content .review-date{
  display:inline-flex; align-items:center; height:22px; margin:0 !important; margin-inline-start:auto !important; padding:0 8px; border-radius:6px;
  background:var(--ez-surface-2); border:1px solid var(--ez-border); color:var(--ez-muted) !important;
  font-size:var(--fs-11) !important; font-weight:600 !important; white-space:nowrap; direction:rtl;
}
body.enjaz-ui .main-content .review-text{
  margin:0 !important; padding:0 !important; padding-inline-start:56px !important;
  font-size:var(--fs-13) !important; line-height:1.7; color:var(--ez-text) !important;
}

/* 18.17 Home: branch productivity cards -> employee-card look (icon tile, name, two tags) */
body.enjaz-ui .main-content .card .card.text-center.shadow-lg{
  background:var(--ez-surface) !important; border:1px solid var(--ez-border) !important; border-radius:var(--ez-r-md) !important;
  box-shadow:var(--ez-shadow-sm) !important; overflow:hidden; padding:14px 12px 16px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
body.enjaz-ui .main-content .card .card.text-center.shadow-lg::before{ display:none !important; }
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-header{
  width:52px; height:52px; padding:0 !important; margin:0 auto !important; border:0 !important; border-radius:50% !important;
  display:grid; place-items:center; background:var(--pal-blue-bg) !important; background-image:none !important;
  box-shadow:inset 0 0 0 2px var(--pal-blue-line) !important;
}
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-header::before,
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-header::after{ display:none !important; }
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-header i{ font-size:20px !important; color:var(--pal-blue-ink) !important; }
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-body{ padding:0 !important; display:flex; flex-direction:column; align-items:center; gap:6px; }
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-body .card-title{ font-size:var(--fs-13) !important; font-weight:700 !important; color:var(--ez-heading) !important; margin:4px 0 2px !important; }
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-body p{
  display:inline-flex; align-items:center; gap:4px; height:22px; margin:0 !important; padding:0 8px; border-radius:6px;
  font-size:var(--fs-11) !important; font-weight:600 !important; white-space:nowrap;
  background:var(--pal-green-bg); border:1px solid var(--pal-green-line); color:var(--pal-green-ink) !important;
}
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-body p + p{ background:var(--pal-blue-bg); border-color:var(--pal-blue-line); color:var(--pal-blue-ink) !important; }
body.enjaz-ui .main-content .card .card.text-center.shadow-lg > .card-body p strong{ font-weight:600 !important; color:inherit !important; }

/* 18.18 Home: "top 5 workers" lists and other ranked lists (same avatar / name / tag language) */
body.enjaz-ui .main-content .customers .list-group-item{
  border:0 !important; border-bottom:1px solid var(--ez-border) !important; border-radius:0 !important;
  padding:10px 16px !important; background:transparent !important;
}
body.enjaz-ui .main-content .customers .list-group-item:last-child{ border-bottom:0 !important; }
body.enjaz-ui .main-content .customers .list-group-item:hover{ background:var(--ez-surface-2) !important; }
body.enjaz-ui .main-content .customers .list-group-item .media{ gap:12px; align-items:center; }
body.enjaz-ui .main-content .customers .list-group-item .media-body{ margin:0 !important; }
body.enjaz-ui .main-content .customers .list-group-item .avatar-lg{
  width:44px !important; height:44px !important; margin:0 !important; object-fit:cover;
  border:2px solid var(--pal-blue-line); background:var(--pal-blue-bg); padding:2px;
}
/* name + worker number: "NAME-123" -> name, then the number as a neutral tag */
body.enjaz-ui .main-content .customers .list-group-item .media-body h5{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 !important;
  font-size:0 !important; color:transparent !important; line-height:1.4;
}
body.enjaz-ui .main-content .customers .list-group-item .media-body h5 a{
  font-size:var(--fs-13) !important; font-weight:700 !important; color:var(--ez-heading) !important; text-transform:none;
}
body.enjaz-ui .main-content .customers .list-group-item .media-body h5 a:hover{ color:var(--pal-blue-ink) !important; }
body.enjaz-ui .main-content .customers .list-group-item .media-body h5 strong{
  display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:6px;
  background:var(--ez-surface-2); border:1px solid var(--ez-border); color:var(--ez-muted) !important;
  font-size:var(--fs-11) !important; font-weight:600 !important;
}
/* rank: a small tile; top three keep a crown in muted metal tones */
body.enjaz-ui .main-content :is(.customers, table) .ranking-number{
  width:28px; height:28px; padding:0 !important; border-radius:8px !important; background:var(--ez-surface-2) !important;
  border:1px solid var(--ez-border); color:var(--ez-heading) !important; box-shadow:none !important;
  font-size:var(--fs-12) !important; font-weight:700 !important; line-height:1 !important; font-family:var(--ez-font) !important;
}
body.enjaz-ui .main-content :is(.gold-crown, .silver-crown, .bronze-crown){ display:inline-flex !important; align-items:center; gap:6px; font-size:13px !important; }
body.enjaz-ui .main-content .gold-crown{ color:#b8913a !important; }
body.enjaz-ui .main-content .silver-crown{ color:#8a94a3 !important; }
body.enjaz-ui .main-content .bronze-crown{ color:#9a6a45 !important; }
body.enjaz-ui .main-content .gold-crown .ranking-number{ background:#f7f0dd !important; border-color:#e8d9ae; color:#7a5c17 !important; }
body.enjaz-ui .main-content .silver-crown .ranking-number{ background:#eef1f5 !important; border-color:#d5dbe3; color:#4b5768 !important; }
body.enjaz-ui .main-content .bronze-crown .ranking-number{ background:#f5ece5 !important; border-color:#e3cdbd; color:#7d4f30 !important; }

/* 18.19 Legacy leftovers found in the site-wide audit */
/* one tab language: every active tab is the white segment with blue ink */
body.enjaz-ui .main-content :is(.tabs-menu ul li a, .tabs-menu1 ul li a, .panel-tabs a, .nav-pills .nav-link).active{
  background:var(--ez-surface) !important; color:var(--pal-blue-ink) !important; box-shadow:var(--ez-shadow-sm) !important;
}
body.enjaz-ui .main-content :is(.tabs-menu ul li a, .tabs-menu1 ul li a, .panel-tabs a, .nav-pills .nav-link).active i{ color:inherit !important; }
/* coloured table heads (bg-primary, plain blue custom tables) -> the standard light head */
body.enjaz-ui .main-content :is(thead[class*="bg-"], .custom-table thead, thead.thead-dark){ background:transparent !important; }
body.enjaz-ui .main-content :is(thead[class*="bg-"], .custom-table thead, thead.thead-dark) th{
  background:var(--ez-surface-2) !important; color:var(--ez-heading) !important; border-color:var(--ez-border) !important;
  border-bottom:1px solid var(--ez-border-strong) !important; font-size:var(--fs-12) !important; font-weight:600 !important;
}
body.enjaz-ui .main-content .custom-table th{ background:var(--ez-surface-2) !important; color:var(--ez-heading) !important; }
/* full-colour table rows (e.g. trial balance difference row) -> status tint + edge bar */
body.enjaz-ui .main-content tr.bg-danger{ background:var(--pal-red-bg) !important; }
body.enjaz-ui .main-content tr.bg-danger > *{ background:transparent !important; color:var(--pal-red-ink) !important; font-weight:700; }
body.enjaz-ui .main-content :is(tbody, tfoot) > tr.bg-danger > :first-child{ box-shadow:inset -3px 0 0 var(--pal-red) !important; }
body.enjaz-ui .main-content tr.bg-success{ background:var(--pal-green-bg) !important; }
body.enjaz-ui .main-content tr.bg-success > *{ background:transparent !important; color:var(--pal-green-ink) !important; font-weight:700; }
body.enjaz-ui .main-content :is(tbody, tfoot) > tr.bg-success > :first-child{ box-shadow:inset -3px 0 0 var(--pal-green) !important; }
/* heavy legacy shadows -> the theme's soft depth */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.cardx, .details-box, .hr-kpi, .table-wrapper, .hr-register, .wa-empty-box, .hr-panel, .hr-filters, .hr-urgent-alert){
  box-shadow:var(--ez-shadow-sm) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .wa-sidebar{ box-shadow:none !important; border-inline-end:1px solid var(--ez-border); }
body.enjaz-ui .main-content :is(input, select, textarea).form-control{ box-shadow:none; }
/* HR KPI tiles and tone chips on the muted palette (amber slot = cyan) */
body.enjaz-ui .main-content .hr-kpi.blue{ color:var(--pal-blue-ink) !important; }
body.enjaz-ui .main-content .hr-kpi.green{ color:var(--pal-green-ink) !important; }
body.enjaz-ui .main-content .hr-kpi.amber{ color:var(--pal-amber-ink) !important; }
body.enjaz-ui .main-content .hr-kpi.purple{ color:var(--pal-violet-ink) !important; }
body.enjaz-ui .main-content .hr-kpi.blue .hr-kpi-icon{ background:var(--pal-blue-bg) !important; }
body.enjaz-ui .main-content .hr-kpi.green .hr-kpi-icon{ background:var(--pal-green-bg) !important; }
body.enjaz-ui .main-content .hr-kpi.amber .hr-kpi-icon{ background:var(--pal-amber-bg) !important; }
body.enjaz-ui .main-content .hr-kpi.purple .hr-kpi-icon{ background:var(--pal-violet-bg) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .hr-tone-navy{ background:#22344f !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .hr-tone-blue{ background:var(--pal-blue) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .hr-tone-green{ background:var(--pal-green) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .hr-tone-amber{ background:var(--pal-amber) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .hr-tone-red{ background:var(--pal-red) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .hr-tone-slate{ background:#64748b !important; }
/* decorative corner blobs on HR KPI tiles: removed like the other stat-tile blobs */
body.enjaz-ui .main-content .hr-kpi::after{ display:none !important; }
/* a coloured row inside a table head is a header row, not a status row */
body.enjaz-ui .main-content thead tr:is(.bg-danger, .bg-success, .bg-primary, .bg-info, .bg-warning){ background:var(--ez-surface-2) !important; }
body.enjaz-ui .main-content thead tr:is(.bg-danger, .bg-success, .bg-primary, .bg-info, .bg-warning) > *{
  background:var(--ez-surface-2) !important; color:var(--ez-heading) !important; font-weight:600 !important; box-shadow:none !important;
}

/* 18.20 Gradient buttons (template btn-*-gradient, e.g. the profile "print" buttons) -> the same solid buttons as everywhere else */
body.enjaz-ui :is(.btn-primary-gradient, .btn-info-gradient, .btn-success-gradient, .btn-danger-gradient, .btn-warning-gradient,
  .btn-dark-gradient, .btn-secondary-gradient, .btn-light-gradient, .btn-pink-gradient, .btn-purple-gradient){
  background-image:none !important; border:1px solid transparent !important; box-shadow:none !important; color:#fff !important;
}
body.enjaz-ui .btn-primary-gradient{ background-color:#0156cc !important; border-color:#0156cc !important; }
body.enjaz-ui .btn-info-gradient{ background-color:#0277bd !important; border-color:#0277bd !important; }
body.enjaz-ui .btn-success-gradient{ background-color:#15803d !important; border-color:#15803d !important; }
body.enjaz-ui .btn-danger-gradient{ background-color:#c81e4a !important; border-color:#c81e4a !important; }
body.enjaz-ui .btn-warning-gradient{ background-color:#f59e0b !important; border-color:#f59e0b !important; color:#1f2937 !important; }
body.enjaz-ui .btn-dark-gradient{ background-color:#1e293b !important; border-color:#1e293b !important; }
body.enjaz-ui .btn-secondary-gradient{ background-color:#5b6b85 !important; border-color:#5b6b85 !important; }
body.enjaz-ui .btn-light-gradient{ background-color:var(--ez-surface) !important; border-color:var(--ez-border) !important; color:var(--ez-heading) !important; }
body.enjaz-ui .btn-pink-gradient{ background-color:#c4005f !important; border-color:#c4005f !important; }
body.enjaz-ui .btn-purple-gradient{ background-color:#8b2fd6 !important; border-color:#8b2fd6 !important; }
body.enjaz-ui :is(.btn-primary-gradient, .btn-info-gradient, .btn-success-gradient, .btn-danger-gradient, .btn-warning-gradient,
  .btn-dark-gradient, .btn-secondary-gradient, .btn-pink-gradient, .btn-purple-gradient):hover{ filter:brightness(.92); }
body.enjaz-ui :is(.btn-primary-gradient, .btn-info-gradient, .btn-success-gradient, .btn-danger-gradient, .btn-dark-gradient,
  .btn-secondary-gradient, .btn-pink-gradient, .btn-purple-gradient) i{ color:inherit !important; }
/* counter icon tiles (profile, statistics): the muted soft tiles used everywhere else */
body.enjaz-ui .main-content .counter-icon{ border-radius:var(--ez-r-sm) !important; box-shadow:none !important; }
body.enjaz-ui .main-content .counter-icon.bg-primary-transparent{ background:var(--pal-blue-bg) !important; }
body.enjaz-ui .main-content .counter-icon.bg-primary-transparent i{ color:var(--pal-blue-ink) !important; }
body.enjaz-ui .main-content .counter-icon.bg-success-transparent{ background:var(--pal-green-bg) !important; }
body.enjaz-ui .main-content .counter-icon.bg-success-transparent i{ color:var(--pal-green-ink) !important; }
body.enjaz-ui .main-content .counter-icon.bg-danger-transparent{ background:var(--pal-red-bg) !important; }
body.enjaz-ui .main-content .counter-icon.bg-danger-transparent i{ color:var(--pal-red-ink) !important; }
body.enjaz-ui .main-content .counter-icon:is(.bg-warning-transparent, .bg-info-transparent){ background:var(--pal-amber-bg) !important; }
body.enjaz-ui .main-content .counter-icon:is(.bg-warning-transparent, .bg-info-transparent) i{ color:var(--pal-amber-ink) !important; }

/* 18.21 Contract rows: quieter status tint, and one button language for every row action */
body.enjaz-ui .main-content :is([style*="#fdc1c1a8"], [style*="#ffd4d4a8"], [style*="#b95959a8"]){ --al-bg:#fcf7f7; --al-bar:#c98c84; }
body.enjaz-ui .main-content [style*="#f5ebcfa8"]{ --al-bg:#fcfaf4; --al-bar:#d8bf86; }
/* action list items: one neutral frame (the inline neon / navy edge colours are dropped) */
body.enjaz-ui .main-content .list-group-itemm{
  border:1px solid var(--ez-border) !important; border-radius:var(--ez-r-xs) !important; background:var(--ez-surface) !important;
}
/* plain text links that act as buttons (edit, print contract, Tamara, manager discount ...) -> soft blue button */
body.enjaz-ui .main-content .list-group-itemm > a:not(.btn),
body.enjaz-ui .main-content a[href="#Open_ManagerDiscount"]{
  display:inline-flex !important; align-items:center; gap:.35rem; min-height:28px; padding:.15rem .6rem !important;
  border-radius:var(--ez-r-xs) !important; border:1px solid var(--pal-blue-line) !important;
  background:var(--pal-blue-bg) !important; color:var(--pal-blue-ink) !important;
  font-size:var(--fs-12) !important; font-weight:700 !important; text-decoration:none !important; line-height:1.4;
}
body.enjaz-ui .main-content .list-group-itemm > a:not(.btn):hover,
body.enjaz-ui .main-content a[href="#Open_ManagerDiscount"]:hover{ background:#dfe7f2 !important; }
body.enjaz-ui .main-content :is(.list-group-itemm > a:not(.btn), a[href="#Open_ManagerDiscount"]) :is(i, span){ color:inherit !important; margin:0 !important; font-size:inherit; }
body.enjaz-ui .main-content .list-group-itemm > a:not(.btn) img{ margin:0 !important; border-radius:4px; }
/* a badge-like "btn" wrapping a link (note counter) keeps its button look */
body.enjaz-ui .main-content span.btn > a{ color:inherit !important; }
body.enjaz-ui .main-content :is(.list-group-itemm > a:not(.btn), a[href="#Open_ManagerDiscount"]){ white-space:nowrap; }

/* 18.22 Collapsed sidebar toggle glyph and counters */
body.enjaz-ui.sidenav-toggled .main-header .app-sidebar__toggle > a.close-toggle i::before{ content:"\e907"; display:inline-block; transform:scaleX(-1); }
/* collapsed sidebar: counters become small corner badges on the icon instead of overlapping it */
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item{ position:relative; justify-content:center !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item > :is(div, span).d-flex{ margin:0 !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item :is(.menu-badge, .menu-badge-red){
  position:absolute !important; top:1px; left:calc(50% - 22px) !important; right:auto !important; margin:0 !important; transform:none !important;
  min-width:16px; height:16px; padding:0 4px !important; border-radius:8px !important; border:2px solid var(--ez-surface);
  font-size:9px !important; font-weight:700 !important; line-height:12px !important; display:grid !important; place-items:center; z-index:2;
}
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item .side-menu__icon{ margin:0 !important; }

/* 18.23 Header controls: ONE button system
   - icon buttons: 34x34, light grey fill, hairline border, radius 9, icon centred
   - labelled buttons (balances, support): same height/fill/border/radius, icon + text centred, 12px/700 text */
body.enjaz-ui .main-header :is(
  .app-sidebar__toggle > a, .main-header-left a.position-relative, .main-header-right > li > .nav-link:not(.pr-0),
  .main-header-right .nav-link.new, .main-header .full-screen-link, .main-header .btn.btn-sm:not(.btn-success-gradient),
  .main-header-left .btn:not(.btn-sm)){
  display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:6px;
  height:34px !important; min-height:34px !important; min-width:34px; padding:0 !important; margin:0 3px !important;
  background:var(--ez-surface-2) !important; background-image:none !important; border:1px solid var(--ez-border) !important;
  border-radius:9px !important; box-shadow:none !important; color:var(--ez-text) !important;
  font-size:var(--fs-12) !important; font-weight:700 !important; line-height:1 !important; white-space:nowrap; vertical-align:middle;
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* labelled ones get side padding */
body.enjaz-ui .main-header :is(.main-header .btn.btn-sm:not(.btn-success-gradient), .main-header-right > li > a.nav-link[href*="/support"]){
  width:auto !important; padding:0 10px !important;
}
/* icon-only ones are square */
body.enjaz-ui .main-header :is(.app-sidebar__toggle > a, .main-header-left a.position-relative, .main-header-right .nav-link.new, .main-header .full-screen-link){
  width:34px !important; padding:0 !important;
}
body.enjaz-ui .main-header :is(
  .app-sidebar__toggle > a, .main-header-left a.position-relative, .main-header-right > li > .nav-link:not(.pr-0),
  .main-header-right .nav-link.new, .main-header .full-screen-link, .main-header .btn.btn-sm:not(.btn-success-gradient)):hover{
  background:var(--pal-blue-bg) !important; border-color:var(--pal-blue-line) !important; color:var(--pal-blue-ink) !important;
}
body.enjaz-ui .main-header :is(
  .app-sidebar__toggle > a, .main-header-left a.position-relative, .main-header-right > li > .nav-link:not(.pr-0),
  .main-header-right .nav-link.new, .main-header .full-screen-link, .main-header .btn.btn-sm:not(.btn-success-gradient)) :is(i, .header-icon, .header-icons){
  color:inherit !important; font-size:15px !important; line-height:1 !important; margin:0 !important; display:inline-block; vertical-align:0;
}
body.enjaz-ui .main-header :is(
  .app-sidebar__toggle > a, .main-header-left a.position-relative, .main-header-right > li > .nav-link:not(.pr-0),
  .main-header-right .nav-link.new, .main-header .full-screen-link, .main-header .btn.btn-sm:not(.btn-success-gradient)) svg{
  width:17px !important; height:17px !important; fill:currentColor !important; margin:0 !important;
}
body.enjaz-ui .main-header .btn.btn-sm:not(.btn-success-gradient) img{ width:18px !important; height:18px !important; object-fit:contain; margin:0 !important; }
/* counters on header buttons: one corner badge */
body.enjaz-ui .main-header :is(.main-header-left a.position-relative, .main-header-right .nav-link.new, .main-header-right > li > a.nav-link[href*="/support"]) :is(.badge, .pulse, .pulse-danger, [class*="badge"]){
  position:absolute !important; top:-7px !important; inset-inline-end:-7px !important; left:auto; right:auto;
  min-width:18px; height:18px; padding:0 4px !important; margin:0 !important; border-radius:9px !important;
  border:2px solid var(--ez-surface) !important; font-size:10px !important; font-weight:700 !important; line-height:14px !important;
  display:grid !important; place-items:center; color:#fff !important; background:#c81e4a !important;
}
body.enjaz-ui .main-header :is(.main-header-left a.position-relative, .main-header-right .nav-link.new, .main-header-right > li > a.nav-link[href*="/support"]){ position:relative !important; overflow:visible !important; }
/* online status: same height and radius as the rest */
body.enjaz-ui .main-header .btn-success-gradient.btn-sm{ height:34px !important; min-height:34px !important; border-radius:9px !important; padding:0 12px !important; display:inline-flex !important; align-items:center; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar :is(.side-menu__item, .side-menu__item > .d-flex, .side-menu > li){ overflow:visible !important; }
body.enjaz-ui .main-header :is(.btn-success-gradient, #ez-x).btn-sm{ border-radius:9px !important; }
/* only one sidebar toggle visible at a time */
body.enjaz-ui.sidenav-toggled .main-header .app-sidebar__toggle > a:is(.open-toggle, #ez-x),
body.enjaz-ui:not(.sidenav-toggled) .main-header .app-sidebar__toggle > a:is(.close-toggle, #ez-x){ display:none !important; }

/* 18.24 Header underline and sidebar user card */
/* the old cyan accent under the header is gone: one neutral hairline like every other divider */
body.enjaz-ui .main-header::after{ display:none !important; }
/* collapsed menu: the user card shrinks to the avatar, centred in the bar (it overflowed the 80px bar before) */
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card{
  width:52px !important; height:52px !important; min-width:0 !important; padding:0 !important; margin:6px auto 4px !important;
  display:grid !important; place-items:center; border-radius:14px !important; overflow:visible !important;
}
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card::before{ display:none !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card .user-info{ display:none !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card :is(.user-pro-body, .user-pro-body > div){ margin:0 !important; padding:0 !important; display:grid; place-items:center; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card a{ position:relative; display:block; line-height:0; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card img.avatar{ width:38px !important; height:38px !important; margin:0 !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .user-info-card .avatar-status{ bottom:0 !important; right:0 !important; left:auto !important; top:auto !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .app-sidebar__user{ padding:12px 0 0 !important; }

/* 18.25 Header fixes: toggle glyph centred; one counter on the bell */
body.enjaz-ui .main-header .app-sidebar__toggle > a :is(i, .header-icon, .header-icons){
  display:grid !important; place-items:center; width:100% !important; height:100% !important; line-height:1 !important;
}
body.enjaz-ui .main-header .nav-link.new :is(.pulse, .pulse-danger, #ez-x){ display:none !important; }
body.enjaz-ui .main-header .nav-link.new .notification-count{
  position:absolute !important; top:-7px !important; inset-inline-end:-7px !important; left:auto; right:auto;
  min-width:18px; height:18px; padding:0 4px !important; margin:0 !important; border-radius:9px !important;
  border:2px solid var(--ez-surface) !important; font-size:10px !important; font-weight:700 !important; line-height:14px !important;
  display:grid !important; place-items:center; color:#fff !important; background:#c81e4a !important;
}

/* collapsed menu: the counter wrapper leaves the flow, so badged items centre their icon like the others */
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item > :is(div, span).d-flex:not(:first-child){ display:contents !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item{ justify-content:center !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item > .d-flex:first-child{ justify-content:center !important; margin:0 !important; }

/* 18.26 Notification dropdown icons centred in their tiles */
body.enjaz-ui .main-header .dropdown-menu .notifyimg{ display:grid !important; place-items:center !important; width:36px !important; height:36px !important; padding:0 !important; line-height:1 !important; flex:0 0 36px; }
body.enjaz-ui .main-header .dropdown-menu .notifyimg :is(i, svg){
  display:block !important; width:auto !important; height:auto !important; margin:0 !important; padding:0 !important;
  font-size:18px !important; line-height:1 !important; text-align:center;
}
body.enjaz-ui .main-header .dropdown-menu .notifyimg::before,
body.enjaz-ui .main-header .dropdown-menu .notifyimg::after{ display:none !important; }

/* 18.27 Header fits narrower screens: the right group is never squeezed off-screen */
body.enjaz-ui .main-header > .container-fluid, body.enjaz-ui .main-header > div:first-child{ gap:10px; }
body.enjaz-ui .main-header .main-header-right{ flex:0 0 auto !important; min-width:max-content !important; flex-wrap:nowrap !important; }
body.enjaz-ui .main-header .national-day-brand{ flex:0 1 auto !important; min-width:0 !important; overflow:hidden !important; }
@media (max-width:1700px){
  body.enjaz-ui .main-header .national-day-brand img[src*="enjaz_name"]{ display:none !important; }
}
@media (max-width:1499px){
  body.enjaz-ui .main-header .main-header-right :is(.btn.btn-sm, .nav-link, .nav-item){ margin:0 2px !important; }
  body.enjaz-ui .main-header .main-header-right .btn.btn-sm:not(.btn-success-gradient){ padding:0 7px !important; font-size:var(--fs-11) !important; }
  body.enjaz-ui .main-header .main-header-left .form-control{ max-width:150px; }
}
body.enjaz-ui .main-header .national-day-brand img{ max-width:100% !important; height:auto !important; max-height:34px; object-fit:contain; }
body.enjaz-ui .main-header .main-header-left{ flex:0 0 auto !important; min-width:max-content !important; }
/* narrower screens: the search box folds to its icon and opens when clicked/focused (same input, nothing removed) */
@media (max-width:1499px){
  body.enjaz-ui .main-header .main-header-center{ width:34px !important; height:34px; }
  body.enjaz-ui .main-header .main-header-center .form-control{ position:absolute !important; top:0; inset-inline-start:0; z-index:5; width:34px !important; min-width:34px !important; padding:0 !important; color:transparent; cursor:pointer; transition:width .2s ease; }
  body.enjaz-ui .main-header .main-header-center .form-control::placeholder{ color:transparent; }
  body.enjaz-ui .main-header .main-header-center:focus-within .form-control{ width:200px !important; padding:0 .75rem !important; padding-inline-end:2.2rem !important; color:var(--ez-text); cursor:text; }
  body.enjaz-ui .main-header .main-header-center:focus-within .form-control::placeholder{ color:var(--ez-muted); }
  body.enjaz-ui .main-header .main-header-center .btn{ z-index:6; width:34px; padding:0 !important; justify-content:center; pointer-events:none; }
  body.enjaz-ui .main-header .main-header-center:focus-within .btn{ inset-inline-end:auto; inset-inline-start:166px; }
  body.enjaz-ui .main-header .main-header-center .btn i{ display:block !important; }
}

/* 18.28 Deviation sweep: module buttons that rendered bare, and the last contrast misses */
/* the shared "light control" button */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.btn-coa-outline, .btn-print, .btn-details, .hr-hero-export, .btn-ghost, .card-footer > a.btn.m-b-5){
  display:inline-flex !important; align-items:center; justify-content:center; gap:.35rem; min-height:32px;
  background:var(--ez-surface) !important; background-image:none !important; border:1px solid var(--ez-border) !important;
  color:var(--ez-heading) !important; border-radius:var(--ez-r-xs) !important; box-shadow:none !important; text-shadow:none !important;
  font-size:var(--fs-12) !important; font-weight:700 !important; padding:.25rem .75rem !important; opacity:1 !important; transform:none !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.btn-coa-outline, .btn-print, .btn-details, .hr-hero-export, .btn-ghost, .card-footer > a.btn.m-b-5):hover{
  background:var(--pal-blue-bg) !important; border-color:var(--pal-blue-line) !important; color:var(--pal-blue-ink) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.btn-coa-outline, .btn-print, .btn-details, .hr-hero-export, .btn-ghost, .card-footer > a.btn.m-b-5) i{ color:inherit !important; }
/* the module's primary / danger actions (their own CSS never applied) */
body.enjaz-ui .main-content :is(.btn-transfer, .btn-wk-primary){
  display:inline-flex !important; align-items:center; justify-content:center; gap:.35rem; min-height:32px;
  background:#0156cc !important; border:1px solid #0156cc !important; color:#fff !important; border-radius:var(--ez-r-xs) !important;
  font-size:var(--fs-12) !important; font-weight:700 !important; padding:.25rem .75rem !important; box-shadow:none !important;
}
body.enjaz-ui .main-content .btn-final-exit{
  display:inline-flex !important; align-items:center; justify-content:center; gap:.35rem; min-height:32px;
  background:#c81e4a !important; border:1px solid #c81e4a !important; color:#fff !important; border-radius:var(--ez-r-xs) !important;
  font-size:var(--fs-12) !important; font-weight:700 !important; padding:.25rem .75rem !important; box-shadow:none !important;
}
body.enjaz-ui .main-content :is(.btn-transfer, .btn-wk-primary, .btn-final-exit):hover{ filter:brightness(.92); }
body.enjaz-ui .main-content :is(.btn-transfer, .btn-wk-primary, .btn-final-exit) i{ color:inherit !important; }
/* icon-only row actions in offer tables (edit / delete) -> small icon buttons */
body.enjaz-ui .main-content table a.btn.m-b-5:is(.p-0, .text-danger), body.enjaz-ui .main-content td > a.btn.m-b-5{
  display:inline-grid !important; place-items:center; width:30px; height:30px; min-height:30px; padding:0 !important;
  background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important; border-radius:8px !important; color:var(--pal-blue-ink) !important;
}
body.enjaz-ui .main-content table a.btn.m-b-5.text-danger{ background:var(--pal-red-bg) !important; border-color:var(--pal-red-line) !important; color:var(--pal-red-ink) !important; }
/* approved-entry banner (transactions): solid green with white text */
body.enjaz-ui .main-content .btn-trans[style*="46, 99, 55"]{ background:#15803d !important; border-color:#15803d !important; color:#fff !important; }
body.enjaz-ui .main-content .btn-trans[style*="46, 99, 55"] *{ color:#fff !important; }
/* "connect to Istiqdam" link (rent): primary button colour */
body.enjaz-ui .main-content a[href*="istiqdam.sa"][style*="background-color"]{ background-color:#0156cc !important; color:#fff !important; border-radius:var(--ez-r-xs) !important; font-weight:700 !important; }
/* WhatsApp template chips: readable ink */
body.enjaz-ui .main-content .chip{ color:var(--ez-heading) !important; }
/* inbox empty state and the odd heavy input shadow */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) .wa-empty-box{ border-radius:var(--ez-r-lg) !important; }
body.enjaz-ui .main-content input:not(.btn){ box-shadow:none; }
/* 9px captions (agents / workers cards) -> the 11px floor */
body.enjaz-ui .main-content p[style*="font-size: 9px"], body.enjaz-ui .main-content p[style*="font-size:9px"]{ font-size:var(--fs-11) !important; }
/* transfer-maids rows: the action group wraps inside the row instead of spilling out of the card */
body.enjaz-ui .main-content .maid-row{ flex-wrap:wrap !important; row-gap:10px; }
body.enjaz-ui .main-content .maid-row > .maid-col.actions{ flex:1 1 auto !important; flex-wrap:wrap !important; justify-content:flex-end; gap:6px; min-width:0; }
body.enjaz-ui .main-content .maid-row > .maid-col.actions > *{ white-space:nowrap; }

/* 18.29 One search component (header + side menu)
   36px field, light grey fill, hairline border, radius 10, icon inside; white with a soft blue ring on focus */
:root{ --ez-search-h:36px; }
/* --- header --- */
body.enjaz-ui .main-header :is(.main-header-center, #ez-x){ position:relative !important; display:flex !important; align-items:center; height:var(--ez-search-h) !important; margin:0 4px !important; }
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .form-control{
  height:var(--ez-search-h) !important; min-height:0 !important; width:220px !important;
  padding:0 12px !important; padding-inline-end:38px !important;
  background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important; border-radius:10px !important;
  box-shadow:none !important; color:var(--ez-text) !important; font-size:var(--fs-12) !important; font-weight:500;
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease, width .2s ease;
}
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .form-control::placeholder{ color:var(--ez-muted) !important; opacity:1; }
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .form-control:hover{ border-color:var(--ez-border-strong) !important; }
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .form-control:focus{
  background:var(--ez-surface) !important; border-color:var(--pal-blue-line) !important; box-shadow:0 0 0 3px var(--pal-blue-bg) !important; outline:0;
}
/* the button is the icon inside the field's end */
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .btn{
  position:absolute !important; top:1px !important; bottom:1px; inset-inline-end:1px !important; inset-inline-start:auto !important; z-index:6;
  width:34px !important; height:calc(var(--ez-search-h) - 2px) !important; min-height:0 !important; min-width:0 !important; margin:0 !important; padding:0 !important;
  display:grid !important; place-items:center; background:transparent !important; border:0 !important; border-radius:9px !important;
  color:var(--ez-muted) !important; box-shadow:none !important;
}
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .btn i{ display:block !important; font-size:13px !important; color:inherit !important; line-height:1 !important; }
body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .btn:hover,
body.enjaz-ui .main-header :is(.main-header-center, #ez-x):focus-within .btn{ color:var(--pal-blue-ink) !important; }
/* narrower screens: folded to a 36px square that opens (toward the free middle of the header) over its neighbours */
@media (max-width:1499px){
  body.enjaz-ui .main-header :is(.main-header-center, #ez-x){ width:var(--ez-search-h) !important; }
  body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .form-control{
    position:absolute !important; top:0 !important; inset-inline-start:0 !important; inset-inline-end:auto !important; z-index:5;
    width:var(--ez-search-h) !important; min-width:0 !important; max-width:none !important; padding:0 !important; color:transparent !important; cursor:pointer;
  }
  body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .form-control::placeholder{ color:transparent !important; }
  body.enjaz-ui .main-header :is(.main-header-center, #ez-x) .btn{ inset-inline-start:1px !important; inset-inline-end:auto !important; pointer-events:none; }
  body.enjaz-ui .main-header :is(.main-header-center, #ez-x):focus-within .form-control{
    width:240px !important; padding:0 12px !important; padding-inline-start:38px !important; color:var(--ez-text) !important; cursor:text;
    box-shadow:0 0 0 3px var(--pal-blue-bg), var(--ez-shadow-md) !important;
  }
  body.enjaz-ui .main-header :is(.main-header-center, #ez-x):focus-within .form-control::placeholder{ color:var(--ez-muted) !important; }
}

/* --- side menu --- */
body.enjaz-ui .app-sidebar .side-menu__item:has(> .side-menu__label > input){
  position:relative; padding:4px 12px !important; background:transparent !important; box-shadow:none !important; cursor:default;
}
body.enjaz-ui .app-sidebar .side-menu__item:has(> .side-menu__label > input)::before,
body.enjaz-ui .app-sidebar .side-menu__item:has(> .side-menu__label > input)::after{ display:none !important; }
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__label:has(> input){ flex:1 1 auto; width:100%; margin:0 !important; }
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__label > input.form-control{
  width:100% !important; height:var(--ez-search-h) !important; min-height:0 !important;
  padding:0 12px !important; padding-inline-start:36px !important;
  background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important; border-radius:10px !important;
  box-shadow:none !important; color:var(--ez-text) !important; font-size:var(--fs-12) !important; font-weight:500;
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__label > input.form-control::placeholder{ color:var(--ez-muted) !important; opacity:1; }
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__label > input.form-control:hover{ border-color:var(--ez-border-strong) !important; }
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__label > input.form-control:focus{
  background:var(--ez-surface) !important; border-color:var(--pal-blue-line) !important; box-shadow:0 0 0 3px var(--pal-blue-bg) !important; outline:0;
}
/* expanded: the icon sits inside the field's start */
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar .side-menu__item:has(> .side-menu__label > input) > .side-menu__icon,
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar .side-menu__item:has(> .side-menu__label > input) > .side-menu__icon{
  position:absolute !important; inset-inline-start:24px; top:50%; transform:translateY(-50%); z-index:1; margin:0 !important;
  width:auto !important; height:auto !important; font-size:14px !important; color:var(--ez-muted) !important; pointer-events:none;
}
body.enjaz-ui .app-sidebar .side-menu__item:has(> .side-menu__label > input:focus) > .side-menu__icon{ color:var(--pal-blue-ink) !important; }
/* collapsed: just the icon, as a 36px tile like the field */
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item:has(> .side-menu__label > input){
  width:var(--ez-search-h); height:var(--ez-search-h); padding:0 !important; margin:4px auto !important;
  display:grid !important; place-items:center; background:var(--ez-surface-2) !important; border:1px solid var(--ez-border) !important; border-radius:10px !important;
}
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) .app-sidebar .side-menu__item:has(> .side-menu__label > input) > .side-menu__icon{ font-size:15px !important; color:var(--ez-muted) !important; margin:0 !important; }
/* menu search = exactly a menu row: full row width, 36px tall, icon in the icon column, text where labels start */
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.side-menu__item, #ez-x):has(> .side-menu__label > input){ padding:0 !important; height:36px; min-height:36px; }
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__label > input.form-control{
  height:36px !important; padding-inline-start:37px !important; padding-inline-end:10px !important; font-size:var(--fs-13) !important;
}
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar .side-menu__item:has(> .side-menu__label > input) > .side-menu__icon,
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar .side-menu__item:has(> .side-menu__label > input) > .side-menu__icon{
  inset-inline-start:10px !important; width:18px !important; text-align:center; font-size:15px !important;
}

/* 18.30 Menu rows: one layout for every row (expanded menu)
   [icon] [label ............] [badge] [chevron]  — badges and chevrons always at the far end; submenu rows span the full width */
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar :is(.side-menu__item, #ez-x),
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar :is(.side-menu__item, #ez-x){
  display:flex !important; align-items:center !important; justify-content:flex-start !important; gap:0; width:100%;
}
/* rows built as two wrappers (icon+label | badge): the first wrapper takes the space */
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar .side-menu__item > .d-flex:first-child,
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar .side-menu__item > .d-flex:first-child{ flex:1 1 auto !important; min-width:0; order:1; }
/* the label always takes the free space and is never cut short by a badge */
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar .side-menu__item .side-menu__label,
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar .side-menu__item .side-menu__label{
  flex:1 1 auto !important; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; order:1;
}
body.enjaz-ui .app-sidebar .side-menu__item > .side-menu__icon{ order:0; flex:0 0 auto; }
/* trailing group: badge (wherever it sits in the markup) then chevron */
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar .side-menu__item > :is(.d-flex:not(:first-child), .menu-badge, .menu-badge-red),
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar .side-menu__item > :is(.d-flex:not(:first-child), .menu-badge, .menu-badge-red){
  order:2; flex:0 0 auto; margin:0 !important; margin-inline-start:6px !important;
}
body.enjaz-ui .app-sidebar .side-menu__item > .angle{ order:3; flex:0 0 auto; margin:0 !important; margin-inline-start:6px !important; width:14px; text-align:center; }
/* an empty badge wrapper takes no room */
body.enjaz-ui .app-sidebar .side-menu__item > .d-flex:not(:first-child):empty{ display:none !important; }
/* one badge size in the expanded menu */
body.enjaz-ui:not(.sidenav-toggled) .app-sidebar :is(.menu-badge, .menu-badge-red),
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open .app-sidebar :is(.menu-badge, .menu-badge-red){
  display:inline-grid !important; place-items:center; min-width:20px; height:20px; padding:0 6px !important; margin:0 !important;
  border-radius:10px !important; font-size:var(--fs-11) !important; font-weight:700 !important; line-height:1 !important; position:static !important;
}

/* submenus: rows span the full menu width; text lines up with the parent labels */
body.enjaz-ui .app-sidebar .slide-menu{ margin:2px 0 6px !important; padding:0 !important; border:0 !important; }
body.enjaz-ui .app-sidebar .slide-menu > li{ padding:0 !important; margin:0 !important; }
body.enjaz-ui .app-sidebar .slide-menu .slide-item{
  display:flex !important; align-items:center; width:100% !important; min-height:32px; margin:1px 0 !important;
  padding:0 10px !important; padding-inline-start:37px !important; border-radius:8px !important; font-size:var(--fs-12) !important;
}
body.enjaz-ui .app-sidebar .slide-menu .slide-item > span:first-child{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.enjaz-ui .app-sidebar .slide-menu .slide-item > span.d-flex{ flex:0 0 auto; margin-inline-start:auto !important; gap:4px; }
/* the stray chevron inside badged submenu rows (no other submenu row has one) */
body.enjaz-ui .app-sidebar .slide-menu .slide-item .angle{ display:none !important; }
/* fixes to 18.30: hidden badges stay hidden; label gap on rows with a bare icon; submenu indentation removed (ID weight) */
body.enjaz-ui .app-sidebar :is(.menu-badge, .menu-badge-red):is([style*="display:none"], [style*="display: none"]){ display:none !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-menu, #ez-x){ margin-inline:0 !important; padding-inline:0 !important; border-inline:0 !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.slide-menu, #ez-x)::before{ display:none !important; }
body.enjaz-ui:not(.sidenav-toggled) :is(.app-sidebar, #ez-x) .side-menu__item > :is(.side-menu__icon, #ez-x),
body.enjaz-ui.sidenav-toggled.sidenav-toggled-open :is(.app-sidebar, #ez-x) .side-menu__item > :is(.side-menu__icon, #ez-x){ margin-inline-end:9px !important; margin-inline-start:0 !important; }
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) :is(.app-sidebar, #ez-x) .side-menu__item :is(.side-menu__icon, #ez-x){ margin:0 !important; }
body.enjaz-ui :is(.app-sidebar, #ez-x) .slide-menu :is(.slide-item, #ez-x){ padding:0 10px !important; padding-inline-start:37px !important; justify-content:flex-start !important; }
/* collapsed menu: the search tile centred on the same line as the icons below it */
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) :is(.app-sidebar, #ez-x) :is(.side-menu__item, #ez-x):has(> .side-menu__label > input){
  display:grid !important; place-items:center !important; width:36px !important; margin:4px auto !important; padding:0 !important;
}
body.enjaz-ui.sidenav-toggled:not(.sidenav-toggled-open) :is(.app-sidebar, #ez-x) :is(.side-menu__item, #ez-x):has(> .side-menu__label > input) > .side-menu__icon{
  position:static !important; transform:none !important; margin:0 !important;
}

/* 18.31 Menu badges with no value stay hidden: the menu's own scripts mark empty counters with .hide or display:none,
   and the badge styling above must never force them back on (ID weight beats every badge rule, in both menu states) */
body.enjaz-ui :is(.app-sidebar, #ez-x) :is(.menu-badge, .menu-badge-red, #ez-x):is(.hide, [style*="display:none"], [style*="display: none"]){ display:none !important; }
/* same for header counters (e.g. unread mail at 0) */
body.enjaz-ui :is(.main-header, #ez-x) :is(.notification-count, .badge, .menu-badge, .menu-badge-red, [class*="badge"], #ez-x):is(.hide, .d-none, [style*="display:none"], [style*="display: none"]){ display:none !important; }

/* 18.32 Iqama follow-up: the "expiring within 30 days" block is a WARNING (amber) end to end; the "already expired" notice stays red */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x){
  --al-bg:var(--al-warn-bg); --al-line:var(--al-warn-line); --al-bar:var(--al-warn-bar); --al-ink:var(--al-warn-ink);
  background:var(--ez-surface) !important; border:1px solid var(--al-warn-line) !important; border-inline-start:4px solid var(--al-warn-bar) !important;
  color:var(--ez-text) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x) .hr-urgent-header{
  background:var(--al-warn-bg) !important; border-bottom:1px solid var(--al-warn-line) !important; color:var(--al-warn-ink) !important;
}
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x) .hr-urgent-header :is(*, i){ color:var(--al-warn-ink); border-color:var(--al-warn-line); }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x) .hr-urgent-header :is(.btn, a.btn, [class*="btn"]){ color:var(--al-warn-ink) !important; border-color:var(--al-warn-bar) !important; background:var(--ez-surface) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x) :is(.table-responsive, table, tbody, tr, td){ color:var(--ez-text); }
/* the card's own background is the warning tint around the header; only the table area is white */
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x){ background:var(--al-warn-bg) !important; }
:is(body.enjaz-ui .main-content, body.enjaz-standalone) :is(.hr-urgent-alert, #ez-x) .table-responsive{ background:var(--ez-surface) !important; }
