/* ============================================================================
   V15.1 :: tanda-v151-componentes
   - UpdateFab MUCHO MÁS VISIBLE (Lauti: "casi molesto sin imposibilitar operar")
   - ComentarioVentaInput (desde detalle de venta)
   - Refinamiento CotizadorPesoModal premium
   - Eliminación visual de tip-atajos-pos (legacy)
   ============================================================================ */

/* ════════════════════ UpdateFab REFORZADO ════════════════════ */
/* Override del .ufab base de V14. Ahora más grande, más insistente. */
html body .ufab {
    bottom: 22px !important;
    left: 22px !important;
    padding: 16px 22px !important;        /* +33% padding */
    font-size: 14px !important;            /* +1px */
    border-width: 3px !important;          /* +1px más grueso */
    z-index: 9995 !important;              /* Por encima de casi todo */
    min-width: 165px !important;            /* Tamaño mínimo consistente */
}
html body .ufab-icon {
    font-size: 22px !important;            /* Icono más grande */
}
html body .ufab-text b {
    font-size: 14px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase;
}
html body .ufab-text .ufab-sub {
    display: block !important;
    font-size: 10px !important;
    color: rgba(255,255,255,0.85) !important;
}

/* Pulse SUAVE siempre (incluso sin novedad) - recordatorio amable */
html body .ufab-normal {
    animation: ufab-soft-pulse 3s ease-in-out infinite !important;
}
@keyframes ufab-soft-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(37,99,235,0.40), 0 0 0 0 rgba(37,99,235,0.30); }
    50%      { box-shadow: 0 12px 30px rgba(37,99,235,0.55), 0 0 0 8px rgba(37,99,235,0.10); }
}

/* Pulse INTENSO si hay novedad (Lauti: "casi molesto") */
html body .ufab-nueva {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    border-color: rgba(239,68,68,0.85) !important;
    animation: ufab-mega-attention 1.1s ease-in-out infinite !important;
}
@keyframes ufab-mega-attention {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 22px rgba(239,68,68,0.55), 0 0 0 0 rgba(239,68,68,0.65);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 16px 40px rgba(239,68,68,0.80), 0 0 0 16px rgba(239,68,68,0);
    }
}

@media (max-width: 600px) {
    html body .ufab {
        bottom: 76px !important;
        left: 14px !important;
        padding: 12px 16px !important;
        font-size: 12px !important;
        min-width: 140px !important;
    }
    html body .ufab-text .ufab-sub { display: none !important; }
}

/* ════════════════════ ComentarioVentaInput ════════════════════ */
.cvi-wrap {
    margin: 14px 0;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(99,102,241,0.07), transparent);
    border: 1.5px solid rgba(99,102,241,0.30);
    border-radius: 12px;
}
.cvi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cvi-emoji { font-size: 19px; }
.cvi-title {
    flex: 1;
    font-size: 13px;
    color: #c7d2fe;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.cvi-saving {
    color: #fbbf24;
    font-size: 11px;
    font-style: italic;
    animation: cvi-blink 1s ease-in-out infinite;
}
.cvi-saved {
    background: rgba(34,197,94,0.20);
    color: #86efac;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(34,197,94,0.40);
    animation: cvi-fade-in 0.3s ease-out;
}
@keyframes cvi-blink { 50% { opacity: 0.50; } }
@keyframes cvi-fade-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.cvi-textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(15,23,42,0.85);
    border: 1.5px solid rgba(99,102,241,0.25);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
}
.cvi-textarea:focus {
    border-color: rgba(99,102,241,0.65);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.20);
}
.cvi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.cvi-counter { font-size: 10px; color: #64748b; }
.cvi-btn-save {
    padding: 8px 16px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: 1px solid rgba(34,197,94,0.50);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}
.cvi-btn-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34,197,94,0.50);
}
.cvi-btn-save:disabled { opacity: 0.40; cursor: not-allowed; }

/* ════════════════════ Cotizador (refinamiento) ════════════════════ */
/* Los presets del cotizador con shadow más premium y hover más fluido */
.cpm-modal {
    box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(245,158,11,0.20) !important;
}

/* ════════════════════ ELIMINAR tip-atajos-pos legacy ════════════════════ */
/* El tip antiguo flotante "atajos POS" - eliminar visualmente.
   El user no lo necesita más (los atajos están claros en la UI premium). */
html body .g3-pos-shortcuts-hint {
    display: none !important;
}

/* ════════════════════ Botón "🎯 Mis atajos" en panel home ════════════════════ */
.qa-side-item.qa-side-mis-atajos {
    background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(217,119,6,0.10) 100%) !important;
    border: 2px solid rgba(245,158,11,0.50) !important;
    color: #fde68a !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 12px rgba(245,158,11,0.20);
}
.qa-side-item.qa-side-mis-atajos:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.30) 0%, rgba(217,119,6,0.18) 100%) !important;
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(245,158,11,0.40);
}
