XML 18 R1.htm IDEA: XBRL DOCUMENT v3.6.0.2
Document And Entity Information - shares
6 Months Ended
Jan. 31, 2017
Mar. 07, 2017
Document Information [Line Items]    
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Jan. 31, 2017  
Document Fiscal Year Focus 2017  
Document Fiscal Period Focus Q2  
Entity Registrant Name OPIANT PHARMACEUTICALS, INC.  
Entity Central Index Key 0001385508  
Current Fiscal Year End Date --07-31  
Entity Filer Category Smaller Reporting Company  
Trading Symbol OPNT  
Entity Common Stock, Shares Outstanding   2,036,904