/*
 *----------------------------------------------------------
 * Chart Styles  
 * ---------------------------------------------------------
 */ 
 
.chart-edge {
    margin: 20px -8px 0 -10px;
    overflow: hidden;
    
    .flot-chart {
        bottom: -14px;
    }
}

.charts-row {
    margin-top: 50px;
    margin-bottom: 20px;
}

.mini-charts-item {
    box-shadow: $card-shadow;
    position: relative;
    margin-bottom: 30px;

    .chart {
        padding: 21px 18px 0;
        float: left;


        &.chart-pie {
            margin: 0 20px;
            padding: 14px 11px;
        }
    }

    .count {
        overflow: hidden;
        color: rgba(255, 255, 255, 0.9);
        padding: 16px 12px;
        
        & > h2 {
            margin: 0;
            line-height: 100%;
            font-size: 22px;
            font-weight: 300;
            color: #fff;   
        }
        
        & > small {
            margin-bottom: 2px;
            display: block;
        }
        
        & > h2,
        & > small {
            @include text-overflow();
        }
    }
    
    
    
    & > .clearfix {
        position: relative;
        z-index: 1;
    }
    
    &:before {
        @include transition(500ms,width);
        //@include transition-duration(500ms);
        @include backface-visibility(hidden);
        content: "";
        width: 105px;
        height: 100%;
        background: rgba(0,0,0,0.1);
        position: absolute;
        left: 0;
        top: 0;
    }
    
    &:hover {
        .count {
            color: #fff !important;
        }
        
        &:before {
            width: 100%;
        }
    }
}

/*------------------------------
    Sparkline Tooltip
-------------------------------*/
#jqstooltip {
    min-width: 21px;
    min-height: 23px;
    text-align: center;
    border: 0;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);

    .jqsfield {
        font-size: 12px;
        font-weight: 700;
        font-family: inherit;
        text-align: center;
        color: #333;

        & > span {
            display: none;
        }
    }
}

/*------------------------------
    Easy Pie Charts
-------------------------------*/

.epc-item {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-bottom: 30px;
    padding: 30px 20px;
    text-align: center;
}

.easy-pie {
    display: inline-block;
    position: relative;
    padding: 0 0 10px;
    
    .percent {
        position: absolute;
        font-weight: 300;
        width: 100%;
        line-height: 100%;
        left: 4px;
        color: #fff;
       
        &:after {
            content: "%";
        } 
    }
    
    &.main-pie {
        .percent {
            margin-top: 49px;
            font-size: 50px;
            text-align: center;

            &:after {
                font-size: 30px;
            } 
        }
        
        .pie-title {
            color: #fff;
        }
    }
    
    &:not(.main-pie) {
        .percent {
            font-size: 24px;
            margin-top: 33px;
            
            &:after {
                font-size: 20px;
            }
        }
    }
    
    .pie-title {
        position: absolute;
        width: 100%;
        text-align: center;
        bottom: -3px;
        left: 0;
    }
    
}

/*------------------------------
    Recent Items Table Chart
-------------------------------*/
#recent-items-chart {
    width: #{"calc(100% + 19px)"};
    height: 150px;
    margin: -20px -10px 0;
    bottom: -10px;

}

/*------------------------------
    Flot Chart
-------------------------------*/
[class*="flot-chart"] {
    width: 100%;
    display: block;
}

.flot-chart {
    height: 200px;
}

.flot-chart-pie {
    height: 300px;
    
    @media (min-width: $screen-sm-min) {
        margin-bottom: 20px;
    }
}

.flot-tooltip, #flotTip {
    position: absolute;
    color: #333;
    display: none;
    font-size: 12px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    padding: 3px 10px;
    background-color: #fff;
    z-index: 99999;
}

[class*="flc-"] {
    text-align: center;
    margin: 10px 0 5px;
    
    table {
        display: inline-block;
    }
    
    .legendColorBox {
        & > div {
            border: #fff !important;
            
            & > div {
                border-radius: 50%;
            }
        }
    }
    
    .legendLabel {
        padding: 0 8px 0 3px;
    }
}





#area-chart, #line-chart, #column-chart, #realtime-chart, #pie-chart, #stacked-bar-chart {
    height: 220px;
	margin-top: 0px;
}

[class*="flot-chart"] {
    width: 100%;
    display: block;
}

.chart-edge {
    margin: 20px -8px 0 -10px;
    overflow: hidden;
}

@media (min-width: 768px){
	.flot-chart-pie {
		/*margin-bottom: 20px;*/
	}
}

.flot-chart-line {
	margin-bottom: 25px;
}
.flot-chart-curved-line {
	margin-top: 7px!important;
	margin-bottom: 22px;
}
.flot-chart-bar {
	margin-bottom: 20px;
}
#line-chart{
	margin-bottom: 24px;
}

