

svg#map {
    display: block;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
}

.lefttop {
    top: 80px;
    left: 80px;
    position: absolute;
    z-index: 5;
}

.righttop {
    top: 80px;
    right: 80px;
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.righttop .params {
    margin-top: 10px;
}

.leftbottom {
    bottom: 30px;
    left: 30px;
    position: absolute;
    z-index: 4;
    display: flex;
}

.rightbottom {
    bottom: 30px;
    right: 30px;
    position: absolute;
    z-index: 7;
}

/*lefttop*/
.bigdropdown {
    padding: 10px;
}

.bigdropdown:hover {
    background-color: #bfe6ff;
}

.bigdropdown option {
    background-color: #fff;
}

.ztree {
    display: none;
text-align:left;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 10;
}

#graph.show, #ztree.show {
    display: block;
}

.ztree * {
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif;
}

.ztree li {
    list-style-type: none;
    position: relative;
    text-wrap: nowrap;
    line-height: 12px;
}

.ztree li ul {
    display: none;
    padding-left: 20px;
}

.ztree li.open > ul {
    display: block;
    background: url(img/branch.png);
    background-repeat: repeat-y;
    /*background-position: left 0.2em top 0;*/
}

.ztree li.open.last > ul {
    background: none;
}

.ztree li a {
    color: black;
    text-decoration: none;
}

.ztree li span.img {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

.ztree li span.name {
    padding-left: 0.3em;
}

.ztree li span.clickable {
    cursor: pointer;
}

.ztree li > span.folder {
    background-image: url(img/folder.png);
    margin-left: 2px;
}

.ztree li > span.expandable {
    background-image: url(img/plus.png);
}

.ztree li.open > span.expandable {
    background-image: url(img/minus.png);
}

.ztree li > span.expandable.last {
    background-image: url(img/pluslast.png);
}

.ztree li.open > span.expandable.last {
    background-image: url(img/minuslast.png);
}

.ztree li > span.branch.next {
    background-image: url(img/next.png);
}

.ztree li > span.branch.last {
    background-image: url(img/last.png);
}

.ztree li span.selected {
    background-color: #FEB;
    border: 1px #FC5 solid;
}

/*map tooltip*/
div.tooltip {
    position: absolute;
    text-align: center;
    padding: 10px;
    white-space: pre;
    text-align: left;
    font-size: 10px;
    background: #FFFFE0;
    border: 1px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 5;
}

.graph {
    display: none;
    position: absolute;
    text-align: center;
    padding: 10px;
    font-size: 10px;
    background: #FFF;
    border: 1px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
}

#graph svg {
    height: 300px;
    width: 400px;
}

g.eq path,
g.ns path,
g.regions path {
    vector-effect: non-scaling-stroke;
}

g.names textPath {
    font-family: 'Comfortaa';
    fill: rgb(170, 170, 170);
    text-anchor: middle;
    alignment-baseline: middle;
    opacity: 0.5;
}

g.eq {
    fill: grey;
}

g.ns {
    opacity: 0.8;
}

g.regions path {
    fill: white;
}

g.regions path,
g.eq path,
g.air path {
    stroke: black;
    opacity: 0.8;
}

g.regions path.selected,
g.eq path.selected,
g.air path.selected {
    opacity: 1;
    stroke-width: 2;
    transition: 1s;
}

/*g.regions path.selected {
    filter: brightness(70%);
}*/

#paramname {
    align-self: flex-end;
    white-space: pre;
    margin-left: 40px;
    display: none;
}

g.air {
    fill: #2CF;
    stroke-width: 0.5;
}

g.labels line.label-line {
    stroke: black;
    stroke-width: 0.1;
    stroke-dasharray: 0.5, 0.5;
}

g.labels rect.label-bg {
    fill-opacity: 0.3;
    fill: white;
    display: none;
}

#eqLegendSvg circle {
    opacity: 0.8;
    fill: grey;
    stroke: black;
}

svg {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#sidebar-tabs-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-tab {
    background: #2c3e50;
    color: white;
    border: 1px solid #34495e;
    border-right: none;
    border-radius: 0 5px 5px 0;
    padding: 15px 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: background 0.3s;
    transform: rotate(180deg);
}

.sidebar-tab:hover {
    background: #34495e;
}

.sidebar-tab.active {
    background: #e74c3c;
}

/*
#sidebar-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    background: #2c3e50;
    color: white;
    border: 1px solid #34495e;
    border-right: none;
    border-radius: 0 5px 5px 0;
    padding: 15px 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: background 0.3s;
}

#sidebar-tab:hover {
    background: #34495e;
}*/

#sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 30%;
    min-width: 250px;
    max-width: 100%;
    background: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#sidebar-header {
    padding: 0 15px;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebar-content {
    flex: 1;
    overflow: auto;
    padding: 0 15px;
}

#sidebar-resizer {
    width: 8px;
    height: 100%;
    background: #ddd;
    cursor: col-resize;
    position: absolute;
    left: 0;
    top: 0;
    user-select: none;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

h3#data-attr-name {
    margin-block: 5px;
    font-size: 16px;
}

#data-table thead td.rot {
    /*writing-mode: vertical-rl;*/
    max-width: 150px;
    /*transform: rotate(0.5turn);*/
}

#data-table th, #data-table td {
    border: 1px solid #ddd;
    padding: 1px 5px;
    text-align: left;
}

#data-table td.selected {
    background-color: #aaaaaa;
}

#data-table td.objselected {
    background-color: #dddddd;
}

#data-table th {
    background-color: #3498db;
    color: white;
}

#data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#data-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    #sidebar-tab {
        position: fixed;
        bottom: 0;
        top: auto;
        right: 50%;
        transform: translateX(50%);
        writing-mode: horizontal-tb;
        width: 150px;
        height: auto;
        border: 1px solid #34495e;
        border-bottom: none;
        border-radius: 5px 5px 0 0;
        text-align: center;
        padding: 10px;
    }

    #sidebar {
        width: 100%;
        height: 40%;
        top: auto;
        bottom: 0;
        left: 0;
        max-width: none;
    }

    #sidebar-resizer {
        width: 100%;
        height: 8px;
        top: 0;
        left: 0;
        cursor: row-resize;
    }
}

#close-sidebar {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
}

#close-sidebar:hover {
    background: #c0392b;
}

g.mls path.colorI {
    fill: #bfe6ff;
}

g.mls path.colorII {
    fill: #22CCFF;
}

g.mls path.colorIII {
    fill: #34495e;
}

g.mls path.colorIV {
    fill: #FFCC55;
}

g.mls path.colorV {
    fill: #c0392b;
}