| CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Parenthetical) $ in Thousands | 9 Months Ended | 
|---|---|
| Sep. 30, 2017  USD ($) | |
| Common stock | |
| Cash flows from financing activities | |
| Stock issuance costs | $ 4,774 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition The cash outflow for cost incurred directly with the issuance of an equity security. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Details 
 |