/* Real Estate Indicator — fond blanc forcé, filtres responsives */
#portefeuille-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

#portefeuille-container .graph-container {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2C3E50 !important;
    color-scheme: only light;
}

#portefeuille-container .graph-container canvas {
    background: #ffffff !important;
    color-scheme: only light;
}

#portefeuille-container .mg-chart-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: "Roboto", sans-serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.35 !important;
    color: #2C3E50 !important;
}

#portefeuille-container .mg-chart-title-l1,
#portefeuille-container .mg-chart-title-l2 {
    color: #2C3E50 !important;
}

#portefeuille-container #filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px 20px !important;
    width: 100% !important;
}

#portefeuille-container #mg-filter-btn {
    background-color: #005792 !important;
    background: #005792 !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 12px 25px !important;
    width: 150px;
    color: #ffffff !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: auto !important;
    line-height: 1.2 !important;
}

#portefeuille-container #mg-filter-btn:hover {
    background-color: #3498DB !important;
    background: #3498DB !important;
    color: #ffffff !important;
}

#portefeuille-container #filter-form input[type="number"] {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    padding: 8px !important;
    border-radius: 5px !important;
}

@media (max-width: 700px) {
    #portefeuille-container #filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #portefeuille-container #filters label,
    #portefeuille-container #mg-filter-btn {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #portefeuille-container .mg-chart-title-l2 {
        display: block !important;
        margin-top: 4px !important;
    }
}
