Depending on how many levels of nesting, maybe you should consider using a spreadsheet for this task?
For the top level, you could have the number in column A, and then use columns D for the description. Then use columns B&D for the second level and C&D for the third level. Then use the columns to the right of these to store figures and/or formulas for doing the totals/subtotals.
I think you could make something like this work, but you would want to be very care ful to get your formulas right (maybe build in some error-checking formulas?)
EDIT: Fixed obvious problem with formatting described. Do not post when very tired!