Fair Value Measurements - Schedule of Assets are Measured at Fair Value on Recurring Basis (Details) - Recurring - USD ($) $ in Thousands | Jul. 31, 2024 | Apr. 30, 2024 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | $ 218,653 | | $ 216,354 | |
Marketable securities | 552,459 | | 544,002 | |
Total financial assets | 772,286 | | 760,817 | |
Money market funds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | | | 42,972 | |
U.S. treasury securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 109,649 | | 112,471 | |
Certificates of deposit | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 45,265 | | | |
Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 42,343 | | 43,051 | |
Municipal securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 30,353 | | 27,806 | |
International treasuries | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 14,790 | | 12,642 | |
Corporate debt securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | | | 699 | |
Marketable securities | 278,757 | | 269,168 | |
U.S. agency bonds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 31,302 | | 35,892 | |
Mutual fund investments | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 1,174 | [1] | 461 | [2] |
Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 218,653 | | 215,655 | |
Marketable securities | 109,649 | | 112,471 | |
Total financial assets | 329,476 | | 328,587 | |
Level 1 | Money market funds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | | | 0 | |
Level 1 | U.S. treasury securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 109,649 | | 112,471 | |
Level 1 | Certificates of deposit | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | | |
Level 1 | Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 1 | Municipal securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 1 | International treasuries | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 1 | Corporate debt securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | | | 0 | |
Marketable securities | 0 | | 0 | |
Level 1 | U.S. agency bonds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 1 | Mutual fund investments | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 1,174 | [1] | 461 | [2] |
Level 2 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | 699 | |
Marketable securities | 442,810 | | 431,531 | |
Total financial assets | 442,810 | | 432,230 | |
Level 2 | Money market funds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | | | 42,972 | |
Level 2 | U.S. treasury securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 2 | Certificates of deposit | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 45,265 | | | |
Level 2 | Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 42,343 | | 43,051 | |
Level 2 | Municipal securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 30,353 | | 27,806 | |
Level 2 | International treasuries | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 14,790 | | 12,642 | |
Level 2 | Corporate debt securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | | | 699 | |
Marketable securities | 278,757 | | 269,168 | |
Level 2 | U.S. agency bonds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 31,302 | | 35,892 | |
Level 2 | Mutual fund investments | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 3 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | 0 | |
Marketable securities | 0 | | 0 | |
Total financial assets | 0 | | 0 | |
Level 3 | Money market funds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | | | 0 | |
Level 3 | U.S. treasury securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 3 | Certificates of deposit | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | | |
Level 3 | Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 3 | Municipal securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 3 | International treasuries | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 3 | Corporate debt securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | | | 0 | |
Marketable securities | 0 | | 0 | |
Level 3 | U.S. agency bonds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Level 3 | Mutual fund investments | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 0 | | 0 | |
Money market funds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 200,936 | | 180,248 | |
Money market funds | Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 200,936 | | 180,248 | |
Money market funds | Level 2 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | 0 | |
Money market funds | Level 3 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | 0 | |
U.S. treasury securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 17,717 | | 35,407 | |
U.S. treasury securities | Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 17,717 | | 35,407 | |
U.S. treasury securities | Level 2 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | 0 | |
U.S. treasury securities | Level 3 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | $ 0 | | $ 0 | |
|
[1]Mutual fund investments are held in an irrevocable rabbi trust for payment obligations to non-qualified deferred compensation plan participants. The investments are recorded as part of Other assets in the Company’s condensed consolidated balance sheets.[2]Mutual fund investments are held in an irrevocable rabbi trust for payment obligations to non-qualified deferred compensation plan participants. The investments are recorded as part of Other assets in the Company’s condensed consolidated balance sheets. |