Ok, your graphs had no time markings so I guestimated the time and missed half an hour and I did not count the short morning charge. so 21KWh it is. 18Kwh during the noon-afternoon pass of 4.5 hours is 4KW per hour which is more than your PV could deliver that day on a single phase right? So import is needed.
Your blue phase import between 00-08 and 16-24 is 16 hours of an estimated average of 0.4KW ie 6.4KWh, which is not far from your stated 7KWh or the actual 7.69KWh 1st of February.
Your blue phase power usage between 08-16 is 8 hours of an estimated average of 0.5KW or around 4KWh.
(I have guestimated average visually by looking at the distance from the yellow phase.)
So 21 + 7.7 + 4 = 32.7 which matches well the 31.8 that was metered.
Now, in order to charge the EV with 4KW you use an average of 1.5KW from PV and an average of 2.5KW from grid import (unless you have batteries which you are not allowed to have when exporting to PEA) so 2.5KW for 4.5 hours is 11.3KWh import.
Add to that the nightly import of 7KWh for a total of 18KWh import but your inverter says 7.69.... 🤥
I blame the discrepancy you have from the way your inverter measures power, it seems to me that it counts the import correctly during night when there is no PV (ie no export) but fails in the day when there is PV and export.
It can't get it right when there is export and import at the same time?