/*
    Card "go" links (2026-11-17): every in-card link that leads somewhere ("Open report ->", "Drill in ->", "Open account",
    "See forecast"...) takes the Smart Signals action look (recurring-area.css .rc-signal-action): a small neutral pill,
    the label in muted ink, and the arrow in a round chip tinted with the card's own color. Hover tints the pill and fills
    the chip. Only links that end in a right arrow or chevron are converted, so table-cell links, "Show more" and Undo stay
    as they are. --ci-go-tone carries the card color; each area sets it below, and anything else falls back to slate.
    Loaded after the area sheets (App.razor), before no-underline.css.
*/
:root { --ci-go-neutral: #64748B; --ci-go-bg: #F4F7FC; --ci-go-line: rgba(15, 23, 42, .1); --ci-go-ink: #565973; }
[data-bs-theme="dark"] { --ci-go-neutral: #A9B4C6; --ci-go-bg: rgba(255, 255, 255, .05); --ci-go-line: rgba(255, 255, 255, .1); --ci-go-ink: #B4B7C9; }

/* Where each card gets its color. */
.rp-highlight .rp-link { --ci-go-tone: var(--rp-tone); }
.lxs-item .rp-link { --ci-go-tone: var(--t); }
.settle-highlight-link { --ci-go-tone: var(--hl); }
.ivo-check-action { --ci-go-tone: var(--iv-green); }
.bgh-watch-all { --ci-go-tone: var(--bg-icon); }

:is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn):has(> :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 2px 2px 2px 10px;
    border: 1px solid var(--ci-go-line);
    border-radius: 999px;
    background: var(--ci-go-bg);
    color: var(--ci-go-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: .01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

:is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn) > :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ci-go-tone, var(--ci-go-neutral)) 16%, transparent);
    color: var(--ci-go-tone, var(--ci-go-neutral));
    font-size: 8px;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

:is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn):not(:disabled):has(> :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child):is(:hover, :focus-visible) {
    border-color: color-mix(in srgb, var(--ci-go-tone, var(--ci-go-neutral)) 30%, transparent);
    background: color-mix(in srgb, var(--ci-go-tone, var(--ci-go-neutral)) 10%, transparent);
    color: var(--ci-go-tone, var(--ci-go-neutral));
    outline: none;
}

:is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn):not(:disabled):is(:hover, :focus-visible) > :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child {
    background: var(--ci-go-tone, var(--ci-go-neutral));
    color: #FFFFFF;
    transform: translateX(1px);
}

[data-bs-theme="dark"] :is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link):not(.rp-link-btn):not(:disabled):is(:hover, :focus-visible) > :is(.fa-arrow-right, .fa-chevron-right, .bx-right-arrow-alt, .bx-chevron-right):last-child { color: #0F1522; }

@media (prefers-reduced-motion: reduce) {
    :is(.rp-link, .settle-highlight-link, .ivo-check-action, .bgh-watch-all, .dbx-card-link, .acx-link, .chx-link, .imc-link) > * { transition: none; transform: none; }
}
