/* Font Awesome 6 -> 5 name compatibility.
 *
 * The pages were written against the Font Awesome 6.5.1 CDN build, but the copy vendored
 * in plugins/fontawesome-free is 5.15.4. Serving the local copy is what makes icons work
 * with no signal - a driver whose Drop / Pickup / Reject buttons are blank squares cannot
 * use the app - but FA 6 renamed several icons, so a handful of names now resolve to
 * nothing and render as an empty box.
 *
 * Mapping the FA 6 names onto the FA 5 glyphs fixes those without hunting down every
 * usage (including ones built in JS), and it keeps working if the vendored copy is later
 * upgraded to 6, because these rules only supply a glyph for names FA 5 lacks.
 *
 * Codepoints were read out of the shipped all.min.css, not from memory.
 */

/* Renamed in FA 6; same glyph, different name in FA 5. */
.fa-circle-info:before          { content: "\f05a"; }  /* FA5 fa-info-circle          */
.fa-triangle-exclamation:before { content: "\f071"; }  /* FA5 fa-exclamation-triangle */
.fa-circle-exclamation:before   { content: "\f06a"; }  /* FA5 fa-exclamation-circle   */
.fa-circle-check:before         { content: "\f058"; }  /* FA5 fa-check-circle         */
.fa-circle-xmark:before         { content: "\f057"; }  /* FA5 fa-times-circle         */
.fa-arrow-right-from-bracket:before { content: "\f2f5"; } /* FA5 fa-sign-out-alt      */
.fa-magnifying-glass:before     { content: "\f002"; }  /* FA5 fa-search               */
.fa-trash-can:before            { content: "\f2ed"; }  /* FA5 fa-trash-alt            */
.fa-pen-to-square:before        { content: "\f044"; }  /* FA5 fa-edit                 */
.fa-right-left:before           { content: "\f362"; }  /* FA5 fa-exchange-alt         */

/* Pro-only in both 5 and 6, so these were blank on the CDN too - they are not a
 * regression, they simply never worked. Substitute the nearest Free glyph so the
 * control reads as something rather than as a missing character. */
.fa-wifi-slash:before           { content: "\f1eb"; }  /* fa-wifi; offline state is
                                                          carried by the adjacent text */
.fa-navigation:before           { content: "\f124"; }  /* fa-location-arrow            */
