/* Candidate Vetting (/panel/candidate-vetting) — page-scoped EDS bridge
   additions. Loads after eds-panel.css; everything scoped under
   .fi-resource-candidate-vetting (native Filament page class, set by
   ListRecords::getPageClasses() — see vendor/filament/filament/src/
   Resources/Pages/ListRecords.php) so nothing here leaks onto another
   panel surface. */

/* "Why review is needed" row, "NPI declared" card: the value string
   ("12 of 5,512 (+5 this week)") is the longest of the 8 stat values on
   this page and is the only one that line-breaks mid-phrase inside the
   @xl 4-column stat grid, making this row ~35px taller than the "Vetting
   pipeline" row above it. `.u03-npi-stat` is set by
   CandidateVettingAutonomyStats::getStats() via ->extraAttributes() on
   that one Stat only, so this doesn't touch the other 7 cards. Let the
   browser choose a better break point than mid-number first; step the
   value down a notch at the 4-column breakpoint only if that alone isn't
   enough room. */
.fi-resource-candidate-vetting .u03-npi-stat .fi-wi-stats-overview-stat-value {
    text-wrap: balance;
}

@media (min-width: 1280px) {
    .fi-resource-candidate-vetting .u03-npi-stat .fi-wi-stats-overview-stat-value {
        font-size: 1rem;
    }
}

/* Record-action column: 25 rows x 4 coloured text links (Details/Approve/
   Reject/Re-run) is the loudest region of the page, out-shouting the
   status/identity/flag badges that are the actual scan signal. Mute the
   link text to ink2; the leading icon alone keeps its action's semantic
   colour, and the full colour returns on hover/focus so the affordance
   is not lost. */
.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action {
    color: var(--ink2);
    transition: color 150ms var(--fi-eds-ease);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-primary > .fi-icon {
    color: var(--purple7);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-success > .fi-icon {
    color: var(--ok-ink);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-danger > .fi-icon {
    color: var(--err-ink);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-gray > .fi-icon {
    color: var(--ink3);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-primary:hover,
.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-primary:focus-visible {
    color: var(--purple7);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-success:hover,
.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-success:focus-visible {
    color: var(--ok-ink);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-danger:hover,
.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-danger:focus-visible {
    color: var(--err-ink);
}

.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-gray:hover,
.fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action.fi-color-gray:focus-visible {
    color: var(--ink3);
}

@media (prefers-reduced-motion: reduce) {
    .fi-resource-candidate-vetting .fi-ta-actions .fi-ac-link-action {
        transition: none;
    }
}
