/* =================================================================
   جدول‌های وزن تیرآهن و حصاری مفتول - استایل حرفه‌ای
   نسخه: 1.0
   ================================================================= */

/* ===== تنظیمات پایه کانتینر ===== */
.table-container {
  max-width: 1100px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ===== تنظیمات Wrapper جدول ===== */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ===== استایل اصلی جدول ===== */
.weight_table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  direction: rtl;
  text-align: center;
}

/* ===== هدر جدول - ردیف اول ===== */
.weight_table thead tr:first-child th {
  background-color: #FF7A0F;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 15px;
  border: none;
  letter-spacing: 0.5px;
}

/* ===== هدر جدول - ردیف دوم ===== */
.weight_table thead tr:nth-child(2) th {
  background-color: #FF7A0F;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  padding: 15px 12px;
  border: none;
}

/* ===== سلول‌های داده جدول ===== */
.weight_table tbody td {
  color: #212529;
  font-size: 14px;
  padding: 14px 12px;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* ===== تراز راست‌چین برای ستون اول ===== */
.weight_table tbody td:first-child {
  text-align: right;
  padding-right: 20px;
}

/* ===== رنگ‌بندی ردیف‌های فرد ===== */
.weight_table tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

/* ===== رنگ‌بندی ردیف‌های زوج ===== */
.weight_table tbody tr:nth-child(even) {
  background-color: #efefef;
}

/* ===== افکت هاور روی ردیف‌ها ===== */
.weight_table tbody tr:hover {
  background-color: #dddddd;
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weight_table tbody tr:hover td {
  color: #000000;
}

/* ===== باکس جستجو ===== */
.search-box {
  margin-bottom: 20px;
  text-align: center;
}

.search-box input {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  direction: rtl;
}

.search-box input:focus {
  border-color: #FF7A0F;
  box-shadow: 0 0 10px rgba(255, 122, 15, 0.2);
}

.search-box input::placeholder {
  color: #999;
}

/* ===== پیام عدم وجود نتیجه ===== */
.no-results {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
  font-size: 16px;
  display: none;
}

/* ===== عنوان جدول ===== */
.table-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

/* ===== زیرعنوان جدول ===== */
.table-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 20px;
  font-size: 14px;
}

/* =================================================================
   تنظیمات ریسپانسیو - تبلت
   ================================================================= */
@media screen and (max-width: 768px) {
  .table-container {
    padding: 15px;
  }
  
  .weight_table {
    font-size: 14px;
  }
  
  .weight_table thead tr:first-child th {
    font-size: 14px;
    padding: 12px 8px;
  }
  
  .weight_table thead tr:nth-child(2) th {
    font-size: 14px;
    padding: 10px 6px;
  }
  
  .weight_table tbody td {
    font-size: 12px;
    padding: 10px 8px;
  }
  
  .weight_table tbody td:first-child {
    padding-right: 12px;
  }
  
  .table-title {
    font-size: 18px;
  }
}

/* =================================================================
   تنظیمات ریسپانسیو - موبایل
   ================================================================= */
@media screen and (max-width: 480px) {
  .table-container {
    padding: 10px;
  }
  
  .weight_table thead tr:first-child th {
    font-size: 12px;
    padding: 10px 5px;
  }
  
  .weight_table thead tr:nth-child(2) th {
    font-size: 11px;
    padding: 8px 4px;
  }
  
  .weight_table tbody td {
    font-size: 10px;
    padding: 8px 4px;
  }
  
  .weight_table tbody td:first-child {
    padding-right: 8px;
  }
  
  .table-title {
    font-size: 17px;
  }
  
  .search-box input {
    font-size: 14px;
    padding: 10px 15px;
  }
}

/* =================================================================
   تنظیمات چاپ
   ================================================================= */
@media print {
  .search-box {
    display: none;
  }
  
  .table-container {
    box-shadow: none;
  }
  
  .weight_table tbody tr:hover {
    transform: none;
    box-shadow: none;
  }
}