XML 87 R72.htm IDEA: XBRL DOCUMENT v3.7.0.1
Income taxes - Reconciliation of Unrecognized Tax Benefits (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2015
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]      
Unrecognized tax benefit—beginning of period $ 6,662 $ 6,114 $ 6,931
Increase in tax positions taken during the current period 678 513 562
Increase in tax positions taken during the prior period 242 74 170
Decrease in tax positions due to settlements (4,086) 0 (600)
Lapse of statute of limitations (461) (39) (949)
Unrecognized tax benefit—end of period $ 3,035 $ 6,662 $ 6,114