The California Supreme Court has ruled that Apple must pay its store employees for the time they spend waiting to be searched before leaving work. The court decided that the time spent waiting for and undergoing security checks is considered work time under California law. Apple had argued that employees could avoid searches by not bringing personal items to work, but the court rejected this argument. The ruling is retroactive and will be applied to a class-action lawsuit pending in the 9th Circuit Court of Appeals.