It's simple, the specificity of the templating engine is handled by category name, regardless of any type of hierarchy in the category.
Therefore by targeting the category slug, you'll be able to theme it independent of the parent(s).
category-mysubcategory.php
Where mysubcategory
is the slug
of your category.