Fair Value Measurements - Schedule of Assets are Measured at Fair Value on Recurring Basis (Details) - Recurring - USD ($) $ in Thousands | Oct. 31, 2024 | Apr. 30, 2024 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | $ 240,684 | | $ 216,354 | |
Marketable securities | 539,062 | | 544,002 | |
Total financial assets | 781,355 | | 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 | 107,730 | | 112,471 | |
Certificates of deposit | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 35,595 | | | |
Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 30,049 | | 43,051 | |
Municipal securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 25,394 | | 27,806 | |
International treasuries | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 21,912 | | 12,642 | |
Corporate debt securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | | | 699 | |
Marketable securities | 287,154 | | 269,168 | |
U.S. agency bonds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 31,228 | | 35,892 | |
Mutual fund investments | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 1,609 | [1] | 461 | [2] |
Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 234,218 | | 215,655 | |
Marketable securities | 107,730 | | 112,471 | |
Total financial assets | 343,557 | | 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 | 107,730 | | 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,609 | [1] | 461 | [2] |
Level 2 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 6,466 | | 699 | |
Marketable securities | 431,332 | | 431,531 | |
Total financial assets | 437,798 | | 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 | 35,595 | | | |
Level 2 | Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 30,049 | | 43,051 | |
Level 2 | Municipal securities | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 25,394 | | 27,806 | |
Level 2 | International treasuries | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 21,912 | | 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 | 287,154 | | 269,168 | |
Level 2 | U.S. agency bonds | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Marketable securities | 31,228 | | 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 | 204,327 | | 180,248 | |
Money market funds | Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 204,327 | | 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 | 29,891 | | 35,407 | |
U.S. treasury securities | Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 29,891 | | 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 | |
Certificates of deposit | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 4,475 | | | |
Certificates of deposit | Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | | |
Certificates of deposit | Level 2 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 4,475 | | | |
Certificates of deposit | Level 3 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | | |
Commercial paper | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 1,991 | | | |
Commercial paper | Level 1 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 0 | | | |
Commercial paper | Level 2 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | 1,991 | | | |
Commercial paper | Level 3 | | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | | |
Financial assets | $ 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. |