XML 15 R5.htm IDEA: XBRL DOCUMENT v3.8.0.1
Condensed Consolidated Statement of Comprehensive Income (Loss) (Parenthetical) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jan. 31, 2018
Jan. 31, 2017
Jan. 31, 2018
Jan. 31, 2017
Statement of Comprehensive Income [Abstract]        
Tax provision on unrealized gains on available-for-sale securities $ 122 $ 134 $ 167 $ (35)