Quarterly report pursuant to Section 13 or 15(d)

Business Overview (Details)

v3.10.0.1
Business Overview (Details) - USD ($)
2 Months Ended 3 Months Ended 9 Months Ended 12 Months Ended
Aug. 06, 2018
Nov. 13, 2017
Sep. 01, 2017
Feb. 06, 2017
Jan. 31, 2017
Dec. 31, 2018
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Dec. 31, 2018
Feb. 28, 2018
Feb. 27, 2018
Dec. 31, 2017
Dec. 31, 2016
Subsidiary, Sale of Stock [Line Items]                              
Net cash used in operating activities             $ 89,100,000   $ 89,080,000 $ 180,052,000          
Cash and cash equivalents             45,647,000 $ 117,787,000 45,647,000 117,787,000       $ 136,986,000 $ 82,387,000
Net loss from operations             29,608,000 47,700,000 97,353,000 184,010,000          
Working capital             (76,300,000)   (76,300,000)            
Proceeds of sale of common stock, net of issuance costs                 0 121,604,000          
Minimum Market Capitalization covenant, amount     $ 300,000,000                 $ 300,000,000      
Minimum Market Capitalization covenant, percentage of outstanding principle amount of loan                       200.00%      
Net sales             11,105,000 $ 5,008,000 31,945,000 $ 7,420,000          
Minimum | Scenario, Forecast                              
Subsidiary, Sale of Stock [Line Items]                              
Net sales                     $ 42,000,000.0        
Maximum | Scenario, Forecast                              
Subsidiary, Sale of Stock [Line Items]                              
Net sales                     $ 47,000,000.0        
Public Stock Offering                              
Subsidiary, Sale of Stock [Line Items]                              
Shares sold in private placement (in shares)   21,705,426     20,325,204                    
Shares issued (in dollars per share)   $ 2.58     $ 6.15                    
Proceeds of sale of common stock, net of issuance costs   $ 52,200,000   $ 121,600,000                      
Line of Credit | CRG Servicing LLC | Term Loan | Secured Debt                              
Subsidiary, Sale of Stock [Line Items]                              
Maximum borrowing capacity (up to)     300,000,000                 $ 200,000,000      
Proceeds from line of credit     $ 100,000,000                        
Interest rate per annum     9.50%                        
Remaining borrowing capacity             $ 0   $ 0            
Minimum revenue covenant, amount     $ 61,000,000.0                        
Line of Credit | CRG Servicing LLC | Term Loan | Secured Debt | Scenario, Forecast                              
Subsidiary, Sale of Stock [Line Items]                              
Minimum revenue covenant, principal repayment amount           $ 38,000,000.0                  
Minimum revenue covenant, prepayment penalty amount           $ 51,000,000.0                  
Line of Credit | CRG Servicing LLC | Term Loan | Secured Debt | Tranche One                              
Subsidiary, Sale of Stock [Line Items]                              
Remaining borrowing capacity                       25,000,000      
Line of Credit | CRG Servicing LLC | Term Loan | Secured Debt | Tranche Two                              
Subsidiary, Sale of Stock [Line Items]                              
Remaining borrowing capacity                       25,000,000      
Line of Credit | CRG Servicing LLC | Term Loan | Secured Debt | Tranche Three                              
Subsidiary, Sale of Stock [Line Items]                              
Remaining borrowing capacity                       $ 50,000,000      
Luoxin Pharmaceutical Group Co. | License Agreement Terms                              
Subsidiary, Sale of Stock [Line Items]                              
Licensing, development and commercialization agreement, upfront payment                         $ 5,000,000.0    
Licensing, development and commercialization agreement, upfront payment received, net of tax $ 10,100,000