| 9. STOCK-BASED COMPENSATION (Details Narrative) - USD ($) | 3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
| Sep. 30, 2017 | Sep. 30, 2016 | Sep. 30, 2017 | Sep. 30, 2016 | |
| Issuance Of Stock And Warrants For Services Or Claims | $ 0 | $ 541,126 | ||
| Unrecognized compensation cost | $ 1,445,272 | $ 1,445,272 | ||
| Unrecognized weighted average period | 1 year 7 months 10 days | |||
| Modification charge on exchange of options | $ 417,598 | |||
| Amended 2013 Plan [Member] | ||||
| Shares unissued and reserved for issuance | 9,332,000 | 9,332,000 | ||
| Selling, General and Administrative Expenses [Member] | Options and RSU's | ||||
| Stock based compensation expense | $ 1,328,096 | $ 539,976 | $ 3,072,224 | 1,357,684 | 
| Selling, General and Administrative Expenses [Member] | Common Stock [Member] | ||||
| Stock based compensation expense | $ 0 | $ 108,001 | $ 0 | $ 541,126 | 
| X | ||||||||||
| 
- Definition Represents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Number of common shares reserved for future issuance related to deferred compensation arrangements with individuals. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Unrecognized cost of unvested share-based compensation awards. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Weighted average period over which unrecognized compensation is expected to be recognized for equity-based compensation plans, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Fair value of share-based compensation granted to nonemployees as payment for services rendered or acknowledged claims. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition An excess of the fair value of the modified award over the fair value of the award immediately before the modification. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |