/* Portfolio card (EF click data & Find portfolio weights output).
   Uppercase gray stat labels, monospace values, thin rounded allocation
   bars over a light-gray track — mirrors the okama-web card design. */

.pf-card {
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.pf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.pf-card-title {
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.pf-card-badge {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.pf-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 1.25rem;
}

.pf-stat-label {
    font-family: var(--bs-font-monospace);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.pf-stat-value {
    font-family: var(--bs-font-monospace);
    font-size: 1.5rem;
    font-weight: 700;
}

.pf-alloc-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--bs-tertiary-bg);
    margin: 0.375rem 0 1rem;
}

.pf-alloc-segment {
    height: 100%;
}

/* The wrapper owns the vertical rhythm between asset rows. */
.pf-asset-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pf-asset-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pf-asset-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}

.pf-asset-name {
    font-family: var(--bs-font-monospace);
    min-width: 6rem;
}

.pf-asset-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background-color: var(--bs-tertiary-bg);
    overflow: hidden;
}

.pf-asset-fill {
    height: 100%;
    border-radius: 4px;
}

.pf-asset-pct {
    font-family: var(--bs-font-monospace);
    min-width: 4.5rem;
    text-align: right;
}

/* Note shown instead of the allocation block when weights are unavailable. */
.pf-note {
    margin-bottom: 0;
}
