/* Opportunities table */
.rf-risk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.rf-risk-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--rf-line);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rf-muted);
}

.rf-risk-chip .rf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rf-dot-aplus { background: var(--rf-green); }
.rf-dot-a { background: #2f9e6f; }
.rf-dot-b { background: #d99a2b; }

.rf-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.rf-filter-chip {
    border: 1px solid var(--rf-line);
    background: #fff;
    color: var(--rf-ink);
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.rf-filter-chip.active,
.rf-filter-chip:hover {
    background: var(--rf-ink);
    color: #fff;
    border-color: var(--rf-ink);
}

.rf-table-wrap {
    background: #fff;
    border: 1px solid var(--rf-line);
    overflow-x: auto;
}

.rf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.rf-table thead th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--rf-ink);
    padding: 16px 18px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.rf-table tbody tr {
    border-bottom: 1px solid var(--rf-line);
    transition: background 0.15s ease;
}

.rf-table tbody tr:hover {
    background: var(--rf-canvas);
}

.rf-table tbody td {
    padding: 18px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.rf-table .rf-fund-name {
    font-weight: 800;
    display: block;
}

.rf-table .rf-fund-category {
    color: var(--rf-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.rf-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.rf-grade-aplus { background: var(--rf-green); color: #0b2712; }
.rf-grade-a { background: #2f9e6f; }
.rf-grade-b { background: #d99a2b; }

.rf-table .rf-apy {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--rf-green-dark);
}

.rf-table .rf-amount {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rf-mini-progress {
    width: 120px;
    height: 6px;
    background: #eaf0eb;
    overflow: hidden;
    margin-bottom: 6px;
}

.rf-mini-progress span {
    display: block;
    height: 100%;
    background: var(--rf-green);
}

.rf-variable-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #fdf1dc;
    color: #8a5a12;
}

@media (max-width: 767px) {
    .rf-table {
        min-width: 760px;
    }
}
