html {
    overflow: hidden;
}

[jb-id='BodyContainer'] {
    margin-top: 0px !important;
}

.graph-tool-btn {
    padding: 8px;
    position: fixed;
    z-index: 99;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 30px;
}

.graph-tool-btn:hover {
    background-color: #00000096 !important;
}

/* Graph Legend */
.graph-legend {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 270px;
    left: -270px;
    padding-top: 25px;
    background-color: #2b3341;
    overflow: auto;
    z-index: 100;
}

.graph-legend.visible {
    left: 0;    
}

.legend .header {
    color: white;
    padding: 5px 0;
    border-bottom: 1px solid #5c6771;
    margin: 10px 40px 40px 40px;
}

.legend .toolbar {
    margin-left: 40px;
    margin-bottom: 20px;
}

ul.nodes-colors, ul.link-types {
    list-style: none;
    color: white;
    font-size: 14px;
    padding-left: 20px;
}

[jb-id="GraphLegend"].ontology-view .node-item.disabled > span.name {
    color: rgba(255, 255, 255, 0.4)!important;
    border-color: rgba(255, 255, 255, 0.1)!important;
}

[jb-id="GraphLegend"].ontology-view .node-item.disabled > span:before {
    border-color: rgba(255, 255, 255, 0.1);
}

[jb-id="GraphLegend"].ontology-view .node-item > span.name {
    position: relative;
    padding: 3px 5px;
    cursor: pointer;
    border-right: none!important;
    color: rgba(255, 255, 255, 0.8)!important;
    border-color: rgba(255, 255, 255, 0.8)!important;
    border-radius: 0!important;
    border-right: none!important;
}

[jb-id="GraphLegend"].ontology-view .node-item > span:before {
    content: '';
    position: absolute;
    right: -10px;
    top: 3px;
    width: 19px;
    height: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

[jb-id="GraphLegend"].columns-view .node-item > span.name {
    color: rgba(255, 255, 255, 0.8)!important;
    border-color: rgba(255, 255, 255, 0.8)!important;
    border-radius: 5px!important;
}

[jb-id="GraphLegend"].columns-view .node-item.disabled > span.name,
[jb-id="GraphLegend"].columns-view .link-item.disabled > span.name {
    color: rgba(255, 255, 255, 0.4)!important;
    border-color: rgba(255, 255, 255, 0.1)!important;
}

.node-item, .link-item {
    margin: 18px 0;
}

.node-item.disabled > span.name,
.link-item.disabled > span.name {
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.1)!important;
}

.node-item.disabled .count {
    opacity: 0.4;
}

.node-item.disabled .icon {
    filter: grayscale(100);
    opacity: 0.2;
}

.node-item > span.name, .link-item > span.name {
    display: inline-block;
    width: 70%;
    position: relative;
    padding: 3px 5px;
    border-radius: 4px;
    cursor: pointer;
}

.node-item.attr-item > span {
    border-radius: 0px;
}

.node-item:not(.attr-item) + .attr-item {
    margin-top: 40px;
}

.node-item, .link-item {
    opacity: 0.8;
}

.node-item > .icon {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 10px;
}

.link-item > span {
    border: none!important;
}

.link-item.disabled > span {
    opacity: 0.3;
}

[jb-id="GraphContainer"].push-right #GraphContainer, 
[jb-id="GraphColumnsView"].push-right {
    left: 270px!important;
}

[jb-id="Icon"].push-right {
    left: 280px!important;
}

/* Columns View */
.kind {
    width: 100%;
    background-color: #2b3341;
    padding: 10px;
    margin-bottom: 50px;
    font-weight: 100;
}

.kind .header {
    padding: 1px 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    width: fit-content;
}

.kind .nodes {
    list-style: none;
    padding-left: 10px;
}

.kind .nodes li {
    width: 100%;
    margin-top: 10px;
    padding: 5px 0;
}

.kind .nodes li .name {
    width: calc(100% - 75px);
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kind .nodes li .info {
    float: right;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.grid-container {
    display: grid;
    grid-auto-rows: 23px;
    grid-gap: 15px;
}

@media only screen and (min-width:480px){
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    .sidebar-opened .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

@media only screen and (min-width:768px){ 
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
    }
    .sidebar-opened .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }
}

@media only screen and (min-width:992px){
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    }
    .sidebar-opened .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
    }
}

@media only screen and (min-width:1200px){
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    }
    .sidebar-opened .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    }
}

.grid-container .grid-item {
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    background-color: #2b3341;
}

.menu-icon {
    display: block;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    color: white;
}

.menu-icon.active {
    background-color: #222a35;
}


