/* تحويل بين الحسابات — متعدد العملات */
#m-bank-transfer .bt-mc-panel { display: none; }
#m-bank-transfer.bt-mode-transfer .bt-simple-panel { display: none; }
#m-bank-transfer.bt-mode-transfer .bt-mc-panel { display: block; }
#m-bank-transfer.bt-mode-transfer .bt-mode-tabs { display: none; }
#m-bank-transfer.bt-mode-transfer .bt-simple-only { display: none !important; }
#m-bank-transfer.bt-mode-simple .bt-mc-only { display: none !important; }
#m-bank-transfer:not(.bt-mode-transfer):not(.bt-mode-simple) .bt-mc-only { display: none !important; }

.bt-mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
@media (max-width: 720px) {
  .bt-mc-grid { grid-template-columns: 1fr; }
}
.bt-mc-readonly {
  background: #f8fafc !important;
  color: var(--text-m);
  font-weight: 600;
}
.bt-mc-summary {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.75;
  color: #1e3a5f;
  white-space: pre-line;
  margin-top: 10px;
}
.bt-mc-preview {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-m);
  margin-top: 10px;
}
/* تبديل عملات — بحث الحسابات */
#m-currency-exchange.open { z-index: 450; }
#m-currency-exchange .modal-body { overflow: visible; }
#m-currency-exchange .modal { overflow: visible; max-height: none; }
#m-currency-exchange .fx-acc-search-wrap { position: relative; z-index: 2; }
#m-currency-exchange .fx-acc-drop { z-index: 10050; }
.fx-acc-search-inp { width: 100%; }
.fx-acc-drop {
  display: none; position: absolute; top: calc(100% + 2px); right: 0; left: 0; z-index: 1200;
  background: #fff; border: 1.5px solid var(--odoo-purple, #714B67); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12); max-height: 220px; overflow-y: auto;
}
.fx-acc-drop.open { display: block; }
.fx-acc-drop-item {
  padding: 8px 10px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.fx-acc-drop-item:hover { background: var(--odoo-purple-l, #f3e8ff); }
.fx-acc-drop-code { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--odoo-blue, #017E84); min-width: 52px; }
.fx-acc-drop-name { flex: 1; font-size: 11.5px; }
.fx-acc-drop-empty { padding: 10px; font-size: 11px; color: var(--text-m); }

.bt-fx-row { display: none; }
.bt-fx-row.visible { display: block; }
.bt-fx-optional { display: none; margin-top: 8px; }
.bt-fx-optional.visible { display: block; }

#at-log-table { width: 100%; font-size: 12px; }
#at-log-table th, #at-log-table td { padding: 8px 10px; vertical-align: middle; }
#at-log-table .at-status-posted { color: var(--odoo-green); font-weight: 600; }
#at-log-table .at-status-cancelled { color: var(--odoo-red); font-weight: 600; }

.at-print-sheet {
  display: none;
  padding: 24px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
}
@media print {
  body * { visibility: hidden; }
  .at-print-sheet, .at-print-sheet * { visibility: visible; }
  .at-print-sheet {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
