STOCK REPURCHASE PROGRAM - Summary of Share Repurchase Transactions (Details) - USD ($) shares in Thousands, $ in Thousands  | 
3 Months Ended | |
|---|---|---|
Sep. 30, 2024  | 
Sep. 30, 2023  | 
|
| Equity [Abstract] | ||
| Number of shares of common stock repurchased (in shares) | 740 | 956 | 
| Total cost of repurchases | $ 570,936 | $ 459,093 | 
| Total cost of repurchases | $ 459,093 | |
| X | ||||||||||
- Definition Treasury Stock, Value, Acquired, Excluding Accelerated Share Repurchase Program Forward Contracts No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Number of shares that have been repurchased during the period and are being held in treasury. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  |