Basis of Presentation and Summary of Significant Accounting Policies | Basis of Presentation and Summary of Significant Accounting Policies Basis of Presentation and Principles of Consolidation The accompanying consolidated financial statements have been prepared in accordance with generally accepted accounting principles in the United States of America ("GAAP") and the applicable rules and regulations of the Securities and Exchange Commission ("SEC") and include the accounts of Codexis, Inc. and its wholly-owned subsidiaries. Certain prior year amounts have been reclassified in the Consolidated Statements of Cash Flows to conform to the 2021 presentation, however these reclassifications had no effect on the reported results of operations. The consolidated financial statements include the accounts of Codexis, Inc. and its wholly owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. Use of Estimates The preparation of our consolidated financial statements in conformity with GAAP requires us to make estimates, judgments and assumptions that may affect the reported amounts of assets, liabilities, equity, revenues and expenses and related disclosure of contingent assets and liabilities. We regularly assess these estimates which primarily affect revenue recognition, inventories, valuation of equity investments, goodwill arising out of business acquisitions, accrued liabilities, stock awards, and the valuation allowances associated with deferred tax assets. Actual results could differ from those estimates and such differences may be material to the consolidated financial statements. Segment Reporting We report two business segments, Performance Enzymes and Novel Biotherapeutics, which are based on our operating segments. Operating segments are defined as components of an enterprise about which separate financial information is available that is evaluated regularly by the chief operating decision maker or decision making group (“CODM”), in deciding how to allocate resources, and in assessing performance. Our CODM is our Chief Executive Officer. Our business segments are primarily based on our organizational structure and our operating results as used by our CODM in assessing performance and allocating resources for the Company . We do not allocate or evaluate assets by segment. The Novel Biotherapeutics segment focuses on new opportunities in the pharmaceutical industry to discover or improve novel biotherapeutic drug candidates that will target human diseases that are in need of improved therapeutic interventions. Similarly, we believe that we can deploy our platform technology to improve specific characteristics of a customer’s pre-existing biotherapeutic drug candidate, such as its activity, stability, or immunogenicity. The Performance Enzymes segment consists of biocatalyst products and services with focus on pharmaceutical, food, molecular diagnostics, and other industrial markets. Foreign Currency Translation The USD is the functional currency for our operations outside the United States. Accordingly, non-monetary assets and liabilities originally acquired or assumed in other currencies are recorded in USD at the exchange rates in effect at the date they were acquired or assumed. Monetary assets and liabilities denominated in other currencies are translated into United States dollars at the exchange rates in effect at the balance sheet date. Translation adjustments are recorded in other expense in the consolidated statements of operations. Gains and losses realized from non-USD transactions, including intercompany balances not considered as permanent investments, denominated in currencies other than an entity’s functional currency are included in other expense in the accompanying consolidated statements of operations. Revenue Recognition Our revenues are derived primarily from product revenue and collaborative research and development agreements. The majority of our contracts with customers typically contain multiple products and services. We account for individual products and services separately if they are distinct-that is, if a product or service is separately identifiable from other items in the contract and if a customer can benefit from it on its own or with other resources that are readily available to the customer. In determining the appropriate amount of revenue to be recognized as we fulfill our obligations under our product revenue and collaborative research and development agreements, we perform the following steps: (i) identification of the promised goods or services in the contract; (ii) determination of whether the promised goods or services are performance obligations, including whether they are distinct in the context of the contract; (iii) measurement of the transaction price, including the constraint on variable consideration; (iv) allocation of the transaction price to the performance obligations based on estimated selling prices; and (v) recognition of revenue when (or as) we satisfy each performance obligation. The majority of our collaborative contracts contain multiple revenue streams such as upfront and/or annual license fees, fees for research and development services, contingent milestone payments upon achievement of contractual criteria, and royalty fees based on the licensees' product revenue or usage, among others. We determine the stand-alone selling price (“SSP”) and allocate consideration to distinct performance obligations. Typically, we base our SSPs on our historical sales. If an SSP is not directly observable, then we estimate the SSP taking into consideration market conditions, forecasted sales, entity-specific factors and available information about the customer. We estimate the SSP for license rights by using historical information if licenses have been previously sold to customers and for new licenses, we consider multiple methods, including a discounted cash flow method which includes the following key assumptions: the development timelines, revenue forecasts, commercialization expenses, discount rate, and the probability of technical and regulatory success. We account for a contract with a customer when there is approval and commitment from both parties, the rights of the parties are identified, payment terms are identified, the contract has commercial substance and collectability of consideration is probable. Non-cancellable purchase orders received from customers to deliver a specific quantity of product, when combined with our order confirmation, in exchange for future consideration, create enforceable rights and obligations on both parties and constitute a contract with a customer. We measure revenue based on the consideration specified in the contract with each customer, net of any sales incentives and taxes collected on behalf of government authorities. We recognize revenue in a manner that best depicts the transfer of promised goods or services to the customer, when control of the product or service is transferred to a customer. We make significant judgments when determining the appropriate timing of revenue recognition. The following is a description of principal activities from which we generate revenue: Product Revenue Product revenue consist of sales of biocatalysts, pharmaceutical intermediates and Codex ® biocatalyst panels and kits. A majority of our product revenue is made pursuant to purchase orders or supply agreements and is recognized either at a point in time when the control of the product has been transferred to the customer typically upon shipment or over time as the product is manufactured because we have a right to payment from the customer under a binding, non-cancellable purchase order, and there is no alternate use of the product for us as it is specifically made for the customer’s use. Certain of our agreements provide options to customers which they can exercise at a future date, such as the option to purchase our product during the contract duration at discounted prices and an option to extend their contract, among others. In accounting for customer options, we determine whether an option is a material right and this requires us to exercise significant judgment. If a contract provides the customer an option to acquire additional goods or services at a discount that exceeds the range of discounts that we typically give for that product or service for the same class of customer, or if the option provides the customer certain additional goods or services for free, the option may be considered a material right. If the contract gives the customer the option to acquire additional goods or services at their normal SSPs, we would likely determine that the option is not a material right and, therefore, account for it as a separate performance obligation when the customer exercises the option. We primarily account for options which provide material rights using the alternative approach available pursuant to the applicable accounting guidance, as we concluded we meet the criteria for using the alternative approach. Therefore, the transaction price is calculated as the expected consideration to be received for all the goods and services we expect to provide under the contract. We update the transaction price for expected consideration, subject to constraint, each reporting period if our estimates of future goods to be ordered by customers change. Research and Development Revenues We perform research and development activities as specified in each respective customer agreement. We identify each performance obligation in our research and development agreements at contract inception. We allocate the consideration to each distinct performance obligation based on the estimated SSP of each performance obligation. Performance obligations included in our research and services agreements typically include research and development services for a specified term, periodic reports and small samples of enzyme produced. The majority of our research and development agreements are based on a contractual rate per dedicated project team working on the project. The underlying product that we develop for customers does not create an asset with an alternative use to us and the customer receives benefits as we perform the work towards completion. Thus, our performance obligations are generally satisfied over time as the service is performed. We utilize an appropriate method of measuring progress towards the completion of our performance obligations to determine the timing of revenue recognition. For each performance obligation that is satisfied over time, we recognize revenue using a single measure of progress, typically based on hours incurred. Our contracts frequently provide customers with rights to use or access our products or technology, along with other promises or performance obligations. We must first determine whether the license is distinct from other promises, such as our promise to manufacture a product. If we determine that the customer cannot benefit from the license without our manufacturing capability, the license will be accounted for as combined with the other performance obligations. If we determine that a license is distinct and has significant standalone functionality, we would recognize revenues from a functional license at a point in time when the license is transferred to the customer, and the customer can use and benefit from it. We estimate the SSP for license rights by using historical information if licenses have been previously sold to customers and for new licenses, we consider multiple methods, including a discounted cash flow method which includes the following key assumptions: the development timelines, revenue forecasts, commercialization expenses, discount rate, and the probability of technical and regulatory success. For licenses that have been previously sold to other customers, we use historical information to determine SSP. At the inception of each arrangement that includes variable consideration such as development milestone payments, we evaluate whether the milestones are considered probable of being reached and estimate the amount to be included in the transaction price using the most likely amount method. If it is probable that a significant revenue reversal would not occur, the associated milestone value is included in the transaction price. Milestone payments that are not within our control or the licensee, such as regulatory approvals, are not considered probable of being achieved until those approvals are received. The transaction price is then allocated to each performance obligation on a relative stand-alone selling price basis, for which we recognize revenue as or when the performance obligations under the contract are satisfied. At the end of each subsequent reporting period, we re-evaluate the probability of achievement of such development milestones and any related constraint, and if necessary, adjust our estimate of the overall transaction price. Any such adjustments are recorded on a cumulative catch-up basis, which would affect license, collaboration and other revenues and earnings in the period of adjustment. Our CodeEvolver ® platform technology transfer collaboration agreements typically include license fees, upfront fees, and variable consideration in the form of milestone payments, and sales or usage-based royalties. We have recognized revenues from our platform technology transfer agreements over time as our customer learns to use our technology. For license agreements that include sales or usage-based royalty payments to us, we do not recognize revenue until the underlying sales of the product or usage has occurred. At the end of each reporting period, we estimate the royalty amount. We recognize revenue at the later of (i) when the related sale of the product occurs, or (ii) when the performance obligation to which some or all of the royalty has been allocated has been satisfied, or partially satisfied. Practical Expedients, Elections, and Exemptions We apply certain practical expedients available which permit us not to adjust the amount of consideration for the effects of a significant financing component if, at contract inception, the expected period between the transfer of promised goods or services and customer payment is one year or less. We perform monthly services under our research and development agreements, and we use a practical expedient permitting us to recognize revenue at the same time that we have the right to invoice our customer for monthly services completed to date. We have elected to treat shipping and handling activities as fulfillment costs. We have elected to record revenue net of sales and other similar taxes. Contract Assets Contract assets include amounts related to our contractual right to consideration for completed performance obligations not yet invoiced. Contract assets are reclassified to receivables when the rights become unconditional. Contract Liabilities Contract liabilities are recorded as deferred revenues and include payments received in advance of performance under the contract. Contract liabilities are realized when the development services are provided to the customer or control of the products has been transferred to the customer. A portion of our contract liabilities relate to supply arrangements that contain material rights that are recognized using the alternative method, under which the aggregate amount invoiced to the customer for shipped products, including contractual fees, is higher than the amount of revenue recognized based on the transaction price allocated to the shipped products. Contract Costs We recognize a non-current asset for the incremental costs of obtaining a contract with a customer if the entity expects to recover such costs. Incremental costs are costs that would not have been incurred if the contract had not been obtained. Examples of contract costs are commissions paid to sales personnel. We do not typically incur significant incremental costs because the compensation of our salespeople is not based on contracts closed but on a mixture of company goals, individual goals, and sales goals. If a commission paid is directly related to obtaining a specific contract, our policy is to capitalize and amortize such costs on a systematic basis, consistent with the pattern of transfer of the good or service to which the asset relates. Contract costs are reported in other non-current assets. Cost of Product Revenue Cost of product revenue comprises both internal and third party fixed and variable costs including materials and supplies, labor, facilities, and other overhead costs associated with our product sales. Shipping costs are included in our cost of product revenue. Such charges were not significant in any of the periods presented. Fulfillment costs, such as shipping and handling, are recognized at a point in time and are included in cost of product sales. Cost of Research and Development Services Cost of research and development services related to services under research and development agreements approximate the research funding over the term of the respective agreements and is included in research and development expense. Costs of services provided under license and platform technology transfer agreements are included in research and development expenses and are expensed in the periods in which such costs are incurred. Research and Development Expenses Research and development expenses consist of costs incurred for internal projects and partner-funded collaborative research and development activities, as well as license and platform technology transfer agreements, as mentioned above. These costs include our direct and research-related overhead expenses, which include salaries and other personnel-related expenses (including stock-based compensation), occupancy-related costs, supplies, and depreciation of facilities and laboratory equipment, as well as external costs, and are expensed as incurred. Costs to acquire technologies that are utilized in research and development and that have no alternative future use are expensed when incurred. Advertising Advertising costs are expensed as incurred and included in selling, general and administrative expenses in the consolidated statements of operations. Advertising costs were $0.3 million, $0.3 million and $0.5 million in the years ended December 31, 2021, 2020 and 2019, respectively. Stock-Based Compensation We use the Black-Scholes-Merton option pricing model to estimate the fair value of options granted under our equity incentive plans. The Black-Scholes-Merton option pricing model requires the use of assumptions, including the expected term of the award and the expected stock price volatility. The expected term is based on historical exercise behavior on similar awards, giving consideration to the contractual terms, vesting schedules and expectations of future employee behavior. We use historical volatility to estimate expected stock price volatility. The risk-free rate assumption is based on United States Treasury instruments whose terms are consistent with the expected term of the stock options. The expected dividend assumption is based on our history and expectation of dividend payouts. Restricted Stock Units (“RSUs"), Restricted Stock Awards (“RSAs”) and performance-contingent restricted stock units (“PSUs”) are measured based on the fair market values of the underlying stock on the dates of grant. Performance based options (“PBOs”) are measured using Black-Scholes-Merton option pricing model. The vesting of PBOs and PSUs awarded is conditioned upon the attainment of one or more performance objectives over a specified period and upon continued employment through the applicable vesting date. At the end of the performance period, shares of stock subject to the PBOs and PSUs vest based upon both the level of achievement of performance objectives within the performance period and continued employment through the applicable vesting date. Stock-based compensation expense is calculated based on awards ultimately expected to vest and is reduced for estimated forfeitures at the time of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. The estimated annual forfeiture rates for stock options, RSUs, PSUs, PBOs, and RSAs are based on historical forfeiture experience. The estimated fair value of stock options, RSUs and RSAs are expensed on a straight-line basis over the vesting term of the grant and the estimated fair value of PSUs and PBOs are expensed using an accelerated method over the term of the award once management has determined that it is probable that the performance objective will be achieved. Compensation expense is recorded over the requisite service period based on management's best estimate as to whether it is probable that the shares awarded are expected to vest. Management assesses the probability of the performance milestones being met on a continuous basis. Cash and Cash Equivalents We consider all highly liquid investments with maturity dates of three months or less at the date of purchase to be cash equivalents. Cash and cash equivalents consist of cash on deposit with banks and money market funds. The majority of cash and cash equivalents is maintained with major financial institutions in the United States. Deposits with these financial institutions may exceed the amount of insurance provided on such deposits. Restricted Cash In 2016, we began the process of liquidating our Indian subsidiary. The local legal requirements for liquidation required us to maintain our subsidiary's cash balance in an account managed by a legal trustee to satisfy our financial obligations. This balance is recorded as current restricted cash on the consolidated balance sheets of $0.6 million as of December 31, 2021 and 2020. Pursuant to the terms of a lease agreement for our Redwood City, CA facilities, we obtained a letter of credit collateralized by cash deposit balances of $1.1 million as of December 31, 2021 and 2020. Pursuant to the terms of our new lease agreement for our San Carlos, CA facility, we also obtained a letter of credit collateralized by cash deposit balances of $0.5 million as of December 31, 2021. These cash deposits balances are recorded as non-current restricted cash on the consolidated balance sheets. For additional information, see Note 13, “Commitments and Contingencies”. Fair Value Measurements Fair value is defined as the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. In determining fair value, we utilize valuation techniques that maximize the use of observable inputs and minimize the use of unobservable inputs to the extent possible and we consider counterparty credit risk in our assessment of fair value. Carrying amounts of financial instruments, including cash equivalents, accounts receivable, accounts payable, and accrued liabilities, approximate their fair values as of the balance sheet dates because of their short maturities. The fair value hierarchy distinguishes between (1) market participant assumptions developed based on market data obtained from independent sources (observable inputs) and (2) an entity’s own assumptions about market participant assumptions developed based on the best information available in the circumstances (unobservable inputs). The fair value hierarchy consists of three broad levels, giving the highest priority to unadjusted quoted prices in active markets for identical assets or liabilities (Level 1) and the lowest priority to unobservable inputs (Level 3). The three levels of the fair value hierarchy are described below: • Level 1: Inputs that are unadjusted, quoted prices in active markets for identical assets or liabilities at the measurement date. • Level 2: Inputs that are either directly or indirectly observable for the asset or liability through correlation with market data at the measurement date and for the duration of the instrument’s anticipated life. • Level 3: Unobservable inputs that are supported by little or no market activity and that are significant to the fair value of the assets or liabilities and which reflect management’s best estimate of what market participants would use in pricing the asset or liability at the measurement date. Concentrations of Credit Risk Financial instruments that potentially subject us to significant concentrations of credit risk consist primarily of cash and cash equivalents, accounts receivable and unbilled receivables, contract assets, non-marketable securities, and restricted cash. Cash that is not required for immediate operating needs is invested principally in money market funds. Cash and cash equivalents are invested through banks and other financial institutions in the United States, India, and the Netherlands. Such deposits in those countries may be in excess of insured limits. The Company has not experienced material losses on its deposits of cash and cash equivalents. We perform ongoing credit evaluations of our customer's financial condition whenever deemed necessary. We maintain an allowance for doubtful accounts based on the expected collectability of all financial assets, which takes into consideration an analysis of historical bad debts, specific customer creditworthiness and current economic trends. As of December 31, 2021, we had one customer that accounted for 62% of our accounts receivable balance. As of December 31, 2020, three customers accounted for 70% of our accounts receivable balance. We believe the accounts receivable balances from our largest customers do not represent a significant credit risk, based on cash flow forecasts, balance sheet analysis, and past collection experience. Financial Assets and Allowances W e currently sell enzymes primarily to pharmaceutical and fine chemicals companies throughout the world by the extension of trade credit terms based on an assessment of each customer's financial condition. Trade credit terms are generally offered without collateral and may include an insignificant discount for prompt payment for specific customers. To manage our credit exposure, we perform ongoing evaluations of our customers' financial conditions. In addition, accounts receivable include amounts owed to us under our collaborative research and development agreements. We recognize accounts receivable at invoiced amounts and we maintain a valuation allowance for credit losses using an impairment model (known as the “current expected credit loss model” or “CECL”) based on estimates and forecasts of future conditions requiring recognition of a lifetime of expected credit losses at inception on our financing receivables measured at amortized costs which consisted of accounts receivable, contract assets, and unbilled receivables. We have determined that our financing receivables share similar risk characteristics including: (i) customer origination in the pharmaceutical and fine chemicals industry, (ii) similar historical credit loss pattern of customers (iii) no meaningful trade receivable differences in terms, (iv) similar historical credit loss experience and (v) our belief that the composition of certain assets are comparable to our historical portfolio used to develop loss history. As a result, we measured the allowance for credit loss (“ACL”) on a collective basis. Our ACL methodology considers how long the asset has been past due, the financial condition of the customers, which includes ongoing quarterly evaluations and assessments of changes in customer credit ratings, and other market data that we believe are relevant to the collectability of the assets. Nearly all financing receivables are due from customers that are highly rated by major rating agencies and have a long history of no credit loss. We derive our ACL by establishing an impairment rate attributable to assets not yet identified as impaired. We derive our ACL by initially relying on our historical financing receivable loss rate which contemplates the full contractual life of the assets sharing similar risk characteristics, adjusted to reflect (i) the extent to which we have determined current conditions differ from the conditions that existed for the period over which historical loss information was evaluated and (ii) by taking into consideration the changes in certain macroeconomic historical and forecasted information. We apply the ACL to past due financing receivables and record charges to the ACL as a provision to credit loss expense in the Statement of Operations. Financing receivables we identify as uncollectible are also charged against the ACL. We adjust the impairment rate to reflect the extent to which we have determined current conditions differ from the conditions that existed for the period over which historical loss information was evaluated. Adjustments to historical loss information may be qualitative or quantitative in nature and reflect changes related to relevant data. Unbilled Receivable The timing of revenue recognition may differ from the timing of invoicing to our customers. When we satisfy (or partially satisfy) a performance obligation, prior to being able to invoice the customer, we recognize an unbilled receivable when the right to consideration is unconditional. Inventories Inventories are stated at the lower of cost or net realizable value. Cost is determined using a weighted-average approach, assuming full absorption of direct and indirect manufacturing costs, or based on cost of purchasing from our vendors. If inventory costs exceed expected net realizable value due to obsolescence or lack of demand, valuation adjustments are recorded for the difference between the cost and the expected net realizable value. Concentrations of Supply Risk We rely on a limited number of suppliers for our products. We believe that other vendors would be able to provide similar products; however, the qualification of such vendors may require substantial start-up time. In order to mitigate any adverse impacts from a disruption of supply, we attempt to maintain an adequate supply of critical single-sourced materials. For certain materials, our vendors maintain a supply for us. We outsource the large scale manufacturing of our products to contract manufacturers with facilities in Austria and Italy. Property and Equipment Property, equipment and leasehold improvements are stated at cost less accumulated depreciation and amortization calculated using the straight-line method over their estimated useful lives as follows: Asset classification Estimated useful life Laboratory equipment 5 years Computer equipment and software 3 to 5 years Office equipment and furniture 5 years Leasehold improvements Lesser of useful life or lease term Property and equipment classified as construction in process includes equipment that has been received but not yet placed in service. Normal repairs and maintenance costs are expensed as incurred. Impairment of Long-Lived Assets We have not identified property and equipment by segment since these assets are shared or commingled. We evaluate the carrying values of long-lived assets, which include property and equipment and right-of-use assets, whenever events, changes in business circumstances or our planned use of long-lived assets indicate that their carrying amounts may not be fully recoverable or that their useful lives are no longer appropriate. If these facts and circumstances exist, we assess for recovery by comparing the carrying values of long-lived assets with their future net undiscounted cash flows. If the comparison indicates that impairment exists, long-lived assets are written down to their respective fair values based on discounted cash flows. Significant management judgment is required in the forecast of future operating results that are used in the preparation of unexpected undiscounted cash flows. As of December 31, 2021 and 2020, there were no events or changes in circumstances which indicated that the carrying amount of our asset group might not be recoverable. No impairment charges for long-lived assets were recorded during the years ended December 31, 2021, 2020 and 2019. Investment in Non-Marketable Securities Investment in Non-Marketable Equity Securities We measure investments in non-marketable equity securities without a readily determinable fair value using a measurement alternative that measures these securities at the cost method minus impairment, if any, plus or minus changes resulting from observable price changes on a non-recurring basis. Gains and losses on these securities are recognized in other income (expense), |