/* رپر کلی جدول کالری */
.ostad-food-wrapper {
  direction: rtl;
  max-width: 100%;
  font-size: 14px;
}

/* جستجو کنار جدول */
.ostad-food-header {
  max-width: 900px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: flex-start;
}

/* این استایل جایگزین قبلی شود */
#ostad-front-search {
  width: 34%;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

/* --- جدول --- */
.ostad-food-table-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.ostad-food-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.ostad-food-table th,
.ostad-food-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: right;
  white-space: nowrap;
}

.ostad-food-table th {
  background: #eaeffa;
  font-weight: 600;
}

.no-result {
  text-align: center;
  white-space: normal;
}

/* صفحه‌بندی */
.ostad-front-pagination {
  margin-top: 12px;
  text-align: center;
}

.ostad-front-pagination a {
  display: inline-block;
  padding: 4px 9px;
  margin: 0 2px;
  border-radius: 4px;
  border: 1px solid #007cba;
  color: #007cba;
  text-decoration: none;
  font-size: 13px;
}

.ostad-front-pagination a.active,
.ostad-front-pagination a:hover {
  background: #007cba;
  color: #fff;
}

.ostad-front-pagination .dots {
  padding: 4px 6px;
  color: #777;
  display: inline-block;
}

/* موبایل */
@media (max-width: 600px) {
  .ostad-food-table {
    min-width: 360px;
  }

  #ostad-front-search {
    width: 100%;
    max-width: 100%;
  }

  .ostad-food-header {
    padding: 0 10px; /* کمی فاصله از لبه موبایل */
  }
}
