Regulations Governing the Detention of the People of the Mainland China Area and the Residents of Hong Kong and Macao Article 9

Any necessary expense incurred during the detention period shall be paid by the detainee or by the detainee’s guarantor. And if such expenses are unable to be paid by the detainee, or by the detainee’s guarantor, or in a circumstance of guarantor absences, the expenses shall be paid by NIA.
中文原文 大陸地區人民及香港澳門居民收容管理辦法第9條
受收容人於收容期間所支出之必要費用,除由受收容人支付外,應由其保證人支付;受收容人無力支付,無保證人或保證人無力支付時,由移民署支付。

English translation for reference only; the Chinese text prevails. Not legal advice.