.mapcontainer {
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    line-height: 10px;
}
.mapcontainer .rows, .mapcontainer .columns, .mapcontainer .maparea {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}
.maparea {
    cursor: grab;
}
.mapitem {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 30px;
}
.mapitem:before, .mapitem:after {
    content: "";
    position: absolute;
    z-index: -1;
    color: #000;
    background-color: transparent;
}
.mapcontainer .columns {
    background-color: #ffffff;
    padding: 0 5px 2px;
    z-index: 3;
}
.mapcontainer .rows {
    background-color: #ffffff;
    padding: 5px 0;
    z-index: 2;
}
.selected {
    background-color: #1499d0;
}
.unselected {
    background-color: #e7eaee;
}
.unselected-same-site {
    background-color: #989ea6;
}
.error {
    background-color: red; !important;
}
.clickable:hover {
    background-color: #1499d0;
    cursor: pointer;
}
.selected:after, .unselected:after, .unselected-same-site:after {
    border: 1px solid white;
    top: 0;
    left: 0;
    width: 19px;
    height: 29px;
    z-index: 0;
}

.monument:before {
    content: "M";
    left: 20%;
    top: 30%;
}

.flowers:before {
    content: "B";
    left: 20%;
    top: 30%;
}

.water:before {
    font-size: 8pt;
    content: "Vann";
    z-index: 1;
    left: 0;
    top: 30%;
}

.tree:before {
    font-size: 8pt;
    content: "Tre";
    z-index: 1;
    left: 0;
    top: 30%;
}

.manhole:before {
    font-size: 8pt;
    content: "Kum";
    z-index: 1;
    left: 0;
    top: 30%;
}

.colname {
    position: relative
}

.colname span {
    position: absolute;
    top: 30px;
    transform: rotate(-90deg);
    transform-origin: left top 0;
}

.rowname {
    position: relative
}

.rowname span {
    position: absolute;
    left: 0;
    top: 10px;
}

.road:before, .road:after {
    background-color: #efefef;
}

.fence:before, .fence:after {
    background-color: #999999;
}

.shape0000:before {
    top: 25%;
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 50%;
}

.shape0000:after {
    top: 50%;
    left: 20%;
    height: 12%;
    margin-top: -6%;
    width: 60%;
}

.shape0001:before {
    border: 0;
}

.shape0001:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-left: 0;
}

.shape0010:before {
    bottom: 0;
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 52%;
    border-bottom: 0;
}

.shape0010:after {
    border: 0;
}

.shape0011:before {
    bottom: 0;
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 50%;
    border-bottom: 0;
}

.shape0011:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-left: 0;
}

.shape0100:before {
    border: 0;
}

.shape0100:after {
    top: 50%;
    right: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-right: 0;
}

.shape0101:before {
    border: 0;
}

.shape0101:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 100%;
    border-left: 0;
    border-right: 0;
}

.shape0110:before {
    bottom: 0;
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 52%;
    border-bottom: 0;
}

.shape0110:after {
    top: 50%;
    right: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-right: 0;
}

.shape0111:before {
    bottom: 0;
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 52%;
    border-bottom: 0;
}

.shape0111:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 100%;
    border-left: 0;
    border-right: 0;
}

.shape1000:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 58%;
    border-top: 0;
}

.shape1000:after {
    border: 0;
}

.shape1001:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 58%;
    border-top: 0;
}

.shape1001:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-left: 0;
}

.shape1010:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 100%;
    border-top: 0;
    border-bottom: 0;
}

.shape1010:after {
    border: 0;
}

.shape1011:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 100%;
    border-top: 0;
    border-bottom: 0;
}

.shape1011:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-left: 0;
}

.shape1100:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 58%;
    border-top: 0;
}

.shape1100:after {
    top: 50%;
    right: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-right: 0;
}

.shape1101:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 58%;
    border-top: 0;
}

.shape1101:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 100%;
    border-left: 0;
    border-right: 0;
}

.shape1110:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 100%;
    border-top: 0;
    border-bottom: 0;
}

.shape1110:after {
    top: 50%;
    right: 0;
    height: 12%;
    margin-top: -6%;
    width: 60%;
    border-right: 0;
}

.shape1111:before {
    left: 50%;
    width: 20%;
    margin-left: -10%;
    height: 100%;
    border-top: 0;
    border-bottom: 0;
}

.shape1111:after {
    top: 50%;
    left: 0;
    height: 12%;
    margin-top: -6%;
    width: 100%;
    border-left: 0;
    border-right: 0;
}

@media print {
    .selected:before {
        color: black;
    }

    .selected:after, .unselected:after, .unselected-same-site:after {
        border: 1px solid #cccccc;
    }

    .road:before, .road:after {
        border: 1px solid #999999;
    }

    .fence:before, .fence:after {
        border: 1px solid #333333;
    }

    .shape0001:before {
        border: 0;
    }

    .shape0001:after {
        border-left: 0;
    }

    .shape0010:before {
        border-bottom: 0;
    }

    .shape0010:after {
        border: 0;
    }

    .shape0011:before {
        border-bottom: 0;
    }

    .shape0011:after {
        border-left: 0;
    }

    .shape0100:before {
        border: 0;
    }

    .shape0100:after {
        border-right: 0;
    }

    .shape0101:before {
        border: 0;
    }

    .shape0101:after {
        border-left: 0;
        border-right: 0;
    }

    .shape0110:before {
        border-bottom: 0;
    }

    .shape0110:after {
        border-right: 0;
    }

    .shape0111:before {
        border-bottom: 0;
    }

    .shape0111:after {
        border-left: 0;
        border-right: 0;
    }

    .shape1000:before {
        border-top: 0;
    }

    .shape1000:after {
        border: 0;
    }

    .shape1001:before {
        border-top: 0;
    }

    .shape1001:after {
        border-left: 0;
    }

    .shape1010:before {
        border-top: 0;
        border-bottom: 0;
    }

    .shape1010:after {
        border: 0;
    }

    .shape1011:before {
        border-top: 0;
        border-bottom: 0;
    }

    .shape1011:after {
        border-left: 0;
    }

    .shape1100:before {
        border-top: 0;
    }

    .shape1100:after {
        border-right: 0;
    }

    .shape1101:before {
        border-top: 0;
    }

    .shape1101:after {
        border-left: 0;
        border-right: 0;
    }

    .shape1110:before {
        border-top: 0;
        border-bottom: 0;
    }

    .shape1110:after {
        border-right: 0;
    }

    .shape1111:before {
        border-top: 0;
        border-bottom: 0;
    }

    .shape1111:after {
        border-left: 0;
        border-right: 0;
    }
}
