/* Common styles shared with all charts */

.nvtooltip, .chartjs-custom-tooltip {
    background-color: #4C4C4C;
    color: white;
    border-radius: 4px !important;
    border: none !important;
}

.nvtooltip{
    margin-top: -60px;
    margin-left: -10px;
}

.nvtooltip:before,
.chartjs-custom-tooltip:before {
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 1000;
}

.nvtooltip.right:before,
.chartjs-custom-tooltip.right:before {
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    border-width: 10px 10px 10px 0;
    border-color: transparent #4C4C4C transparent transparent;
}

.nvtooltip.top:before,
.chartjs-custom-tooltip.top:before {
    top: 100%;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: #4C4C4C transparent transparent transparent;
}

.nvtooltip.bottom:before,
.chartjs-custom-tooltip.bottom:before {

    /* Position the arrow above the tooltip */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);

    /* Downward-facing arrow shape (⯆) */
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #4C4C4C transparent;
}

svg.nvd3-svg {
	stroke: none;
}

svg.nvd3-svg g text {
	fill: #6B6B6B;
    font-size: 15px !important;
    font-family: 'Inter' !important;
}

.nv-axislabel {
    fill: black !important;
	font-weight: 400 !important;
}

.nv-groups text,
.nvd3 .nv-multibarHorizontal .nv-groups text {
    font-weight: bold;
    fill: rgba(0, 0, 0, 1);
    stroke: rgba(0, 0, 0, 0);
    display: none;
}

.nv-zeroLine line {
    display: none;
}

.barChartTooltip {
    margin: 10px 15px 10px 10px;
    border-spacing: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.barChartTooltip > div {
    vertical-align: middle;
    text-align: left;
}

.barChartTooltip .barChartTooltipDataColor {
    width: 13px;
    height: 13px;
}

.barChartTooltip .barChartTooltipDataColor>div {
    width: 13px;
    height: 13px;
    border-radius: 2px !important;
    border: 1px solid white;
}

.barChartTooltip .tooltip-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.barChartTooltip .tooltip-value {
    white-space: nowrap;
    line-height: 13px;
}

.barChartTooltip .tooltip-title {
    line-height: 13px;
    font-weight: 600;
}

.nvtooltip:has(.barChartTooltip) {
    margin: 0px !important;
}

.chart-legend-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-legend-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
    align-items: flex-start;
    width: auto;
    margin-right: 15px;
    gap: 17px;
}

.legendRow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legendColor {
    width: 12px;
    height: 12px;
    transform: matrix(-1, 0, 0, 1, 0, 0);
    border-radius: 50% !important;
}

.legendText {
    font-weight: 500;
    font-size: 14px;
    color: #6B6B6B;
    margin: 0px;
    white-space: nowrap;
}

.legendBottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    height: 100%;
    pointer-events: none;
    background: white;
}

.chart-placeholder>img {
    object-fit: cover;
    object-position: left center;
}

.empty-line-chart {
    text-align: center;
    font-size: 18px;
    margin: auto;
    left: 0;
    right: 0;
    top: 40%;
    z-index: 5;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
    margin-left: 50px;
    margin-right: 20px;
}

.user-engagement-chart-container .empty-line-chart {
    color: white;
}