Precise dark matter relic abundance in decoupled sectors