v3.26.1
INCOME TAXES - Unrecognized tax benefits and Deferred income tax assets (liabilities) (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Activity of unrecognized tax benefits    
Balance at the beginning of the year $ 15,593 $ 17,914
Additions on tax positions for the current year 973 1,296
Additions on tax positions from prior years 58 234
Reduction to tax positions from prior year for dispute settlements   (438)
Reduction to prior year tax positions (44) (305)
Reduction to prior year tax positions for statute of limitations closure (1,668) (3,108)
Balance at the end of the year 14,912 15,593
Deferred income tax assets:    
Tax credit carryforwards 6,768 6,383
Net operating loss carryforwards 3,197 3,339
Customer advances 8,100 6,521
Allowance for doubtful accounts 3,560 3,146
Inventory reserve 14,435 14,636
Accrued liabilities 4,200 3,209
Operating lease liabilities 8,946 5,540
Stock and deferred compensation 16,816 14,504
Other assets 3,548 1,700
Total deferred income tax assets 69,570 58,978
Valuation allowance (11,352) (10,471)
Net deferred income tax assets 58,218 48,507
Deferred income tax liabilities:    
Depreciation (8,621) (6,280)
Amortization of intangible assets (13,280) (13,784)
Withholding tax on unrepatriated foreign earnings (9,266) (8,496)
Operating lease ROU assets (8,752) (5,482)
Other liabilities (3,842) (3,604)
Total deferred income tax liabilities (43,761) (37,646)
Net deferred income tax assets $ 14,457 $ 10,861