html {
   height: 100%;
}

body {
   min-height: 100%;
}

#coords {
    color: white;
    padding: 15px;
}

#view-wrapper {
    width: 100%;
}

#diagram-preview {
    /* min-width: 100%;
    overflow: scroll;
    min-height: 100%; */
}

.tab-content {
    border: 1px solid #ddd;
    border-top: inherit;
}

.tab-content .tab-pane {
    padding: 1em;
    vertical-align: top;
}

#hotspots-list {
    width: 100%;
    margin-bottom: 15px;
}

#hotspots-list tr.active td {
    background-color: #ccc;
}

#hotspots-list th,
#hotspots-list td {
    padding: .5em;
}

nav[role="hotspots"] a {
    background-color: #ccc;
    color: #333;
}

nav[role="hotspots"] a.active,
nav[role="hotspots"] a:hover,
nav[role="hotspots"] a:focus {
    background-color: #666;
    color: #fff;
}

nav[role="hotspots"] a img {
    max-height: 22px;
    display: inline-block;
}
nav[role="hotspots"] a:hover img,
nav[role="hotspots"] a.active img,
nav[role="hotspots"] a img.active {
    display: none;
}

nav[role="hotspots"] a:hover img.active,
nav[role="hotspots"] a.active img.active {
    display: inline-block;
}

#image {
    position: relative;
    /* overflow: scroll; */
}

/* CSS for SVG-elements */
#svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-block;
    min-height: 100% !important;
    min-width: 100% !important;
    overflow: overlay;
}
#svg rect {
    stroke-width: 3px;
    stroke: #F00;
    fill: rgba(255,255,255,0.3);
}
#svg rect.with_href {
    fill: rgba(0,0,0,0.3);
}
.edit > #svg rect:hover {
    fill: rgba(50,200,50,0.3);
}
#svg rect.active {
    fill: rgba(0,0,0,0.5);
}
#svg circle {
    stroke-width: 3px;
    stroke: #0F0;
    fill: rgba(255,255,255,0.3);
}
#svg circle.with_href {
    fill: rgba(0,0,0,0.3);
}
.edit > #svg circle:hover {
    fill: rgba(50,200,50,0.3);
}
#svg polyline, #svg polygon {
    stroke-width: 3px;
    stroke: #00F;
    fill: rgba(255,255,255,0.3);
}
#svg polygon.with_href {
    fill: rgba(0,0,0,0.3);
}
.edit > #svg polygon:hover {
    fill: rgba(50,200,50,0.3);
}
#svg .active {
    fill: rgba(50,200,50,0.5) !important;
}
#svg rect.helper {
    fill: #FFF;
    stroke: #000;
    stroke-width: 2px;
}
#svg rect.helper:hover {
    fill: #F00;
}
.edit > #svg rect,
.edit > #svg circle,
.edit > #svg polygon {
    cursor: move;
}
.edit > #svg .pointer {
    cursor: pointer;
}
.edit > #svg .e-resize {
    cursor: e-resize;
}
.edit > #svg .ne-resize {
    cursor: ne-resize;
}
.edit > #svg .nw-resize {
    cursor: nw-resize;
}
.edit > #svg .n-resize {
    cursor: n-resize;
}
.edit > #svg .se-resize {
    cursor: se-resize;
}
.edit > #svg .sw-resize {
    cursor: sw-resize;
}
.edit > #svg .s-resize {
    cursor: s-resize;
}
.edit > #svg .w-resize {
    cursor: w-resize;
}

#edit_details {
    position: absolute;
    top: 100px;
    left: 100px;
    background: rgba(0,0,0,0.9);
    border-radius: 5px;
    padding: 10px;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 1px;
    display: none;
    z-index: 1000;
    color: #FFF;
    font-size: 0px;
}
#edit_details h5 {
    margin-bottom: 10px;
    font-size: 14px;
    cursor: move;
}
.changed#edit_details h5, p.changed label {
    color: #32c832;
}
#edit_details p {
    margin-bottom: 10px;
}
#edit_details label {
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}
#edit_details input[type=text] {
    background: #FFF;
    font-size: 12px;
    font-family: sans-serif;
    padding: 2px 5px;
    width: 120px;
    border-radius: 5px;
    box-shadow: rgba(0,0,0,0.5) 0 1px 2px inset;
}
.changed#edit_details button {
    box-shadow: rgba(50,200,50,1) 0 0 1px 2px;
}
#hotspots-list tr td {
    height: 22px;
}

#hotspots-list tr td:focus {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;  
    outline: rgb(91, 157, 217) auto 5px;
}
#tab-hotspots input.error {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px red;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px red;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px red;  
    outline: thin auto red;
}
#tab-hotspots input {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;  
    outline: rgb(91, 157, 217) auto 5px;
    outline-offset: 0px;
    border: none;
}