/* =====================================================================
   «بینش بازار» — design system v2
   Tokens first (light + dark), then the app shell, then components.
   Class names (ix-*) are the public API used by every template; keep them stable.
   ===================================================================== */
:root {
  color-scheme: light;
  --ix-bg: #f3f5fa;
  --ix-surface: #ffffff;
  --ix-surface-2: #f7f8fc;
  --ix-surface-3: #eef1f7;
  --ix-border: #e4e8f0;
  --ix-border-strong: #d0d7e4;
  --ix-text: #141b2d;
  --ix-text-2: #475069;
  --ix-muted: #677087;
  --ix-primary: #4f46e5;
  --ix-primary-2: #7c3aed;
  --ix-primary-weak: #eef0fe;
  --ix-primary-ring: rgba(79, 70, 229, .18);
  --ix-btn: #4f46e5;           /* filled buttons / active tabs: white text on it must stay readable */
  --ix-btn-hover: #4338ca;
  --ix-input-bg: #ffffff;
  --ix-scroll-thumb: #c9d0dd;
  --ix-scroll-thumb-hover: #a9b2c4;
  --ix-accent: #f2643b;          /* the selected / focus brand, everywhere */
  --ix-accent-weak: #fff0ea;
  --ix-ok: #12936a;  --ix-ok-weak: #e3f6ee;
  --ix-warn: #c27c0e; --ix-warn-weak: #fdf4e2;
  --ix-bad: #d23f3f;  --ix-bad-weak: #fdeaea;
  --ix-info: #0f8fbf; --ix-info-weak: #e2f4fb;
  --ix-cheap: #12936a; --ix-mid: #8590a8; --ix-premium: #c2453a;
  --ix-demo: #7b5cc4; --ix-demo-weak: #f1ecfc;
  --ix-row-hover: #f8f9fd;
  --ix-row-line: #eef1f6;
  --ix-radius: 16px;
  --ix-radius-sm: 10px;
  --ix-shadow: 0 1px 2px rgba(20, 27, 45, .04), 0 2px 8px rgba(20, 27, 45, .04);
  --ix-shadow-lg: 0 18px 40px rgba(20, 27, 45, .14);
  --ix-side: 256px;
  --ix-side-mini: 76px;
  --ix-top: 64px;
  /* sidebar is always dark, in both themes */
  --ix-side-bg: #0f1428;
  --ix-side-bg-2: #151b35;
  --ix-side-text: #aab2cc;
  --ix-side-text-hi: #ffffff;
  --ix-side-muted: #7880a3;
  --ix-side-hover: rgba(255, 255, 255, .06);
  --ix-side-active: rgba(124, 115, 255, .18);
  /* chart theme (read by insight.js) */
  --ix-chart-grid: #edf0f6;
  --ix-chart-axis: #d0d7e4;
  --ix-chart-label: #5a6480;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ix-bg: #0b0f1e;
  --ix-surface: #131a2e;
  --ix-surface-2: #18203a;
  --ix-surface-3: #1e2744;
  --ix-border: #232c49;
  --ix-border-strong: #313c60;
  --ix-text: #e8ecf8;
  --ix-text-2: #b3bbd3;
  --ix-muted: #7f89a8;
  --ix-primary: #8b85ff;
  --ix-primary-2: #b18cff;
  --ix-primary-weak: rgba(139, 133, 255, .14);
  --ix-primary-ring: rgba(139, 133, 255, .28);
  --ix-btn: #5b52e8;
  --ix-btn-hover: #4f46e5;
  --ix-input-bg: #0c1122;
  --ix-scroll-thumb: #2c3657;
  --ix-scroll-thumb-hover: #3d4a74;
  --ix-accent: #ff7a50;
  --ix-accent-weak: rgba(255, 122, 80, .14);
  --ix-ok: #34c48f;  --ix-ok-weak: rgba(52, 196, 143, .14);
  --ix-warn: #f0b34a; --ix-warn-weak: rgba(240, 179, 74, .14);
  --ix-bad: #ff6b6b;  --ix-bad-weak: rgba(255, 107, 107, .14);
  --ix-info: #4cc3ef; --ix-info-weak: rgba(76, 195, 239, .14);
  --ix-cheap: #34c48f; --ix-mid: #8f9ab6; --ix-premium: #ff7f72;
  --ix-demo: #a98bf0; --ix-demo-weak: rgba(169, 139, 240, .14);
  --ix-row-hover: #182039;
  --ix-row-line: #1d2541;
  --ix-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --ix-shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
  --ix-side-bg: #090d1b;
  --ix-side-bg-2: #0e1326;
  --ix-chart-grid: #1f2843;
  --ix-chart-axis: #2c3657;
  --ix-chart-label: #9aa3c0;
}

html, body { background: var(--ix-bg) !important; }
body.ix { color: var(--ix-text); font-size: 14px; line-height: 1.8; direction: rtl; text-align: right; margin: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.ix * { font-family: iranSans, Tahoma, sans-serif; }
body.ix .fas, body.ix .far, body.ix .fa { font-family: "Font Awesome 5 Free" !important; }
body.ix .fas, body.ix .fa { font-weight: 900; }
body.ix .far { font-weight: 400; }
body.ix .fab { font-family: "Font Awesome 5 Brands" !important; }
body.ix [class^="feather"], body.ix [class*=" feather"] { font-family: feather !important; }
body.ix .highcharts-container, body.ix .highcharts-container * { font-family: iranSans, Tahoma, sans-serif; }
body.ix a { color: var(--ix-primary); transition: color .15s, background-color .15s, opacity .15s; }
body.ix a:hover { text-decoration: none; opacity: .9; }
body.ix ::selection { background: var(--ix-primary-ring); }
/* scrollbars: thin, themed, no arrows. Standard properties (Firefox, Chrome 121+) + WebKit fallback (Safari, older Chrome). */
html { scrollbar-width: thin; scrollbar-color: var(--ix-scroll-thumb) var(--ix-bg); }
body.ix * { scrollbar-width: thin; scrollbar-color: var(--ix-scroll-thumb) transparent; }
html::-webkit-scrollbar, body.ix *::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--ix-bg); }
body.ix *::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb, body.ix *::-webkit-scrollbar-thumb { background: var(--ix-scroll-thumb); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
html::-webkit-scrollbar-thumb:hover, body.ix *::-webkit-scrollbar-thumb:hover { background: var(--ix-scroll-thumb-hover); background-clip: content-box; }
html::-webkit-scrollbar-button, body.ix *::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
html::-webkit-scrollbar-corner, body.ix *::-webkit-scrollbar-corner { background: transparent; }
body.ix .ix-side, body.ix .ix-side * { scrollbar-color: rgba(255, 255, 255, .14) transparent; }
body.ix .ix-side *::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); background-clip: content-box; }
body.ix .ix-side *::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: content-box; }
.ix-num, .ix .num { font-variant-numeric: tabular-nums; }
.ix-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ix-muted { color: var(--ix-muted) !important; }
.ix-primary { color: var(--ix-primary) !important; }
.ix-accent { color: var(--ix-accent) !important; }
.ix-bad { color: var(--ix-bad) !important; }
.ix-bad-weak { background: var(--ix-bad-weak) !important; }
.ix-cheap { color: var(--ix-cheap) !important; }
.ix-mid { color: var(--ix-mid) !important; }
.ix-premium { color: var(--ix-premium) !important; }

/* =================================================================== shell */
.ix-side {
  position: fixed; top: 0; bottom: 0; right: 0; width: var(--ix-side); z-index: 1040;
  background: linear-gradient(180deg, var(--ix-side-bg) 0%, var(--ix-side-bg-2) 100%);
  color: var(--ix-side-text); display: flex; flex-direction: column;
  transition: width .2s ease, transform .2s ease;
}
.ix-side .brand { display: flex; align-items: center; gap: 12px; height: var(--ix-top); padding: 0 20px; flex: none;
  color: var(--ix-side-text-hi) !important; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ix-side .brand .mark, .ix-logo .mark { width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, #6d63ff 0%, #a855f7 100%); display: grid; place-items: center; color: #fff;
  font-size: 16px; box-shadow: 0 6px 16px rgba(109, 99, 255, .45); }
.ix-side .brand small { display: block; font-weight: 400; font-size: 11px; color: var(--ix-side-muted); line-height: 1.3; }
.ix-side nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 12px 16px; }
/* sidebar buttons never show the browser's native button chrome */
.ix-side button { -webkit-appearance: none; appearance: none; }
/* collapsible groups */
.ix-side .grp-wrap { margin-top: 6px; }
.ix-side .grp { -webkit-appearance: none; appearance: none; display: flex; align-items: center; width: 100%; border: 0; background: transparent; cursor: pointer; text-align: right;
  font-size: 11px; font-weight: 700; color: var(--ix-side-muted); padding: 10px 12px 6px; letter-spacing: .3px; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-side .grp:hover { color: var(--ix-side-text-hi); }
.ix-side .grp:focus-visible { outline: 2px solid #8b85ff; outline-offset: -2px; }
.ix-side .grp i { margin-right: auto; font-size: 9px; transition: transform .2s ease; }
.ix-side .grp-wrap.closed .grp i { transform: rotate(90deg); }
.ix-side .grp-items { display: block; }
.ix-side .grp-wrap.closed .grp-items { display: none; }
.ix-side a.item.home { margin-top: 4px; }
/* menu search */
.ix-nav-search { position: relative; margin: 4px 0 8px; }
.ix-nav-search > i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ix-side-muted); pointer-events: none; }
.ix-nav-search input { -webkit-appearance: none; appearance: none; width: 100%; height: 38px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .05);
  color: var(--ix-side-text-hi); font-size: 12.5px; padding: 0 34px 0 34px; outline: none; transition: border-color .15s, background .15s; }
.ix-nav-search input::placeholder { color: var(--ix-side-muted); }
.ix-nav-search input:focus { border-color: rgba(139, 133, 255, .6); background: rgba(255, 255, 255, .08); }
.ix-nav-search input::-webkit-search-cancel-button, .ix-nav-search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.ix-nav-search kbd { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 10.5px; line-height: 1; padding: 4px 7px;
  border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--ix-side-muted); box-shadow: none; font-family: inherit; }
.ix-nav-search input:focus ~ kbd, .ix-nav-search input:not(:placeholder-shown) ~ kbd { display: none; }
.ix-nav-empty { display: none; font-size: 12px; color: var(--ix-side-muted); padding: 10px 12px; }
.ix-side.searching .ix-nav-empty.show { display: block; }
.ix-side.searching .grp-wrap.closed .grp-items { display: block; }
.ix-side.searching .grp i { display: none; }
.ix-side a.item.hit { background: var(--ix-side-hover); color: var(--ix-side-text-hi) !important; }
.ix-side a.item:focus-visible { outline: 2px solid #8b85ff; outline-offset: -2px; }
.ix-side a.item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px;
  color: var(--ix-side-text) !important; font-size: 13.5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; }
.ix-side a.item i { width: 20px; flex: none; text-align: center; font-size: 15px; color: var(--ix-side-muted); transition: color .15s; }
.ix-side a.item:hover { background: var(--ix-side-hover); color: var(--ix-side-text-hi) !important; opacity: 1; }
.ix-side a.item:hover i { color: var(--ix-side-text-hi); }
.ix-side a.item.active { background: var(--ix-side-active); color: var(--ix-side-text-hi) !important; font-weight: 700; }
.ix-side a.item.active i { color: #a9a4ff; }
.ix-side a.item.active::before { content: ""; position: absolute; right: -12px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 4px 0 0 4px; background: linear-gradient(180deg, #8b85ff, #c084fc); }
.ix-side a.item .tag { margin-right: auto; font-size: 9px; padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, .08);
  color: var(--ix-side-text); font-weight: 400; }
.ix-side a.item .tag i { width: auto; font-size: 9px; color: inherit; }
.ix-side .foot { font-size: 11px; color: var(--ix-side-muted); margin: 18px 12px 0; line-height: 1.9; padding: 12px;
  border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); }
.ix-side .me { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--ix-side-text); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.ix-side .me b { display: block; color: var(--ix-side-text-hi); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.ix-side .me .avatar { width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(139, 133, 255, .2); color: #c7c3ff;
  display: grid; place-items: center; font-weight: 700; }
.ix-side .me a { margin-right: auto; color: var(--ix-side-muted) !important; padding: 6px; border-radius: 8px; }
.ix-side .me a:hover { color: #ff9b9b !important; background: rgba(255, 255, 255, .06); }

.ix-top {
  position: fixed; top: 0; left: 0; right: var(--ix-side); height: var(--ix-top); z-index: 1030;
  background: var(--ix-bg); background: color-mix(in srgb, var(--ix-bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--ix-border);
  display: flex; align-items: center; gap: 10px; padding: 0 24px; transition: right .2s ease;
}
.ix-top .spacer { flex: 1; }
.ix-top .where { font-size: 13px; color: var(--ix-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-top .where b { color: var(--ix-text); font-weight: 700; }
.ix-icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--ix-border); background: var(--ix-surface);
  color: var(--ix-text-2) !important; display: inline-grid; place-items: center; font-size: 15px; cursor: pointer; flex: none;
  transition: background .15s, color .15s, border-color .15s; padding: 0; }
.ix-icon-btn:hover { background: var(--ix-surface-2); color: var(--ix-primary) !important; border-color: var(--ix-border-strong); }
.ix-icon-btn:focus { outline: none; box-shadow: 0 0 0 3px var(--ix-primary-ring); }
.ix-date { font-size: 12.5px; color: var(--ix-text-2); background: var(--ix-surface); border: 1px solid var(--ix-border);
  border-radius: 11px; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ix-date i { color: var(--ix-primary); }
.ix-user { display: flex; align-items: center; gap: 10px; color: var(--ix-text-2) !important; font-size: 13px; padding: 3px 4px 3px 10px;
  border-radius: 12px; border: 1px solid var(--ix-border); background: var(--ix-surface); height: 38px; }
.ix-user:hover { border-color: var(--ix-border-strong); }
.ix-user .avatar { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6d63ff, #a855f7); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ix-burger { display: none; }
.ix-logo { display: none; align-items: center; gap: 10px; color: var(--ix-text) !important; font-weight: 700; }
.ix-dropdown { border-radius: 14px !important; border: 1px solid var(--ix-border) !important; background: var(--ix-surface) !important;
  box-shadow: var(--ix-shadow-lg) !important; padding: 6px !important; min-width: 220px; font-size: 13px; }
.ix-dropdown .dropdown-header { color: var(--ix-muted); font-size: 11.5px; padding: 6px 12px; }
.ix-dropdown .dropdown-item { border-radius: 9px; padding: 8px 12px; color: var(--ix-text-2); display: flex; align-items: center; gap: 10px; }
.ix-dropdown .dropdown-item i { width: 16px; text-align: center; color: var(--ix-muted); }
.ix-dropdown .dropdown-item:hover { background: var(--ix-surface-2); color: var(--ix-text); }
.ix-dropdown .dropdown-item.text-danger, .ix-dropdown .dropdown-item.text-danger i { color: var(--ix-bad) !important; }
.ix-dropdown .dropdown-divider { border-color: var(--ix-border); margin: 4px 0; }

.ix-main { margin-right: var(--ix-side); padding: calc(var(--ix-top) + 26px) 32px 48px; min-height: 100vh; transition: margin-right .2s ease; }
.ix-main > .ix-wrap { max-width: 1480px; margin: 0 auto; }
.ix-main.no-side { margin-right: 0; max-width: 980px; margin-left: auto; margin-right: auto; }
body.ix.no-side .ix-top { right: 0; }
.ix-backdrop { display: none; }
.ix-footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--ix-border); font-size: 12px; color: var(--ix-muted);
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.ix-footer a { color: var(--ix-muted) !important; }

/* desktop: mini sidebar — icons only; hovering it opens the full menu over the page (content does not move) */
@media (min-width: 992px) {
  body.ix-mini .ix-side { width: var(--ix-side-mini); }
  body.ix-mini .ix-top { right: var(--ix-side-mini); }
  body.ix-mini .ix-main { margin-right: var(--ix-side-mini); }
  body.ix-mini .ix-side:hover, body.ix-mini .ix-side:focus-within, body.ix-mini .ix-side.peek { width: var(--ix-side); box-shadow: var(--ix-shadow-lg); transition-delay: .12s; }
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .brand span:not(.mark),
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .grp,
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .foot,
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) a.item span,
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .me > div,
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .me > a,
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .ix-nav-search { display: none; }
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .grp-wrap { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 8px; padding-top: 8px; }
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .grp-wrap.closed .grp-items { display: block; }
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) a.item { justify-content: center; padding: 11px 0; }
  body.ix-mini .ix-side:not(:hover):not(:focus-within):not(.peek) .me { justify-content: center; padding: 12px 0; }
  body.ix-mini .ix-collapse-btn i { transform: scaleX(-1); }
}
@media (max-width: 991px) {
  .ix-burger { display: inline-grid; }
  .ix-logo { display: flex; }
  .ix-collapse-btn, .ix-top .where { display: none !important; }
  .ix-side { transform: translateX(100%); box-shadow: var(--ix-shadow-lg); }
  body.ix-nav-open .ix-side { transform: none; }
  body.ix-nav-open .ix-backdrop { display: block; position: fixed; inset: 0; background: rgba(8, 11, 24, .45); z-index: 1035; }
  .ix-top { right: 0; padding: 0 14px; }
  .ix-main { margin-right: 0; padding: calc(var(--ix-top) + 16px) 14px 80px; }
  .ix-user .name, .ix-user .fa-chevron-down { display: none; }
  .ix-user { padding: 3px; }
  .ix-date { display: none; }
}

/* =================================================================== page head */
.ix-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px;
  margin: -4px 0 22px; padding: 20px 22px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--ix-surface) 0%, var(--ix-surface) 55%, var(--ix-primary-weak) 100%);
  border: 1px solid var(--ix-border); box-shadow: var(--ix-shadow); }
.ix-head::after { content: ""; position: absolute; left: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--ix-primary) 16%, transparent), transparent 70%); }
.ix-head > * { position: relative; z-index: 1; }
.ix-head > div:not(.actions) { flex: 1 1 380px; min-width: 0; }
.ix-head.has-ico { flex-wrap: nowrap; align-items: center; }
.ix-head-ico { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, #6d63ff, #a855f7); box-shadow: 0 10px 24px rgba(109, 99, 255, .35); }
.ix-head h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--ix-text); line-height: 1.55; letter-spacing: -.2px; }
.ix-head .sub { color: var(--ix-text-2); font-size: 13px; margin-top: 4px; max-width: 820px; line-height: 1.9; opacity: .85; }
.ix-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: none; }
.ix-head > .ix-stamp { flex: none; }
.ix-crumbs { font-size: 12px; color: var(--ix-muted); margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.ix-crumbs::before { content: "\f015"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10.5px; margin-left: 7px; color: var(--ix-muted); }
.ix-crumbs a { color: var(--ix-muted) !important; padding: 1px 6px; margin: 0 -6px; border-radius: 6px; }
.ix-crumbs a:hover { color: var(--ix-primary) !important; background: var(--ix-primary-weak); opacity: 1; }
.ix-crumbs .sep { margin: 0 8px; font-size: 0; }
.ix-crumbs .sep::before { content: "\f053"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 8px; color: var(--ix-border-strong); }
@media (max-width: 767px) {
  .ix-head { padding: 16px; border-radius: 16px; }
  .ix-head.has-ico { flex-wrap: wrap; }
  .ix-head-ico { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
  .ix-head .actions, .ix-head > .ix-stamp { width: 100%; }
}
.ix-stamp { font-size: 12px; color: var(--ix-text-2); background: var(--ix-surface); border: 1px solid var(--ix-border);
  border-radius: 999px; padding: 5px 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ix-stamp i { color: var(--ix-ok); }

/* =================================================================== tabs */
.ix-tabs { display: flex; gap: 2px; flex-wrap: wrap; background: var(--ix-surface); border: 1px solid var(--ix-border);
  border-radius: 14px; padding: 4px; margin-bottom: 18px; width: fit-content; max-width: 100%; box-shadow: var(--ix-shadow); }
.ix-tabs a { padding: 7px 15px; border-radius: 10px; color: var(--ix-text-2) !important; font-size: 13px; white-space: nowrap; }
.ix-tabs a:hover { background: var(--ix-surface-2); opacity: 1; }
.ix-tabs a.on { background: var(--ix-btn); color: #fff !important; box-shadow: 0 4px 12px var(--ix-primary-ring); }
@media (max-width: 767px) {
  .ix-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
}

/* =================================================================== cards */
.ix-card { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); box-shadow: var(--ix-shadow);
  margin-bottom: 18px; }
.ix-card > .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.ix-card > .hd h2, .ix-card > .hd h3 { font-size: 15.5px; font-weight: 700; margin: 0; color: var(--ix-text); display: flex; align-items: center; gap: 10px; }
.ix-card > .hd h2 > i, .ix-card > .hd h3 > i { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--ix-primary-weak); color: var(--ix-primary); font-size: 13px; }
.ix-card > .hd .hint { font-size: 12px; color: var(--ix-muted); }
.ix-card > .hd .more { font-size: 12.5px; font-weight: 700; }
.ix-card > .bd { padding: 16px 20px 20px; }
.ix-card > .bd.flush { padding: 10px 0 0; }
.ix-card > .bd.flush .ix-table th:first-child, .ix-card > .bd.flush .ix-table td:first-child { padding-right: 20px; }
.ix-card > .bd.flush .ix-table th:last-child, .ix-card > .bd.flush .ix-table td:last-child { padding-left: 20px; }
.ix-card > .ft { border-top: 1px solid var(--ix-border); padding: 11px 20px; font-size: 12px; color: var(--ix-muted); }
.ix-section-title { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; flex-wrap: wrap; }
.ix-section-title h2 { font-size: 17px; font-weight: 700; margin: 0; color: var(--ix-text); }
.ix-section-title .hint { font-size: 12.5px; color: var(--ix-muted); }

/* KPI tiles */
.ix-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ix-kpi { position: relative; background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius);
  padding: 16px 18px; box-shadow: var(--ix-shadow); overflow: hidden; }
.ix-kpi .ico { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; background: var(--ix-primary-weak); color: var(--ix-primary); }
.ix-kpi .ico.ok { background: var(--ix-ok-weak); color: var(--ix-ok); }
.ix-kpi .ico.warn { background: var(--ix-warn-weak); color: var(--ix-warn); }
.ix-kpi .ico.bad { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix-kpi .ico.accent { background: var(--ix-accent-weak); color: var(--ix-accent); }
.ix-kpi .ico.info { background: var(--ix-info-weak); color: var(--ix-info); }
.ix-kpi .lbl { font-size: 12.5px; color: var(--ix-muted); font-weight: 700; }
.ix-kpi .val { font-size: 27px; font-weight: 700; line-height: 1.45; color: var(--ix-text); margin-top: 4px; letter-spacing: -.3px; }
.ix-kpi .val .u { font-size: 12.5px; font-weight: 400; color: var(--ix-muted); margin-right: 4px; letter-spacing: 0; }
.ix-kpi .note { font-size: 11.5px; color: var(--ix-muted); line-height: 1.8; margin-top: 2px; }
.ix-kpi .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.ix-kpi .delta.up { background: var(--ix-ok-weak); color: var(--ix-ok); }
.ix-kpi .delta.down { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix-kpi.accent::after, .ix-kpi.primary::after, .ix-kpi.ok::after, .ix-kpi.bad::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.ix-kpi.accent::after { background: var(--ix-accent); }
.ix-kpi.primary::after { background: linear-gradient(90deg, var(--ix-primary-2), var(--ix-primary)); }
.ix-kpi.ok::after { background: var(--ix-ok); }
.ix-kpi.bad::after { background: var(--ix-bad); }
a.ix-kpi { display: block; color: inherit !important; }
a.ix-kpi:hover { border-color: var(--ix-border-strong); transform: translateY(-1px); opacity: 1; }

/* =================================================================== filters & forms */
.ix-filters { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 16px 18px 8px;
  margin-bottom: 18px; box-shadow: var(--ix-shadow); }
.ix-filters .row > [class*=col] { margin-bottom: 10px; }
.ix-filters .ix-filters-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 14px; color: var(--ix-text); }
.ix-filters .ix-filters-hd i { color: var(--ix-primary); }
.ix-filters .ix-filters-hd .reset { margin-right: auto; font-size: 12.5px; font-weight: 400; }
/* legacy style.css forces `label { color: #1f3152 !important }`, hence !important here */
.ix label, .ix .ix-label { font-size: 12px; color: var(--ix-text-2) !important; margin-bottom: 5px; display: block; font-weight: 700; }
.ix .form-control, .ix select.form-control, .ix input.form-control, .ix textarea.form-control, .ix .custom-select {
  border: 1px solid var(--ix-border-strong); border-radius: var(--ix-radius-sm); height: 40px; font-size: 13.5px; color: var(--ix-text);
  background-color: var(--ix-input-bg); box-shadow: none; padding: 6px 12px; transition: border-color .15s, box-shadow .15s; }
.ix .form-control-sm { height: 36px; font-size: 13px; }
.ix textarea.form-control { height: auto; }
.ix .form-control::placeholder { color: var(--ix-muted); opacity: .8; }
.ix .form-control:focus, .ix .custom-select:focus { border-color: var(--ix-primary); box-shadow: 0 0 0 3px var(--ix-primary-ring); background-color: var(--ix-input-bg); color: var(--ix-text); }
/* legacy style.css also sets `transition: all .2s !important` on fields, which animated white -> dark on every page load */
.ix .form-control, .ix .custom-select { transition: border-color .15s ease, box-shadow .15s ease !important; }
/* no transitions at all until the page has loaded (html.ix-preload is removed by insight.js) */
html.ix-preload *, html.ix-preload *::before, html.ix-preload *::after { transition: none !important; animation-duration: 0s !important; }
/* legacy style.css forces `.form-control { background-color: white !important }` (and #f4f7fa on focus) */
.ix .form-control, .ix .custom-select, .ix .form-control:focus, .ix .custom-select:focus { background-color: var(--ix-input-bg) !important; color: var(--ix-text); }
.ix .form-control:disabled, .ix .form-control[readonly]:not([data-jdp]) { background-color: var(--ix-surface-2) !important; color: var(--ix-muted); }
.ix .form-control[data-jdp] { cursor: pointer; }
/* range sliders (price range) */
.ix input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; padding: 0; border: 0; cursor: pointer; }
.ix input[type=range]:focus { outline: none; }
.ix input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--ix-surface-3); border: 1px solid var(--ix-border); }
.ix input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--ix-surface-3); border: 1px solid var(--ix-border); }
.ix input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: var(--ix-btn); border: 3px solid var(--ix-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .15s; }
.ix input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ix-btn); border: 3px solid var(--ix-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.ix input[type=range]:hover::-webkit-slider-thumb, .ix input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
.ix input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ix-primary-ring); }
/* browser autofill paints its own light background; keep the theme colours */
.ix input:-webkit-autofill, .ix input:-webkit-autofill:hover, .ix input:-webkit-autofill:focus, .ix textarea:-webkit-autofill, .ix select:-webkit-autofill {
  -webkit-text-fill-color: var(--ix-text); caret-color: var(--ix-text); -webkit-box-shadow: 0 0 0 1000px var(--ix-input-bg) inset !important;
  transition: background-color 9999s ease-out 0s; }
.ix input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--ix-input-bg) inset, 0 0 0 3px var(--ix-primary-ring) !important; }
.ix input:autofill { background-color: var(--ix-input-bg) !important; color: var(--ix-text) !important; }
.ix select.form-control option { background: var(--ix-surface); color: var(--ix-text); }
.ix .form-control:disabled, .ix .form-control[readonly] { background-color: var(--ix-surface-2); color: var(--ix-muted); }
.ix .input-group-text { background: var(--ix-surface-2); border-color: var(--ix-border-strong); color: var(--ix-muted); }
.ix .help, .ix .form-text { font-size: 11.5px; color: var(--ix-muted); margin-top: 4px; line-height: 1.8; }
.ix .select2-container { width: 100% !important; }
/* ---- select boxes (select2) ---- */
.ix .select2-container--default .select2-selection--single,
.ix .select2-container--default .select2-selection--multiple {
  min-height: 40px; height: auto; border: 1px solid var(--ix-border-strong); border-radius: var(--ix-radius-sm); background: var(--ix-input-bg);
  transition: border-color .15s, box-shadow .15s; cursor: pointer; outline: none; }
.ix .form-control-sm + .select2-container .select2-selection--single { min-height: 36px; }
.ix .select2-container--default .select2-selection--single:hover,
.ix .select2-container--default .select2-selection--multiple:hover { border-color: color-mix(in srgb, var(--ix-primary) 45%, var(--ix-border-strong)); }
.ix .select2-container--default.select2-container--focus .select2-selection,
.ix .select2-container--default.select2-container--open .select2-selection { border-color: var(--ix-primary); box-shadow: 0 0 0 3px var(--ix-primary-ring); }
.ix .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px; padding: 0 12px 0 54px; color: var(--ix-text); font-size: 13.5px; text-align: right; }
.ix .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ix-muted); }
/* chevron instead of the triangle */
.ix .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; width: 34px; left: 4px; right: auto; top: 0; }
.ix .select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.ix .select2-container--default .select2-selection__arrow::after { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px;
  color: var(--ix-muted); position: absolute; inset: 0; display: grid; place-items: center; transition: transform .2s; }
.ix .select2-container--open .select2-selection__arrow::after { transform: rotate(180deg); color: var(--ix-primary); }
.ix .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%); margin: 0; float: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--ix-muted); background: var(--ix-surface-3); font-weight: 400; }
.ix .select2-container--default .select2-selection--single .select2-selection__clear:hover { background: var(--ix-bad-weak); color: var(--ix-bad); }
/* multiple: chips */
.ix .select2-container--default .select2-selection--multiple { padding: 3px 8px 3px 30px; position: relative; }
.ix .select2-container--default .select2-selection--multiple::after { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px;
  color: var(--ix-muted); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.ix .select2-container--default .select2-selection--multiple .select2-selection__rendered { padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ix .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 2px 0; background: var(--ix-primary-weak); border: 1px solid color-mix(in srgb, var(--ix-primary) 22%, transparent); color: var(--ix-primary);
  border-radius: 8px; padding: 1px 8px 1px 6px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; float: none; line-height: 1.9; }
.ix .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--ix-primary); opacity: .6; margin: 0; font-weight: 700; order: 2; }
.ix .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { opacity: 1; color: var(--ix-bad); }
.ix .select2-container--default .select2-selection--multiple .select2-selection__clear { margin: 0 0 0 4px; color: var(--ix-muted); font-size: 15px; }
.ix .select2-container--default .select2-search--inline { flex: 1; min-width: 80px; }
.ix .select2-container--default .select2-search--inline .select2-search__field { margin: 0; height: 30px; color: var(--ix-text); font-size: 13px; width: 100% !important; }
.ix .select2-container--default .select2-search--inline .select2-search__field::placeholder { color: var(--ix-muted); }
/* dropdown panel */
.select2-container--open .select2-dropdown { border: 1px solid var(--ix-border-strong) !important; border-radius: 14px !important; box-shadow: var(--ix-shadow-lg);
  overflow: hidden; background: var(--ix-surface) !important; color: var(--ix-text); z-index: 2050; }
.select2-container--open .select2-dropdown--below { margin-top: 6px; }
.select2-container--open .select2-dropdown--above { margin-top: -6px; }
.select2-search--dropdown { padding: 8px; position: relative; border-bottom: 1px solid var(--ix-border); background: var(--ix-surface); }
.select2-search--dropdown::before { content: "\f002"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; color: var(--ix-muted);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 36px; border-radius: 10px; border: 1px solid var(--ix-border-strong) !important;
  background: var(--ix-input-bg); color: var(--ix-text); padding: 4px 32px 4px 10px; font-size: 13px; outline: none; direction: rtl; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--ix-primary) !important; box-shadow: 0 0 0 3px var(--ix-primary-ring); }
.select2-container--default .select2-results > .select2-results__options { max-height: 300px; padding: 6px; }
.select2-results__option { font-size: 13.5px; padding: 8px 12px !important; border-radius: 9px; margin-bottom: 1px; color: var(--ix-text); position: relative; }
.select2-container--default .select2-results__group { font-size: 11px; font-weight: 700; color: var(--ix-muted); padding: 10px 12px 4px !important; }
.select2-container--default .select2-results__option .select2-results__option { padding-right: 18px !important; }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--ix-primary-weak) !important; color: var(--ix-primary) !important; font-weight: 700; padding-left: 30px !important; }
.select2-container--default .select2-results__option[aria-selected=true]::after { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px;
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ix-surface-3) !important; color: var(--ix-text) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected=true] { background: var(--ix-primary-weak) !important; color: var(--ix-primary) !important; }
.select2-container--default .select2-results__option[aria-disabled=true] { color: var(--ix-muted); opacity: .6; }
.select2-results__message { color: var(--ix-muted) !important; text-align: center; padding: 14px !important; }
.ix-brand-search .select2-selection--single { min-height: 48px !important; border-width: 2px !important; border-color: var(--ix-primary) !important; }
.ix-brand-search .select2-selection__rendered { line-height: 44px !important; font-size: 15px; font-weight: 700; }
/* ---- switches (all checkboxes outside tables and Bootstrap custom controls) ---- */
.ix-check { display: inline-flex; align-items: center; gap: 9px; margin-left: 18px; font-size: 13px; color: var(--ix-text-2) !important; cursor: pointer; font-weight: 400 !important;
  padding: 4px 0; user-select: none; }
.ix-check.off { color: var(--ix-muted) !important; cursor: not-allowed; }
/* `.ix label` (display:block) is more specific than .ix-check; keep switches and their text in one row with a gap */
.ix label.ix-check, .ix span.ix-check { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 4px 20px; line-height: 1.6; vertical-align: middle; }
.ix label.ix-check > input, .ix span.ix-check > input { margin: 0 !important; }
.ix .ix-check .ix-badge { margin-right: 2px; }
.ix .ix-label + .ix-check { margin-right: 4px; }
.ix-main input[type=checkbox]:not(.custom-control-input):not(.ix-plain),
.ix-auth input[type=checkbox]:not(.custom-control-input) {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 34px !important; height: 20px !important; margin: 0;
  border-radius: 999px; background: var(--ix-border-strong); border: 0; cursor: pointer; vertical-align: middle; transition: background .2s; outline: none; }
.ix-main input[type=checkbox]:not(.custom-control-input):not(.ix-plain)::after,
.ix-auth input[type=checkbox]:not(.custom-control-input)::after {
  content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .2s ease; }
.ix-main input[type=checkbox]:not(.custom-control-input):not(.ix-plain):checked { background: var(--ix-btn); }
.ix-main input[type=checkbox]:not(.custom-control-input):not(.ix-plain):checked::after { right: 16px; }
.ix-main input[type=checkbox]:not(.custom-control-input):not(.ix-plain):focus-visible { box-shadow: 0 0 0 3px var(--ix-primary-ring); }
.ix-main input[type=checkbox]:not(.custom-control-input):not(.ix-plain):disabled { opacity: .45; cursor: not-allowed; }
/* row selection inside tables stays a compact square checkbox */
.ix-main table input[type=checkbox]:not(.custom-control-input) { width: 18px !important; height: 18px !important; border-radius: 5px;
  background: var(--ix-input-bg); border: 1.5px solid var(--ix-border-strong); }
.ix-main table input[type=checkbox]:not(.custom-control-input)::after { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px;
  color: #fff; background: none; box-shadow: none; inset: 0; width: auto; height: auto; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.ix-main table input[type=checkbox]:not(.custom-control-input):checked { background: var(--ix-btn); border-color: var(--ix-btn); }
.ix-main table input[type=checkbox]:not(.custom-control-input):checked::after { opacity: 1; right: 0; }
.ix .form-check { display: flex; align-items: center; gap: 10px; padding: 0; }
.ix .form-check-input { position: static; margin: 0 !important; }
.ix .form-check-label { margin: 0; font-weight: 400 !important; font-size: 13px; cursor: pointer; }
/* jalali date picker: follow the theme (its own CSS is hard-coded light) */
jdp-container { background: var(--ix-surface) !important; color: var(--ix-text); border: 1px solid var(--ix-border);
  box-shadow: var(--ix-shadow-lg) !important; }
jdp-container .jdp-months, jdp-container .jdp-years { fill: var(--ix-text); color: var(--ix-text); }
jdp-container .jdp-icon-minus, jdp-container .jdp-icon-plus { border: 1px solid var(--ix-border-strong); color: var(--ix-text-2); }
jdp-container .jdp-icon-minus:hover, jdp-container .jdp-icon-plus:hover { background: var(--ix-surface-2); color: var(--ix-primary); }
jdp-container .jdp-month, jdp-container .jdp-year, jdp-container .jdp-month input, jdp-container .jdp-year input,
jdp-container .jdp-month select, jdp-container .jdp-year select { color: var(--ix-text); }
jdp-container .jdp-month select option, jdp-container .jdp-year select option { background: var(--ix-surface); color: var(--ix-text); }
jdp-container .jdp-month:hover, jdp-container .jdp-year:hover, jdp-container .jdp-month input:hover, jdp-container .jdp-year input:hover { background: var(--ix-surface-3); }
jdp-container .jdp-day, jdp-container .jdp-day-name { color: var(--ix-text); }
jdp-container .jdp-day:hover { background: var(--ix-primary-weak); border-color: var(--ix-primary); color: var(--ix-primary); }
jdp-container .jdp-day-name { background-color: var(--ix-surface-2); color: var(--ix-muted); }
jdp-container .jdp-day.today { border-color: var(--ix-primary); color: var(--ix-primary); }
jdp-container .jdp-day.selected, jdp-container .jdp-day-name.selected { background-color: var(--ix-btn) !important; color: #fff !important; }
jdp-container .jdp-day.last-week, jdp-container .jdp-day-name.last-week { color: var(--ix-bad); }
jdp-container .jdp-day:empty { background: var(--ix-surface-2); border-color: var(--ix-surface); }
jdp-container .jdp-btn-today, jdp-container .jdp-btn-empty { background: var(--ix-btn); color: #fff; }
jdp-container .jdp-btn-empty { background: var(--ix-surface-3); color: var(--ix-text-2); }

/* table export (Excel / CSV) */
.ix-export { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ix-export .lbl { font-size: 11.5px; color: var(--ix-muted); }
.ix-export .btn i { font-size: 12px; }
.ix-export .btn .fa-file-excel { color: var(--ix-ok); }
.ix-export .btn .fa-file-alt { color: var(--ix-info); }
.ix-card > .hd.has-export .ix-export, .card-header.has-export .ix-export { margin-right: auto; }
.card-header.has-export { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ix-export.standalone { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.ix-card > .bd.flush > .ix-export.standalone { padding: 0 20px; }
/* live filters */
.ix-live-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ix-muted); margin-right: auto; padding: 6px 0; }
/* live forms submit on every change, so their submit button is never shown (hidden before first paint, no flash) */
.ix form[data-ix-live] button[type=submit], .ix form[data-ix-live] input[type=submit],
.ix form[data-ix-live] button:not([type]) { display: none !important; }
.ix-live-hint i { color: var(--ix-warn); }
.ix input[type=range] { accent-color: var(--ix-primary); }

/* buttons */
.ix .btn { border-radius: 10px; font-size: 13px; padding: 8px 16px; font-weight: 700; transition: all .15s; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; line-height: 1.6; }
.ix .btn:focus { box-shadow: 0 0 0 3px var(--ix-primary-ring) !important; }
.ix .btn-primary { background: var(--ix-btn); border-color: var(--ix-btn); color: #fff !important; box-shadow: 0 4px 12px var(--ix-primary-ring); }
.ix .btn-primary:hover, .ix .btn-primary:active, .ix .btn-primary:focus { background: var(--ix-btn-hover) !important; border-color: var(--ix-btn-hover) !important; color: #fff !important; }
.ix .btn-outline-primary { color: var(--ix-primary); border-color: color-mix(in srgb, var(--ix-primary) 40%, transparent); background: transparent; }
.ix .btn-outline-primary:hover, .ix .btn-outline-primary.active { background: var(--ix-primary-weak) !important; color: var(--ix-primary) !important; border-color: var(--ix-primary) !important; }
.ix .btn-light, .ix .btn-secondary, .ix .btn-outline-secondary { background: var(--ix-surface); border: 1px solid var(--ix-border-strong); color: var(--ix-text-2); }
.ix .btn-light:hover, .ix .btn-secondary:hover, .ix .btn-outline-secondary:hover { background: var(--ix-surface-2) !important; color: var(--ix-text) !important; border-color: var(--ix-border-strong) !important; }
.ix .btn-success { background: var(--ix-ok); border-color: var(--ix-ok); }
.ix .btn-danger { background: var(--ix-bad); border-color: var(--ix-bad); }
.ix .btn-outline-danger { color: var(--ix-bad); border-color: color-mix(in srgb, var(--ix-bad) 40%, transparent); }
.ix .btn-outline-danger:hover { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix .btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 9px; }
.ix .btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.ix .btn-block { display: flex; width: 100%; }
.ix-btn-busy { position: relative; pointer-events: none; opacity: .8; }
.ix-btn-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: -2px; animation: ixspin .7s linear infinite; }
@keyframes ixspin { to { transform: rotate(360deg); } }

/* =================================================================== chips & badges */
.ix-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ix-surface-2); border: 1px solid var(--ix-border);
  border-radius: 999px; padding: 4px 12px; margin: 2px; font-size: 12.5px; color: var(--ix-text-2) !important; white-space: nowrap; }
a.ix-chip:hover { border-color: var(--ix-primary); color: var(--ix-primary) !important; background: var(--ix-primary-weak); opacity: 1; }
.ix-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.ix-dot.ok { background: var(--ix-ok); box-shadow: 0 0 0 3px var(--ix-ok-weak); }
.ix-dot.warn { background: var(--ix-warn); box-shadow: 0 0 0 3px var(--ix-warn-weak); }
.ix-dot.bad { background: var(--ix-bad); box-shadow: 0 0 0 3px var(--ix-bad-weak); }
.ix-dot.muted { background: var(--ix-mid); box-shadow: 0 0 0 3px var(--ix-surface-3); }
.ix-band { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ix-band.cheap { background: var(--ix-ok-weak); color: var(--ix-cheap); }
.ix-band.mid { background: var(--ix-surface-3); color: var(--ix-mid); }
.ix-band.premium { background: var(--ix-bad-weak); color: var(--ix-premium); }
.ix-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1.9; }
.ix-badge.ok { background: var(--ix-ok-weak); color: var(--ix-ok); }
.ix-badge.warn { background: var(--ix-warn-weak); color: var(--ix-warn); }
.ix-badge.bad { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix-badge.info { background: var(--ix-info-weak); color: var(--ix-info); }
.ix-badge.muted { background: var(--ix-surface-3); color: var(--ix-text-2); }
.ix-badge.demo { background: var(--ix-demo-weak); color: var(--ix-demo); }
.ix-badge.accent { background: var(--ix-accent-weak); color: var(--ix-accent); }
.ix-badge.primary { background: var(--ix-primary-weak); color: var(--ix-primary); }

/* =================================================================== tables */
.ix-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; color: var(--ix-text); }
.ix-table th { position: sticky; top: 0; background: var(--ix-surface-2); color: var(--ix-muted); font-weight: 700; font-size: 11.5px;
  padding: 10px 14px; border-bottom: 1px solid var(--ix-border); white-space: nowrap; text-align: right; z-index: 1; }
.ix-table td { padding: 11px 14px; border-bottom: 1px solid var(--ix-row-line); vertical-align: middle; }
.ix-table tbody tr:last-child td { border-bottom: 0; }
.ix-table tbody tr { transition: background .1s; }
.ix-table tbody tr:hover td { background: var(--ix-row-hover); }
.ix-table tr.focus td { background: var(--ix-accent-weak) !important; }
.ix-table .r { text-align: left; direction: ltr; }
.ix-table td.n, .ix-table th.n { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-table .sub { display: block; color: var(--ix-muted); font-size: 11.5px; line-height: 1.6; }
.ix-table .title { color: var(--ix-text); max-width: 420px; min-width: 220px; }
.ix-table a.title:hover { color: var(--ix-primary); }
.ix-price { white-space: nowrap; }
.ix-price b { font-weight: 700; color: var(--ix-text); }
.ix-price .u { color: var(--ix-muted); font-size: 11px; margin-right: 3px; }

/* =================================================================== insights */
.ix-insight { border-right: 4px solid var(--ix-primary); }
.ix-insight .t { font-size: 12px; color: var(--ix-primary); font-weight: 700; margin-bottom: 2px; }
.ix-insight .h { font-size: 15.5px; line-height: 2; color: var(--ix-text); }
.ix-insight .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--ix-border); font-size: 12px; color: var(--ix-text-2); line-height: 1.8; }
.ix-insight .meta b { display: block; color: var(--ix-muted); font-weight: 400; font-size: 11px; }
.ix-insight.warn { border-right-color: var(--ix-warn); }
.ix-insight.warn .t { color: var(--ix-warn); }
.ix-insight.good { border-right-color: var(--ix-ok); }
.ix-insight.good .t { color: var(--ix-ok); }
.ix-insight.bad { border-right-color: var(--ix-bad); }
.ix-insight.bad .t { color: var(--ix-bad); }

/* =================================================================== states */
.ix-empty { text-align: center; padding: 44px 18px; color: var(--ix-muted); }
.ix-empty .ico { width: 60px; height: 60px; border-radius: 18px; background: var(--ix-primary-weak); color: var(--ix-primary);
  display: grid; place-items: center; font-size: 24px; margin: 0 auto 14px; }
.ix-empty h3 { font-size: 16px; color: var(--ix-text); font-weight: 700; margin-bottom: 6px; }
.ix-empty p { max-width: 520px; margin: 0 auto 10px; font-size: 13px; }
.ix-alert { border-radius: 12px; padding: 11px 16px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.ix-alert i { margin-top: 5px; }
.ix-alert.warn { background: var(--ix-warn-weak); color: var(--ix-warn); border-color: color-mix(in srgb, var(--ix-warn) 18%, transparent); }
.ix-alert.info { background: var(--ix-primary-weak); color: var(--ix-primary); border-color: color-mix(in srgb, var(--ix-primary) 15%, transparent); }
.ix-alert.bad { background: var(--ix-bad-weak); color: var(--ix-bad); border-color: color-mix(in srgb, var(--ix-bad) 18%, transparent); }
.ix-alert.ok { background: var(--ix-ok-weak); color: var(--ix-ok); border-color: color-mix(in srgb, var(--ix-ok) 18%, transparent); }
.ix-alert.demo { background: var(--ix-demo-weak); color: var(--ix-demo); }
.ix-alert > div { color: var(--ix-text); }
.ix-skel { background: linear-gradient(90deg, var(--ix-surface-3) 25%, var(--ix-surface-2) 50%, var(--ix-surface-3) 75%); background-size: 200% 100%;
  animation: ixshimmer 1.2s infinite; border-radius: 8px; min-height: 14px; }
@keyframes ixshimmer { to { background-position: -200% 0; } }
.ix-chart { width: 100%; min-height: 360px; }
.ix-chart-lazy { position: relative; display: block; }
.ix-chart-skel { width: 100%; height: 100%; min-height: inherit; border-radius: 12px;
  background: linear-gradient(90deg, var(--ix-surface-3) 25%, var(--ix-surface-2) 50%, var(--ix-surface-3) 75%); background-size: 200% 100%;
  animation: ixshimmer 1.2s infinite; }
.ix-chart .ix-chart-skel, .ix-chart.sm .ix-chart-skel, .ix-chart.tall .ix-chart-skel { min-height: inherit; }
.ix-chart-fail, .ix-chart .ix-chart-fail { display: grid; place-items: center; min-height: 160px; color: var(--ix-muted); font-size: 13px; }
.spark .ix-chart-skel { min-height: 42px; border-radius: 8px; }
.ix-chart.sm { min-height: 260px; }
.ix-chart.tall { min-height: 470px; }
.ix-loading-overlay { position: fixed; inset: 0; background: rgba(120, 130, 150, .35); background: color-mix(in srgb, var(--ix-bg) 60%, transparent); z-index: 2000; display: none; place-items: center;
  backdrop-filter: blur(2px); }
body.ix-busy .ix-loading-overlay { display: grid; }
.ix-loading-overlay .box { background: var(--ix-surface); color: var(--ix-text); border: 1px solid var(--ix-border); border-radius: 14px;
  padding: 16px 24px; box-shadow: var(--ix-shadow-lg); font-size: 13.5px; }
.ix-loading-overlay .box::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ix-primary); border-top-color: transparent;
  border-radius: 50%; display: inline-block; margin-left: 10px; vertical-align: -3px; animation: ixspin .7s linear infinite; }

/* legend for charts drawn in HTML */
.ix-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ix-text-2); margin-top: 8px; }
.ix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ix-legend .sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* distribution strip: cheap | mid | premium */
.ix-strip { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--ix-surface-3); min-width: 120px; }
.ix-strip > span { display: block; height: 100%; }

/* simple bar for proportions */
.ix-bar { height: 8px; border-radius: 99px; background: var(--ix-surface-3); overflow: hidden; }
.ix-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ix-primary-2), var(--ix-primary)); }
.ix-bar.ok > span { background: var(--ix-ok); }
.ix-bar.warn > span { background: var(--ix-warn); }
.ix-bar.bad > span { background: var(--ix-bad); }

/* =================================================================== overview (پیشخوان) */
.ix-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; margin-bottom: 20px; color: #fff;
  background: radial-gradient(1200px 300px at 0% 0%, rgba(168, 85, 247, .55), transparent 60%),
              radial-gradient(800px 260px at 100% 100%, rgba(56, 189, 248, .35), transparent 60%),
              linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6d28d9 100%);
  box-shadow: 0 18px 40px rgba(79, 70, 229, .25); }
.ix-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.ix-hero > * { position: relative; z-index: 1; }
.ix-hero h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.ix-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 13.5px; max-width: 640px; }
.ix-hero .row-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.ix-hero .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ix-hero .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 12.5px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.ix-hero .pill .ix-dot { box-shadow: none; }
.ix-hero .btn-hero { background: #fff; color: #3730a3 !important; border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.ix-hero .btn-hero:hover { opacity: 1; transform: translateY(-1px); }
:root[data-theme="dark"] .ix-hero { background: radial-gradient(1200px 300px at 0% 0%, rgba(168, 85, 247, .35), transparent 60%),
  radial-gradient(800px 260px at 100% 100%, rgba(56, 189, 248, .2), transparent 60%), linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%); box-shadow: none; }

.ix-grid { display: grid; gap: 18px; }
.ix-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ix-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ix-grid.main-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ix-grid > .ix-card { margin-bottom: 0; }
@media (max-width: 1199px) { .ix-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ix-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ix-grid.main-side { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .ix-grid.c2, .ix-grid.c3, .ix-grid.c4 { grid-template-columns: 1fr; } }

/* data-source health tile */
.ix-source { display: flex; flex-direction: column; gap: 10px; background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius);
  padding: 16px 18px; box-shadow: var(--ix-shadow); color: inherit !important; }
a.ix-source:hover { border-color: var(--ix-border-strong); opacity: 1; transform: translateY(-1px); }
.ix-source .top { display: flex; align-items: center; gap: 12px; }
.ix-source .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; flex: none; }
.ix-source .name { font-weight: 700; font-size: 14px; color: var(--ix-text); line-height: 1.5; }
.ix-source .kind { font-size: 11.5px; color: var(--ix-muted); }
.ix-source .status { margin-right: auto; }
.ix-source .nums { display: flex; gap: 18px; font-size: 12px; color: var(--ix-muted); }
.ix-source .nums b { display: block; font-size: 17px; color: var(--ix-text); font-weight: 700; line-height: 1.5; }
.ix-source .spark { height: 42px; margin: 0 -4px; }
.ix-source .when { font-size: 11.5px; color: var(--ix-muted); display: flex; align-items: center; gap: 6px; border-top: 1px dashed var(--ix-border); padding-top: 9px; }

/* quick access */
.ix-quick { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--ix-radius); background: var(--ix-surface);
  border: 1px solid var(--ix-border); box-shadow: var(--ix-shadow); color: var(--ix-text) !important; }
.ix-quick:hover { border-color: var(--ix-primary); opacity: 1; transform: translateY(-1px); }
.ix-quick .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; flex: none;
  background: var(--ix-primary-weak); color: var(--ix-primary); }
.ix-quick b { display: block; font-size: 14px; }
.ix-quick span { font-size: 12px; color: var(--ix-muted); line-height: 1.7; display: block; }
.ix-quick .go { margin-right: auto; color: var(--ix-muted); font-size: 12px; }
.ix-quick:hover .go { color: var(--ix-primary); }

/* activity feed */
.ix-feed { list-style: none; margin: 0; padding: 0; }
.ix-feed li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--ix-row-line); font-size: 13px; }
.ix-feed li:last-child { border-bottom: 0; }
.ix-feed .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 13px;
  background: var(--ix-surface-3); color: var(--ix-text-2); }
.ix-feed .ic.ok { background: var(--ix-ok-weak); color: var(--ix-ok); }
.ix-feed .ic.bad { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix-feed .tx { flex: 1; min-width: 0; color: var(--ix-text); line-height: 1.8; }
.ix-feed .tx .d { color: var(--ix-muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-feed .tm { color: var(--ix-muted); font-size: 11.5px; white-space: nowrap; }

/* =================================================================== mobile-first field screens */
.ix-mobile { max-width: 560px; margin: 0 auto; }
.ix-big-action { display: flex; align-items: center; gap: 14px; background: var(--ix-surface); border: 1px solid var(--ix-border);
  border-radius: 18px; padding: 16px; margin-bottom: 12px; color: var(--ix-text) !important; box-shadow: var(--ix-shadow); }
.ix-big-action:hover { border-color: var(--ix-primary); opacity: 1; }
.ix-big-action .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; flex: none;
  background: var(--ix-primary-weak); color: var(--ix-primary); }
.ix-big-action b { display: block; font-size: 15px; }
.ix-big-action span { font-size: 12.5px; color: var(--ix-muted); }
.ix-sticky-bar { position: sticky; bottom: 0; background: var(--ix-surface); background: color-mix(in srgb, var(--ix-surface) 94%, transparent); border-top: 1px solid var(--ix-border);
  padding: 10px 14px; margin: 0 -14px; display: flex; gap: 8px; z-index: 5; backdrop-filter: blur(8px); }
@media (max-width: 575px) {
  .ix-head h1 { font-size: 20px; }
  .ix-kpi .val { font-size: 23px; }
  .ix-card > .bd { padding: 14px 14px 16px; }
  .ix .btn-lg { width: 100%; }
  .ix-hero { padding: 20px; }
  .ix-hero h1 { font-size: 20px; }
}

/* =================================================================== bridge: Bootstrap / legacy components inside the shell */
.ix .card { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); box-shadow: var(--ix-shadow); margin-bottom: 18px; color: var(--ix-text); }
.ix .card .card-block { padding: 18px 20px; }
.ix .card-header { background: transparent; border-bottom: 1px solid var(--ix-border); padding: 14px 20px; }
.ix .card-header h5, .ix .card-header h6 { font-size: 15px; font-weight: 700; margin: 0; color: var(--ix-text); }
.ix .card-header h5::after { display: none; }
.ix .card-body { padding: 18px 20px; }
.ix .card-footer { background: transparent; border-top: 1px solid var(--ix-border); }
.ix .table { font-size: 13px; color: var(--ix-text); margin-bottom: 0; background: transparent; }
.ix .table thead th, .ix table.dataTable thead th { background: var(--ix-surface-2) !important; color: var(--ix-muted) !important; font-weight: 700; font-size: 11.5px;
  border-bottom: 1px solid var(--ix-border) !important; border-top: 0 !important; white-space: nowrap; padding: 10px 14px; }
.ix .table thead.thead-dark th { background: var(--ix-surface-2) !important; }
.ix .table td, .ix .table th { border-top: 1px solid var(--ix-row-line); vertical-align: middle; padding: 10px 14px; }
.ix .table-striped tbody tr:nth-of-type(odd) { background: color-mix(in srgb, var(--ix-surface-2) 60%, transparent); }
.ix .table-hover tbody tr:hover, .ix table.dataTable tbody tr:hover { background: var(--ix-row-hover) !important; color: var(--ix-text); }
.ix .table-bordered, .ix .table-bordered td, .ix .table-bordered th { border-color: var(--ix-row-line); }
.ix table.dataTable { border-collapse: separate !important; border-spacing: 0; }
.ix table.dataTable tbody tr { background: transparent; }
.ix .dataTables_wrapper { color: var(--ix-text-2); font-size: 12.5px; }
.ix .dataTables_wrapper .dataTables_filter input, .ix .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--ix-border-strong); border-radius: 9px; background: var(--ix-surface); color: var(--ix-text); height: 34px; padding: 4px 10px; }
.ix .dataTables_wrapper .dataTables_info { color: var(--ix-muted); }
.ix .dataTables_scrollHead, .ix .dataTables_scrollBody { border-color: var(--ix-border) !important; }
.ix .page-link, .ix .dataTables_wrapper .paginate_button { border-radius: 9px !important; margin: 0 2px; border: 1px solid var(--ix-border) !important;
  color: var(--ix-text-2) !important; background: var(--ix-surface) !important; font-size: 12.5px; }
.ix .page-item.active .page-link, .ix .dataTables_wrapper .paginate_button.current { background: var(--ix-btn) !important; border-color: var(--ix-btn) !important; color: #fff !important; }
.ix .page-item.disabled .page-link { color: var(--ix-muted) !important; opacity: .6; }
.ix .dt-buttons .btn, .ix .dt-button { border-radius: 9px !important; }
.ix .alert { border-radius: 12px; border: 1px solid transparent; font-size: 13px; }
.ix .alert-info { background: var(--ix-primary-weak); color: var(--ix-primary); }
.ix .alert-warning { background: var(--ix-warn-weak); color: var(--ix-warn); }
.ix .alert-danger { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix .alert-success { background: var(--ix-ok-weak); color: var(--ix-ok); }
.ix .alert h6, .ix .alert .text-info, .ix .alert .text-secondary { color: inherit !important; }
.ix .badge { border-radius: 7px; font-weight: 700; padding: 3px 8px; }
.ix .badge-primary { background: var(--ix-primary-weak); color: var(--ix-primary); }
.ix .badge-success { background: var(--ix-ok-weak); color: var(--ix-ok); }
.ix .badge-danger { background: var(--ix-bad-weak); color: var(--ix-bad); }
.ix .badge-warning { background: var(--ix-warn-weak); color: var(--ix-warn); }
.ix .badge-secondary, .ix .badge-light { background: var(--ix-surface-3); color: var(--ix-text-2); }
.ix .text-muted { color: var(--ix-muted) !important; }
.ix .text-dark { color: var(--ix-text) !important; }
.ix .text-secondary { color: var(--ix-text-2) !important; }
.ix .text-primary { color: var(--ix-primary) !important; }
.ix .bg-light { background: var(--ix-surface-2) !important; }
.ix .bg-white { background: var(--ix-surface) !important; }
.ix .border, .ix .border-top, .ix .border-bottom { border-color: var(--ix-border) !important; }
.ix hr { border-color: var(--ix-border); }
.ix h1, .ix h2, .ix h3, .ix h4, .ix h5, .ix h6 { color: var(--ix-text); font-weight: 700; }
.ix .main-body { padding: 0; }
.ix .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; background: none; padding: 0; margin: 0 0 18px; font-size: 13px; border-radius: 0; }
.ix .breadcrumb-item, .ix .breadcrumb-item a { color: var(--ix-muted) !important; }
.ix .breadcrumb-item a:hover { color: var(--ix-primary) !important; }
.ix .breadcrumb-item.active, .ix .breadcrumb-item:last-child, .ix .breadcrumb-item:last-child a { color: var(--ix-text) !important; font-weight: 700; font-size: 18px; }
.ix .breadcrumb-item + .breadcrumb-item { padding-right: 8px; padding-left: 0; }
.ix .breadcrumb-item + .breadcrumb-item::before { content: "/"; float: right; padding-left: 8px; padding-right: 0; color: var(--ix-border-strong); }
.ix .ix-head .breadcrumb, .ix .ix-head + .breadcrumb { display: none; }
.ix .nav-tabs { border-bottom: 1px solid var(--ix-border); }
.ix .nav-tabs .nav-link { color: var(--ix-text-2); border-radius: 10px 10px 0 0; }
.ix .nav-tabs .nav-link.active { color: var(--ix-primary); background: var(--ix-surface); border-color: var(--ix-border) var(--ix-border) var(--ix-surface); }
.ix .nav-pills .nav-link.active { background: var(--ix-btn); color: #fff; }
.ix .progress { border-radius: 999px; background: var(--ix-surface-3); }
.ix .list-group-item { border-color: var(--ix-border); background: var(--ix-surface); color: var(--ix-text); }
.ix .modal-content { background: var(--ix-surface); color: var(--ix-text); border: 1px solid var(--ix-border); border-radius: 18px; box-shadow: var(--ix-shadow-lg); }
.ix .modal-header, .ix .modal-footer { border-color: var(--ix-border); }
.ix .modal-backdrop.show { opacity: .45; }
.ix .close { color: var(--ix-text); text-shadow: none; }
.ix .dropdown-menu { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: 12px; box-shadow: var(--ix-shadow-lg); color: var(--ix-text); }
.ix .dropdown-item { color: var(--ix-text-2); }
.ix .dropdown-item:hover { background: var(--ix-surface-2); color: var(--ix-text); }
.ix .custom-control-label::before { border-color: var(--ix-border-strong); background: var(--ix-surface); }
.ix .custom-control-input:checked ~ .custom-control-label::before { background: var(--ix-btn); border-color: var(--ix-btn); }
.ix .loader-bg { display: none !important; }
.ix .jdp-container, .ix jdp-container { font-family: iranSans, Tahoma, sans-serif; }
/* toastr / growl notifications */
#toast-container > div { border-radius: 12px !important; box-shadow: var(--ix-shadow-lg) !important; opacity: 1 !important; font-size: 13px; }
.ix .alert[data-growl] { border-radius: 12px; box-shadow: var(--ix-shadow-lg); }

@media print {
  .ix-side, .ix-top, .ix-backdrop, .ix-loading-overlay, .ix-footer { display: none !important; }
  .ix-main { margin: 0 !important; padding: 0 !important; }
}
