XML 13 R1.htm IDEA: XBRL DOCUMENT v3.7.0.1
Document And Entity Information - shares
9 Months Ended
Apr. 30, 2017
Jun. 06, 2017
Document Information [Line Items]    
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Apr. 30, 2017  
Document Fiscal Year Focus 2017  
Document Fiscal Period Focus Q3  
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,026,608