Slovenia's trade deficit for the first seven months of 2007 widened to 854.69 million euro ($1.17 billion) from 641.68 million euro a year earlier, provisional figures from the country's Statistics Office indicated on Friday.