<?xml version="1.0" encoding="utf-8"?>
<FilingSummary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>2.4.0.8</Version>
  <ProcessingTime />
  <ReportFormat>HtmlAndXml</ReportFormat>
  <ContextCount>410</ContextCount>
  <ElementCount>334</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>86</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>101 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DocumentDocumentandEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <XmlFileName>R1.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>true</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>103 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/StatementOfFinancialPositionClassified</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <XmlFileName>R2.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>104 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/StatementOfFinancialPositionClassifiedParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <XmlFileName>R3.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>105 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/StatementOfIncomeAlternative</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <XmlFileName>R4.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>106 - Statement - Consolidated Statements of Changes In Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/StatementOfShareholdersEquityAndOtherComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Changes In Stockholders' Equity</ShortName>
      <XmlFileName>R5.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>107 - Statement - Consolidated Statements of Changes In Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/StatementOfShareholdersEquityAndOtherComprehensiveIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Changes In Stockholders' Equity (Parenthetical)</ShortName>
      <XmlFileName>R6.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>108 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/StatementOfCashFlowsIndirect</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <XmlFileName>R7.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>109 - Disclosure - Business Overview and Summary of Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsBusinessDescriptionAndAccountingPoliciesTextBlock</Role>
      <ShortName>Business Overview and Summary of Accounting Policies</ShortName>
      <XmlFileName>R8.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>110 - Disclosure - Cash and Cash Equivalents</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsCashAndCashEquivalentsDisclosureTextBlock</Role>
      <ShortName>Cash and Cash Equivalents</ShortName>
      <XmlFileName>R9.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>111 - Disclosure - Other Current Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherCurrentAssetsTextBlock</Role>
      <ShortName>Other Current Assets</ShortName>
      <XmlFileName>R10.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>112 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsPropertyPlantAndEquipmentDisclosureTextBlock</Role>
      <ShortName>Property and Equipment</ShortName>
      <XmlFileName>R11.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>113 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsIncomeTaxDisclosureTextBlock</Role>
      <ShortName>Income Taxes</ShortName>
      <XmlFileName>R12.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>114 - Disclosure - Convertible Promissory Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsLongTermDebtTextBlock</Role>
      <ShortName>Convertible Promissory Notes</ShortName>
      <XmlFileName>R13.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>115 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsRelatedPartyTransactionsDisclosureTextBlock</Role>
      <ShortName>Related Party Transactions</ShortName>
      <XmlFileName>R14.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>116 - Disclosure - Fair Value of Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsFairValueDisclosuresTextBlock</Role>
      <ShortName>Fair Value of Derivative Financial Instruments</ShortName>
      <XmlFileName>R15.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>117 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsCommitmentsAndContingenciesDisclosureTextBlock</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <XmlFileName>R16.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>118 - Disclosure - Significant Contractual Service and Milestone Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsBusinessAndContractualArrangementsDisclosureTextBlock</Role>
      <ShortName>Significant Contractual Service and Milestone Agreements</ShortName>
      <XmlFileName>R17.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>119 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsStockholdersEquityNoteDisclosureTextBlock</Role>
      <ShortName>Equity</ShortName>
      <XmlFileName>R18.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>120 - Disclosure - Stock-Based Compensation/Options and Warrants</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock</Role>
      <ShortName>Stock-Based Compensation/Options and Warrants</ShortName>
      <XmlFileName>R19.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>121 - Disclosure - Licenses and Gain on Extinguishment of Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSignificantAgreementsDisclosureTextBlock</Role>
      <ShortName>Licenses and Gain on Extinguishment of Debt</ShortName>
      <XmlFileName>R20.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>122 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSubsequentEventsTextBlock</Role>
      <ShortName>Subsequent Events</ShortName>
      <XmlFileName>R21.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>123 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock</Role>
      <ShortName>Basis of Presentation</ShortName>
      <XmlFileName>R22.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>124 - Disclosure - Significant Accounting Polices</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSignificantAccountingPoliciesTextBlock</Role>
      <ShortName>Significant Accounting Polices</ShortName>
      <XmlFileName>R23.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>125 - Disclosure - Other Current Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherCurrentAssetsDisclosureTextBlock</Role>
      <ShortName>Other Current Assets</ShortName>
      <XmlFileName>R24.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>126 - Disclosure - Restricted Cash</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfRestrictedCashAndCashEquivalentsTextBlock</Role>
      <ShortName>Restricted Cash</ShortName>
      <XmlFileName>R25.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>127 - Disclosure - Deferred Financing Costs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDeferredChargesDisclosureTextBlock</Role>
      <ShortName>Deferred Financing Costs</ShortName>
      <XmlFileName>R26.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>128 - Disclosure - Other Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherAssetsNoncurrentDisclosureTextBlock</Role>
      <ShortName>Other Assets</ShortName>
      <XmlFileName>R27.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>129 - Disclosure - Business Overview and Summary of Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsBusinessDescriptionAndAccountingPoliciesTextBlockPolicies</Role>
      <ShortName>Business Overview and Summary of Accounting Policies (Policies)</ShortName>
      <XmlFileName>R28.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>130 - Disclosure - Other Current Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherCurrentAssetsTextBlockTables</Role>
      <ShortName>Other Current Assets (Tables)</ShortName>
      <XmlFileName>R29.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>131 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsPropertyPlantAndEquipmentDisclosureTextBlockTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <XmlFileName>R30.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>132 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsRelatedPartyTransactionsDisclosureTextBlockTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <XmlFileName>R31.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>133 - Disclosure - Fair Value of Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsFairValueDisclosuresTextBlockTables</Role>
      <ShortName>Fair Value of Derivative Financial Instruments (Tables)</ShortName>
      <XmlFileName>R32.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>134 - Disclosure - Stock-Based Compensation/Options and Warrants (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlockTables</Role>
      <ShortName>Stock-Based Compensation/Options and Warrants (Tables)</ShortName>
      <XmlFileName>R33.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>135 - Disclosure - Business Overview and Summary of Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureBusinessOverviewAndSummaryOfAccountingPoliciesAdditionalInformation</Role>
      <ShortName>Business Overview and Summary of Accounting Policies - Additional Information (Detail)</ShortName>
      <XmlFileName>R34.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>136 - Disclosure - Cash and Cash Equivalents - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformation</Role>
      <ShortName>Cash and Cash Equivalents - Additional Information (Detail)</ShortName>
      <XmlFileName>R35.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>137 - Disclosure - Other Current Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureOtherCurrentAssets</Role>
      <ShortName>Other Current Assets (Detail)</ShortName>
      <XmlFileName>R36.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>138 - Disclosure - Other Current Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureOtherCurrentAssetsAdditionalInformation</Role>
      <ShortName>Other Current Assets - Additional Information (Detail)</ShortName>
      <XmlFileName>R37.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>139 - Disclosure - Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>Property and Equipment (Detail)</ShortName>
      <XmlFileName>R38.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>140 - Disclosure - Property and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosurePropertyAndEquipmentAdditionalInformation</Role>
      <ShortName>Property and Equipment - Additional Information (Detail)</ShortName>
      <XmlFileName>R39.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>141 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureIncomeTaxesAdditionalInformation</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <XmlFileName>R40.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>142 - Disclosure - Convertible Promissory Notes - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureConvertiblePromissoryNotesAdditionalInformation</Role>
      <ShortName>Convertible Promissory Notes - Additional Information (Detail)</ShortName>
      <XmlFileName>R41.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>143 - Disclosure - Summary of Changes in Convertible Debt Third Parties Net of Unamortized Discount (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSummaryOfChangesInConvertibleDebtThirdPartiesNetOfUnamortizedDiscount</Role>
      <ShortName>Summary of Changes in Convertible Debt Third Parties Net of Unamortized Discount (Detail)</ShortName>
      <XmlFileName>R42.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>144 - Disclosure - Related Party Transactions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformation</Role>
      <ShortName>Related Party Transactions - Additional Information (Detail)</ShortName>
      <XmlFileName>R43.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>145 - Disclosure - Summary of Changes in Convertible Debt Related Parties Net of Unamortized Discount (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSummaryOfChangesInConvertibleDebtRelatedPartiesNetOfUnamortizedDiscount</Role>
      <ShortName>Summary of Changes in Convertible Debt Related Parties Net of Unamortized Discount (Detail)</ShortName>
      <XmlFileName>R44.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>146 - Disclosure - Fair Value of Derivatives Financial Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureFairValueOfDerivativesFinancialInstrumentsAdditionalInformation</Role>
      <ShortName>Fair Value of Derivatives Financial Instruments - Additional Information (Detail)</ShortName>
      <XmlFileName>R45.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>147 - Disclosure - Changes in Fair Value of Derivative Financial Instruments Measured at Fair Value on Recurring Basis using Significant Unobservable Inputs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureChangesInFairValueOfDerivativeFinancialInstrumentsMeasuredAtFairValueOnRecurringBasisUsingSignificantUnobservableInputs</Role>
      <ShortName>Changes in Fair Value of Derivative Financial Instruments Measured at Fair Value on Recurring Basis using Significant Unobservable Inputs (Detail)</ShortName>
      <XmlFileName>R46.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>148 - Disclosure - Variables used in Lattice Option Pricing Model for Derivative Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureVariablesUsedInLatticeOptionPricingModelForDerivativeLiabilities</Role>
      <ShortName>Variables used in Lattice Option Pricing Model for Derivative Liabilities (Detail)</ShortName>
      <XmlFileName>R47.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>149 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformation</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <XmlFileName>R48.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>150 - Disclosure - Significant Contractual Service and Milestone Agreements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSignificantContractualServiceAndMilestoneAgreementsAdditionalInformation</Role>
      <ShortName>Significant Contractual Service and Milestone Agreements - Additional Information (Detail)</ShortName>
      <XmlFileName>R49.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>151 - Disclosure - Equity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureEquityAdditionalInformation</Role>
      <ShortName>Equity - Additional Information (Detail)</ShortName>
      <XmlFileName>R50.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>152 - Disclosure - Stock-Based Compensation/Options and Warrants - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureStockBasedCompensationOptionsAndWarrantsAdditionalInformation</Role>
      <ShortName>Stock-Based Compensation/Options and Warrants - Additional Information (Detail)</ShortName>
      <XmlFileName>R51.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>153 - Disclosure - Summary Information Regarding Options and Warrants (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSummaryInformationRegardingOptionsAndWarrants</Role>
      <ShortName>Summary Information Regarding Options and Warrants (Detail)</ShortName>
      <XmlFileName>R52.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>154 - Disclosure - Summary of Options Outstanding and Exercisable (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSummaryOfOptionsOutstandingAndExercisable</Role>
      <ShortName>Summary of Options Outstanding and Exercisable (Detail)</ShortName>
      <XmlFileName>R53.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>155 - Disclosure - Summary of Warrant Outstanding and Exercisable (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSummaryOfWarrantOutstandingAndExercisable</Role>
      <ShortName>Summary of Warrant Outstanding and Exercisable (Detail)</ShortName>
      <XmlFileName>R54.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>156 - Disclosure - Licenses and Gain on Extinguishment of Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureLicensesAndGainOnExtinguishmentOfDebtAdditionalInformation</Role>
      <ShortName>Licenses and Gain on Extinguishment of Debt - Additional Information (Detail)</ShortName>
      <XmlFileName>R55.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>157 - Disclosure - Subsequent Events - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSubsequentEventsAdditionalInformation</Role>
      <ShortName>Subsequent Events - Additional Information (Detail)</ShortName>
      <XmlFileName>R56.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>158 - Disclosure - Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureSignificantAccountingPoliciesAdditionalInformation</Role>
      <ShortName>Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <XmlFileName>R57.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>159 - Disclosure - Restricted Cash - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureRestrictedCashAdditionalInformation</Role>
      <ShortName>Restricted Cash - Additional Information (Detail)</ShortName>
      <XmlFileName>R58.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>160 - Disclosure - Deferred Financing Costs - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureDeferredFinancingCostsAdditionalInformation</Role>
      <ShortName>Deferred Financing Costs - Additional Information (Detail)</ShortName>
      <XmlFileName>R59.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>161 - Disclosure - Other Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureOtherAssetsAdditionalInformation</Role>
      <ShortName>Other Assets - Additional Information (Detail)</ShortName>
      <XmlFileName>R60.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>162 - Disclosure - Stock Option Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureStockOptionActivity</Role>
      <ShortName>Stock Option Activity (Detail)</ShortName>
      <XmlFileName>R61.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>163 - Disclosure - Warrant Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opexatherapeutics.com/taxonomy/role/DisclosureWarrantActivity</Role>
      <ShortName>Warrant Activity (Detail)</ShortName>
      <XmlFileName>R62.xml</XmlFileName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">Element opxa_ExpectedFuturePayments had a mix of decimals attribute values: -5 0.</Log>
    <Log type="Info">Element us-gaap_ContractsRevenue had a mix of decimals attribute values: -6 0.</Log>
    <Log type="Info">Element us-gaap_MoneyMarketFundsAtCarryingValue had a mix of decimals attribute values: -5 0.</Log>
    <Log type="Info">'Shares' elements on report '135 - Disclosure - Business Overview and Summary of Accounting Policies - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '135 - Disclosure - Business Overview and Summary of Accounting Policies - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '141 - Disclosure - Income Taxes - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '157 - Disclosure - Subsequent Events - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">Process Flow-Through: 103 - Statement - Consolidated Balance Sheets</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Mar. 31, 2012'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2010'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2009'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2008'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2007'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2006'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2005'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2004'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2003'</Log>
    <Log type="Info">Process Flow-Through: 104 - Statement - Consolidated Balance Sheets (Parenthetical)</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 14, 2012'</Log>
    <Log type="Info">Process Flow-Through: 105 - Statement - Consolidated Statements of Operations</Log>
    <Log type="Info">	Process Flow-Through: Removing column '11 Months Ended
Dec. 31, 2003'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2010'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2009'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2008'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2007'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2006'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2005'</Log>
    <Log type="Info">	Process Flow-Through: Removing column '12 Months Ended
Dec. 31, 2004'</Log>
    <Log type="Info">Process Flow-Through: 107 - Statement - Consolidated Statements of Changes In Stockholders' Equity (Parenthetical)</Log>
    <Log type="Info">Process Flow-Through: 108 - Statement - Consolidated Statements of Cash Flows</Log>
  </Logs>
  <InputFiles>
    <File>opxa-20130331.xml</File>
    <File>opxa-20130331.xsd</File>
    <File>opxa-20130331_cal.xml</File>
    <File>opxa-20130331_def.xml</File>
    <File>opxa-20130331_lab.xml</File>
    <File>opxa-20130331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles />
  <BaseTaxonomies />
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
