Uncertainty about tariffs and labor-cost headwinds have weighed on stock this year