All fines and forfeitures collected in any court except city courts must be applied to the payment of the costs of the case in which the fine is imposed or the forfeiture incurred. After those costs are paid, the remainder, if not paid to a justice's court or otherwise provided by law, must be forwarded to the department of revenue for deposit in the state general fund.
§ 46-18-603, MCA