BUSINESS COMBINATIONS AND DIVESTITURES - Other Business Combination Information (Details) - USD ($)
|
3 Months Ended |
|
Apr. 30, 2023 |
Apr. 30, 2022 |
Jan. 31, 2023 |
| Business Acquisition [Line Items] |
|
|
|
| Changes in fair values of contingent consideration obligations associated with business combinations |
$ 200,000
|
$ (200,000)
|
|
| Fair Value, Liability, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] |
Selling, general and administrative
|
Selling, general and administrative
|
|
| Payments of contingent consideration earned |
$ 300,000
|
$ 2,700,000
|
|
| Level 3 | Recurring |
|
|
|
| Business Acquisition [Line Items] |
|
|
|
| Contingent consideration obligations, fair value |
12,884,000
|
$ 0
|
$ 12,717,000
|
| Level 3 | Recurring | Accrued expenses and other current liabilities |
|
|
|
| Business Acquisition [Line Items] |
|
|
|
| Contingent consideration obligations, fair value |
7,100,000
|
|
|
| Level 3 | Recurring | Other Noncurrent Liabilities |
|
|
|
| Business Acquisition [Line Items] |
|
|
|
| Contingent consideration obligations, fair value |
$ 5,800,000
|
|
|