/* Admin nav icons for the Palladium menu.
   Same technique as payments-admin.css: TheAdmin renders a reserved icon slot
   <span class="icon icon-none"> inside each menu link (the link carries the
   item class). We paint that slot with mask-image + currentColor (theme-aware,
   matches the grey of the other sidebar icons). */
a.palladium-menu-tables > .icon,
a.palladium-menu-roadmap > .icon,
a.palladium-menu-version > .icon {
    aspect-ratio: 1 / 1;
    background-color: currentColor !important;
    -webkit-mask: var(--pli) center / 1.25em no-repeat;
    mask: var(--pli) center / 1.25em no-repeat;
}

/* Palladium logo — greyscale faceted "P" (raster, keeps its shading;
   a mask would flatten it to a solid silhouette) */
a.palladium-admin-menu > .icon {
    aspect-ratio: 1 / 1;
    background: url('../img/logo-admin-grey.png') center / 1.35em no-repeat !important;
}

/* table / grid */
a.palladium-menu-tables > .icon {
    --pli: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v4H3V4zm0 6h8v4H3v-4zm10 0h8v4h-8v-4zM3 16h8v4H3v-4zm10 0h8v4h-8v-4z'/%3E%3C/svg%3E");
}

/* map / roadmap */
a.palladium-menu-roadmap > .icon {
    --pli: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 19.6 9 17.5l-4.7 1.8A1 1 0 0 1 3 18.4V6.3a1 1 0 0 1 .65-.94L9 3.4l6 2.1 4.7-1.8a1 1 0 0 1 1.3.94v12.1a1 1 0 0 1-.65.94L15 19.6zM10 5.9v11.2l4 1.4V7.3l-4-1.4z'/%3E%3C/svg%3E");
}

/* Configuration root — fallback when NavigationManager drops the icon-class
   added by Palladium.Api on the duplicate "Configuration" registration.
   Targets the li that contains our API Connector child; .icon-none guards
   against doubling if the icon-class route did work. */
#left-nav li:has(a.palladium-menu-api) > a > .icon.icon-none {
    aspect-ratio: 1 / 1;
    background-color: currentColor !important;
    -webkit-mask: var(--pli) center / 1.25em no-repeat;
    mask: var(--pli) center / 1.25em no-repeat;
    --pli: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2.2a1.8 1.8 0 1 1 0 3.6 1.8 1.8 0 0 1 0-3.6z'/%3E%3Cpath d='M19.4 13c.04-.33.06-.66.06-1s-.02-.67-.06-1l2-1.6-2-3.46-2.36 1a7 7 0 0 0-1.72-1L15 2.4h-4l-.32 2.54a7 7 0 0 0-1.72 1l-2.36-1-2 3.46L4.6 11c-.04.33-.06.66-.06 1s.02.67.06 1l-2 1.6 2 3.46 2.36-1a7 7 0 0 0 1.72 1L11 21.6h4l.32-2.54a7 7 0 0 0 1.72-1l2.36 1 2-3.46L19.4 13z'/%3E%3C/svg%3E");
}

/* version tag */
a.palladium-menu-version > .icon {
    --pli: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.4 11.6 12.4 2.6A2 2 0 0 0 11 2H4a2 2 0 0 0-2 2v7c0 .53.21 1.04.59 1.41l9 9a2 2 0 0 0 2.82 0l7-7a2 2 0 0 0 0-2.83zM6.5 8A1.5 1.5 0 1 1 8 6.5 1.5 1.5 0 0 1 6.5 8z'/%3E%3C/svg%3E");
}
