/**
  Image grid.
 */
.thumbnail a > img{
    height: 300px;
    object-fit: contain;
}

.lg-view{
    display:inline-block;
}

.sm-view{
    display:none;
}

#tree-detail .col-sm-4{
    margin-bottom: 10px;
}

.detail-cell-wrap{
    width: 250px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
}

.detail-cell-grey{
    padding: 4px;
    background-color: lightgray;
}

.detail-cell{
    border: 1px solid #ddd;
    padding: 4px;

}

.menu-user{
    padding-left: 15px;
}

.navbar .icon {
    display: none;
}

ul.errorlist{
    border-top: 2px solid red;
    padding: 0;
}

ul.errorlist li{
    display: none;
}

.post-form .row{
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
    .lg-view{
        display:none;
    }

    .sm-view{
        display:inline-block;
    }
}

.delete-tree-button{
    float: right;
}

@media screen and (max-width: 768px) {
    .navbar li:not(.active) {display: none;}
    .navbar-right li{display: none;}

    .navbar li.icon {
        display: block;
        position: absolute;
        right: 0;
        top: 60px;
    }
}

@media screen and (max-width: 768px) {
    .navbar.responsive {position: relative;}
    .navbar.responsive .icon {
        position: absolute;
        right: 0;
        top: 60px;
    }
    .navbar.responsive li {
        float: none;
        display: block;
        text-align: left;
    }
}

.table-header-rotated th.row-header{
    width: auto;
}

.table-header-rotated td{
    width: 40px;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    vertical-align: middle;
    text-align: center;
}

.table-header-rotated th.rotate-45{
    height: 80px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    position: relative;
    vertical-align: bottom;
    padding: 0;
    font-size: 12px;
    line-height: 0.8;
}

.table-header-rotated th.rotate-45 > div{
    position: relative;
    top: 0px;
    left: 40px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
    height: 100%;
    -ms-transform:skew(-45deg,0deg);
    -moz-transform:skew(-45deg,0deg);
    -webkit-transform:skew(-45deg,0deg);
    -o-transform:skew(-45deg,0deg);
    transform:skew(-45deg,0deg);
    overflow: hidden;
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    border-top: 1px solid #dddddd;
}

.table-header-rotated th.rotate-45 span {
    -ms-transform:skew(45deg,0deg) rotate(315deg);
    -moz-transform:skew(45deg,0deg) rotate(315deg);
    -webkit-transform:skew(45deg,0deg) rotate(315deg);
    -o-transform:skew(45deg,0deg) rotate(315deg);
    transform:skew(45deg,0deg) rotate(315deg);
    position: absolute;
    bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin*/
    left: -15px; /*Because it looked good, but there is probably a mathematical link here as well*/
    display: inline-block;
// width: 100%;
    width: 85px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
    text-align: left;
// white-space: nowrap; /*whether to display in one line or not*/
}

.control-class-very-good{
    background-color: #9f0;
}
.control-class-good{
    background-color: #cf0;
}
.control-class-average{
    background-color: #fd0;
}
.control-class-poor{
    background-color: #fa0;
}
.control-class-very-poor{
    background-color: #f30;
}
