/***************************************************************
 *
 *  Copyright (C) 2016 Swayvil <swayvil@gmail.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 ***************************************************************/


/*
 * Styles of the components of the tree
 */
#tree-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
    margin: 0 !important;
    padding: 0 !important;
}

.right-button {
    float: right;
    margin-left: 3px;
    margin-right: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    padding: 2px 6px;
}

.svgContainer {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.node {
    cursor: pointer;
}

.node-rect {
    transition: filter 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.node:hover .node-rect {
    filter: brightness(1.12);
}

.node-rect {
}

.node-rect-closed {
    stroke-width: 2px;
    stroke: #FFFFFF;
}

.link {
    fill: none;
    stroke: #CBD5E1;
    stroke-width: 1.5px;
}

.linkselected {
    fill: none;
    stroke: #1D4ED8;
    stroke-width: 2px;
}

.arrow {
    fill: #CBD5E1;
    stroke-width: 1px;
}

.arrowselected {
    fill: #1D4ED8;
    stroke-width: 2px;
}

.link text {
    font: 7px sans-serif;
    fill: #CC0000;
}

.wordwrap {
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -pre-wrap; /* Opera <7 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* IE */
}

.node-text {
    font: 500 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    letter-spacing: -0.005em;
    overflow: hidden;
}

/* Название узла: не более двух строк, дальше — многоточие. */
.node-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

/* Что внутри узла (сколько направлений, процессов) либо владелец процесса. */
.node-meta {
    font-size: 9.5px;
    font-weight: 500;
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tooltip-text-container {
    height: 100%;
    width: 100%;

}

.tooltip-text {
    visibility: hidden;
    font: 400 10px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
    color: #FFFFFF;
    display: block;
}

.tooltip-box {
    background: rgba(15, 26, 43, 0.92);
    visibility: hidden;
    position: absolute;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

p {
    display: inline;
}

.textcolored {
    color: orange;
}

a.exchangeName {
    color: orange;
}