/* --- Stile generico container --- */
#ajust-order-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* --- Titolo --- */
#ajust-order-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* --- Form cliente --- */
#ajust-order-form label {
    display: inline-block;
    width: 48%;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}
#ajust-order-form input {
    width: 100%;
    padding: 6px 8px;
    margin-top: 3px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* --- Tabella ordini --- */
#ajust-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

#ajust-order-table th,
#ajust-order-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

#ajust-order-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

#ajust-order-table td input {
    width: 80px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-align: right;
}

/* --- Pulsanti --- */
.ajust-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.ajust-buttons button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.ajust-buttons button:hover {
    background: #005f80;
}

/* --- Selettore prodotti --- */
.ajust-product-select {
    width: 200px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* --- Totale generale --- */
#ajust-grand-total {
    font-weight: bold;
    color: #0073aa;
}

/* --- Pulsante rimuovi riga --- */
.ajust-remove button {
    background: #cc0000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.ajust-remove button:hover {
    background: #990000;
}

/* --- Stile responsive --- */
@media(max-width: 768px){
    #ajust-order-form label {
        width: 100%;
    }

    .ajust-product-select {
        width: 100%;
    }
}
