I would go with separate data elements for the totals plus validation rules. A “Total” option inside the category will double count in any pivot that aggregates over it, and category option groups only help if every user applies them every time.
Set the missing value strategy on the rules so a country that reports only the total doesn’t get flagged when the parts are empty. For analytics, use an indicator or predictor that takes the sum of the parts where they exist and falls back to the stored total where they don’t.
A section form can show computed totals on screen but they aren’t stored, so entering real totals in the same grid as the detail usually needs a custom form. Putting the total elements in their own section is a lighter option.
As far as I know DATIM and WHO packages store the finest disaggregation and derive totals, so I’m not aware of a package that covers totals with no breakdown.