
/* =========================================================
   EWS Entity Dashboard - Clean Final CSS (v1.0)
   - Sidebar hover/active fixed
   - Empty state added
   - Z background duplicates removed
   - Theme/Elementor override protection improved
   ========================================================= */

/* Scope safety against theme */
.ewsx-app *{ box-sizing:border-box; }
.ewsx-app img{ max-width:100%; height:auto; }
.ewsx-app a{ text-decoration:none; }
.ewsx-app h1,.ewsx-app h2,.ewsx-app h3,.ewsx-app p{ margin:0; }
.ewsx-app ul{ margin:0; padding:0; }

/* Base layout */
.ewsx-app{
  display:flex; gap:0; width:100%; max-width:none;
  margin:0; padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}
.ewsx-side{
  background:#fff; border:1px solid #ececec; padding:14px;
  position:fixed; left:0; top:0; height:100vh;
  width:280px; min-width:280px;
  z-index:999; overflow:auto;
  transition:width .25s ease;
}
.ewsx-main{ margin-left:298px; padding:18px; transition:margin-left .25s ease; }

.ewsx-app.is-collapsed .ewsx-side{ width:96px; min-width:96px; }
.ewsx-app.is-collapsed .ewsx-main{ margin-left:114px; }
.ewsx-app.is-collapsed .ewsx-brandtxt,
.ewsx-app.is-collapsed .ewsx-navtxt,
.ewsx-app.is-collapsed .ewsx-sidecard,
.ewsx-app.is-collapsed .ewsx-sidehint,
.ewsx-app.is-collapsed .ewsx-user .meta{ display:none; }

.ewsx-app.is-collapsed .ewsx-toggle{
  margin-left:0;
}

.ewsx-app.is-collapsed .ewsx-brand{
  justify-content:center;
  padding-left:0;
  padding-right:0;
}

.ewsx-app.is-collapsed .ewsx-logo{
  width:48px;
  height:48px;
  font-size:13px;
}

.ewsx-app.is-collapsed .ewsx-navitem{
  justify-content:center;
}

.ewsx-app.is-collapsed .ewsx-ico{
  width:34px;
  height:34px;
}
/* Brand */
.ewsx-brand{
  display:flex; gap:12px; align-items:center;
  padding:6px 6px 14px; border-bottom:1px solid #f1f1f1;
}
.ewsx-logo{
  width:64px; height:64px; border-radius:8px;
  background:#23B3C6; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; letter-spacing:.6px;
}
.ewsx-bname{ font-weight:800; font-size:14px; }
.ewsx-bsub{ font-size:12px; opacity:.7; margin-top:2px; }
.ewsx-toggle{
  margin-left:auto;
  width:40px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(10,42,67,.35);
  background:#fff;
  color:#0A2A43D9;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.ewsx-toggle:hover,
.ewsx-toggle:focus{
  background:#0A2A43D9;
  color:#fff;
  border-color:#0A2A43D9;
  outline:none;
}

.ewsx-toggle:active{
  transform:scale(.96);
}

.ewsx-toggle-icon{
  display:block;
  line-height:1;
  font-size:18px;
}

/* =========================================================
   SIDEBAR NAV - final rules
   ========================================================= */
.ewsx-nav{ display:flex; flex-direction:column; gap:8px; margin:14px 0; }

/* Base link (lock against theme/elementor) */
.ewsx-side .ewsx-navitem,
.ewsx-side .ewsx-navitem:link,
.ewsx-side .ewsx-navitem:visited,
.ewsx-side .ewsx-navitem:hover,
.ewsx-side .ewsx-navitem:focus,
.ewsx-side .ewsx-navitem:active{
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  padding:8px !important;
  border-radius:8px !important;
  border:1px solid transparent !important;
  text-decoration:none !important;
  box-shadow:none !important;
  outline:none !important;
  color:#0A2A43D9 !important;
  background:transparent !important;
}

/* Icon base */
.ewsx-ico{
  width:28px; height:28px; border-radius:10px;
  background:rgba(15,23,42,.08);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
}
.ewsx-navtxt{ font-weight:700; font-size:13px; }

/* Hover (ONLY when NOT active) */
.ewsx-side .ewsx-navitem:not(.is-active):hover,
.ewsx-side .ewsx-navitem:not(.is-active):focus,
.ewsx-side .ewsx-navitem:not(.is-active):active{
  background:#E6B372 !important;
  border-color:transparent !important;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-side .ewsx-navitem:not(.is-active):hover .ewsx-ico,
.ewsx-side .ewsx-navitem:not(.is-active):focus .ewsx-ico,
.ewsx-side .ewsx-navitem:not(.is-active):active .ewsx-ico{
  background:rgba(255,255,255,.22) !important;
}

/* Active (fixed + never changes on hover) */
.ewsx-side .ewsx-navitem.is-active,
.ewsx-side .ewsx-navitem.is-active:link,
.ewsx-side .ewsx-navitem.is-active:visited,
.ewsx-side .ewsx-navitem.is-active:hover,
.ewsx-side .ewsx-navitem.is-active:focus,
.ewsx-side .ewsx-navitem.is-active:active{
  background:#0A2A43D9 !important;
  border-color:transparent !important;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-side .ewsx-navitem.is-active .ewsx-ico{
  background:rgba(255,255,255,.14) !important;
}
/* Side cards */
.ewsx-sidecard{ border:1px dashed #e8e8e8; border-radius:14px; padding:12px; margin-top:10px; }
.ewsx-sidekv{ display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed #efefef; }
.ewsx-sidekv:last-child{ border-bottom:0; }
.ewsx-sidekv .k{ font-size:12px; opacity:.75; }
.ewsx-sidekv .v{ font-size:12px; font-weight:800; }
.ewsx-mono{ font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-weight:700; }

.ewsx-sidehint{
  margin-top:12px; border-radius:14px; padding:12px;
  background:#f6f7ff; border:1px solid #e9ebff;
}
.ewsx-sidehint .t{ font-weight:900; font-size:12px; margin-bottom:6px; }
.ewsx-sidehint .d{ font-size:12px; opacity:.85; line-height:1.5; }

.ewsx-user{
  margin-top:auto; display:flex; gap:10px; align-items:center;
  padding-top:14px; border-top:1px solid #f1f1f1;
}
.ewsx-user .avatar{
  width:36px; height:36px; border-radius:12px;
  background:#E4EEF3; color:#0A2A43D9;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:12px;
}
.ewsx-user .meta .name{ font-weight:900; font-size:13px; line-height:1.1; }
.ewsx-user .meta .role{ font-size:12px; opacity:.65; margin-top:2px; }

/* Top header */
.ewsx-top{
  display:flex; justify-content:space-between; gap:14px; align-items:flex-end;
  background:#fff; border:1px solid #ececec; border-radius:16px; padding:16px;
}
.ewsx-h1{ font-size:18px; font-weight:900; }
.ewsx-h2{ font-size:12px; opacity:.7; margin-top:3px; }
.ewsx-top-right{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
  justify-content:flex-end;
}
/* Language segmented toggle */
.ewsx-langseg{
  display:flex;
  align-items:center;
  border:1px solid #dfe3e8;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}

.ewsx-langbtn{
  border:0 !important;
  background:#fff !important;
  color:#0A2A43D9 !important;
  padding:0 14px !important;
  min-width:48px;
  cursor:pointer;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:900 !important;
  box-shadow:none !important;
  outline:none !important;
  transition:background .18s ease, color .18s ease;
}

.ewsx-langbtn + .ewsx-langbtn{
  border-left:1px solid #e5e7eb !important;
}

.ewsx-langbtn:hover,
.ewsx-langbtn:focus{
  background:rgba(230,179,114,.18) !important;
  color:#0A2A43D9 !important;
}

.ewsx-langbtn.active{
  background:rgba(35,179,198,.16) !important;
  color:#0A2A43D9 !important;
}

/* Direction states */
.ewsx-app.is-ar{
  direction:rtl;
  text-align:right;
}

.ewsx-app.is-en{
  direction:ltr;
  text-align:left;
}

/* Keep sidebar layout visually stable */
/* Arabic mode: keep sidebar stable, but make main content Arabic */
.ewsx-app.is-ar .ewsx-side{
  direction:ltr;
  text-align:left;
}

.ewsx-app.is-ar .ewsx-main{
  direction:rtl;
  text-align:right;
}
/* Keep cards clean in Arabic mode */
.ewsx-app.is-ar .ewsx-card{
  direction:rtl;
  text-align:right;
}

.ewsx-app.is-ar .ewsx-cardtop{
  direction:rtl;
}

.ewsx-app.is-ar .ewsx-kv,
.ewsx-app.is-ar .ewsx-elv,
.ewsx-app.is-ar .ewsx-gauge,
.ewsx-app.is-ar .ewsx-minibars{
  direction:ltr;
}

.ewsx-app.is-ar .ewsx-kv,
.ewsx-app.is-ar .ewsx-elv{
  text-align:right;
}

.ewsx-app.is-ar .ewsx-minibars .vl{
  text-align:left;
}
/* Arabic text islands stay RTL */
.ewsx-app.is-ar .ar,
.ewsx-app.is-ar [dir="rtl"]{
  direction:rtl;
  text-align:right;
}

/* Top header in both languages */
.ewsx-app.is-ar .ewsx-top{
  direction:rtl;
}

.ewsx-app.is-ar .ewsx-top-right{
  direction:ltr;
}

/* Buttons icon spacing */
.ewsx-btn-ico{
  display:inline-flex;
  margin-right:6px;
}

.ewsx-app.is-ar .ewsx-btn-ico{
  margin-right:0;
  margin-left:6px;
}
.ewsx-filter{
  display:flex;
  flex-direction:column;
  gap:6px;
  position:relative;
}

.ewsx-filter label{
  font-size:11px;
  opacity:.7;
  font-weight:700;
  letter-spacing:.4px;
}

.ewsx-filter select{
  min-width:110px;
  height:48px;
  padding:10px 42px 10px 14px;
  border:1px solid #dfe3e8 !important;
  border-radius:12px !important;
  background-color:#fff !important;
  background-image:none !important;
  color:#0A2A43D9 !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  box-shadow:none !important;
  outline:none !important;
  cursor:pointer;

  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  appearance:none !important;
}

.ewsx-filter select:hover,
.ewsx-filter select:focus,
.ewsx-filter select:active{
  border-color:#23B3C6 !important;
  background-color:#fff !important;
  background-image:none !important;
  color:#0A2A43D9 !important;
  box-shadow:none !important;
  outline:none !important;
}

/* Hide old IE arrow */
.ewsx-filter select::-ms-expand{
  display:none;
}

/* Custom arrow */
.ewsx-filter::after{
  content:"";
  position:absolute;
  right:14px;
  bottom:16px;
  width:10px;
  height:10px;
  border-right:2px solid #0A2A43D9;
  border-bottom:2px solid #0A2A43D9;
  transform:rotate(45deg);
  pointer-events:none;
  opacity:.75;
}
/* Extra hard reset for year select against theme */
.ewsx-app select,
.ewsx-app select:hover,
.ewsx-app select:focus,
.ewsx-app select:active{
  background-image:none !important;
  background-color:#fff !important;
  box-shadow:none !important;
  text-shadow:none !important;
  filter:none !important;
}
.ewsx-actions{ display:flex; gap:10px; }

/* Buttons */
.ewsx-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:12px;
  border:1px solid #e7e7e7; background:#fff;
  color:#0A2A43D9; text-decoration:none;
  font-weight:800; font-size:13px;
}
.ewsx-btn:hover{ background:#E6B372; color:#fff; }
.ewsx-btn-primary{ background:#0f172a; border-color:#0f172a; color:#fff; }
.ewsx-btn-primary:hover{ background:#E6B372; border-color:#E6B372; }

/* Grids */
.ewsx-grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px; }
.ewsx-grid2{ display:grid; grid-template-columns:1.35fr .85fr; gap:14px; margin-top:14px; }

/* Cards */
.ewsx-card{ background:#fff; border:1px solid #ececec; border-radius:16px; padding:16px; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.ewsx-cardtop{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ewsx-ctitle{ font-size:15px; }
.ewsx-csub{ font-size:12px; opacity:.7; margin-top:6px; }

.ewsx-kpi .ewsx-kv{ font-size:44px; font-weight:1000; margin-top:10px; letter-spacing:-.6px; }
.ewsx-ratio .ewsx-kv{ font-size:36px; }
.ewsx-dual{ margin-top:10px; display:flex; flex-direction:column; gap:6px; }
.ewsx-dual .en,.ewsx-dual .ar{ font-size:13px; font-weight:800; }
.ewsx-zone{ margin-top:10px; font-size:12px; opacity:.6; }

/* Badges */
.ewsx-badge{ font-size:11px; font-weight:1000; padding:6px 10px; border-radius:999px; border:1px solid #eee; letter-spacing:.6px; }
.ewsx-badge.is-ok{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.ewsx-badge.is-watch{ background:#fffbeb; border-color:#fde68a; color:#92400e; }
.ewsx-badge.is-high{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.ewsx-badge.is-na{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }

/* Score palette (5 levels) */
.ewsx-badge.is-score5{ background:#16A34A; color:#fff; border-color:transparent; }
.ewsx-badge.is-score4{ background:#35b26f; color:#fff; border-color:transparent; }
.ewsx-badge.is-score3{ background:#f2c94c; color:#1d1d1f; border-color:transparent; }
.ewsx-badge.is-score2{ background:#f2994a; color:#fff; border-color:transparent; }
.ewsx-badge.is-score1{ background:#eb5757; color:#fff; border-color:transparent; }
.ewsx-ratio .ewsx-badge{ white-space:nowrap; }

/* KPI bars */
.ewsx-bar{ height:6px; border-radius:999px; background:#eee; margin-top:14px; overflow:hidden; }
.ewsx-bar span{ display:block; height:100%; border-radius:999px; }
.ewsx-bar span.is-ok{ background:#22c55e; }
.ewsx-bar span.is-watch{ background:#f59e0b; }
.ewsx-bar span.is-high{ background:#ef4444; }
.ewsx-bar span.is-na{ background:#9ca3af; }

/* Boxes & lists */
.ewsx-box2{ margin-top:12px; border:1px solid #f0f0f0; border-radius:14px; padding:12px; }
.ewsx-box2t{ font-weight:1000; font-size:12px; margin-bottom:8px; }

.ewsx-list{ list-style:none; margin:10px 0 0; padding:0; }
.ewsx-list li{ display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px dashed #eee; }
.ewsx-list li:last-child{ border-bottom:0; }

.ewsx-note{ margin-top:14px; border-radius:14px; padding:12px; background:#f7f7f7; border:1px solid #ededed; }
.ewsx-note .t{ font-weight:1000; font-size:12px; margin-bottom:6px; }
.ewsx-note .d{ font-size:12px; opacity:.8; line-height:1.5; }

.ewsx-mt{ margin-top:14px; }

/* Generic dashboard boxes */
.ewsx-box{
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  color:#0f172a;
}

/* Details block inside Z card */
.ewsx-zdetails{
  border-top:1px dashed #e5e7eb;
  padding-top:10px;
}

.ewsx-zdetails summary{
  cursor:pointer;
  font-size:12px;
  font-weight:900;
  color:#0A2A43D9;
  outline:none;
}

.ewsx-zdetails summary:hover{
  color:#23B3C6;
}

/* Description block used under ratio cards */
.ewsx-desc-block{
  margin-top:10px;
  padding-top:8px;
  border-top:1px dashed #eee;
  font-size:11px;
  color:#666;
  line-height:1.4;
}

.ewsx-desc-block .en{
  font-weight:700;
  color:#334155;
}

.ewsx-desc-block .ar{
  margin-top:4px;
  direction:rtl;
  text-align:right;
  color:#475569;
}

/* Importance block inside group headers */
.imp-block{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed #e2e8f0;
}

.imp-block .imp-title{
  font-size:12px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:4px;
}

.imp-block .imp-text{
  font-size:12px;
  line-height:1.6;
  color:#475569;
}
/* Mini bars */
.ewsx-mini{ margin-top:12px; border-top:1px dashed #eee; padding-top:10px; }
.ewsx-minihead{ display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:12px; opacity:.8; font-weight:800; }
.ewsx-minibars{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.ewsx-minibars .brow{ display:grid; grid-template-columns:64px 1fr 96px; gap:10px; align-items:center; }
.ewsx-minibars .yl{ font-size:12px; font-weight:900; opacity:.8; }
.ewsx-minibars .vl{ font-size:12px; font-weight:900; text-align:right; opacity:.85; }
.ewsx-minibars .track{ height:10px; border-radius:999px; background:#f1f1f1; overflow:hidden; border:1px solid #ededed; }
.ewsx-minibars .track span{ display:block; height:100%; background:#0b74ff; border-radius:999px; opacity:.85; }
.ewsx-minibars .brow.is-sel .track span{ background:#111827; opacity:1; }
.ewsx-minibars .brow.is-avg .track span{ background:#16a34a; opacity:1; }

/* Notes */
.ewsx-rnote{ margin-top:12px; border:1px solid #f0f0f0; border-radius:14px; padding:10px; background:#fbfbfb; }
.ewsx-rnote .en{ font-size:12px; opacity:.75; font-weight:800; }
.ewsx-rnote .ar{ font-size:12px; opacity:.9; font-weight:900; margin-top:6px; }

/* ===== Gauge ===== */
.ewsx-gwrap{ margin-top:10px; margin-bottom:8px; }
.ewsx-gauge{
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 6px auto 0;
}
.ewsx-gauge-svg{ width:100%; height:auto; display:block; }
.ewsx-gauge .g-track{ stroke: rgba(15,23,42,0.10); }
.ewsx-gauge .g-val{ transition: stroke-dashoffset 450ms ease; }

/* center text */
.ewsx-gauge-center{
  position:absolute;
  left:0; right:0;
  bottom: 6px;
  text-align:center;
  pointer-events:none;
}
.ewsx-gauge-center .t{
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.ewsx-gauge-center .s{
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

/* color by kind (zones) */
.ewsx-gauge.is-ok    .g-val{ stroke: rgba(70, 220, 150, 0.95); }
.ewsx-gauge.is-watch .g-val{ stroke: rgba(250, 200, 60, 0.95); }
.ewsx-gauge.is-high  .g-val{ stroke: rgba(255, 90, 90, 0.95); }
.ewsx-gauge.is-na    .g-val{ stroke: rgba(180,180,180,0.7); }

/* color by score */
.ewsx-gauge.is-score5 .g-val{ stroke: rgba(70, 220, 150, 0.95); }
.ewsx-gauge.is-score4 .g-val{ stroke: rgba(120, 220, 170, 0.95); }
.ewsx-gauge.is-score3 .g-val{ stroke: rgba(250, 200, 60, 0.95); }
.ewsx-gauge.is-score2 .g-val{ stroke: rgba(255, 150, 80, 0.95); }
.ewsx-gauge.is-score1 .g-val{ stroke: rgba(255, 90, 90, 0.95); }

/* Z card safety */
.ewsx-kpi-z{ overflow:hidden; }
.ewsx-kpi-z .ewsx-gwrap{ margin-top:10px; margin-bottom:10px; }

/* Z card soft backgrounds by zone (keep ONE set only) */
.ewsx-kpi-z.is-safe{
  background:linear-gradient(180deg, rgba(34,197,94,.10), rgba(255,255,255,1));
  border-color:rgba(16,185,129,.22);
}
.ewsx-kpi-z.is-grey{
  background:linear-gradient(180deg, rgba(245,158,11,.12), rgba(255,255,255,1));
  border-color:rgba(245,158,11,.22);
}
.ewsx-kpi-z.is-distress{
  background:linear-gradient(180deg, rgba(239,68,68,.10), rgba(255,255,255,1));
  border-color:rgba(239,68,68,.22);
}
.ewsx-kpi-z.is-critical{
  background:linear-gradient(180deg, rgba(127,29,29,.12), rgba(255,255,255,1));
  border-color:rgba(220,38,38,.26);
}

/* Z meaning block */
.ewsx-zmeta{ margin-top:10px; }
.ewsx-zmeta .ewsx-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight:600;
  font-size:12px;
  opacity:.9;
}
.ewsx-meaning{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:rgba(0,0,0,.02);
}
.ewsx-meaning .row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin:6px 0;
  font-size:13px;
  line-height:1.45;
}
.ewsx-meaning .row .k{ opacity:.75; min-width:110px; }
.ewsx-meaning .row .v{
  font-weight:700;
  text-align:right;
  word-break:break-word;
}
.ewsx-meaning .row.dual{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.ewsx-meaning .row.dual .en{ opacity:.9; }
.ewsx-meaning .row.dual .ar{
  opacity:.9;
  text-align:right;
  direction:rtl;
  unicode-bidi:plaintext;
}

/* Threshold pills */
.ewsx-thr{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  align-items:center;
  line-height:1.2;
}
.ewsx-pill{
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  letter-spacing:.3px;
}
.ewsx-pill.is-safe{ background:rgba(34,197,94,.10); }
.ewsx-pill.is-grey{ background:rgba(245,158,11,.12); }
.ewsx-pill.is-distress{ background:rgba(239,68,68,.10); }
.ewsx-pill.is-critical{ background:rgba(127,29,29,.12); }

/* PD/LGD/EL helpers */

.ewsx-subgrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.ewsx-subgrid2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media (max-width: 980px){
  .ewsx-subgrid3,.ewsx-subgrid2{grid-template-columns:1fr}
}

.ewsx-mt-sm{ margin-top:12px; }

.ewsx-subcard{
  box-shadow:0 6px 18px rgba(15,23,42,.04);
  border:1px solid rgba(15, 23, 42, 0.08);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.ewsx-subtop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.ewsx-subtop .t{ font-weight:700; }
.ewsx-subg{ margin-top:4px; }
.ewsx-subfoot{ margin-top:10px; font-size:12px; opacity:.75; }

.ewsx-elv{
  font-size:42px;
  font-weight:800;
  line-height:1;
  margin:8px 0 10px;
}
.ewsx-eld .en{ font-weight:700; }
.ewsx-eld .ar{ margin-top:2px; opacity:.8; }

/* Fix: subcards gauges must be smaller + never overflow */
.ewsx-subcard .ewsx-gauge{
  max-width:180px;
  width:100%;
  margin:0 auto;
}
.ewsx-subcard .ewsx-gauge-center{ bottom:2px; }
.ewsx-subcard .ewsx-gauge-center .t{ font-size:16px; }
.ewsx-subcard .ewsx-gauge-center .s{ font-size:11px; }



/* Empty state (used in PHP when no entries) */
.ewsx-empty{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:55vh;
  padding:20px;
}
.ewsx-empty-card{
  background:#fff;
  border:1px solid #ececec;
  border-radius:18px;
  padding:22px;
  max-width:520px;
  width:100%;
  text-align:center;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.ewsx-empty-title{
  font-size:18px;
  font-weight:900;
  color:#0f172a;
}
.ewsx-empty-sub{
  margin-top:8px;
  font-size:13px;
  opacity:.75;
  line-height:1.6;
}
.ewsx-empty-card .ewsx-btn{ margin-top:14px; }

/* Responsive */
@media (max-width:1100px){
  .ewsx-app{ flex-direction:column; }

  .ewsx-side,
  .ewsx-app.is-collapsed .ewsx-side{
    position:relative;
    width:auto;
    min-width:0;
    height:auto;
  }

  .ewsx-main,
  .ewsx-app.is-collapsed .ewsx-main{
    margin-left:0;
  }

  .ewsx-grid3{ grid-template-columns:1fr; }
  .ewsx-grid2{ grid-template-columns:1fr; }
  .ewsx-top{ flex-direction:column; align-items:flex-start; }
  .ewsx-top-right{ justify-content:flex-start; }
  .ewsx-filter select{ min-width:220px; }
}
/* Hard override against theme links/buttons inside dashboard */
.ewsx-app a,
.ewsx-app a:link,
.ewsx-app a:visited,
.ewsx-app a:hover,
.ewsx-app a:focus,
.ewsx-app a:active{
  text-decoration:none !important;
}

.ewsx-app .ewsx-btn,
.ewsx-app .ewsx-btn:link,
.ewsx-app .ewsx-btn:visited{
  color:#0A2A43D9 !important;
  background:#fff !important;
  border:1px solid #e7e7e7 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-app .ewsx-btn:hover,
.ewsx-app .ewsx-btn:focus,
.ewsx-app .ewsx-btn:active{
  background:#E6B372 !important;
  color:#fff !important;
  border-color:#E6B372 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-app .ewsx-btn-primary,
.ewsx-app .ewsx-btn-primary:link,
.ewsx-app .ewsx-btn-primary:visited{
  background:#0f172a !important;
  border-color:#0f172a !important;
  color:#fff !important;
}

.ewsx-app .ewsx-btn-primary:hover,
.ewsx-app .ewsx-btn-primary:focus,
.ewsx-app .ewsx-btn-primary:active{
  background:#E6B372 !important;
  border-color:#E6B372 !important;
  color:#fff !important;
}
@media (max-width: 980px){
  .ewsx-subgrid3{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .ewsx-meaning{ padding:10px; }
  .ewsx-meaning .row.dual{ grid-template-columns:1fr; }
  .ewsx-meaning .row .k{ min-width:92px; }
}


/* --- New Group Header Style (No Icon - Clean Text) --- */
.ewsx-group-header {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 5px solid #23B3C6; /* خط أزرق جانبي مميز */
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 40px 0 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* إخفاء الأيقونة تماماً */
.ewsx-group-header .icon {
    display: none;
}

/* العنوان الرئيسي (إنجليزي + عربي) */
.ewsx-group-header .texts h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* النص العربي في العنوان */
.ewsx-group-header .texts h3 .ar {
    font-size: 18px;
    font-weight: 700;
    color: #23B3C6; /* تلوين العربي بالأزرق */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-left: 10px;
    border-left: 2px solid #23B3C6; /* فاصل خفيف */
}

/* النصوص الوصفية */
.ewsx-group-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.ewsx-group-header p.en {
    font-weight: 500;
}

.ewsx-group-header p.ar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 4px;
    direction: rtl; /* اتجاه النص */
    text-align: right; /* محاذاة لليمين */
    color: #475569;
}

/* Responsive: ترتيب العناصر على الموبايل */
@media (max-width: 768px) {
    .ewsx-group-header .texts h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ewsx-group-header .texts h3 .ar {
        border-left: none;
        padding-left: 0;
        font-size: 16px;
    }
}

/* --- Split Info Block (EN / AR) --- */
.ewsx-info-split {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #f1f5f9;
    text-align: left; /* Default alignment */
}

.ewsx-info-split .split-en p,
.ewsx-info-split .split-ar p {
    margin: 0;
    line-height: 1.4;
    font-size: 11px;
    color: #475569;
}

.ewsx-info-split .desc {
    margin-bottom: 4px !important;
    font-weight: 500;
    color: #1e293b !important;
}

.ewsx-info-split .imp {
    font-size: 10px !important;
    color: #64748b !important;
}

/* الخط الفاصل بين اللغتين */
.ewsx-info-split .split-div{
  height:1px;
  margin:8px 0;
  border-bottom:1px dashed #cbd5e1;
}

/* تنسيق العربي */
.ewsx-info-split .split-ar {
    text-align: right;
}
.ewsx-info-split .split-ar .desc {
    font-family: 'Segoe UI', sans-serif;
}
/* ================================
   Language visibility layer
   ================================ */

.ewsx-app.is-en .ar,
.ewsx-app.is-en .ar-only,
.ewsx-app.is-en .split-ar{
  display:none !important;
}

.ewsx-app.is-ar .en,
.ewsx-app.is-ar .en-only,
.ewsx-app.is-ar .split-en{
  display:none !important;
}

.ewsx-app.is-ar .ar,
.ewsx-app.is-ar .ar-only{
  direction:rtl;
  text-align:right;
}

.ewsx-app.is-en .en,
.ewsx-app.is-en .en-only{
  direction:ltr;
  text-align:left;
}

.ewsx-ctitle .en,
.ewsx-ctitle .ar{
  font-weight:900;
}

.ewsx-trendhint .en,
.ewsx-trendhint .ar{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#23B3C6;
}

.ewsx-app.is-ar .ewsx-trendhint .ar{
  text-transform:none;
  letter-spacing:0;
}

.ewsx-langseg{
  flex:0 0 auto;
}
.ewsx-ratio .ewsx-ctitle{
  font-size:15px;
  font-weight:900;
  line-height:1.25;
  color:#0A2A43D9;
}

.ewsx-ratio .ewsx-dual{
  margin-top:6px;
}

.ewsx-ratio .ewsx-dual .en,
.ewsx-ratio .ewsx-dual .ar{
  font-size:13px;
  font-weight:900;
  color:#0A2A43D9;
}

.ewsx-ratio .ewsx-desc-block{
  margin-top:10px;
  padding-top:8px;
  border-top:1px dashed #eee;
  font-size:11px;
  color:#334155;
  line-height:1.45;
}

.ewsx-ratio .ewsx-desc-block .en{
  font-weight:700;
}

.ewsx-ratio .ewsx-desc-block .ar{
  font-weight:700;
  direction:rtl;
  text-align:right;
}
.ewsx-ratio .ewsx-kv{
  margin-top:14px;
  margin-bottom:8px;
}

.ewsx-ratio .ewsx-trendhint{
  margin-top:4px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#23B3C6;
}

.ewsx-ratio .ewsx-desc-block{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed #eee;
}
/* Arabic group headers */
.ewsx-app.is-ar .ewsx-group-header{
  direction:rtl;
  text-align:right;
  border-left:1px solid #e5e7eb;
  border-right:5px solid #23B3C6;
}

.ewsx-app.is-ar .ewsx-group-header .texts h3{
  justify-content:flex-start;
  text-align:right;
}

.ewsx-app.is-ar .ewsx-group-header .texts h3 .ar{
  border-left:none;
  border-right:2px solid #23B3C6;
  padding-left:0;
  padding-right:10px;
}

.ewsx-app.is-ar .ewsx-group-header p{
  text-align:right;
}

.ewsx-app.is-ar .ewsx-group-header .imp-block{
  text-align:right;
}
/* Unified top controls */
.ewsx-top-right .ewsx-langseg,
.ewsx-top-right .ewsx-filter select,
.ewsx-top-right .ewsx-btn{
  min-height:56px;
}

.ewsx-top-right .ewsx-langseg{
  height:56px;
  border-radius:14px;
  align-self:flex-end;
}

.ewsx-top-right .ewsx-langbtn{
  height:56px;
  min-width:48px;
  padding:0 14px !important;
}

.ewsx-top-right .ewsx-filter{
  min-width:118px;
}

.ewsx-top-right .ewsx-filter select{
  height:56px;
  min-width:118px;
  padding-top:10px;
  padding-bottom:10px;
  border-radius:14px !important;
}

.ewsx-top-right .ewsx-btn{
  min-width:132px;
  min-height:56px;
  padding:10px 14px;
  border-radius:14px;
  line-height:1.25;
  gap:6px;
  text-align:center;
  white-space:normal;
}

.ewsx-top-right .ewsx-btn-primary{
  min-width:148px;
}
/* Header direction polish */
.ewsx-app.is-ar .ewsx-top{
  direction:rtl;
}

.ewsx-app.is-ar .ewsx-top > div:first-child{
  text-align:right;
}

.ewsx-app.is-ar .ewsx-top-right{
  direction:ltr;
  justify-content:flex-start;
}

.ewsx-app.is-ar .ewsx-filter{
  direction:rtl;
  text-align:right;
}

.ewsx-app.is-ar .ewsx-filter select{
  direction:rtl;
  text-align:right;
  padding-left:42px;
  padding-right:14px;
}

.ewsx-app.is-ar .ewsx-filter::after{
  right:auto;
  left:14px;
}
.ewsx-subcard .ewsx-eld{
  margin-top:6px;
  font-size:12px;
  font-weight:800;
  color:#0A2A43D9;
  opacity:.85;
}

.ewsx-app.is-ar .ewsx-subcard .ewsx-eld{
  direction:ltr;
  text-align:right;
}
/* ================================
   Start Here / Service Map teaser
   ================================ */

.ewsx-start{
  margin-top:14px;
  background:#fff;
  border:1px solid #ececec;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.ewsx-start-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  padding-bottom:14px;
  border-bottom:1px dashed #e5e7eb;
}

.ewsx-start-kicker{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  font-size:13px !important;
  font-weight:1000 !important;
  color:#23B3C6 !important;
  text-transform:uppercase !important;
  letter-spacing:.7px !important;
  margin-bottom:8px !important;
}

.ewsx-start h2{
  font-size:28px !important;
  line-height:1.2 !important;
  font-weight:1000 !important;
  color:#0A2A43D9 !important;
  margin:0 !important;
}

.ewsx-start p{
  margin-top:8px !important;
  font-size:14px !important;
  line-height:1.8 !important;
  color:#475569 !important;
  max-width:920px !important;
}

.ewsx-start-mapbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid #0A2A43D9;
  background:#0A2A43D9;
  color:#fff !important;
  font-size:13px;
  font-weight:900;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-start-mapbtn:hover,
.ewsx-start-mapbtn:focus{
  background:#E6B372;
  border-color:#E6B372;
  color:#fff !important;
}

.ewsx-start-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}

.ewsx-start-card{
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ewsx-start-card:hover{
  border-color:rgba(35,179,198,.45);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  transform:translateY(-1px);
}

.ewsx-start-card summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  color:#0A2A43D9;
  font-weight:1000;
  outline:none;
}

.ewsx-start-card summary::-webkit-details-marker{
  display:none;
}

.ewsx-start-card summary:after{
  content:"+";
  margin-left:auto;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#f1f5f9;
  color:#0A2A43D9;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
}

.ewsx-start-card[open] summary:after{
  content:"−";
  background:rgba(35,179,198,.14);
}

.ewsx-route-no{
  width:30px;
  height:30px;
  border-radius:12px;
  background:rgba(35,179,198,.12);
  color:#0A2A43D9;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:1000;
  flex:0 0 auto;
}

.ewsx-route-title{
  font-size:14px;
  line-height:1.25;
}

.ewsx-route-body{
  padding:0 14px 14px;
}

.ewsx-route-body p{
  margin:0;
  font-size:12px;
  line-height:1.7;
  color:#475569;
}

.ewsx-route-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}

.ewsx-route-tags span{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #edf2f7;
  color:#334155;
  font-size:11px;
  font-weight:800;
}

.ewsx-route-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.ewsx-route-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 10px;
  border-radius:12px;
  background:#fff;
  border:1px solid #dfe3e8;
  color:#0A2A43D9 !important;
  font-size:12px;
  font-weight:900;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-route-actions a:hover,
.ewsx-route-actions a:focus{
  background:#E6B372;
  border-color:#E6B372;
  color:#fff !important;
}

/* Arabic mode */
.ewsx-app.is-ar .ewsx-start{
  direction:rtl;
  text-align:right;
}

.ewsx-app.is-ar .ewsx-start-head{
  direction:rtl;
}

.ewsx-app.is-ar .ewsx-start-mapbtn{
  direction:rtl;
}

.ewsx-app.is-ar .ewsx-start-card summary{
  direction:rtl;
}

.ewsx-app.is-ar .ewsx-start-card summary:after{
  margin-left:0;
  margin-right:auto;
}

.ewsx-app.is-ar .ewsx-route-body,
.ewsx-app.is-ar .ewsx-route-tags,
.ewsx-app.is-ar .ewsx-route-actions{
  direction:rtl;
  text-align:right;
}

/* English mode */
.ewsx-app.is-en .ewsx-start{
  direction:ltr;
  text-align:left;
}

.ewsx-app.is-en .ewsx-start-card summary{
  direction:ltr;
}
/* Hard lock for Start Here block against theme hover */
.ewsx-start,
.ewsx-start *{
  box-sizing:border-box;
}

.ewsx-start a,
.ewsx-start a:link,
.ewsx-start a:visited,
.ewsx-start a:hover,
.ewsx-start a:focus,
.ewsx-start a:active{
  text-decoration:none !important;
  box-shadow:none !important;
  outline:none !important;
}

.ewsx-start-card,
.ewsx-start-card:hover,
.ewsx-start-card:focus-within{
  background:#fff !important;
  color:#0A2A43D9 !important;
}

.ewsx-start-card:hover{
  border-color:rgba(35,179,198,.55) !important;
  box-shadow:0 12px 28px rgba(15,23,42,.07) !important;
  transform:translateY(-1px);
}

.ewsx-start-card summary,
.ewsx-start-card summary:hover,
.ewsx-start-card summary:focus,
.ewsx-start-card summary:active{
  background:transparent !important;
  color:#0A2A43D9 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  outline:none !important;
}

.ewsx-route-tags span,
.ewsx-route-tags span:hover{
  background:#f8fafc !important;
  border:1px solid #edf2f7 !important;
  color:#0A2A43D9 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-route-actions a,
.ewsx-route-actions a:link,
.ewsx-route-actions a:visited{
  background:#fff !important;
  border:1px solid #dfe3e8 !important;
  color:#0A2A43D9 !important;
}

.ewsx-route-actions a:hover,
.ewsx-route-actions a:focus,
.ewsx-route-actions a:active{
  background:#E6B372 !important;
  border-color:#E6B372 !important;
  color:#fff !important;
}

.ewsx-start-mapbtn,
.ewsx-start-mapbtn:link,
.ewsx-start-mapbtn:visited{
  background:#0A2A43D9 !important;
  border-color:#0A2A43D9 !important;
  color:#fff !important;
}

.ewsx-start-mapbtn:hover,
.ewsx-start-mapbtn:focus,
.ewsx-start-mapbtn:active{
  background:#E6B372 !important;
  border-color:#E6B372 !important;
  color:#fff !important;
}
.ewsx-route-tags span{
  align-items:center !important;
  justify-content:center !important;
  line-height:1.25 !important;
}

.ewsx-route-tags span .ar,
.ewsx-route-tags span .en{
  font-size:11px !important;
  font-weight:900 !important;
}

.ewsx-app.is-ar .ewsx-route-tags{
  justify-content:flex-start;
}

.ewsx-app.is-en .ewsx-route-tags{
  justify-content:flex-start;
}
/* ================================
   Full Service Map Page
   ================================ */

.ewsx-service-map.ewsx-app{
  display:block !important;
  width:100%;
  max-width:none;
  margin:0;
  padding:18px;
  background:#f8fafc;
  color:#0A2A43D9;
}

.ewssm-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:22px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.ewssm-kicker{
  display:inline-flex;
  color:#23B3C6;
  font-size:13px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.7px;
  margin-bottom:8px;
}

.ewssm-hero h1{
  margin:0;
  font-size:34px;
  line-height:1.15;
  font-weight:1000;
  color:#0A2A43D9;
}

.ewssm-hero p{
  margin-top:10px;
  max-width:860px;
  font-size:15px;
  line-height:1.8;
  color:#475569;
}

.ewssm-lang{
  min-width:110px;
  height:52px;
  flex:0 0 auto;
}

.ewssm-panel{
  margin-top:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.ewssm-filters > input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.ewssm-filter-labels{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-bottom:14px;
  border-bottom:1px dashed #e5e7eb;
}

.ewssm-filter-labels label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 13px;
  border-radius:999px;
  border:1px solid #dfe3e8;
  background:#fff;
  color:#0A2A43D9;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}

.ewssm-filter-labels label:hover,
.ewssm-filter-labels label:focus{
  background:#E6B372 !important;
  border-color:#E6B372 !important;
  color:#fff !important;
}

#ewssm-all:checked ~ .ewssm-filter-labels label[for="ewssm-all"],
#ewssm-data:checked ~ .ewssm-filter-labels label[for="ewssm-data"],
#ewssm-diagnosis:checked ~ .ewssm-filter-labels label[for="ewssm-diagnosis"],
#ewssm-performance:checked ~ .ewssm-filter-labels label[for="ewssm-performance"],
#ewssm-risk:checked ~ .ewssm-filter-labels label[for="ewssm-risk"],
#ewssm-liquidity:checked ~ .ewssm-filter-labels label[for="ewssm-liquidity"],
#ewssm-planning:checked ~ .ewssm-filter-labels label[for="ewssm-planning"],
#ewssm-factory:checked ~ .ewssm-filter-labels label[for="ewssm-factory"]{
  background:#0A2A43D9 !important;
  border-color:#0A2A43D9 !important;
  color:#fff !important;
}

.ewssm-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-top:16px;
}

.ewssm-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ewssm-card:hover{
  transform:translateY(-2px);
  border-color:rgba(35,179,198,.55) !important;
  box-shadow:0 14px 32px rgba(15,23,42,.08) !important;
}

.ewssm-card-top{
  display:flex;
  gap:12px;
  align-items:center;
  padding-bottom:12px;
  border-bottom:1px dashed #e5e7eb;
}

.ewssm-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(35,179,198,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex:0 0 auto;
}

.ewssm-card h3{
  margin:0;
  color:#0A2A43D9;
  font-size:17px;
  line-height:1.35;
  font-weight:1000;
}

.ewssm-info{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ewssm-row strong{
  display:block;
  color:#23B3C6;
  font-size:12px;
  font-weight:1000;
  margin-bottom:4px;
}

.ewssm-row p{
  margin:0;
  color:#475569;
  font-size:13px;
  line-height:1.7;
}

.ewssm-btn{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid #0A2A43D9;
  background:#0A2A43D9;
  color:#fff !important;
  font-size:13px;
  font-weight:1000;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewssm-btn:hover,
.ewssm-btn:focus,
.ewssm-btn:active{
  background:#E6B372 !important;
  border-color:#E6B372 !important;
  color:#fff !important;
}

/* CSS-only filters */
#ewssm-data:checked ~ .ewssm-grid .ewssm-card,
#ewssm-diagnosis:checked ~ .ewssm-grid .ewssm-card,
#ewssm-performance:checked ~ .ewssm-grid .ewssm-card,
#ewssm-risk:checked ~ .ewssm-grid .ewssm-card,
#ewssm-liquidity:checked ~ .ewssm-grid .ewssm-card,
#ewssm-planning:checked ~ .ewssm-grid .ewssm-card,
#ewssm-factory:checked ~ .ewssm-grid .ewssm-card{
  display:none;
}

#ewssm-data:checked ~ .ewssm-grid .ewssm-cat-data,
#ewssm-diagnosis:checked ~ .ewssm-grid .ewssm-cat-diagnosis,
#ewssm-performance:checked ~ .ewssm-grid .ewssm-cat-performance,
#ewssm-risk:checked ~ .ewssm-grid .ewssm-cat-risk,
#ewssm-liquidity:checked ~ .ewssm-grid .ewssm-cat-liquidity,
#ewssm-planning:checked ~ .ewssm-grid .ewssm-cat-planning,
#ewssm-factory:checked ~ .ewssm-grid .ewssm-cat-factory{
  display:flex;
}

/* Hard lock against theme */
.ewsx-service-map a,
.ewsx-service-map a:link,
.ewsx-service-map a:visited,
.ewsx-service-map a:hover,
.ewsx-service-map a:focus,
.ewsx-service-map a:active,
.ewsx-service-map label,
.ewsx-service-map label:hover,
.ewsx-service-map label:focus{
  text-decoration:none !important;
  box-shadow:none !important;
  outline:none !important;
}

.ewsx-service-map.is-ar{
  direction:rtl;
  text-align:right;
}

.ewsx-service-map.is-en{
  direction:ltr;
  text-align:left;
}

.ewsx-service-map.is-ar .ewssm-hero,
.ewsx-service-map.is-ar .ewssm-card-top,
.ewsx-service-map.is-ar .ewssm-info,
.ewsx-service-map.is-ar .ewssm-filter-labels{
  direction:rtl;
  text-align:right;
}

.ewsx-service-map.is-en .ewssm-hero,
.ewsx-service-map.is-en .ewssm-card-top,
.ewsx-service-map.is-en .ewssm-info,
.ewsx-service-map.is-en .ewssm-filter-labels{
  direction:ltr;
  text-align:left;
}
/* Add Company modal */
.ewsx-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.ewsx-modal.is-open{
  display:flex;
}

.ewsx-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);
}

.ewsx-modal-panel{
  position:relative;
  width:min(760px, 96vw);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:20px;
  border:1px solid #e5e7eb;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
}

.ewsx-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:18px;
  border-bottom:1px dashed #e5e7eb;
}

.ewsx-modal-kicker{
  font-size:12px;
  font-weight:1000;
  color:#23B3C6;
  text-transform:uppercase;
  letter-spacing:.6px;
  margin-bottom:5px;
}

.ewsx-modal-head h3{
  font-size:22px;
  font-weight:1000;
  color:#0A2A43D9;
  margin:0;
}

.ewsx-modal-close{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid #dfe3e8;
  background:#fff;
  color:#0A2A43D9;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.ewsx-modal-close:hover,
.ewsx-modal-close:focus{
  background:#E6B372;
  border-color:#E6B372;
  color:#fff;
}

.ewsx-modal-body{
  padding:18px;
}

/* Company panel */
.ewsx-companies-panel{
  margin-top:14px;
  background:#fff;
  border:1px solid #ececec;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.ewsx-companies-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  padding-bottom:14px;
  border-bottom:1px dashed #e5e7eb;
}

.ewsx-companies-kicker{
  color:#23B3C6;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.6px;
  margin-bottom:5px;
}

.ewsx-companies-head h2{
  font-size:20px;
  line-height:1.25;
  font-weight:1000;
  color:#0A2A43D9;
  margin:0;
}

.ewsx-companies-head p{
  margin-top:6px;
  font-size:13px;
  line-height:1.6;
  color:#64748b;
}

.ewsx-companies-empty{
  margin-top:14px;
  padding:14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px dashed #dfe3e8;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.ewsx-companies-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

.ewsx-company-chip{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid #e5e7eb;
  background:#fff;
}

.ewsx-company-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(35,179,198,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.ewsx-company-info .name{
  font-size:14px;
  font-weight:1000;
  color:#0A2A43D9;
}

.ewsx-company-info .serial{
  margin-top:4px;
  font-size:12px;
  color:#64748b;
  font-weight:800;
}

.ewsx-btn-company{
  border-color:rgba(35,179,198,.35) !important;
  background:#fff !important;
  color:#0A2A43D9 !important;
}

.ewsx-btn-company:hover,
.ewsx-btn-company:focus{
  background:#23B3C6 !important;
  border-color:#23B3C6 !important;
  color:#fff !important;
}

.ewsx-empty-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.ewsx-empty-actions .ewsx-btn{
  margin-top:0 !important;
}

/* Arabic */
.ewsx-app.is-ar .ewsx-companies-panel,
.ewsx-app.is-ar .ewsx-modal-panel{
  direction:rtl;
  text-align:right;
}
.ewsx-modal-lock{
  overflow:hidden;
}
@media (max-width:1100px){
  .ewsx-companies-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:720px){
  .ewsx-companies-grid{
    grid-template-columns:1fr;
  }

  .ewsx-companies-head .ewsx-btn{
    width:100%;
  }

  .ewsx-modal-panel{
    width:96vw;
  }
}
@media (max-width:1100px){
  .ewssm-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:720px){
  .ewsx-service-map.ewsx-app{
    padding:12px;
  }

  .ewssm-hero{
    flex-direction:column;
  }

  .ewssm-hero h1{
    font-size:26px;
  }

  .ewssm-grid{
    grid-template-columns:1fr;
  }

  .ewssm-lang{
    width:100%;
  }
}
/* Responsive */
@media (max-width:1100px){
  .ewsx-start-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:720px){
  .ewsx-start-grid{
    grid-template-columns:1fr;
  }

  .ewsx-start-head{
    align-items:stretch;
  }

  .ewsx-start-mapbtn{
    width:100%;
  }
}
@media (max-width:720px){
  .ewsx-start h2{
    font-size:22px !important;
  }

  .ewsx-start-kicker{
    font-size:12px !important;
  }

  .ewsx-start p{
    font-size:13px !important;
  }
}
/* Sidebar logo final override - no background wrapper */
.ewsx-side .ewsx-logo,
.ewsx-side .ewsx-brand-logo,
.ewsx-side .ewsx-brand-icon,
.ewsx-side .ewsx-brand-img-wrap{
  width:56px !important;
  height:56px !important;
  border-radius:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:visible !important;
  color:transparent !important;
}

.ewsx-side .ewsx-logo img,
.ewsx-side .ewsx-brand-logo img,
.ewsx-side .ewsx-brand-icon img,
.ewsx-side .ewsx-brand-img-wrap img{
  width:56px !important;
  height:56px !important;
  object-fit:contain !important;
  display:block !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

/* Collapsed sidebar logo */
.ewsx-app.is-collapsed .ewsx-side .ewsx-logo{
  width:48px !important;
  height:48px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.ewsx-app.is-collapsed .ewsx-side .ewsx-logo img{
  width:48px !important;
  height:48px !important;
}
/* ================================
   Empty onboarding state
   ================================ */

.ewsx-empty-onboarding{
  max-width:640px !important;
  padding:28px !important;
  border-radius:22px !important;
  text-align:center !important;
}

.ewsx-empty-kicker{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-bottom:10px !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  background:rgba(35,179,198,.10) !important;
  color:#23B3C6 !important;
  font-size:12px !important;
  font-weight:1000 !important;
  letter-spacing:.4px !important;
}

.ewsx-empty-onboarding .ewsx-empty-title{
  font-size:23px !important;
  line-height:1.35 !important;
  font-weight:1000 !important;
  color:#0A2A43D9 !important;
}

.ewsx-empty-onboarding .ewsx-empty-sub{
  margin-top:12px !important;
  font-size:14px !important;
  line-height:1.9 !important;
  color:#50657a !important;
  opacity:1 !important;
}

.ewsx-empty-steps{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:10px !important;
  margin-top:18px !important;
}

.ewsx-empty-step{
  border:1px solid #e5e7eb !important;
  border-radius:16px !important;
  padding:12px 10px !important;
  background:#fff !important;
  color:#0A2A43D9 !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.5 !important;
}

.ewsx-empty-step .n{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  border-radius:12px !important;
  margin-bottom:8px !important;
  background:rgba(35,179,198,.12) !important;
  color:#0A2A43D9 !important;
  font-size:11px !important;
  font-weight:1000 !important;
}

.ewsx-empty-footnote{
  margin-top:14px !important;
  padding-top:12px !important;
  border-top:1px dashed #e5e7eb !important;
  font-size:12px !important;
  line-height:1.7 !important;
  color:#64748b !important;
}

/* Empty buttons hard lock against theme */
.ewsx-empty-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-top:18px !important;
}

.ewsx-empty-actions .ewsx-empty-companybtn,
.ewsx-empty-actions .ewsx-empty-companybtn:link,
.ewsx-empty-actions .ewsx-empty-companybtn:visited{
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:14px !important;
  border:1px solid rgba(35,179,198,.45) !important;
  background:#fff !important;
  background-image:none !important;
  color:#0A2A43D9 !important;
  font-size:13px !important;
  font-weight:1000 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
}

.ewsx-empty-actions .ewsx-empty-companybtn:hover,
.ewsx-empty-actions .ewsx-empty-companybtn:focus,
.ewsx-empty-actions .ewsx-empty-companybtn:active{
  background:#23B3C6 !important;
  background-image:none !important;
  border-color:#23B3C6 !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(35,179,198,.22) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
}

.ewsx-empty-actions .ewsx-empty-finbtn,
.ewsx-empty-actions .ewsx-empty-finbtn:link,
.ewsx-empty-actions .ewsx-empty-finbtn:visited{
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:14px !important;
  border:1px solid #0A2A43D9 !important;
  background:#0A2A43D9 !important;
  background-image:none !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:1000 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
}

.ewsx-empty-actions .ewsx-empty-finbtn:hover,
.ewsx-empty-actions .ewsx-empty-finbtn:focus,
.ewsx-empty-actions .ewsx-empty-finbtn:active{
  background:#23B3C6 !important;
  background-image:none !important;
  border-color:#23B3C6 !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(35,179,198,.22) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
}

.ewsx-empty-actions .ewsx-empty-companybtn *,
.ewsx-empty-actions .ewsx-empty-finbtn *,
.ewsx-empty-actions .ewsx-empty-companybtn:hover *,
.ewsx-empty-actions .ewsx-empty-finbtn:hover *{
  color:inherit !important;
  text-decoration:none !important;
}

.ewsx-app.is-ar .ewsx-empty-onboarding{
  direction:rtl !important;
  text-align:center !important;
}

.ewsx-app.is-ar .ewsx-empty-onboarding .ar{
  direction:rtl !important;
  text-align:center !important;
}

.ewsx-app.is-en .ewsx-empty-onboarding{
  direction:ltr !important;
  text-align:center !important;
}

@media (max-width:720px){
  .ewsx-empty-onboarding{
    padding:22px !important;
  }

  .ewsx-empty-steps{
    grid-template-columns:1fr !important;
  }

  .ewsx-empty-actions{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .ewsx-empty-actions .ewsx-empty-companybtn,
  .ewsx-empty-actions .ewsx-empty-finbtn{
    width:100% !important;
  }
}
/* ================================
   Empty onboarding final polish
   ================================ */

.ewsx-empty-wrap.ewsx-app{
  display:block !important;
  width:100% !important;
  min-height:100vh !important;
  background:#fff !important;
}

.ewsx-empty-onboarding{
  max-width:680px !important;
  padding:28px !important;
  border-radius:22px !important;
  text-align:center !important;
}

.ewsx-empty-kicker{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-bottom:10px !important;
  padding:6px 12px !important;
  border-radius:999px !important;
  background:rgba(35,179,198,.10) !important;
  color:#23B3C6 !important;
  font-size:12px !important;
  font-weight:1000 !important;
  letter-spacing:.3px !important;
}

.ewsx-empty-onboarding .ewsx-empty-title{
  font-size:24px !important;
  line-height:1.35 !important;
  font-weight:1000 !important;
  color:#0A2A43D9 !important;
}

.ewsx-empty-onboarding .ewsx-empty-sub{
  margin:12px auto 0 !important;
  max-width:560px !important;
  font-size:14px !important;
  line-height:1.9 !important;
  color:#50657a !important;
  opacity:1 !important;
}

.ewsx-empty-steps{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:10px !important;
  margin-top:20px !important;
}

.ewsx-empty-step{
  border:1px solid #e5e7eb !important;
  border-radius:16px !important;
  padding:13px 10px !important;
  background:#fff !important;
  color:#0A2A43D9 !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.6 !important;
}

.ewsx-empty-step .n{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  border-radius:12px !important;
  margin-bottom:8px !important;
  background:rgba(35,179,198,.12) !important;
  color:#0A2A43D9 !important;
  font-size:11px !important;
  font-weight:1000 !important;
}

.ewsx-empty-footnote{
  margin-top:16px !important;
  padding-top:13px !important;
  border-top:1px dashed #e5e7eb !important;
  font-size:12px !important;
  line-height:1.7 !important;
  color:#64748b !important;
}

.ewsx-empty-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-top:20px !important;
}

/* Company button */
.ewsx-empty-actions .ewsx-empty-companybtn,
.ewsx-empty-actions .ewsx-empty-companybtn:link,
.ewsx-empty-actions .ewsx-empty-companybtn:visited{
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:14px !important;
  border:1px solid rgba(35,179,198,.45) !important;
  background:#fff !important;
  background-image:none !important;
  color:#0A2A43D9 !important;
  font-size:13px !important;
  font-weight:1000 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
}

.ewsx-empty-actions .ewsx-empty-companybtn:hover,
.ewsx-empty-actions .ewsx-empty-companybtn:focus,
.ewsx-empty-actions .ewsx-empty-companybtn:active{
  background:#23B3C6 !important;
  background-image:none !important;
  border-color:#23B3C6 !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(35,179,198,.22) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
}

/* Financial year button */
.ewsx-empty-actions .ewsx-empty-finbtn,
.ewsx-empty-actions .ewsx-empty-finbtn:link,
.ewsx-empty-actions .ewsx-empty-finbtn:visited{
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:14px !important;
  border:1px solid #0A2A43D9 !important;
  background:#0A2A43D9 !important;
  background-image:none !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:1000 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
}

.ewsx-empty-actions .ewsx-empty-finbtn:hover,
.ewsx-empty-actions .ewsx-empty-finbtn:focus,
.ewsx-empty-actions .ewsx-empty-finbtn:active{
  background:#23B3C6 !important;
  background-image:none !important;
  border-color:#23B3C6 !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(35,179,198,.22) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
}

/* Disabled financial year button before adding company */
.ewsx-empty-actions .ewsx-empty-finbtn.is-disabled,
.ewsx-empty-actions .ewsx-empty-finbtn:disabled,
.ewsx-empty-actions .ewsx-empty-finbtn.is-disabled:hover,
.ewsx-empty-actions .ewsx-empty-finbtn:disabled:hover{
  background:#f1f5f9 !important;
  background-image:none !important;
  border-color:#dbe3ea !important;
  color:#94a3b8 !important;
  box-shadow:none !important;
  transform:none !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}

.ewsx-empty-actions .ewsx-empty-companybtn *,
.ewsx-empty-actions .ewsx-empty-finbtn *,
.ewsx-empty-actions .ewsx-empty-companybtn:hover *,
.ewsx-empty-actions .ewsx-empty-finbtn:hover *{
  color:inherit !important;
  text-decoration:none !important;
}

/* Language visibility for empty state */
.ewsx-empty-wrap.is-en .ar{
  display:none !important;
}

.ewsx-empty-wrap.is-ar .en{
  display:none !important;
}

.ewsx-empty-wrap.is-ar{
  direction:rtl !important;
  text-align:center !important;
}

.ewsx-empty-wrap.is-en{
  direction:ltr !important;
  text-align:center !important;
}

.ewsx-empty-wrap.is-ar .ar{
  direction:rtl !important;
  text-align:center !important;
}

@media (max-width:720px){
  .ewsx-empty-onboarding{
    padding:22px !important;
  }

  .ewsx-empty-steps{
    grid-template-columns:1fr !important;
  }

  .ewsx-empty-actions{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .ewsx-empty-actions .ewsx-empty-companybtn,
  .ewsx-empty-actions .ewsx-empty-finbtn{
    width:100% !important;
  }
}
/* Empty state language toggle */
.ewsx-empty-langseg{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  margin:0 auto 14px !important;
  border:1px solid #dfe3e8 !important;
  border-radius:14px !important;
  overflow:hidden !important;
  background:#fff !important;
  box-shadow:0 8px 20px rgba(15,23,42,.04) !important;
}

.ewsx-empty-langbtn{
  border:0 !important;
  background:#fff !important;
  color:#0A2A43D9 !important;
  min-width:48px !important;
  height:40px !important;
  padding:0 14px !important;
  cursor:pointer !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:1000 !important;
  box-shadow:none !important;
  outline:none !important;
}

.ewsx-empty-langbtn + .ewsx-empty-langbtn{
  border-left:1px solid #e5e7eb !important;
}

.ewsx-empty-langbtn:hover,
.ewsx-empty-langbtn:focus{
  background:rgba(230,179,114,.18) !important;
  color:#0A2A43D9 !important;
}

.ewsx-empty-langbtn.active{
  background:rgba(35,179,198,.16) !important;
  color:#0A2A43D9 !important;
}
/* Sidebar company/user block at top */
.ewsx-user.is-top{
  margin:12px 0 12px !important;
  padding:10px 0 12px !important;
  border-top:0 !important;
  border-bottom:1px solid #f1f1f1 !important;
}

.ewsx-user.is-top .name{
  max-width:170px;
  white-space:normal;
}

.ewsx-app.is-collapsed .ewsx-user.is-top{
  justify-content:center;
  border-bottom:0 !important;
  padding:8px 0 !important;
}
/* =========================================================
   Final launch polish - sidebar + primary action buttons
   ========================================================= */

/* Sidebar hover: border only, no orange background */
.ewsx-side .ewsx-navitem:not(.is-active):hover,
.ewsx-side .ewsx-navitem:not(.is-active):focus,
.ewsx-side .ewsx-navitem:not(.is-active):active{
  background:transparent !important;
  border-color:#0A2A43D9 !important;
  color:#0A2A43D9 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.ewsx-side .ewsx-navitem:not(.is-active):hover .ewsx-ico,
.ewsx-side .ewsx-navitem:not(.is-active):focus .ewsx-ico,
.ewsx-side .ewsx-navitem:not(.is-active):active .ewsx-ico{
  background:rgba(10,42,67,.08) !important;
  color:#0A2A43D9 !important;
}

/* View/Edit Financial Years base color */
.ewsx-top-right .ewsx-entries-btn,
.ewsx-top-right .ewsx-entries-btn:link,
.ewsx-top-right .ewsx-entries-btn:visited{
  background:#0A2A43D9 !important;
  border-color:#0A2A43D9 !important;
  color:#fff !important;
}

/* Icon inside View/Edit Financial Years */
.ewsx-top-right .ewsx-entries-btn .ewsx-btn-ico-pill{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#0A2A43D9 !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.12) !important;
  margin-inline-end:8px !important;
}

/* Front action buttons hover: soft orange like language toggle */
.ewsx-top-right .ewsx-btn:hover,
.ewsx-top-right .ewsx-btn:focus,
.ewsx-top-right .ewsx-btn:active,
.ewsx-start-mapbtn:hover,
.ewsx-start-mapbtn:focus,
.ewsx-start-mapbtn:active{
  background:rgba(230,179,114,.18) !important;
  border-color:rgba(230,179,114,.45) !important;
  color:#0A2A43D9 !important;
  box-shadow:none !important;
  transform:translateY(-1px) !important;
  text-decoration:none !important;
}

.ewsx-top-right .ewsx-btn:hover *,
.ewsx-top-right .ewsx-btn:focus *,
.ewsx-top-right .ewsx-btn:active *,
.ewsx-start-mapbtn:hover *,
.ewsx-start-mapbtn:focus *,
.ewsx-start-mapbtn:active *{
  color:inherit !important;
  text-decoration:none !important;
}

/* View/Edit icon hover follows the soft hover */
.ewsx-top-right .ewsx-entries-btn:hover .ewsx-btn-ico-pill,
.ewsx-top-right .ewsx-entries-btn:focus .ewsx-btn-ico-pill,
.ewsx-top-right .ewsx-entries-btn:active .ewsx-btn-ico-pill{
  background:rgba(230,179,114,.18) !important;
  border-color:rgba(10,42,67,.18) !important;
  color:#0A2A43D9 !important;
}

/* Keep Add Company button in top actions clean */
.ewsx-top-right .ewsx-btn-company:hover,
.ewsx-top-right .ewsx-btn-company:focus,
.ewsx-top-right .ewsx-btn-company:active{
  background:rgba(230,179,114,.18) !important;
  border-color:rgba(230,179,114,.45) !important;
  color:#0A2A43D9 !important;
}

/* Full map button: base navy, hover soft orange */
.ewsx-start-mapbtn,
.ewsx-start-mapbtn:link,
.ewsx-start-mapbtn:visited{
  background:#0A2A43D9 !important;
  border-color:#0A2A43D9 !important;
  color:#fff !important;
}

.ewsx-start-mapbtn:hover,
.ewsx-start-mapbtn:focus,
.ewsx-start-mapbtn:active{
  background:rgba(230,179,114,.18) !important;
  border-color:rgba(230,179,114,.45) !important;
  color:#0A2A43D9 !important;
}