<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.2.0.727</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>300</ContextCount>
  <ElementCount>317</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>77</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/StatementCondensedConsolidatedBalanceSheets</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/StatementCondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/StatementCondensedConsolidatedStatementsOfOperations</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS DEFICIT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/StatementCondensedConsolidatedStatementsOfStockholdersDeficit</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS DEFICIT</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/StatementCondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Basis of presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Organization and nature of operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperations</Role>
      <ShortName>Organization and nature of operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Net loss per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureNetLossPerShare</Role>
      <ShortName>Net loss per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Fair value of financial instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair value of financial instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Sale-leaseback transaction</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSaleLeasebackTransaction</Role>
      <ShortName>Sale-leaseback transaction</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Intangible assets, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureIntangibleAssetsNet</Role>
      <ShortName>Intangible assets, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Other assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOtherAssets</Role>
      <ShortName>Other assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Long-term debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureLongTermDebt</Role>
      <ShortName>Long-term debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Common stock and redeemable convertible preferred stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStock</Role>
      <ShortName>Common stock and redeemable convertible preferred stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Stock options, restricted stock and performance stock options</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptions</Role>
      <ShortName>Stock options, restricted stock and performance stock options</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Treasury stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureTreasuryStock</Role>
      <ShortName>Treasury stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11501 - Disclosure - License agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureLicenseAgreements</Role>
      <ShortName>License agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11601 - Disclosure - Related party transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related party transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11701 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>20302 - Disclosure - Summary of signifcant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSummaryOfSignifcantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of signifcant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Net loss per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureNetLossPerShareTables</Role>
      <ShortName>Net loss per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureNetLossPerShare</ParentRole>
      <Position>25</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Fair value of financial instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair value of financial instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>26</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureInventories</ParentRole>
      <Position>27</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Intangible assets, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureIntangibleAssetsNetTables</Role>
      <ShortName>Intangible assets, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureIntangibleAssetsNet</ParentRole>
      <Position>28</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Other assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOtherAssetsTables</Role>
      <ShortName>Other assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureOtherAssets</ParentRole>
      <Position>29</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>31003 - Disclosure - Long-term debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureLongTermDebtTables</Role>
      <ShortName>Long-term debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureLongTermDebt</ParentRole>
      <Position>30</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>31103 - Disclosure - Common stock and redeemable convertible preferred stock (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockTables</Role>
      <ShortName>Common stock and redeemable convertible preferred stock (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStock</ParentRole>
      <Position>31</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Stock options, restricted stock and performance stock options (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsTables</Role>
      <ShortName>Stock options, restricted stock and performance stock options (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptions</ParentRole>
      <Position>32</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Organization and nature of operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperationsDetails</Role>
      <ShortName>Organization and nature of operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperations</ParentRole>
      <Position>33</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>40202 - Disclosure - Organization and nature of operations (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperationsDetails2</Role>
      <ShortName>Organization and nature of operations (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperations</ParentRole>
      <Position>34</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40203 - Disclosure - Organization and nature of operations (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperationsDetails3</Role>
      <ShortName>Organization and nature of operations (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureOrganizationAndNatureOfOperations</ParentRole>
      <Position>35</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Summary of significant accounting policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of significant accounting policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>36</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Net loss per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureNetLossPerShareDetails</Role>
      <ShortName>Net loss per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureNetLossPerShareTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Fair value of financial instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsDetails</Role>
      <ShortName>Fair value of financial instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40502 - Disclosure - Fair value of financial instruments (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsDetails2</Role>
      <ShortName>Fair value of financial instruments (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40503 - Disclosure - Fair value of financial instruments (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsDetails3</Role>
      <ShortName>Fair value of financial instruments (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40504 - Disclosure - Fair value of financial instruments (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsDetails4</Role>
      <ShortName>Fair value of financial instruments (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40505 - Disclosure - Fair value of financial instruments (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsDetails5</Role>
      <ShortName>Fair value of financial instruments (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureInventoriesDetails</Role>
      <ShortName>Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureInventoriesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Sale-leaseback transaction (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSaleLeasebackTransactionDetails</Role>
      <ShortName>Sale-leaseback transaction (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureSaleLeasebackTransaction</ParentRole>
      <Position>44</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Intangible assets, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureIntangibleAssetsNetDetails</Role>
      <ShortName>Intangible assets, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureIntangibleAssetsNetTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Other assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureOtherAssetsDetails</Role>
      <ShortName>Other assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureOtherAssetsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Long-term debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureLongTermDebtDetails</Role>
      <ShortName>Long-term debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureLongTermDebtTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>41002 - Disclosure - Long-term debt (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureLongTermDebtDetails2</Role>
      <ShortName>Long-term debt (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureLongTermDebtTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Common stock and redeemable convertible preferred stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockDetails</Role>
      <ShortName>Common stock and redeemable convertible preferred stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>41102 - Disclosure - Common stock and redeemable convertible preferred stock (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockDetails2</Role>
      <ShortName>Common stock and redeemable convertible preferred stock (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>41103 - Disclosure - Common stock and redeemable convertible preferred stock (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockDetails3</Role>
      <ShortName>Common stock and redeemable convertible preferred stock (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureCommonStockAndRedeemableConvertiblePreferredStockTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Stock options, restricted stock and performance stock options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsDetails</Role>
      <ShortName>Stock options, restricted stock and performance stock options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Stock options, restricted stock and performance stock options (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsDetails2</Role>
      <ShortName>Stock options, restricted stock and performance stock options (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>41203 - Disclosure - Stock options, restricted stock and performance stock options (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsDetails3</Role>
      <ShortName>Stock options, restricted stock and performance stock options (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>41204 - Disclosure - Stock options, restricted stock and performance stock options (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsDetails4</Role>
      <ShortName>Stock options, restricted stock and performance stock options (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureStockOptionsRestrictedStockAndPerformanceStockOptionsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Treasury stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureTreasuryStockDetails</Role>
      <ShortName>Treasury stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureTreasuryStock</ParentRole>
      <Position>56</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Commitments and contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>57</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>41501 - Disclosure - License agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureLicenseAgreementsDetails</Role>
      <ShortName>License agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureLicenseAgreements</ParentRole>
      <Position>58</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>41601 - Disclosure - Related party transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureRelatedPartyTransactionsDetails</Role>
      <ShortName>Related party transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>59</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>41701 - Disclosure - Subsequent events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.neostx.com/role/DisclosureSubsequentEventsDetails</Role>
      <ShortName>Subsequent events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.neostx.com/role/DisclosureSubsequentEvents</ParentRole>
      <Position>60</Position>
    </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">In ''CONDENSED CONSOLIDATED BALANCE SHEETS'', column(s) 3, 4 are contained in other reports, so were removed by flow through suppression.</Log>
    <Log type="Info">In ''CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS'', column(s) 2, 3 are contained in other reports, so were removed by flow through suppression.</Log>
  </Logs>
  <InputFiles>
    <File>neos-20150630.xml</File>
    <File>neos-20150630_cal.xml</File>
    <File>neos-20150630_def.xml</File>
    <File>neos-20150630_lab.xml</File>
    <File>neos-20150630_pre.xml</File>
    <File>neos-20150630.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>

