.mlpp-wrap {
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
}

.mlpp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.mlpp-hero {
  border-radius: 16px;
  background: radial-gradient(1000px 400px at 90% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 380px at 0% 20%, rgba(34, 197, 94, 0.12), transparent 55%),
    #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  padding: 18px;
}

.mlpp-hero-grid {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.mlpp-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}
.mlpp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mlpp-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mlpp-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.mlpp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.mlpp-meta {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .mlpp-meta {
    grid-template-columns: 1fr;
  }
}
.mlpp-meta-item {
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}
.mlpp-meta-k {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}
.mlpp-meta-v {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mlpp-tabs {
  margin-top: 18px;
}
.mlpp-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 10px 0;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  box-shadow: none;
}
.mlpp-tab-btn {
  appearance: none;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #6b7280;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mlpp-tab-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}
.mlpp-tab-btn:active {
  transform: none;
}
.mlpp-tab-btn:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}
.mlpp-tab-btn.is-active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  font-weight: 800;
}
.mlpp-tab-btn.is-active:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

/* صفحهٔ پروفایل عمومی (همهٔ انواع حساب): تب غیرفعال = زمینه سفید، متن و بوردر خاکستری، گوشه‌های گردتر */
.mlpp-wrap--public .mlpp-tabbar {
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}
.mlpp-wrap--public .mlpp-tab-btn:not(.is-active) {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-weight: 600;
  padding: 11px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.mlpp-wrap--public .mlpp-tab-btn:not(.is-active):hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}
.mlpp-wrap--public .mlpp-tab-btn:not(.is-active):focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}
/* تب فعال (بدون هاور): زمینه سبز کم‌رنگ، متن و بوردر سبز پررنگ */
.mlpp-wrap--public .mlpp-tab-btn.is-active {
  border-radius: 999px;
  background: #d1fae5;
  border: 1px solid #15803d;
  color: #14532d;
  font-weight: 700;
  box-shadow: none;
}
.mlpp-wrap--public .mlpp-tab-btn.is-active:hover {
  background: #bbf7d0;
  border-color: #166534;
  color: #052e16;
}

/* پروفایل عمومی فرد: فاصلهٔ بیشتر (تب فعال همان سبز --public) */
.mlpp-wrap--individual.mlpp-wrap--public .mlpp-tabs {
  margin-top: 22px;
}
.mlpp-wrap--individual.mlpp-wrap--public .mlpp-tabbar {
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 20px;
}
.mlpp-wrap--individual.mlpp-wrap--public .mlpp-tab-btn:not(.is-active) {
  padding: 12px 20px;
}
.mlpp-wrap--individual.mlpp-wrap--public .mlpp-tab-btn.is-active {
  padding: 12px 20px;
}
.mlpp-wrap--individual.mlpp-wrap--public .mlpp-panels {
  margin-top: 16px;
}
.mlpp-wrap--individual.mlpp-wrap--public .mlpp-panel {
  padding: 18px 20px;
}

.mlpp-panels {
  margin-top: 12px;
}
.mlpp-panel {
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
  padding: 14px 16px;
}
.mlpp-panel.is-active {
  display: block;
}

.mlpp-panel-title {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

/* زیرتب‌های دامنهٔ شغلی (چند دامنه در تب «مهارت‌های حرفه‌ای») */
.mlpp-prof-subtabs {
  margin-top: 2px;
}
.mlpp-prof-subtabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mlpp-prof-subtab-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mlpp-prof-subtab-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.mlpp-prof-subtab-btn.is-active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}
.mlpp-prof-subtab-panel {
  display: none;
}
.mlpp-prof-subtab-panel.is-active {
  display: block;
}

/* مسئول فنی آزمایشگاه / شرکت: یک ستون؛ هر گزینه با چک‌باکس تیک‌خورده */
.mlpp-prof-subtab-panel--supervisor-checklists .mlpp-list {
  grid-template-columns: 1fr;
}
.mlpp-li--prof-checklist {
  grid-column: 1 / -1;
}
.mlpp-prof-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mlpp-prof-checklist-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.mlpp-prof-cb {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border: 2px solid #15803d;
  border-radius: 4px;
  background: #15803d;
  position: relative;
  box-sizing: border-box;
}
.mlpp-prof-cb::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mlpp-prof-checklist-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* حوزه کار در آزمایشگاه: کادر بیرونی (.mlpp-li) + عنوان + مقدار داخل کادر تودرتو */
.mlpp-li--lab-domain-field .mlpp-li-k {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 10px;
}
.mlpp-li--lab-domain-field .mlpp-li-v--inner-frame {
  margin: 0;
  padding: 0;
}
.mlpp-li--lab-domain-field .mlpp-prof-field-innerbox {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mlpp-li--lab-domain-field .mlpp-prof-field-innerbox a {
  color: #2563eb;
  text-decoration: none;
}
.mlpp-li--lab-domain-field .mlpp-prof-field-innerbox a:hover {
  text-decoration: underline;
}

/* مهارت در بخش‌های آزمایشگاه (تب مهارت‌ها): یک کارت مثل دوره‌های آموزشی؛ بدون کادر اضافهٔ li */
.mlpp-li--lab-domain-skills-like-training {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.mlpp-li--lab-domain-skills-like-training .mlpp-training-courses-row {
  width: 100%;
}
.mlpp-lab-domain-skill-grid {
  display: flex;
  flex-direction: column;
  gap: 22px; /* فاصله بین هر مهارت */
}
.mlpp-lab-domain-skill-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
  --mlpp-lab-domain-label-w: 86px;
}
.mlpp-lab-domain-skill-field {
  display: grid;
  grid-template-columns: var(--mlpp-lab-domain-label-w, 86px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mlpp-lab-domain-skill-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}
.mlpp-lab-domain-skill-cell {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.6;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .mlpp-lab-domain-skill-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mlpp-lab-domain-skill-grid {
    gap: 22px;
  }
}

/* سوابق کاری: کارت + فیلدهای منظم مثل مهارت‌ها */
.mlpp-workexp-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mlpp-workexp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
  --mlpp-lab-domain-label-w: 96px;
}
@media (max-width: 640px) {
  .mlpp-workexp-fields {
    grid-template-columns: 1fr;
  }
}

.mlpp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mlpp-list.mlpp-list--single {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .mlpp-list {
    grid-template-columns: 1fr;
  }
}
.mlpp-li {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
}
.mlpp-li-k {
  color: #475569;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 700;
}
.mlpp-li-v {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mlpp-li-v a {
  color: #2563eb;
  text-decoration: none;
}
.mlpp-li-v a:hover {
  text-decoration: underline;
}

/* تب اطلاعات تماس: یک ستون تمام‌عرض + موبایل/ایمیل/وب در یک ردیف */
.mlpp-list--contact {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ردیف اول: بدون کادر بیرونی؛ هر آیتم کادر جدا مثل سایر .mlpp-li */
.mlpp-li--contact-primary {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.mlpp-contact-triple {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

@media (min-width: 640px) {
  .mlpp-contact-triple {
    flex-wrap: nowrap;
  }
}

.mlpp-contact-triple__item {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.mlpp-li--city-address {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.mlpp-city-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  align-items: stretch;
}

.mlpp-city-address-grid__city,
.mlpp-city-address-grid__addr {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
  box-sizing: border-box;
  min-width: 0;
}

.mlpp-city-address-grid--address-only {
  grid-template-columns: 1fr;
}

.mlpp-city-address-grid--city-only {
  grid-template-columns: 1fr;
}

@media (max-width: 640px) {
  .mlpp-city-address-grid {
    grid-template-columns: 1fr;
  }
}

.mlpp-bullets {
  margin: 6px 0 0 0;
  padding: 0 18px 0 0;
  list-style: disc;
  display: grid;
  gap: 6px;
}
.mlpp-bullet {
  overflow-wrap: anywhere;
}
.mlpp-bullet--rtl {
  direction: rtl;
  text-align: right;
}
.mlpp-bullet--ltr {
  direction: ltr;
  text-align: left;
}

.mlpp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mlpp-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.mlpp-note {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.9;
}

.mlpp-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px) {
  .mlpp-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .mlpp-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mlpp-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.mlpp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mlpp-card {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.mlpp-card-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.mlpp-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  line-height: 1.9;
}

.mlpp-inline-item {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .mlpp-inline-item {
    white-space: normal;
  }
}

.mlpp-inline-k {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}

.mlpp-inline-v {
  font-size: 13px;
  color: #0f172a;
  font-weight: 800;
}

/* سوابق تحصیلی: هر فیلد داخل کادر جدا، همه در یک ردیف */
.mlpp-edu-fields-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mlpp-edu-field-cell {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.mlpp-edu-field-cell .mlpp-li-k {
  margin-bottom: 6px;
}

.mlpp-edu-field-cell .mlpp-li-v {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* تب مهارت‌های نرم: بخش‌بندی + عنوان فیلد + مقدار داخل کادر */
.mlpp-soft-skills-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mlpp-soft-section {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.mlpp-soft-section-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.mlpp-soft-section-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 700px) {
  .mlpp-soft-section-fields {
    grid-template-columns: 1fr;
  }
}

.mlpp-soft-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mlpp-soft-field-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  line-height: 1.5;
}

.mlpp-soft-field-box {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mlpp-soft-field-box a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 800;
}

.mlpp-soft-field-box a:hover {
  text-decoration: underline;
}

/* دوره‌های آموزشی: هر دوره یک ردیف جدا (زیر هم)؛ داخل هر دوره فیلدها با کادر جدا */
.mlpp-training-courses-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.mlpp-training-course-card {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
}

/* موبایل: تب دوره‌های آموزشی — هر فیلد یک خط تمام‌عرض */
@media (max-width: 640px) {
  .mlpp-training-course-card {
    padding: 10px;
  }

  .mlpp-training-course-card .mlpp-card-title {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .mlpp-training-course-card .mlpp-edu-fields-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .mlpp-training-course-card .mlpp-edu-field-cell {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .mlpp-training-course-card .mlpp-edu-field-cell .mlpp-li-k {
    font-size: 12px;
  }

  .mlpp-training-course-card .mlpp-edu-field-cell .mlpp-li-v {
    font-size: 13px;
  }
}

