Costa Mesa has passed an ordinance that regulates staffing for grocery and drug retailers that operate self-checkout stations. The measure requires…