FAIR VALUE MEASUREMENTS - Schedule of Financial Assets and Financial Liabilities Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Sep. 30, 2024 | Jun. 30, 2024 |
U.S. Treasury and direct obligations of U.S. government agencies | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | $ 71,422 | $ 90,983 |
Corporate bonds | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 232,542 | 205,926 |
Other securities | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 21,582 | 19,605 |
Fair Value, Recurring | | |
Funds held for clients—available-for-sale: | | |
Assets, fair value disclosure | 967,189 | 1,109,136 |
Fair Value, Recurring | U.S. Treasury and direct obligations of U.S. government agencies | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 71,422 | 90,983 |
Fair Value, Recurring | Corporate bonds | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 232,542 | 205,926 |
Fair Value, Recurring | Other securities | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 21,582 | 19,605 |
Fair Value, Recurring | Level 1 | | |
Funds held for clients—available-for-sale: | | |
Assets, fair value disclosure | 641,643 | 792,622 |
Fair Value, Recurring | Level 1 | U.S. Treasury and direct obligations of U.S. government agencies | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 0 | 0 |
Fair Value, Recurring | Level 1 | Corporate bonds | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 0 | 0 |
Fair Value, Recurring | Level 1 | Other securities | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 0 | 0 |
Fair Value, Recurring | Level 2 | | |
Funds held for clients—available-for-sale: | | |
Assets, fair value disclosure | 325,546 | 316,514 |
Fair Value, Recurring | Level 2 | U.S. Treasury and direct obligations of U.S. government agencies | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 71,422 | 90,983 |
Fair Value, Recurring | Level 2 | Corporate bonds | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 232,542 | 205,926 |
Fair Value, Recurring | Level 2 | Other securities | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 21,582 | 19,605 |
Fair Value, Recurring | Level 3 | | |
Funds held for clients—available-for-sale: | | |
Assets, fair value disclosure | 0 | 0 |
Fair Value, Recurring | Level 3 | U.S. Treasury and direct obligations of U.S. government agencies | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 0 | 0 |
Fair Value, Recurring | Level 3 | Corporate bonds | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 0 | 0 |
Fair Value, Recurring | Level 3 | Other securities | | |
Funds held for clients—available-for-sale: | | |
Debt securities, available-for-sale | 0 | 0 |
Demand deposit accounts and other cash equivalents | | |
Funds held for clients—cash and cash equivalents: | | |
Demand deposit accounts and other cash equivalents | 641,643 | 792,622 |
Demand deposit accounts and other cash equivalents | Fair Value, Recurring | | |
Funds held for clients—cash and cash equivalents: | | |
Demand deposit accounts and other cash equivalents | 641,643 | 792,622 |
Demand deposit accounts and other cash equivalents | Fair Value, Recurring | Level 1 | | |
Funds held for clients—cash and cash equivalents: | | |
Demand deposit accounts and other cash equivalents | 641,643 | 792,622 |
Demand deposit accounts and other cash equivalents | Fair Value, Recurring | Level 2 | | |
Funds held for clients—cash and cash equivalents: | | |
Demand deposit accounts and other cash equivalents | 0 | 0 |
Demand deposit accounts and other cash equivalents | Fair Value, Recurring | Level 3 | | |
Funds held for clients—cash and cash equivalents: | | |
Demand deposit accounts and other cash equivalents | $ 0 | $ 0 |