/* Ensure postbox uses full height for our widget */
#cf7graphs_dashboard_widget .inside {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.cf7graphs-widget {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cf7graphs-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cf7graphs-units-label {
    font-size: 13px;
    color: #2c3338;
    font-weight: 500;
    margin: 0;
    margin-left: 15px;
}

.cf7graphs-period-label {
    font-size: 13px;
    color: #2c3338;
    font-weight: 500;
    margin: 0;
}

.cf7graphs-period-text {
    font-size: 13px;
    color: #2271b1;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.cf7graphs-period-text:hover {
    color: #135e96;
}

.cf7graphs-loading {
    text-align: center;
    padding: 20px;
    color: #646970;
}

.cf7graphs-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#cf7graphs-chart {
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .cf7graphs-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cf7graphs-container {
        /* Height will be set dynamically by JavaScript */
    }
    
    #cf7graphs-chart {
        /* Height will be set dynamically by JavaScript */
    }
}


