XML 65 R55.htm IDEA: XBRL DOCUMENT v3.8.0.1
Income Taxes (Details Textual) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended 12 Months Ended
Dec. 22, 2017
Apr. 30, 2018
Apr. 30, 2017
Apr. 30, 2018
Apr. 30, 2017
Jul. 31, 2018
Income Tax [Line Items]            
Benefit from income taxes   $ 20,613 $ (1,115) $ 46,572 $ (4,788)  
Effective income tax rate, continuing operations   (73.60%)   (82.40%)    
Unrecognized tax benefits   $ 4,200        
Unrecognized tax benefits that would impact tax rate   $ 6,600   $ 6,600    
Tax Cuts and Jobs Act of 2017 provisional income tax expense (benefit) $ 34,000          
Tax Cuts and Jobs Act of 2017 change in tax rate, deferred tax liability, provisional income tax (expense) benefit $ 5,400          
Forecast            
Income Tax [Line Items]            
Percentage of Statutory federal income tax rate           26.90%