#ingredientiList { min-height: 2rem; }
.ingrediente-row-ghost { opacity: 0.55; background: #f8f9fa; }
.ingrediente-row-chosen { box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.35); }
.commento-testo-input { overflow: hidden; resize: none; min-height: 2.5rem; }

.costo-ingrediente {
    padding: 0.35rem 0.5rem;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.375rem;
    font-weight: 600;
    color: #0369a1;
    font-size: 0.8rem;
    min-width: 4.25rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prep-quantita-group .form-control { min-width: 0; flex: 1 1 auto; }
.prep-quantita-group .quantita-unita,
.ingrediente-row .quantita-unita {
    min-width: 4.75rem;
    max-width: 5.5rem;
    flex: 0 0 4.75rem;
    width: 4.75rem;
}

.ingrediente-col-ordine { flex: 0 0 auto; width: 2rem; }
.ingrediente-col-nome { min-width: 0; }
.ingrediente-col-azioni {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.ingrediente-col-azioni .btn {
    line-height: 1;
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.riga-drag-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}
.riga-drag-handle:active { cursor: grabbing; }

.prep-sidebar-actions .btn { white-space: nowrap; }
.prep-header-actions { gap: 0.5rem; }
.prep-card-header-actions { gap: 0.35rem; }

.ingrediente-row .quantita-unita:disabled {
    padding-left: 0.5rem;
    padding-right: 1.75rem;
    background-color: #f8f9fa;
    color: #212529;
    opacity: 1;
}

.ingrediente-col-ordine .move-riga-up,
.ingrediente-col-ordine .move-riga-down {
    width: 2rem;
    height: 1.5rem;
    padding: 0;
    line-height: 1;
}

.commento-row .remove-commento {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#modalIngredientePrep .input-group {
    flex-wrap: wrap;
}
#modalIngredientePrep .input-group > .form-control {
    min-width: 12rem;
    flex: 1 1 auto;
}
#modalIngredientePrep .input-group > .btn {
    flex: 0 0 auto;
}

#modalIngredientePrep .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .ingrediente-col-azioni {
        justify-content: flex-start;
        margin-top: 0.25rem;
    }
}
