e(${index})">Ã—</button>
                `;
                container.appendChild(div);
            });
        }

        function addValue() {
            const measure = measuresDB[currentCategory][currentMeasure];
            if (!measure.values) measure.values = [];
            measure.values.push('');
            renderValues(measure.values);
        }

        function updateValue(index, value) {
            measuresDB[currentCategory][currentMeasure].values[index] = value;
            updateJSONO