Upfront payment received
Collaborative Arrangements Proceeds from Upfront Payment
Represents the amount of proceeds from upfront payment under the collaborative arrangements.
Fair Value Hierarchy and NAV [Domain]
Fair Value Hierarchy and NAV [Domain]
Net loss
Net loss
Net Income (Loss) Attributable to Parent
Entity Emerging Growth Company
Entity Emerging Growth Company
Operating lease right-of-use assets
Operating Lease, Right-of-Use Asset
Preferred stock, shares outstanding (in shares)
Preferred Stock, Shares Outstanding
Income Statement Location [Axis]
Income Statement Location [Axis]
Qui Tam Complaint
Qui Tam Complaint [Member]
Qui Tam Complaint [Member]
Acquisition-related expenses
Business Combination, Acquisition Related Costs
Accumulated amortization
Finite-Lived Intangible Assets, Accumulated Amortization
Range [Domain]
Statistical Measurement [Domain]
Entity Address, Address Line One
Entity Address, Address Line One
Entity Address, Address Line Two
Entity Address, Address Line Two
Less: Payments made
Debt Instrument, Unpaid Portion Of Quarterly Interest Payment
Debt Instrument, Unpaid Portion Of Quarterly Interest Payment
Additional paid-in capital
Additional Paid in Capital, Common Stock
Entity Filer Category
Entity Filer Category
Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]
Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]
Net increase (decrease) in cash and cash equivalents
Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]
Summary of amortized cost, unrealized gain and loss and the fair value of available-for-sale securities
Debt Securities, Available-for-sale [Table Text Block]
Document Fiscal Year Focus
Document Fiscal Year Focus
Prosecution and litigation cost
Litigation Settlement, Expense
Organization, Consolidation and Presentation of Financial Statements [Abstract]
Organization, Consolidation and Presentation of Financial Statements [Abstract]
Amortization of intangible assets
Amortization of Intangible Assets
Company’s additional common stock available for issuance (in shares)
Common Stock, Additional Capital Shares Reserved For Future Issuance
Common Stock, Additional Capital Shares Reserved For Future Issuance
Potentially dilutive securities (in shares)
Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount
Schedule of inventory
Schedule of Inventory, Current [Table Text Block]
Cowen
Cowen and Company, LLC [Member]
Cowen and Company, LLC [Member]
Research and development
Research and Development Expense [Member]
OSMOLEX ER
OSMOLEX ER [Member]
OSMOLEX ER
Shares authorized under the sales agreement
Sale Of Stock, Value Of Shares Authorized In Transaction
Sale Of Stock, Value Of Shares Authorized In Transaction
Sale of Stock [Axis]
Sale of Stock [Axis]
Liability Class [Axis]
Liability Class [Axis]
Business Combination and Asset Acquisition [Abstract]
Business Acquisition [Axis]
Business Acquisition [Axis]
Maturities of available-for-sale securities
Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-sale
Equity Award [Domain]
Award Type [Domain]
Options to purchase common stock
Equity Option [Member]
Assets
Assets [Abstract]
New Accounting Pronouncements or Change in Accounting Principle [Line Items]
New Accounting Pronouncements or Change in Accounting Principle [Line Items]
Preferred stock, $0.001 par value — 5,000,000 shares authorized, and zero shares issued and outstanding at June 30, 2021 and December 31, 2020
Preferred Stock, Value, Issued
New Accounting Pronouncements or Change in Accounting Principle [Table]
Accounting Standards Update and Change in Accounting Principle [Table]
Entity Address, City or Town
Entity Address, City or Town
Accumulated Deficit
Retained Earnings [Member]
Debt Instrument [Axis]
Debt Instrument [Axis]
Prepaid expenses and other assets
Increase (Decrease) in Prepaid Expense and Other Assets
Available-for-sale securities
Debt Securities, Available-for-sale [Abstract]
Accounts payable
Increase (Decrease) in Other Accounts Payable
COMMITMENTS AND CONTINGENCIES
Commitments and Contingencies Disclosure [Text Block]
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]
Royalty-backed loan agreement
Royalty-Backed Loan Agreement [Member]
Royalty-Backed Loan Agreement [Member]
Accounts receivable, net
Increase (Decrease) in Accounts Receivable
Right-of-use assets obtained in exchange for operating lease liabilities, net
Right-of-Use Asset Obtained in Exchange for Operating Lease Liability
Commitments and Contingencies Disclosure [Abstract]
Commitments and Contingencies Disclosure [Abstract]
Stock-based compensation capitalized in inventory
Share-based Payment Arrangement, Amount Capitalized
Increase in common stock reserved for issuance as a percentage of total number of shares of the Company's capital stock outstanding on the last day of the preceding fiscal year
Increase In Common Stock Reserved For Issuance As Percentage Of Total Number Of Shares Of Capital Stock Outstanding On Last Day Of Preceding Fiscal Year
Represents the increase in common stock reserved for issuance as a percentage of total number of shares of the Company's capital stock outstanding on the last day of the preceding fiscal year.
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]
Entity Interactive Data Current
Entity Interactive Data Current
Long-term investments
Long Term Investments [Member]
Investments that the entity has the ability and intent to hold for more than a year from the date of the balance sheet.
Number of operating segments
Number of Operating Segments
Stock-based compensation expense
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]
Net loss per share, basic (in dollars per share)
Earnings Per Share, Basic
Number of legal claims
Loss Contingency, Pending Claims, Number
Thereafter
Finite-Lived Intangible Asset, Expected Amortization, after Year Five
Beginning balance
Ending balance
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value
Document Type
Document Type
Total fair value of assets acquired and liabilities assumed
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net
Interest expense
Interest Expense, Debt
Net accretion of discounts and amortization of premiums of available-for-sale securities
Investment Income, Net, Amortization of Discount and Premium
Intangible assets - developed product
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles
Entity Current Reporting Status
Entity Current Reporting Status
Authorized for future issuance (in shares)
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized
Long-term portion of operating lease liabilities
Operating Lease, Payments
Base purchase price
Business Combination, Consideration Transferred
Total repayment obligation
Long-term Debt, Gross
Subsequent to December 31, 2022
Debt Instrument, Redemption, Period Two [Member]
Plan Name [Axis]
Plan Name [Axis]
Assets:
Assets, Fair Value Disclosure [Abstract]
Carrying value of loans payable
Long-term Debt
Operating lease right-of-use assets
Increase (Decrease) In Operating Lease, Right-of-Use Assets
Increase (Decrease) In Operating Lease, Right-of-Use Assets
Total assets measured at fair value
Assets, Fair Value Disclosure
Level 1
Fair Value, Inputs, Level 1 [Member]
Fair Value by Liability Class [Domain]
Fair Value by Liability Class [Domain]
Document Transition Report
Document Transition Report
Total liabilities and stockholders’ deficit
Liabilities and Equity
Pending Litigation
Pending Litigation [Member]
Investments, Debt and Equity Securities [Abstract]
Investments, Debt and Equity Securities [Abstract]
Liabilities and stockholders’ deficit
Liabilities and Equity [Abstract]
Embedded derivative liability
Derivative Financial Instruments, Liabilities [Member]
Cash flows from operating activities
Net Cash Provided by (Used in) Operating Activities, Continuing Operations [Abstract]
NET LOSS PER SHARE
Earnings Per Share [Text Block]
Costs and operating expenses:
Operating Expenses [Abstract]
2025
Finite-Lived Intangible Asset, Expected Amortization, Year Four
Non-cash interest expense
Paid-in-Kind Interest
Exercise of stock options
Stock Issued During Period, Value, Stock Options Exercised
Minimum
Minimum [Member]
Debt securities, available-for-sale, realized gain
Debt Securities, Available-for-sale, Realized Gain
Schedule of shares of Company's common stock reserved for future issuance
Schedule of Stock by Class [Table Text Block]
Selling, general and administrative, net
Selling, General and Administrative Expense
Other comprehensive income
Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract]
Preferred stock, shares authorized (in shares)
Preferred Stock, Shares Authorized
Gross Unrealized Gains
Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax
Trading Symbol
Trading Symbol
Royalty trail cap, percentage of face amount
Debt Instrument, Royalty Trail Cap, Percentage Of Face Amount
Debt Instrument, Royalty Trail Cap, Percentage Of Face Amount
Current liabilities
Liabilities, Current [Abstract]
Issuance of common stock in conjunction with equity offerings, net of commissions and issuance costs
Sale of shares under the sales agreement, net proceeds
Stock Issued During Period, Value, New Issues
Measurement input
Embedded Derivative Asset, Measurement Input
Period describing the commercial launch of dose
Collaborative Arrangements Additional Commercial Launch Describing Period
Collaborative Arrangements Additional Commercial Launch Describing Period
Acquisition of OSMOLEX ER
Payments to Acquire Businesses, Net of Cash Acquired
LONG-TERM DEBT
Debt Disclosure [Text Block]
STOCK-BASED COMPENSATION
Share-based Payment Arrangement [Text Block]
Percentage revenue interest of future net sales
Debt Instrument, Percentage Revenue Interest Of Future Net Sales
Debt Instrument, Percentage Revenue Interest Of Future Net Sales
Level 3
Fair Value, Inputs, Level 3 [Member]
INVENTORY
Inventory Disclosure [Text Block]
Fair Value Measurement Inputs and Valuation Techniques [Line Items]
Fair Value Measurement Inputs and Valuation Techniques [Line Items]
Accounting Policies [Abstract]
Accounting Policies [Abstract]
Issuance of common stock in conjunction with equity offerings, net of commissions and issuance costs (in shares)
Sale of shares under the sales agreement (in shares)
Stock Issued During Period, Shares, New Issues
Common stock, $0.001 par value — 100,000,000 shares authorized, 45,595,824 and 28,866,956 shares issued and outstanding at June 30, 2021 and December 31, 2020, respectively
Common Stock, Value, Issued
Basis of Presentation
Basis of Accounting, Policy [Policy Text Block]
Commitments and Contingencies (Note 9)
Commitments and Contingencies
Accumulated other comprehensive income
Accumulated Other Comprehensive Income (Loss), Net of Tax
Provision for write-down of inventory
Inventory Write-down
ACQUISITION OF OSMOLEX ER
Business Combination Disclosure [Text Block]
Payment of debt issuance costs
Payments of Debt Issuance Costs
Proceeds from issuance of debt
Proceeds from Issuance of Debt
Antidilutive Securities, Name [Domain]
Antidilutive Securities, Name [Domain]
Document Period End Date
Document Period End Date
INVESTMENTS
Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]
Total costs and operating expenses
Costs and Expenses
Entity Registrant Name
Entity Registrant Name
Type of Arrangement and Non-arrangement Transactions [Axis]
Collaborative Arrangement and Arrangement Other than Collaborative [Axis]
Cost, Product and Service [Extensible Enumeration]
Cost, Product and Service [Extensible Enumeration]
Common stock votes per share
Common Stock Votes Per Share
Represents the number of votes per share of common stock held.
Sale of stock, proceeds received on transaction
Sale of Stock, Consideration Received on Transaction
Work-in-process
Inventory, Work in Process, Net of Reserves
Prepaid expenses and other current assets
Prepaid Expense and Other Assets, Current
Financial Instrument [Axis]
Financial Instrument [Axis]
Selling, general and administrative
Selling, General and Administrative Expenses [Member]
Accrued liabilities
Accrued Liabilities, Current
Total revenues
Revenues
Revenue from Contract with Customer, Excluding Assessed Tax
Finished goods
Inventory, Finished Goods, Net of Reserves
Schedule of Available-for-sale Securities [Table]
Schedule of Available-for-sale Securities [Table]
Equity [Abstract]
Equity [Abstract]
Fair Value Hierarchy and NAV [Axis]
Fair Value Hierarchy and NAV [Axis]
Measurement Input Type [Domain]
Measurement Input Type [Domain]
Common Stock
Common Stock [Member]
Loss from operations
Operating Income (Loss)
Available-for-sale investments
Debt Securities, Available-for-sale [Line Items]
Gross Unrealized Losses
Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax
LICENSE AGREEMENTS
Collaborative Arrangement Disclosure [Text Block]
2023
Finite-Lived Intangible Asset, Expected Amortization, Year Two
Increase (decrease) in shareholders' equity
Increase (Decrease) in Stockholders' Equity [Roll Forward]
Stock-based compensation
Share-based Payment Arrangement, Noncash Expense
Long-term debt with embedded derivative
Long-term Debt [Member]
Additional Paid-In Capital
Additional Paid-in Capital [Member]
Cash and cash equivalents
Cash and Cash Equivalents, at Carrying Value
Net product sales since acquisition
Business Combination, Pro Forma Information, Revenue of Acquiree since Acquisition Date, Actual
Arrangements and Non-arrangement Transactions [Domain]
Collaborative Arrangement and Arrangement Other than Collaborative [Domain]
Long-term debt, fair value
Long-term Debt, Fair Value
Purchases of property and equipment
Payments to Acquire Property, Plant, and Equipment
Other current liabilities
Other Liabilities, Current
Maximum
Maximum [Member]
Disclosure of Compensation Related Costs, Share-based Payments [Abstract]
Share-based Payment Arrangement [Abstract]
Loss Contingency, Nature [Domain]
Loss Contingency, Nature [Domain]
Total liabilities
Liabilities
Raw materials
Inventory, Raw Materials, Net of Reserves
Award Type [Axis]
Award Type [Axis]
2022
Finite-Lived Intangible Asset, Expected Amortization, Year One
Measurement Input Type [Axis]
Measurement Input Type [Axis]
Total stockholders’ deficit
Beginning balance
Ending balance
Stockholders' Equity Attributable to Parent
Settled Litigation
Settled Litigation [Member]
Common stock, issued (in shares)
Common Stock, Shares, Issued
Preferred stock, shares issued (in shares)
Preferred Stock, Shares Issued
Prepaid expenses and other current assets
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Prepaid Expense and Other Assets
2014 Equity Incentive Plan
Equity Incentive Plan2014 [Member]
Represents information pertaining to the 2014 Equity Incentive Plan.
Goodwill and Intangible Assets Disclosure [Abstract]
Risks and Uncertainties
Risks and Uncertainties [Policy Text Block]
Risks and Uncertainties
Debt securities, available-for-sale, realized loss
Debt Securities, Available-for-sale, Realized Loss
INTANGIBLE ASSETS, NET
Intangible Assets Disclosure [Text Block]
Stockholders’ equity (deficit)
Stockholders' Equity Attributable to Parent [Abstract]
Supplemental disclosure of noncash activities
Noncash Investing and Financing Items [Abstract]
Long-term portion of operating lease liabilities
Operating Lease, Liability, Noncurrent
Fair Value, Measurement Frequency [Domain]
Measurement Frequency [Domain]
Interest expense
Interest Expense
License agreement
Licensing Agreements [Member]
Effective interest rate
Debt Instrument, Interest Rate, Effective Percentage
Loss Contingency Nature [Axis]
Loss Contingency Nature [Axis]
City Area Code
City Area Code
Proceeds from Paycheck Protection Program Loan
Proceeds from PPP Loan
Proceeds From Paycheck Protection Program Loan
Proceeds From Paycheck Protection Program Loan
Accumulated deficit
Retained Earnings (Accumulated Deficit)
Litigation Case [Domain]
Litigation Case [Domain]
Fair Value Measurement Inputs and Valuation Techniques [Table]
Fair Value Measurement Inputs and Valuation Techniques [Table]
Restricted stock units
Restricted Stock Units (RSUs) [Member]
Statement of Stockholders' Equity [Abstract]
Statement of Stockholders' Equity [Abstract]
Summary of fair values of assets acquired and liabilities assumed
Schedule of Recognized Identified Assets Acquired and Liabilities Assumed [Table Text Block]
Stock issued under employee stock purchase plan (in shares)
Stock Issued During Period, Shares, Employee Stock Purchase Plans
Royalty percentage of future net sales if principal and interest payments below minimum specified levels (up to)
Debt Instrument, Royalty Percentage Of Future Net Sales If Principal And Interest Payments Below Minimum Specified Levels
Debt Instrument, Royalty Percentage Of Future Net Sales If Principal And Interest Payments Below Minimum Specified Levels
Business Acquisition [Line Items]
Business Acquisition [Line Items]
U.S. Treasury securities
US Treasury Securities [Member]
Income Statement [Abstract]
Income Statement [Abstract]
Amendment Flag
Amendment Flag
Inventory Disclosure [Abstract]
Inventory Disclosure [Abstract]
Asset Class [Domain]
Asset Class [Domain]
Summary of the changes in the estimated fair value of the Company’s embedded derivative
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]
Proceeds from issuance of common stock upon exercise of stock options
Proceeds from Stock Options Exercised
Available-for-sale securities
Short-term Investments
BASIS OF PRESENTATION AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES
Basis of Presentation and Significant Accounting Policies [Text Block]
Restricted stock units vested (in shares)
Stock Issued During Period, Shares, Restricted Stock Award, Gross
Finite-Lived Intangible Assets by Major Class [Axis]
Finite-Lived Intangible Assets by Major Class [Axis]
Accounts receivable, net
Accounts Receivable, after Allowance for Credit Loss, Current
Equity Components [Axis]
Equity Components [Axis]
Fair Value Disclosures [Abstract]
Fair Value Disclosures [Abstract]
Antidilutive Securities [Axis]
Antidilutive Securities [Axis]
HCRP
HealthCare Royalty Partners [Member]
HealthCare Royalty Partners [Member]
Investment Type [Axis]
Investment Type [Axis]
Total current assets
Assets, Current
Sale of Stock [Domain]
Sale of Stock [Domain]
Inventory
Total inventory
Inventory, Net
Accrued interest of available-for-sale securities
Increase (Decrease) in Accrued Interest Receivable, Net
Schedule of Stock by Class [Table]
Schedule of Stock by Class [Table]
Entity File Number
Entity File Number
Fair value measurement on a recurring basis
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]
Statement of Financial Position [Abstract]
Statement of Financial Position [Abstract]
Current portion of long-term debt
Less: Current portion of long-term debt
Long-term Debt, Current Maturities
Product and Service [Axis]
Product and Service [Axis]
Cash flows from financing activities
Net Cash Provided by (Used in) Financing Activities, Continuing Operations [Abstract]
Entity Incorporation, State or Country Code
Entity Incorporation, State or Country Code
2016 Inducement Plan
Inducement Plan2016 [Member]
Represents information pertaining to 2016 Inducement plan member.
Entity Small Business
Entity Small Business
Preferred stock, par value (in dollars per share)
Preferred Stock, Par or Stated Value Per Share
Equity Component [Domain]
Equity Component [Domain]
Accrued liabilities and other liabilities
Increase (Decrease) in Accrued Liabilities and Other Operating Liabilities
Interest and other income, net
Interest and Other Income (Expense) Net
Represents the amount of interest income and net amount of other income and expense amounts, the components of which are not separately disclosed on the income statement resulting from ancillary business-related activities.
Statement
Statement [Line Items]
Litigation Case [Axis]
Litigation Case [Axis]
Quarterly royalty payment (up to)
Debt Instrument, Quarterly Royalty Payment
Debt Instrument, Quarterly Royalty Payment
Litigation settlement, amount awarded to other party
Litigation Settlement, Amount Awarded to Other Party
Available-for-sale securities, non-current
Debt Securities, Available-for-sale, Noncurrent
Stock-based compensation
Shares Issued, Value, Share-based Payment Arrangement, after Forfeiture
Fair Value
Debt Securities, Available-for-sale
Short-term investments
Short-term Investments [Member]
Counterparty Name [Domain]
Counterparty Name [Domain]
Debt Disclosure [Abstract]
Debt Disclosure [Abstract]
Entity Address, State or Province
Entity Address, State or Province
Level 2
Fair Value, Inputs, Level 2 [Member]
Amortized Cost
Debt Securities, Available-for-sale, Amortized Cost
Useful life
Finite-Lived Intangible Asset, Useful Life
Use of Estimates
Use of Estimates, Policy [Policy Text Block]
Entity Shell Company
Entity Shell Company
Schedule of Business Acquisitions, by Acquisition [Table]
Schedule of Business Acquisitions, by Acquisition [Table]
Asset Class [Axis]
Asset Class [Axis]
Local Phone Number
Local Phone Number
Total other comprehensive income
Other comprehensive income (loss)
Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent
Schedule of allocation of total stock-based compensation expense
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block]
Accrued liabilities
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Liabilities
Proceeds from public offerings, net of offering costs
Proceeds from Issuance of Common Stock
Total assets
Assets
Plan Name [Domain]
Plan Name [Domain]
Common stock, authorized (in shares)
Authorized shares of common stock (in shares)
Common Stock, Shares Authorized
Research and development
Research and Development Expense
Product and Service [Domain]
Product and Service [Domain]
Unrealized gain on available-for-sale securities
OCI, Debt Securities, Available-for-Sale, Gain (Loss), before Adjustment, after Tax
Interest rate, stated percentage
Debt Instrument, Interest Rate, Stated Percentage
Prepaid expenses and other non-current assets
Prepaid Expense and Other Assets, Noncurrent
Stock Option Plans
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]
Measurement Frequency [Axis]
Measurement Frequency [Axis]
Net cash used in operating activities
Net Cash Provided by (Used in) Operating Activities
Reclassification of realized gain on available-for-sale securities recognized in interest and other income, net
Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax
Litigation Status [Axis]
Litigation Status [Axis]
Fair Value Measurements, Recurring and Nonrecurring [Table]
Fair Value, Recurring and Nonrecurring [Table]
Schedule of Long-term Debt Instruments [Table]
Schedule of Long-term Debt Instruments [Table]
Entity Tax Identification Number
Entity Tax Identification Number
Lender expense
Debt Instrument, Fee Amount
Weighted average shares used in computing net loss per share, basic (in shares)
Weighted Average Number of Shares Outstanding, Basic
Net loss per share, diluted (in dollars per share)
Earnings Per Share, Diluted
Sale of stock, offering price (in dollars per share)
Sale of Stock, Price Per Share
Product sales
Product [Member]
Total liabilities measured at fair value
Financial Liabilities Fair Value Disclosure
At-the-market offering, commission as a percentage of gross proceeds (up to)
At-The-Market Offering, Commission As A Percentage Of Gross Proceeds
At-The-Market Offering, Commission As A Percentage Of Gross Proceeds
Intangible Assets
Intangible Assets, Finite-Lived, Policy [Policy Text Block]
Comprehensive loss
Comprehensive Income (Loss), Net of Tax, Attributable to Parent
Liquidity
Liquidity, Policy [Policy Text Block]
Liquidity, Policy
Net cash provided by financing activities
Net Cash Provided by (Used in) Financing Activities
Business Acquisition, Acquiree [Domain]
Business Acquisition, Acquiree [Domain]
Corporate debt
Corporate Debt Securities [Member]
FAIR VALUE MEASUREMENTS
Fair Value Disclosures [Text Block]
Accounts payable
Accounts Payable, Current
Depreciation
Depreciation, Depletion and Amortization
Dividends declared
Dividends, Common Stock
2024
Finite-Lived Intangible Asset, Expected Amortization, Year Three
Schedule of fair value hierarchy for the Company’s financial assets and liabilities which require fair value measurement on a recurring basis
Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]
Business Combinations
Business Combinations Policy [Policy Text Block]
Accumulated Other Comprehensive Income (Loss)
AOCI Attributable to Parent [Member]
2021 (remainder)
Finite-Lived Intangible Asset, Expected Amortization, Remainder of Fiscal Year
Inventory
Increase (Decrease) in Inventories
Maximum total additional cash payments receivable upon achievement of certain development and regulatory milestones
Collaborative Arrangements Maximum Aggregate Additional Cash Payments Receivable upon Achievement of Development and Regulatory Milestones
Represents the maximum aggregate additional cash payments receivable upon achievement of development and regulatory milestones under the collaborative arrangements.
Common stock, outstanding (in shares)
Common Stock, Shares, Outstanding
Unfavorable Regulatory Action
Unfavorable Regulatory Action [Member]
Financial Instruments [Domain]
Financial Instruments [Domain]
Royalty percentage of future net sales
Debt Instrument, Royalty Percentage Of Future Net Sales
Debt Instrument, Royalty Percentage Of Future Net Sales
Cost of product sales
Cost of Goods and Services Sold
Revenues:
Revenues [Abstract]
Putative Class Action Lawsuit
Putative Class Action Lawsuit [Member]
Putative Class Action Lawsuit
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]
Stock Options
Employee And Nonemployee Stock Option [Member]
An arrangement whereby an employee or nonemployee is entitled to receive in the future, subject to vesting and other restrictions, a number of shares in the entity at a specified price, as defined in the agreement.
Cash flows from investing activities
Net Cash Provided by (Used in) Investing Activities, Continuing Operations [Abstract]
At-the-market offering, aggregate offering price (up to)
At-The-Market Offering, Aggregate Offering Price
At-The-Market Offering, Aggregate Offering Price
Income Statement Location [Domain]
Income Statement Location [Domain]
Increase in common stock available for issuance (in shares)
Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized
Loss Contingencies [Line Items]
Loss Contingencies [Line Items]
Accrued interest
Interest Receivable
Property and equipment, net
Property, Plant and Equipment, Net
Other non-current liabilities
Other Liabilities, Noncurrent
Schedule of payment obligations under the Royalty-Backed Loan
Schedule of Long-term Debt Instruments [Table Text Block]
Schedule of future amortization
Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]
Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Table]
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table]
Debt Instrument [Line Items]
Debt Instrument [Line Items]
Principal payments on long-term debt
Repayments of Long-term Debt
Earnings Per Share [Abstract]
Earnings Per Share [Abstract]
Document Quarterly Report
Document Quarterly Report
Maturity of long term investment
Investment Term
Term of the long term investment , in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.
Sales of available-for-sale securities
Proceeds from Sale of Debt Securities, Available-for-sale
Entity Common Stock, Shares Outstanding (in shares)
Entity Common Stock, Shares Outstanding
Unpaid interest payment added to principal amount, term
Debt Instrument, Unpaid Interest Payment Added To Principal Amount, Term
Debt Instrument, Unpaid Interest Payment Added To Principal Amount, Term
Long-term debt
Non-current portion of long-term debt
Long-term Debt, Excluding Current Maturities
Patents
Patents [Member]
Covenant, prepayment provisions, change in control, required cumulative payments
Debt Instrument, Covenant, Prepayment Provisions, Change In Control, Required Cumulative Payments
Debt Instrument, Covenant, Prepayment Provisions, Change In Control, Required Cumulative Payments
Liabilities:
Liabilities, Fair Value Disclosure [Abstract]
Compensation expense
Stock-based compensation expense
Share-based Payment Arrangement, Expense
Liabilities incurred
Business Combination, Consideration Transferred, Liabilities Incurred
Document Fiscal Period Focus
Document Fiscal Period Focus
Repayment of Paycheck Protection Program Loan
Repayments of PPP loan
Repayments Of Paycheck Protection Program Loan
Repayments Of Paycheck Protection Program Loan
Claim for damages (potentially more than)
Loss Contingency, Estimate of Possible Loss
Investments [Domain]
Investments [Domain]
Counterparty Name [Axis]
Counterparty Name [Axis]
Contingent consideration, asset
Debt Instrument, Contingent Consideration, Asset
Debt Instrument, Contingent Consideration, Asset
Cash and cash equivalents at beginning of period
Cash and cash equivalents at end of period
Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents
Beginning balance (in shares)
Ending balance (in shares)
Shares, Issued
Sale of stock, number of shares issued in transaction (in shares)
Sale of Stock, Number of Shares Issued in Transaction
Common stock, par value (in dollars per share)
Common Stock, Par or Stated Value Per Share
Measurement Input, Discount Rate
Measurement Input, Discount Rate [Member]
Realized gain on available-for-sale securities
Gain on Sale of Investments
Statement of Comprehensive Income [Abstract]
Statement of Comprehensive Income [Abstract]
Current assets
Assets, Current [Abstract]
Prior to December 31, 2022
Debt Instrument, Redemption, Period One [Member]
Developed product
Finite-Lived Intangible Assets, Gross
Total common stock reserved for future issuance (in shares)
Common Stock, Capital Shares Reserved for Future Issuance
Entity Central Index Key
Entity Central Index Key
Employee stock purchase plan
Employee Stock Purchase Plan [Member]
Represents information pertaining to ESPP.
Schedule of intangible assets, net
Schedule of Finite-Lived Intangible Assets [Table Text Block]
Security Exchange Name
Security Exchange Name
Exercise of stock options (in shares)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period
Weighted average shares used in computing net loss per share, diluted (in shares)
Weighted Average Number of Shares Outstanding, Diluted
Recurring basis
Fair Value, Recurring [Member]
Over-Allotment Option
Over-Allotment Option [Member]
Cash, cash equivalents, and investments
Cash, Cash Equivalents, and Short-term Investments
Current Fiscal Year End Date
Current Fiscal Year End Date
Voluntary prepay election, amount due, percentage of funded amount
Debt Instrument, Voluntary Prepay Election, Amount Due, Percentage Of Funded Amount
Debt Instrument, Voluntary Prepay Election, Amount Due, Percentage Of Funded Amount
STOCKHOLDERS’ EQUITY
Stockholders' Equity Note Disclosure [Text Block]
Schedule of outstanding shares of potentially dilutive securities excluded from the computation of diluted net loss per share of common stock, because including them would have been anti-dilutive
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block]
2026
Finite-Lived Intangible Asset, Expected Amortization, Year Five
Statement of Cash Flows [Abstract]
Statement of Cash Flows [Abstract]
Shareholders' Equity
Class of Stock [Line Items]
Finite-Lived Intangible Assets, Major Class Name [Domain]
Finite-Lived Intangible Assets, Major Class Name [Domain]
Royalty revenue
Royalty
Royalty [Member]
Net cash used in investing activities
Net Cash Provided by (Used in) Investing Activities
Changes in assets and liabilities
Increase (Decrease) in Operating Capital [Abstract]
Stock issued under employee stock purchase plan
Stock Issued During Period, Value, Employee Stock Purchase Plan
Total current liabilities
Liabilities, Current
Employee Stock
Employee Stock [Member]
Payments to acquire businesses, gross
Payments to Acquire Businesses, Gross
Litigation Status [Domain]
Litigation Status [Domain]
Money market
Money Market Funds [Member]
Loss Contingencies [Table]
Loss Contingencies [Table]
Entity Address, Postal Zip Code
Entity Address, Postal Zip Code
Less: Interest to be accreted in future periods
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net
Debt Instrument, Name [Domain]
Debt Instrument, Name [Domain]
Title of 12(b) Security
Title of 12(b) Security
Proceeds from employee stock purchase plan
Proceeds from Stock Plans
Statement [Table]
Statement [Table]
Schedule of Collaborative Arrangements and Non-collaborative Arrangement Transactions [Table]
Collaborative Arrangement and Arrangement Other than Collaborative [Table]
Recent Accounting Pronouncements
New Accounting Pronouncements, Policy [Policy Text Block]
Change in fair value of embedded derivative liability
Increase (Decrease) in Derivative Assets and Liabilities
Asset purchase agreement, noncompete agreement, period
Asset Purchase Agreement, Noncompete Agreement, Period
Asset Purchase Agreement, Noncompete Agreement, Period
Debt Instrument, Redemption, Period [Domain]
Debt Instrument, Redemption, Period [Domain]
Range [Axis]
Statistical Measurement [Axis]
Cover [Abstract]
Intangible assets, net
Total intangible assets, net
Finite-Lived Intangible Assets, Net
Measurement Input, Change In Control Probability
Measurement Input, Change In Control Probability [Member]
Measurement Input, Change In Control Probability
Change in fair value included in interest and other income, net
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Period Increase (Decrease)
DESCRIPTION OF BUSINESS
Nature of Operations [Text Block]
Adjustments to reconcile net loss to net cash used in operating activities
Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]
Debt Instrument, Redemption, Period [Axis]
Debt Instrument, Redemption, Period [Axis]
License Agreements
Collaborative Arrangement and Arrangement Other than Collaborative [Line Items]