/* Apex Chart custome css */
.apexcharts-gridline{
    stroke-dasharray: 4;
}

/* DevExpress DxChart (dashboard activity charts) - the axis/grid lines default to --bs-body-color,
   which is near-white and full-opacity in dark mode, making them look harsh crossing over the bars.
   Lighten just that variable in dark mode; light mode is unaffected. */
[data-bs-theme=dark] {
    .dxbl-chart {
        --dxbl-chart-axis-line-color: rgba(255, 255, 255, 0.15);
    }
}

[data-bs-theme=dark] {
    .apexcharts-title-text{
        fill: var(--bs-white);
        opacity: .75 !important;
    }
    .apexcharts-subtitle-text{
        fill: var(--bs-white);
        opacity: .55 !important;
    }
    .apexcharts-yaxis-title text,
    .apexcharts-xaxis-title text{
        fill: var(--bs-white);
        opacity: .55;
    }
    .apexcharts-xaxis-texts-g text,
    .apexcharts-yaxis-texts-g text{
        fill: var(--bs-white);
        opacity: .55;
    }
    .apexcharts-legend-text{
        color: var(--bs-white) !important;
        opacity: .6;
    }

    .apexcharts-xaxis-tick{
        stroke: var(--bs-white);
    }
    .apexcharts-grid-borders line{
        stroke: var(--bs-white);
        opacity: .15;
    }
    .apexcharts-grid line{
        opacity: .15;
    }
    .apexcharts-xaxistooltip,
    .apexcharts-yaxistooltip{
        color: var(--bs-white) !important;
    }
    .apexcharts-tooltip,
    .apexcharts-xaxistooltip-text,
    .apexcharts-yaxistooltip{
        color: var(--bs-black);
    }
    .apexcharts-inner polygon{
        opacity: .15;
    }
    .apexcharts-yaxis .apexcharts-text {
        fill: var(--bs-white);
    }
    .apexcharts-slices path{
        stroke: var(--bs-black);
    }
}