> Based on that logic, layoffs should sometimes cause the stock of a company to go down, if the shareholders think those employees contributed more value than the company saves by laying them off.
You are treating short-term stock market movements as a signal of how well the company is performing.