/* Problemi segnalati — aggiungi / modifica in Gestione Riparazione */
.ddm-problemi-host {
    margin-top: 8px;
}

.ddm-problemi-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ddm-problema-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.ddm-problema-view {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ddm-problema-text {
    flex: 1;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.ddm-problema-edit-btn {
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.ddm-problema-edit-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.ddm-problema-edit {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.ddm-problema-edit[hidden],
.ddm-problema-view[hidden] {
    display: none !important;
}

.ddm-problema-empty {
    color: #64748b;
    font-size: 13px;
    padding: 4px 0;
}

.ddm-add-problema-panel {
    margin-top: 4px;
}

.ddm-add-problema-toggle {
    cursor: pointer;
    border: 1px dashed #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.ddm-add-problema-form,
.ddm-problema-edit {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fafc;
}

.ddm-add-problema-form {
    display: grid;
    gap: 10px;
}

.ddm-add-problema-form[hidden] {
    display: none !important;
}

.ddm-add-problema-panel.is-form-open .ddm-add-problema-toggle {
    display: none;
}

.ddm-add-problema-form label,
.ddm-problema-edit label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.ddm-add-problema-form input,
.ddm-problema-edit input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 400;
}

.ddm-add-problema-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ddm-add-problema-actions button {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}

.ddm-add-problema-actions button.primary {
    background: #2563eb;
    color: #fff;
}

.ddm-add-problema-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ddm-add-problema-msg {
    margin: 0;
    font-size: 12px;
    color: #b91c1c;
}
