XML 119 R106.htm IDEA: XBRL DOCUMENT
v3.22.1

Leases (Details) - Schedule of components operating lease costs - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020
Leases (Details) - Schedule of components operating lease costs [Line Items] |  |
Total lease costs | $ 5,373 | $ 5,275
Operating lease cost [Member] |  |
Leases (Details) - Schedule of components operating lease costs [Line Items] |  |
Total lease costs | 3,124 | 3,247
Variable lease cost [Member] |  |
Leases (Details) - Schedule of components operating lease costs [Line Items] |  |
Total lease costs | 2,192 | 2,028
Short-term lease cost [Member] |  |
Leases (Details) - Schedule of components operating lease costs [Line Items] |  |
Total lease costs | $ 57 |

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

X
- Definition Amount of lease cost recognized by lessee for lease contract. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 Reference 2: 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 + Details
Name: | us-gaap_LeaseCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=mgic_OperatingLeaseCostMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=mgic_VariableLeaseCostMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=mgic_ShorttermLeaseCostMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |