/* Styles for the requests pages: applications, invitations, refund and withdrawal requests.
   Prefix: rq-. Colours only from tokens.css. */

/* ---------- page ---------- */
.rq-banner { margin-bottom: 20px; }
.rq-banner:empty { display: none; }
.rq-banner-link { margin-top: 6px; font-weight: 500; }

/* two queue tiles: keep them tile-sized instead of stretching across a wide screen */
.rq-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rq-tiles:empty { display: none; }

/* ---------- tables ---------- */
.rq-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.table .rq-tags { flex-wrap: nowrap; }
.rq-trunc {
  display: block; max-width: 112px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rq-trunc.wide { max-width: 280px; }
.rq-sub-link { font-size: 12px; }
/* invitation note: one line under the email, full text in the tooltip */
.rq-inv-note {
  max-width: 280px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rq-inv-note b { font-weight: 500; color: var(--text-2); }

/* ---------- drawer ---------- */
.rq-summary { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.rq-amount { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.rq-status-note { color: var(--text-2); font-size: 13.5px; margin-top: -12px; }
.rq-summary .rq-status-note { margin-top: 0; }

.rq-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-message {
  margin: 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55;
}

.rq-steps { margin: 4px 0 0; padding-left: 18px; }
.rq-steps li + li { margin-top: 4px; }
.rq-steps li::marker { color: var(--text-3); font-weight: 600; }

.rq-ext { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.rq-ext svg { flex: none; }

.rq-pair { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.rq-debit { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* the refund's debit under its amount in the table: "from balance" may wrap so the column stays narrow */
.rq-debit-sub { display: inline-block; white-space: normal; }
.rq-pair .copyable { min-width: 0; }

@media (max-width: 560px) {
  .rq-amount { font-size: 22px; }
}

/* one label column for every section of a drawer, so values line up (phones keep the stacked layout) */
@media (min-width: 561px) {
  .rq-kv { grid-template-columns: 168px minmax(0, 1fr); }
}

/* ---------- Transfers to YourCryptoPal (withdrawals.js) ---------- */
.trf-how { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.trf-how svg { width: 14px; height: 14px; }
.trf-how.ok { color: var(--success); }
.trf-how.info { color: var(--brand); }
.trf-check { flex: none; margin: 4px 0 18px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trf-check-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr) 104px; gap: 10px; align-items: start; padding: 10px 14px; font-size: 13px; color: var(--text-2); }
.trf-check-row + .trf-check-row { border-top: 1px solid var(--border); }
.trf-check-row.head { padding-block: 7px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.trf-check-row strong { color: var(--text); display: block; }
.trf-check-row small { display: block; font-size: 11.5px; margin-top: 2px; }
.trf-check-row .num { color: var(--text); }
.trf-check-row.over { background: var(--warning-soft); }
.trf-res { display: inline-flex; align-items: center; gap: 4px; justify-self: end; font-weight: 600; white-space: nowrap; }
.trf-res svg { width: 13px; height: 13px; }
.trf-res.ok { color: var(--text-3); font-weight: 500; }
.trf-res.over { color: var(--warning); }
@media (max-width: 560px) {
  .trf-check-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trf-check-row.head > :nth-child(n+3) { display: none; }
  .trf-res { justify-self: start; }
}
