v3.10.0.1

Stock-Based Compensation - Additional Information (Details) - Employee Stock Purchase Plan | 1 Months Ended | 3 Months Ended
--- | --- | ---
Jul. 31, 2015 USD ($) shares | Jun. 30, 2018 purchase_period
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |
ESPP offering period |  | 24 months
Number of purchase periods | purchase_period |  | 4
Maximum percentage in payroll deductions to acquire shares of common stock | 15.00% |
Maximum deductible fair market value of shares available for employee to purchase per calendar year | $ | $ 25,000 |
Maximum number of shares available for employee to purchase per offering period | shares | 10,000 |

X
- Definition Share based compensation arrangement by share based payment award maximum deductible fair market value of shares per calendar year. + References No definition available. + Details
Name: | run_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumDeductibleFairMarketValueOfSharesPerCalendarYear
Namespace Prefix: | run_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Share-based Compensation Arrangement by Share-based Payment Award, Number of Purchase Periods + References No definition available. + Details
Name: | run_SharebasedCompensationArrangementbySharebasedPaymentAwardNumberofPurchasePeriods
Namespace Prefix: | run_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The highest percentage of annual salary that an employee is permitted to utilize with respect to the plan. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=96867065&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The highest quantity of shares an employee can purchase under the plan per period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=96867065&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumNumberOfSharesPerEmployee
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=96867065&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_PlanNameAxis=run_EmployeeStockPurchasePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |