Idle time is calculated while the leg is in progress and accounts for the periods when the vehicle was actually stopped or driving very slowly (when the GPS error is indistinguishable from slow movement).
A leg is a Frotcom trip.
A link is the connection between two spots in a given direction (e.g. A to B).
Stop time is calculated when the vehicle is stopped with ignition off before the leg starts.