Income Taxes - Reconciliation of Income Tax Expense (Benefit) (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Apr. 30, 2024 |
Apr. 30, 2023 |
Apr. 30, 2022 |
|
| Income taxes | |||
| U.S. federal statutory income tax rate (as a percent) | 21.00% | 21.00% | 21.00% |
| Provision for (benefit from) income taxes | $ 1,891 | $ (14,663) | $ (10,369) |
| Effective tax benefit rate (as a percent) | 3.00% | 7.80% | 54.20% |
| Domestic | $ 68,968 | $ (187,647) | $ (10,187) |
| Foreign | $ (5,737) | $ (730) | $ (8,956) |
| X | ||||||||||
- Definition Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Percentage of domestic federal statutory tax rate applicable to pretax income (loss). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The portion of earnings or loss from continuing operations before income taxes that is attributable to domestic operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The portion of earnings or loss from continuing operations before income taxes that is attributable to foreign operations, which is defined as Income or Loss generated from operations located outside the entity's country of domicile. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- References No definition available.
|