SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES | SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Basis of Presentation and Consolidation The accompanying consolidated financial statements are prepared in accordance with accounting principles generally accepted in the United States (“US GAAP”). The consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. The Company has taken and continues to take actions to improve its financial stability. Such actions include accessing additional capital, reducing its operating expense structure and substantially transitioning to its next generation of microinverters, which offer increased functionality and have a reduced cost profile. The restructuring actions taken by the Company resulted in a $38.4 million reduction in ongoing operating expenses (excluding restructuring charges of $16.9 million and $3.8 million for the years ended December 31, 2017 and 2016, respectively) for the year ended December 31, 2017 as compared to 2016. In February of 2018 the Company raised an additional $20.0 million through a private placement of the Company’s common stock and also reached an agreement with its lender to defer approximately 50% of the principal payments due in 2018 under its term loans, with the deferred principal being amortized over the remaining term of the loan. The Company’s management has considered the factors noted above and has concluded that substantial doubt as to its ability to continue as a going concern does not exist at the time of filing its Annual Report on Form 10-K for the period ended December 31, 2017. Use of Estimates The preparation of the Company’s consolidated financial statements in conformity with US GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, disclosure of contingent assets and liabilities at the date of the financial statements and the reported amounts of income and expenses during the reporting period. These estimates are based on information available as of the date of the financial statements; therefore, actual results could differ materially from management’s estimates using different assumptions or under different conditions. Revenue Recognition The Company generates revenue from sales of its microinverter systems, which include microinverter units and related accessories, an Envoy communications gateway, the cloud-based Enlighten monitoring service, and AC Battery storage solutions to distributors, large installers, OEMs and strategic partners. Enlighten service revenue represented less than 2% of the total revenues for all periods presented. Revenue from sales of the Company’s products is recognized when: (i) persuasive evidence of an arrangement exists; (ii) delivery of the products has occurred in accordance with the terms of the sales agreement and title and risk of loss have passed to the customer; (iii) the sale price is fixed or determinable; and (iv) collection is reasonably assured. Provisions for rebates, sales incentives, and discounts to customers are accounted for as reductions in revenue in the same period the related sales are recorded. Sales of an Envoy communications gateway include the Enlighten cloud-based monitoring service. The allocation of revenue between the two deliverables is based on the Company’s best estimate of selling price determined by considering multiple factors including internal costs, gross margin and historical pricing practices. After allocating the overall consideration from such sale to each deliverable using a best estimate of the selling price, revenue from the sale of Envoy hardware devices is recognized upon shipment, assuming all other revenue recognition criteria have been met. Through September 30, 2017 the estimated economic life of the related Envoy devices was used to determine the period over which revenue from the cloud-based monitoring service was recognized as adequate historical user data was not available. During the fourth quarter of 2017 the Company determined historical user data was available to adequately assess the period over which the service obligation was met. As a result, the Company shortened the estimated service period of the Enlighten from 10 years to 6.5 years effective October 1, 2017. The impact of the change is estimate was an increase to revenue and earnings in the fourth quarter of 2017 of approximately $2.6 million and a reduction of net loss per share of approximately $0.03 . Deferred revenues consist of payments received from customers in advance of revenue recognition for the Company’s products and services as described above. As of December 31, 2017 and 2016 , deferred revenues consist primarily of Enlighten service revenue. Cost of Revenues The Company includes the following in cost of revenues: product costs, warranty, manufacturing personnel and logistics costs, freight costs, inventory write-downs, hosting services costs related to the Company’s Enlighten service offering, and depreciation and amortization of manufacturing test equipment. Cash and Cash Equivalents The Company considers all highly liquid investments, such as certificates of deposit and money market instruments with maturities of three months or less at the time of acquisition to be cash equivalents. For all periods presented, its cash balances consist of amounts held in non-interest-bearing deposits and money market accounts. Fair Value of Financial Instruments The carrying amounts of the Company’s cash and cash equivalents, accounts receivable, accounts payable and accrued liabilities approximate fair value because of the short maturity of those instruments. Allowances for Doubtful Accounts The Company maintains allowances for doubtful accounts for uncollectible accounts receivable. Management estimates anticipated losses from doubtful accounts based on days past due, collection history and the financial health of customers. The allowance for doubtful accounts was $2.4 million and $2.9 million at December 31, 2017 and 2016 , respectively. The following table sets forth activities in the allowance for doubtful accounts for the periods indicated (in thousands): December 31, 2017 2016 2015 Balance, at beginning of year $ 2,921 $ 1,808 $ 569 Net charges to expenses 476 3,097 1,502 Write-offs, net of recoveries (1,019 ) (1,984 ) (263 ) Balance, at end of year $ 2,378 $ 2,921 $ 1,808 Inventory Inventory is valued at the lower of cost or market. Market is current replacement cost (by purchase or by reproduction, dependent on the type of inventory). In cases where market exceeds net realizable value (i.e., estimated selling price less reasonably predictable costs of completion and disposal), inventories are stated at net realizable value. Market is not considered to be less than net realizable value reduced by an allowance for an approximately normal profit margin. The Company determines cost on a first-in first-out basis. Management assesses the valuation on a quarterly basis and writes down the value for any excess and obsolete inventory based upon expected demand, anticipated sales price, effect of new product introductions, product obsolescence, customer concentrations, product merchantability and other factors. Inventory write-downs are equal to the difference between the cost of inventories and market. Property and Equipment Property and equipment are stated at cost less accumulated depreciation. Cost includes amounts paid to acquire or construct the asset as well as any expenditure that substantially adds to the value of or significantly extends the useful life of an existing asset. Repair and maintenance costs are expensed as incurred. Depreciation and amortization is computed using the straight-line method over the estimated useful lives of the assets, which range from three to ten years. Leasehold improvements are amortized over the shorter of the lease term or expected useful life of the improvements. Capitalized Software Costs Internally used software, whether purchased or developed, is capitalized and amortized on a straight-line basis over its estimated useful life. Costs associated with internally developed software are expensed until the point at which the project has reached the development stage. Subsequent additions, modifications or upgrades to internal-use software are capitalized only to the extent that they provide additional functionality. Software maintenance and training costs are expensed in the period in which they are incurred. The capitalization of software requires judgment in determining when a project has reached the development stage and the period over which the Company expects to benefit from the use of that software. Long-Lived Assets Property, plant and equipment, including capitalized software costs, are recorded at cost. Property, plant and equipment amounts are reviewed for impairment whenever events or changes in circumstances indicate that the carrying amount of an asset (asset group) may not be recoverable. An impairment loss would be recognized when the carrying amount of an asset exceeds the estimated undiscounted future cash flows expected to result from the use of the asset and its eventual disposition. The amount of the impairment loss to be recorded is calculated by the excess of the asset's carrying value over its fair value. Fair value is generally determined using a discounted cash flow analysis. The Company recorded asset impairment charges for specific assets that were no longer in use of approximately $0.8 million and $2.6 million for the years ended December 31, 2017 and 2016, respectively. The fair value of the remaining assets is in excess of the carrying value. Goodwill Goodwill results from the purchase consideration paid in excess of the fair value of the net assets recorded in connection with a business acquisition. Goodwill is not amortized, but is assessed for potential impairment at least annually during the fourth quarter of each fiscal year or between annual tests if an event occurs or circumstances change that would indicate the carrying amount may be impaired. Goodwill is tested at the reporting unit level, which the Company has determined to be the same as the entity as a whole (entity level). Once goodwill has been assigned to a reporting unit, it is no longer associated with a particular acquisition; therefore, all of the activities within a reporting unit, whether acquired or organically grown, are available to support the goodwill value. Based on management’s goodwill impairment tests, there was no impairment of goodwill in any of the years presented. Intangible Assets Intangible assets include patents and other purchased intangible assets. Intangible assets with finite lives are amortized on a straight-line basis, with estimated useful lives ranging from 3 to 5 years. Indefinite-lived intangible assets are tested for impairment annually and are also tested for impairment between annual tests if an event occurs or circumstances change that would indicate that the carrying amount may be impaired. Intangible assets with finite lives are tested for impairment whenever events or circumstances indicate that the carrying amount of an asset (asset group) may not be recoverable. An impairment loss is recognized when the carrying amount of an asset exceeds the estimated undiscounted cash flows used in determining the fair value of the asset. The amount of the impairment loss to be recorded is calculated by the excess of the asset's carrying value over its fair value. Fair value is generally determined using a discounted cash flow analysis. There was no impairment of intangible assets in any of the years presented. Warranty Obligations Microinverters Sold Through December 31, 2013 The Company’s warranty accrual provides for the replacement of microinverter units that fail during the product’s warranty term ( 15 years for first and second generation microinverters and up to 25 years for third and fourth generation microinverters). On a quarterly basis, the Company employs a consistent, systematic and rational methodology to assess the adequacy of its warranty liability. This assessment includes updating all key estimates and assumptions for each generation of product, based on historical results, trends and the most current data available as of the filing date. The key estimates and assumptions used in the warranty liability are thoroughly reviewed by management on a quarterly basis. The key estimates used by the Company to estimate its warranty liability are: (1) the number of units expected to fail over time (i.e. failure rate); (2) the number of failed units expected to result in warranty claims over time (i.e. claim rate); and (3) the per unit cost of replacement units, including outbound shipping and limited labor costs, expected to be incurred to replace failed units over time (i.e. replacement cost). Estimated Failure Rates— The Company’s Quality and Reliability department has primary responsibility to determine the estimated failure rates for each generation of microinverter. To establish initial failure rate estimates for each generation of microinverter, the Company’s quality engineers use a combination of industry standard MTBF (Mean Time Between Failure) estimates for individual components contained in its microinverters, third party data collected on similar equipment deployed in outdoor environments similar to those in which the Company’s microinverters are installed, and rigorous long term reliability and accelerated life cycle testing which simulates the service life of the microinverter in a short period of time. As units are deployed into operating environments, the Company continues to monitor product performance via its Enlighten monitoring platform. It typically takes three to nine months between the date of sale and date of end-user installation. Consequently, the Company’s ability to monitor actual failures of units sold similarly lags by three to nine months. When a microinverter fails and is returned, the Company performs diagnostic root cause failure analysis to understand and isolate the underlying mechanism(s) causing the failure. The Company then uses the results of this analysis (combined with the actual, cumulative performance data collected on those units prior to failure via Enlighten) to draw conclusions with respect to how or if the identified failure mechanism(s) will impact the remaining units deployed in the installed base. Estimated Claim Rates— Warranty claim rate estimates are based upon assumptions with respect to expected customer behavior over the warranty period. As the vast majority of the Company’s microinverters have been sold to end users for residential applications, the Company believes that warranty claim rates will be affected by changes over time in residential home ownership because the Company expects that subsequent homeowners are less likely to file claims than the homeowners who originally purchase the microinverters. Estimated Replacement Costs— three factors are considered in the Company’s analysis of estimated replacement cost: (1) the estimated cost of replacement microinverters; (2) the estimated cost to ship replacement microinverters to end users; and (3) the estimated labor reimbursement expected to be paid to third party installers performing replacement services for the end user. Because the Company’s warranty provides for the replacement of defective microinverters over long periods of time (between 15 and 25 years, depending on the generation of product purchased), the estimated per unit cost of current and future product generations is considered in the estimated replacement cost. Estimated costs to ship replacement units are based on observable, market-based shipping costs paid by the Company to third party freight carriers. The Company has a separate program that allows third-party installers to claim fixed-dollar reimbursements for labor costs they incur to replace failed microinverter units for a limited time from the date of original installation. Included in the Company’s estimated replacement cost is an analysis of the number of fixed-dollar labor reimbursements expected to be claimed by third party installers over the limited offering period. In addition to the key estimates noted above, the Company also compares actual warranty results to expected results and evaluates any significant differences. Management may make additional adjustments to the warranty provision based on performance trends or other qualitative factors. If actual failure rates, claim rates, or replacement costs differ from the Company’s estimates in future periods, changes to these estimates may be required, resulting in increases or decreases in the Company’s warranty obligations. Such increases or decreases could be material. Fair Value Option for Microinverters Sold Since January 1, 2014 The Company’s warranty obligations related to microinverters sold since January 1, 2014 provide the Company the right, but not the requirement, to assign its warranty obligations to a third-party. Under Accounting Standards Codification (“ASC”) 825—Financial Instruments, (“fair value option”), an entity may choose to elect the fair value option for such warranties at the time it first recognizes the eligible item. The Company made an irrevocable election to account for all eligible warranty obligations associated with microinverters sold since January 1, 2014 at fair value. This election was made to reflect the underlying economics of the time value of money for an obligation that will be settled over an extended period of up to 25 years . The Company estimates the fair value of warranty obligations by calculating the warranty obligations in the same manner as for sales prior to January 1, 2014 and applying an expected present value technique to that result. The expected present value technique, an income approach, converts future amounts into a single current discounted amount. In addition to the key estimates of failure rates, claim rates and replacement costs, the Company used certain inputs that are unobservable and significant to the overall fair value measurement. Such additional assumptions included compensation comprised of a profit element and risk premium required of a market participant to assume the obligation and a discount rate based on the Company’s credit-adjusted risk-free rate. See Note 8 , (“Fair Value Measurements”) for additional information. Warranty obligations initially recorded at fair value at the time of sale will be subsequently re-measured to fair value at each reporting date. In addition, the fair value of the liability will be accreted over the corresponding term of the warranty of up to 25 years using the interest method. Warranty for Other Products The Company offers a 5 year warranty for its Envoy communications gateway and a 10 year warranty on its AC Battery storage solution. The warranties provide the Company with the right, but not the obligation, to assign its warranty obligations to a third-party. As such, warranties for Envoy and AC Battery storage solution products are accounted for under the fair value method of accounting. Research and Development Costs The Company expenses research and development costs as incurred. Research and development costs totaled $33.2 million , $50.7 million and $50.8 million in 2017 , 2016 and 2015 , respectively. Stock-Based Compensation Share-based payments are required to be recognized in the Company’s consolidated statements of operations based on their fair values and the estimated number of shares expected to vest. The Company measures stock-based compensation expense for all share-based payment awards, including stock options made to employees and directors, based on the estimated fair values on the date of the grant. The fair value of stock options granted is estimated using the Black-Scholes option valuation model. The fair value of restricted stock units granted is determined based on the price of the Company’s common stock on the date of grant. Stock-based compensation, net of estimated forfeitures, is recognized on a straight-line basis over the requisite service period, which is typically four years. Comprehensive Loss Comprehensive loss consists of two components, net loss and other comprehensive income (loss). Other comprehensive income (loss) refers to gains and losses that are recorded as an element of stockholders’ equity but are excluded from net income. The Company’s other comprehensive income (loss) consists of foreign currency translation adjustments for all periods presented. Income Taxes The Company records income taxes using the asset and liability method, which requires the recognition of deferred tax assets and liabilities for the expected tax consequences of temporary differences between the tax bases of assets and liabilities for financial reporting purposes and amounts recognized for income tax purposes. In estimating future tax consequences, generally all expected future events other than enactments or changes in the tax law or rates are considered. Valuation allowances are provided when necessary to reduce deferred tax assets to the amount expected to be realized. The Company operates in various tax jurisdictions and is subject to audit by various tax authorities. The Company follows accounting for uncertainty in income taxes which requires that the tax effects of a position be recognized only if it is “more likely than not” to be sustained based solely on its technical merits as of the reporting date. The Company considers many factors when evaluating and estimating its tax positions and tax benefits, which may require periodic adjustments and which may not accurately anticipate actual outcomes. Recently Adopted Accounting Pronouncements In July 2015, the FASB issued ASU 2015-11, “Simplifying the Measurement of Inventory,” which requires most entities to measure most inventories at the lower of cost or net realizable value ("NRV"). This simplifies the evaluation from the current method of lower of cost or market, where market is based on one of three measures (i.e. replacement cost, net realizable value, or net realizable value less a normal profit margin). ASU 2015-11 does not apply to inventories measured under the last-in, first-out method or the retail inventory method, and defines NRV as the “estimated selling price in the ordinary course of business, less reasonably predictable costs of completion, disposal, and transportation.” This standard, which was adopted in the first quarter of 2017, did not have a material impact on the consolidated financial statements. In March 2016, the FASB issued ASU 2016-09, “Improvements to Employee Share-Based Payment Accounting,” which will simplify the income tax consequences, accounting for forfeitures and classification on the Statements of Consolidated Cash Flows. This standard, which was adopted in the first quarter of 2017, did not have a material impact on the consolidated financial statements. In January 2017, the FASB issued ASU 2017-04, “Intangibles-Goodwill and Other (Topic 350): Simplifying the Test for Goodwill Impairment.” This ASU simplifies the subsequent measurement of goodwill, the FASB eliminated Step 2 from the goodwill impairment test. Under the amendments in this ASU, an entity should perform its annual, or interim, goodwill impairment test by comparing the fair value of a reporting unit with its carrying amount. An entity should recognize an impairment charge for the amount by which the carrying amount exceeds the reporting unit’s fair value; however, the loss recognized should not exceed the total amount of goodwill allocated to that reporting unit. Additionally, an entity should consider income tax effects from any tax deductible goodwill on the carrying amount of the reporting unit when measuring the goodwill impairment loss, if applicable. The FASB also eliminated the requirements for any reporting unit with a zero or negative carrying amount to perform a qualitative assessment and, if it fails that qualitative test, to perform Step 2 of the goodwill impairment test. Therefore, the same impairment assessment applies to all reporting units. An entity is required to disclose the amount of goodwill allocated to each reporting unit with a zero or negative carrying amount of net assets. An entity still has the option to perform the qualitative assessment for a reporting unit to determine if the quantitative impairment test is necessary. A public business entity that is an SEC filer should adopt the amendments in this Update for its annual or any interim goodwill impairment tests in fiscal years beginning after December 15, 2019. Early adoption is permitted for interim or annual goodwill impairment tests performed on testing dates after January 1, 2017. ASU 2017-04 was early adopted by the Company for the year beginning January 1, 2017. The Company has a single reporting unit, and adoption of the standard did not have a material impact on the Company's consolidated financial statements. Recent Accounting Pronouncements Not Yet Effective In May 2014, the FASB issued ASU 2014-09, Revenue from Contracts with Customers: Topic 606 and issued subsequent amendments to the initial guidance in August 2015, March 2016, April 2016, May 2016 and December 2016, collectively “Topic 606”). Topic 606 supersedes nearly all existing revenue recognition guidance under GAAP. The standard is effective for and was adopted by the Company on January 1, 2018. The updated standard’s core principle is that revenue is recognized when the customer obtains control of promised goods or services in an amount that reflects the consideration to which an entity expects to be received in exchange for those goods or services. The standard generally requires an entity to identify performance obligations in its contracts, estimate the amount of variable consideration to be received in the transaction price, allocate the transaction price to each separate performance obligation, and recognize revenue as obligations are satisfied. In addition, the updated standard requires additional disclosure about the nature, amount, timing and uncertainty of revenue and cash flows arising from customer contracts. The guidance permits two methods of adoption, the full retrospective method applying the standard to each prior reporting period presented, or the modified retrospective method with a cumulative effect of initially applying the guidance recognized at the date of initial application. The Company will adopt the standard using the modified retrospective method with a cumulative catch up adjustment to accumulated deficit and will provide additional disclosures comparing results to previous GAAP in its 2018 consolidated financial statements. The most significant impacts upon adoption of the standard will be how the Company accounts for revenue related to its envoy communications device and related enlighten service and the timing of when certain sales incentives will be recognized. Under ASC 605 the Company’s monitoring hardware and service are considered two units of accounting with a portion of the consideration related to the hardware recognized upfront and the remaining deferred over the estimated service period. Under ASC 606 the full consideration for these products represents a single performance obligation and is deferred over the estimated service period. This treatment will result in an increase in deferred revenue of approximately $77 million , an increase in deferred costs of approximately $43 million and an increase in accumulated deficit of approximately $34 million upon adoption of ASC 606. Under ASC 605 the Company recorded certain contra revenue promotions at the later of the date revenue was recognized or the date at which the promotional offer was extended. Under ASC 606 all such contra revenue programs will be treated as variable consideration and recognized at the time the related revenue is recorded. This change in timing will result in an increase in accrued liabilities of approximately $6 million and an increase to accumulated deficit in the same amount upon adoption of ASC 606. The change in accounting treatment affects the timing of the recognition of certain contra revenue programs, but the overall income statement impact of this new accounting method is expected to be immaterial. Under ASC 605, the Company expensed commission costs as incurred. The new standard requires upfront contract acquisition costs, such as sales commissions, to be capitalized and amortized over the estimated life of the asset. Under the new guidance, the Company will utilize the practical expedient permitting expensing of costs to obtain a contract when the expected amortization period is one year or less, which typically results in expensing commissions paid. Commissions related to the Company’s sale of monitoring hardware and service will be capitalized and amortized over the period of the associated revenue, which is 6.5 years . This treatment will result in an increase in deferred costs of approximately $0.8 million and an increase in accumulated deficit by the same amount upon adoption of ASC 606. The amortization of these deferred costs is immaterial to the Company’s income statement. The Company does not expect the adoption of ASC 606 to have a material impact on the amount or timing of revenue recognition related to specific customer contracts. In January 2016, the FASB issued ASU 2016-01, “Recognition and Measurement of Financial Assets and Financial Liabilities,” which amends certain aspects of recognition, measurement, presentation, and disclosure of financial instruments. Changes to the current guidance include the accounting for equity investments, the presentation and disclosure requirements for financial instruments, and the assessment of valuation allowance on deferred tax assets related to available-for-sale securities. In addition, ASU 2016-01 establishes an incremental recognition and disclosure requirement related to the presentation of fair value changes of financial liabilities for which the fair value option has been elected. Under this guidance, an entity would be required to separately present in other comprehensive income the portion of the total fair value change attributable to instrument-specific credit risk as opposed to reflecting the entire amount in earnings. ASU 2016-01 is effective for fiscal years and interim periods beginning after December 15, 2017, and upon adoption, an entity should apply the amendments by means of a cumulative-effect adjustment to the balance sheet at the beginning of the first reporting period in which the guidance is effective. Early adoption is not permitted except for the provision to record fair value changes for financial liabilities under the fair value option resulting from instrument-specific credit risk in other comprehensive income. The Company does not expect the adoption of this standard to have a material impact on the consolidated financial statements. In February 2016, the FASB issued Accounting Standards Codification (“ASC”) 842 (“ASC 842”), “Leases” which replaces the existing guidance in ASC 840, Leases. ASC 842 is effective for fiscal years, and interim periods within those years, beginning after December 15, 2018. ASC 842 requires a dual approach for lessee accounting under which a lessee would account for leases as finance leases or operating leases. Both finance leases and operating leases will result in the lessee recognizing a right-of-use (ROU) asset and a corresponding lease liability. For finance leases the lessee would recognize interest expense and amortization of the ROU asset and for operating leases the lessee would recognize a straight-line total lease expense. The Company is currently evaluating the impact of adoption on the consolidated financial statements. In November 2016, the FASB issued Accounting Standards Update No. 2016-18 (ASU 2016-18), “Statement of Cash Flows,” which requires companies to include amounts generally described as restricted cash and restricted cash equivalents in cash and cash equivalents when reconciling beginning-of-period and end-of-period total amounts shown on the statement of cash flows. ASU 2016-18 is effective for fiscal years, and interim periods within those years, beginning after December 15, 2017. The Company does not expect the adoption of this guidance to have a material impact on the consolidated financial statements. In May 2017, the FASB issued ASU 2017-09 (ASU 2017-09), "Compensation - Stock Compensation." ASU 2017-09 was i |