XML 142 R98.htm IDEA: XBRL DOCUMENT v3.22.2
Valuation and Qualifying Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2020
Deferred tax valuation allowance      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at beginning of period $ 13,377 $ 11,992 $ 31,627
Charged to costs and expenses 8,563 3,250 (18,953)
Charged to other accounts [1] (250) 226 (204)
Deductions (2,823) (2,091) (479)
Balance at end of period 18,867 13,377 11,992
Current | Allowance for doubtful accounts      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at beginning of period 79,568 92,472 54,850
Charged to costs and expenses (1,893) 14,661 65,069
Charged to other accounts [1] 1,413 2,185 (4,536)
Deductions [2] (22,320) (29,750) (22,911)
Balance at end of period 56,768 79,568 92,472
Long-term | Allowance for doubtful accounts      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at beginning of period 249 549 505
Charged to costs and expenses 0 0 0
Charged to other accounts [1] (166) (300) 44
Deductions [2] 0 0 0
Balance at end of period $ 83 $ 249 $ 549
[1] Includes amounts related to foreign exchange fluctuation.
[2] Doubtful accounts written off, less recoveries on accounts previously written off