Normally once the container is transferred to Customs, shipment will be unloaded in customs warehouse. Then the container will be returned to shipping line. Terminal will calculate the demurrage charge then charge back to shipping line. The shipping line has to pay for the demurrage charge then collect from their customer.
In fact I even think that the goods should be unloaded from the container already. May be it is in the process or there are too many abandon containers in Brazil port.