/* RaPay currency cards: shared by the legacy admin and CRM themes. */
body .ramarket-summary .ramarket-metrics.currency-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
body .ramarket-summary .currency-sales-total {
  margin: 22px 0 6px; color: #142c4e; font-size: 20px; font-weight: 600 !important;
  letter-spacing: -.3px; font-variant-numeric: tabular-nums;
}
body .ramarket-summary .currency-sales-caption { margin: 0 0 20px; color: #64748b; font-size: 12px; line-height: 1.6; }
body .ramarket-summary .currency-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 22px; border: 1px solid #dfe7f3; border-top: 3px solid #1461ed;
  border-radius: 16px; background: #fff; box-shadow: 0 4px 16px #16335b06; text-align: left;
}
body .ramarket-summary .currency-card::before {
  content: ''; position: absolute; top: -3px; right: 22px; width: 28px; height: 3px; background: #ed3155;
}
body .ramarket-summary .currency-card h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 20px; color: #142c4e; font-size: 17px; line-height: 1.4;
}
body .ramarket-summary .currency-card h3 span {
  flex: none; padding: 5px 9px; border: 1px solid #e1eaff; border-radius: 8px;
  color: #145bea; background: #f1f6ff; font-size: 11px; font-weight: 600 !important; letter-spacing: .06em;
}
body .ramarket-summary .currency-card dl { display: grid; gap: 0; margin: 0; }
body .ramarket-summary .currency-card dl > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0;
}
body .ramarket-summary .currency-card dt { color: #66758d; font-size: 12px; line-height: 1.5; }
body .ramarket-summary .currency-card dd {
  margin: 0; color: #172e50; font-size: 16px; line-height: 1.4; text-align: right;
  font-weight: 600 !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
body .ramarket-summary .currency-card .currency-card-amount {
  align-items: center; margin: 0 0 5px; padding: 13px 0 18px; border-bottom: 1px solid #eaf0f7;
}
body .ramarket-summary .currency-card .currency-card-amount dd { color: #0d5de5; font-size: 28px; letter-spacing: -.7px; }
body .ramarket-summary .currency-card dl > div:last-child { border-top: 1px solid #eaf0f7; margin-top: 5px; padding-top: 16px; }
body .ramarket-summary .currency-card-note {
  margin: 14px 0 0; padding: 10px 12px; border: 1px solid #f1dfb9; border-radius: 9px;
  color: #80601e; background: #fffaf0; font-size: 11px; line-height: 1.6;
}
body .ramarket-summary .currency-card-note[hidden] { display: none; }
@media (max-width: 1050px) {
  body .ramarket-summary .ramarket-metrics.currency-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body .ramarket-summary .ramarket-metrics.currency-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body .ramarket-summary .currency-card { padding: 18px; }
  body .ramarket-summary .currency-sales-total { font-size: 17px; }
}
body .ramarket-summary .sales-total-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 22px}
body .ramarket-summary .sales-total-cards article {padding:20px;border:1px solid #dfe7f3;border-top:3px solid #1461ed;border-radius:14px;background:#f5f9ff;display:flex;flex-direction:column;gap:8px;min-width:0}
body .ramarket-summary .sales-total-cards h3 {margin:0 0 5px;font-size:14px;color:#142c4e}
body .ramarket-summary .sales-total-cards strong {font-size:25px;color:#145bea;overflow-wrap:anywhere}
body .ramarket-summary .sales-total-cards small {font-size:11px;color:#66758d;line-height:1.6}
@media(max-width:620px){body .ramarket-summary .sales-total-cards{grid-template-columns:1fr}}
