/* ظرف متن CKEditor */
.article-content-prose{ line-height:1.8; color:#e5e7eb; overflow-wrap:anywhere; }

/* فقط خود جدول اسکرول بگیره */
.article-content-prose .table-scroll{
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  margin:1rem 0; border-radius:.5rem;
  border:1px solid rgba(148,163,184,.35); /* رنگ خط دور */
  background:transparent;
}

/* جدول کلاسیک با خط‌کشی کامل و ستون‌های مساوی */
.article-content-prose .table-scroll table,
.article-content-prose figure.table > table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;          /* ستون‌ها مساوی */
}

/* خطوط خانه‌ها + حداقل عرض هر ستون تا له نشه */
.article-content-prose table th,
.article-content-prose table td{
  border:1px solid rgba(148,163,184,.35);
  padding:.6rem .75rem;
  text-align:center;           /* اگر وسط‌چین نمی‌خواهی، این خط را حذف کن */
  vertical-align:middle;
  min-width:140px;             /* ← اندازهٔ هر ستون (دلخواه: 120/160) */
  color:#e5e7eb;
}
.article-content-prose table th{ font-weight:700; color:#fff; }

/* حالت CKEditor 5: figure.table هم اسکرول داشته باشد */
.article-content-prose figure.table{
  margin:1rem 0; overflow-x:auto; -webkit-overflow-scrolling:touch;
  border-radius:.5rem; border:1px solid rgba(148,163,184,.35);
}

/* اگر CKEditor عرض ثابت داده، خراب نکند */
.article-content-prose table[style*="width"]{ width:100% !important; }
.article-content-prose table th[style*="width"],
.article-content-prose table td[style*="width"]{ width:auto !important; }
