Fair Value Measurements - Schedule of Fair Value of Financial Instruments (Detail) (Recurring [Member], USD $) | Jun. 30, 2014 | Dec. 31, 2013 |
In Thousands, unless otherwise specified |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | $190,000 | ' |
Total liabilities measured at fair value | 1,714 | 17,775 |
Level 1 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | 190,000 | ' |
Total liabilities measured at fair value | 0 | 0 |
Level 2 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | 0 | ' |
Total liabilities measured at fair value | 0 | 0 |
Level 3 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | 0 | ' |
Total liabilities measured at fair value | 1,714 | 17,775 |
Derivative liabilities associated with the Medicis settlement [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | 1,714 | 8,294 |
Derivative liabilities associated with the Medicis settlement [Member] | Level 1 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | 0 | 0 |
Derivative liabilities associated with the Medicis settlement [Member] | Level 2 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | 0 | 0 |
Derivative liabilities associated with the Medicis settlement [Member] | Level 3 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | 1,714 | 8,294 |
Derivative liabilities associated with convertible notes [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 4,890 |
Derivative liabilities associated with convertible notes [Member] | Level 1 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 0 |
Derivative liabilities associated with convertible notes [Member] | Level 2 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 0 |
Derivative liabilities associated with convertible notes [Member] | Level 3 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 4,890 |
Common stock warrant liability [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 3,358 |
Common stock warrant liability [Member] | Level 1 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 0 |
Common stock warrant liability [Member] | Level 2 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 0 |
Common stock warrant liability [Member] | Level 3 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 3,358 |
Convertible preferred stock warrant liability [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 1,233 |
Convertible preferred stock warrant liability [Member] | Level 1 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 0 |
Convertible preferred stock warrant liability [Member] | Level 2 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 0 |
Convertible preferred stock warrant liability [Member] | Level 3 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total liabilities measured at fair value | ' | 1,233 |
Money market fund [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | 190,000 | ' |
Money market fund [Member] | Level 1 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | 190,000 | ' |
Money market fund [Member] | Level 2 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | 0 | ' |
Money market fund [Member] | Level 3 [Member] | ' | ' |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | ' | ' |
Total assets measured at fair value | $0 | ' |