Title of Individual [Axis] Title of Individual [Axis] Fair Value by Liability Class [Domain] Fair Value by Liability Class [Domain] Payments of debt issuance/modification costs Payments of Debt Issuance Costs (Gain) loss from change in fair value of warrant liability Gain (Loss) on Change in Fair Value of Warrant Liability Gain (Loss) on Change in Fair Value of Warrant Liability Investments Investment, Policy [Policy Text Block] Significant Unobservable Inputs (Level 3) Fair Value, Inputs, Level 3 [Member] Borrowings outstanding Long-term Line of Credit Proceeds from redemptions, maturities and sale of fixed-maturity investments, available-for-sale Proceeds from Sale and Maturity of Debt Securities, Available-for-sale Share-based compensation expense APIC, Share-based Payment Arrangement, Increase for Cost Recognition 2023 Long-term Debt, Maturities, Repayments of Principal in Year Four Loan-to-value ratio (less than) Loans In Pool, Loan To Value Ratio Loans In Pool, Loan To Value Ratio Gain from change in fair value of warrant liability Gain From Change in Fair Value of Warrant Liability Gain From Change in Fair Value of Warrant Liability OTTI loss in earnings Other than Temporary Impairment Losses, Investments Reconciliation of Liability for Insurance Claims and Claim Expenses Schedule of Liability for Unpaid Claims and Claims Adjustment Expense [Table Text Block] Other comprehensive (loss) income, net of tax: Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract] 2015 Term Loan 2015 Term Loan [Member] 2015 Term Loan Recent Accounting Pronouncements New Accounting Pronouncements, Policy [Policy Text Block] Reclassification adjustment for realized losses (gains) included in net income, tax expense (benefit) Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax Current Fiscal Year End Date Current Fiscal Year End Date Total revenues Revenues Claims and claim expenses incurred: Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims [Abstract] Diluted (in shares) Dilutive weighted average shares outstanding (in shares) Weighted Average Number of Shares Outstanding, Diluted Entity Address, Postal Zip Code Entity Address, Postal Zip Code Schedule of Fair Values and Gross Unrealized Gains and Losses Debt Securities, Available-for-sale [Table Text Block] Credit facility borrowing capacity Line of Credit Facility, Maximum Borrowing Capacity Number of covered claims included in number of claims paid Liability for Paid Claims and Claims Adjustment Expense, Number of Covered Claims Included In Number of Paid Claims Liability for Paid Claims and Claims Adjustment Expense, Number of Covered Claims Included In Number of Paid Claims Unamortized issuance costs and original issue discount Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net Software and equipment, net Property, Plant and Equipment, Net Accrued investment income Accrued Investment Income Receivable Statutory Accounting Practices [Table] Statutory Accounting Practices [Table] London Interbank Offered Rate (LIBOR) London Interbank Offered Rate (LIBOR) [Member] Accumulated Other Comprehensive Income (Loss) AOCI Attributable to Parent [Member] Basis spread on variable rate (percent) Debt Instrument, Basis Spread on Variable Rate Debt Securities, Available-for-sale [Line Items] Debt Securities, Available-for-sale [Line Items] Total assets Assets Entity Shell Company Entity Shell Company Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table] Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table] Cover page. Cover [Abstract] Total bonds Bonds [Member] Document Type Document Type Roll-Forward of Level 3 Liabilities Measured at Fair Value Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block] Gross Unrealized Losses Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax Subsequent Event Subsequent Event [Member] Favorable prior year development Prior years Prior Year Claims and Claims Adjustment Expense Variable Rate [Domain] Variable Rate [Domain] Repayments of term loan Repayments of Long-term Debt Current First Layer Retained Loss Current First Layer Retained Loss Current First Layer Retained Loss Utilities Utilities, Industry Group [Member] Utilities, Industry Group [Member] Change in fair value of warrant liability in current period Class Of Warrant Or Right, Change In Fair Value Of Warrant Liability In Current Period Class Of Warrant Or Right, Change In Fair Value Of Warrant Liability In Current Period Credit Facility [Axis] Credit Facility [Axis] Component of claims paid covered under QSR Transaction Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Including Amounts Covered By Insurance, Amount Under QSR Transaction Component of total amount of payments to settle insured claims and pay costs incurred in the claims settlement process, including amount covered by insurance, covered under QSR transaction. Deferred policy acquisition costs, net Increase (Decrease) in Deferred Policy Acquisition Costs Unrealized loss position, 12 months or greater Unrealized losses, 12 months or greater Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss Financial Instrument [Axis] Financial Instrument [Axis] Variable rate floor (percent) Debt Instrument, Variable Interest Rate Floor Debt Instrument, Variable Interest Rate Floor Document Quarterly Report Document Quarterly Report Commitments and contingencies Commitments and Contingencies Long-term Debt, Type [Domain] Long-term Debt, Type [Domain] Ceded Credit Risk, Reinsurer [Axis] Ceded Credit Risk, Reinsurer [Axis] Cash and cash equivalents (including restricted cash of $2,505 and $2,662 as of March 31, 2020 and December 31, 2019, respectively) Cash, cash equivalents and restricted cash, beginning of period Cash, cash equivalents and restricted cash, end of period Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents Debt Instrument [Line Items] Debt Instrument [Line Items] Exercise price of warrants (in dollars per warrant) Class of Warrant or Right, Exercise Price of Warrants or Rights Roll-forward of Level 3 liabilities: Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] Due in one year or less Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Fair Value Underwriting and operating expenses Other Cost and Expense, Operating Entity File Number Entity File Number Unearned premiums Increase (Decrease) in Unearned Premiums Earnings per share Earnings Per Share, Basic and Diluted [Abstract] Total claims and claim expenses paid Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Reinsurance Reinsurance [Text Block] Percent of premiums ceded under QSR Transaction Percent of pool RIF reinsured Reinsurance Retention Policy, Reinsured Risk, Percentage Intangible assets and goodwill Intangible Assets, Net (Including Goodwill) Schedule of Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits, by Title of Individual and by Type of Deferred Compensation [Table] Schedule of Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits, by Title of Individual and by Type of Deferred Compensation [Table] Accrued investment income Increase (Decrease) in Accrued Investment Income Receivable Document Fiscal Period Focus Document Fiscal Period Focus Statutory surplus Statutory Accounting Practices, Statutory Capital and Surplus, Balance Financial Instruments [Domain] Financial Instruments [Domain] Other comprehensive (loss) income, net of tax Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent Reclassification adjustment for realized losses included in net income, net of tax (benefit) of ($15) and ($39) for the quarters ended March 31, 2020 and 2019, respectively Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax Insurance [Abstract] Insurance [Abstract] Claims applied to pool deductible Liability for Unpaid Claims and Claims Adjustment Expense, Claims Applied to Deductible Liability for Unpaid Claims and Claims Adjustment Expense, Claims Applied to Deductible Secured Debt Secured Debt [Member] Purchase of short-term investments Payments to Acquire Short-term Investments Measurement Frequency [Domain] Measurement Frequency [Domain] Statement [Line Items] Statement [Line Items] Energy Energy, Industry Group [Member] Energy, Industry Group [Member] Fair Value Disclosures [Abstract] Fair Value Disclosures [Abstract] Basic (in dollars per share) Basic earnings per share (in dollars per share) Earnings Per Share, Basic Ceded Credit Risk, Reinsurer [Domain] Ceded Credit Risk, Reinsurer [Domain] Earnings Per Share Earnings Per Share, Policy [Policy Text Block] Comprehensive income Comprehensive Income (Loss), Net of Tax, Attributable to Parent Subsequent Event Type [Axis] Subsequent Event Type [Axis] Statement of Stockholders' Equity [Abstract] Statement of Stockholders' Equity [Abstract] Amendment Flag Amendment Flag Claims paid, including amounts covered by insurance Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Including Amounts Covered By Insurance Amount of payments to settle insured claims and pay costs incurred in the claims settlement process, including amount covered by insurance. Due after five through ten years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Amortized Cost Statutory Accounting Practices [Line Items] Statutory Accounting Practices [Line Items] Common stock, outstanding (in shares) Common Stock, Shares, Outstanding Fixed maturities, available-for-sale, amortized cost Amortized Cost Debt Securities, Available-for-sale, Amortized Cost Quoted Prices in Active Markets for Identical Assets (Level 1) Fair Value, Inputs, Level 1 [Member] Number of securities, less than 12 months Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Number of Positions Interest expense Interest Expense Liability for Claims and Claims Adjustment Expense [Table] Liability for Claims and Claims Adjustment Expense [Table] Reserve for insurance claims and claim expenses Total gross liability for unpaid claims and claim adjustment expenses Beginning balance Ending balance Liability for Claims and Claims Adjustment Expense Fair value Debt Securities, Available-for-sale, Unrealized Loss Position Common stock: class A shares issued under stock plans, net of shares withheld for employee taxes Stock Issued During Period, Value, Employee Stock Purchase Plan, Net of Tax Withholdings Stock Issued During Period, Value, Employee Stock Purchase Plan, Net of Tax Withholdings Fannie Mae Eligible Policies, Pool Two [Member] Eligible Policies, Pool Two [Member] NMIC and Re One Combined NMic and Re one Combined [Member] NMic and Re one Combined [Member] Local Phone Number Local Phone Number Ceding commission earned Reinsurance Ceding Commission Earned Reinsurance Ceding Commission Earned Expected volatility Measurement Input, Option Volatility [Member] Liability Class [Axis] Liability Class [Axis] Prepaid expenses Prepaid Expense Depreciation and amortization Depreciation, Amortization and Accretion, Net 2018 Term Loan Senior Secured Term Loan 2018 [Member] Senior Secured Term Loan 2018 [Member] Future Principal Payments [Abstract] Long-term Debt, Fiscal Year Maturity [Abstract] Key Inputs and Assumptions, Valuation Techniques Fair Value Measurement Inputs and Valuation Techniques [Line Items] Additional paid-in capital Additional Paid in Capital (Gain) loss from change in fair value of warrant liability Fair Value Adjustment of Warrants Other assets Other Assets Contingency reserve Statutory Accounting Practices, Contingency Reserve Contingency reserve recorded under Statutory Accounting Principles is a liability to protect against loss during periods of extreme contraction. Reinsurance coverage amount amortized (as a percent) Reinsurance Agreement, Optional Termination Right, Percent Of Reinsurance Coverage Threshold Reinsurance Agreement, Optional Termination Right, Percent Of Reinsurance Coverage Threshold Comprehensive income: Comprehensive Income (Loss), Net of Tax, Attributable to Parent [Abstract] Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] Entity Current Reporting Status Entity Current Reporting Status Net increase in cash, cash equivalents and restricted cash Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect Net income Net income Net income Net Income (Loss) Attributable to Parent Short-term investments Short-term Investments [Member] Common Stock - Class A Common Stock [Member] Schedule of Net Realized Investment Gains (Losses) Realized Gain (Loss) on Investments [Table Text Block] Debt Instrument [Axis] Debt Instrument [Axis] Amortization of debt discount and debt issuance costs Amortization of Debt Issuance Costs and Discounts Net investment income Investment Income, Net Earnings per Share, Diluted [Abstract] Net Income (Loss) Available to Common Stockholders, Operations, Diluted [Abstract] Entity Small Business Entity Small Business Amortized Cost Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Amortized Cost [Abstract] Entity Filer Category Entity Filer Category Statutory net gain (loss) Statutory Accounting Practices, Statutory Net Income Amount 2018 ILN Transaction 2018 ILN [Member] 2018 ILN [Member] Total liabilities and shareholders' equity Liabilities and Equity Common stock: class A shares issued related to warrants (in shares) Stock issued upon exercise of warrants (in shares) Stock Issued During Period, Shares, Conversion of Convertible Securities Entity Address, City or Town Entity Address, City or Town Income Tax Disclosure [Abstract] Income Tax Disclosure [Abstract] 2020 Revolving Credit Facility Secured Revolving Credit Facility 2020 [Member] Secured Revolving Credit Facility 2020 Schedule of Long-term Debt Instruments [Table] Schedule of Long-term Debt Instruments [Table] Debt Securities By Industry [Axis] Debt Securities By Industry [Axis] Debt Securities By Industry [Axis] Corporate debt securities Corporate Debt Securities [Member] Shareholders' equity Stockholders' Equity Attributable to Parent [Abstract] Document Fiscal Year Focus Document Fiscal Year Focus Subsequent Event Subsequent Events [Text Block] Revenues Revenues [Abstract] Anticipated payment related to annual operating expenses Anticipated Operating Expense Payments, Annual Amount of anticipated payments related to operating expenses of counterparty. Net realized investment losses Net realized investment (losses) Debt Securities, Available-for-sale, Realized Gain (Loss) Accounts payable and accrued expenses Accounts Payable and Accrued Liabilities Warrants issued (in shares) Class of Warrant or Right, Number of Securities Called by Warrants or Rights Recurring Fair Value, Recurring [Member] Corporate debt securities as component of total (percent) Debt Securities, Corporate, Component Of Total. Percentage Debt Securities, Corporate, Component Of Total. Percentage Service expenses Other Nonoperating Expense ILN Transactions ILN Transactions [Member] ILN Transactions [Member] Subsequent Events [Abstract] Schedule of Components of Net Investment Income Investment Income [Table Text Block] Expenses Costs and Expenses [Abstract] Warrants Line of Credit and Related Warrants [Text Block] Line of Credit and Related Warrants [Text Block] Accumulated other comprehensive income, net of tax Accumulated Other Comprehensive Income (Loss), Net of Tax Reinsurance Policy [Domain] Reinsurance Policy [Domain] Diluted net income Net Income (Loss) Attributable to Parent, Diluted Retained Earnings Retained Earnings [Member] Premiums receivable Premiums Receivable, Net Subsequent Event Type [Domain] Subsequent Event Type [Domain] Prior years Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Prior Years Interest expense from amortization of debt issuance costs Amortization of Debt Issuance Costs Subsequent Event [Line Items] Subsequent Event [Line Items] Frequency of periodic payment Debt Instrument, Frequency of Periodic Payment Risk free interest rate Measurement Input, Risk Free Interest Rate [Member] Schedule of ILN Transactions Schedule of respective coverages and retentions of the ILN transactions [Table Text Block] Schedule of respective coverages and retentions of the ILN transactions [Table Text Block] Liabilities Liabilities [Abstract] Document Period End Date Document Period End Date Statement [Table] Statement [Table] Weighted average common shares outstanding Weighted Average Number of Shares Outstanding Reconciliation [Abstract] Entity Registrant Name Entity Registrant Name Purchase of fixed-maturity investments, available-for-sale Payments to Acquire Debt Securities, Available-for-sale Cash flows from investing activities Net Cash Provided by (Used in) Investing Activities [Abstract] Premiums Receivable Premiums Receivable, Basis of Accounting, Policy [Policy Text Block] Maximum Maximum [Member] Change in fair value of warrant liability included in earnings Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings Initial First Layer Retained Loss Initial First Layer Retained Loss Initial First Layer Retained Loss Consumer Consumer, Industry Group [Member] Consumer, Industry Group [Member] Measurement Input Type [Domain] Measurement Input Type [Domain] Reserve for insurance claims and claim expenses Increase (Decrease) in Liability for Claims and Claims Adjustment Expense Reserve Right to purchase, number of shares per warrant (in shares) Number Of Shares, Right To Purchase Per Warrant Number Of Shares, Right To Purchase Per Warrant Net premiums earned Net premiums earned Premiums Earned, Net Deductible on policy Mortgage Pool Insurance, Claim Deductible Mortgage Pool Insurance, Claim Deductible Schedule of Fair Value Measurements of Financial Instruments Fair Value Measurements, Recurring and Nonrecurring [Table Text Block] Warrant liability, at fair value Warrants and Rights Outstanding Fixed maturities, available-for-sale, at fair value (amortized cost of $1,059,143 and $1,113,779 as of March 31, 2020 and December 31, 2019, respectively) Fair Value Fair Value Fair value of securities Debt Securities, Available-for-sale Risk-in-Force of loans in pool past due 60 days or more Loans In Pool, Past Due 60 Days Or More, Loan Risk in Force Loans In Pool, Past Due 60 Days Or More, Risk in Force Change in unrealized investment gains/losses, tax expense (benefit) Other Comprehensive Income (Loss), Securities, Available-for-sale, Tax Risk premiums paid Reinsurance Retention, Risk Premiums Paid Reinsurance Retention, Risk Premiums Paid Due in one year or less Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Amortized Cost Retained earnings Retained Earnings (Accumulated Deficit) Schedule of Available-for-sale Securities [Table] Schedule of Available-for-sale Securities [Table] Other revenues Other Income Entity Tax Identification Number Entity Tax Identification Number Debt instrument face amount Debt Instrument, Face Amount Diluted (in dollars per share) Diluted earnings per share (in dollars per share) Earnings Per Share, Diluted Unrealized (losses) gains in accumulated other comprehensive income, net of tax (benefit) expense of ($3,424) and $3,953 for the quarters ended March 31, 2020 and 2019, respectively Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, after Tax Trading Symbol Trading Symbol Minimum Minimum [Member] Technology Technology, Industry Group [Member] Technology, Industry Group [Member] Reinsurance Policy, Type [Axis] Reinsurance Policy, Type [Axis] Issuance of common stock on warrant exercise Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements Investments, Debt and Equity Securities [Abstract] Investments, Debt and Equity Securities [Abstract] Reinsurance Disclosures [Abstract] Reinsurance Disclosures [Abstract] Debt instrument term (years) Debt Instrument, Term Industrial Industrial, Industry Group [Member] Industrial, Industry Group [Member] Legal Entity [Axis] Legal Entity [Axis] 2018 Revolving Credit Facility Secured Revolving Credit Facility 2018 [Member] Secured Revolving Credit Facility 2018 [Member] Statistical Measurement [Domain] Statistical Measurement [Domain] Expected life Measurement Input, Expected Term [Member] Adjustments to reconcile net income to net cash provided by operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Percent of premiums earned under 2018 QSR Transaction Premiums Earned, Percent Of Risk Premiums Earned, Percent Of Risk Net cash (used in) financing activities Net Cash Provided by (Used in) Financing Activities Entity [Domain] Entity [Domain] Income tax expense Income Tax Expense (Benefit) Due after ten years Debt Securities, Available-for-sale, Allocated and Single Maturity Date, Maturity, after 10 Years, Amortized Cost Net unrealized (losses) gains in accumulated other comprehensive income, tax (benefit) expense Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, Tax Eligible Policies, Pool One Eligible Policies, Pool One [Member] Eligible Policies, Pool One [Member] City Area Code City Area Code Commitment fee (percent) Line of Credit Facility, Unused Capacity, Commitment Fee Percentage Net premiums written Premiums Written, Net Other liabilities Other Liabilities Claims and claim expenses paid: Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid [Abstract] Other assets Increase (Decrease) in Prepaid Expense and Other Assets Title of 12(b) Security Title of 12(b) Security Net premiums written Premiums Written, Net [Abstract] Prepaid expenses Increase (Decrease) in Prepaid Expense Warrant liability, measurement input Warrants and Rights Outstanding, Measurement Input Total assets Assets, Fair Value Disclosure Earnings Per Share [Abstract] Earnings Per Share [Abstract] Counterparty Name [Axis] Counterparty Name [Axis] Schedule of Key Inputs and Assumptions in Option-Pricing Model Fair Value Measurement Inputs and Valuation Techniques [Table Text Block] Fair Value Hierarchy and NAV [Axis] Fair Value Hierarchy and NAV [Axis] Asset-backed securities Asset-backed Securities [Member] Interest rate during period (percent) Debt Instrument, Interest Rate During Period Number of securities, total Debt Securities, Available-for-sale, Unrealized Loss Position, Number of Positions Income before income taxes Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest Term loan Total Long-term Debt, Gross Fair Value Measurement Inputs and Valuation Techniques [Table] Fair Value Measurement Inputs and Valuation Techniques [Table] Proceeds from maturity of short-term investments Proceeds from Sale of Short-term Investments Assets Assets [Abstract] Gross Unrealized Gains Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax Reserves for Insurance Claims and Claim Expenses Liability for Future Policy Benefits and Unpaid Claims Disclosure [Text Block] Beginning balance (in shares) Ending balance (in shares) Shares, Outstanding RTC ratio Risk To Capital Ratio Regulatory Actual This concept represents an entity's ratio of net risk in force (excludes risk ceded through reinsurance contracts and risk in force on defaulted loans) to the amount of statutory capital (defined as the sum of statutory policyholders' surplus plus statutory contingency reserves). Cash flows from operating activities Net Cash Provided by (Used in) Operating Activities [Abstract] Investments Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block] Debt Securities By Industry [Line Items] Debt Securities By Industry [Line Items] Debt Securities By Industry [Line Items] Third-Party Reinsurers Third-Party Reinsurers [Member] Third-Party Reinsurers [Member] Warrants exercised (in shares) Class of Warrant or Right, Number of Warrants Exercised During Period Class of Warrant or Right, Number of Warrants Exercised During Period Dilutive effect of issuable shares (in shares) Weighted Average Number Diluted Shares Outstanding Adjustment Due after one through five years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Fair Value Ceded Ceded premiums earned Ceded Premiums Earned Reinsurance funds withheld Funds Held under Reinsurance Agreements, Liability Investment expenses Investment Income, Investment Expense Warrant liability, expected life Warrants and Rights Outstanding, Term Deferred policy acquisition costs, net Deferred Policy Acquisition Cost Debt Disclosure [Abstract] Debt Disclosure [Abstract] Net premiums earned Premiums Earned, Net [Abstract] Schedule of Future Principal Payments Schedule of Maturities of Long-term Debt [Table Text Block] Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase (Decrease) in Stockholders' Equity [Roll Forward] Statistical Measurement [Axis] Statistical Measurement [Axis] Supplemental disclosures of cash flow information Supplemental Cash Flow Information [Abstract] Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward] Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward] Prepaid reinsurance premiums Prepaid Reinsurance Premiums Changes in operating assets and liabilities: Increase (Decrease) in Other Operating Assets and Liabilities, Net [Abstract] Fair value, 12 months or greater Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer Basis of Presentation Basis of Accounting, Policy [Policy Text Block] Regulatory Information Insurance Disclosure [Text Block] Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits [Line Items] Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits [Line Items] Ceded claims and claim expenses Reinsurance Ceded Claims and Claims Expenses Reinsurance Ceded Claims and Claims Expenses Reinsurance recoverable on loss reserve Reinsurance recoverable on unpaid claims Less reinsurance recoverables Add reinsurance recoverables Reinsurance Recoverable for Paid and Unpaid Claims and Claims Adjustments Statement of Financial Position [Abstract] Statement of Financial Position [Abstract] 2022 Long-term Debt, Maturities, Repayments of Principal in Year Three Income taxes refunded Income Taxes Paid, Net Beginning balance, net of reinsurance recoverables Reserve at end of period, net of reinsurance recoverables Liability for Unpaid Claims and Claims Adjustment Expense, Net Debt Debt Disclosure [Text Block] Reinsurance coverage, term of underlying mortgage amortization (in years) Reinsurance Retention Policy, Term Of Underlying Mortgage Amortization Reinsurance Retention Policy, Term Of Underlying Mortgage Amortization Warrant liability Warrant Liability Warrant Liability Organization, Basis of Presentation and Summary of Accounting Principles Business Description and Basis of Presentation [Text Block] Common stock, authorized (in shares) Common Stock, Shares Authorized Statement of Cash Flows [Abstract] Statement of Cash Flows [Abstract] Restricted cash Restricted Cash 2017 ILN Transaction Two Thousand Seventeen ILN Transaction [Member] Two Thousand Seventeen ILN Transaction [Member] Entity Central Index Key Entity Central Index Key Entity Emerging Growth Company Entity Emerging Growth Company Senior debt Senior Notes [Member] 2018 ILN Transaction Two Thousand Eighteen ILN Transaction [Member] Two Thousand Eighteen ILN Transaction [Member] Share-based compensation expense Share-based Payment Arrangement, Noncash Expense Schedule of Earnings per Share, Basic and Diluted Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Gross realized investment gains Debt Securities, Available-for-sale, Realized Gain Credit Facility [Domain] Credit Facility [Domain] Beginning balance Ending balance Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value Tax and loss bonds Tax And Loss Bond Tax And Loss Bond Base Rate Base Rate [Member] Significant Other Observable Inputs (Level 2) Fair Value, Inputs, Level 2 [Member] Income Taxes Income Tax Disclosure [Text Block] Ceded Ceded Premiums Written Total claims and claim expenses incurred Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims 2017 ILN Transaction 2017 ILN [Member] 2017 ILN [Member] Insurance claims and claim expenses Policyholder Benefits and Claims Incurred, Net, Property, Casualty and Liability Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] Remaining deferred issuance costs, net of accumulated amortization Debt Issuance Costs, Line of Credit Arrangements, Net Warrant liability Warrant [Member] Measurement Input Type [Axis] Measurement Input Type [Axis] Common stock price Measurement Input, Share Price [Member] Number of loans in pool past due 60 days or more Loans In Pool, Past Due 60 Days Or More, Number Of Loans Loans In Pool, Past Due 60 Days Or More, Number Of Loans Ceding commissions under 2016 QSR Transaction Ceded Credit Risk, Commission Earned, Percentage Ceded Credit Risk, Commission Earned, Percentage Unusual or Infrequent Items, or Both [Abstract] Cash flows from financing activities Net Cash Provided by (Used in) Financing Activities [Abstract] Due after five through ten years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value Organization, Consolidation and Presentation of Financial Statements [Abstract] Organization, Consolidation and Presentation of Financial Statements [Abstract] Accounts payable and accrued expenses Increase (Decrease) in Accounts Payable and Accrued Liabilities Term loan Long-term Debt Number of states in which the entity operates Number of States in which Entity Operates Fair Value Hierarchy and NAV [Domain] Fair Value Hierarchy and NAV [Domain] Software and equipment Payments to Acquire Property, Plant, and Equipment Commitment fees in interest expense Line of Credit Facility, Commitment Fee Amount Current year Current Year Claims and Claims Adjustment Expense Risk Written Policies in 2019 Eligible Policies, Pool Five [Member] Eligible Policies, Pool Five [Member] Investment income Investment Income, Interest and Dividend Number of securities,12 months or greater Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Number of Positions Threshold for loss ratio on loans to qualify for profit commission Ceded Credit Risk, Profit Commission, Loss Ratio On Loans Threshold Ceded Credit Risk, Profit Commission, Loss Ratio On Loans Threshold Previously ceded primary RIF recaptured Previously Ceded Primary Risk-In-Force Recaptured Previously Ceded Primary Risk-In-Force Recaptured Accrued interest receivable Interest Receivable Asset-backed securities Debt Securities, Available-for-sale, Maturity, without Single Maturity Date, Amortized Cost QSR Transactions QSR Transactions [Member] QSR Transactions [Member] Valuation Approach and Technique [Axis] Valuation Approach and Technique [Axis] Subsequent Event [Table] Subsequent Event [Table] Additional Paid-in Capital Additional Paid-in Capital [Member] Title of Individual [Domain] Title of Individual [Domain] Schedule of Statutory Net Income (Loss), Surplus, Contingency Reserve and Risk-to-Capital Ratio Statutory Accounting Practices Disclosure [Table Text Block] Gross realized investment losses Debt Securities, Available-for-sale, Realized Loss Deferred tax liability, net Deferred Income Tax Liabilities, Net Ceded risk-in-force Risk In Force, Ceded Risk In Force, Ceded Due after ten years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value Unearned premiums Unearned Premiums Valuation Approach and Technique [Domain] Valuation Approach and Technique [Domain] 2021 Long-term Debt, Maturities, Repayments of Principal in Year Two Entity Address, Address Line One Entity Address, Address Line One Entity Address, State or Province Entity Address, State or Province Total liabilities Financial and Nonfinancial Liabilities, Fair Value Disclosure Schedule of Investments by Maturity Investments Classified by Contractual Maturity Date [Table Text Block] Unrealized losses, less than 12 months Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss Net cash provided by used in investing activities Net Cash Provided by (Used in) Investing Activities Common stock: class A shares issued under stock plans, net of shares withheld for employee taxes (in shares) Stock Issued During Period, Shares, Employee Stock Purchase Plans, Net of Shares For Tax Withholdings Stock Issued During Period, Shares, Employee Stock Purchase Plans, Net of Shares For Tax Withholdings Fair Value, Recurring and Nonrecurring [Table] Fair Value, Recurring and Nonrecurring [Table] Cash and investments held with various state insurance departments Cash, Cash Equivalents, and Short-term Investments Schedule of Investments by Industry Group Investments Classified By Issuer Industry Group [Table Text Block] Investments Classified By Issuer Industry Group [Table Text Block] Ceded Credit Risk [Table] Ceded Credit Risk [Table] Debt instrument covenant, maximum debt-to-total capitalization ratio Debt Instrument, Covenant, Debt to Total Capitalization Ratio, Maximum Debt Instrument, Covenant, Debt to Total Capitalization Ratio, Maximum Entity Interactive Data Current Entity Interactive Data Current Change in unrealized investment gains/losses, net of tax benefit/expense Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, after Tax Common stock, issued (in shares) Common Stock, Shares, Issued Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Total expenses Costs and Expenses Common stock, par value (in dollars per share) Common Stock, Par or Stated Value Per Share Number of claims paid Liability for Paid Claims and Claims Adjustment Expense, Number of Paid Claims Liability for Paid Claims and Claims Adjustment Expense, Number of Paid Claims Taxes paid related to net share settlement of equity awards Payment, Tax Withholding, Share-based Payment Arrangement Entity Incorporation, State or Country Code Entity Incorporation, State or Country Code Direct Direct Premiums Written Measurement Frequency [Axis] Measurement Frequency [Axis] Earnings per Share (EPS) Earnings Per Share [Text Block] Revolving Credit Facility Revolving Credit Facility [Member] COVID-19 Developments and Coronavirus Aid, Relief, and Economic Security (CARES) Act Unusual or Infrequent Items, or Both, Disclosure [Text Block] Fair value of warrant liability reclassified to additional paid in capital upon exercise Class Of Warrant Or Right, Fair Value Of Warrant Liability Reclassified To Additional Paid In Capital Upon Exercise Class Of Warrant Or Right, Fair Value Of Warrant Liability Reclassified To Additional Paid In Capital Upon Exercise Municipal debt securities US States and Political Subdivisions Debt Securities [Member] Premiums receivable Increase (Decrease) in Premiums Receivable Communications Communications, Industry Group [Member] Communications, Industry Group [Member] Effective income tax rate on pre-tax income or loss Effective Income Tax Rate Reconciliation, Percent Debt Securities, Available-for-sale [Table] Debt Securities, Available-for-sale [Table] Periodic payment of principal Debt Instrument, Periodic Payment, Principal Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] Total liabilities Liabilities Dividend yield Measurement Input, Expected Dividend Rate [Member] Deferred income taxes Deferred Income Taxes and Tax Credits IBNR, default period (at least) Liability for Unpaid Claims and Claims Adjustment Expense, Incurred but Not Reported (IBNR) Claims, Default Period Liability for Unpaid Claims and Claims Adjustment Expense, Incurred but Not Reported (IBNR) Claims, Default Period Liability for Claims and Claims Adjustment Expense [Line Items] Liability for Claims and Claims Adjustment Expense [Line Items] 2020 Long-term Debt, Maturities, Repayments of Principal, Remainder of Fiscal Year Counterparty Name [Domain] Counterparty Name [Domain] Proceeds from issuance of common stock related to employee equity plans Proceeds, Issuance of Shares, Share-based Payment Arrangement, Including Option Exercised Earnings per Share, Basic [Abstract] Net Income (Loss) Available to Common Stockholders, Operations, Basic [Abstract] Asset-backed securities Debt Securities, Available-for-sale, Maturity, without Single Maturity Date, Fair Value Fannie Mae Fannie Mae [Member] Fannie Mae [Member] Fair value, less than 12 months Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months Basic (in shares) Basic weighted average shares outstanding (in shares) Weighted Average Number of Shares Outstanding, Basic Equity Components [Axis] Equity Components [Axis] Valuation Technique, Option Pricing Model Valuation Technique, Option Pricing Model [Member] Net realized investment losses Gain (Loss) on Investments Total shareholders' equity Beginning balance Ending balance Stockholders' Equity Attributable to Parent Reserve for prior year insurance claims and claim expenses Liability for Prior Year Claims and Claims Adjustment Expense Liability for Prior Year Claims and Claims Adjustment Expense Debt Securities By Industry [Domain] Debt Securities By Industry [Domain] [Domain] for Debt Securities By Industry [Axis] Schedule of Aging Unrealized Losses Schedule of Unrealized Loss on Investments [Table Text Block] Net amortization of premium on investment securities Accretion (Amortization) of Discounts and Premiums, Investments Current Reinsurance Coverage Current Reinsurance Coverage Current Reinsurance Coverage Ceded Credit Risk [Line Items] Ceded Credit Risk [Line Items] Unrealized loss position, accumulated loss Unrealized Losses Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss Fair Value of Financial Instruments Fair Value Disclosures [Text Block] Reinsurance Reinsurance Accounting Policy [Policy Text Block] Direct Direct Premiums Earned Common stock: class A shares issued related to warrant exercises Stock Issued During Period, Value, Conversion of Convertible Securities Interest paid Interest Paid, Excluding Capitalized Interest, Operating Activities Eurodollar Eurodollar [Member] Variable Rate [Axis] Variable Rate [Axis] Cash, cash equivalents and short-term investments Cash and Cash Equivalents, Fair Value Disclosure Security Exchange Name Security Exchange Name Reinsurance balances, net Increase (Decrease) in Reinsurance Assets and Liabilities Increase (Decrease) in Reinsurance Assets and Liabilities Aggregate dividend capacity Statutory Accounting Practices, Statutory Amount Available for Dividend Payments Anti-dilutive shares (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Long-term Debt, Type [Axis] Long-term Debt, Type [Axis] Net cash provided by operating activities Net Cash Provided by (Used in) Operating Activities Equity Component [Domain] Equity Component [Domain] Document Transition Report Document Transition Report Initial Reinsurance Coverage Initial Reinsurance Coverage Initial Reinsurance Coverage Financial Financial, Industry Group [Member] Financial, Industry Group [Member] Common stock - class A shares, $0.01 par value; 68,873,540 and 68,358,074 shares issued and outstanding as of March 31, 2020 and December 31, 2019, respectively (250,000,000 shares authorized) Common Stock, Value, Outstanding 2018 QSR Transaction Two Thousand Eighteen QSR Transaction [Member] Two Thousand Eighteen QSR Transaction [Member] Fair Value Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Fair Value [Abstract] Current year Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Current Year Debt issuance costs Debt Issuance Costs, Gross Profit commission Reinsurance Profit Commission Reinsurance Profit Commission Risk Written Policies in 2018 Eligible Policies, Pool Four [Member] Eligible Policies, Pool Four [Member] U.S. Treasury securities and obligations of U.S. government agencies U.S. Treasury securities and obligations of U.S. government agencies US Treasury and Government [Member] 2016 QSR Transaction Two Thousand Sixteen QSR Transaction [Member] Two Thousand Sixteen QSR Transaction [Member] Schedule of Effects of Reinsurance Effects of Reinsurance [Table Text Block] Due after one through five years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Amortized Cost Effects of Reinsurance [Table] Effects of Reinsurance [Table] 2019 ILN Transaction 2019 ILN [Member] 2019 ILN [Member] Income Statement [Abstract] Income Statement [Abstract] Primary loans in default Liability for Unpaid Claims and Claims Adjustment Expense, Incurred but Not Reported (IBNR) Claims, Number of Primary Loans in Default Liability for Unpaid Claims and Claims Adjustment Expense, Incurred but Not Reported (IBNR) Claims, Number of Primary Loans in Default Net investment income Net Investment Income Effects of Reinsurance [Line Items] Effects of Reinsurance [Line Items] Investment Income, Net [Abstract] Investment Income, Net [Abstract]