XML 141 R96.htm IDEA: XBRL DOCUMENT v3.21.2
Valuation and Qualifying Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2019
Deferred tax valuation allowance      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at beginning of period $ 11,992 $ 31,627 $ 46,006
Charged to costs and expenses 3,250 (18,953) 7,171
Charged to other accounts [1] 226 (204) (20,685)
Deductions (2,091) (479) (865)
Balance at end of period 13,377 11,992 31,627
Current | Allowance for doubtful accounts      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at beginning of period 92,472 54,850 51,342
Charged to costs and expenses 14,661 65,069 28,177
Charged to other accounts [1] 2,185 (4,536) 5,165
Deductions [2] (29,750) (22,911) (29,834)
Balance at end of period 79,568 92,472 54,850
Long-term | Allowance for doubtful accounts      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at beginning of period 549 505 510
Charged to costs and expenses 0 0 0
Charged to other accounts [1] (300) 44 (5)
Deductions [2] 0 0 0
Balance at end of period $ 249 $ 549 $ 505
[1] Includes amounts related to foreign exchange fluctuation.
[2] Doubtful accounts written off, less recoveries on accounts previously written off