Summary of Significant Accounting Policies | SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES The following accounting policies should be read in conjunction with a summary of the significant accounting policies the Company has disclosed in its Annual Report on Form 10-K for the year ended December 31, 2017 . Accounts Receivable Accounts receivable are carried at invoiced amount less allowance for doubtful accounts. Management estimates the allowance for doubtful accounts based on existing economic conditions, the financial conditions of customers, and the amount and age of past due accounts. Receivables are considered past due if full payment is not received by the contractual due date. Past due accounts are generally written off against the allowance for doubtful accounts only after reasonable collection attempts have been exhausted. As of and for the three months ended March 31, 2018 , the Company has recognized $365,155 and $16,688 as receivables from the federal government and customers, respectively, related to the 2017 biodiesel mixture excise tax credit. Renewable Identification Numbers (RINs) When the Company produces and sells a gallon of biomass-based diesel, 1.5 to 1.7 RINs per gallon are generated. RINs are used to track compliance with Renewable Fuel Standards (RFS2). RFS2 allows the Company to attach between zero and 2.5 RINs to any gallon of biomass-based diesel. As a result, a portion of the selling price for a gallon of biomass-based diesel is generally attributable to RFS2 compliance. However, RINs that the Company generates are a form of government incentive and not a result of the physical attributes of the biomass-based diesel production. Therefore, no cost is allocated to the RIN when it is generated, regardless of whether the RIN is transferred with the biomass-based diesel produced or held by the Company pending attachment to other biomass-based diesel production sales. In addition, the Company also obtains RINs from third parties who have separated the RINs from gallons of biomass-based diesel. From time to time, the Company holds varying amounts of these separated RINs for resale. RINs obtained from third parties are initially recorded at their cost and are subsequently revalued at the lower of cost or net realizable value as of the last day of each accounting period. The resulting adjustments are reflected in costs of goods sold for the period. The value of these RINs is reflected in “Prepaid expenses and other assets” on the Condensed Consolidated Balance Sheets. The cost of goods sold related to the sale of these RINs is determined using the average cost method, while market prices are determined by RIN values, as reported by the Oil Price Information Service ("OPIS"). Low Carbon Fuel Standards The Company generates Low Carbon Fuel Standards ("LCFS") credits for its low carbon fuels or blendstocks when its qualified low carbon fuels are transported into an LCFS market. LCFS credits are used to track compliance with the LCFS. As a result, a portion of the selling price for a gallon of biomass-based diesel sold into an LCFS market is also attributable to LCFS compliance. However, LCFS credits that the Company generates are a form of government incentive and not a result of the physical attributes of the biomass-based diesel production. Therefore, no cost is allocated to the LCFS credit when it is generated, regardless of whether the LCFS credit is transferred with the biomass-based diesel produced or held by the Company pending attachment to other biomass-based diesel sales that do not transfer credits. In addition, the Company also obtains LCFS credits from third-party trading activities. From time to time, the Company holds varying amounts of these third-party LCFS credits for resale. LCFS credits obtained from third parties are initially recorded at their cost and are subsequently revalued at the lower of cost or net realizable value as of the last day of each accounting period, and the resulting adjustments are reflected in costs of goods sold for the period. The value of LCFS credits obtained from third parties is reflected in “Prepaid expenses and other assets” on the Condensed Consolidated Balance Sheet. The cost of goods sold related to the sale of these LCFS credits is determined using the average cost method, while market prices are determined by LCFS values, as reported by the OPIS. At March 31, 2018 and December 31, 2017 , the Company held no LCFS credits purchased from third parties. The Company records assets acquired and liabilities assumed through the exchange of non-monetary assets based on the fair value of the assets and liabilities acquired or the fair value of the consideration exchanged, whichever is more readily determinable. Property, Plant and Equipment Property, plant and equipment is recorded at cost less accumulated depreciation. Maintenance and repairs are expensed as incurred. Depreciation expense is computed on a straight-line method based upon estimated useful lives of the assets. In June 2017, the Company experienced a fire at its Madison facility, resulting in the shutdown of the facility. To date, the Company impaired fixed assets with a total net book value of approximately $2,671 as a result of the fire in June 2017 and received payments in the amounts of $12,000 and $3,620 to cover initial costs incurred for property losses and business interruption, respectively. Convertible Debt In June 2016, the Company issued $152,000 aggregate principal amount of 4% convertible senior notes due in 2036 (the "2036 Convertible Senior Notes"). The embedded conversion option was initially accounted for as an embedded derivative liability as the Company could not elect to issue shares of common stock upon conversion of the 2036 Convertible Notes to the extent such election would result in the issuance of more than 19.99% of the common stock outstanding immediately before the issuance of the 2036 Convertible Notes unless the Company received stockholder approval for such issuance. On December 8, 2017, at the special meeting of stockholders, the Company obtained approval from its stockholders to remove the common stock issuance restrictions in connection with conversions of the 2036 Convertible Notes. Accordingly, the embedded conversion option, valued at $45,933 and net of tax of $18,025 , was reclassified into Additional Paid-in Capital at December 8, 2017. See "Note 7 - Debt" for a further description of the transaction. Capped Call Transaction In connection with the issuance of the 2014 Convertible Senior Notes, the Company entered into capped call transactions. The purchased capped call transactions were recorded as a reduction to common stock-additional paid-in-capital. Because this was considered to be an equity transaction and qualifies for the derivative scope exception, no future changes in the fair value of the capped call will be recorded by the Company. During 2016, in connection with the issuance of the 2036 Convertible Notes, certain call options covered by the original capped call transaction were rebalanced and reset to cover 100% of the total number of shares of the Company's Common Stock underlying the remaining principal of the 2019 Convertible Notes. The impact of these transactions, net of tax, was reflected as an addition/reduction to common stock-additional paid-in capital as presented in the Consolidated Statements of Stockholders' Equity. Security Repurchase Programs In December 2017, the Company's board of directors approved a repurchase program of up to $75,000 of the Company's convertible notes and/or shares of common stock. Under the program, the Company may repurchase convertible notes or shares from time to time in open market transactions, privately negotiated transactions or by other means. The timing and amount of repurchase transactions are determined by the Company's management based on its evaluation of market conditions, share price, bond price, legal requirements and other factors. During the three months ended March 31, 2018 , the Company repurchased 641,601 shares of Common Stock for $7,828 under this program. In addition, the Company used approximately $6,689 to repurchase $6,311 principal amount of the 2019 Convertible Senior Notes. Research and Development Research and development ("R&D") costs are charged to expense as incurred. In process research and development ("IPR&D") assets acquired in connection with acquisitions are recorded on the Condensed Consolidated Balance Sheets as intangible assets. Revenue Recognition In the first quarter of 2018, the Company adopted Accounting Standards Update (ASU) 2014-09, Revenue from Contracts with Customers (Topic 606). Under the ASU, revenue is recognized when a customer obtains control of promised goods or services in an amount that reflects the consideration the entity expects to receive in exchange for those goods or services. In addition, the standard requires disclosure of the nature, amount, timing, and uncertainty of revenue and cash flows arising from contracts with customers. The Company applied the five-step method outlined in the ASU to all contracts with customers and elected the modified retrospective implementation method. The Company has generally a single performance obligation in its arrangements with customers. The Company believes for most of its contracts with customers, control is transferred at a point in time, typically upon delivery to the customers. When the Company performs shipping and handling activities after the transfer of control to the customers (e.g., when control transfers prior to delivery), they are considered as fulfillment activities, and accordingly, the costs are accrued for when the related revenue is recognized. Taxes collected from customers relating to product sales and remitted to governmental authorities are excluded from revenues. The Company generally expenses sales commissions when incurred because the amortization period would have been less than one year. The Company records these costs within selling, general and administrative expenses. The implementation of the new standard did not have any material impact on the measurement or recognition of revenue of prior periods, however additional disclosures have been added in accordance with the ASU. The following is a description of principal activities from which we generate revenue. Revenues from contracts with customers are recognized when control of the promised goods or services are transferred to our customers, in an amount that reflects the consideration that we expect to receive in exchange for those goods or services. • sales of biodiesel and renewable diesel produced at our facilities, including RINs and LCFS credits; • resale of finished biomass-based diesel, RINs and LCFS credits acquired from third parties, and raw material feedstocks acquired from others; • revenues from our sale of petroleum-based heating oil and ultra-low sulfur diesel, or ULSD, acquired from third parties, along with the sale of these petroleum-based products further blended with biodiesel produced at our wholly owned facilities; • sales of glycerin, other co-products of the biomass-based diesel production process; • incentive payments from federal and state governments, including the BTC, and from the USDA Advanced Biofuel Program; and • other revenue: • collaborative research and development and other service revenue for research and development activities to continue to build out the technology platform; and • sales of renewable chemical products. Disaggregation of revenue: All revenue recognized in the income statement, except for Biomass-based diesel Government Incentives, is considered to be revenue from contracts with customers. The following table depicts the disaggregation of revenue according to product line and segment: Reportable Segment Three months ended March 31, 2018 Biomass-based Services Renewable Corporate Intersegment Consolidated Biomass-based diesel sales, net of BTC related amount due to customers of $144,944 $ 166,191 $ — $ — $ 3,579 $ (17,683 ) $ 152,087 Petroleum diesel sales — — — 70,964 — 70,964 Other biomass-based diesel revenue 51,710 — — — — 51,710 Separated RIN sales 47,179 — — — — 47,179 Other revenues — 35,215 1,860 — (35,048 ) 2,027 Total revenues from contracts with customers $ 265,080 $ 35,215 $ 1,860 $ 74,543 $ (52,731 ) $ 323,967 Biomass-based diesel government incentives 365,285 — — — — $ 365,285 Total revenues $ 630,365 $ 35,215 $ 1,860 $ 74,543 $ (52,731 ) $ 689,252 Contract balances: The following table provides information about receivables and contract liabilities from contracts with customers: March 31, Accounts receivable $ 98,593 Short-term contract liabilities (deferred revenue) $ 1,740 Short-term contract liabilities (accounts payable) $ 150,776 The Company receives payments from customers based upon contractual billing schedules; accounts receivable are recorded when the right to consideration becomes unconditional. Contract liabilities include payments received in advance of performance under the contract, and are realized with the associated revenue recognized under the contract. While in general the Company has not historically offered sales incentives to customers, the uncertainty around the reinstatement of the federal biodiesel tax credit led to the Company and other market participants acting as if the federal biodiesel tax credit would be reinstated throughout the year and entering into agreements with both customers and vendors throughout the year to capture the credit when or if reinstated. The impacts of the agreements with customers are recorded as contract liabilities in accounts payable and as adjustments to Biomass-based diesel sales, whereas agreements with vendors are recorded net as adjustments to Biomass-based diesel costs of goods sold on the Condensed Consolidated Statements of Operations. Significant changes to the contract liabilities during the quarter are as follows: January 1, 2018 Cash receipts Less: Impact on Other March 31, 2018 Deferred revenue $ 2,218 $ 10,507 $ 10,985 $ — $ 1,740 Payables to customers related to BTC — — (144,944 ) 5,832 150,776 $ 2,218 $ 10,507 $ (133,959 ) $ 5,832 $ 152,516 New Accounting Standards On February 25, 2016, the FASB issued ASU 2016-02, which introduces a lessee model that brings most leases on the balance sheet. The new standard also aligns many of the underlying principles of the new lessor model with those in ASC 606, the FASB’s new revenue recognition standard (e.g., those related to evaluating when profit can be recognized). Furthermore, the ASU addresses other concerns related to the current leases model. The ASU is effective for annual periods beginning after December 15, 2018 and interim periods therein. While the Company is continuing to assess all potential impacts of the standard, the Company currently believes the most significant impact relates to its accounting for office, railcar and terminal operating leases. The Company plans to apply a modified retrospective transition approach to each applicable lease that exists at January 1, 2017 as well as leases entered after this date. On January 25, 2018, the FASB issued ASU 2018-01, which amends the Board’s new leasing standard, ASU 2016-02 (codified in ASC 842), to provide a transition practical expedient for existing or expired land easements (i.e., rights to access, cross, or otherwise use someone else’s land for a specified purpose) that were not previously accounted for in accordance with ASC 840. The practical expedient would allow entities to elect not to assess whether those land easements are, or contain, leases in accordance with ASC 842 when transitioning to the new leasing standard. However, the ASU clarifies that land easements entered into (or existing land easements modified) on or after the effective date of the new leasing standard must be assessed under ASC 842. T he Company is evaluating the impact of this guidance on its consolidated financial statements as part of the lease standard adoption project, but does not expect the impact to be significant. On August 28, 2017, the FASB issued ASU 2017-12, which amends the hedge accounting recognition and presentation requirements in ASC 815 to (1) improve the transparency and understandability of information conveyed to financial statement users about an entity’s risk management activities by better aligning the entity’s financial reporting for hedging relationships with those risk management activities and (2) reduce the complexity of and simplify the application of hedge accounting by preparers. T he Company is evaluating the impact on its consolidated financial statements. On December 22, 2017, President Donald Trump signed into law “H.R. 1”, formerly known as the “Tax Cuts and Jobs Act” (the “Tax Legislation”). The Tax Legislation, which became effective on January 1, 2018, significantly revises the U.S. tax code by, among other things, lowering the corporate income tax rate from 35% to 21%, limiting deductibility of interest expense, implementing a hybrid-territorial tax system imposing a repatriation tax on deemed repatriated earnings of foreign subsidiaries (the “transition tax”), and enacted additional international tax provisions, including a minimum tax on global intangible low-taxed income (“GILTI”) and a new base erosion anti-abuse tax (“BEAT”). The Company recorded a provisional non-cash tax benefit of $13,712 in the fourth quarter of 2017. The Company finalized its accounting for the transition tax during the quarter ended March 31, 2018, but continue to evaluate the financial statement impact of the other provisions within the Tax Legislation as guidance is issued by the Internal Revenue Services and U.S. Department of Treasury. On February 28, 2018, the FASB issued ASU 2018-03, which makes technical corrections to certain aspects of ASU 2016-016 (on recognition of financial assets and financial liabilities), including equity securities without a readily determinable fair value (discontinuation and adjustments); forward contracts and purchased options; presentation requirements for certain fair value option liabilities; fair value option liabilities denominated in a foreign currency and transition guidance for equity securities without a readily determinable fair value. For public business entities, the amendments in ASU 2018-03 are effective for fiscal years beginning after December 15, 2017, and interim periods within those fiscal years beginning after June 15, 2018. Public business entities with fiscal years beginning between December 15, 2017, and June 15, 2018, are not required to adopt the amendments until the interim period beginning after June 15, 2018. T he Company is evaluating the impact of this guidance on its consolidated financial statements. |