.jqplot-target {
    color: @theme-color-text;
}

.jqplot-loading {
    background-color: @theme-color-background-contrast;
}

a.rowevolution-startmulti {
    color: @theme-color-link !important;
}

.rowevolution table.metrics td.text {
    color: @theme-color-text-light;
}

.rowevolution table.metrics td.text span.details,
.rowevolution .metric-selectbox select {
    color: @theme-color-text;
}

.piwik-graph {
    height: 250px;
}

.jqplot-legend-footer {
    display: none;
}

body.plotlines-tweaks-enabled .jqplot-legend-footer.has-legend {
    // Used by jqplot.js to match the exported image legend layout.
    --jqplot-legend-footer-height: 38px;
    --jqplot-legend-swatch-size: 12px;
    --jqplot-legend-item-gap: 8px;
    --jqplot-legend-row-gap: 24px;
    --jqplot-legend-line-gap: 6px;
    --jqplot-legend-horizontal-padding: 12px;

    height: var(--jqplot-legend-footer-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

body.plotlines-tweaks-enabled .jqplot-legend-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: safe center;
    gap: var(--jqplot-legend-line-gap) var(--jqplot-legend-row-gap);
    height: var(--jqplot-legend-footer-height);
    overflow: hidden;
    width: 100%;
}

body.plotlines-tweaks-enabled .jqplot-legend-item {
    display: inline-flex;
    align-items: center;
    gap: var(--jqplot-legend-item-gap);
    max-width: 100%;
    min-width: 0;
}

body.plotlines-tweaks-enabled .jqplot-legend-item.jqplot-legend-item-hidden {
    display: none;
}

body.plotlines-tweaks-enabled .jqplot-legend-swatch {
    width: var(--jqplot-legend-swatch-size);
    height: var(--jqplot-legend-swatch-size);
    min-width: var(--jqplot-legend-swatch-size);
    border-radius: 50%;
    flex: 0 0 auto;
}

body.plotlines-tweaks-enabled .jqplot-legend-label {
    color: @theme-color-text-lighter;
    font-size: 12px;
    line-height: 16px;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dataTableVizEvolution {
    > .dataTableWrapper {
        width: 100%;
    }

    .piwik-graph {
        height: 170px;
    }
}

.widget .dataTableVizEvolution {
    padding-left: 10px;
    padding-right: 10px;
}

.widget .tagCloud {
    padding: 10px;
}
.widget .dataTableVizBar .jqplot-graph {
    padding: 0 10px 10px 10px;
}

.tooltip-series-color {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 6px;
    margin-right: 3px;
    position: relative;
    top: 1px;
}

.ui-tooltip h3.evolution-tooltip-header {
    margin-top: 4px;
}
