/* Venta Farmacia — botón "Nuevo cliente" y panel de alta rápida (prefijo vfc-).
   Doc: ventas/_DOC_cliente_rapido_farmacia.md */

.vfc-buscar {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.vfc-buscar-select {
    flex: 1 1 auto;
    min-width: 0;
}

.vfc-btn-nuevo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    min-height: 42px;
    border: 1px dashed #7c3aed;
    border-radius: 10px;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s ease;
}

.vfc-btn-nuevo:hover {
    border-style: solid;
    background: #7c3aed;
    color: #fff;
}

.vfc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vfc-ayuda {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.vfc-grilla {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.vfc-col-2 {
    grid-column: 1 / -1;
}

.vfc-campo {
    min-width: 0;
}

.vfc-rotulo {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.vfc-campo .form-control-pos.is-invalid {
    border-color: #dc2626;
}

.vfc-existe {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    background: #f5f3ff;
    color: #3b0764;
}

.vfc-existe > i {
    font-size: 1.2rem;
    margin-top: 2px;
    color: #7c3aed;
}

.vfc-existe strong {
    display: block;
    font-size: 0.88rem;
}

.vfc-existe span {
    display: block;
    margin: 2px 0 10px;
    font-size: 0.82rem;
    color: #475569;
}

.vfc-existe.vfc-existe-baja {
    border-color: #fecaca;
    background: #fef2f2;
    color: #7f1d1d;
}

.vfc-existe.vfc-existe-baja > i {
    color: #dc2626;
}

.vfc-existe.vfc-existe-baja span {
    margin-bottom: 0;
}

.vfc-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.vfc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.vfc-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.vfc-btn-pri {
    background: #7c3aed;
    color: #fff;
}

.vfc-btn-pri:hover:not(:disabled) {
    background: #6d28d9;
}

.vfc-btn-sec {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

.vfc-btn-sec:hover {
    background: #f1f5f9;
}

@media (max-width: 575.98px) {
    .vfc-buscar {
        flex-direction: column;
    }

    .vfc-grilla {
        grid-template-columns: 1fr;
    }

    .vfc-acciones {
        flex-direction: column-reverse;
    }

    .vfc-btn {
        justify-content: center;
    }
}
