Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2015
Dec. 31, 2014
Dec. 31, 2013
Operating activities      
Net income (loss) $ (84,256) $ (79,620) $ 130,083
Adjustments to reconcile net income (loss) to net cash provided by (used in) operations:      
Depreciation and amortization 8,462 6,047 6,823
Share-based compensation 29,236 27,181 25,025
Loss on disposal 0 1,604 0
Provision (recovery) for doubtful receivables (46) (430) 634
Deferred income taxes (52,690) (49,227) 79,356
Restricted cash equivalents (1,500) 0 0
Excess tax benefit from share-based awards 0 (176) (15)
Changes in operating assets and liabilities:      
Accounts receivable (5,709) 20,548 658
Prepaid income taxes 5,058 3,794 (4,836)
Other assets (7,465) (47) 14,434
Accounts payable (7,162) 8,251 3,378
Accrued compensation and benefits (5,918) 3,174 3,813
Other liabilities 248 (3,312) (2,955)
Customer liabilities 97,930 (15,023) (201,975)
Net cash provided by (used in) operating activities (23,812) (77,236) 54,423
Investing activities      
Purchase of short-term investments (1,023) 0 0
Purchases of property, equipment, and software (21,275) (6,034) (1,877)
Net cash used in investing activities (22,298) (6,034) (1,877)
Financing activities      
Excess tax benefit from share-based awards 0 176 15
Exercise of vested stock options 1,547 0 46
Purchase of treasury stock (1,607) (370) (161)
Restricted cash release from letter of credit 5,000 0 0
Net cash provided by (used in) financing activities 4,940 (194) (100)
Effect of exchange rate changes in cash (500) (260) (511)
Net increase (decrease) in cash and cash equivalents (41,670) (83,724) 51,935
Cash and cash equivalents, at beginning of year 145,167 228,891 176,956
Cash and cash equivalents, at end of year 103,497 145,167 228,891
Supplemental disclosures of cash flow information      
Income taxes paid (1,088) (801) (1,742)
Income taxes refunded $ 1,441 $ 3,014 $ 754