.heatmap {
    display: inline-block;
    height: 100%;
    margin-left: 30px;
    margin-right: 50px;
}

.heatmap .left-area {
    /*background-color: red;*/
    height: 100%;
    display: inline-block;
    vertical-align: top;
}

.heatmap .left-area .left-top {
    /*background-color: yellow;*/
}

.heatmap .left-area .left-bottom {
    /*background-color: yellow;*/
}

.heatmap .left-area .left-scale {
    position: relative;
    width: 75px;
}

.heatmap .left-area .left-scale .scale-title {
    transform: rotate(-90deg) translateX(-50%);
    position: absolute;
    top: 50%;
    white-space: nowrap;
    transform-origin: left;
}

.heatmap .left-area .left-scale .line {
    width: 5px;
    height: 1px;
    background-color: black;
    position: absolute;
    right: 0px;
}

.heatmap .left-area .left-scale .scale-label {
    position: absolute;
    font-size: 9px;
    right: 12px;
    transform: translate(0, -50%);
    width: 50px;
    white-space: normal;
    text-align: right;
}

.heatmap .right-area {
    /*background-color: blue;*/
    height: 100%;
    display: inline-block;
}

.heatmap .title {
    /*background-color: green;*/
    /*text-overflow: ellipsis;
    overflow: hidden;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    text-align: center;
    white-space: nowrap;
}

.heatmap .title span {
    text-align: center;
    margin-left: -100%;
    margin-right: -100%;
}

.heatmap .bottom-scale {
    /*background-color: #b7ff00;*/
    white-space: normal;
    position: relative;
    height: 60px;
}

.heatmap .bottom-scale .scale-title {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.heatmap .bottom-scale .scale-title span {
    text-align: center;
    margin-left: -100%;
    margin-right: -100%;
}

.heatmap .bottom-scale .line {
    width: 1px;
    height: 5px;
    background-color: black;
    position: absolute;
    top: 0px;
}

.heatmap .bottom-scale .scale-label {
    position: absolute;
    font-size: 9px;
    top: 12px;
    transform: translate(-50%, 0);
    width: 40px;
    white-space: normal;
    text-align: center;
}

.heatmap .main-area {
    /*background-color: orange;*/
    white-space: normal;
    font-size: 0;
}

.heatmap .cell {
    /*background-color: aquamarine;*/
    display: inline-block;
    font-size: 10px;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
}