.ddm-non-riparabile-wrap {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 2px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
}

.ddm-non-riparabile-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.35;
}

.ddm-non-riparabile-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #dc2626;
    flex-shrink: 0;
}

.ddm-non-riparabile-motivazione-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #fecaca;
}

.ddm-non-riparabile-motivazione-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #7f1d1d;
}

.ddm-non-riparabile-motivazione-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 64px;
    background: #fff;
    color: #1e293b;
}

.ddm-non-riparabile-motivazione-wrap textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.ddm-imei-required-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.ddm-imei-required-hint.ddm-imei-missing {
    color: #b91c1c;
    font-weight: 600;
}

.form-group.ddm-imei-invalid input {
    border-color: #ef4444 !important;
    background: #fef2f2;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Gestione riparazione: stack verticale non riparabile + preventivo + stato */
.ddm-gestione-workflow-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-top: 12px !important;
    width: 100%;
}

.ddm-gestione-workflow-stack .ddm-non-riparabile-wrap {
    margin: 0;
    order: 1;
}

.ddm-gestione-workflow-stack [data-ddm-preventivo-host] {
    order: 2;
    width: 100%;
    min-width: 0;
}

.ddm-gestione-workflow-stack .ddm-gestione-stato-wrap {
    order: 3;
    width: 100%;
}

.ddm-gestione-stato-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ddm-gestione-stato-wrap select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-sizing: border-box;
}
