/*
 * material-icons.css — VF-5168: legacy-vocabulary shim for glyphicon-* classes.
 *
 * ROLE - This file is the TRANSITIONAL SHIM that makes every `glyphicon-*` class in the
 * existing ~540 templates render Material Symbols Outlined Fill without modifying any template.
 * Class names such as `glyphicon-pencil`, `glyphicon-info-sign`, `glyphicon-option-vertical`,
 * `glyphicon-search`, etc. survive in the DOM as legacy vocabulary; this file intercepts each
 * one's ::before and repaints it with the correct Material Symbols codepoint.
 *
 * WHAT HAS MIGRATED (no longer handled here — now in the icon-pack layer):
 *   - Table row-action portal-icons (icon-play, icon-download, icon-delete, icon-call-share,
 *     icon-stop, icon-history-*, …) → parts/icon fragment / PortalIcons.html() [Task 6]
 *   - Font Awesome (fa-spinner, fa-sun-o, fa-moon-o, fa-paint-brush, fa-exclamation-triangle,
 *     fa-spin, …) → fully deleted [Task 3]; pack-layer names: spinner, light-mode, dark-mode,
 *     brush, warning
 *   - Profile-dropdown portal-icons (#logoutModal icon-*) → pack layer [Task 6]
 *   - Pagination search icon → pack layer [Task 6]
 *   - parts/copy-to-clipboard copy icon → pack layer [Task 6]
 *
 * NEW CODE RULE - New templates and JS must NOT emit glyphicon-* or fa-* classes.
 * Use the icon-pack layer instead: `~{parts/icon :: icon(name=…)}` in Thymeleaf,
 * `PortalIcons.html(name, opts)` in JavaScript. The shim is a transitional layer only;
 * individual call sites migrate to the pack layer in future per-page tickets.
 *
 * SCOPE - inline Glyphicons long-tail (info tooltips, kebabs, chevrons, responsive buttons,
 * calendar, etc.) + two residual portal-icon names used outside nav context
 * (icon-delete in the glyph-link pattern; icon-history-preview in drag-and-drop-files.js).
 * Sidebar / nav portal-icons (icon-dashboard, icon-history, icon-users, …) are NOT remapped
 * here — they stay portal-icons per the VF-5168 sidebar decision (spec/02 §1).
 *
 * APPROACH - CSS remap, not template rewrite. Every template keeps its existing markup
 * (`<span class="glyphicon glyphicon-pencil">`); this file overrides `font-family` and
 * `content` on ::before with the Material Symbols codepoint. The Halflings @font-face in
 * logicom-custom.min.css stays inert — no woff download is triggered.
 *
 * LOAD ORDER - must come after fonts.css / style_new.css so these overrides win.
 * Applies in both light and dark mode (icons are glyphs in both themes;
 * colour is inherited, so dark.css still recolours them).
 *
 * Codepoints from static/fonts/material-symbols/material-symbols.codepoints (opsz 24 / wght 400).
 *
 * ICON FILL RULE (VF-5168): the portal default is FILLED everywhere. Every remapped icon and the
 * `.material-symbols-outlined` base class render from the FILLED instance
 * ('Material Symbols Outlined Fill' = material-symbols-outlined-fill.woff2, FILL 1).
 * The FILL-0 outlined instance and the Rounded subset have been retired.
 */

/* Filled instance (FILL 1) - the single Material Symbols font used portal-wide. */
@font-face {
    font-family: 'Material Symbols Outlined Fill';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/material-symbols/material-symbols-outlined-fill.woff2') format('woff2');
}

/* Base class for any NEW markup that wants a Material Symbol directly. */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined Fill';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------------- *
 * Shared render props for every remapped glyph (font swapped to Material,
 * legacy Halflings/portal metrics neutralised; Font Awesome removed in Task 3).
 * ------------------------------------------------------------------------- */
.glyphicon-info-sign:before, .glyphicon-pencil:before, .glyphicon-edit:before,
.glyphicon-search:before, .glyphicon-option-vertical:before, .glyphicon-trash:before,
.glyphicon-remove:before, .glyphicon-remove-sign:before, .glyphicon-remove-circle:before,
.glyphicon-copy:before, .glyphicon-copy:hover:before, .glyphicon-plus:before,
.glyphicon-plus-sign:before, .glyphicon-minus:before, .glyphicon-minus-sign:before,
.glyphicon-chevron-down:before, .glyphicon-chevron-up:before,
.glyphicon-chevron-left:before, .glyphicon-chevron-right:before,
.glyphicon-triangle-left:before, .glyphicon-triangle-right:before,
.glyphicon-arrow-left:before, .glyphicon-arrow-right:before,
.glyphicon-backward:before, .glyphicon-forward:before,
.glyphicon-calendar:before, .glyphicon-refresh:before, .glyphicon-cog:before,
.glyphicon-user:before, .glyphicon-eye-open:before, .glyphicon-eye-close:before,
.glyphicon-ok:before, .glyphicon-ok-sign:before, .glyphicon-ok-circle:before,
.glyphicon-exclamation-sign:before, .glyphicon-warning-sign:before,
.glyphicon-question-sign:before, .glyphicon-list-alt:before, .glyphicon-list:before,
.glyphicon-th-list:before, .glyphicon-sort:before, .glyphicon-menu-hamburger:before,
.glyphicon-level-up:before, .glyphicon-download:before, .glyphicon-download-alt:before,
.glyphicon-upload:before, .glyphicon-time:before, .glyphicon-share:before,
.glyphicon-share-alt:before, .glyphicon-envelope:before, .glyphicon-lock:before,
.glyphicon-home:before, .glyphicon-print:before, .glyphicon-filter:before,
.icon-delete:before, .icon-history-preview:before, .icon-play:before {
    font-family: 'Material Symbols Outlined Fill' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: none;
}

/* Inline glyphicons render one step below body text; give Material a consistent inline size
   and cancel the Halflings top:1px nudge so the glyph sits on the text baseline.
   `top` is deliberately NOT !important: bootstrap's own `.glyphicon { top: 1px }` is a plain
   declaration, so load order alone already wins it, while an !important here also outranked the
   INLINE top of glyphs a template positions itself (parts/flatpickr-datepicker pins the calendar
   glyph with `position:absolute; top:50%; transform:translateY(-50%)`) — that glyph then jumped
   to 4px from the field's top edge and hung outside its border. */
.glyphicon {
    font-size: 19px !important;
    line-height: 1 !important;
    top: 4px;
}

/* ------------------------------------------------------------------------- *
 * Glyphicon -> Material Symbols codepoints
 * ------------------------------------------------------------------------- */
.glyphicon-info-sign:before {
    content: "\e88e";
    font-family: 'Material Symbols Outlined Fill' !important;
}

/* info (FILLED) */
/* Tooltip info icons: filled + slightly smaller than the other inline glyphs. */
.glyphicon.glyphicon-info-sign {
    font-size: 16px !important;
}

.glyphicon-pencil:before {
    content: "\f097";
}

/* edit */
.glyphicon-edit:before {
    content: "\f097";
}

/* edit */
.glyphicon-search:before {
    content: "\ef7a";
}

/* search */
.glyphicon-option-vertical:before {
    content: "\e5d4";
}

/* more_vert (kebab) */
.glyphicon-trash:before {
    content: "\e92e";
}

/* delete */
.glyphicon-remove:before {
    content: "\e5cd";
}

/* close */
.glyphicon-remove-sign:before {
    content: "\e888";
}

/* cancel */
.glyphicon-remove-circle:before {
    content: "\e888";
}

/* cancel */
.glyphicon-copy:before {
    content: "\e14d" !important;
}

/* content_copy (outline) */
/* Copy affordance: smaller inline size, and on hover switch to the FILLED glyph + accent
   colour (replaces the portal's old outline->fill hover swap). */
.glyphicon.glyphicon-copy {
    font-size: 15px !important;
    line-height: 1 !important;
    top: 0 !important;
    vertical-align: middle !important;
}

.glyphicon-copy:hover:before,
.glyphicon-copy.copied:before {
    font-family: 'Material Symbols Outlined Fill' !important;
    content: "\e14d" !important;
    color: var(--accent, #ED9F2B) !important; /* unified with the pack hover below — one accent, not the old teal */
}

/* Copy affordance (pack markup): accent on hover, matching the pre-VF-5168 outline->fill swap's intent.
   Same accent as the legacy `.glyphicon-copy:hover` above — both copy markups hover to one colour. */
.copy-by-template:hover [data-icon="copy"],
.copy-by-template [data-icon="copy"].copied {
    color: var(--accent, #ED9F2B);
}

/* The copy affordance RESTS grey everywhere it is an inline value / row / table / breadcrumb
   action, instead of inheriting the cell's (or breadcrumb's) orange link colour. DESIGN.md treats
   copy as a neutral bare IconButton: glyph {colors.ink-muted} (= --ink-3, #8A8F96) at rest,
   colouring only on hover (the accent rule above, and the `.glyphicon-copy:hover:before` rule for
   the legacy glyph). Covers BOTH markups — the icon-pack `.pi[data-icon="copy"]` and the legacy
   shim-rendered `.glyphicon-copy`; both selectors only ever match a copy glyph, so this is scoped
   to the affordance, not to any icon. One global setting, no exceptions (the breadcrumb copy rests
   grey too). --ink-3 remaps to --dm-muted in dark mode, so this themes correctly on both. */
[data-icon="copy"],
.glyphicon-copy {
    color: var(--ink-3, #8A8F96);
}

/* Copy glyph vertically CENTRES on its adjacent text in EVERY context (tables, modals, meta rows,
   detail fields, inline values). An inline copy otherwise sits on the text baseline ~2px high (the
   .pi / glyphicon default vertical-align is baseline), so force `vertical-align: middle`; then the
   `top: -1.3px` nudge corrects the residual (the glyph ink sits a hair below its own box centre).
   Measured to land the glyph centre within ~0.3px of the value's optical centre across modal/field/
   inline contexts. `.table td` overrides top to its own measured -1.4px (glyphs are 12-13px and
   flex-centred there), and the breadcrumb copy — brand chrome already centred by its own flex row —
   resets top to 0 (breadcrumb-bar.css). VF-5168. */
[data-icon="copy"],
.glyphicon-copy {
    vertical-align: middle;
    position: relative;
    top: -1.3px !important; /* beats bootstrap glyphicon top:1px and `.glyphicon.glyphicon-copy { top:0 !important }` */
}

/* Copy control rode ~3.7px HIGH in table value cells (User > Faxes Remote Number, sender-email,
   etc.): the value <p> and the row's status glyphs (ban/allow) are vertical-align:middle, but the
   Material copy glyph (.pi, inline-flex) defaults to baseline. Center it so it lines up with the
   text and the sibling status glyph. Covers both markups: <span class="copy-button"> wrapping the
   glyph, and <p class="... copy-button"> carrying it. */
.copy-button,
.copy-button [data-icon="copy"] {
    vertical-align: middle;
}

.glyphicon-plus:before {
    content: "\e145";
}

/* add */
.glyphicon-plus-sign:before {
    content: "\e145";
}

/* add */
.glyphicon-minus:before {
    content: "\e15b";
}

/* remove */
.glyphicon-minus-sign:before {
    content: "\e15b";
}

/* remove */
.glyphicon-chevron-down:before {
    content: "\e313";
}

/* keyboard_arrow_down */
.glyphicon-chevron-up:before {
    content: "\e316";
}

/* keyboard_arrow_up */
.glyphicon-chevron-left:before {
    content: "\e5cb";
}

/* chevron_left */
.glyphicon-chevron-right:before {
    content: "\e5cc";
}

/* chevron_right */
.glyphicon-triangle-left:before {
    content: "\e5cb";
}

/* chevron_left */
.glyphicon-triangle-right:before {
    content: "\e5cc";
}

/* chevron_right */
.glyphicon-arrow-left:before {
    content: "\e5c4";
}

/* arrow_back */
.glyphicon-arrow-right:before {
    content: "\e5c8";
}

/* arrow_forward */
.glyphicon-backward:before {
    content: "\e5dc";
}

/* first_page */
.glyphicon-forward:before {
    content: "\e5dd";
}

/* last_page */
.glyphicon-calendar:before {
    content: "\ebcc";
}

/* calendar_month */
.glyphicon-refresh:before {
    content: "\e5d5";
}

/* refresh */
.glyphicon-cog:before {
    content: "\e8b8";
}

/* settings */
.glyphicon-user:before {
    content: "\f0d3";
}

/* person */
.glyphicon-eye-open:before {
    content: "\e8f4";
}

/* visibility */
.glyphicon-eye-close:before {
    content: "\e8f5";
}

/* visibility_off */
.glyphicon-ok:before {
    content: "\e668";
}

/* check */
.glyphicon-ok-sign:before {
    content: "\f0be";
}

/* check_circle */
.glyphicon-ok-circle:before {
    content: "\f0be";
}

/* check_circle */
.glyphicon-exclamation-sign:before {
    content: "\f8b6";
}

/* error */
.glyphicon-warning-sign:before {
    content: "\f083";
}

/* warning */
.glyphicon-question-sign:before {
    content: "\e8fd";
}

/* help */
.glyphicon-list-alt:before {
    content: "\e677";
}

/* list_alt */
.glyphicon-list:before {
    content: "\e677";
}

/* list_alt */
.glyphicon-th-list:before {
    content: "\e677";
}

/* list_alt */
.glyphicon-sort:before {
    content: "\e8d5";
}

/* swap_vert */
.glyphicon-menu-hamburger:before {
    content: "\e5d2";
}

/* menu */
.glyphicon-level-up:before {
    content: "\e5d9";
}

/* subdirectory_arrow_left */
.glyphicon-download:before {
    content: "\f090";
}

/* download */
.glyphicon-download-alt:before {
    content: "\f090";
}

/* download */
.glyphicon-upload:before {
    content: "\f09b";
}

/* upload */
.glyphicon-time:before {
    content: "\efd6";
}

/* schedule */
.glyphicon-share:before {
    content: "\e80d";
}

/* share */
.glyphicon-share-alt:before {
    content: "\e80d";
}

/* share */
.glyphicon-envelope:before {
    content: "\e159";
}

/* mail */
.glyphicon-lock:before {
    content: "\e899";
}

/* lock */
.glyphicon-home:before {
    content: "\e9b2";
}

/* home */
.glyphicon-print:before {
    content: "\e8ad";
}

/* print */
.glyphicon-filter:before {
    content: "\ef4f";
}

/* filter_alt */

/* ------------------------------------------------------------------------- *
 * portal-icons non-history-row-button usages -> Material Symbols
 * (icon-delete: glyph-link pattern in message-account-blocked-numbers;
 *  icon-history-preview / icon-play: previewIcon in drag-and-drop-files.js)
 * Row-action icons are now fully on the icon-pack layer (VF-5168 Task 6).
 * ------------------------------------------------------------------------- */
.icon-delete:before {
    content: "\e92e" !important;
}

/* delete */
.icon-history-preview:before {
    content: "\e8f4" !important;
}

/* visibility (eye - view) */
.icon-play:before {
    content: "\e037" !important;
}

/* play_arrow */

/* Profile dropdown (#logoutModal) portal-icons shim removed (VF-5168 Task 6):
 * profile_dropdown.html now uses material-symbols-outlined directly; no icon-* classes remain
 * in that context. The .pi slot rules for #logoutModal live in portal-ui.css. */

/* ------------------------------------------------------------------------- *
 * Additional glyphicons found in the full template audit (lower frequency)
 * ------------------------------------------------------------------------- */
.glyphicon-equalizer:before, .glyphicon-play:before, .glyphicon-arrow-up:before,
.glyphicon-arrow-down:before, .glyphicon-triangle-top:before, .glyphicon-triangle-bottom:before,
.glyphicon-tasks:before, .glyphicon-tag:before, .glyphicon-map-marker:before,
.glyphicon-floppy-disk:before, .glyphicon-floppy-save:before, .glyphicon-repeat:before,
.glyphicon-phone-alt:before, .glyphicon-move:before, .glyphicon-file:before,
.glyphicon-flag:before, .glyphicon-duplicate:before, .glyphicon-cloud-upload:before,
.glyphicon-stop:before, .glyphicon-adjust:before, .glyphicon-link:before,
.glyphicon-ban-circle:before, .glyphicon-earphone:before {
    font-family: 'Material Symbols Outlined Fill' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: none;
}

.glyphicon-equalizer:before {
    content: "\e429";
}

/* tune */
.glyphicon-play:before {
    content: "\e037";
}

/* play_arrow */
.glyphicon-arrow-up:before {
    content: "\e5d8";
}

/* arrow_upward */
.glyphicon-arrow-down:before {
    content: "\e5db";
}

/* arrow_downward */
.glyphicon-triangle-top:before {
    content: "\e316";
}

/* keyboard_arrow_up */
.glyphicon-triangle-bottom:before {
    content: "\e313";
}

/* keyboard_arrow_down */
.glyphicon-tasks:before {
    content: "\e6b1";
}

/* checklist */
.glyphicon-tag:before {
    content: "\e893";
}

/* label */
.glyphicon-map-marker:before {
    content: "\f1db";
}

/* location_on */
.glyphicon-floppy-disk:before {
    content: "\e161";
}

/* save */
.glyphicon-floppy-save:before {
    content: "\e161";
}

/* save */
.glyphicon-repeat:before {
    content: "\e040";
}

/* repeat */
.glyphicon-phone-alt:before {
    content: "\f0d4";
}

/* call */
.glyphicon-move:before {
    content: "\e89f";
}

/* open_with */
.glyphicon-file:before {
    content: "\e873";
}

/* description */
.glyphicon-flag:before {
    content: "\f0c6";
}

/* flag */
.glyphicon-duplicate:before {
    content: "\e14d";
}

/* content_copy */
.glyphicon-cloud-upload:before {
    content: "\e2c3";
}

/* cloud_upload */
.glyphicon-stop:before {
    content: "\e047";
}

/* stop */
.glyphicon-adjust:before {
    content: "\eb37";
}

/* contrast (partial outcome) */
.glyphicon-link:before {
    content: "\e250";
}

/* link */
.glyphicon-ban-circle:before {
    content: "\f08c";
}

/* block */
.glyphicon-earphone:before {
    content: "\f0d4";
}

/* call */
