v3.26.1
Debt - Narrative (Details)
1 Months Ended 3 Months Ended 6 Months Ended 12 Months Ended
Feb. 16, 2026
USD ($)
Nov. 24, 2025
USD ($)
Nov. 14, 2025
USD ($)
installment
day
tradingDay
$ / shares
shares
Oct. 24, 2023
$ / shares
Apr. 30, 2022
USD ($)
day
$ / shares
Jul. 31, 2026
USD ($)
tradingDay
shares
Apr. 30, 2026
USD ($)
Jul. 31, 2025
USD ($)
Jul. 31, 2026
USD ($)
tradingDay
shares
Jul. 31, 2025
USD ($)
Jan. 31, 2026
USD ($)
$ / shares
Jul. 27, 2023
USD ($)
Debt Instrument [Line Items]                        
Purchase of warrants (in shares) | shares     1,671,000                  
Stock price of warrants (USD per share) | $ / shares     $ 25.00                  
Gain on debt exchange                     $ 11,200,000  
Decrease of basic net loss per share (in dollars per share) | $ / shares                     $ 0.48  
Debt, noncurrent           $ 219,462,000     $ 219,462,000   $ 228,480,000  
Stock issued during period, value, other           2,869,000 $ 6,573,000          
2028 Convertible Notes | 2028 Convertible Notes (on an as-converted basis)                        
Debt Instrument [Line Items]                        
Carrying amount     $ 328,600,000     11,300,000     11,300,000      
Debt instrument, face amount         $ 300,000,000.0              
Debt prepayment cost     25,000,000.0                  
Debt, noncurrent           $ 11,317,000     $ 11,317,000   10,788,000  
Conversion price (USD per share) | $ / shares       $ 240.00 $ 480.63              
Maximum trading day | tradingDay           41     41      
Ratio of repurchase price to principal amount (as a percent)         100.00%              
Ratio of control price to principal amount (as a percent)         125.00%              
Maximum covenant threshold         $ 750,000,000.0              
Trustee percentage (as a percent)         25.00%              
Declare percentage (as a percent)         100.00%              
Conversion ratio       0.0041667 0.0020806              
Long-term debt, fair value           $ 10,200,000     $ 10,200,000   9,400,000  
Long-term debt, gross           $ 11,811,000     $ 11,811,000   11,330,000  
Interest rate, effective percentage (as a percent)           9.80%     9.80%      
2028 Convertible Notes | 2028 Convertible Notes (on an as-converted basis) | Cash Interest                        
Debt Instrument [Line Items]                        
Interest rate (as a percent)       7.00% 3.50%              
2028 Convertible Notes | 2028 Convertible Notes (on an as-converted basis) | Paid In Kind Interest                        
Debt Instrument [Line Items]                        
Interest rate (as a percent)       8.50% 5.00%              
2028 Convertible Notes | 2028 Convertible Notes (on an as-converted basis) | Debt Instrument, Redemption, Period One                        
Debt Instrument [Line Items]                        
Threshold consecutive trading days | day         30              
Threshold trading days | day         20              
Threshold percentage of stock price trigger (as a percent)         130.00%              
2028 Convertible Notes | 2028 Convertible Notes (on an as-converted basis) | Debt Instrument, Redemption, Period Two                        
Debt Instrument [Line Items]                        
Threshold consecutive trading days | day         10              
Threshold trading days | day         5              
Threshold percentage of stock price trigger (as a percent)         98.00%              
2025 Senior Loan | Line of Credit                        
Debt Instrument [Line Items]                        
Debt issuance costs                     4,900,000  
Debt, noncurrent                     156,500,000  
Debt, interest payable, current           $ 17,500,000     $ 17,500,000   17,400,000  
Debt, interest payable, noncurrent           $ 51,600,000     $ 51,600,000   61,200,000  
2025 Senior Loan | Line of Credit | Secured Debt                        
Debt Instrument [Line Items]                        
Debt instrument, face amount     $ 186,500,000                  
Limitation on pledges     65.00%                  
Prepayment amount     $ 30,000,000.0                  
Number of equal installments | installment     2                  
Threshold consecutive trading days | tradingDay     30                  
Periodic payment $ 9,600,000 $ 14,800,000                    
Short term loans gain $ 5,400,000 $ 200,000                    
Interest rate (as a percent)     12.00%                  
Threshold trading days | day     30                  
Cap percentage on interest shares     19.99%                  
Issuance of common stock for interest expense (in shares) | shares           404,834     1,604,776      
Stock issued during period, value, other           $ 2,900,000     $ 9,400,000      
Basis points     0.50%                  
Minimum liquidity           25,000,000.0     25,000,000.0      
Unrestricted cash and cash equivalents held in credit parties           10,000,000.0     10,000,000.0      
Estimated fair value           143,700,000     143,700,000      
Long-term debt, gross           208,145,000     208,145,000   217,692,000  
2025 Senior Loan | Line of Credit | Secured Debt | Debt Instrument, Redemption, Period One                        
Debt Instrument [Line Items]                        
Redemption price, percentage   2.00%                    
Prepayment premium percentage     3.00%                  
2025 Senior Loan | Line of Credit | Secured Debt | Debt Instrument, Redemption, Period Two                        
Debt Instrument [Line Items]                        
Redemption price, percentage   0.00%                    
Prepayment premium percentage     2.00%                  
2025 Senior Loan | Line of Credit | Secured Debt | Debt Instrument, Redemption, Period Three                        
Debt Instrument [Line Items]                        
Prepayment premium percentage     0.00%                  
Payment In Kind Note Due Q1 2027 | 2028 Convertible Notes (on an as-converted basis)                        
Debt Instrument [Line Items]                        
Convertible notes payable           500,000     500,000      
Long-term debt, fair value           400,000     400,000      
Debt discount           $ 100,000     $ 100,000      
2027 Revolving Credit Facility | Line of Credit | Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Maximum borrowing capacity                       $ 150,000,000.0
2027 Revolving Credit Facility | Line of Credit | Letter of Credit                        
Debt Instrument [Line Items]                        
Maximum borrowing capacity                       $ 100,000,000.0
Borrowing outstanding                     $ 0  
Amortization of debt issuance costs and commitment fees               $ 400,000   $ 800,000