/* ارتفاع تقریبی نوار بالا (navbar) */
:root {
  --nx-navbar-height: 48px;
}

/* صفحه‌هایی که سرویس‌های فاندامنتال دارند */
.fundamental-page {
  /* اگر در base.css padding-top ندادی، این خط کمک می‌کند محتوا زیر navbar قایم نشه */
  /* padding-top: calc(var(--nx-navbar-height) + 0.5rem); */
}

/* باکس اسکرول برای جداول بزرگ: ارتفاع داینامیک متناسب با اندازه صفحه */
.fundamental-page .dynamic-table-area {
  max-height: calc(100vh - var(--nx-navbar-height) - 120px);
  overflow-y: auto;
}

/* لپ‌تاپ و تبلت: چون هدر چند خطی‌تر می‌شود، کمی ارتفاع جدول را کم می‌کنیم */
@media (max-width: 992px) {
  .fundamental-page .dynamic-table-area {
    max-height: calc(100vh - var(--nx-navbar-height) - 160px);
  }
}

/* موبایل: هدر و تب‌ها فضای بیشتری می‌گیرند → جدول کم‌ارتفاع‌تر شود */
@media (max-width: 576px) {
  .fundamental-page .dynamic-table-area {
    max-height: calc(100vh - var(--nx-navbar-height) - 200px);
  }
}

/* اسکرول‌بار نرم و ظریف برای جدول‌ها */
.fundamental-page .dynamic-table-area::-webkit-scrollbar {
  width: 6px;
}
.fundamental-page .dynamic-table-area::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 10px;
}
.fundamental-page .dynamic-table-area::-webkit-scrollbar-track {
  background: #f1f5f9;
}
/* ردیف عنوان ستون‌ها همیشه در بالای جدول بماند */
table thead th {
    position: sticky;
    top: 0;
    z-index: 4;           /* بالاتر از سلول‌های معمولی */
}

/* بک‌گراند ردیف عنوان ستون‌ها */
table thead th,
table thead td {
    background: #f8f7fc !important;
}

/* From fundamental/templates/fundamental/financial_reports.html */
.custom-tabs {
  display: flex;
  flex-wrap: wrap; /* در صفحه‌های کوچک، تب‌ها بروند زیر هم */
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem;
}
.custom-tab {
  flex: 1 1 110px; /* مقدار پیشنهادی پایه‌ی طول تب است */
  max-width: 140px;
  font-size: .75rem;
  font-weight: 200;
  text-align: center;
  background-color: white;
  color: #00036d;
  padding: .3rem .2rem;  /* ↓ ارتفاع را کم کردیم */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* برای صفحه‌های کوچکتر از 768px */
@media (max-width: 768px) {
  .custom-tab {
    flex: 1 1 80px;
    max-width: 130px;
    font-size: 10px;
    padding: 0.3rem 0.2rem;  /* ↓ حتی کوتاه‌تر در تبلت */
  }
}

/* برای موبایل کوچکتر از 480px */
@media (max-width: 480px) {
  .custom-tab {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 0.3rem 0.2rem;  /* ↓ کوتاه در موبایل */
  }
}

  .custom-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }


.custom-tab:hover {
  background-color: #e9f3ff;
}

.custom-tab.active {
  background-color: #0d6efd;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.tab-pane  {
display: none;
}

.tab-pane.active {
display: block;
}


.highcharts-legend-item text {
    direction: rtl !important;
    text-anchor: end !important;
    white-space: normal !important;
}
#search-form .form-control {
        min-width: 0;
        flex: 1 1 auto;
        height: 2.5rem;
        direction: rtl; /* تاکید: نمایش RTL */
    }
#search-form .input-group {
    position: relative;
    }
#search-form .input-group > .btn {
  border-top-left-radius: .5rem !important;
  border-bottom-left-radius: .5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  height: 2.5rem;               /* همقد اینپوت */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* خود اینپوت: گوشه‌های راست گرد، چپ صاف (کنار دکمه) */
#search-form .input-group > .form-control {
  border-top-right-radius: .5rem !important;
  border-bottom-right-radius: .5rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  height: 2.5rem;
}

/* باکس ساجست: کامل زیر گروه بیفته و گوشه‌های پایین گرد باشه */
#search-form .suggest-box {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: .5rem;
  border-bottom-right-radius: .5rem;
  margin-top: 2px;       /* کمی فاصله از کادر بالا */
}

/* وقتی لیست بازه، مرز پایین گروه یکپارچه بشه (اختیاری) */
#search-form .input-group.show-suggest > .form-control,
#search-form .input-group.show-suggest > .btn {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.responsive-title {
    background-color: #d6e5fe;
    text-align: right;
    font-weight: bold;
    font-size: 11px; /* پیش‌فرض برای موبایل */
    padding: 0.5rem 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.responsive-title span {
    color: #00036d;
    font-weight: bold;
    font-size: 12px;
}

@media (min-width: 768px) {
    .responsive-title {
        font-size: 12px;
    }

.responsive-title span {
        font-size: 14px;
    }
}

/* تنظیمات کلی */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    direction: rtl;
}

/* -------------------------------------------------------------------------- */
/* Fundamental Pro (Snapshot + Charts + Screener/Movers)                       */
/* -------------------------------------------------------------------------- */

.nx-snap-title{
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
}
.nx-snap-sub{
  color:#64748b;
  font-size:12px;
}
.nx-dot{ margin: 0 6px; }

.nx-kpi{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  height:100%;
}
.nx-kpi-label{ color:#64748b; font-size:11px; }
.nx-kpi-value{ font-weight:800; font-size:14px; color:#0f172a; margin-top:2px;}
.nx-kpi-value[data-bs-toggle="tooltip"]{ cursor: help; }
.nx-kpi-sub{ display:flex; gap:8px; align-items:center; margin-top:6px; font-size:11px; }
.nx-kpi-sub-muted{ color:#94a3b8; }
.nx-kpi-growth{ font-weight:700; }
.nx-kpi-growth.up{ color:#16a34a; }
.nx-kpi-growth.down{ color:#dc2626; }
.nx-kpi-growth.muted{ color:#94a3b8; }

/* LTR numeric isolation inside RTL pages (fix -/+ placement) */
.nx-num{
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Bootstrap tooltip for numeric values */
.nx-tooltip .tooltip-inner{
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

/* Highcharts HTML tooltip helpers (optional) */
.nx-hc-tooltip{ font-size: 12px; line-height: 1.6; }
.nx-hc-row{ margin-top: 2px; }
.nx-hc-dot{ margin-left: 6px; }
.nx-hc-x{ margin-bottom: 4px; }

.nx-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px 14px;
  height:100%;
}
.nx-box-title{ font-weight:800; color:#0f172a; font-size:12px; margin-bottom:10px; }

.nx-overall{ display:flex; align-items:baseline; gap:8px; margin-bottom:8px; }
.nx-overall-num{ font-weight:900; font-size:22px; color:#0f172a; }
.nx-overall-sub{ color:#64748b; font-size:12px; }

.nx-meter-row{ display:grid; grid-template-columns: 100px 1fr 34px; gap:10px; align-items:center; margin:8px 0; }
.nx-meter-label{ font-size:12px; color:#334155; }
.nx-meter-bar{ background:#eef2ff; height:8px; border-radius:99px; overflow:hidden; }
.nx-meter-fill{ background:#0d6efd; height:100%; border-radius:99px; }
.nx-meter-val{ font-size:12px; color:#334155; text-align:left; }

.nx-narr-head{ font-weight:800; color:#0f172a; font-size:13px; margin-bottom:8px; }
.nx-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.nx-tag{ background:#f1f5f9; border:1px solid #e5e7eb; color:#0f172a; padding:4px 8px; border-radius:999px; font-size:11px; }
.nx-bullets{ margin:0; padding-right: 18px; color:#334155; font-size:12px; }
.nx-bullets li{ margin:6px 0; }
.nx-warnings{ margin-top:10px; }
.nx-warning{ background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; padding:8px 10px; border-radius:10px; font-size:12px; margin-top:8px; }

.nx-chip-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.nx-chip-group{ display:flex; flex-wrap:wrap; gap:6px; }
.nx-chip{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#0f172a;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  cursor:pointer;
  transition:all .15s ease;
  user-select:none;
}
.nx-chip:hover{ background:#f8fafc; }
.nx-chip.active{ background:#0d6efd; border-color:#0d6efd; color:#fff; font-weight:800; }

.nx-chart-wrap{ padding:12px 12px 4px 12px; }
.nx-chart{ width:100%; min-height:300px; }
.nx-chart-meta{ display:flex; justify-content:space-between; align-items:center; gap:10px; color:#94a3b8; font-size:11px; padding:0 12px 12px 12px; }

.nx-badges{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.nx-badge{ background:#eef2ff; border:1px solid #e0e7ff; color:#1e3a8a; padding:3px 8px; border-radius:999px; font-size:11px; }

.nx-report{
  color:#334155;
  font-size:11px;
  white-space:nowrap;
}


@media (max-width: 576px){
  .nx-meter-row{ grid-template-columns: 84px 1fr 30px; }
  .nx-kpi-value{ font-size:13px; }
}

/* جدول کلی */
.period-header {
    white-space: normal !important;
    word-break: break-word;
    font-size: 12px;
    vertical-align: middle;
    text-align: center;
    line-height: 1.7;
    min-width: 120px;
}

table {
    border-collapse: separate; /* برای جلوگیری از مشکل با sticky */
    border-spacing: 0;
    font-size: 12px;
}
/* هاور روی سطر */
table tbody tr:hover > td,
table tbody tr:hover > th {
    background-color: #eff2f5 !important;
}
/* جدول */
table th,
table td {
    white-space: nowrap;
    vertical-align: middle;
    background: #fff;            /* بک گراند پیش فرض */
    transition: background 0.2s;
    min-width: 175px;
}

/* ستون اول (شرح) فیکس شود */
table th.sticky-col,
table td.sticky-col {
    position: sticky;
    right: 0; /* چون راست به چپ هست، باید از right استفاده شود */
    z-index: 2;
    text-align: right;
    direction: rtl;
}
/* تنظیم متن چندخطی برای ستون شرح */
table td.sticky-col {
    min-width: 290px;
    max-width: 350px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* بالاتر بردن header */
table thead th.sticky-col {
    z-index: 5;
}
/* ستون اول (شرح) فیکس شود */
table th.sticky-col-currency,
table td.sticky-col-currency {
    position: sticky;
    right: 0; /* چون راست به چپ هست، باید از right استفاده شود */
    z-index: 2;
    text-align: right;
    direction: rtl;
}
/* تنظیم متن چندخطی برای ستون شرح */
table td.sticky-col-currency {
    max-width: 120px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* بالاتر بردن header */
table thead th.sticky-col-currency {
    z-index: 5;
}
/* فونت و ارتفاع  ستون‌های تایتل */
table thead th{
font-size: 12px;
line-height: 1.7;
}
/* بک‌گراند  ستون‌های تایتل */
table thead th,
table thead td {
    background: #f8f7fc !important;
}
/* تنظیم ارتفاع رکوردهای جدول و نازکتر کردن بوردها */
table tbody td {
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);  /* نازک و کمرنگ */
    height: 2.6rem;
}
.table-border {
    border: 1px solid #f1f1f1;   /* خطوط معمولی */
}

/* برای مواردی از رکوردها ک باید هایلایت شود */
.highlight-codal{
    background-color: #f8fafc !important;
}
/* فونت و سایز ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    table td.sticky-col {
        min-width: 120px ;
        font-size: 12px;
    }
}
@media (max-width: 576px) {
    table td{
        font-size: 11px;
    }
}
.bg-white.shadow-sm.rounded {
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  direction: rtl; /* متن سمت راست */
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding-left: 60px; /* جا برای آیکن‌ها سمت چپ */
}

/* آیکن جستجو (دکمه submit) */
.search-icon {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  color: #555;
  font-size: 15px;
  cursor: pointer;
}

/* دکمه پاک کردن */
.clear-btn {
  position: absolute;
  left: 40px;   /* دقیقا کنار آیکن جستجو */
  background: none;
  border: none;
  color: #aaa;
  font-size: 15px;
  cursor: pointer;
  display: none;
}

.clear-btn:hover {
  color: #dc3545; /* قرمز روی hover */
}

.suggest-box {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
}
/* اسکرول‌بار سفارشی */
.suggest-box::-webkit-scrollbar {
    width: 5px;
}

.suggest-box::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

.suggest-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* حذف کامل فلش‌های بالا/پایین */
.suggest-box::-webkit-scrollbar-button {
    display: none;
    height: 0;
}
.suggest-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #111827;
  display: flex;
  justify-content: space-between;
}
.suggest-item:hover {
  background: #f0f9ff;
}
.suggest-symbol {
  font-weight: 700;
  color: #0f172a;
}
.suggest-name {
  font-size: 0.85rem;
  color: #64748b;
}
#symbol-input::placeholder, #commoditySearch::placeholder {
    font-size: 12px;
    color: #999; /* دلخواه */
}
#symbol-input, #commoditySearch {
    font-size: 13px;
}

/* استاتوس */
.status-open,
.status-closed {
    font-size: 12px;
    vertical-align: middle;
}
.status-unknown {
    color: #00036d;
}

/* نام نماد (responsive) */
#market-symbol {
    font-size: 1rem;     /* پیش‌فرض: موبایل */
    font-weight: 700;
    color: #00036d;
    padding-right:6px;
}

@media (min-width: 576px) {   /* sm به بالا */
    #market-symbol {
        font-size: 1.25rem;
        padding-right:6px;
    }
}

@media (min-width: 768px) {   /* md به بالا */
    #market-symbol {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {  /* xl به بالا */
    #market-symbol {
        font-size: 1.5rem;
    }
}

/* نام شرکت */
#market-name {
    color: #00036d;
    font-size: clamp(0.80rem, 1vw + 0.8rem, 1.1rem);
}

/* قیمت پایانی */
.stock-close {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* درصد تغییر */
.stock-change {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* فلش بالا/پایین */
.stock-arrow {
    font-size: 0.85rem;
    margin-left: 0.2rem;
}


/* باکس اطلاعات بازار همیشه همین‌قدر فضا نگه دارد */
#market-data-container{
  min-height: 64px;            /* بسته به طراحی‌ات: 56-72px خوبه */
}

/* وقتی نمی‌خواهیم نمایش بدهیم، فقط نامرئی شود اما فضا حفظ شود */
.market-hidden{
  visibility: hidden;           /* فضا حفظ می‌شود */
  pointer-events: none;         /* کلیک نخورد */
  opacity: 0;                   /* محو */
}


/* ستون اول (شرح) فیکس شود */
table th.sticky-col-shareholder,
table td.sticky-col-shareholder {
    position: sticky;
    right: 0; /* چون راست به چپ هست، باید از right استفاده شود */
    z-index: 2;
    text-align: right;
    direction: rtl;
}
/* تنظیم متن چندخطی برای ستون شرح */
table td.sticky-col-shareholder {
    max-width: 90px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* بالاتر بردن header */
table thead th.sticky-col-shareholder {
    z-index: 5
}
/* فونت و سایز ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    table td.sticky-col-shareholder {
        min-width: 80px ;
        font-size: 12px;
    }
}
.shareholder-info {
font-size: clamp(10px, 12px, 14px);
line-height: 2;
}
@media (max-width: 576px) {
.shareholder-info {
font-size: clamp(9px, 12px, 14px);
text-align: center;
}
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* سلول قیمت به‌طور کلی */
.price-cell {
transition: background-color 0.8s ease-out;
}

/* وقتی قیمت عوض شده باشد */
.price-cell.price-changed {
animation: priceHighlight 1.5s ease-out;
}

@keyframes priceHighlight {
0%   { background-color: #fff3a3; }  /* زرد پررنگ */
60%  { background-color: #fff9c4; }  /* زرد ملایم‌تر */
100% { background-color: transparent; } /* برگرد به حالت عادی */
}

/* ========== Skeleton Loading برای صفحات سیگنال هوشمند ========== */

.fm-skeleton-line {
  display: inline-block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5e7eb, #f9fafb, #e5e7eb);
  background-size: 200% 100%;
  animation: fm-skeleton-loading 1.1s ease-in-out infinite;
}

@keyframes fm-skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.fm-skeleton-wrapper {
  padding: 1.25rem 0.75rem;
}

.fm-skeleton-table table {
  margin-bottom: 0;
}

.fm-skeleton-table .fm-skeleton-line {
  height: 9px;
}

.fm-marketdata-skeleton .card-skeleton {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.fm-blur {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* ==========================
   Fundamental Header layout (market data + quickbar)
   ========================== */
.fm-header-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* مارکت دیتا همیشه فضای اصلی را بگیرد */
.fm-market-wrap{
  flex: 1 1 auto;
  min-width: 0;
}

/* ستون quickbar عرضش اتومات باشد */
.sd-quickbar-col{
  flex: 0 0 auto;
  margin-left:1%;
  text-align: left;   /* در دسکتاپ سمت چپ */
}

/* موبایل: زیر هم بیفتند */
@media (max-width: 767.98px){
  .fm-header-info{
    flex-direction: column;
    align-items: stretch;
  }
  .sd-quickbar-col{
    margin-top:-22px;
    text-align: right; /* در موبایل طبیعی‌تر برای RTL */
  }
}


/* ==========================
   Quickbar (همان طراحی صفحه جزئیات نماد)
   ========================== */
.sd-quickbar{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: none;
  border: none;
  border-radius: 14px;

  padding: 6px 10px;
  min-height: 24px;
  max-width: 100%;
}

.sd-quickbar-text{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.88rem;
  font-weight: 800;
  color: #111827;
}

.sd-quickbar-ticker{ font-weight: 900; }
.sd-quickbar-muted{ color: #6b7280; font-weight: 700; }

.sd-quickbar-icons{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.sd-quickicon{
  width: 34px;
  height: 34px;
  border-radius: 10px;

  background: #ffffff;
  border: 1px solid rgba(203,213,225,.95);
  display: grid;
  place-items: center;
  text-decoration: none;

  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

.sd-quickicon i{
  font-size: 1.05rem;
  line-height: 1;
}

.sd-quickicon:hover{
  background: #eef2ff;
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 8px 16px rgba(15,23,42,.10);
}

.sd-quickicon:focus-visible{
  outline: 3px solid rgba(37,99,235,.28);
  outline-offset: 2px;
}

.sd-quickicon.disabled{
  opacity: .45;
  pointer-events: none;
  box-shadow: none;
}

/* Active state برای همین صفحه */
.sd-quickicon.is-active{
  background: #eef2ff;
  border-color: rgba(37,99,235,.35);
  color: #1d4ed8;
  box-shadow: none;
}

@media (max-width: 360px){
  .sd-quickbar-muted{ display:none; }
  .sd-quickicon{ width:32px; height:32px; }
}


/* ==========================
   Professional Tooltip Style
   ========================== */
.sd-tooltip .tooltip-inner{
  background: #0b1220;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15,23,42,.22);
  direction: rtl;
  text-align: center;
  letter-spacing: .1px;
}

.sd-tooltip.bs-tooltip-top .tooltip-arrow::before    { border-top-color: #0b1220; }
.sd-tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: #0b1220; }
.sd-tooltip.bs-tooltip-start .tooltip-arrow::before  { border-left-color: #0b1220; }
.sd-tooltip.bs-tooltip-end .tooltip-arrow::before    { border-right-color: #0b1220; }

.sd-tooltip.show .tooltip-inner{
  animation: sdTooltipPop .14s ease-out;
}
@keyframes sdTooltipPop{
  from { transform: translateY(2px) scale(.98); opacity: .0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
/* Highcharts tooltip should be RTL, numbers inside stay LTR via .nx-num */
.nx-hc-tooltip{
  direction: rtl;
  text-align: right;
}

/* dot spacing should work in RTL/LTR */
.nx-hc-dot{
  margin-inline-end: 6px;
  margin-inline-start: 0;
}
/* فقط برای وسط‌چین کردن عدد و درصد کارت KPI */
.nx-kpi .nx-kpi-center{
  text-align: center;
   width: 100%;
}

.nx-kpi .nx-kpi-sub-center{
  justify-content: center;   /* چون display:flex هست */
  width: 100%;
}

.nx-lock-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
  direction: rtl;
  cursor: default !important;
}
.nx-lock-title {
  cursor: default !important;
  pointer-events: none;
}
.nx-locked-th {
  cursor: default !important;
}
.nx-lock-info-btn {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #334155;
  cursor: help !important;
  line-height: 1;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.nx-lock-info-btn:hover,
.nx-lock-info-btn:focus {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
  outline: none;
  cursor: help !important;
}
.nx-locked-th {
  position: relative;
  white-space: nowrap;
}
.nx-locked-th .nx-lock-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  cursor: help;
}
.nx-locked-th .nx-lock-head i {
  color: #f59e0b;
  font-size: .9rem;
}
.nx-locked-cell {
  min-width: 118px;
}
.nx-locked-cta {
  border: 1px solid rgba(245, 158, 11, .38);
  background: linear-gradient(135deg, rgba(255, 247, 237, .98), rgba(255, 255, 255, .88));
  color: #92400e;
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .10);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  white-space: nowrap;
  direction: rtl;
}
.nx-locked-cta:hover,
.nx-locked-cta:focus {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, .75);
  color: #78350f;
  box-shadow: 0 12px 28px rgba(245, 158, 11, .18);
  text-decoration: none;
}
.nx-locked-cta-upgrade {
  border-color: rgba(37, 99, 235, .28);
  background: linear-gradient(135deg, rgba(239, 246, 255, .98), rgba(255, 255, 255, .9));
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .10);
}
.nx-locked-cta-upgrade:hover,
.nx-locked-cta-upgrade:focus {
  border-color: rgba(37, 99, 235, .58);
  color: #1e40af;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .16);
}
.nx-locked-value-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 92px;
  height: 28px;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, rgba(148, 163, 184, .16) 0 7px, rgba(148, 163, 184, .25) 7px 14px);
  color: transparent;
  user-select: none;
  filter: blur(.15px);
}
.nx-pro-modal .modal-content {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  overflow: hidden;
}
.nx-pro-modal-hero {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, .26), transparent 34%), linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
}
.nx-pro-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
}
.nx-pro-feature-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.tooltip .tooltip-inner {
  background: linear-gradient(135deg, #012d67 30%, #123f73 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  line-height: 1.7;
  padding: .15rem .35rem;
  border-radius: .45rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .42);
  max-width: 240px;
  text-align: center;
}

 /* برای حذف کردن علامت سوال زمانی که تولتیپ میخوایم ببینیم */
[data-bs-toggle="tooltip"],
[data-bs-toggle="tooltip"] *,
.nx-compact-number,
.nx-compact-number *,
.tooltip-trigger,
.tooltip-trigger *,
.has-tooltip,
.has-tooltip * {
  cursor: default !important;
}
/* Shared lock content wrapper for returns/symbol pages */
.sd-locked-cell-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
@media (max-width: 576px) {
  .nx-locked-cta { font-size: 10px; padding: .24rem .55rem; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Navexa Pro Export Toolbar (Excel/PDF)
   ────────────────────────────────────────────────────────────────────────── */
.nx-export-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:12px 0 14px;
    padding:12px 14px;
    border:1px solid rgba(15,118,110,.16);
    border-radius:20px;
    background:
      radial-gradient(circle at top right, rgba(20,184,166,.14), transparent 32%),
      linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.nx-export-main{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.nx-export-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    font-size:.78rem;
    font-weight:800;
    color:#0f766e;
    background:rgba(20,184,166,.12);
    border:1px solid rgba(20,184,166,.24);
}
.nx-export-title{
    font-weight:900;
    color:#0f172a;
    line-height:1.8;
}
.nx-export-subtitle{
    color:#64748b;
    font-size:.84rem;
    line-height:1.7;
}
.nx-export-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
}
.nx-export-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:8px 12px;
    border-radius:14px;
    text-decoration:none !important;
    font-weight:850;
    border:1px solid transparent;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    white-space:nowrap;
}
.nx-export-btn small{
    display:inline-flex;
    color:inherit;
    opacity:.72;
    font-size:.68rem;
    font-weight:700;
    margin-inline-start:2px;
}
.nx-export-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 24px rgba(15,23,42,.12);
}
.nx-export-btn-excel{
    color:#166534;
    background:#ecfdf5;
    border-color:#bbf7d0;
}
.nx-export-btn-pdf{
    color:#991b1b;
    background:#fef2f2;
    border-color:#fecaca;
}
.nx-export-modal{
    border:0;
    border-radius:22px;
    box-shadow:0 24px 60px rgba(15,23,42,.24);
}
.nx-export-note{
    padding:10px 12px;
    border-radius:14px;
    background:#f8fafc;
    color:#475569;
    font-size:.88rem;
    line-height:1.8;
}
@media (max-width: 768px){
    .nx-export-card{
        align-items:stretch;
        flex-direction:column;
        border-radius:18px;
        padding:12px;
    }
    .nx-export-main{
        align-items:flex-start;
    }
    .nx-export-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        width:100%;
    }
    .nx-export-btn{
        width:100%;
        padding:9px 8px;
        font-size:.82rem;
    }
    .nx-export-btn small{
        display:none;
    }
}

/* v4: product-specific export toolbar refinements */
.nx-export-quota{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:3px;
    padding:4px 9px;
    border-radius:999px;
    background:rgba(15,23,42,.04);
    color:#475569;
    font-size:.74rem;
    font-weight:750;
}
.nx-export-card[data-export-mode="fundamental_pdf"]{
    border-color:rgba(153,27,27,.14);
    background:
      radial-gradient(circle at top right, rgba(248,113,113,.12), transparent 32%),
      linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
}
.nx-export-card[data-export-mode="financial_excel"]{
    border-color:rgba(22,101,52,.16);
    background:
      radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 32%),
      linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
}
@media (max-width: 768px){
    .nx-export-actions{
        grid-template-columns:1fr;
    }
    .nx-export-quota{
        border-radius:14px;
        white-space:normal;
    }
}

/* v5: export access modal aligned with gold-market pro modal */
.nx-export-pro-modal .modal-content{
    border:0;
    border-radius:1.25rem;
    box-shadow:0 24px 70px rgba(15,23,42,.24);
    overflow:hidden;
}
.nx-export-pro-modal .nx-pro-modal-hero{
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.34), transparent 36%),
        radial-gradient(circle at bottom left, rgba(245,158,11,.20), transparent 42%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #2563eb 100%);
    color:#fff;
}
.nx-export-modal-icon{
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}
.nx-export-modal-body{
    line-height:1.9;
    font-size:.94rem;
}
.nx-export-pro-modal .nx-pro-feature-pill{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#334155;
    box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.nx-export-pro-modal .nx-export-note{
    border:1px solid #dbeafe;
    background:linear-gradient(180deg,#eff6ff,#ffffff);
    color:#1e3a8a;
    border-radius:16px;
    padding:12px 14px;
    line-height:1.85;
}
.nx-export-modal-primary{
    border:0;
    background:linear-gradient(135deg,#1d4ed8,#2563eb);
    box-shadow:0 14px 32px rgba(37,99,235,.25);
}
.nx-export-modal-primary:hover,
.nx-export-modal-primary:focus{
    transform:translateY(-1px);
    box-shadow:0 18px 42px rgba(37,99,235,.32);
}

/* SEO intro blocks for symbol-level fundamental and financial pages */
.nx-seo-intro-card{
  margin: 14px 0 12px;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13,110,253,.22), rgba(2,6,111,.14), rgba(255,255,255,.75));
  box-shadow: 0 16px 36px rgba(15,23,42,.07);
}
.nx-seo-intro-content{
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,255,.93));
  border: 1px solid rgba(219,228,244,.9);
  direction: rtl;
}
.nx-seo-intro-content::before{
  content:"";
  position:absolute;
  inset-inline-end:-42px;
  top:-52px;
  width:140px;
  height:140px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(13,110,253,.14), rgba(13,110,253,0) 68%);
  pointer-events:none;
}
.nx-seo-intro-card .nx-seo-intro-content p {
  width: 100%;
  max-width: none !important;
  display: block;
}
.nx-seo-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  background: rgba(13,110,253,.09);
  color:#0b5ed7;
  font-size:.78rem;
  font-weight:800;
  margin-bottom:8px;
}
.nx-seo-kicker::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#0d6efd;
  box-shadow:0 0 0 4px rgba(13,110,253,.12);
}
.nx-seo-intro-card h2{
  margin:0 0 7px;
  color:#06155f;
  font-size:clamp(1rem, 1.5vw, 1.25rem);
  font-weight:900;
  letter-spacing:-.02em;
}
.nx-seo-intro-card p{
  margin:0;
  max-width:980px;
  color:#475569;
  font-size:.92rem;
  line-height:1.95;
}
.nx-seo-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.nx-seo-tags span{
  padding:4px 9px;
  border-radius:999px;
  background:#fff;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:.76rem;
  font-weight:700;
}
@media (max-width: 576px){
  .nx-seo-intro-content{padding:13px 14px;}
  .nx-seo-intro-card p{font-size:.86rem; line-height:1.85;}
}




@media (max-width: 576px) {
  .fundamental-page .nx-chart-wrap,
  .fundamental-page .nx-chart,
  .fundamental-page .nx-chart-meta,
  .fundamental-page .highcharts-container,
  .fundamental-page .highcharts-root {
    display: none !important;
  }

  .fundamental-page .nx-box:has(.nx-chart-wrap),
  .fundamental-page .nx-box:has(.nx-chart) {
    display: none !important;
  }

  .fundamental-page .nx-export-subtitle {
    display: none !important;
  }
}