Employee Stock Plans - Schedule of Components of Stock-Based Compensation Expense Recognized (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Jan. 31, 2026 |
Jan. 31, 2025 |
Jan. 31, 2026 |
Jan. 31, 2025 |
|
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | $ 12,153 | $ 11,301 | $ 35,688 | $ 33,464 |
| Employee Stock Purchase Plan ("ESPP") | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | 153 | 176 | 595 | 627 |
| Restricted Stock Awards | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation expense | $ 12,000 | $ 11,125 | $ 35,093 | $ 32,837 |