/* Fase 10.5 — CSS verbatim de los bloques de estilo de Pages/Exchange/ModalConstanciaCambio.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. */
.vc-overlay { position: fixed; inset: 0; background: rgba(10,79,56,.35); display: flex; align-items: center; justify-content: center; z-index: var(--z-modal-2) /* D-51 (era 3000): sobre la operación */; }
.vc-modal { width: 380px; max-height: 92vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 32px rgba(10,79,56,.28); font-family: 'Segoe UI', system-ui, sans-serif; }
.vc-head { background: linear-gradient(135deg, #0A4F38, #0F6B4C); color: #fff; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .6rem; }
.vc-head h2 { font-size: .95rem; margin: 0; flex: 1; }
.vc-close { cursor: pointer; opacity: .85; }
.vc-close:hover { opacity: 1; }

.vc-body { padding: 1rem 1.1rem .4rem; background: #EDF3EF; overflow-y: auto; }
.vc-hint { font-size: .78rem; color: #5C6D64; text-align: center; margin: 0 0 .7rem; }

.vc-ticket-frame { background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.08); max-height: 340px; overflow-y: auto; }
.vc-receipt { font-family: 'Courier New', ui-monospace, monospace; font-size: 11px; color: #1a1a1a; padding: 12px 10px; line-height: 1.45; }
.vc-logo { text-align: center; margin-bottom: 4px; }
.vc-logo img { max-height: 44px; max-width: 100%; }
.vc-empresa { text-align: center; }
.vc-razon { font-weight: 700; font-size: 12px; text-transform: uppercase; }
.vc-receipt hr { border: none; border-top: 1px dashed #9aa39c; margin: 8px 0; }
.vc-titulo { text-align: center; font-weight: 700; font-size: 12px; margin: 4px 0 2px; }
.vc-titulo-sub { text-align: center; font-size: 9px; color: #6b756f; margin-bottom: 6px; }
.vc-row { display: flex; justify-content: space-between; gap: 6px; }
.vc-row span:last-child { text-align: right; }
.vc-section-title { font-weight: 700; font-size: 10px; margin: 6px 0 3px; text-transform: uppercase; }
.vc-op-box { background: #F2FAF6; border: 1px solid #cfe8db; border-radius: 4px; padding: 6px 7px; margin: 6px 0; }
.vc-total-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; padding: 5px 0; margin: 8px 0 6px; }
.vc-footer-note { text-align: center; font-size: 9px; color: #6b756f; margin-top: 8px; line-height: 1.5; }

.vc-envio-box { margin-top: .8rem; background: #fff; border: 1px solid #D7E6DE; border-radius: 8px; padding: .7rem .8rem; }
.vc-envio-box label { display: block; font-size: .78rem; font-weight: 700; color: #0A4F38; margin-bottom: .3rem; }
.vc-input { width: 100%; border: 1px solid #D7E6DE; border-radius: 6px; padding: .5rem .6rem; font-size: .88rem; }
.vc-error { color: #b5533c; font-size: .76rem; font-weight: 600; margin-top: .3rem; }
.vc-ok { color: #0F6B4C; font-size: .76rem; font-weight: 600; margin-top: .3rem; }
.vc-btn-confirmar { width: 100%; margin-top: .6rem; background: #0F6B4C; color: #fff; border: none; border-radius: 6px; padding: .5rem; font-weight: 700; font-size: .82rem; cursor: pointer; }
.vc-btn-confirmar:disabled { opacity: .6; cursor: not-allowed; }

.vc-actions { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: .5rem; padding: .9rem 1.1rem; }
.vc-btn-ticket { background: #0A4F38; }
.vc-btn:disabled { opacity: .6; cursor: wait; }
.vc-ticket-msg { padding: .5rem 1.1rem 0; margin: 0; }
.vc-btn { display: flex; flex-direction: column; align-items: center; gap: .3rem; border: none; border-radius: 8px; padding: .6rem .3rem; font-size: .72rem; font-weight: 700; cursor: pointer; color: #fff; }
.vc-btn i { font-size: 1.05rem; }
.vc-btn-print { background: #0F6B4C; }
.vc-btn-wa { background: #25D366; }
.vc-btn-mail { background: #374151; }

.vc-foot { padding: 0 1.1rem 1.1rem; display: flex; justify-content: center; }
.vc-btn-cerrar { background: none; border: 1px solid #D7E6DE; color: #5C6D64; border-radius: 8px; padding: .5rem 1.4rem; font-size: .82rem; font-weight: 600; cursor: pointer; }

/* [FIX v18] Impresión de un solo elemento — oculta todo menos el recibo (ver
   vdImprimirRecibo). #vc-receipt sigue siendo hijo de .vc-ticket-frame/.vc-modal/
   .vc-overlay en el DOM, pero position:fixed lo saca de ese flujo para que aparezca
   solo, ocupando toda la hoja. */
@media print {
    body * { visibility: hidden !important; }
    #vc-receipt, #vc-receipt * { visibility: visible !important; }
    #vc-receipt {
        position: fixed !important; top: 0; left: 0; width: 80mm;
        margin: 0; padding: 8px; box-shadow: none !important; max-height: none !important;
    }
    @page { size: 80mm auto; margin: 0; }
}
