.horbar {
    width: 100%;
    height: auto;
    position: relative;
}

.horbar .y-labels {
    /* width: 10%; */
    width: 225px;
    padding-top: 25px;
    padding-bottom: 13px;
    float: left;
    background: url(../img/dashed.png) right center repeat-y;
}

.horbar .nr{
    position: absolute;
    bottom: 31px;
    text-align: right;
    left: 0px;
    width: 225px;
    padding-right: 10px;
    line-height: 30px;
    font-weight: bold;

}
.horbar .x-labels {
    width: 100%;
    height: auto;
    clear: both;
    float: left;
    min-width: 700px;

}

.horbar .x-labels .x-label-refill {
    width: 10%;
    height: auto;
    float: left;
    text-align: right;
}

.horbar .x-labels .x-label-container {
    position: relative;
    width: 100%;
    /*background-color: lightblue;*/
    float: left;
}

.horbar .x-labels .x-label-container .x-label {
    float: left;
    position: relative;
    padding-top: 20px;
    /*outline: #000000 solid 1px;*/
    /*word-break: break-all;*/
    text-align: right;
}

.horbar .x-labels .x-label-container .x-label:first-child .x-label-content{
    margin: 0px!important;
    margin-left: -3px!important
}

.horbar .x-labels .x-label-container .x-label:before{
    content: '';
    position: absolute;
    width: 1px;
    height: 15px;
    background-color: #b8b8b7;
    top: 0;
    right: 0;
}

.horbar .x-labels .x-label-container .x-label:first-child:before{
    right: -1px;
}

.horbar .x-labels .x-label-container .x-label .x-label-content{
    font-size: 14px;
    font-weight: bold;
}

.horbar .x-labels .x-label-container .x-label:last-child .x-label-content{ margin-right: 0px!important; }


.horbar .big-content {
    position: relative;
    width: calc(100% - 225px);
    min-height: 300px;
    height: auto;
    float: left;
    /* background: #fff; */
    /* outline: #000000 solid 1px; */
}

.horbar .big-content .content{
    padding-top: 25px;
    padding-bottom: 13px;
    position: relative;
    min-width: 700px;
    /* background: url(../img/dashed.png) left center repeat-y; */
}

.horbar .content .bar-row {
    position: relative;
    width: 100%;
    clear: both;
    height: 30px!important;
    /* border-bottom: 1px solid #888; */
    box-sizing: border-box;
}

.horbar .y-labels .y-label {
    height: 30px!important;
    line-height: 30px!important;
    text-align: right;
    padding-right: 10px;
    clear: both;
}

.horbar .y-labels .y-label .label-text {
    display: inline-block;
    width: 100%;
    font-size: 16px;
    color: #000;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    height: auto;
    text-align: right;
    margin-right: 10px;
}

.horbar .content .bar-row .bar-container {
    position: relative;
    float: left;
    width: 100%;
    height: 50%;
    /*background-color: lightgreen;*/
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    vertical-align: middle;
}

.horbar .content .bar-row .bar-container .bar {
    width: 100%;
    height: 100%;
    float: left;
    /*background-color: lightgreen;*/
}

.horbar .content .bar-row .bar-container .bar .bar-segment {
    position: relative;
    float: left;
    height: 100%;
    transition: all 0.25s ease-in-out;
    /* opacity: 0.6; */
/*     -webkit-box-shadow: inset 0px 0px 0px 2px;
    -moz-box-shadow: inset  0px 0px 0px 2px;
    box-shadow:  inset 0px 0px 0px 2px; */
    /*box-shadow-color is the color property.*/
}

.horbar .content .bar-row .bar-container .bar .bar-segment:hover {
    opacity: 0.6;
}


/* Legends */

.horbar .content .legends {
    display: none;
    position: absolute;
    outline: black solid 1px;
    background-color: white;
    z-index: 1000;
    opacity: 0.7;
    /*background-color: lightgreen;*/
}


/*TODO: Implement other cardinal points*/

.horbar .content .legends.ne {
    top: calc(0% + 1em);
    right: calc(0% + 1em);
}

.horbar .content .legends.se {
    bottom: calc(0% + 1em);
    right: calc(0% + 1em);
}

.horbar .content .legends .legend {
    clear: both;
    padding: 2px;
}

.horbar .content .legends .legend > * {
    float: left;
}

.horbar .content .legends .legend-color {
    width: 10px;
    height: 10px;
    border: 1px solid black;
    margin-right: 1em;
    /*background-color: lightgreen;*/
}

/* Grid */
.horbar .content .color-legend {
  position: absolute;
  left: 0;
  height: 7px;
  width: 100%;
  /* border-right: 1px dashed grey; */
  box-sizing: border-box;
}

.horbar .content .color-legend.top{ top: 0; }
.horbar .content .color-legend.bottom{ bottom: 0; }

.horbar .content .color-legend .color-list {
  position: relative;
  float: left;
  height: 100%;
  /* border-right: 1px dashed grey; */
  box-sizing: border-box;
}

.horbar .content .color-legend .color-list:nth-child(1){
    width: 5%;
    background-color: #b81836;
}
.horbar .content .color-legend .color-list:nth-child(2){
    width: 20%;
    background-color: #eb672a;
}
.horbar .content .color-legend .color-list:nth-child(3){
    width: 25%;
    background-color: #f5be2b;
}
.horbar .content .color-legend .color-list:nth-child(4){
    width: 50%;
    background-color: #277521;
}


.horbar .content .vertical-grid {
  position: relative;
  float: left;
  height: 100%;
  /* border-right: 1px dashed grey; */
  background: url(../img/dashed.png) right center repeat-y;
  box-sizing: border-box;
}

.horbar .content .vertical-grid:nth-child(1){
    width: 5%;
}
.horbar .content .vertical-grid:nth-child(2){
    width: 20%;
}
.horbar .content .vertical-grid:nth-child(3){
    width: 25%;
}
.horbar .content .vertical-grid:nth-child(4){
    width: 50%;
}

/* Popover */

#horbar-popover {
    display: none;
    transition: all 0.25s ease-in-out;
    position: absolute;
    min-width: 50px;
    /* min-height: 50px; */
    background-color: #fff;
    /* opacity: 0.8; */
    /* border-radius: 5px; */
    padding: 0px 10px;
    color: #000;
    line-height: 30px;
    font-size: 14px;
    z-index: 100;
    box-shadow: -4px 6px 10px -4px rgba(0,0,0, 0.2);
}

#horbar-popover .score{
    font-weight: bold;
}

/* Segment values */
.horbar .content .bar-row .bar-container .bar .bar-segment .segment-value
{
    position: relative;
    width: 100%;
    display: none;
    height: 100%;
    margin: 0 auto;
    float: left;
    font-size: calc(6px + 0.2vw);
    text-align: center;
    color: black;
    font-weight: bold;
    line-height: 25px; /* Half the value of bar-row height property */
}

@media only screen and (max-width : 1024px) {
    .horbar .big-content {
        overflow: hidden;
        overflow-x: scroll;
    }

    .horbar .x-labels .x-label-container .x-label:first-child .x-label-content{
        margin-left: 0px!important;
    }
}

@media only screen and (max-width : 659px) {
    .horbar .y-labels { width: 120px; }
    .horbar .nr { width: 120px; font-size: 11px; }
    .horbar .big-content { width: calc(100% - 120px); }
    .horbar .y-labels .y-label .label-text{
        font-size: 14px;
    }
}
