Rising costs eroding profit margins