.topology-layer2-tree-container {
    min-height: 100px;
    min-width: 100px;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.topology-layer2-tree-container::before,
.topology-layer2-tree-container::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
}

.topology-layer2-tree-container::before {
    background: linear-gradient(90deg, white, white, transparent);
    left: 0;
}

.topology-layer2-tree-container::after {
    background: linear-gradient(90deg, transparent, white, white);
    right: 0;
}

.topology-layer2-tree-container > *:not(:last-child) {
    margin-bottom: 10px;
}

.topology-layer2-tree-container.empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topology-layer2-tree-container .charts-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.tree-chart-popover.popover {
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: #fff;
    font-size: 12px;
    opacity: 0.9;
    /* font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;*/
    font-size: 12px;
    cursor: default;
    opacity: 0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 99999;
}

.tree-chart-popover.popover > .popover-close {
    position: absolute;
    top: 2px;
    right: 7px;
    cursor: pointer;
    font-size: 13px;
    color: #4d627b;
}

.tree-chart-popover.popover > .popover-close:hover {
    color: #999;
}

.tree-chart-popover.popover.shown {
    opacity: 1;
}

.tree-chart-popover.popover .popover-content {
    max-width: 250px;
    padding: 20px;
    min-width: 180px;
}

.tree-chart-popover .arrow {
    left: 50% !important;
}

.tree-chart-popover.popover.bottom .arrow {
    border-bottom-color: #ccc;
}

.tree-chart-popover.popover.top .arrow {
    border-width: 12px;
    border-bottom-width: 0;
    bottom: -12px;
    margin-left: -12px;
}

.tree-chart-popover.popover.top .arrow::after {
    border-width: 12px;
    border-bottom-width: 0;
    margin-left: -12px;
}

.tree-chart-popover.popover .popover-title {
    color: #222;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    display: block !important;
}

.tree-chart-popover .popover-control {
    position: absolute;
    top: -70px;
    display: flex;
    transform: translateX(-50%);
}

.tree-chart-popover .popover-control .control {
    margin: 0 2px;
    background-color: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 15px;
    transition-duration: 400ms;
    color: #666;
    cursor: pointer;
}

.tree-chart-popover .popover-control .control:hover {
    color: #000;
}

.tree-chart-popover .device-info > * {
    white-space: normal;
    color: #222;
}

.tree-chart-popover .device-info > .device-speed * {
    display: inline-block;
}

.tree-chart-popover .device-info strong {
    margin-right: 5px;
}

.tree-chart-popover .device-info .devices-speed.speed-error > span,
.tree-chart-popover .device-info .devices-speed.speed-error ul {
    color: red;
}

.tree-chart-popover .device-info .devices-speed.speed-error .speed-error-message {
    color: red;
    font-size: 0.9em;
    border: 1px solid #f99;
    padding: 3px 5px;
    border-radius: 3px;
    margin-top: 5px;
}

.tree-chart-popover .device-info .devices-speed ul {
    margin: 0px;
    padding: 0px;
    margin-left: 3px;
    list-style: inside;
}

.device-info .devices-connection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.device-info .devices-connection::after {
    display: block;
    content: '';
    position: absolute;
    width: 80%;
    height: 1px;
    background-color: gray;
    left: 10%;
    z-index: -1;
}

.device-info .devices-connection .connection-schema {
    display: flex;
    flex-direction: row-reverse;
    background: linear-gradient(90deg, transparent, white, white, transparent);
}

.device-info .devices-connection .connection-schema-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.device-info .devices-connection .connection-schema-port {
    width: 30px;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    position: relative;
}
.device-info .devices-connection .connection-schema-port .port-id {
    position: absolute;
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 0px black;
    margin-top: -3px;
}

.device-info .devices-connection .connection-schema-port.ethernet .port-id {
    margin-top: 4px;
}

.device-info .devices-connection .connection-schema-port img {
    width: 100%;
}

.tree-chart-popover .device-info .device-name h4 a {
    color: var(--plasma-cloud-title-color);
}

.tree-chart-popover .device-info .device-name h4 a:hover {
    color: var(--plasma-cloud-title-color);
}

@media (max-width: 768px) {
  .topology-layer2-tree-container {
    padding-top: 30px;
  }
}
