/* ساختار کلی صفحه مدیریت */
body {
  background-color: #f5f7fa;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
}

/* جدول */
.table th,
.table td {
  vertical-align: middle;
  font-size: 14px;
  text-align: center;
}

.table thead {
  background-color: #003366;
  color: #fff;
}

.table tbody tr:hover {
  background-color: #e6f0ff;
  transition: background-color 0.3s ease;
}

/* نشان‌ها */
.badge {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
}

/* دکمه‌های عمومی */
.btn-sm {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}

/* دکمه‌های عملیات */
.action-buttons {
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-buttons .btn {
  width: auto;
  min-width: 32px;
  height: 32px;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* رنگ‌های دکمه‌ها */
.btn-info {
  background-color: #17a2b8;
  color: #fff;
  border: none;
}

.btn-primary {
  background-color: #003366;
  color: #fff;
  border: none;
}

.btn-danger {
  background-color: #cc0000;
  color: #fff;
  border: none;
}
@media (max-width: 768px) {
      .container {
    padding-left: 0.2 !important;
    padding-right: 0.2 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  .table th, .table td {
    font-size: 12px;
    padding: 4px;
  }

  /* شناسه */
  .table th:nth-child(1), .table td:nth-child(1) {
    width: 15%;
  }

  /* عنوان */
  .table th:nth-child(2), .table td:nth-child(2) {
    width: 40%;
    max-width: 40%;          /* محدودیت عرض */
    white-space: normal;     /* اجازه چند خطی */
    word-wrap: break-word;   /* شکستن متن طولانی */
  }

  /* وضعیت */
  .table th:nth-child(3), .table td:nth-child(3) {
    font-size: 12px;
    width: 30%;
  }

  /* عملیات */
  .table th:nth-child(6), .table td:nth-child(6) {
    width: 15%;
  }

  /* ستون‌های غیرضروری مخفی */
  .hide-mobile {
    display: none !important;
  }
}
