Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Basis of Presentation The consolidated financial statements have been prepared in accordance with U.S. generally accepted accounting principles, or U.S. GAAP, and include the accounts of Jazz Pharmaceuticals plc and our subsidiaries and intercompany transactions and balances have been eliminated. Our consolidated financial statements include the results of operations of businesses we have acquired from the date of each acquisition for the applicable reporting periods. Use of Estimates The preparation of financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets, liabilities, revenues and expenses, and related disclosures in the consolidated financial statements and accompanying notes. Management bases its estimates on historical experience and on assumptions believed to be reasonable under the circumstances. Actual results could differ materially from those estimates. Adoption of New Accounting Standards In May 2014, the Financial Accounting Standards Board, or FASB, issued ASU No. 2014-09. The standard states that an entity should recognize revenue to depict the transfer of promised goods or services to customers in an amount that reflects the consideration to which the entity expects to be entitled in exchange for those goods or services. To achieve this, an entity will need to identify the contract with a customer; identify the separate performance obligations in the contract; determine the transaction price; allocate the transaction price to the separate performance obligations in the contract; and recognize revenue when (or as) the entity satisfies each performance obligation. We adopted ASU No. 2014-09 on January 1, 2018 on a modified retrospective basis and applied the standard to all contracts as of this date. The adoption of ASU No. 2014-09 did not have a material impact on our results of operations and financial position as the timing of revenue recognition for product sales, net, which is our primary revenue stream, did not change. Refer to Note 17, Revenues, for revenue-related disclosures. In August 2016, the FASB issued ASU No. 2016-15, “Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments” which addresses how certain cash receipts and cash payments are presented and classified in the statement of cash flows. We adopted this standard on January 1, 2018 and adoption did not have a material impact on our consolidated financial statements. In October 2016, the FASB issued ASU No. 2016-16, “Income Taxes (Topic 740): Intra-Entity Transfers of Assets Other Than Inventory” which requires an entity to recognize the income tax consequences of an intra-entity asset transfer, other than an intra-entity asset transfer of inventory, when the transfer occurs. We adopted this standard on January 1, 2018 on a modified retrospective basis and adoption did not have a material impact on our consolidated financial statements. In January 2017, the FASB issued ASU No. 2017-01, “Business Combinations (Topic 805): Clarifying the Definition of a Business” which provides clarification on the definition of a business and adds guidance to assist entities with evaluating whether transactions should be accounted for as acquisitions (or disposals) of assets or businesses. We adopted this standard on January 1, 2018. In the second quarter of 2018, we entered into an asset purchase agreement, or APA, with TerSera Therapeutics LLC, or TerSera, whereby TerSera agreed to purchase substantially all of our assets related to the manufacture, marketing and sale of Prialt ® (ziconotide) intrathecal infusion. We entered into an amendment to the APA, and the transaction closed on September 27, 2018. We determined that the disposal group did not constitute a business under the new guidance. Refer to Note 3, Business Combination, Asset Acquisitions and Disposition, for further information on the sale of our rights to Prialt. In August 2017, the FASB issued ASU No. 2017-12, “Derivatives and Hedging (Topic 815): Targeted Improvements to Accounting for Hedging Activities” which amends and simplifies existing guidance in order to allow companies to more accurately present the economic effects of risk management activities in their financial statements. ASU No. 2017-12 is effective for reporting periods beginning after December 15, 2018, with early adoption permitted. We elected to early adopt this standard on January 1, 2018 on a modified retrospective basis. Adoption of this standard did not have a material impact on our consolidated financial statements. The cumulative effect of the changes made to our consolidated balance sheet as of January 1, 2018 for the adoption of the above accounting standards was as follows (in thousands): Balance at December 31, 2017 Transition Adjustments Balance at January 1, Assets: Deferred tax assets, net $ 34,559 $ 595 $ 35,154 Liabilities: Deferred revenue 8,618 (1,120 ) 7,498 Deferred revenue, non-current 16,115 (1,120 ) 14,995 Deferred tax liabilities, net 383,472 3,114 386,586 Shareholders' Equity: Accumulated other comprehensive loss (140,878 ) 53 (140,825 ) Retained earnings 917,956 (332 ) 917,624 Significant Risks and Uncertainties Our financial results are significantly influenced by sales of Xyrem. Our ability to maintain or increase Xyrem product sales is subject to a number of risks and uncertainties, including, without limitation, the introduction of new products in the U.S. market that compete with, or otherwise disrupt the market for, Xyrem in the treatment of cataplexy and/or EDS in narcolepsy; the introduction of a generic version of Xyrem in the U.S. market before the entry dates specified in our settlements with the abbreviated new drug application, or ANDA, filers or on terms that are different from those contemplated by the settlement agreements; increased pricing pressure from, changes in policies by, or restrictions on reimbursement imposed by, third party payors, including pressure to agree to discounts, rebates or other restrictive pricing terms for Xyrem; changes in healthcare laws and policy, including changes in requirements for patient assistance programs, rebates, reimbursement and coverage by federal healthcare programs, and changes resulting from increased scrutiny on pharmaceutical pricing and risk evaluation and mitigation strategy, or REMS, programs by government entities; changes to or uncertainties around our Xyrem REMS, or any failure to comply with our REMS obligations to the satisfaction of the FDA; challenges to our intellectual property around Xyrem, including the possibility of new ANDA or new drug application, or NDA, filers or new post-grant patent review proceedings; operational disruptions at the Xyrem central pharmacy; any supply or manufacturing problems, including any problems with our sole source Xyrem active pharmaceutical ingredient, or API, provider; continued acceptance of Xyrem by physicians and patients, including as a result of negative publicity that surfaces from time to time; and changes to our label, including new safety warnings or changes to our boxed warning, that further restrict how we market and sell Xyrem. In addition to risks related specifically to Xyrem, we are subject to other challenges and risks specific to our business and our ability to execute on our strategy, as well as risks and uncertainties common to companies in the pharmaceutical industry with development and commercial operations, including, without limitation, risks and uncertainties associated with: effectively commercializing our other products; competition; obtaining and maintaining adequate coverage and reimbursement for our products; increasing scrutiny of pharmaceutical product pricing and resulting changes in healthcare laws and policy; market acceptance; delays or problems in the supply of our products, loss of single source suppliers or failure to comply with manufacturing regulations; regulatory approval and successful launch of our late-stage product candidates; identifying, acquiring or in-licensing additional products or product candidates; pharmaceutical product development and the inherent uncertainty of clinical success; the regulatory approval process; the challenges of protecting and enhancing our intellectual property rights; complying with applicable regulatory requirements; and possible restrictions on our ability and flexibility to pursue certain future opportunities as a result of our substantial outstanding debt obligations. Concentrations of Risk Financial instruments that potentially subject us to concentrations of credit risk consist of cash, cash equivalents, investments and derivative contracts. Our investment policy permits investments in U.S. federal government and federal agency securities, corporate bonds or commercial paper issued by U.S. corporations, money market instruments, certain qualifying money market mutual funds, certain repurchase agreements, and tax-exempt obligations of U.S. states, agencies and municipalities and places restrictions on credit ratings, maturities, and concentration by type and issuer. We are exposed to credit risk in the event of a default by the financial institutions holding our cash, cash equivalents and investments to the extent recorded on the balance sheet. We manage our foreign currency transaction risk and interest rate risk within specified guidelines through the use of derivatives. All of our derivative instruments are utilized for risk management purposes, and we do not use derivatives for speculative trading purposes. As of December 31, 2018 and 2017 , we had foreign exchange forward contracts with notional amounts totaling $271.5 million and $511.4 million , respectively. As of December 31, 2018 and 2017 , the outstanding foreign exchange forward contracts had a net liability fair value of $0.3 million and a net asset fair value of $10.5 million , respectively. As of December 31, 2018 and 2017 , we had interest rate swap contracts with notional amounts totaling $300.0 million . These outstanding interest rate swap contracts had a net asset fair value of $4.1 million and $1.7 million as of December 31, 2018 and 2017 , respectively. The counterparties to these contracts are large multinational commercial banks, and we believe the risk of nonperformance is not significant. We are also subject to credit risk from our accounts receivable related to our product sales. We monitor our exposure within accounts receivable and record a reserve against uncollectible accounts receivable as necessary. We extend credit to pharmaceutical wholesale distributors and specialty pharmaceutical distribution companies, primarily in the U.S., and to other international distributors and hospitals. Customer creditworthiness is monitored and collateral is not required. We monitor deteriorating economic conditions in certain European countries which may result in variability of the timing of cash receipts and an increase in the average length of time that it takes to collect accounts receivable outstanding. Historically, we have not experienced significant credit losses on our accounts receivable. As of December 31, 2018 , two customers accounted for 89% of gross accounts receivable, Express Scripts Specialty Distribution Services, Inc. and its affiliates, or Express Scripts, which accounted for 74% of gross accounts receivable, and McKesson Corporation and affiliates, or McKesson, which accounted for 15% of gross accounts receivable. As of December 31, 2017 , two customers accounted for 86% of gross accounts receivable, Express Scripts, which accounted for 71% of gross accounts receivable, and McKesson, which accounted for 15% of gross accounts receivable. We depend on single source suppliers for most of our products, product candidates and their active pharmaceutical ingredients, or APIs. With respect to Xyrem, the API is manufactured for us by a single source supplier and the finished product is manufactured both by us in our facility in Athlone, Ireland and by our U.S.-based Xyrem supplier. Business Acquisitions Our consolidated financial statements include the results of operations of an acquired business from the date of acquisition. We account for acquired businesses using the acquisition method of accounting. The acquisition method of accounting for acquired businesses requires, among other things, that assets acquired, liabilities assumed and any noncontrolling interests in the acquired business be recognized at their estimated fair values as of the acquisition date, with limited exceptions, and that the fair value of acquired in-process research and development, or IPR&D, be recorded on the balance sheet. Also, transaction costs are expensed as incurred. Any excess of the acquisition consideration over the assigned values of the net assets acquired is recorded as goodwill. Contingent consideration is included within the acquisition cost and is recognized at its fair value on the acquisition date. A liability resulting from contingent consideration is remeasured to fair value at each reporting date until the contingency is resolved and changes in fair value are recognized in earnings. Cash Equivalents and Investments We consider all highly liquid investments, readily convertible to cash, that mature within three months or less from date of purchase to be cash equivalents. Investments consist of time deposits with initial maturities of greater than three months. Collectively, cash equivalents and investments are considered available-for-sale and are recorded at fair value. Unrealized gains and losses, net of tax, are recorded in accumulated other comprehensive loss in shareholders’ equity. We use the specific-identification method for calculating realized gains and losses on securities sold. Realized gains and losses and declines in value judged to be other than temporary on investments are included in interest expense, net in the consolidated statements of income. Derivative Instruments and Hedging Activities We record the fair value of derivative instruments as either assets or liabilities on the consolidated balance sheets. Changes in the fair value of derivative instruments are recorded each period in current earnings or other comprehensive income (loss), depending on whether a derivative instrument is designated as part of a hedging transaction and, if it is, the type of hedging transaction. For a derivative to qualify as a hedge at inception and throughout the hedged period, we formally document the nature and relationships between the hedging instruments and hedged item. We assess, both at inception and on an on-going basis, whether the derivative instruments that are used in cash flow hedging transactions are highly effective in offsetting the changes in cash flows of hedged items. Gains or losses on cash flow hedges are reclassified from other comprehensive income (loss) to earnings when the hedged transaction occurs. If we determine that a forecasted transaction is no longer probable of occurring, we discontinue hedge accounting and any related unrealized gain or loss on the derivative instrument is recognized in current earnings. Derivatives that are not designated and do not qualify as hedges are adjusted to fair value through current earnings. Inventories Inventories are valued at the lower of cost or net realizable value. Cost is determined using the first-in, first-out method for all inventories. Our policy is to write down inventory that has become obsolete, inventory that has a cost basis in excess of its expected net realizable value and inventory in excess of expected requirements. The estimate of excess quantities is subjective and primarily dependent on our estimates of future demand for a particular product. If our estimate of future demand changes, we consider the impact on the reserve for excess inventory and adjust the reserve as required. Increases in the reserve are recorded as charges in cost of product sales. We capitalize inventory costs associated with our products prior to regulatory approval when, based on management's judgment, future commercialization is considered probable and the future economic benefit is expected to be realized; otherwise, such costs are expensed as research and development. The determination to capitalize inventory costs is based on various factors, including status and expectations of the regulatory approval process, any known safety or efficacy concerns, potential labeling restrictions, and any other impediments to obtaining regulatory approval. We had no pre-approval inventory on our consolidated balance sheet as of December 31, 2018 or 2017. Property, Plant and Equipment Property, plant and equipment are stated at cost, less accumulated depreciation. Depreciation is computed using the straight-line method over the estimated useful lives of the assets. Estimated useful lives are as follows: Buildings 40 years Manufacturing equipment and machinery 5-10 years Computer software and equipment 3 years Furniture and fixtures 5 years Leasehold improvements and the build-to-suit facility are amortized over the shorter of the noncancelable term of our leases or their economic useful lives. Maintenance and repairs are expensed as incurred. Operating Leases and Financing Obligations We recognize rent expense under operating leases on a straight-line basis over the term of the lease with the difference between the expense and cash payments recorded as deferred rent on the consolidated balance sheets. For certain build-to-suit lease arrangements where we have concluded that we are the “deemed owner” of the building, for accounting purposes only, during the construction period, we are required to record an asset with a corresponding financing obligation for the construction costs incurred by the landlord. The financing obligation is recorded within accrued liabilities and other non-current liabilities in the consolidated balance sheets. We increase the asset and financing obligation as additional building costs are incurred by the landlord during the construction period. Once construction is complete, we evaluate whether the asset qualifies for sale-leaseback accounting treatment. If the lease meets the sale-leaseback criteria, we remove the asset and the related liability from the consolidated balance sheets and treat the lease as either an operating or capital lease based on an assessment of the accounting guidance. If the arrangement does not qualify for sale-leaseback treatment, we reduce the financing obligation over the lease term as payments are made and depreciate the asset over its estimated useful life or lease term, whichever is shorter. Future lease payments associated with build-to-suit leases where we are the deemed owner are allocated between the land and building components. The portion of the lease payments allocated to the land is treated for accounting purposes as operating lease payments, and therefore is recorded as rent expense in the consolidated statements of income. The portion of the lease payments allocated to the building is further bifurcated into a portion allocated to interest expense and a portion allocated to reduce the build-to-suit financing obligation. Goodwill Goodwill represents the excess of the acquisition consideration over the fair value of assets acquired and liabilities assumed. We have determined that we operate in a single segment and have a single reporting unit associated with the development and commercialization of pharmaceutical products. The annual test for goodwill impairment is a two-step process. The first step is a comparison of the fair value of the reporting unit with its carrying amount, including goodwill. If this step indicates impairment, then, in the second step, the loss is measured as the excess of recorded goodwill over its implied fair value. Implied fair value is the excess of the fair value of the reporting unit over the fair value of all identified assets and liabilities. We test goodwill for impairment annually in October and when events or changes in circumstances indicate that the carrying value may not be recoverable. Acquired In-Process Research and Development The initial costs of rights to IPR&D projects acquired in an asset acquisition are expensed as IPR&D unless the project has an alternative future use. The fair value of IPR&D projects acquired in a business combination are capitalized and accounted for as indefinite-lived intangible assets until the underlying project receives regulatory approval, at which point the intangible asset will be accounted for as a finite-lived intangible asset, or discontinued, at which point the intangible asset will be written off. Development costs incurred after an acquisition are expensed as incurred. Intangible Assets Intangible assets with finite useful lives consist primarily of purchased developed technology and are amortized on a straight-line basis over their estimated useful lives, which range from two to 18 years. The estimated useful lives associated with finite-lived intangible assets are consistent with the estimated lives of the associated products and may be modified when circumstances warrant. Such assets are reviewed for impairment when events or circumstances indicate that the carrying value of an asset may not be recoverable. An impairment loss would be recognized when estimated undiscounted future cash flows expected to result from the use of an asset and its eventual disposition are less than its carrying amount. The amount of any impairment is measured as the difference between the carrying amount and the fair value of the impaired asset. Intangible assets with finite useful lives also includes a Priority Review Voucher, or PRV, which we can use to obtain priority review by the FDA for one of our future regulatory submissions or may sell or transfer to a third party. The PRV is measured at cost and reviewed for impairment when events or circumstances indicate that the carrying value may not be recoverable. At the time we commit to using the PRV to accelerate the review of a drug application, the cost of the PRV will be expensed to the consolidated statement of income. Alternatively, if the PRV is sold, the asset would be derecognized from the consolidated balance sheet. Revenue Recognition Our revenue comprises product sales, net and royalty and contract revenues. Revenues are recognized when control of the promised goods or services is transferred to our customers, in an amount that reflects the consideration we expect to be entitled to in exchange for those goods or services. Prior to recognizing revenue, we make estimates of the transaction price, including variable consideration that is subject to a constraint. Amounts of variable consideration are included in the transaction price to the extent that it is probable that a significant reversal in the amount of cumulative revenue recognized will not occur when the uncertainty associated with the variable consideration is subsequently resolved. Product Sales, Net Product sales revenue is recognized when control has transferred to the customer, which occurs at a point in time, which is typically on delivery to the customer or, in the case of products that are subject to consignment agreements, when the customer removes product from our consigned inventory location for shipment directly to a patient. Reserves for Variable Consideration Revenues from sales of products are recorded at the net sales price, which includes estimates of variable consideration for which reserves are established and which relate to returns, specialty distributor fees, wholesaler fees, prompt payment discounts, government rebates, government chargebacks, coupon programs and rebates under managed care plans. Calculating certain of these reserves involves estimates and judgments and we determine their expected value based on sales or invoice data, contractual terms, historical utilization rates, new information regarding changes in these programs’ regulations and guidelines that would impact the amount of the actual rebates, our expectations regarding future utilization rates for these programs and channel inventory data. These reserves reflect our best estimates of the amount of consideration to which we are entitled based on the terms of the contract. The amount of variable consideration that is included in the transaction price may be constrained, and is included in the net sales price only to the extent that it is probable that a significant reversal in the amount of the cumulative revenue recognized will not occur in a future period. We reassess our reserves for variable consideration at each reporting date. Historically, adjustments to estimates for these reserves have not been material. Reserves for returns, specialty distributor fees, wholesaler fees, government rebates, coupon programs and rebates under managed care plans are included within current liabilities in our consolidated balance sheets. Reserves for government chargebacks and prompt payment discounts are shown as a reduction in accounts receivable. Royalties and Contract Revenues We enter into out-licensing agreements under which we license certain rights to our products or product candidates to third parties. If a licensing arrangement includes multiple goods or services, we consider whether the license is distinct. If the license to our intellectual property is determined to be distinct from the other performance obligations identified in the arrangement, we recognize revenue from non-refundable, upfront fees allocated to the license when the license is transferred to the licensee and the licensee is able to use and benefit from the license. If the license to our intellectual property is determined not to be distinct, it is combined with other goods or services into a combined performance obligation. We consider whether the combined performance obligation is satisfied over time or at a point in time and, if over time, the appropriate method of measuring progress for purposes of recognizing revenue from non-refundable, upfront fees. We evaluate the measure of progress each reporting date and, if necessary, adjust the measure of performance and related revenue recognition. At the inception of each arrangement that includes 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 that of the licensee, such as regulatory approvals, are not considered probable of being achieved until those approvals are received. The transaction price is 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. For arrangements that include sales-based royalties and milestone payments based on the level of sales, and the license is deemed to be the predominant item to which the royalties and sales-based milestones relate, we recognize revenue at the later of (i) when the related sales occur, or (ii) when the performance obligation to which some or all of the royalty or sales-based milestone has been allocated has been satisfied (or partially satisfied). Cost of Product Sales Cost of product sales includes manufacturing and distribution costs, the cost of drug substance, royalties due to third parties on product sales, product liability and cargo insurance, FDA user fees, freight, shipping, handling and storage costs and salaries and related costs of employees involved with production. Excluded from cost of product sales shown on the consolidated statements of income is amortization of acquired developed technology of $201.3 million , $149.1 million and $99.0 million in 2018 , 2017 and 2016 , respectively. Research and Development Research and development expenses consist primarily of costs related to clinical studies and outside services, personnel expenses and other research and development costs, including milestone payments incurred prior to regulatory approval of products. Clinical study and outside services costs relate primarily to services performed by clinical research organizations, clinical studies performed at clinical sites, materials and supplies, and other third party fees. Personnel expenses relate primarily to salaries, benefits and share-based compensation. Other research and development expenses primarily include overhead allocations consisting of various support and facilities-related costs. Research and development costs are expensed as incurred. For product candidates that have not been approved by the FDA, inventory used in clinical trials is expensed at the time of production and recorded as research and development expense. For products that have been approved by the FDA, inventory used in clinical trials is expensed at the time the inventory is packaged for the trial. Advertising Expenses We expense the costs of advertising, including promotional expenses, as incurred. Advertising expenses were $37.4 million , $36.6 million and $29.5 million in 2018 , 2017 and 2016 , respectively. Income Taxes We use the asset and liability method of accounting for income taxes. Under this method, deferred tax assets and liabilities are determined based on differences between the financial statement carrying amount and the tax basis of assets and liabilities and are measured using enacted tax rates and laws that will be in effect when the differences are expected to reverse. A valuation allowance is provided when it is more-likely-than-not that some portion or all of a deferred tax asset will not be realized. We recognize the benefits of a tax position if it is “more-likely-than-not” of being sustained. A recognized tax benefit is then measured at the largest amount of benefit that is greater than fifty percent likely of being realized upon settlement. Interest and penalties related to unrecognized tax benefits are included in the income tax provision and classified with the related liability on the consolidated balance sheets. Foreign Currency Our functional and reporting currency is the U.S. dollar. The assets and liabilities of our subsidiaries that have a functional currency other than the U.S. dollar are translated into U.S. dollars at the exchange rate prevailing at the balance sheet date with the results of operations of subsidiaries translated at the average exchange rate for the reporting period. The cumulative foreign currency translation adjustment is recorded as a component of accumulated other comprehensive income (loss) in shareholders’ equity. Transactions in foreign currencies are translated into the functional currency of the relevant subsidiary at the rate of exchange prevailing at the date of the transaction. Any monetary assets and liabilities arising from these transactions are translated into the relevant functional currency at exchange rates prevailing at the balance sheet date or on settlement. Resulting gains and losses are recorded in foreign exchange gain (loss) in our consolidated statements of income. Deferred Financing Costs Deferred financing costs are reported at cost, less accumulated amortization and are presented in the consolidated balance sheets as a direct deduction from the carrying value of the associated debt, with the exception of deferred financing costs associated with revolving-debt arrangements which are presented as assets. The related amortization expense is included in interest expense, net in our consolidated statements of income. Contingencies From time to time, we may become involved in claims and other legal matters arising in the ordinary course of business. We record accruals for loss contingencies to the extent that we conclude that it is probable that a liability has been incurred and the amount of the related loss can be reasonably estimated. Legal fees and other expenses related to litigation are expensed as incurred and included in selling, general and administrative expenses. Share-Based Compensation We account for compensation cost for all share-based awards at f |