/* Demand Panel — estilos de la pestaña "wallet". Sólo variables de app.css (claro y oscuro salen solos). */

/* Insignia de red: el LOGO de lo que se manda (cryptocurrency-icons, una tinta, servido en /vendor/cripto) teñido con la
   tinta de la marca + el nombre de la red. En las redes de USDT el logo es el de USDT, nunca el de SOL / POL: se paga en
   USDT (pedido del dueño, 2026-10-15). Una sola familia de color para las tres redes. */
.wnet { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 5px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; flex-shrink: 0; }
.wnet b { font-weight: 700; white-space: nowrap; }
.wnet-ic { width: 15px; height: 15px; flex-shrink: 0; background: var(--accent-ink); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wnet-usdt { --ico: url(/vendor/cripto/usdt.svg); } .wnet-ltc { --ico: url(/vendor/cripto/ltc.svg); }
/* El aviso "se paga en USDT, no en SOL / POL" */
.wnote-usdt { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.wnote-usdt .wnet-ic { margin-top: calc((1.45em - 15px) / 2); }
.wnote-usdt.sm { margin-top: 8px; padding: 8px 10px; font-size: 12px; }
.wnet.lg { height: 40px; padding: 0 12px 0 10px; border-radius: 12px; font-size: 12px; gap: 7px; }
.wnet.lg .wnet-ic { width: 22px; height: 22px; }
.mono.wbreak, .wbreak { word-break: break-all; text-align: end; }

/* ── Métodos de cobro (2026-10-19): un método local (banco / billetera del teléfono / alias) lleva su ícono Lucide en la
   misma tinta de la marca que los logos cripto: una sola familia de color. ── */
.wnet-lic { display: inline-grid; place-items: center; width: 15px; height: 15px; flex-shrink: 0; color: var(--accent-ink); }
.wnet-lic svg { width: 14px; height: 14px; }
.wnet-opt .wnet-lic { width: 20px; height: 20px; } .wnet-opt .wnet-lic svg { width: 18px; height: 18px; }
.wmet { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wmet .wnote-usdt.sm { margin-top: 0; }
.wmet-nota { display: flex; align-items: flex-start; gap: 6px; margin: 0; line-height: 1.45; }
.wmet-nota > svg { flex-shrink: 0; margin-top: calc((1.45em - 14px) / 2); }
.wmet textarea { font-family: var(--mono); font-size: 13px; resize: vertical; min-height: 76px; }
.wmet .note { margin: 0; }
/* Retirar › guardados: cada método es la fila para elegirlo y, al lado, borrarlo (lugar fijo). */
.wd-ms { gap: 6px; }
.wd-m { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wd-m > .radio { flex: 1; min-width: 0; }
.wd-m > .radio > div b, .wd-m > .radio > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-otro { margin-top: 10px; align-self: flex-start; }

/* ── Resumen: el disponible grande con "Retirar" a la derecha (pedido del dueño, 2026-10-14) ── */
.wa-top { align-items: start; }
.wa-hero { justify-content: flex-start; gap: 12px; }
.wa-bal { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wa-bal-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-bal-l small { font-size: 12.5px; }
.wa-bal-r { flex-shrink: 0; }
.wa-bal-r .btn { min-width: 150px; }
.wa-why, .wa-min { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.45; margin: 0; }
.wa-why { color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.wa-why .ic, .wa-min .ic { margin-top: calc((1.45em - 14px) / 2); flex-shrink: 0; }
/* Sin método de cobro: el aviso con "Agregar método" en la misma fila (en el teléfono, abajo a todo el ancho). */
.wa-why-m { align-items: center; flex-wrap: wrap; }
.wa-why-m > span { flex: 1; min-width: 180px; }
.wa-why-m > .ic { margin-top: 0; }
.wa-why-m > .btn { flex-shrink: 0; }
.wa-frozen { align-items: center; }
.wa-frozen > .ic { align-self: flex-start; margin-top: 2px; }

/* Dónde está la plata: al lado del disponible en la compu, plegado en el teléfono */
.wa-where { padding: 16px 20px; }
.wa-where > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.wa-where > summary::-webkit-details-marker { display: none; }
.wa-where-t { font-size: 15px; font-weight: 650; flex: 1; min-width: 0; }
.wa-where-n { display: flex; align-items: baseline; gap: 8px; }
.wa-where-n small { font-size: 12px; }
.wa-where-n b { font-size: 17px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wa-chev { color: var(--muted); transition: transform .15s; flex-shrink: 0; }
.wa-where[open] .wa-chev { transform: rotate(180deg); }
.wa-where[open] > summary { margin-bottom: 12px; }
.wa-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.wa-bar i { display: block; height: 100%; min-width: 4px; }
/* "Dónde está tu plata": un solo color (la marca) en intensidades, y el amarillo sólo para lo retenido por una disputa. */
.wa-bar i.wa-s-disponible { background: var(--accent); }
.wa-bar i.wa-s-en_revision { background: color-mix(in srgb, var(--accent) 62%, var(--surface-2)); }
.wa-bar i.wa-s-pendiente { background: color-mix(in srgb, var(--accent) 34%, var(--surface-2)); }
.wa-bar i.wa-s-en_retiro { background: var(--ag-blue); }
.wa-bar i.wa-s-disputa { background: var(--amber); }
.wa-bar i.wa-bar-empty { flex: 1; background: transparent; }
.wa-list { margin-top: 8px; }
.wa-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.wa-list li:first-child { border-top: 0; }
.wa-list li > b:first-of-type { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-dot { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.wa-dot.wa-disputa { background: var(--amber-soft); color: var(--amber); }
.wa-dot.wa-pagado { background: var(--surface-2); color: var(--muted); }
.wa-n { white-space: nowrap; font-size: 12px; }
.wa-amt { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: end; min-width: 76px; font-size: 13.5px; }
.wa-paid { margin-top: 2px; padding-top: 2px; border-top: 1px dashed var(--border-2); }

/* ── Historial ── */
.wa-pad { padding: 20px 20px 0; }
.wa-hist.card.flush { overflow: visible; }
.wa-hh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wa-hh .card-h { margin-bottom: 0; flex: 1 1 260px; min-width: 0; }
.wa-filt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wa-filt .cb-b { min-width: 170px; height: 36px; }
.wr-head, .wr-row { display: grid; grid-template-columns: minmax(110px, 1fr) 80px minmax(104px, .9fr) minmax(130px, 1.1fr) 118px minmax(100px, 1fr) 100px; align-items: center; gap: 12px; padding: 0 20px; }
.wr-head { height: 38px; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.wr-head .r { text-align: end; }
.wr-row { min-height: 58px; border-bottom: 1px solid var(--border); cursor: pointer; }
/* Filas fantasma de la última página: ocupan el lugar de una fila real, sin verse ni tocarse (el paginado no se achica). */
.wr-row.wr-ghost { visibility: hidden; pointer-events: none; cursor: default; }
.wr-list .wr-row:last-child { border-bottom: 0; }
.wr-row:hover { background: var(--surface-2); }
.wr-id { display: flex; flex-direction: column; min-width: 0; } .wr-id b { font-size: 13.5px; } .wr-id small { font-size: 12px; }
/* En árabe el ID (.mono va en ltr) quedaba suelto en el medio de la fila: pegado al borde de inicio, como la fecha. */
[dir=rtl] .wr-id b.mono { text-align: right; }
.wr-net { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.wr-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Dirección: se ve corta, el tooltip y "copiar" dan la completa (pedido del dueño, 2026-10-15). */
.wr-addr { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.wr-addr .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wr-addr .icon-btn { width: 28px; height: 28px; }
.wr-amt { text-align: end; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wr-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); }

/* ── Billeteras de cobro (su propia tarjeta) ── */
.wa-ro { display: flex; align-items: center; gap: 6px; margin-top: 12px; }

/* ── Agregar billetera / red ── */
.wadd { display: flex; flex-direction: column; gap: 14px; }
.wnets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wnet-opt { gap: 8px; padding: 10px; min-height: 48px; }
.wnet-opt .wnet-ic { width: 20px; height: 20px; }
.wnet-l { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.wnet-l b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wnet-l small { font-size: 11.5px; font-family: var(--mono); }
.wdir-st { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.wdir-st.ok { color: var(--green); } .wdir-st.bad { color: var(--red); }

/* ── Detalle de un retiro ── */
.wdet { display: flex; flex-direction: column; gap: 16px; }
.wdet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wdet-top .bal-amt { font-size: 30px; }
.wdet-steps { display: flex; flex-direction: column; gap: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.wdet-steps li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--muted); }
.wdet-steps li > div { display: flex; flex-direction: column; } .wdet-steps li b { font-size: 13.5px; } .wdet-steps li small { font-size: 12px; }
.wdet-steps li.on { color: var(--text); }
.wd-dotl { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; }
.wdet-steps li.on .wd-dotl { background: var(--green); color: var(--on-accent); }
.wdet-sales li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.wdet-sales li:first-child { border-top: 0; }
.wdet-sales .glogo { width: 32px; height: 32px; border-radius: 8px; }
.wdet-sales li > div { display: flex; flex-direction: column; min-width: 0; }
.wdet-sales li > div b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdet-sales li > div small { font-size: 12px; } .wdet-sales li > b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* ── Retirar ── */
.wd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.wd-main > * + * { margin-top: 18px; }
.wd-side { position: sticky; top: calc(var(--top) + 16px); }
.wd-sum .kv dd .mono { font-size: 12.5px; }
.wd-sum .kv dd { gap: 6px; }
.wd-sum .kv .tot dd b { font-size: 26px; letter-spacing: -.02em; }
.card-h h3 .step-n { margin-inline-end: 8px; vertical-align: 1px; }
.card-h h3 { display: flex; align-items: center; }
.wd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.wd-all { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; min-height: 32px; }
.wd-cb { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; background: var(--surface); transition: background .12s, border-color .12s; }
.wd-row.on .wd-cb, .wd-all.on .wd-cb, .wd-all.mid .wd-cb { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wd-cols, .wd-row { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) minmax(120px, auto) 96px; align-items: center; gap: 12px; padding: 0 20px; }
.wd-cols { height: 34px; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.wd-cols > span:nth-child(2) { grid-column: 2 / 4; } .wd-cols .r { text-align: end; }
.wd-row { width: 100%; min-height: 62px; text-align: start; border-bottom: 1px solid var(--border); }
.wd-list .wd-row:last-child { border-bottom: 0; }
.wd-row:hover { background: var(--surface-2); }
.wd-row.on { background: var(--accent-soft); }
.wd-row .glogo { width: 36px; height: 36px; border-radius: 9px; }
.wd-info { display: flex; flex-direction: column; min-width: 0; }
.wd-info b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-info small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-qty { display: flex; flex-direction: column; align-items: flex-end; text-align: end; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wd-qty small { font-size: 12px; }
.wd-tot { text-align: end; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wd-dest { margin-top: 14px; }
.wd-new { display: flex; flex-direction: column; gap: 14px; }
.wd-pay .seg { width: 100%; } .wd-pay .seg button { flex: 1; justify-content: center; }
.wd-prog { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.wd-prog i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }
.wd-prog.ok i { background: var(--green); }
.wd-msg { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 4px; line-height: 1.45; }
.wd-msg .ic { margin-top: calc((1.45em - 14px) / 2); }
.wd-fees { margin-bottom: 14px; }
.wd-bar { display: none; }
.wd-bar > div { display: flex; flex-direction: column; min-width: 0; }
.wd-bar b { font-size: 18px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wd-bar small { font-size: 12px; }

.wd-rev-wrap { max-width: 640px; }
.wd-rev-card .kv dd { max-width: 70%; }
.wd-rev-amt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 14px; }
.wd-det { margin: 14px 0; }
.wd-det summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-ink); list-style: none; }
.wd-det summary::-webkit-details-marker { display: none; }
.wd-det .wdet-sales { margin-top: 8px; }
.wd-2fa { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; max-width: 380px; }
.wd-rev .note { margin-top: 14px; }
.wd-ok { max-width: 560px; margin: 0 auto; }
.wd-ok .kv dd { gap: 6px; }
.wd-ok-a { margin-top: 8px; }

@media (max-width: 1180px) and (min-width: 900px) {
  /* Ancho medio: se van Ventas y Transacción (están en el detalle); la dirección se queda (se copia desde acá). */
  .wr-head > :nth-child(2), .wr-head > :nth-child(6), .wr-sales, .wr-tx { display: none; }
  .wr-head, .wr-row { grid-template-columns: minmax(96px, 1fr) minmax(96px, .9fr) minmax(120px, 1fr) 112px 92px; }
  .wd-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .wd-cols, .wd-row { grid-template-columns: 22px 36px minmax(0, 1fr) auto 88px; }
}

@media (max-width: 899px) {
  .wa-pad { padding: 16px 16px 0; }
  .wr-head { display: none; }
  .wr-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id amt" "net st" "meta addr"; gap: 4px 10px; padding: 12px 16px; }
  .wr-id { grid-area: id; } .wr-amt { grid-area: amt; }
  .wr-net { grid-area: net; } .wr-st { grid-area: st; justify-self: end; }
  .wr-sales { grid-area: meta; align-self: center; }
  .wr-addr { grid-area: addr; justify-self: end; }
  .wr-tx { display: none; }
  .wr-pager { padding: 12px 16px; }

  .wd-grid { grid-template-columns: minmax(0, 1fr); }
  .wd-main > * + * { margin-top: 14px; }
  .wd-head { padding: 10px 16px; }
  .wd-all { min-height: 40px; } /* al tacto */
  .wd-cols { display: none; }
  .wd-row { grid-template-columns: 22px 36px minmax(0, 1fr) auto; grid-template-areas: "cb lg info tot" "cb lg qty tot"; gap: 2px 10px; padding: 10px 16px; }
  .wd-row .wd-cb { grid-area: cb; } .wd-row .glogo { grid-area: lg; } .wd-info { grid-area: info; }
  .wd-qty { grid-area: qty; flex-direction: row; gap: 4px; align-items: baseline; justify-content: flex-start; font-size: 12px; color: var(--text-2); }
  .wd-tot { grid-area: tot; }
  /* Con otra moneda el total lleva el USD debajo: la cantidad × precio usa todo el ancho del segundo renglón, si no se
     metía debajo del USD del total (2026-10-22). */
  .wd-row:has(.mx-usd) { grid-template-areas: "cb lg info tot" "cb lg qty qty"; }
  .wnets { grid-template-columns: minmax(0, 1fr); }
  .wd-bar { display: flex; flex-wrap: nowrap; margin-top: 14px; }
  .wd-bar .btn { flex-shrink: 0; }
  .wd-rev-card .kv dd { max-width: 62%; }
  /* "Atrás" + "Confirmar retiro": en idiomas largos (filipino) bajan de renglón en vez de salirse de la tarjeta. */
  .wd-rev .card-f { flex-wrap: wrap; }
  .wd-rev .card-f .btn { flex: 1 1 auto; min-width: 0; white-space: normal; }
}

/* Shift+clic elige un tramo: que no pinte el texto de la página como selección. */
.wd-row { user-select: none; -webkit-user-select: none; }
.wd-tip { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; }
/* "Payout Summary" (2026-10-14): la billetera de cobro va ADENTRO del resumen. En la compu, columna derecha (sticky sólo
   si entra en la pantalla); en el teléfono, debajo de las ventas, con la barra de abajo para seguir. */
.wd-pay { display: flex; flex-direction: column; gap: 10px; }
.wd-pay-h { display: flex; flex-direction: column; }
.wd-pay-h b { font-size: 14px; font-weight: 650; }
.wd-pay-h small { font-size: 12.5px; }
.wd-sum-div { height: 1px; background: var(--border); margin: 16px 0; }
.wd-side { max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; }
.wd-sum .wd-pay .radio-list .radio { padding: 10px 12px; }
@media (max-width: 899px) {
  .wd-side { position: static; max-height: none; overflow: visible; }
}
/* Una fila por billetera, en GRILLA de columnas fijas: red · nombre · dirección corta CENTRADA (+ copiar) · [lugar fijo:
   "Predeterminada" o "Usar por defecto"] · borrar. El lugar fijo tiene SIEMPRE el mismo ancho: cambiar la predeterminada
   no mueve nada (2026-10-14), y la dirección cae en el mismo lugar en todas las filas (2026-10-15). */
.wa-wl .card-h { margin-bottom: 12px; }
.wa-wl-l { display: flex; flex-direction: column; gap: 6px; }
.wa-wl-l li { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem minmax(max-content, 1fr); align-items: center; column-gap: 12px; padding-block: 6px; padding-inline: 10px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); min-height: 48px; }
.wa-wl-l li.def { border-color: var(--accent); background: var(--accent-soft); }
.wa-wl-i { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; }
.wa-wl-n { display: flex; min-width: 0; }
.wa-wl-t { min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-wl-addr { display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.wa-wl-addr .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wa-wl-a { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.wa-slot { display: inline-flex; align-items: center; justify-content: center; gap: 6px; inline-size: 11rem; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.wa-slot.btn { height: 32px; padding: 0 10px; font-size: 12.5px; }
.wa-slot-def { color: var(--accent-ink); }
.wa-slot-def .ic { fill: currentColor; }
.wa-slot-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wa-del { color: var(--red); }
.wa-wl-empty { display: flex; align-items: center; gap: 6px; margin: 0; }
@media (max-width: 560px) {
  /* En el teléfono el lugar fijo es un ícono (la estrella llena = predeterminada): mismo ancho igual. La fila pasa a dos
     renglones (red arriba, nombre abajo) y la dirección queda centrada en su columna, la misma en todas las filas. */
  .wa-slot, .wa-slot.btn { inline-size: 32px; padding: 0; }
  .wa-slot-t { display: none; }
  .wa-wl-l li { grid-template-columns: minmax(0, 1fr) 7.75rem auto; column-gap: 8px; padding-block: 8px; }
  .wa-wl-i { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .wa-wl-t { font-size: 13px; }
}

/* Confirmar "usar por defecto" / "borrar" con el código o la contraseña */
.wconf { display: flex; flex-direction: column; gap: 14px; }
.wconf-w { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.wconf-w > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wconf-w b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wconf-w small { font-size: 12px; }
.wconf-b { margin: 0; font-size: 13.5px; line-height: 1.45; }
.wconf-p { display: flex; flex-direction: column; gap: 8px; }
.wconf-2fa .link { font-weight: 600; white-space: nowrap; }

.wdet-steps li.bad .wd-dotl { background: var(--red); color: var(--on-accent); }
.wdet-aviso { margin: 0; }

@media (max-width: 899px) {
  .wa-hero { padding: 16px; }
  .wa-where { padding: 14px 16px; }
  .wa-filt { width: 100%; }
  .wa-filt .cb { flex: 1 1 140px; width: auto; }
  .wa-filt .cb-b { min-width: 0; width: 100%; }
}
.wa-hh .card-h h3 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 420px) {
  .wa-where-n small { display: none; }
  .wa-bal { flex-direction: column; align-items: stretch; gap: 12px; }
  .wa-bal-r .btn { width: 100%; }
}

/* ── Retirar en tres pasos (pedido del dueño, 2026-10-19): Elegir montos → Método de cobro → Pedir ── */
.wd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.wd-steps button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: start; }
.wd-steps button:disabled { opacity: .55; cursor: not-allowed; }
.wd-steps li.on button { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.wd-sn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1.5px dashed var(--border-2); color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.wd-steps li.on .wd-sn { border: 0; background: var(--accent); color: var(--on-accent); }
.wd-steps li.done .wd-sn { border: 0; background: var(--green); color: var(--on-accent); }
.wd-sl { min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Paso 1: las ventas más angostas, más lugar para el resumen. Paso 2: el método a la izquierda. */
.wd-g1 { grid-template-columns: minmax(0, 640px) minmax(340px, 1fr); }
.wd-g2 { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.wd-sum-a { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wd-sum-a .btn-primary { flex: 1; justify-content: center; }
.wd-pay .flabel { margin-top: 2px; }
.wd-ms-vacio { display: flex; align-items: center; gap: 6px; margin: 0; }
.wd-new { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); margin-top: 6px; }
.wd-new-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wd-new-h b { font-size: 14px; }
.wd-new-a { display: flex; justify-content: flex-end; }
.wd-otro { align-self: flex-start; }
.wd-ok-n { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; }
/* El método se elige con un desplegable (antes, botones que se cortaban) y al lado su insignia. */
.wmet-sel { min-width: 0; }
.wmet-sel .cb { display: flex; width: 100%; max-width: 360px; }
.wmet-sel .cb-b { width: 100%; max-width: none; height: 42px; }
.wmet .flabel { display: flex; align-items: center; gap: 8px; }
.wa-abierto { margin-bottom: 16px; align-items: center; }
.wa-abierto > div { flex: 1; min-width: 0; }
.wa-abierto .btn { flex-shrink: 0; gap: 8px; }
@media (max-width: 1180px) and (min-width: 900px) {
  .wd-g1 { grid-template-columns: minmax(0, 1fr) 320px; }
  .wd-g2 { grid-template-columns: minmax(0, 1fr) 300px; }
  /* Las ventas a elegir en dos renglones, como en el teléfono: en una línea el nombre quedaba en "DonutS…". */
  .wd-cols { display: none; }
  .wd-row { grid-template-columns: 22px 36px minmax(0, 1fr) auto; grid-template-areas: "cb lg info tot" "cb lg qty tot"; gap: 2px 12px; padding: 10px 20px; }
  .wd-row .wd-cb { grid-area: cb; } .wd-row .glogo { grid-area: lg; } .wd-info { grid-area: info; }
  .wd-qty { grid-area: qty; flex-direction: row; gap: 4px; align-items: baseline; justify-content: flex-start; font-size: 12px; color: var(--text-2); }
  .wd-tot { grid-area: tot; }
  .wd-row:has(.mx-usd) { grid-template-areas: "cb lg info tot" "cb lg qty qty"; }
}
/* Tablet apaisada / compu chica (900–1279): el disponible y "Dónde está tu plata" uno abajo del otro. Lado a lado no
   entraban: "Retirar" tapaba el monto y el título de la derecha caía en cuatro renglones. */
@media (max-width: 1279px) and (min-width: 900px) {
  .wa-top { grid-template-columns: minmax(0, 1fr); }
}
/* El historial: con el "por <nombre>" en dos renglones el texto tocaba los bordes de la fila. */
@media (min-width: 900px) { .wr-row { padding-block: 8px; } }
@media (max-width: 899px) {
  .wd-g1, .wd-g2 { grid-template-columns: minmax(0, 1fr); }
  .wd-steps { gap: 6px; }
  .wd-steps button { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; text-align: center; }
  .wd-sl { font-size: 12px; max-width: 100%; }
  .wa-abierto { flex-wrap: wrap; }
}

/* LTC apagado en el ArgenPanel (2026-11-24): un LTC guardado se queda en su fila con la etiqueta "No disponible" (y no se
   elige al retirar); la nota de abajo dice por qué. Nada se saca ni se corre: la etiqueta va al lado del nombre. */
.wa-wl-tt { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wm-off { flex: none; max-width: 100%; overflow: hidden; }
.wm-off > span { overflow: hidden; text-overflow: ellipsis; }
.wm-off-n { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; }
.wd-m-off { cursor: not-allowed; }
.wd-m-off .wm-off { opacity: 1; }
@media (max-width: 560px) {
  /* En el teléfono la etiqueta es sólo el ícono (el nombre no se corta); el motivo está en la nota de abajo. */
  .wm-off { padding: 0 6px; }
  .wm-off > span { display: none; }
}

/* ── Ventas y saldo por estado: la app + Discord en UNA lista (2026-11-27) · tabs/wallet.js › vistaMov ── */
.wa-mov.card.flush { overflow: visible; }
.wm-pad { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.wm-pad .card-h { margin-bottom: 0; }
.wm-dl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; min-height: 32px; }
.wm-dl > svg { flex-shrink: 0; }
.wm-dl > span, .wm-cob > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.wm-dl .mono { font-size: 12px; }
.wm-dl .btn { margin-inline-start: auto; }
.wm-dl-off { color: var(--amber); }
.wm-tot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.wm-tot li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.wm-tot b { font-size: 16px; font-variant-numeric: tabular-nums; }
.wm-t-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wm-tot i.wm-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.wm-tot .wm-pagar { border-color: var(--green); background: var(--green-soft); }
.wm-tot .wm-pagar .wm-t-l { color: var(--green); }
.wm-cob { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.wm-cob > svg { flex-shrink: 0; }
.wm-cob .btn { margin-inline-start: auto; }
.wm-head, .wm-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(110px, auto) 150px 96px; align-items: center; gap: 12px; padding: 0 20px; }
.wm-head { height: 36px; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.wm-head .r { text-align: end; }
.wm-row { min-height: 58px; border-bottom: 1px solid var(--border); }
.wm-list .wm-row:last-child { border-bottom: 0; }
.wm-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wm-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.wm-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-item .glogo, .wm-dc-ic { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.wm-dc-ic { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.wm-qty { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wm-amt { text-align: end; font-variant-numeric: tabular-nums; }
.tag.wm-dc { background: var(--accent-soft); color: var(--accent-ink); }
.tag.wm-cred { background: var(--green-soft); color: var(--green); margin-top: 2px; align-self: flex-start; }
.wd-dc { margin-top: 16px; }
.wd-row.wd-row-off { cursor: default; opacity: .72; }
.wd-row.wd-row-off:hover { background: transparent; }
.wd-row.wd-row-off .wd-cb, .wdc .wd-row[disabled] .wd-cb { color: var(--muted); background: var(--surface-2); border-style: dashed; } /* trabada: se ve el candado */
.wdc .wd-row.on[disabled] .wd-cb { color: var(--on-accent); background: var(--accent); border-style: solid; }
.wdc { display: flex; flex-direction: column; gap: 12px; }
.wdc .wd-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wdc .wd-row { padding: 0 12px; grid-template-columns: 22px 32px minmax(0, 1fr) 96px; }
@media (max-width: 899px) {
  .wm-pad { padding: 16px 16px 12px; }
  .wm-head { display: none; }
  .wm-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "item amt" "src st" "qty qty"; gap: 4px 10px; padding: 12px 16px; }
  .wm-src { grid-area: src; } .wm-item { grid-area: item; } .wm-qty { grid-area: qty; } .wm-st { grid-area: st; justify-self: end; } .wm-amt { grid-area: amt; }
  .wm-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
