Summary of significant accounting policies | Note 2. Summary of significant accounting policies Basis of Presentation: The consolidated financial statements are presented in accordance with accounting principles generally accepted in the United States of America, or GAAP, and with the rules and regulations of the Securities and Exchange Commission, or SEC. Principles of consolidation: At each of December 31, 2016 and 2015, the consolidated financial statements include the accounts of the Company and its four wholly-owned subsidiaries. At December 31, 2014, Neos Therapeutics, Inc. owned, directly or indirectly, 100% of two of its subsidiaries and 99.9% of the third subsidiary, Neostx, Inc. ("NTX"). The remaining 0.1% ownership of NTX was held by a third party and all such remaining capital stock was acquired by the Company on June 29, 2015, and NTX was merged with and into the Company. The amounts attributable to the noncontrolling interest were not material to the consolidated financial statements. On September 16, 2015, the Company established two new wholly-owned subsidiaries, Neos Therapeutics Brands, LLC and Neos Therapeutics Commercial, LLC. All significant intercompany transactions have been eliminated. Cash equivalents: The Company invests its available cash balances in bank deposits and money market funds. The Company considers highly liquid investments with original maturities of three months or less at the date of purchase to be cash equivalents. The Company maintains deposits in federally insured financial institutions in excess of federally insured limits. Management believes that the Company is not exposed to significant credit risk due to the financial position of the depository institutions in which those deposits are held. The Company's primary objectives for investment of available cash are the preservation of capital and the maintenance of liquidity. Short-term investments: Short-term investments consist of debt securities that have original maturities greater than three months but less than or equal to one year and are classified as available-for-sale securities. Such securities are carried at estimated fair value, with any unrealized holding gains or losses reported, net of any tax effects reported, as accumulated other comprehensive loss, which is a separate component of stockholders' equity. Realized gains and losses, and declines in value judged to be other-than-temporary, if any, are included in other income (expense) in the consolidated results of operations. A decline in the market value of any available-for-sale security below cost that is deemed to be other-than-temporary results in a reduction in fair value charged to earnings in that period, and a new cost basis for the security is established. Dividend and interest income are recognized in other income when earned. The cost of securities sold is calculated using the specific identification method. The Company places all investments with government agencies, or corporate institutions whose debt is rated as investment grade. The Company classifies all available-for-sale marketable securities with maturities greater than one year from the balance sheet date, if any, as non-current assets. Allowance for doubtful accounts: The allowance for doubtful accounts is maintained at a level considered adequate to provide for losses that can be reasonably anticipated. Management determines the adequacy of the allowance based on reviews of individual accounts, historical losses, existing economic conditions and estimates based on management's judgments in specific matters. Accounts are written off as they are deemed uncollectible based on periodic review of the accounts. There is no allowance for doubtful accounts at December 31, 2016 or December 31, 2015, as management believes that all receivables are fully collectible. Fair value of financial instruments: The carrying value of the Company's financial instruments, including cash and cash equivalents, short-term investments, accounts receivable, other current assets, accounts payable, accrued expenses, and debt, approximates fair value due to the short-term nature of the instruments and/or the current interest rates payable in relation to current market conditions. The fair value of the Company's warrants and earnout liabilities is disclosed in Note 4. Inventories: Inventories are stated at the lower of cost (first in, first out) or market and have been reduced by an allowance for excess and obsolete inventories. Cost elements include material, labor and manufacturing overhead. Inventories consist of raw materials, work in process, finished goods and deferred cost of goods sold. The cost of sales associated with the deferred product revenues are recorded as deferred costs of goods sold that are released from inventory into cost of goods sold as the deferred revenue is recognized into revenue. Until objective and persuasive evidence exists that regulatory approval has been received and future economic benefit is probable, pre-launch inventories are expensed into research and development. Manufacturing costs for the production of Adzenys XR-ODT incurred after the January 27, 2016 FDA approval date are being capitalized into inventory. Deferred contract sales organization fees: The Company records fees billed in accordance with its commercial sales organization contract for services not yet performed as deferred contract sales organization fees. Such fees are recorded as selling and marketing expenses when the services are provided. Property and equipment: Property and equipment is recorded at cost less accumulated depreciation. Depreciation is computed using the straight-line method over the estimated useful lives of the assets, ranging from three to ten years. Leasehold improvements are amortized using the straight-line method over the shorter of the respective lease term or the estimated useful lives of the assets. Intangible assets: Intangible assets subject to amortization, which principally include proprietary modified-release drug delivery technology and the costs to acquire the rights to Tussionex ANDA, are recorded at cost and amortized over the estimated lives of the assets which primarily range from 10 to 20 years. Impairment of long-lived assets: Long-lived assets such as property and equipment and intangibles subject to amortization are evaluated for impairment whenever events or changes in circumstances indicate that the carrying value of an asset group may not be recoverable. Such assets are also evaluated for impairment in light of the Company's continuing losses. If the estimated future cash flows (undiscounted and without interest charges) from the use of an asset are less than the carrying value, a write-down would be recorded to reduce the related asset to its estimated fair value. No impairment charges were recorded for the years ended December 31, 2016, 2015 or 2014. Patent costs: The Company estimates that the patents it has filed have a future beneficial value. Therefore, costs associated with filing for its patents are capitalized. Once the patent is approved and commercial revenue realized, the costs associated with the patent are amortized over the useful life of the patent. If the patent is not approved, the costs will be expensed. Revenue recognition: Revenue is generated from product sales, recorded on a net sales basis, and historically, manufacturing, development and profit sharing from a development and manufacturing agreement. Product revenue is recognized when all of the following criteria are met: (1) persuasive evidence of an arrangement exists; (2) delivery has occurred or services have been rendered; (3) price to the buyer is fixed and determinable; and (4) collectability is reasonably assured. Revenue from sales transactions where the buyer has the right to return the product is recognized at the time of sale only if (1) the price to the buyer is substantially fixed or determinable at the date of sale, (2) the buyer has paid for the product, or the buyer is obligated to pay for the product and the obligation is not contingent on resale of the product, (3) the buyer's obligation to pay would not be changed in the event of theft or physical destruction or damage of the product, (4) the buyer acquiring the product for resale has economic substance apart from that provided by the Company, (5) the Company does not have significant obligations for future performance to directly bring about resale of the product by the buyer, and (6) the amount of future returns can be reasonably estimated. The Company sells its generic Tussionex to a limited number of pharmaceutical wholesalers. Pharmaceutical wholesalers buy drug products directly from manufacturers. Title to the product passes upon delivery to the wholesalers, when the risks and rewards of ownership are assumed by the wholesaler (freight on board destination). These wholesalers then resell the product to retail customers such as food, drug and mass merchandisers. The Company has a limited sales history for Adzenys XR-ODT and has determined that at this time it cannot reliably estimate expected returns of the product at the time of shipment to wholesalers. Accordingly, the Company defers recognition of revenue on product shipments of Adzenys XR-ODT until the right of return no longer exists, which occurs at the earlier of the time Adzenys XR-ODT units are dispensed through patient prescriptions or expiration of the right of return. The Company calculates patient prescriptions of Adzenys XR-ODT dispensed using an analysis of third-party information. The Company's manufacturing, profit sharing and development revenue ended in 2014 as the Company has terminated the Company's development and manufacturing agreement. As a result of the Company's acquisition of the rights to commercialize and derive future profits from the Tussionex ANDA, the Company will utilize its manufacturing capability to derive revenue directly from sales made by the Company, rather than through the Company's commercial partner. Net product sales Net product sales for the Company's products represent total gross product sales less gross to net sales adjustments. Gross to net sales adjustments include savings offers, prompt payment discounts, wholesaler fees and estimated allowances for product returns, rebates and chargebacks to be incurred on the selling price of the respective product sales. Wholesale distribution fees based on definitive contractual agreements are incurred on the management of these products by wholesalers and are recorded within net sales for generic Tussionex and as deferred wholesale distribution fees in other current assets for Adzenys XR-ODT. The deferred wholesale distribution fees for Adzenys XR-ODT are later recorded within net product sales when revenue associated with those fees is recognized. The Company estimates and records gross to net sales adjustments for product returns, rebates and chargebacks based upon analysis of third-party information, including information obtained from the Company's third party logistics providers ("3PLs"), with respect to its inventory levels and sell-through to the wholesalers' customers, for savings offers from data available from third parties regarding savings offers processed for prescriptions written for the Company's products, and, for generic Tussionex, experience reported by the Company's previous commercialization partners. Due to estimates and assumptions inherent in determining the amount of returns, rebates and chargebacks, the actual amount of returns and claims for rebates and chargebacks may be different from the estimates, at which time reserves would be adjusted accordingly. Wholesale distribution fees and the allowance for prompt pay discounts are recorded at the time of shipment and such fees and allowances and all other accruals are recorded in the same period that the related revenue is recognized. Savings offers The Company offers savings programs for Adzenys XR-ODT to patients covered under commercial payor plans in which the cost of a prescription to such patients is discounted. The Company records the amount redeemed based on information from third-party providers and recognizes the discount as a reduction of revenue in the same period the related revenue is recognized. Product returns Wholesalers' contractual return rights are limited to defective product, product that was shipped in error, product ordered by customer in error, product returned due to overstock, product returned due to dating or product returned due to recall or other changes in regulatory guidelines. The return policy for expired product allows the wholesaler to return such product starting six months prior to expiry date to twelve months post expiry date. Generic Tussionex product returns are estimated based upon data available from sales of the Company's product by its previous commercialization partner and from actual experience as reported by retailers. Historical trend of returns will be continually monitored and may result in future adjustments to such estimates. On August 26, 2014, the U.S. Drug Enforcement Agency reclassified the Company's generic Tussionex from a Schedule III controlled substance to a Schedule II controlled substance which had the effect of requiring unsold product at the wholesalers and the 3PL to either be relabeled or returned. This new ruling was effective October 6, 2014. As such, the Company established reserves for the estimated returns of such product outstanding at the wholesalers as of October 6, 2014. The Company had no inventory labeled as Schedule III at the 3PL as of the effective date. Rebates The Company's products are subject to commercial managed care and government-managed Medicare and Medicaid programs whereby discounts and rebates are provided to participating state governments. Estimated rebates payable under such programs are recorded as a reduction of revenue at the time revenues are recorded. Calculations related to these rebate accruals are estimated based on information from third-party providers. Historical trend of such rebates will be continually monitored and may result in future adjustments to such estimates. Wholesaler Chargebacks The Company's products are subject to certain programs with wholesalers whereby pricing on products is discounted below wholesaler list price to participating entities. These entities purchase products through wholesalers at the discounted price, and the wholesalers charge the difference between their acquisition cost and the discounted price back to the Company. Chargebacks are accounted for by establishing an accrual in an amount equal to the Company's estimate of chargeback claims at the time of product sale based on information provided by third parties. Due to estimates and assumptions inherent in determining the amount of chargebacks, the actual amount of claims for chargebacks may be different from estimates, which may result in adjustments to such reserves. Manufacturing Manufacturing revenue is derived from product manufactured by the Company and sold by the Company's commercial partner under a development and manufacturing agreement. Manufacturing revenue is derived from a contractual supply price paid to the Company by the Company's commercial partners. Profit sharing Profit sharing revenue is recorded as the product is sold by the Company's commercial partner. The profit share is the Company's share of the net profits after taking into account net revenue, which is gross product sales by the Company's commercial partner, net of discounts, returns and allowances incurred by the Company's commercial partner, less collaboration expenses. Development revenue Development revenue from the development and manufacturing agreement has been recognized as the related services are completed. Development revenue in the form of milestone payments is recognized upon achievement of the related milestones and provided that collectability is reasonably assured and other revenue recognition criteria are met. Amounts received under cost reimbursement arrangements for production and research and development are recorded as offsets to the costs incurred and not recognized as revenue. Distribution expenses: Costs invoiced to the Company by its third party logistics firm are classified as cost of goods sold in the consolidated statements of operations. Shipping and handling costs: Amounts billed to customers for shipping and handling fees for the delivery of goods are classified as cost of goods sold in the consolidated statements of operations. Advertising costs: Advertising costs are comprised of print and electronic media placements that are expensed as incurred. The Company recognized advertising costs of $7.4 million during the year ended December 31, 2016. There were no advertising costs incurred during the years ended December 31, 2015 and 2014. Research and development costs: Research and development costs are charged to operations when incurred, include salaries and benefits, facilities costs, overhead costs, raw materials, laboratory and clinical supplies, clinical trial costs, contract services, fees paid to regulatory authorities for review and approval of the Company's product candidates and other related costs, and are included in research and development in the consolidated statements of operations. During the third quarter of 2016, the Company reclassified its approved product and facility regulatory fees out of research and development expense and into cost of sales commensurate with the commercial launch of Adzenys XR-ODT. The Company has reclassified all such applicable regulatory fees for prior quarters and prior years out of research and development expense and into cost of goods sold in accordance with this approach. Income taxes: Income taxes are accounted for using the liability method, under which deferred taxes are determined based on differences between the financial reporting and tax basis of assets and liabilities and are measured using the enacted tax laws that will be in effect when the differences are expected to reverse. Management evaluates the Company's tax positions in accordance with guidance on accounting for uncertainty in income taxes. Using that guidance, tax positions initially need to be recognized in the financial statements when it is more likely than not that the position will be sustained upon examination. As of December 31, 2016 and 2015, the Company has unrecognized tax benefits associated with uncertain tax positions in the consolidated financial statements. These uncertain tax positions were netted against net operating losses (NOL's) with no separate reserve for uncertain tax positions required. Deferred tax assets should be reduced by a valuation allowance if current evidence indicates that it is considered more likely than not that these benefits will not be realized. In evaluating the objective evidence that historical results provide, we consider that three years of cumulative operating losses was significant negative evidence outweighing projections for future taxable income. Therefore, management has determined that it is more likely than not that the deferred tax assets will not be realized. Accordingly, the Company has recorded a valuation allowance to reduce deferred tax assets to zero. Paragraph IV Litigation Costs: Legal costs incurred by the Company in the enforcement of the Company's intellectual property rights are charged to expense as incurred. Warrants: The Company accounts for its warrants and other derivative financial instruments as either equity or liabilities based upon the characteristics and provisions of each instrument. Warrants classified as derivative liabilities are recorded on the Company's balance sheet at their fair value on the date of issuance and prior to completion of the Company's IPO were revalued at each subsequent balance sheet date, with fair value changes recognized as increases or reductions to other income (expense) in the statements of operations. The Company estimates the fair value of its derivative liabilities using third party valuation analysis that utilizes option pricing models and assumptions that are based on the individual characteristics of the warrants or instruments on the valuation date, as well as assumptions for expected volatility, expected life, yield, and risk-free interest rate. Prior to the closing of the IPO, the Company's Series C warrants were determined to be derivative liabilities and they were revalued at each subsequent balance sheet date. Upon closing the IPO, the warrants issued in conjunction with the Series C financing were exchanged in a cashless exercise for 947,185 shares of Series C which converted into 78,926 shares of the Company's common stock. The remaining Series C warrants issued with the senior debt to purchase 170,000 pre-split shares of Series C ("Hercules Warrants") were converted into warrants to purchase 70,833 shares of the Company's common stock and the warrant liability was reclassified to Additional Paid in Capital within Stockholders' Equity (Deficit). Share-based compensation: Share-based compensation awards, including grants of employee stock options and restricted stock and modifications to existing stock options, are recognized in the consolidated statement of operations based on their fair values. Compensation expense related to awards to employees is recognized on a straight-line basis, based on the grant date fair value, over the requisite service period of the award, which is generally the vesting term. The fair value of the Company's stock-based awards to employees and directors is estimated using the Black-Scholes option pricing model, which requires the input of subjective assumptions, including (1) the expected stock price volatility, (2) the expected term of the award, (3) the risk-free interest rate and (4) expected dividends. Due to the previous lack of a public market for the trading of its common stock and a lack of company-specific historical and implied volatility data, the Company has, prior to the IPO, historically utilized third party valuation analyses to determine the fair value. After the closing of the Company's IPO, the Company's board of directors has determined the fair value of each share of underlying common stock based on the closing price of the Company's common stock as reported by the NASDAQ Global Market on the date of grant. Forfeitures are estimated at the time of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. Ultimately, the actual expense recognized over the vesting period will only be for those options that vest. Beginning in July 2016, the Company began recording stock compensation expense in the same income statement line as the cash compensation of the employee with the option in accordance with Staff Accounting Bulletin Topic 14 due to the increased number and amount of options and option compensation. The Company has reclassified all prior periods' amounts out of general and administrative expense to the appropriate income statement line in accordance with this approach. Use of estimates: The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect reported amounts and disclosures. Actual results could differ from those estimates. Concentration of credit risk: Accounts receivable subjects the Company to concentrations of credit risk. Thirteen customers accounted for all the revenue and deferred revenue in the year ended December 31, 2016 and accounts receivable at December 31, 2016 were due from eleven customers. Two customers accounted for 82% of the net revenue for the year ended December 31, 2016, and three customers accounted for 98% of the accounts receivable at December 31, 2016. Four and two customers accounted for substantially all revenue in the years ended December 31, 2015 and 2014, respectively. Accounts receivable at December 31, 2015 were due from three customers. Segment information: Operating segments are defined as components of an enterprise about which separate discrete information is available for evaluation by the chief operating decision maker, or decision-making group, in deciding how to allocate resources and in assessing performance. The Company views its operations and manages its business in one operating segment, which is the development, manufacturing and commercialization of pharmaceuticals. Liquidity: During 2016, 2015 and 2014, the Company produced operating losses and used cash to fund operations. Management intends to achieve profitability through revenue growth from pharmaceutical products developed with its extended-release technologies. The Company does not anticipate it will be profitable until after the successful commercialization of its approved product, Adzenys XR-ODT, or one or more of its ADHD product candidates. Management believes that its existing cash and cash equivalents and short-term investments, taken together with the net proceeds which the Company received from its public offering of common stock completed in February 2017, will be sufficient to fund the Company's operations for at least the next 12 months after the filing of this Annual Report on Form 10-K. Application of revised accounting standards: In April 2012, the Jumpstart Our Business Startups Act (the "JOBS Act"), was enacted in the United States. Section 107 of the JOBS Act provides that an "emerging growth company" can take advantage of the extended transition period provided in Section 7(a)(2)(B) of the Securities Act of 1933, as amended, for complying with new or revised accounting standards. Thus, an emerging growth company can delay the adoption of certain accounting standards until those standards would otherwise apply to private companies. In 2015, the Company irrevocably elected not to avail itself of this extended transition period and, as a result, will adopt new or revised accounting standards on the relevant dates on which adoption of such standards is required for other public companies. Recent accounting pronouncements: In August 2016, the Financial Accounting Standards Board (the "FASB") issued Accounting Standards Update ("ASU") No. 2016-15, Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments . This ASU was designed to reduce the diversity in practice of how the eight specified items are presented and classified in the statement of cash flows, including debt prepayment or debt extinguishment costs. The amendments are effective for public companies for fiscal years beginning after December 15, 2017, including interim periods within those years. The Company believes the amendments will not have a significant effect on its ongoing financial reporting as the Company has classified its debt prepayment and debt extinguishment costs, in the Consolidated Statements of Cash Flows in accordance with the amendments. In March 2016, the FASB issued ASU No. 2016-09, Compensation—Stock Compensation—Improvements to Employee Share-Based Payment Accounting (Topic 718) . For public companies, areas of accounting for share-based payment that this ASU was designed to simplify include: the income tax consequences, the accounting policy for forfeitures, the classification of awards as either equity or liabilities and the classification on the statement of cash flows. The amendments in this ASU are effective for public companies for fiscal years beginning after December 15, 2016, including interim periods within those years. The adoption of this standard is not expected to have a material impact on the Company's business, financial position, results of operations or liquidity. In February 2016, the FASB issued ASU No. 2016-02, Leases (Topic 842) . Under the new guidance, lessees will be required to recognize the following for all leases (with the exception of short-term leases) at the commencement date: 1) a lease liability, which is a lessee's obligation to make lease payments arising from a lease, measured on a discounted basis; and 2) a right-of-use asset, which is an asset that represents the lessee's right to use, or control the use of, a specified asset for the lease term. The new lease guidance simplified the accounting for sale and leaseback transactions primarily because lessees must recognize lease assets and lease liabilities. The amendments in this ASU are effective for fiscal years beginning after December 15, 2019, including interim periods within those years. The new standard must be adopted using a modified retrospective transition and requires application of the new guidance at the beginning of the earliest comparative period presented. The Company is evaluating the effect that the updated standard will have on its consolidated financial statements and related disclosures. In July 2015, the FASB issued ASU No. 2015-11, Inventory—Simplifying the Measurement of Inventory (Topic 330). The amendments in this ASU require an entity to measure inventory that is not measured using the last-in, first-out (LIFO) or retail inventory methods at the lower of cost and net realizable value. Net realizable value is the estimated selling prices in the ordinary course of business, less reasonably predictable costs of completion, disposal and transportation. The amendments in this ASU are effective for fiscal years beginning after December 15, 2016, including interim periods within those years. The Company does not believe that this ASU will have a significant effect on its ongoing financial reporting as valuing inventory at the lower of cost or net realizable value approximates the current policy of valuing inventory at the lower of cost or market. In August 2014, the FASB issued ASU No. 2014-15, Presentation of Financial Statements—Going Concern (Subtopic 205-40): Disclosure of Uncertainties about an Entity's Ability to Continue as a Going Concern. ASU 2014-15 is intended to define management's responsibility to evaluate whether there is substantial doubt about an organization's ability to continue as a going concern and to provide related footnote disclosures. This ASU is for annual periods ending after December 15, 2016, and interim periods within annual periods beginning after December 15, 2016. Early application is permitted for annual or interim reporting periods for which the financial statements have not previously been issued. The Company has performed the review required by this ASU and believes the Company presently has sufficient liquidity to continue to operate for the next twelve months from its filing date. In May 2014, the FASB issued ASU No. 2014-09, Revenue from Contracts with Customers (Topic 606). The guidance replaces transaction-and industry-specific revenue recognition guidance under current U.S. GAAP with a principles-based approach for determining revenue recognition. The new guidance requires an entity to recognize the amount of revenue based on the value of transferred goods or services to customers. There are also additional disclosure about the nature, amount, timing and uncertainty of revenue and cash flows arising from customer contracts, including significant judgments and changes in judgments and assets recognized from costs incurred to obtain or fulfill a contract. The FASB delayed the effective date to annual reporting periods beginning after December 15, 2017, including interim reporting periods within that reporting period. Earlier application is permitted only as of annual reporting periods beginning after December 15, 2016, including interim reporting periods within that reporting period. In addition, in March and April 2016, the FASB issued new guidance intended to improve the operability and understandability of the implementation guidance on principal versus agent considerations. Both amendments permit the use of either a retrospective or cumulative effect transition method and are effective for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2017, with early application permitted. The Company has limited sales history for its branded product that may not allow for reliable estimates of expected returns of the product at the time of shipment to wholesalers. The Company is assessing other market data and the impact of this new standard on its financial statements and has not yet selected a transition method. From time to time, additional new accounting pronouncements are issued by the FASB or other standard setting bodies and adopted by the Company as of the specified effective date. Unless otherwise discussed, the Company believes t |