/*
 * Record links inside infolists.
 *
 * A TextEntry with a ->url() (see App\Filament\Support\RecordLink) is rendered by
 * Filament as `<a class="fi-in-entry-content">` wrapping the value's
 * `.fi-in-text-item`. The visible text color lives on `.fi-in-text-item`
 * (default var(--gray-950)), so it is overridden there — once — instead of a
 * per-entry ->color() call in PHP. Scoping to `a.fi-in-entry-content` (the
 * anchor variant of the content container) targets linked entries only, and the
 * compound selector outweighs Filament's default `.fi-in-text-item` color.
 *
 * The amber tone matches the panel's primary color (Color::Amber). Change it
 * here to restyle every record link across the app.
 */
a.fi-in-entry-content .fi-in-text-item {
    color: #d97706; /* amber-600 */
    font-weight: 500;
}

.dark a.fi-in-entry-content .fi-in-text-item {
    color: #fbbf24; /* amber-400 */
}

a.fi-in-entry-content:hover .fi-in-text-item {
    text-decoration: underline;
}

/*
 * Payslip preview triggers (PayslipInfolist). These value cells open a modal via
 * wire:click instead of being an `<a>`, so they carry the `.fi-record-trigger`
 * marker class on the entry wrapper. They are painted with the exact same amber
 * as the record links above, so a clickable name/formula reads identically to a
 * real link instead of the darker `warning` shade.
 */
.fi-record-trigger .fi-in-text-item {
    color: #d97706; /* amber-600 */
    font-weight: 500;
}

.dark .fi-record-trigger .fi-in-text-item {
    color: #fbbf24; /* amber-400 */
}

.fi-record-trigger:hover .fi-in-text-item {
    text-decoration: underline;
}
