XML 44 R29.htm IDEA: XBRL DOCUMENT
v3.23.2

Long Term Debt (Details) - USD ($) $ in Millions |  |  |  |  | 1 Months Ended |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Feb. 03, 2023 | Jan. 02, 2023 | May 09, 2022 | May 01, 2022 | May 31, 2022 | Sep. 30, 2023 | Jun. 30, 2023 | Jun. 19, 2023 | Jan. 01, 2023
Debt instrument, Face amount |  |  |  |  |  |  | $ 100.0 |  |
Interest rate |  |  |  |  |  |  | 10.70% |  |
Percenatge of Term charges on aggregate principal amount |  |  |  |  | 5.35% |  |  |  |
Debt conversion, converted instrument, warrants or options issued |  |  |  | 14,899 |  |  |  |  |
Debt conversion, converted instrument, amount |  |  | $ 0.6 |  |  |  |  |  |
Loan Facility [Member] |  |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity |  |  |  |  |  |  |  |  | $ 35.0
Line of credit facility, expiration date |  | Sep. 30, 2024 |  |  |  |  |  |  |
Loan Facility And Amended Loan Facility [Member] |  |  |  |  |  |  |  |  |
Long term debt floor interest rate percentage | 8.25% |  |  |  |  |  |  |  |
Loan Facility And Amended Loan Facility [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |
Long term debt floor interest rate percentage | 2.45% |  |  |  |  |  |  |  |
Loan Facility And Amended Loan Facility [Member] | Tranche Two [Member] |  |  |  |  |  |  |  |  |
Proceeds from issuance of debt | $ 35.0 |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity | $ 65.0 |  |  |  |  |  | $ 15.0 | $ 15.0 |
Debt conversion, converted instrument, warrants or options issued | 3,504 |  |  |  |  |  |  |  |
Debt conversion, converted instrument, amount | $ 0.7 |  |  |  |  |  |  |  |
Line of Credit Facility, Current Borrowing Capacity | 15.0 |  |  |  |  |  |  |  |
Loan Facility And Amended Loan Facility [Member] | Tranche three [Member] |  |  |  |  |  |  |  |  |
Line of Credit Facility, Remaining Borrowing Capacity | 75.0 |  |  |  |  |  |  |  |
Loan Facility And Amended Loan Facility [Member] | Tranche fouth [Member] |  |  |  |  |  |  |  |  |
Line of Credit Facility, Remaining Borrowing Capacity | 15.0 |  |  |  |  |  |  |  |
Loan Facility And Amended Loan Facility [Member] | Subsequent Event [Member] | Tranche Two [Member] |  |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity |  |  |  |  |  | $ 15.0 |  |  |
Loan Facility And Amended Loan Facility One [Member] | Tranche fouth [Member] |  |  |  |  |  |  |  |  |
Line of Credit Facility, Remaining Borrowing Capacity | 60.0 |  |  |  |  |  |  |  |
Drawn In Two Separate Tranches Upon Achievement of Resmetirom Clinical And Regulatory Milestone |  |  |  |  |  |  |  |  |
Unused borrowing capacity that can be drawn |  |  |  |  | $ 125.0 |  |  |  |
Term Loan [Member] |  |  |  |  |  |  |  |  |
Debt instrument, Face amount |  |  |  |  | 250.0 |  |  |  |
Proceeds from issuance of debt |  |  |  |  | $ 50.0 |  |  |  |
Long term debt floor interest rate percentage |  |  |  |  | 7.45% |  |  |  |
Debt Instrument Interest Payments Terms |  |  |  |  | The Company will pay interest-only monthly payments of accrued interest under the Loan Facility for a period of 30 months, which period may be extended to 36, 48, and 60 months upon the successive achievement of certain clinical and regulatory milestones |  |  |  |
Term Loan [Member] | Loan Facility And Amended Loan Facility [Member] |  |  |  |  |  |  |  |  |
Proceeds from issuance of debt | $ 35.0 |  |  |  |  |  |  |  |
Term Loan [Member] | Drawn In Two Separate Tranches Upon Achievement of Resmetirom Clinical And Regulatory Milestone |  |  |  |  |  |  |  |  |
Unused borrowing capacity that can be drawn |  |  |  |  | $ 75.0 |  |  |  |

X
- Definition Debt instrument, interest payments terms. + References No definition available. + Details
Name: | mdgl_DebtInstrumentInterestPaymentsTerms
Namespace Prefix: | mdgl_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Long term debt floor interest rate percentage. + References No definition available. + Details
Name: | mdgl_LongTermDebtFloorInterestRatePercentage
Namespace Prefix: | mdgl_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percenatge of term charges on aggregate principal amount. + References No definition available. + Details
Name: | mdgl_PercenatgeOfTermChargesOnAggregatePrincipalAmount
Namespace Prefix: | mdgl_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The value of the financial instrument(s) that the original debt is being converted into in a noncash (or part noncash) transaction. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-3 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_DebtConversionConvertedInstrumentAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The number of warrants issued in exchange for the original debt being converted in a noncash (or part noncash) transaction. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-3 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_DebtConversionConvertedInstrumentWarrantsOrOptionsIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482900/835-30-50-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69B Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69C Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-2 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482949/835-30-55-8 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of unused borrowing capacity under the long-term financing arrangement that is available to the entity as of the balance sheet date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Date the credit facility terminates, in YYYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityExpirationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 14 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-14 + Details
Name: | us-gaap_ProceedsFromIssuanceOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_CreditFacilityAxis=mdgl_LoanFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=mdgl_LoanFacilityAndAmendedLoanFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_PrimeRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mdgl_TrancheAxis=mdgl_TrancheTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mdgl_TrancheAxis=mdgl_TrancheThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mdgl_TrancheAxis=mdgl_TrancheFouthMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=mdgl_LoanFacilityAndAmendedLoanFacilityOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mdgl_DebtDescriptionAxis=mdgl_DrawnInTwoSeparateTranchesUponAchievementOfResmetiromClinicalAndRegulatoryMilestoneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=mdgl_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |