.neighbors-graph {
    clear: both;
    position: relative;
}

.neighbors-graph .svg-wrapper {
    position: relative;
}

.neighbors-graph .high-cardinality-modal {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    top: 20px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 2px solid #ddd;
    /*box-shadow: 0px -1px 15px 0px rgba(0,0,0,0.75);*/
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-content: stretch;
}

.neighbors-graph .high-cardinality-modal.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s, visibility 0.4s;
}

.neighbors-graph .high-cardinality-modal .title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.neighbors-graph .high-cardinality-modal .title-bar .property {
    flex: 1;
    display: flex;
    align-items: center;
}

.neighbors-graph .high-cardinality-modal .title-bar .property .marker-start,
.neighbors-graph .high-cardinality-modal .title-bar .property .marker-end {
    margin: 3px;
}

.neighbors-graph .high-cardinality-modal .title-bar .close-modal {
    font-size: 30px;
    width: 16px;
    height: 16px;
    text-align: center;
    cursor: pointer;
}

.neighbors-graph .high-cardinality-modal .title-bar .close-modal:hover {
    color: #666;
}

.neighbors-graph .high-cardinality-modal .items {
    overflow-y: scroll;
    flex: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.neighbors-graph .high-cardinality-modal .items .item {
    box-sizing: border-box;
    flex: 0 50%;
    padding: 4px;
    display: flex;
    align-items: stretch;
    margin: 0;
}

.neighbors-graph .high-cardinality-modal .items .item-wrapper {
    flex: 1;
    background: #f0f0f0;
    border-radius: 5px;
    padding: 5px 8px;
}

.neighbors-graph .high-cardinality-modal .items .item-class {
    font-size: 90%;
}

.neighbors-graph .high-cardinality-modal .items .item-class-value {
    margin-left: 0.3em;
}

.neighbors-graph .high-cardinality-modal .pagination {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0.6em 0;
}

.neighbors-graph .high-cardinality-modal .pagination .page-link {
    font-weight: bold;
    padding: 0.2em;
    min-width: 1.5em;
    text-align: center;
    display: block;
}

.neighbors-graph .high-cardinality-modal .pagination .page-link:hover {
    text-decoration: none;
    background: #e0e0e0;
}

.neighbors-graph .high-cardinality-modal .pagination .current .page-link,
.neighbors-graph .high-cardinality-modal .pagination .current .page-link:hover{
    background: #f0f0f0;
}

.neighbors-graph .legend {
    display: flex;
    justify-content: center;
}

.neighbors-graph .legend .legend-entry {
    margin: 0.7em;
}

.neighbors-graph .legend .legend-entry-marker {
    vertical-align: middle;
    display: inline-block;
    height: 12px;
    width: 12px;
    margin-right: 0.25em;
}

.neighbors-graph .tabs {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neighbors-graph .tab {
    padding: 0.3em 0.7em;
    margin: 0 0.5em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: #005A9C;
}

.neighbors-graph .tab:hover {
    text-decoration: none;
    border-bottom-color: #b3ddff;
}

.neighbors-graph .tab:first-child {
    border-left: none;
}

.neighbors-graph .tab.active {
    border-bottom-color: #337ab7;
}

.neighbors-graph .neighbor-tooltip {
    opacity: 0;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: -999;
    border: 2px solid #ddd;
    transition: opacity 0.2s;
    max-width: 20em;
    font-size: 12px;
    overflow: hidden;
    word-break: break-word;
}

.neighbors-graph .neighbor-tooltip.visible {
    z-index: 999;
    opacity: 1;
}

.neighbors-graph .neighbor-tooltip .tooltip-title {
    font-weight: bold;
}

.neighbors-graph .neighbor-tooltip .tooltip-class {
    font-size: 10px;
    margin-bottom: 0;
}

.neighbors-graph .neighbor-tooltip .tooltip-class-uri {
    display: inline-block;
    margin-top: 0;
    font-size: 9px;
}