/* استایل‌های جدول */
table.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.wp-list-table th, .wp-list-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    box-sizing: border-box; /* جلوگیری از تداخل مرزها */
}

.wp-list-table th {
    background-color: #e9ecef;
}

.wp-list-table td {
    background-color: #fff;
}

/* استایل دکمه‌ها */
button.print-invoice {
    background-color: #0073aa;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button.print-invoice:hover {
    background-color: #005a8c;
}

/* استایل جزئیات سفارش */
.order-details {
    margin-top: 10px;
    display: none;
    background-color: #000;  /* پس‌زمینه سیاه */
    color: #fff;  /* رنگ متن سفید */
    padding: 20px;
    border-radius: 8px;  /* گوشه‌های گرد */
}

.order-details table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background-color: #000;  /* پس‌زمینه سیاه برای جدول */
    color: #fff;  /* رنگ متن سفید */
}

.order-details th, .order-details td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.order-details th {
   background-color: #333;  /* پس‌زمینه تیره برای هدر جدول */
    color: #fff;  /* رنگ متن سفید برای هدر */
}
/* استایل مودال */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* مودال به طور پیش‌فرض مخفی است */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: all 0.3s ease;
}

/* استایل محتویات مودال */
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 80%;
  overflow: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: scale(0.9);
}

.modal.show .modal-content {
  transform: scale(1);
}

/* استایل دکمه بستن */
/* مخفی کردن کل مودال پیش‌فرض */
#order-details-modal {
    display: none; /* مخفی بودن مودال در ابتدا */
}

.close-btn {
  background-color: #ff5c5c;
  color: white;
  font-size: 18px;
  border: none;
  padding: 15px 25px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: #e04e4e;
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
button.show-details {
    background-color: #000; /* پس‌زمینه مشکی */
    color: white; /* رنگ متن سفید */
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button.show-details:hover {
    background-color: #333; /* پس‌زمینه خاکستری تیره هنگام هاور */
}
/* استایل جدول */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
}

table th,
table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #ddd;
}

table th {
  background-color: #4CAF50;
  color: white;
  font-size: 1.1em;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

table tr:hover {
  background-color: #ddd;
}
/* استایل کلی برای صفحه */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 15px;
}

/* استایل صفحه نمایش عادی برای جدول */
table.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wp-list-table th, .wp-list-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    box-sizing: border-box;
}

.wp-list-table th {
    background-color: #f1f1f1;
}

.wp-list-table td {
    background-color: #fff;
}

/* استایل دکمه‌ها */
button.print-invoice {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button.print-invoice:hover {
    background-color: #218838;
}
