/* File: assets/css/style.css
   سبک طوسی حرفه‌ای با هاور، هدر چسبان، و اسکرول شیک موبایل */

/* رپر برای اسکرول افقی روان روی موبایل */
.phsb-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

/* اسکرول‌بار شیک (وبکیت) */
.phsb-wrap::-webkit-scrollbar {
  height: 10px;
}
.phsb-wrap::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 8px;
}
.phsb-wrap::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 8px;
  border: 2px solid #f0f0f0;
}
.phsb-wrap::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}

/* جدول پایه */
.phsb-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px; /* تا موبایل به اسکرول افقی برود */
  background: #fff;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  direction: rtl;
}

/* هدر جدول */
.phsb-wrap thead th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  color: #333;
  text-align: center;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}

/* بدنه جدول */
.phsb-wrap tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
  color: #333;
}

/* ردیف‌های زیگزاگی ملایم */
.phsb-wrap tbody tr:nth-child(odd) {
  background: #fafafa;
}

/* هاور ردیف */
.phsb-wrap tbody tr:hover {
  background: #f0f3f7;
  transition: background 120ms ease-in;
}

/* مرزبندی چپ/راست در ستون‌ها برای خوانایی بهتر */
.phsb-wrap table td + td,
.phsb-wrap table th + th {
  border-left: 1px solid #f0f0f0;
}

/* گردی مینیمال گوشه‌های جدول */
.phsb-wrap table {
  border-radius: 10px;
  overflow: hidden;
}

/* لینک‌ها (اگر داخل خانه‌ها باشد) */
.phsb-wrap table a {
  color: #2f3b52;
  text-decoration: none;
  border-bottom: 1px dashed #9aa7bd;
}
.phsb-wrap table a:hover {
  border-bottom-style: solid;
}

/* ریزتنظیمات برای صفحه‌های خیلی باریک */
@media (max-width: 480px) {
  .phsb-wrap table {
    min-width: 640px; /* کمی کمتر تا اسکرول نرم‌تر شود */
  }
  .phsb-wrap thead th,
  .phsb-wrap tbody td {
    padding: 8px 10px;
    font-size: 13px;
  }
}