A little leeway is provided by the fact that production buildings have a buffer, which is to say they can store one batch of produced goods, although to actually use them you first need to move them into storage.