
/* ===============================
   Taskine Ravan – Exam CSS (azmoon.css)
   Consolidated & de-duplicated for uniform rendering
   Font: BNazanin (inherited from theme.css)
   =============================== */

/* ---------- Design tokens ---------- */
:root{
  --tr-green-25:  #f2fbfa;
  --tr-green-50:  #e6f7f6;
  --tr-green-100: #c7eeec;
  --tr-green-600: #16a34a;  /* light green accent for radios */
  --tr-green-650: #10a19a;
  --tr-green-700: #0b807f;
  --tr-text-600:  #556270;
  --tr-shadow:    0 10px 30px rgba(0,0,0,.06);
}

/* ---------- Utilities ---------- */
.tr-justify{ text-align: justify; text-justify: inter-word; }

/* ---------- Chips ---------- */
.tr-chip{
  background: var(--tr-green-50);
  color: var(--tr-green-700);
  border: 1px solid var(--tr-green-100);
  font-weight: 500;
  border-radius: 999px;
  padding: .15rem .5rem;
}

/* ---------- Green info surfaces ---------- */
.tr-green-card{
  background: var(--tr-green-50);
  border: 1px solid var(--tr-green-100);
  border-radius: .75rem;
}
.tr-green-section{
  background: #fff;
  border: 1px dashed var(--tr-green-100);
  border-radius: .75rem;
}

/* ---------- Hero ---------- */
.test-hero__media{
  width: 100%;
  aspect-ratio: var(--hero-aspect, 16/9);
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}
.test-hero__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 576px){
  .test-hero__media img{ object-fit: contain; background:#000; }
}
.test-hero__caption{
  margin-top: .5rem;
  line-height: 1.7;
  color: var(--tr-text-600);
}

/* ---------- Buttons (respect Bootstrap but greenify primary) ---------- */
.btn-primary{
  background: var(--tr-green-650);
  border-color: var(--tr-green-650);
}
.btn-primary:hover{
  background: var(--tr-green-700);
  border-color: var(--tr-green-700);
}

/* ---------- Runner shell ---------- */
.tr-runner-card{
  border: 0;
  border-radius: 1rem;
  box-shadow: var(--tr-shadow);
  background: #fff;
}
h1.h4.mb-1{ padding-top: .75rem; } /* safe breathing space */

/* ---------- Progress (scoped) ---------- */
.tr-runner-card .progress,
#trProgress{
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f2f4f7;
}
.tr-runner-card .progress-bar,
#trProgress .progress-bar{
  transition: width .25s ease, background-color .25s ease;
}

/* ---------- Toolbar ---------- */
.tr-toolbar{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.tr-toolbar .btn{
  min-width: 7rem;
  border-radius: .75rem;
}

/* ---------- Question text (BNazanin inherited) ---------- */
/* این بلاک موجود را به این شکل اصلاح کن */
.tr-qtext,
#qText{
  font-weight: 700 !important;     /* مطمئن شو برنده کَسکید است */
  font-size: 1.2rem;
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* اجازه ساخت بولد مصنوعی (چون فایل 700 نداری) */
  font-synthesis-weight: auto;     /* قبلاً none بود و بولد نمی‌ساخت */
}
@media (max-width: 576px){
  .tr-qtext, #qText{ font-size: 1.1rem; }
}

/* ---------- Likert block (RTL-first, one option per line) ---------- */
#optsLikert{
  direction: rtl;
  text-align: right;
}

#optsLikert .form-check,
#optsLikert .form-check.form-check-inline{
  display: grid !important;
  grid-template-columns: auto 1fr; /* col 1: radio | col 2: text */
  align-items: center;
  width: 100% !important;
  gap: .55rem;
  margin: 0 0 .5rem 0 !important;
  padding: 0 !important;
  float: none !important;   /* neutralize any inline/float left-overs */
  clear: both !important;
}

#optsLikert .form-check-input[type="radio"]{
  grid-column: 1 !important;
  justify-self: start;   /* in RTL = right side */
  margin: 0 !important;
  transform: scale(1.2); /* slightly larger radio */
  accent-color: var(--tr-green-600); /* native color without custom hacks */
}

#optsLikert .form-check-label{
  grid-column: 2 !important;
  margin: 0 !important;
  white-space: normal !important;
  text-align: right;
  font-size: 1.1rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}
@media (max-width: 576px){
  #optsLikert .form-check-label{ font-size: 1.0rem; }
}

/* ---------- Counter styling (subtle emphasis) ---------- */
#counter{
  font-size: .95rem;
  color: #6b7280;
}
#counter .tr-qnum,
#counter .tr-qnum-total{
  font-weight: 700;
  color: #8B5E3C;
  background: #F3EDE6;
  border: 1px solid #E5D8CB;
  padding: 0 .4rem;
  border-radius: .5rem;
  line-height: 1.6;
  display: inline-block;
  margin-inline: .15rem;
}
@media (max-width: 576px){
  #counter .tr-qnum,
  #counter .tr-qnum-total{
    padding: 0 .3rem;
    font-weight: 600;
  }
}

/* ---------- Helper for muted paragraphs near progress ---------- */
p.text-muted.mb-0{
  margin-top: 1rem;
  margin-bottom: .5rem;
}

/* ---------- Avoid unexpected overrides ---------- */
/* Ensure BNazanin (inherited from theme.css) applies uniformly without re-declaring font-family here.
   If any other stylesheet sets font-family on .tr-qtext or .form-check-label, add the following:
   font-family: "BNazanin","Vazir",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif !important;
*/
/* نقطه/علائم با فونتی که گلیف کوچک و یکنواخت دارد */
#qText .punct-dot{
  font-family: "Vazir","Noto Sans","Segoe UI",Tahoma,sans-serif !important;
  font-weight: inherit;
}

/* فاصله عمودیِ بیرونیِ هشدار از بالا */
#alertWrap > .alert {
  margin-top: 16px;   /* می‌تونی 12px/20px هم بذاری */
}



/* ===========================
   نتایج آزمون (ژنریک برای همه آزمون‌ها)
   نکته مهم: فونت این بخش از فونت سراسری سایت پیروی می‌کند (بی‌نازنین).
   هیچ فونت ثابتی ست نشده؛ اگر جایی قبلاً Tahoma ست شده بود، با inherit! override می‌شود.
   =========================== */

/* ریشه‌ی بخش نتایج */
.azmoon-results {
  direction: rtl;
  font-family: inherit !important; /* بی‌نازنینِ سراسری سایت */
  color: #0f172a;
}

/* تیترها */
.azmoon-results .section-title {
  font-weight: 700;
  margin-bottom: .75rem;
}

/* نمره‌های درشت (نهایی/زیرعامل‌ها) */
.azmoon-results .big-number,
.azmoon-results .facet-score {
  font-family: inherit !important; /* پیروی از بی‌نازنین */
  font-weight: 800;
  letter-spacing: .2px;
}
.azmoon-results .big-number { font-size: 1.5rem; }
.azmoon-results .final-score .big-number { font-size: 1.7rem; }
.azmoon-results .facet-score { font-size: 1.2rem; }

/* هدر کارت نمره نهایی */
.azmoon-results .final-score {
  margin-bottom: 1.25rem;
}

/* ======= گرید و کارت‌های «عامل‌ها» (N/E/O/A/C یا هر عامل دیگر) ======= */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .9rem;
}
@media (min-width: 768px) { .factor-grid { gap: 1.1rem; } }
@media (min-width: 992px) { .factor-grid { gap: 1.25rem; } }

.factor-card {
  grid-column: span 12;
  border: 1px solid #e5e7eb;
  border-radius: .9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
@media (min-width: 768px) { .factor-card { grid-column: span 6; } }
@media (min-width: 992px) { .factor-card { grid-column: span 4; } }

.factor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.factor-title {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
/* Chip for factor letter (perfect centering) */
.factor-code{
  display: inline-flex;              /* به‌جای inline-block */
  align-items: center;               /* مرکز عمودی */
  justify-content: center;           /* مرکز افقی */
  min-width: 2.2rem;
  height: 2rem;                      /* ارتفاع ثابت برای تراز دیداری */
  padding: 0 .5rem;                  /* padding عمودی صفر → خط وسط دقیق */
  line-height: 1;                    /* جلوی بالا/پایین‌زدن فونت را می‌گیرد */
  border-radius: .5rem;
  background: #eef2f7;
  color: #0f172a;
  font-weight: 800;
}

.factor-name {
  color: #334155;
  font-weight: 700;
  font-size: .98rem;
}

/* ======= لیست «زیرعامل‌ها/ابعاد» داخل هر کارت ======= */
.facet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.facet-item {
  display: flex;
  align-items: center;
  justify-content: space-between; /* کُد راست / نمره چپ */
  padding: .45rem 0;
  border-top: 1px dashed #e5e7eb;
}
.facet-item:first-child { border-top: none; }

.facet-item .facet-code {
  font-weight: 700;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: .35rem; /* برای نمایش عنوان/توضیح کنار کُد */
}

/* ======= خلاصه‌ی همه ابعاد (خارج از کارت‌ها) ======= */
.facet-summary .facet-row .facet-code {
  font-weight: 700;
  color: #0f172a;
}
.facet-summary .facet-row .big-number {
  font-size: 1.2rem;
}

/* ======= دکمه‌ها ======= */
.azmoon-results .actions .btn {
  min-width: 220px;
}

/* ======= ریز بهبودهای بصری ======= */
.azmoon-results .card {
  overflow: hidden;
}
.azmoon-results .list-group-item {
  background: #fff;
}
.azmoon-results .breadcrumb {
  --bs-breadcrumb-divider-color: #94a3b8;
}

/* ====================== azmoon_profile_gate.css (Final) ====================== */

/* --- متن‌های کمکی و لیبل‌ها --- */
.form-label { font-weight: 600; }
.form-label.required::after { content: " *"; color: #dc3545; margin-right: .25rem; }

/* --- ورودی شمسی: فقط با تقویم، نه تایپ --- */
.input-jalali[readonly] {
  background-color: #fff;
  cursor: pointer;
}

/* --- پیش‌نمایش تاریخ (یک‌خطی، بدون نام روز) --- */
.preview-date {
  font-size: .9rem;
  color: #6c757d;            /* شبیه text-muted */
  margin-top: .25rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* اگر قالب سرور «مقدار ذخیره‌شده: ...» را نشان می‌دهد، مخفی‌اش کن */
.stored-date { display: none !important; }

/* --- کارت‌ها --- */
.card { border-radius: .75rem; }

/* --- وضعیت خطا (تقویت‌کننده روی Bootstrap) --- */
.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .15);
}
.invalid-feedback { display: block; }



/* ==========================================================================
   Persian Datepicker — Final CSS (Passthrough UI)
   - RTL کامل
   - کنترل z-index و جلوگیری از پشتِ عناصر رفتن
   - جلوگیری از فول‌اسکرین موبایل در برخی نسخه‌ها
   - سازگاری با Bootstrap (focus/invalid/spacing)
   - تمیزی اندازه‌ها و اسکرول داخلی
   ========================================================================== */

/* ====================== Persian Datepicker: Clean CSS ====================== */
/* سراسری */
:root{
  --pwt-z: 2147483000;         /* بسیار بالا برای روی همه عناصر */
  --pwt-maxw: 320px;           /* حداکثر عرض پاپ‌آپ */
  --pwt-maxh: 360px;           /* حداکثر ارتفاع با اسکرول */
  --pwt-radius: 12px;
  --pwt-shadow: 0 12px 36px rgba(0,0,0,.18);
  --pwt-border: 1px solid rgba(0,0,0,.06);
  --pwt-primary: #0d6efd;      /* Bootstrap primary */
}

/* میزبان ورودی (پاپ‌آپ بیرون کارت/مودال دیده شود) */
.tr-date-host{
  position: relative;
  overflow: visible;
}

/* جهت‌دهی RTL */
.persian-datepicker,
.pwt-datepicker,
.pwt-date-container{
  direction: rtl;
  text-align: right;
  max-width: 100%;
}

/* ظرف پاپ‌آپ */
.pwt-datepicker-container{
  position: absolute !important;
  inset: auto auto auto auto;      /* اجازه به اسکریپت برای جای‌گذاری */
  width: auto !important;
  height: auto !important;
  max-width: var(--pwt-maxw) !important;
  z-index: var(--pwt-z) !important;
  pointer-events: auto;
}

/* حالت داخل مودال Bootstrap (بالای بک‌دراپ) */
.modal .pwt-datepicker-container,
.modal .pwt-datepicker{
  z-index: var(--pwt-z) !important;
}

/* خود تقویم (ظاهر کارت) */
.pwt-datepicker{
  max-width: var(--pwt-maxw);
  background: #fff;
  border-radius: var(--pwt-radius) !important;
  box-shadow: var(--pwt-shadow) !important;
  border: var(--pwt-border);
  overflow: hidden;
}

/* محتوای داخلی با اسکرول کنترل‌شده */
.pwt-content{
  max-height: var(--pwt-maxh);
  overflow: auto;
}

/* فواصل جمع‌وجور‌تر */
.pwt-header,
.pwt-days,
.pwt-footer{ padding: .5rem .65rem; }
.pwt-navigator .pwt-btn{ padding: .25rem .5rem; }

/* کنترل‌ها و حالت‌های hover/selected (در صورت وجود این کلاس‌ها) */
.pwt-btn{ border-radius: 8px; line-height: 1.8; }
.pwt-date-time-picker .pwt-text{ font-size: .92rem; }

.pwt-day, .pwt-month, .pwt-year{ cursor: pointer; }
.pwt-day:hover, .pwt-month:hover, .pwt-year:hover{ background: rgba(13,110,253,.08); }
.pwt-day.selected, .pwt-month.selected, .pwt-year.selected{
  background: rgba(13,110,253,.16);
  color: var(--pwt-primary);
}

/* دسترس‌پذیری و فوکوس */
.pwt-datepicker:focus,
.pwt-datepicker-container:focus{ outline: none; }
.pwt-datepicker .is-focused,
.pwt-datepicker [tabindex="0"]:focus{
  outline: 2px solid var(--pwt-primary);
  outline-offset: 2px;
}

/* حالت موبایل: جلوگیری از فول‌اسکرین اجباری در برخی نسخه‌ها */
.pwt-mobile .pwt-overlay,
.pwt-mobile .pwt-mobile-container{ display: none !important; }
.pwt-mobile .pwt-datepicker-container,
.pwt-mobile .pwt-datepicker{
  position: absolute !important;
  width: auto !important;
  height: auto !important;
  max-width: var(--pwt-maxw) !important;
  top: auto !important; bottom: auto !important;
  left: auto !important; right: auto !important;
  transform: none !important;
}

/* سازگاری با Bootstrap: نمایش خطا برای اینپوت شمسی نمایشی */
input.input-jalali.is-invalid{
  border-color: #dc3545;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.15);
}

/* پیام‌های کمکی/نمایش تاریخ */
.preview-date{ color: #6c757d; }     /* text-muted */
.stored-date{ color: #6c757d; font-size: .85rem; }

/* چاپ */
@media print{
  .pwt-datepicker-container{ display: none !important; }
}




/* =========================================================
   Readable Form Styles — slightly larger, cleaner, Bootstrap-friendly
   هدف: خوانایی بیشتر با بزرگ‌نمایی ملایم و بدون به‌هم‌زدن استایل کلی
   ========================================================= */

/* مقیاس پایه برای فرم (ملایم بزرگ‌تر از پیش‌فرض) */
:root {
  --form-font-size: 1.08rem;     /* کمی بزرگ‌تر از 1rem */
  --form-line-height: 1.9;       /* فضای عمودی خواناتر */
  --focus-ring: 0 0 0 0.2rem rgba(13,110,253,.18); /* حلقه فوکِس نرم */
}

/* 1) اندازه و فاصله‌گذاری ورودی‌ها و منوهای انتخابی */
#id_marital_status,
#id_education_level,
#id_gender,
#id_job_title,
#id_service_mode {
  font-size: var(--form-font-size) !important;
  line-height: var(--form-line-height) !important;
}

/* 2) گزینه‌های داخل منوها کمی بزرگ‌تر از متن عادی خودشان باشند */
#id_marital_status option,
#id_education_level option,
#id_gender option,
#id_service_mode option {
  font-size: 1.06em;
}

/* 3) Placeholder شغل کمی خواناتر باشد */
#id_job_title::placeholder {
  font-size: 1.02em;
  opacity: .85; /* کنتراست بهتر برای دیدن placeholder */
}

/* 4) فوکِس یک‌دست و خوانا (همسو با بوت‌استرپ) */
#id_marital_status:focus,
#id_education_level:focus,
#id_gender:focus,
#id_job_title:focus,
#id_service_mode:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* 5) پیام‌های خطا — سیاست پیش‌فرض: پنهان مگر اینکه صراحتاً نمایش داده شوند */
.invalid-feedback:not(.d-block) {
  display: none !important;
}

/* 6) نمایش خودکار پیام خطا وقتی خود فیلد نامعتبر است (بدون نیاز به d-block) */
.is-invalid + .invalid-feedback,
.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* 7) هم‌عرض‌بودن و جعبه‌بندی ایمن (در برخی تم‌ها لازم می‌شود) */
#id_service_mode,
#id_marital_status,
#id_education_level,
#id_gender {
  width: 100%;
  box-sizing: border-box;
}

/* 8) کمی تنفس عمودی برای گروه‌های فیلد (اگر قالب فاصله کافی نداشت) */
#id_marital_status,
#id_education_level,
#id_gender,
#id_job_title,
#id_service_mode {
  padding-top: .375rem;
  padding-bottom: .375rem;
}

/* 9) موبایل: اندکی کوچک‌تر تا شکست خطوط کمتر شود */
@media (max-width: 576px) {
  #id_marital_status,
  #id_education_level,
  #id_gender,
  #id_job_title,
  #id_service_mode {
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
  }
}

/* 10) بهبود جزئی پیام‌های خطا برای خوانایی بیشتر */
.invalid-feedback {
  font-size: .95em;        /* کمی کوچک‌تر از فیلد تا تمایز داشته باشد */
  line-height: 1.6;
  margin-top: .25rem;
}

/* 11) متن کمکی تاریخ (پیش‌نمایش شمسی) */
#prev_official {
  font-size: .95em;
  color: #6c757d;          /* هم‌خانواده متن ثانویه بوت‌استرپ */
  margin-top: .25rem;
}




/* Traffic Light — Spherical, flat-clean (no white spot, no ring) */
.light-dot{
  --base: #999;               /* per-variant */
  display: inline-block;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-inline: .46rem;

  /* fallback برای مرورگرهای قدیمی */
  background-color: var(--base);

  /* کرویِ یک‌دست: فقط تونالیته‌ی خود رنگ؛ نه سفید، نه هاله */
  background-image:
    radial-gradient(120% 120% at 50% 48%,
      color-mix(in oklab, var(--base), white 3%) 0 58%,
      color-mix(in oklab, var(--base), black 14%) 100%);
  border: none;
  box-shadow: none;           /* هیچ خط/هاله‌ای دورش نیست */
}

/* تعامل لطیف بدون تغییر تون رنگ */
@media (hover:hover){
  .light-dot:hover{ transform: translateY(-1px) scale(1.04); }
}
.light-dot{ transition: transform .12s ease; }
@media (prefers-reduced-motion: reduce){
  .light-dot{ transition: none; }
}

/* رنگ‌ها (طبق درخواست) */
.light-dot.green  { --base: #00FF00; } /* ← تغییر داده شد */
.light-dot.red    { --base: #FF204E; }
.light-dot.yellow { --base: #FFE100; }

/* حالت خاموش */
.light-dot.gray   { --base: #BDBDBD; }


/* =========================================================
   FACTOR GRID (12-col like Bootstrap) — always 2 per row on >=992px
   ========================================================= */

/* Container: 12-column grid */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem 1.25rem; /* row / column gap */
}

/* Default: one card per row (span 12) */
.factor-grid .factor-card {
  grid-column: span 12 !important; /* neutralize any old spans */
}

/* (optional) keep single column on small & md as well */
@media (min-width: 576px) {
  .factor-grid .factor-card {
    grid-column: span 12 !important;
  }
}
@media (min-width: 768px) {
  .factor-grid .factor-card {
    grid-column: span 12 !important;
  }
}

/* Desktop (lg and up): exactly two cards per row */
@media (min-width: 992px) {
  .factor-grid .factor-card {
    grid-column: span 6 !important; /* 12/6 = 2 columns */
  }
}

/* XL+ هم همچنان دو ستونه بماند */
@media (min-width: 1200px) {
  .factor-grid .factor-card {
    grid-column: span 6 !important;
  }
}


/* legend at the bottom of results */
.results-legend .legend{
  display: flex;
  flex-direction: column;   /* هر مورد در یک خط جدید */
  gap: .4rem;               /* فاصله عمودی بین خطوط */
}

.results-legend .legend-strong{ font-weight: 700; } /* بولد بودن متن */

.results-legend .legend-item{
  display: inline-flex;
  align-items: center;
  gap: .5rem;               /* فاصله چراغ و متن */
}

.results-legend .legend .light-dot{
  margin-inline: 0;         /* فاصله‌های قبلی را خنثی کن */
}


/* ===========================
   Doctor Results Hub (Azmoon)
   فقط مخصوص azmoon_results_doctor_hub.html
   =========================== */

.doctor-results-page {
  background: #f3f4f6;            /* پس‌زمینه خیلی ملایم */
}

/* فاصله و ظاهر breadcrumb */
.doctor-results-breadcrumb .breadcrumb {
  font-size: .9rem;
  margin-bottom: 1.75rem;
}
.doctor-results-breadcrumb .breadcrumb a {
  color: #6b7280;
}
.doctor-results-breadcrumb .breadcrumb-item.active {
  color: #111827;
}

/* کارت اصلی */
.doctor-results-card {
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

/* هدر کارت */
.doctor-results-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
}
.doctor-results-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
}
.doctor-results-title .bi {
  font-size: 1.1rem;
  color: #0ea5e9;
}
.doctor-results-subtitle {
  color: #6b7280;
  font-size: .95rem;
  line-height: 1.9;
}

/* سکشن‌ها */
.doctor-results-section {
  margin-bottom: 2.25rem;
}
.doctor-results-section-title {
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.doctor-results-section-title::before {
  content: "";
  width: .35rem;
  height: 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

/* پنل جستجوی کاربر */
.doctor-results-search-panel {
  background: #f9fafb;
  border-radius: .9rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.35rem 1.35rem;
}
.doctor-results-search-panel .form-label {
  font-weight: 600;
}
.doctor-results-search-panel .btn {
  border-radius: .75rem;
}

/* لیست کاربران */
.doctor-results-select-wrap {
  border-radius: .75rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: .4rem;
}
.doctor-results-select {
  border: none;
  box-shadow: none;
  height: auto;
  min-height: 12rem;
  font-size: .97rem;
}
.doctor-results-select:focus {
  outline: none;
  box-shadow: none;
}

/* دکمه اعمال کاربر */
.doctor-results-apply-btn {
  min-width: 210px;
}

/* کاربر انتخاب‌شده */
.doctor-results-selected-user {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: baseline;
}
.doctor-results-selected-user-label {
  color: #6b7280;
  font-size: .93rem;
}
.doctor-results-selected-user-name {
  color: #111827;
}

/* جدول آزمون‌ها – ظرف کلی */
.doctor-results-table-wrap {
  border-radius: .9rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow-x: auto;     /* اگر جدول عریض‌تر شد، اسکرول افقی بده، نه بریدن */
  overflow-y: visible;  /* از بالا/پایین چیزی قیچی نشود */
}

/* جدول آزمون‌ها */
.doctor-results-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}
.doctor-results-table thead {
  background: #f9fafb;
}

/* هدرها */
.doctor-results-table th {
  font-size: .9rem;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  padding: .85rem 1rem;
  white-space: nowrap;
}

/* ستون اول (عنوان آزمون) در هدر و بدنه راست‌چین باشد */
.doctor-results-table thead th:first-child {
  text-align: right;
}

/* سلول‌های بدنه */
.doctor-results-table td {
  font-size: .92rem;
  font-weight: 400;
  color: #4b5563;
  padding: .75rem 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

/* عنوان آزمون راست‌چین و کمی پررنگ‌تر */
.doctor-results-azmoon-title {
  font-weight: 600;
  color: #111827;
  text-align: right;
}

/* تاریخ در مرکز، اما بدون شکستن سطر */
.doctor-results-azmoon-date {
  white-space: nowrap;
  color: #4b5563;
  text-align: center;
}

/* وضعیت هم وسط‌چین */
.doctor-results-azmoon-status {
  text-align: center;
}
.doctor-results-azmoon-status .badge {
  font-weight: 500;
  border-radius: 999px;
  padding-inline: .6rem;
}

/* پیام خلوت بودن لیست */
.doctor-results-empty {
  background: #f9fafb;
  border-radius: .75rem;
  border: 1px dashed #e5e7eb;
  padding: .9rem 1rem;
  font-size: .93rem;
}

/* ===========================
   دکمه‌های ستون «عملیات» – دسکتاپ
   =========================== */

/* دکمه مشاهده نتیجه – همیشه متن کامل و قرص شکل */
.doctor-results-view-btn {
  border-radius: 999px;
  padding-inline: 1.1rem;
  white-space: nowrap;
}

/* گروهبندی دکمه‌ها در دسکتاپ: سه دکمه کنار هم و وسط ستون */
.doctor-results-table td.text-center .btn-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

/* استایل مشترک دکمه‌ها */
.doctor-results-table td.text-center .btn-group .btn {
  font-size: 0.9rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  padding-inline: .95rem;
  border-radius: 999px;   /* همه دکمه‌ها قرص‌شکل و یک‌دست شوند */
}

/* ریسپانسیو‌های ساده‌تر */
@media (max-width: 576px) {
  .doctor-results-card {
    border-radius: .75rem;
  }
  .doctor-results-search-panel {
    padding: 1rem;
  }
  .doctor-results-apply-btn {
    width: 100%;
  }
  .doctor-results-table-wrap {
    border-radius: .75rem;
  }
}


/* ===========================
   Doctor Results – Mobile layout
   برای صفحه azmoon_results_doctor_hub.html
   =========================== */
@media (max-width: 767.98px) {

  /* کارت اصلی کمی فشرده‌تر و مناسب موبایل */
  .doctor-results-page .doctor-results-card {
    border-radius: 0.75rem;
  }

  .doctor-results-page .doctor-results-card .card-body {
    padding: 1.25rem 1rem;
  }

  /* کمی فاصله و نظم برای بخش جستجوی کاربر */
  .doctor-results-page .doctor-results-section--search .row.g-2 > [class^="col-"] {
    margin-bottom: 0.5rem;
  }

  .doctor-results-page .doctor-results-section--sessions {
    margin-top: 2rem;
  }

  /* جدول را به حالت کارت‌های زیر هم تبدیل می‌کنیم */
  .doctor-results-page .doctor-results-table-wrap {
    overflow-x: visible;   /* روی موبایل نیازی به اسکرول افقی نیست */
  }

  .doctor-results-page .doctor-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem; /* فاصله بین ردیف‌ها مثل کارت‌ها */
  }

  /* هدر جدول را روی موبایل مخفی می‌کنیم */
  .doctor-results-page .doctor-results-table thead {
    display: none;
  }

  /* هر ردیف جدول تبدیل به یک کارت مستقل می‌شود */
  .doctor-results-page .doctor-results-table tbody tr {
    display: block;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 0.75rem 1rem;
  }

  .doctor-results-page .doctor-results-table tbody tr + tr {
    margin-top: 0.75rem;
  }

  /* هر خانه جدول تبدیل به یک خط زیر هم می‌شود */
  .doctor-results-page .doctor-results-table tbody td {
    display: block;
    padding: 0.2rem 0;
    border-top: 0;
    text-align: right;
    font-size: 0.9rem;
  }

  /* عنوان آزمون را پررنگ‌تر و کمی بزرگ‌تر می‌کنیم */
  .doctor-results-page .doctor-results-table tbody td.doctor-results-azmoon-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  /* برچسب قبل از تاریخ و وضعیت برای خوانایی بهتر روی موبایل */
  .doctor-results-page .doctor-results-azmoon-date::before {
    content: "تاریخ انجام: ";
    font-weight: 500;
    color: #111827;
    margin-left: 0.25rem;
  }

  .doctor-results-page .doctor-results-azmoon-status::before {
    content: "وضعیت: ";
    font-weight: 500;
    color: #111827;
    margin-left: 0.25rem;
  }

  .doctor-results-page .doctor-results-azmoon-date,
  .doctor-results-page .doctor-results-azmoon-status {
    color: #6b7280; /* خاکستری ملایم */
  }

  /* ستون عملیات (دکمه) در پایین کارت و تمام‌عرض */
  .doctor-results-page .doctor-results-table tbody td.text-center {
    margin-top: 0.7rem;
    text-align: center;
  }

  /* دکمه‌ها در موبایل: هر سه دکمه زیر هم و تمام‌عرض */
  .doctor-results-page .doctor-results-table tbody td.text-center .btn-group {
    display: flex;
    flex-direction: column;   /* زیر هم */
    align-items: stretch;
    gap: .4rem;
    width: 100%;
  }

  .doctor-results-page .doctor-results-table tbody td.text-center .btn-group .btn {
    flex: 1 0 auto;
    width: 100%;             /* هر دکمه 100٪ عرض کارت */
    font-size: 0.9rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
}

/* ======= برچسب متنی سطح نمره (به‌جای فلش بالا/پایین) ======= */
/* کنار نام هر عامل/زیرمقیاس: «بسیار بالا»، «بالا»، «متوسط»، «پایین»، «بسیار پایین» */
.band-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  padding: .28rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.band-badge.red    { color: #b02a37; background: #fdecea; border: 1px solid #f5c2c7; }
.band-badge.yellow { color: #99700a; background: #fff8e1; border: 1px solid #ffe7a1; }
.band-badge.green  { color: #17714a; background: #e9f7ec; border: 1px solid #b7e1c3; }
