.performanceWidget {
    min-height: 400px;
}
.performanceWidget .chartGradient {
    border-bottom: none; /*border shown above navigation instead*/
}


div.caret {
    display: block;
    position: absolute;
    left: 46px;
    transform: rotateX(180deg);
    -webkit-transform: rotateX(180deg);
    border-top: 8px solid #ccc;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    pointer-events: none;
}

.performanceWidget .binaryTopicList div.caret {
    position: absolute;
}

.performanceWidget .binaryTopicList div.caret.top {
    top: -8px;
}

.performanceWidget .binaryTopicList div.caret.bottom {
    bottom: -8px;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.performanceWidget .cursorGrab {
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

.performanceWidget .panningContainer {}

.performanceWidget .chartSVG {
    position: absolute;
    width: 100%;
    height: 95%;
}

.performanceWidget text {
    text-anchor: middle;
}




/*===STUDENTS====*/

.performanceWidget g.student {
    cursor: pointer;
}
.performanceWidget g.student *{
    transition: opacity 200ms;
}

.performanceWidget g.student.filterOut {
    opacity: 0;
    display: none;
}



.performanceWidget g.student.filterIn circle {
    opacity: 0.9;
}

/*STUDENT CIRCLE*/

.performanceWidget circle.studentScore {
    fill: #4DA3F2;
    opacity: 0.35;
    stroke: #666;
    cursor: pointer;
    stroke-width: 0px;
}
.performanceWidget circle.studentScore:hover {
    fill: #3B64C4;
}
.performanceWidget .studentGroup circle.studentScore {
    stroke: #666;
    stroke-width: 1px;
}

.performanceWidget g.topic.header.binary circle.studentScore {
    fill: rgb(244, 166, 0);
    opacity: 1;
}

.performanceWidget text.scoreLabel {
    fill: #ddd;
    opacity: 0;
    pointer-events: none;
}


.performanceWidget g.student.highlight * {
    opacity:1;
}

.performanceWidget g.student.highlight circle.studentScore {
    fill: #3B64C4;
    opacity:1 !important;
}

.performanceWidget g.studentShadows circle {
    fill: #fff;
}

.performanceWidget .student text.studentName {
    transform: translate(0, -15px);
    -webkit-transform: translate(0, -15px);
    pointer-events: none;
    text-transform: capitalize;
    opacity: 0;

}
.performanceWidget .student.mouseover text.studentName {
    opacity: 1;

}


.performanceWidget .student text.studentName.onBottom {
    transform: translate(0, 30px);
    -webkit-transform: translate(0, 30px);
}
/*END OF STUDENTS*/


.performanceWidget g.topic {
    opacity: 1;
    transition: opacity 800ms;
    -webkit-transition: opacity 800ms;
}





.performanceWidget g.topic rect.circleConnectionSeparator {
    fill: none;
}

.performanceWidget g.topic.header rect.circleConnectionSeparator {
    fill: none;
    fill-opacity: 0.5;
}

/*AVERAGE SCORES*/

.performanceWidget g.topic g.averageScore {
    cursor: default;
}

.performanceWidget g.topic g.averageScore line {
    stroke: #4A7EF7;
    stroke-width: 2;
}

.performanceWidget g.topic g.averageScore circle {
    fill: #4A7EF7;
}

.performanceWidget g.topic g.averageScore text.score {
    fill: #eee;
}

.performanceWidget g.topic g.averageScore text.averageLabel {
    display: none;
    opacity: 0;
    transition: opacity 200ms 200ms;
}

.performanceWidget g.topic g.averageScore text.averageLabel.fadeIn {
    display: block;
    opacity: 0;
    transition: opacity 200ms 200ms;
    opacity: 1;
}
/*END OF AVERAGE SCORES*/

.performanceWidget g.topic.unselected {
    transition: opacity 200ms 0ms;
    opacity: 0;
}

.performanceWidget g.topic.header rect.topicBg {
    fill: #eee;
}


#redGreenGradient stop.green {
    stop-color: rgb(0, 255, 0);
    stop-opacity: 0.6;
}

#redGreenGradient stop.red {
    stop-color: rgb(255, 0, 0);
    stop-opacity: 0.6;
}
/*===CONNECTIONS====*/

.performanceWidget g.connections {
    opacity: 1;
    transition: opacity 800ms 400ms;
}

.performanceWidget g.connections g {
    opacity: 1;
    transition: opacity 1000ms 400ms;
}

.performanceWidget g.connections g.filterOut {
    transition: opacity 200ms;
    opacity: 0;
}

.performanceWidget g.connections g.filterIn {}

.performanceWidget g.connections g.dehighlight {
    transition: opacity 100ms;
    opacity: 0;
}

.performanceWidget g.connections.fadeOut {
    transition: opacity 200ms 0ms;
    opacity: 0;
}

.performanceWidget g.connections.unselected {
    transition: opacity 200ms 0ms;
    opacity: 0;
}

.performanceWidget g.connections path {
    stroke: #bbb;
    fill: none;
    opacity: 0.7;
    stroke-width: 2px;
}

.performanceWidget g.connections path.header, .performanceWidget g.connections path.lastChild {
    /*hide connections from headers and last childs*/

    display: none;
}

.performanceWidget g.connections g.highlight path {
    stroke-width: 5px;
    opacity: 0.7 !important;
}

.performanceWidget g.connections line {
    /* stroke: #ccc;
    opacity: 0.5;
    stroke-width: 1;
    transition: all 400ms;*/

    stroke: #000;
    fill: none;
    opacity: 0.1;
    stroke-width: 10px;
}

.performanceWidget g.connections g.highlight * {
    opacity: 0.9;
    /* stroke-width: 3;*/
    /* stroke: #000;
    opacity: 0.035;
    stroke-width: 20px;*/
}
.performanceWidget .studentPopup {
    height: auto;
    width: 160px;
/*    background-color: rgba(255,255,255,0.9);*/
    background-color: #4A7EF7;
    color: #fff;
    position: relative;
    top: 0;
    left: 0;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms 400ms, visibility 0s linear 400ms;
    -ms-transition: opacity 0ms 400ms, visibility 0s linear 400ms;

}
.performanceWidget .studentPopup.hide {
    transition: opacity 200ms 400ms, visibility 0s linear 600ms;
    -ms-transition: opacity 0ms 400ms, visibility 0s linear 600ms;
   opacity:0;
    visibility: hidden;
}
.performanceWidget .studentPopup ul {
    height: 100%;
    overflow: auto;
}
.performanceWidget .studentPopup li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}
.performanceWidget .studentPopup .caret {
    position: absolute;
    top: 0px;
    z-index: 901;

}
.performanceWidget .studentPopup .caret.left {
    transform: translate(-15px, -6px);
    left: 0;
   width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right:8px solid #4A7EF7;
/*    4A7EF7*/
}
.performanceWidget .studentPopup .caret.right {
    transform: translate(-1px, -6px);
    left: 160px;
   width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 8px solid #4A7EF7;
}

.performanceWidget .binaryTopicList {
    position: absolute;
    background: #fff;
    padding: 5px;
    border: 1px solid #ccc;
    max-height: 60%;
    text-align: center;
    opacity: 0;
    height: auto;
}

.performanceWidget .binaryTopicList .listContainer {
    position: relative;
    height: auto;
    overflow-y: scroll;
    max-height: 200px;
}

.performanceWidget .binaryTopicList ul {
    height: 30%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    pointer-events: none;
}

.performanceWidget .binaryTopicList li {
    line-height: 1.2;
    margin: 0 0 5px 0;
    display: block;
    list-style: none;
    padding: 0;
    pointer-events: none;
}

.performanceWidget .binaryTopicList.fadeIn {
    transition: opacity 200ms 400ms;
    opacity: 1;
}

.legend {
  margin-top: 50px;
  margin-bottom: 100px;
  margin-left: 15px;
}

.legend strong {
  display: block;
  margin-bottom: 10px;
}

.legend-row {
  display: block;
  margin-bottom: 10px;
  clear:both;
}

.legend-row__hr{
  float: left;
  width: 150px;
  margin-top: 5px;
}

.legend-row__title{
  float: left;
  margin-left: 10px;
}

.legend-row__hr-green {
  border: 1px solid green;
}

.legend-row__hr-red {
  border: 1px solid red;
}

.legend-row__hr-yellow {
  border: 1px solid yellow;
}

.centeredLabel {
  margin-top: -20px;
  margin-bottom: 50px;
  text-align: center;
  font-size: 20px;
}
