/* Baseline emoji rendering across machines (2026-08-28, user-reported).
   Native color emoji glyphs come from the OS's own font (Segoe UI Emoji on Windows,
   Apple Color Emoji on Mac, etc.), and those fonts draw the SAME character with
   genuinely different colour/art -- plain CSS `color` cannot override this, since
   colour-emoji glyphs are pre-coloured art, not recolourable text.

   REVISION (2026-08-28): the first version of this file tried to inject the emoji
   font into ambient/inherited font-family names ('araboto', 'Arial', 'sans-serif',
   etc.) via unicode-range-scoped @font-face blocks, hoping to cover every emoji use
   sitewide with zero markup changes. Abandoned that approach for two proven reasons:
   (1) it did not reliably win the font-fallback race -- Bootstrap's own body rule
   already lists "Apple Color Emoji"/"Segoe UI Emoji" explicitly in its font stack,
   and generic CSS keyword families (sans-serif) are not reliably overridable via
   @font-face across browsers; (2) a full site survey found many of these Unicode
   code points (checkmarks, warning triangles, direction arrows, a close-icon "X")
   are used as plain CSS-COLOURED TEXT GLYPHS, not decorative emoji (e.g. the ↗/↙
   direction arrows inside .soa-tico's own .soa-dir child, or "Balanced ✓" in green)
   -- a colour-emoji glyph can't be recoloured, so a blanket range-based override
   breaks those on sight (already caught once for the sitewide success/warning tick).

   New approach: apply the self-hosted font EXPLICITLY, only to selectors confirmed
   (by direct CSS inspection, not guesswork) to hold genuinely decorative, colour-free
   icons -- and explicitly break inheritance on every colour-glyph selector that sits
   INSIDE one of those, so it can never inherit the emoji font by accident. */

@font-face {
    font-family: 'App Emoji';
    src: url('../fonts/NotoColorEmoji.ttf') format('truetype');
    font-display: swap;
}

/* ---- Safe, colour-free decorative-icon classes: apply directly ---- */

/* .soa-tico: Invoice/Credit Note/Debit Note/Off-Set/Remittance type icons
   (ESOADashboard.cshtml, ESOARemittance.cshtml). No `color` rule anywhere on this
   class -- confirmed via ESOADashbord.css. */
.soa-tico {
    font-family: 'App Emoji';
}

/* .soa-dir: the OUTWARD/INWARD ↗/↙ direction arrow, nested INSIDE .soa-tico.
   This one IS coloured (#2A007C / #FE5F00 in ESOADashbord.css) -- must not inherit
   the emoji font from its .soa-tico parent, or the arrow silently loses its colour. */
.soa-tico .soa-dir {
    font-family: inherit;
}

/* .tico / .tico.doc: bulk-upload document-type icons (ERemittanceUpload.cshtml,
   EInvoiceUpload.cshtml). No `color` rule -- confirmed via ERemittance.css. */
.tico {
    font-family: 'App Emoji';
}

/* .modeEmoji: shipment-mode icons -- Air/Sea/Land/Rail (EShipmentWizard.cshtml,
   EshipmentDetailsFill.cshtml, EshipmentTrackingDashboard.cshtml). Only font-size/
   line-height set on this class -- confirmed via EShipmentDetails.css. Some of this
   same icon set is also rendered via bare inline style="font-size:..." spans WITHOUT
   this class in EshipmentTrackingDashboard.cshtml -- those specific spans are not
   covered here yet (flagged separately, would need the class added to the markup). */
.modeEmoji {
    font-family: 'App Emoji';
}

/* .app-emoji-icon: generic wrapper for bare-inline decorative emoji that had no
   pre-existing colour-free class to hang the font-family off (page headings, static
   legends, info banners, etc.) -- added around each occurrence individually.
   Fix (2026-09-01, found live -- "icon become too small"): NotoColorEmoji's actual
   glyph occupies less of its own em-box than native OS emoji fonts (Segoe UI Emoji,
   Apple Color Emoji) do at the same font-size, so swapping the font alone visibly
   shrank every wrapped icon relative to how it used to render. 1.2em scales it back
   up proportionally to whatever size the surrounding text/heading already sets,
   rather than a fixed px value that would only fit one specific context. */
.app-emoji-icon {
    font-family: 'App Emoji';
    font-size: 1.2em;
}

/* #txtsoclink: Social Media Link platform <select> (UpdateRegistration.cshtml). A native
   <option> can't hold a nested <span>, so the emoji-font rule is applied to the whole
   element instead of a wrapper -- the browser falls back to the normal system font per-
   glyph for the plain-text platform names (Linkedin, Youtube, ...), same as every other
   'App Emoji' rule here relies on for its own surrounding text (2026-09-15).
   Fix (2026-09-15, caught live in a repro before shipping): `'App Emoji', inherit` is
   INVALID CSS -- `inherit` is a CSS-wide keyword and cannot be combined with a font name
   in a comma list, so browsers drop the entire declaration (confirmed via the parsed
   CSSOM: rule.style.fontFamily came back "" -- not merely a rendering quirk).
   Fix (2026-09-15, same repro): a bare single-value 'App Emoji' (matching every other
   rule in this file) DOES apply here, but the plain-text option labels ("Linkedin" etc.)
   then fall through to the BROWSER's own generic default (serif, in testing) instead of
   the site's own Arial/sans-serif -- visibly different from every other form control on
   the page. The other rules in this file get away with a single value because they're
   scoped to icon-only <span> wrappers with no sibling plain text inside the same element;
   this one has to share the element with real label text, so it needs the site's actual
   fallback spelled out explicitly (matches CustomLayout.css's body rule). */
.n4l-social-emoji-select {
    font-family: 'App Emoji', Arial, sans-serif;
}

/* ---- Colour-glyph exclusions: force back to the normal font, even where not
   nested inside one of the classes above, in case of any future markup change ---- */
.success-icon span,
.error-icon span,
.warning-icon span,
.errpanel h5,
.draft-errpanel h5,
.psum-disp,
.MDViewToggle button,
.close-btn,
.MDPtypeOpt {
    font-family: inherit;
}

/* Sea and Air shipment-mode icons (2026-10-26): the supplied NET4LOG artwork replaces the 🚢 / ✈️ emoji everywhere the portal showed them.
   Used as <span class="n4l-mode n4l-mode-sea" role="img" aria-label="Sea"></span> (or n4l-mode-air). The size follows the surrounding font-size, so it scales
   like the emoji it replaces. Land and Rail still use their emoji. */
.n4l-mode {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    vertical-align: -0.55em;
    margin: -0.3em 0;   /* the artwork has its own padding: it is drawn larger than the text without making the line taller */
    flex: 0 0 auto;     /* never squeezed when it sits in a flex row */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.n4l-mode-sea { background-image: url('../images/Transport/sea-freight-icon.svg'); }
.n4l-mode-air { background-image: url('../images/Transport/air-freight-icon.svg'); }
