/* ============================================================
   P2P COMMON PAGE STYLES
   Shared across: Deposits, Payouts, Match History (and similar pages)
   ============================================================ */

/* ── Currency selector tabs ─────────────────────────────── */
.currency-tabs {
  display: flex;
  gap: 6px;
}

.cur-tab {
  padding: 7px 20px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cur-tab:hover {
  background: #F8FAFC;
  border-color: #BEA0E2;
}

.cur-tab.active {
  background: #BEA0E2;
  border-color: #BEA0E2;
  color: #FFFFFF;
}

/* ── Filter panel ────────────────────────────────────────── */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-input {
  border: 1.5px solid #E2E8F0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 13px;
  color: #0F172A;
  background: #FFFFFF;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.filter-input:focus {
  border-color: #BEA0E2;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

/* ── Currency badge ──────────────────────────────────────── */
.badge-currency {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #EDE9FE;
  color: #4C1D95;
  letter-spacing: 0.04em;
}

/* ── 3-dot action button ─────────────────────────────────── */
.btn-dots {
  width: 30px;
  height: 30px;
  border: 1.5px solid #E2E8F0;
  border-radius: 7px;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-dots:hover {
  background: #F8FAFC;
  border-color: #BEA0E2;
  color: #4C1D95;
}

/* ── Action dropdown menu ────────────────────────────────── */
.action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 140px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  z-index: 500;
  padding: 4px;
  animation: menuFadeIn 0.15s ease both;
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.action-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}

.action-menu-item:hover {
  background: #F8FAFC;
  color: #4C1D95;
}

/* ── Click-outside overlay ───────────────────────────────── */
.action-overlay {
  position: fixed;
  inset: 0;
  z-index: 499;
}
