Income Taxes - Unrecognized tax benefits (Details) - USD ($)
|
12 Months Ended |
Dec. 31, 2015 |
Dec. 31, 2014 |
Dec. 31, 2013 |
| Increase in valuation allowance |
$ 30,800,000
|
$ 16,100,000
|
|
| Tax credit carryforwards |
|
18,000
|
|
| Reconciliation of unrecognized tax benefits |
|
|
|
| Unrecognized tax benefits, beginning of period |
5,661,000
|
2,100,000
|
$ 618,000
|
| Gross increases-current period tax positions |
2,993,000
|
1,874,000
|
1,482,000
|
| Gross increases-prior period tax positions |
2,775,000
|
1,687,000
|
|
| Unrecognized tax benefits, end of period |
11,429,000
|
5,661,000
|
$ 2,100,000
|
| Interest and penalties related to unrecongnized tax benefits |
0
|
|
|
| Foreign |
|
|
|
| Net operating loss carryforwards |
|
4,000,000
|
|
| Options |
|
|
|
| Net operating loss carryforwards |
500,000
|
|
|
| Federal |
|
|
|
| Net operating loss carryforwards |
$ 147,000,000
|
|
|
| Reconciliation of unrecognized tax benefits |
|
|
|
| Number of tax years open for examination |
3 years
|
|
|
| Federal | Research and development |
|
|
|
| Tax credit carryforwards |
|
3,700,000
|
|
| California |
|
|
|
| Net operating loss carryforwards |
$ 96,000,000
|
|
|
| Reconciliation of unrecognized tax benefits |
|
|
|
| Number of tax years open for examination |
4 years
|
|
|
| California | Research and development |
|
|
|
| Tax credit carryforwards |
|
$ 3,300,000
|
|