/* ارتفاع تقریبی نوار بالا (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) - 90px);
  overflow-y: auto;
}

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

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

/* اسکرول‌بار نرم و ظریف برای جدول‌ها */
.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;
}
/* smart_signal.css */
.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: 100px;
    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);
}

/* تنظیمات عمومی برای کارت‌ها */
.card-header {
    background-color: #f8f9fa;
    font-weight: bold;
}

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

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 {
    max-width: 150px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.table {
    font-size: 12px;
    margin-bottom: 0;
}


/* برای موبایل */
@media (max-width: 576px) {
    .table th, .table td {
        font-size: 12px;
    }

    .card-header h6 {
        font-size: 14px;
    }

    .table-responsive {
        font-size: 12px;
    }
}
.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;
    }
}

/* کارت معرفی */
.intro-card {
  position: relative;
  background: linear-gradient(90deg, #0d6efd, #2563eb);
  color: white;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* دکمه بستن */
.intro-close-btn {
  position: absolute;
  top: 8px;
  left: 10px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.intro-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.intro-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.intro-text {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 576px) {
  .intro-card {
    padding: 0.9rem 1.1rem;
  }
  .intro-title {
    font-size: 1rem;
  }
  .intro-text {
    font-size: 0.85rem;
  }
  .intro-close-btn {
    top: 5px;
    left: 8px;
    font-size: 1.2rem;
  }
}
.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;
}

/* ========== 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;
}


 /* برای حذف کردن علامت سوال زمانی که تولتیپ میخوایم ببینیم */
[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;
}
/* ========================================================================== 
   Smart Signal v2 — scoped product UI
   ========================================================================== */
.nx-ss-page{--ss-border:#e5e7eb;--ss-text:#0f172a;--ss-muted:#64748b;--ss-soft:#f8fafc;direction:rtl;padding-bottom:2rem;color:var(--ss-text)}
.nx-ss-page .container-fluid{max-width:1540px}
.nx-ss-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;padding:1.5rem 1.65rem;margin:.35rem 0 1rem;border:1px solid rgba(37,99,235,.16);border-radius:20px;background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 58%,#f8fafc 100%);box-shadow:0 10px 28px rgba(15,23,42,.055)}
.nx-ss-eyebrow{display:inline-flex;align-items:center;gap:.45rem;color:#2563eb;font-size:.79rem;font-weight:800;margin-bottom:.7rem}
.nx-ss-hero h1{font-size:clamp(1.35rem,2vw,1.8rem);font-weight:900;margin:0 0 .55rem;letter-spacing:-.02em}
.nx-ss-hero p{max-width:850px;margin:0;color:#475569;line-height:1.9;font-size:.92rem}
.nx-ss-hero__note{display:flex;align-items:flex-start;gap:.55rem;max-width:330px;padding:.8rem .95rem;border-radius:14px;background:#fff;border:1px solid #dbeafe;color:#475569;font-size:.78rem;line-height:1.8}
.nx-ss-hero__note i{color:#2563eb;margin-top:.12rem}
.nx-ss-page .nx-public-access{border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:none;padding:.7rem .85rem}
.nx-ss-page .nx-public-access__badge{border-radius:999px}

.nx-ss-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}
.nx-ss-kpi{position:relative;min-height:126px;padding:1rem 1.05rem;border:1px solid var(--ss-border);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04);overflow:hidden}
.nx-ss-kpi:before{content:"";position:absolute;right:0;top:0;width:4px;height:100%;background:#3b82f6}
.nx-ss-kpi:nth-child(2):before{background:#8b5cf6}.nx-ss-kpi:nth-child(3):before{background:#0f766e}.nx-ss-kpi:nth-child(4):before{background:#64748b}
.nx-ss-kpi>span{display:block;color:var(--ss-muted);font-size:.75rem;font-weight:700;margin-bottom:.55rem}
.nx-ss-kpi>strong{display:block;direction:ltr;unicode-bidi:plaintext;text-align:right;font-size:1.43rem;font-weight:900;line-height:1.2;color:#0f172a;margin-bottom:.45rem;font-variant-numeric:tabular-nums}
.nx-ss-kpi>small{display:block;color:#7c8a9d;font-size:.69rem;line-height:1.65}
.nx-ss-page .nx-ss-kpi [data-bs-toggle="tooltip"]{cursor:default!important}

.nx-ss-navigation{border:1px solid var(--ss-border);border-radius:18px;background:#fff;padding:.8rem;margin-bottom:.85rem}
.nx-ss-group-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}
.nx-ss-group{display:flex;align-items:center;gap:.65rem;text-align:right;padding:.75rem .8rem;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc;color:#475569;transition:.18s ease}
.nx-ss-group:hover{border-color:#bfdbfe;background:#f8fbff}.nx-ss-group.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;box-shadow:inset 0 0 0 1px rgba(59,130,246,.08)}
.nx-ss-group>i{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#fff;font-size:1rem}
.nx-ss-group span{min-width:0}.nx-ss-group b,.nx-ss-group small{display:block}.nx-ss-group b{font-size:.79rem;margin-bottom:.18rem}.nx-ss-group small{font-size:.65rem;color:#7c8a9d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nx-ss-signal-tabs{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;padding-top:.72rem;margin-top:.72rem;border-top:1px solid #eef2f7}
.nx-ss-signal-tab{border:1px solid #e2e8f0;border-radius:999px;padding:.48rem .82rem;background:#fff;color:#475569;font-size:.74rem;font-weight:700;transition:.15s ease}
.nx-ss-signal-tab:hover{border-color:#bfdbfe;color:#1d4ed8}.nx-ss-signal-tab.active{border-color:#2563eb;background:#2563eb;color:#fff}
.nx-ss-signal-tab[hidden]{display:none!important}

.nx-ss-definition{display:grid;grid-template-columns:1.05fr .95fr;gap:1rem;padding:1rem 1.1rem;margin-bottom:.85rem;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff}
.nx-ss-definition>div+div{border-right:1px solid #dbeafe;padding-right:1rem}
.nx-ss-definition span{display:block;color:#2563eb;font-size:.7rem;font-weight:800;margin-bottom:.28rem}
.nx-ss-definition h2{font-size:.96rem;font-weight:900;margin:0 0 .35rem}.nx-ss-definition p{font-size:.75rem;color:#64748b;line-height:1.8;margin:0}
.nx-ss-definition__metric>span{color:#7c3aed}

.nx-ss-loading{display:flex;justify-content:center;gap:.45rem;padding:4rem}.nx-ss-loading span{width:9px;height:9px;border-radius:50%;background:#3b82f6;animation:nxSsPulse .85s infinite alternate}.nx-ss-loading span:nth-child(2){animation-delay:.16s}.nx-ss-loading span:nth-child(3){animation-delay:.32s}@keyframes nxSsPulse{to{opacity:.25;transform:translateY(-5px)}}
.nx-ss-result{border:1px solid var(--ss-border);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 6px 22px rgba(15,23,42,.045);margin-bottom:1.5rem}
.nx-ss-result__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid #eef2f7}
.nx-ss-result__eyebrow{color:#2563eb;font-size:.67rem;font-weight:800;margin-bottom:.2rem}.nx-ss-result__head h2{font-size:1rem;font-weight:900;margin:0 0 .28rem}.nx-ss-result__head p{font-size:.73rem;color:#64748b;margin:0;line-height:1.7}
.nx-ss-result__count{text-align:center;min-width:100px;padding:.55rem .7rem;border-radius:12px;background:#f8fafc}.nx-ss-result__count strong,.nx-ss-result__count span{display:block}.nx-ss-result__count strong{font-size:1.12rem}.nx-ss-result__count span{font-size:.61rem;color:#64748b}
.nx-ss-table-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;background:#fbfdff;border-bottom:1px solid #eef2f7}
.nx-ss-search{display:flex;align-items:center;gap:.55rem;min-width:min(360px,100%);padding:.48rem .7rem;border:1px solid #dbe3ee;border-radius:11px;background:#fff;color:#94a3b8}.nx-ss-search:focus-within{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.nx-ss-search input{width:100%;border:0;outline:0;background:transparent;font-size:.75rem;color:#0f172a}
.nx-ss-table-tools__hint{font-size:.68rem;color:#64748b}.nx-ss-table-tools__hint i{color:#2563eb;margin-left:.25rem}
.nx-ss-table-wrap{max-height:68vh}.nx-ss-page .nx-ss-table{font-size:11.5px}.nx-ss-page .nx-ss-table th,.nx-ss-page .nx-ss-table td{min-width:132px;height:2.8rem;padding:.55rem .65rem}.nx-ss-page .nx-ss-table th:first-child,.nx-ss-page .nx-ss-table td:first-child{min-width:88px}.nx-ss-page .nx-ss-table thead th{position:sticky;top:0;z-index:4;background:#f8fafc!important}.nx-ss-page .nx-ss-table thead th.sticky-col{z-index:6}
.nx-ss-symbol{color:#0f172a;text-decoration:none;font-weight:900}.nx-ss-symbol:hover{color:#2563eb}.nx-ss-metric{font-weight:900}.nx-ss-metric--positive{color:#07864b}.nx-ss-metric--negative{color:#dc2626}.nx-ss-metric--neutral{color:#7c3aed}
.nx-ss-help{display:inline-flex;vertical-align:middle;border:0;background:transparent;color:#94a3b8;padding:0 .2rem;font-size:.75rem}.nx-ss-help:hover{color:#2563eb}
.nx-ss-preview-cta{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-top:1px solid #e2e8f0;background:#f8fbff}.nx-ss-preview-cta strong,.nx-ss-preview-cta span{display:block}.nx-ss-preview-cta strong{font-size:.76rem}.nx-ss-preview-cta span{font-size:.67rem;color:#64748b;margin-top:.16rem}
.nx-ss-search-empty,.nx-ss-error{padding:2.2rem;text-align:center;color:#64748b;font-size:.78rem}.nx-ss-error{color:#b91c1c;border:1px solid #fecaca;border-radius:14px;background:#fff7f7}

@media(max-width:1100px){.nx-ss-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-ss-group-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.nx-ss-hero{display:block;padding:1.1rem}.nx-ss-hero__note{margin-top:.8rem;max-width:none}.nx-ss-kpis{grid-template-columns:1fr 1fr;gap:.55rem}.nx-ss-kpi{min-height:116px;padding:.85rem}.nx-ss-kpi>strong{font-size:1.18rem}.nx-ss-group-tabs{grid-template-columns:1fr 1fr}.nx-ss-group{padding:.6rem}.nx-ss-group small{display:none}.nx-ss-definition{grid-template-columns:1fr}.nx-ss-definition>div+div{border-right:0;border-top:1px solid #dbeafe;padding-right:0;padding-top:.75rem}.nx-ss-table-tools,.nx-ss-result__head,.nx-ss-preview-cta{align-items:stretch;flex-direction:column}.nx-ss-table-tools__hint{display:none}.nx-ss-search{min-width:100%}.nx-ss-result__count{text-align:right}.nx-ss-table-wrap{max-height:none}}
@media(max-width:480px){.nx-ss-kpis{grid-template-columns:1fr}.nx-ss-group-tabs{grid-template-columns:1fr 1fr}.nx-ss-group>i{display:none}}
.nx-ss-table-tools__actions{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}
@media(max-width:767px){.nx-ss-table-tools__actions{width:100%;justify-content:stretch}.nx-ss-table-tools__actions .nx-pp-export{width:100%;justify-content:center}}

/* ========================================================================== 
   Smart Signal phase 2 completion
   ========================================================================== */
.nx-ss-result__stats{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}
.nx-ss-multi-count{display:inline-flex;align-items:center;gap:.35rem;padding:.48rem .7rem;border:1px solid #c4b5fd;border-radius:999px;background:#f5f3ff;color:#6d28d9;font-size:.68rem;font-weight:800;white-space:nowrap}
.nx-ss-multi-count i{font-size:.82rem}

.nx-ss-page .nx-ss-table th:nth-child(3),
.nx-ss-page .nx-ss-table td:nth-child(3){min-width:230px}
.nx-ss-page .nx-ss-table th:nth-child(4),
.nx-ss-page .nx-ss-table td:nth-child(4){min-width:105px}
.nx-ss-page .nx-ss-table th:last-child,
.nx-ss-page .nx-ss-table td:last-child{min-width:78px}

.nx-ss-watch-state{display:inline-flex;align-items:center;justify-content:center;margin-right:.32rem;color:#0f9f5f;font-size:.78rem;vertical-align:middle}
.nx-ss-signal-tags{display:flex;align-items:center;justify-content:center;gap:.28rem;flex-wrap:wrap}
.nx-ss-signal-tag{display:inline-flex;align-items:center;min-height:25px;padding:.22rem .48rem;border:1px solid transparent;border-radius:999px;background:#f8fafc;font-size:.62rem;font-weight:800;line-height:1.35;white-space:nowrap;transition:border-color .15s ease,background-color .15s ease,transform .15s ease}
button.nx-ss-signal-tag:hover{transform:translateY(-1px)}
.nx-ss-signal-tag--positive{border-color:#bbf7d0;background:#f0fdf4;color:#087443}
.nx-ss-signal-tag--negative{border-color:#fecaca;background:#fff7f7;color:#b91c1c}
.nx-ss-signal-tag--neutral{border-color:#ddd6fe;background:#f7f5ff;color:#6d28d9}
.nx-ss-signal-tag--more{border-color:#e2e8f0;background:#f8fafc;color:#475569}
.nx-ss-single-event{display:inline-flex;padding:.25rem .48rem;border-radius:999px;background:#f8fafc;color:#94a3b8;font-size:.62rem;font-weight:700}


.nx-ss-actions-toggle{width:34px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:9px}
.nx-ss-actions-menu{min-width:190px;padding:.38rem;border:1px solid #e2e8f0;border-radius:13px;box-shadow:0 14px 38px rgba(15,23,42,.16);font-size:.72rem;text-align:right}
.nx-ss-actions-menu .dropdown-item{display:flex;align-items:center;gap:.52rem;padding:.52rem .62rem;border-radius:8px;color:#334155}
.nx-ss-actions-menu .dropdown-item:hover{background:#eff6ff;color:#1d4ed8}
.nx-ss-actions-menu .dropdown-item i{width:18px;color:#64748b;text-align:center}
.nx-ss-actions-menu .nx-ss-watch-add{color:#1d4ed8;font-weight:800}
.nx-ss-actions-menu .nx-ss-watch-added{color:#087443;opacity:1}

.nx-ss-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.72rem 1rem;border-top:1px solid #eef2f7;background:#fbfdff}
.nx-ss-pagination[hidden]{display:none!important}
.nx-ss-pagination__size{display:flex;align-items:center;gap:.45rem;color:#64748b;font-size:.68rem}
.nx-ss-pagination__size select{width:74px;border-color:#dbe3ee;border-radius:9px;font-size:.7rem}
.nx-ss-pagination__info{color:#475569;font-size:.7rem;font-weight:700}
.nx-ss-pagination__buttons{display:flex;align-items:center;gap:.4rem}
.nx-ss-pagination__buttons .btn{display:inline-flex;align-items:center;gap:.3rem;border-radius:9px;font-size:.68rem}

.nx-ss-guide{margin:1rem 0 0;padding:1.25rem;border:1px solid #e2e8f0;border-radius:19px;background:#fff;box-shadow:0 6px 22px rgba(15,23,42,.035)}
.nx-ss-guide__head>span{display:block;color:#2563eb;font-size:.7rem;font-weight:900;margin-bottom:.3rem}
.nx-ss-guide__head h2{font-size:1.05rem;font-weight:900;margin:0 0 .35rem}
.nx-ss-guide__head p{color:#64748b;font-size:.75rem;line-height:1.8;margin:0}
.nx-ss-guide__steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-top:1rem}
.nx-ss-guide__steps article{display:flex;align-items:flex-start;gap:.65rem;padding:.85rem;border:1px solid #e7edf5;border-radius:14px;background:#fbfdff}
.nx-ss-guide__steps article>b{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#eaf2ff;color:#1d4ed8;font-size:.78rem}
.nx-ss-guide__steps h3{font-size:.78rem;font-weight:900;margin:0 0 .28rem}
.nx-ss-guide__steps p{font-size:.68rem;color:#64748b;line-height:1.75;margin:0}
.nx-ss-faq{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:.75rem}
.nx-ss-faq details{border:1px solid #e7edf5;border-radius:12px;background:#fff;padding:.7rem .8rem}
.nx-ss-faq summary{cursor:pointer;color:#334155;font-size:.7rem;font-weight:850;line-height:1.65}
.nx-ss-faq p{margin:.55rem 0 0;color:#64748b;font-size:.67rem;line-height:1.8}

.nx-ss-notice{position:fixed;left:1.25rem;bottom:1.25rem;z-index:1090;max-width:min(390px,calc(100vw - 2rem));padding:.78rem 1rem;border:1px solid #dbe3ee;border-radius:13px;background:#fff;color:#334155;box-shadow:0 18px 50px rgba(15,23,42,.2);font-size:.74rem;font-weight:750;line-height:1.7;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.nx-ss-notice.is-visible{opacity:1;transform:translateY(0)}
.nx-ss-notice--success{border-color:#bbf7d0;background:#f0fdf4;color:#087443}
.nx-ss-notice--danger{border-color:#fecaca;background:#fff7f7;color:#b91c1c}

@media(max-width:991px){
  .nx-ss-guide__steps,.nx-ss-faq{grid-template-columns:1fr}
}
@media(max-width:767px){
  .nx-ss-result__stats{justify-content:flex-start}
  .nx-ss-pagination{align-items:stretch;flex-direction:column}
  .nx-ss-pagination__buttons{display:grid;grid-template-columns:1fr 1fr}
  .nx-ss-pagination__buttons .btn{justify-content:center}
  .nx-ss-notice{left:1rem;right:1rem;bottom:1rem;max-width:none}
}

/* Phase 2 performance polish: balanced KPIs and non-blank loading states */
.nx-ss-kpi>strong{text-align:center}
.nx-ss-kpi>small{text-align:center}
.nx-ss-kpi.is-loading>strong,
.nx-ss-kpi.is-loading>small{
  color:transparent!important;
  background:linear-gradient(90deg,#edf2f7 25%,#f8fafc 50%,#edf2f7 75%);
  background-size:220% 100%;
  border-radius:8px;
  animation:nxSsSkeletonMove 1.05s ease-in-out infinite;
  pointer-events:none;
  user-select:none;
}
.nx-ss-kpi.is-loading>strong{width:56%;min-height:1.72rem;margin:.1rem auto .5rem}
.nx-ss-kpi.is-loading>small{width:74%;min-height:.78rem;margin-inline:auto}
#tab-content{position:relative;min-height:260px}
#tab-pane-content{transition:opacity .14s ease}
#tab-pane-content.is-refreshing{opacity:.42;pointer-events:none}
.nx-ss-loading{
  position:absolute;
  inset:0;
  z-index:12;
  display:block;
  padding:.8rem;
  background:rgba(248,250,252,.94);
  backdrop-filter:blur(2px);
  border-radius:18px;
}
.nx-ss-loading.d-none{display:none!important}
.nx-ss-skeleton{height:100%;min-height:260px;padding:.9rem;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.04)}
.nx-ss-skeleton i{display:block;background:linear-gradient(90deg,#edf2f7 25%,#f8fafc 50%,#edf2f7 75%);background-size:220% 100%;border-radius:8px;animation:nxSsSkeletonMove 1.05s ease-in-out infinite}
.nx-ss-skeleton__head,.nx-ss-skeleton__tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.nx-ss-skeleton__head i:first-child{width:34%;height:20px}.nx-ss-skeleton__head i:last-child{width:110px;height:34px}
.nx-ss-skeleton__tools i:first-child{width:280px;max-width:55%;height:36px}.nx-ss-skeleton__tools i:last-child{width:150px;height:28px}
.nx-ss-skeleton__table{display:grid;gap:.45rem;padding-top:.5rem;border-top:1px solid #eef2f7}
.nx-ss-skeleton__row{display:grid;grid-template-columns:1.05fr 1fr 1.35fr .9fr .9fr .9fr;gap:.65rem;padding:.58rem .25rem;border-bottom:1px solid #f1f5f9}
.nx-ss-skeleton__row i{height:15px}
@keyframes nxSsSkeletonMove{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(max-width:767px){.nx-ss-skeleton__row{grid-template-columns:1.1fr 1fr 1fr}.nx-ss-skeleton__row i:nth-child(n+4){display:none}.nx-ss-skeleton__tools i:first-child{max-width:68%}}
@media(prefers-reduced-motion:reduce){.nx-ss-kpi.is-loading>strong,.nx-ss-kpi.is-loading>small,.nx-ss-skeleton i{animation:none}}
