XML 81 R68.htm IDEA: XBRL DOCUMENT
v3.22.1

Marketable Securities (Details) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 USD ($)
Investments, Debt and Equity Securities [Abstract] |
Recognized trading losses, amount | $ 96

X
- Definition Recognized trading losses, amount. + References No definition available. + Details
Name: | mgic_RecognizedTradingLossesAmount
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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