Panera’s investments to trim near-term profits