XML 118 R105.htm IDEA: XBRL DOCUMENT
v3.22.1

Leases (Details) - USD ($) $ in Thousands | 1 Months Ended | 12 Months Ended
--- | --- | ---
Nov. 30, 2021 | Jul. 31, 2020 | Dec. 31, 2021 | Dec. 31, 2020
Leases [Abstract] |  |  |  |
Lease term, description |  |  | The Company’s leases have original lease periods expiring between 2022 and 2033. |
Lease expires, term |  | June 2033 |  |
Additional years, term |  | 10 years |  |
Additional operating lease |  |  | $ 4,352 |
Terminate lease, term | terminate the lease after a 4-year term following a 12-month notice in advance, and an option to renew the lease to an additional 5-year term |  |  |
Operating lease liabilities |  |  | $ 5,269 | $ 5,470

X
- References No definition available. + Details
Name: | mgic_LeaseExpiresTerm
Namespace Prefix: | mgic_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Original lease periods. + References No definition available. + Details
Name: | mgic_LeaseTerm
Namespace Prefix: | mgic_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_LeasesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of terms and conditions of option to terminate lessee's operating lease. Includes, but is not limited to, information about option recognized as part of right-of-use asset and lease liability. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseOptionToTerminate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of lessor's operating lease renewal, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI https://asc.fasb.org/extlink&oid=124258985&loc=SL77919359-209981 + Details
Name: | us-gaap_LessorOperatingLeaseRenewalTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_OperatingLeaseCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating lease income from lease payments and variable lease payments paid and payable to lessor. Includes, but is not limited to, variable lease payments not included in measurement of lease receivable. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124258985&loc=SL77919372-209981 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=123420820&loc=SL77919311-209978 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 270 -SubTopic 10 -Section 50 -Paragraph 6A -URI https://asc.fasb.org/extlink&oid=126900988&loc=SL77927221-108306 + Details
Name: | us-gaap_OperatingLeaseLeaseIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration