/* Stili per il pulsante e le funzionalità di stacco preventivo */

.btn-stacca-preventivo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    margin-left: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 4px;
    border: 1px solid #d9534f;
    background-color: #fff;
    color: #d9534f;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-stacca-preventivo:hover {
    background-color: #d9534f;
    color: #fff !important;
    border-color: #d43f3a;
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.3);
}

.btn-stacca-preventivo .btn-stacca-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.btn-stacca-preventivo.is-empty {
    border: 1px dashed #bbb;
    background-color: #f9f9f9;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.btn-stacca-preventivo.is-empty:hover {
    background-color: #f9f9f9;
    color: #999 !important;
    border-color: #bbb;
}

/* Stile per la 'X' di cancellazione interna di Select2 */
.select2-container--jet .select2-selection__clear,
.select2-container .select2-selection__clear {
    color: #d9534f !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin-right: 20px !important;
    cursor: pointer !important;
    transition: color 0.15s ease-in-out;
}

.select2-container--jet .select2-selection__clear:hover,
.select2-container .select2-selection__clear:hover {
    color: #a94442 !important;
}

/* Toast di notifica visiva quando il preventivo viene staccato */
.stacca-feedback-toast {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    animation: fadeInToast 0.3s ease-in-out;
}

@keyframes fadeInToast {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
