/* ==== استایل مدرن جدول نرخ‌ها ==== */

/* Wrapper */
.mysaraf-table-wrapper {
  width: 100%;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Table */
.mysaraf-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}

/* Header */
.mysaraf-rates-table thead th {
  background-color: #EFF3F6;
  font-weight: 600;
  text-align: center;
  padding: 14px 16px;
  border-bottom: 1px solid #C0C0C0;
  color: #333;
}

/* Cells */
.mysaraf-rates-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #C0C0C0;
  vertical-align: middle;
}

/* Remove vertical borders */
.mysaraf-rates-table th,
.mysaraf-rates-table td {
  border-left: none;
  border-right: none;
}

/* Hover effect on rows */
.mysaraf-rates-table tbody tr:hover {
  background-color: #F4F8FC; /* رنگ خیلی ملایم */
  transition: background-color 0.2s ease-in-out;
}

/* Currency cell */
.mysaraf-rates-table td.currency-cell {
  position: relative;
  padding-right: 48px;
  text-align: center;
  white-space: nowrap;
}

/* Currency text */
.mysaraf-rates-table td.currency-cell .currency-text {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

/* Currency icon */
.mysaraf-rates-table td.currency-cell img.currency-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px !important;
  height: 24px !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Change box */
.change-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  gap: 4px;
}

/* Positive change */
.change-box.positive {
  background-color: #CDFAE0;
  color: #27AE60;
}

/* Negative change */
.change-box.negative {
  background-color: #FDE2E2;
  color: #EB5757;
}

/* Order button */
.order-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 28px;
  border: 1px solid #00397C;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #00397C;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-btn:hover {
  background: #00397C;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .col-change, .col-chart {
    display: none; /* تغییرات و نمودار مخفی در موبایل */
  }
  .order-btn {
    padding: 6px 16px;
    font-size: 14px;
  }
  .mysaraf-rates-table td.currency-cell {
    padding-right: 40px;
  }
  .mysaraf-rates-table td.currency-cell img.currency-icon {
    width: 20px !important;
    height: 20px !important;
    right: 8px;
  }
}

/* جدول — هدر بالای جدول نرخ حواله‌جات */
.mysaraf-table-header {
    text-align: center;
    font-size: 20px;           /* اندازه فونت درشت و خوانا */
    font-weight: 700;          /* ضخیم و برجسته */
    color: #000000;            /* رنگ برند اصلی */
    background: #C6C6C6;
    padding: 16px 12px;        /* فاصله مناسب بالا و پایین */
    border-bottom: 1px solid #C0C0C0; /* جداکننده نرم از جدول */
    border-top-left-radius: 24px;     /* گردی گوشه‌ها مطابق با باکس اصلی */
    border-top-right-radius: 24px;
    font-family: "Vazirmatn", "Dana", sans-serif; /* فونت خوانا فارسی */
    letter-spacing: 0.2px;     /* اندکی فاصله بین حروف برای خوانایی بهتر */
    line-height: 1.6;          /* فاصله خطی مناسب */
}
