/* ============================================================
   ACBP 2.6.98 — unified columns system
   نفس نظام أعمدة صفحة البنك في جميع جداول الأسعار والدلائل.
============================================================ */

body .acbp-unified-columns-table{
  width:100%!important;
  min-width:960px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  direction:rtl!important;
  background:#fff!important;
  color:#142945!important;
  font-family:"Cairo",Arial,Tahoma,sans-serif!important;
  font-size:14px!important;
  font-weight:900!important;
}

body .acbp-unified-columns-table thead th{
  padding:13px 10px!important;
  border:0!important;
  border-bottom:1px solid #003d95!important;
  background:#0046AA!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.45!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
body .acbp-unified-columns-table thead th:first-child{
  text-align:right!important;
  border-start-start-radius:9px!important;
}
body .acbp-unified-columns-table thead th:last-child{
  border-start-end-radius:9px!important;
}

body .acbp-unified-columns-table tbody td{
  height:66px!important;
  padding:9px 10px!important;
  border:0!important;
  border-bottom:1px solid #e7edf4!important;
  background:#fff!important;
  color:#243a58!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.45!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
body .acbp-unified-columns-table tbody tr:nth-child(even) td{
  background:#fbfdff!important;
}
body .acbp-unified-columns-table tbody tr:hover td{
  background:#f4f8fd!important;
}
body .acbp-unified-columns-table tbody tr:last-child td{
  border-bottom:0!important;
}

/* توزيع الأعمدة: الهوية | الرمز/النوع | شراء | بيع | التغيير | التحديث | التفاصيل */
body .acbp-unified-columns-table th:nth-child(1),
body .acbp-unified-columns-table td:nth-child(1){width:30%!important;text-align:right!important}
body .acbp-unified-columns-table th:nth-child(2),
body .acbp-unified-columns-table td:nth-child(2){width:10%!important}
body .acbp-unified-columns-table th:nth-child(3),
body .acbp-unified-columns-table td:nth-child(3){width:10%!important}
body .acbp-unified-columns-table th:nth-child(4),
body .acbp-unified-columns-table td:nth-child(4){width:10%!important}
body .acbp-unified-columns-table th:nth-child(5),
body .acbp-unified-columns-table td:nth-child(5){width:12%!important}
body .acbp-unified-columns-table th:nth-child(6),
body .acbp-unified-columns-table td:nth-child(6){width:16%!important}
body .acbp-unified-columns-table th:nth-child(7),
body .acbp-unified-columns-table td:nth-child(7){width:12%!important}

body .acbp-unified-columns-table .acbp-entity-cell{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:0!important;
  margin:0!important;
  color:#142945!important;
  text-align:right!important;
  text-decoration:none!important;
}
body .acbp-unified-columns-table .acbp-entity-cell img,
body .acbp-unified-columns-table .acbp-entity-cell .acbp-table-flag,
body .acbp-unified-columns-table .acbp-bank-rate-flag-box{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  flex:0 0 48px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #dce6f1!important;
  border-radius:9px!important;
  background:#fff!important;
  object-fit:contain!important;
  overflow:hidden!important;
}
body .acbp-unified-columns-table .acbp-bank-rate-flag-box img,
body .acbp-unified-columns-table .acbp-bank-rate-flag-box .acbp-table-flag{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  border:0!important;
  border-radius:8px!important;
  object-fit:contain!important;
}
body .acbp-unified-columns-table .acbp-entity-cell > span:last-child,
body .acbp-unified-columns-table .acbp-bank-rate-name{
  display:block!important;
  min-width:0!important;
  text-align:right!important;
}
body .acbp-unified-columns-table .acbp-entity-cell strong,
body .acbp-unified-columns-table .acbp-bank-rate-name strong{
  display:block!important;
  overflow:hidden!important;
  color:#142945!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.5!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
body .acbp-unified-columns-table .acbp-entity-cell small,
body .acbp-unified-columns-table .acbp-bank-rate-name small{
  display:block!important;
  margin-top:1px!important;
  overflow:hidden!important;
  color:#677a91!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.4!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

body .acbp-unified-columns-table .acbp-unified-code{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:48px!important;
  min-height:30px!important;
  margin-inline:auto!important;
  padding:4px 9px!important;
  border:1px solid #dce6f1!important;
  border-radius:8px!important;
  background:#f6f9fc!important;
  color:#1b4c8f!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.3!important;
  white-space:nowrap!important;
}

body .acbp-unified-columns-table .acbp-table-buy,
body .acbp-unified-columns-table .acbp-table-sell{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:74px!important;
  min-height:34px!important;
  margin-inline:auto!important;
  padding:5px 9px!important;
  border-radius:8px!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.3!important;
  text-align:center!important;
  white-space:nowrap!important;
}
body .acbp-unified-columns-table .acbp-table-buy{
  border:1px solid #bfe4ca!important;
  background:#edf8f0!important;
  color:#14823d!important;
}
body .acbp-unified-columns-table .acbp-table-sell{
  border:1px solid #f0c7c7!important;
  background:#fff0f0!important;
  color:#d82626!important;
}

body .acbp-unified-columns-table .acbp-table-change-value,
body .acbp-unified-columns-table .acbp-compact-change{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:74px!important;
  margin-inline:auto!important;
  color:#52667f!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:nowrap!important;
}
body .acbp-unified-columns-table .acbp-compact-change.is-up{color:#14823d!important}
body .acbp-unified-columns-table .acbp-compact-change.is-down{color:#d82626!important}
body .acbp-unified-columns-table .acbp-compact-change.is-flat,
body .acbp-unified-columns-table .acbp-compact-change.is-pending{color:#52667f!important}

body .acbp-unified-columns-table .acbp-relative-time{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-inline:auto!important;
  color:#52667f!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.4!important;
  text-align:center!important;
  white-space:nowrap!important;
}

body .acbp-unified-columns-table .acbp-row-link,
body .acbp-unified-columns-table .acbp-bank-compare-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-width:92px!important;
  min-height:34px!important;
  margin-inline:auto!important;
  padding:5px 11px!important;
  border:0!important;
  border-radius:8px!important;
  background:#0046AA!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.35!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
body .acbp-unified-columns-table .acbp-row-link:hover,
body .acbp-unified-columns-table .acbp-bank-compare-button:hover{
  background:#003b91!important;
  color:#fff!important;
}

/* عناصر خاصة بالشبكة لا تظهر داخل الأعمدة. */
body .acbp-unified-columns-table .acbp-bank-price-label-grid,
body .acbp-unified-columns-table .acbp-bank-grid-metrics,
body .acbp-unified-columns-table .acbp-grid-update-label,
body .acbp-unified-columns-table .acbp-bank-rate-code-grid{
  display:none!important;
}

@media(max-width:680px){
  body .acbp-unified-columns-table{min-width:900px!important}
  body .acbp-unified-columns-table tbody td{height:62px!important;padding:8px!important}
  body .acbp-unified-columns-table .acbp-entity-cell img,
  body .acbp-unified-columns-table .acbp-entity-cell .acbp-table-flag,
  body .acbp-unified-columns-table .acbp-bank-rate-flag-box{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;flex-basis:44px!important
  }
}

/* الرمز/النوع له عمود مستقل؛ لا يُكرر أسفل الاسم داخل العمود الأول. */
body .acbp-unified-columns-table td:first-child .acbp-entity-cell small:not(.acbp-current-bank-label):not(.acbp-source-badge){
  display:none!important;
}
