#fx-dashboard .table {
    --bs-table-color: var(--fx-text);
    --bs-table-bg: transparent;
}

#fx-dashboard .table > :not(caption) > * > * {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

#fx-dashboard .form-select option {
    color: #111;
}

#fx-summary .fx-account-select-wrap {
    width: 320px;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    #fx-summary .fx-account-select-wrap {
        width: 100%;
    }
}

#fx-summary .fx-account-select-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #111;
    font-weight: 500;
    font-size: 0.82rem;
}

#fx-summary .fx-account-select-btn:hover,
#fx-summary .fx-account-select-btn:focus,
#fx-summary .fx-account-select-btn:active,
#fx-summary .fx-account-select-btn.show {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 191, 47, 0.6);
    color: #111;
    box-shadow: 0 0 0 3px rgba(255, 191, 47, 0.2);
}

#fx-summary .fx-account-menu {
    min-width: unset;
    font-size: 0.82rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#fx-summary .fx-account-option.active {
    background-color: #ffbf2f;
    color: #111;
}

#fx-summary .fx-stat-card {
    border-radius: 16px;
    padding: 12px 12px 10px;
    min-height: 140px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

#fx-summary .fx-stat-card--light {
    background: #e9e9ee;
    color: #111;
}

#fx-summary .fx-stat-card--accent {
    background: var(--fx-accent);
    color: #111;
    border-color: rgba(0, 0, 0, 0.08);
}

#fx-summary .fx-stat-ic {
    width: 34px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#fx-summary .fx-stat-ic--dark {
    background: rgba(255, 255, 255, 0.55);
}

#fx-summary .fx-stat-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

#fx-summary .fx-stat-count {
    font-size: 24px;
    margin-left: 105px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

#fx-summary .fx-mini-card {
    padding: 12px 12px 10px;
}

#fx-summary .fx-card-icon {
    font-size: 22px;
    color: #111;
}

#fx-summary .fx-open-btn {
    background: var(--fx-accent);
    border: 1px solid rgba(0, 0, 0, 0.28);
    color: #111;
    border-radius: 10px;
    font-weight: 800;
    padding: 8px 14px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

#fx-summary .fx-open-btn:hover {
    background: var(--fx-accent);
    color: #111;
}

#fx-summary .fx-stat-sparkline {
    height: 30px;
    margin-top: 30px;
    margin-bottom: 2px;
    margin-left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#fx-summary .fx-stat-sparkline2 {
    height: 28px;
    margin-top: 20px;
    margin-bottom: 2px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
} 
#fx-summary .fx-stat-line {
    width: auto;
    height: 100%;
    max-width: 92%;
    object-fit: contain;
    display: block;
}

#fx-summary .fx-stat-chip {
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

#fx-summary .fx-stat-chip--up {
    color: #1f9d55;
}

#fx-summary .fx-stat-chip--dark {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 0, 0, 0.2);
}

/* ── Responsive tweaks (mobile-only, no desktop impact) ── */
@media (max-width: 575.98px) {
    #fx-summary .fx-stat-card {
        min-height: 120px;
        padding: 10px 10px 8px;
    }

    #fx-summary .fx-stat-value {
        font-size: 16px;
    }

    #fx-summary .fx-stat-count {
        font-size: 18px;
        margin-left: 0;
    }

    #fx-summary .fx-card-icon {
        font-size: 16px;
    }

    #fx-summary .fw-semibold {
        font-size: 0.8rem;
    }

    #fx-summary .fx-stat-chip {
        font-size: 10px;
        padding: 3px 7px;
    }

    #fx-summary .fx-open-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    #fx-summary .fx-stat-sparkline {
        margin-top: 16px;
        margin-left: 10px;
        height: 24px;
    }

    #fx-summary .fx-stat-sparkline2 {
        margin-top: 12px;
        margin-left: 8px;
        height: 22px;
    }
}

