/* Fase 10.5 — CSS verbatim de los bloques de estilo de Pages/Exchange/ModalOperacionDivisa.razor. Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el bloque. Cambios: @@ → @ y capas D-51. */
/* ============ Modal de operación — prefijo "vo-" (no toca estilos del dashboard) ============ */
.vo-backdrop {
    --vo-em: #0F6B4C; --vo-em-deep: #0A4F38; --vo-em-light: #4CA37F; --vo-em-pale: #DFF3EA; --vo-em-subtle: #F2FAF6;
    --vo-sell: #b5533c; --vo-gold: #b8912a; --vo-ink: #1F2E27; --vo-muted: #5C6D64; --vo-border: #D7E6DE;
    position: fixed; inset: 0; z-index: var(--z-modal) /* D-51 (era 2500) */; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 46, 39, .45); backdrop-filter: blur(2px); padding: 1rem;
    animation: vo-fade .15s ease-out; font-family: 'Segoe UI', system-ui, sans-serif; color: var(--vo-ink);
}
.vo-backdrop *, .vo-backdrop *::before, .vo-backdrop *::after { box-sizing: border-box; }
@keyframes vo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vo-pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

.vo-modal {
    position: relative; width: min(1100px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 46, 39, .35);
    animation: vo-pop .18s ease-out;
}
.vo-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; color: #fff; flex: none; flex-wrap: wrap; }
.vo-header.is-buy { background: linear-gradient(120deg, var(--vo-em-deep), var(--vo-em)); }
.vo-header.is-sell { background: linear-gradient(120deg, #7a3424, var(--vo-sell)); }
.vo-title { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.vo-mark { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vo-title-text { min-width: 0; }
.vo-title-text h1 { font-size: 1.1rem; margin: 0; font-weight: 500; color: #fff; }
.vo-title-text h1 strong { font-weight: 800; }
.vo-title-text > span { font-size: .74rem; opacity: .85; white-space: nowrap; }
.vo-header-right { display: flex; align-items: center; gap: .6rem; }
.vo-toggle { display: flex; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.15); }
.vo-toggle button { border: none; background: transparent; color: #fff; padding: .4rem 1.1rem; font-weight: 700; cursor: pointer; font-size: .85rem; }
.vo-toggle button.is-active { background: #fff; color: var(--vo-em-deep); }
.vo-header.is-sell .vo-toggle button.is-active { color: var(--vo-sell); }
.vo-close { width: 31px; height: 31px; border: none; border-radius: 6px; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vo-close:hover { background: rgba(255,255,255,.3); }

.vo-body { padding: 1rem; overflow-y: auto; background: var(--vo-em-subtle); }
.vo-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 1rem; align-items: start; }
.vo-card { background: #fff; border: 1px solid var(--vo-border); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 2px 8px rgba(10,79,56,.05); min-width: 0; }

.vo-field { margin-bottom: .9rem; min-width: 0; }
.vo-label { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .74rem; color: var(--vo-em-deep); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .03em; }
.vo-optional { font-weight: 500; text-transform: none; color: var(--vo-muted); letter-spacing: 0; }
.vo-input { width: 100%; border: 1px solid var(--vo-border); border-radius: 5px; padding: .5rem .65rem; font-size: .92rem; color: var(--vo-ink); background: #fff; }
.vo-input:focus { outline: none; border-color: var(--vo-em); box-shadow: 0 0 0 3px rgba(15,107,76,.15); }
.vo-input.is-invalid { border-color: var(--vo-sell); box-shadow: 0 0 0 3px rgba(181,83,60,.12); }
.vo-input-sm { padding: .35rem .5rem; font-size: .85rem; height: 31px; }
.vo-input-rate { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.vo-input-group { display: flex; gap: .4rem; align-items: center; }

.vo-habituales { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .8rem; }
.vo-habituales-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vo-em); }
.vo-chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--vo-border); background: var(--vo-em-pale); color: var(--vo-em-deep); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-weight: 700; cursor: pointer; }
.vo-chip:hover { background: var(--vo-em); color: #fff; border-color: var(--vo-em); }
.vo-chip i { font-size: .62rem; }

.vo-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .5rem; align-items: end; }
.vo-swap { width: 36px; height: 40px; margin-bottom: .9rem; border: 1px solid var(--vo-border); border-radius: 8px; background: #fff; color: var(--vo-em); cursor: pointer; }
.vo-swap:hover:not(:disabled) { background: var(--vo-em-pale); }
.vo-swap:disabled { opacity: .4; cursor: default; }

.vo-amount-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(170px, 1fr); gap: .75rem; align-items: start; }
.vo-amount-box { display: flex; align-items: center; gap: .5rem; border: 2px solid var(--vo-em); border-radius: 10px; padding: .25rem .5rem; background: #fff; }
.vo-amount-box:focus-within { box-shadow: 0 0 0 4px rgba(15,107,76,.15); }
.vo-amount-input { flex: 1; min-width: 0; border: none; outline: none; font-size: 1.9rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--vo-ink); background: transparent; padding: .1rem 0; }
.vo-rate-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; font-size: .72rem; color: var(--vo-muted); }
.vo-tag-ajuste { font-weight: 700; background: rgba(184,145,42,.18); color: #7a5d12; padding: .05rem .45rem; border-radius: 999px; }

.vo-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--vo-border); border-radius: 10px; overflow: hidden; margin: -.2rem 0 .9rem; max-width: 420px; }
.vo-key { background: #fff; border: none; padding: .7rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--vo-ink); }
.vo-key:hover { background: var(--vo-em-pale); }
.vo-key:active { background: var(--vo-em-light); color: #fff; }
.vo-key-del { color: var(--vo-sell); }

.vo-summary { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; margin-bottom: .9rem; border-radius: 10px; background: var(--vo-em-subtle); border: 1px dashed var(--vo-border); }
.vo-summary-col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vo-summary-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vo-muted); }
.vo-summary-val { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-summary-val.is-strong { color: var(--vo-em-deep); font-weight: 800; }
.vo-summary-arrow { color: var(--vo-muted); }

.vo-client-chip { margin-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; background: var(--vo-em-pale); color: var(--vo-em-deep); padding: .3rem .4rem .3rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.vo-client-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-chip-edit { border: none; background: rgba(15,107,76,.16); color: var(--vo-em-deep); width: 22px; height: 22px; border-radius: 50%; font-size: .68rem; cursor: pointer; flex: none; }
.vo-warning { margin-top: .4rem; color: var(--vo-sell); font-size: .8rem; font-weight: 600; display: flex; align-items: flex-start; gap: .4rem; }
.vo-warning.is-info { color: var(--vo-em-deep); }

.vo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 6px; padding: 5px 12px; height: 31px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vo-btn:disabled { opacity: .5; cursor: not-allowed; }
.vo-btn-confirm { background: var(--vo-em); color: #fff; height: 42px; font-size: 15px; }
.vo-btn-confirm:hover:not(:disabled) { background: var(--vo-em-deep); }
.vo-btn-outline { background: #fff; border: 1px solid var(--vo-border); color: var(--vo-ink); }
.vo-icon-btn { width: 31px; height: 31px; border-radius: 6px; border: none; cursor: pointer; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: #fff; }
.vo-icon-add { background: #16a34a; }
.vo-icon-add:hover { background: #128a3e; }
.vo-icon-del { background: #dc2626; }
.vo-icon-ghost { background: var(--vo-em-pale); color: var(--vo-em-deep); box-shadow: none; }
.vo-icon-ghost.is-on { background: var(--vo-em); color: #fff; }

.vo-side { position: sticky; top: 0; }
.vo-side-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vo-muted); margin-bottom: .3rem; }
.vo-switch { position: relative; display: inline-block; width: 38px; height: 21px; flex: none; }
.vo-switch input { opacity: 0; width: 0; height: 0; }
.vo-switch-slider { position: absolute; inset: 0; background: var(--vo-border); border-radius: 999px; transition: .15s; cursor: pointer; }
.vo-switch-slider::before { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.vo-switch input:checked + .vo-switch-slider { background: var(--vo-em); }
.vo-switch input:checked + .vo-switch-slider::before { transform: translateX(17px); }
.vo-switch input:focus-visible + .vo-switch-slider { box-shadow: 0 0 0 3px rgba(15,107,76,.25); }
.vo-toggle-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: .86rem; }
.vo-side-amount { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.vo-divider { height: 1px; background: var(--vo-border); margin: .7rem 0; }

.vo-total { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; border-radius: 10px; padding: .8rem 1rem; margin: .4rem 0; }
.vo-total.is-buy { background: var(--vo-em-pale); color: var(--vo-em-deep); }
.vo-total.is-sell { background: rgba(181,83,60,.1); color: var(--vo-sell); }
.vo-total-label { font-weight: 700; font-size: .82rem; }
.vo-total-amount { font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.vo-utility { display: flex; justify-content: space-between; align-items: center; margin: .3rem 0 .4rem; font-size: .8rem; color: var(--vo-muted); }
.vo-pos { color: var(--vo-em-deep); }
.vo-neg { color: var(--vo-sell); }

.vo-block-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .76rem; color: var(--vo-em-deep); margin: .5rem 0 .4rem; text-transform: uppercase; letter-spacing: .03em; }
/* [2026-10-05] cuenta bancaria del pago no efectivo, tramo de TC y ficha SBS */
.vo-payment-bank { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .4rem; margin: -.15rem 0 .5rem; padding-left: .6rem; border-left: 2px solid var(--vo-em-light); }
.vo-tag-tramo { font-weight: 700; background: var(--vo-em-pale); color: var(--vo-em-deep); padding: .05rem .45rem; border-radius: 999px; }
.vo-sbs-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .4rem; }
.vo-btn-xs { height: 28px !important; padding: 0 .6rem !important; font-size: .74rem !important; }
.vo-btn-xs.is-pending { border-color: #B8912A; color: #7a5d12; }
.vo-sbs-acum { font-size: .74rem; color: var(--vo-muted, #5B6B63); font-weight: 600; }
.vo-link-btn { background: none; border: 0; padding: 0 .25rem; color: inherit; text-decoration: underline; font-weight: 700; cursor: pointer; }
.vo-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .4rem; margin-bottom: .4rem; align-items: center; }
.vo-hint { font-size: .74rem; color: var(--vo-muted); margin-top: .25rem; }
.vo-hint-warning { color: var(--vo-sell); font-weight: 600; }

.vo-status { margin-top: .7rem; padding: .55rem .7rem; border-radius: 8px; font-size: .82rem; font-weight: 600; display: flex; gap: .4rem; align-items: flex-start; }
.vo-status.is-ok { background: var(--vo-em-pale); color: var(--vo-em-deep); }
.vo-status.is-error { background: rgba(181,83,60,.12); color: var(--vo-sell); }
.vo-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.vo-actions .vo-btn-confirm { flex: 2; }
.vo-actions .vo-btn-outline { flex: 1; height: 42px; }
.vo-shortcuts { margin-top: .5rem; font-size: .7rem; color: var(--vo-muted); text-align: center; }

.vo-loading { position: absolute; inset: 0; z-index: 5; background: rgba(242,250,246,.6); display: flex; align-items: center; justify-content: center; }
.vo-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(15,107,76,.2); border-top-color: var(--vo-em); animation: vo-spin .8s linear infinite; }
@keyframes vo-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-height: 760px) {
    .vo-backdrop { padding: .5rem; }
    .vo-modal { max-height: calc(100vh - 1rem); }
    .vo-key { padding: .5rem; }
    .vo-amount-input { font-size: 1.6rem; }
}
@media (max-width: 900px) {
    .vo-grid { grid-template-columns: 1fr; }
    .vo-side { position: static; }
}
@media (max-width: 560px) {
    .vo-backdrop { padding: 0; }
    .vo-modal { max-height: 100vh; height: 100vh; border-radius: 0; }
    .vo-pair { grid-template-columns: 1fr; }
    .vo-swap { width: 100%; height: 32px; margin: -.4rem 0 .5rem; }
    .vo-amount-row { grid-template-columns: 1fr; }
    .vo-title-text > span { display: none; }
    .vo-keypad { max-width: none; }
}
