When the economic outlook is hard to read, the businesses that hold up best are the ones that built flexibility into their workforce before they needed it.