*body {
margin: 0;
}
html, body {
width: 100%;
height: 100%;
}
#mynetwork {
border: 1px solid lightgray;
z-index: 0;
background-color: transparent;
}
td{
overflow: hidden;
white-space: nowrap;
}
#navbar {
overflow: hidden;
background-color: #099;
position: fixed;
top: 0;
width: 100%;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 20px;
}

#navbar a {
float: left;
display: block;
color: #666;
text-align: center;
padding-right: 20px;
text-decoration: none;
font-size: 17px;
}

#navbar a:hover {
background-color: #ddd;
color: black;
}

#navbar a.active {
background-color: #4CAF50;
color: white;
}

.main {
padding: 16px;
margin-top: 30px;
width: 100%;
height: 100vh;
overflow: auto;
cursor: grab;
cursor: -o-grab;
cursor: -moz-grab;
cursor: -webkit-grab;
}
.main img {
height: auto;
width: 80%;
}
.button {
width: 300px;
height: 60px;
}
/* The whole thing */
.custom-menu {
    display: none;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    background: #FFF;
    color: #333;
    border-radius: 5px;
    padding: 0;
}
/* Each of the items in the list */
.custom-menu li {
    padding: 8px 12px;
    cursor: pointer;
    list-style-type: none;
    transition: all .3s ease;
    user-select: none;
}

.custom-menu li:hover {
    background-color: #DEF;
}

/* The whole thing */
.network-reaction-on-failure-menu {
    display: none;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    background: #FFF;
    color: #333;
    border-radius: 5px;
    padding: 0;
}
/* Each of the items in the list */
.network-reaction-on-failure-menu li {
    padding: 8px 12px;
    cursor: pointer;
    list-style-type: none;
    transition: all .3s ease;
    user-select: none;
}

.network-reaction-on-failure-menu li:hover {
    background-color: #DEF;
}
.td_b {
border: 1px solid red;
}
/*Set a high (100) z-index so that it appears over top of whatever other content is at the bottom of the page at a given time. */

.PopUpFormBackupNonBackupNets {
position: absolute;
top: 100%;
/*left: 1%; left white space from left border of page*/
z-index: 150;
text-align: center;
width: 323px;
height: 300px;
padding: 25px 25px 20px;
background-color: rgba(233, 233, 233, 0.8);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-color: #E5E5E5 #DBDBDB #D2D2D2;
border-style: solid;
border-width: 1px;
}

label {
    display: block;
}

textarea {
    width: 100%;
    height: 1em;
    margin: 0 0 1em 0;
}
input.row_input {
    width: 5em;
    height: 1em;
}
.close {
text-align: center;
}
/*Set a high (100) z-index so that it appears over top of whatever other content is at the bottom of the page at a given time. */
.PopUpFormNewOSPFCostSet {
position: absolute;
/*left: 1%; left white space from left border of page*/
z-index: 50;
text-align: center;
width: 370px;
height: 300px;
padding: 25px 25px 20px;
background-color: rgb(228, 227, 227, 0.800);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-color: #E5E5E5 #DBDBDB #D2D2D2;
border-style: solid;
border-width: 1px;
}

.PopUpFormUnsymmetricPaths {
position: absolute;
/*left: 1%; left white space from left border of page*/
z-index: 50;
text-align: left;
width: 370px;
height: 330px;
padding: 25px 25px 20px;
background-color: rgb(228, 227, 227, 0.800);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-color: #E5E5E5 #DBDBDB #D2D2D2;
border-style: solid;
border-width: 1px;
}

.PopUpCommonFormHideLinkCostSaveNodesPositions {
  position: relative;
  top: 100%;
  /*left: 1%; left white space from left border of page*/
  z-index: 150;
  text-align: center;
  width: 88px;
  height: 30px;
  right: -70%;
	/*max-width:100px;*/
  background-color: rgba(233, 233, 233, 0.8);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border: none;
  margin-bottom: 0rem!important;
  margin-right: 4px; /* Adds space between buttons */
}

.PopUpCommonFormHideLinkCostSaveNodesPositions:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.PopUpCommonFormHideLinkCostSaveNodesPositions .input-group {
  width: 100%;
}

#btnScaleUpDown {
padding: 10;
margin: 0;
vertical-align: top;
}
/*Set a high (100) z-index so that it appears over top of whatever other content is at the bottom of the page at a given time. */
.btnStopStartPhys {
position: fixed;
text-align: center;
right: 1%;
padding: 25px 25px 20px;
background:rgba(93, 230, 150, 0.871);
z-index: 100;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-color: #E5E5E5 #DBDBDB #D2D2D2;
border-style: solid;
border-width: 1px;
}
#bottomBar {
    position: fixed;
    text-align: center;
    z-index: 100; 
    bottom: 0; 
    left: 0;
    width: 100%;
    background: rgba(132, 190, 236, 0.871);
    height: 30px;
}

#popupFormEventSocketContainer {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column; /* NEWEST at bottom */
  gap: 10px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Pop card with network changes details on monitoring page START */

.popup {
  /* width: 350px; */
  border-radius: 8px;
  color: white;
  padding: 1rem;
  line-height: 1.2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  overflow: hidden;
  max-height: 90px;
  min-height: 89px;
  transition: max-height 0.3s ease;
  position: relative; /* Ensure stacking context */
  z-index: 10;         /* Bring it above others */
}

/* .popup details[open] ~ * {
  max-height: none !important;
  overflow: visible;
} */

.popup details[open] {
  overflow: visible;
}
/* remove max-height: 90px to accommodate expanded content */
.popup.opened {
  max-height: none;
  min-height: unset;
  overflow: visible;
  z-index: 20; /* ensure it's on top */
}

.watcher-info,
.timestamp {
  font-size: 0.9rem;
}
.popup-main-text {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.popup-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.popup-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.25rem;
}
.popup-details-toggle summary {
  cursor: pointer;
  color: #444;
  font-weight: 500;
  font-size: 0.9rem;
}
.popup-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.popup details summary {
  cursor: pointer;
  font-weight: 500;
  color: #444;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.popup details pre {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  background: #fff3cd;
  color: #333;
  padding: 0.5rem;
  border-radius: 4px;
  overflow-x: auto;
}

.btn-icon {
  background: none;
  border: none;
  color: rgb(100, 6, 6);
  font-size: 1.1em;
  padding: 0 4px;
  cursor: pointer;
}

.btn-icon:hover {
  color: #2f22e7;
}

.bg-metric {
  background-color: #6f42c1;
}

.bg-network {
  background-color: #17a2b8;
}

.status-up {
  background-color: #28a745 !important;
}

.status-down {
  background-color: #dc3545 !important;
}

.status-change {
  background-color: #ffda6a;
  color: #212529;
}

/* Pop card with network changes details on monitoring page END */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/*
#unsym_table_w_node_names tbody {
height: 400px;
overflow: auto;
display: block;
}
*/
#unsym_table_w_node_names {
border-collapse: collapse;
border: 1px solid black;
}

#list_w_unsym_node_names {
max-height: 400px;
overflow: auto;
}

#loadingBar {
position: absolute;
display: flex;
left: 50%; /*this control aligment*/
z-index: 999;
/*align-self: 50%; controls alignment of an individual flex item on the cross axis.*/
/* bring your own prefixes */
transform: translate(-50%, -50%); /*this control aligment to the center of loading bar, not upper left corner*/
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
opacity: 1;
}

pre {
  /*otherwise - there is empty space even if display: none*/
  margin-bottom: 0rem;
}

#text {
position: absolute;
/*top: 8px;*/
left: 530px;
width: 30px;
height: 50px;
margin: auto auto auto auto;
font-size: 22px;
color: #000000;
}
#bar {
position: absolute;
top: 0px;
left: 0px;
width: 20px;
height: 20px;
margin: auto auto auto auto;
border-radius: 11px;
border: 2px solid rgba(30, 30, 30, 0.05);
background: rgb(0, 173, 246); /* Old browsers */
box-shadow: 2px 0px 4px rgba(0, 0, 0, 0.4);
}
div.outerBorder {
position: relative;
top: 400px;
width: 600px;
height: 44px;
margin: auto auto auto auto;
border: 8px solid rgba(0, 0, 0, 0.1);
background: rgb(252, 252, 252); /* Old browsers */
background: -moz-linear-gradient(
    top,
    rgba(252, 252, 252, 1) 0%,
    rgba(237, 237, 237, 1) 100%
); /* FF3.6+ */
background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, rgba(252, 252, 252, 1)),
    color-stop(100%, rgba(237, 237, 237, 1))
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
    top,
    rgba(252, 252, 252, 1) 0%,
    rgba(237, 237, 237, 1) 100%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
    top,
    rgba(252, 252, 252, 1) 0%,
    rgba(237, 237, 237, 1) 100%
); /* Opera 11.10+ */
background: -ms-linear-gradient(
    top,
    rgba(252, 252, 252, 1) 0%,
    rgba(237, 237, 237, 1) 100%
); /* IE10+ */
background: linear-gradient(
    to bottom,
    rgba(252, 252, 252, 1) 0%,
    rgba(237, 237, 237, 1) 100%
); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
border-radius: 72px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.loadingWheel {
position: absolute;
left: 50%; /*this control aligment*/
/*align-self: 50%; controls alignment of an individual flex item on the cross axis.*/
/* bring your own prefixes */
transform: translate(-50%, -50%); /*this control aligment to the center of loading bar, not upper left corner*/
border: 16px solid #92d8a5;
border-radius: 50%;
border-top: 16px solid #3498db;
width: 100px;
height: 100px;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.container2 .header {
    background-color:#d3d3d3;
    padding: 2px;
    cursor: pointer;
    font-weight: bold;
}

.container2 .content {
    display: none;
    padding : 5px;
    max-height: 167px; // 5 lines of IP addresses, if set 166 - scroll bar is appear
    overflow: auto;
}

.col {
  display: flex; 
  width: 100%; height: 100%; 
  flex-direction: column;
  overflow: hidden;
}

.second-row { flex-grow: 1; border: none; margin: 0; padding: 0; }

.row {
  padding: 10px;
}

.vis-item {
    font-family: monospace;
  }
  
  .vis-item.metric_change {
    background: #7ad9fff5;
  }
  
  .vis-item.metric_get_better {
    background-color: #00e6ac;
    border-color: #008000;
  }
  
  .vis-item.metric_get_worse {
    background-color: #66d4ff;
    border-color: #66d4ff;
  }
  
  .vis-item.host_up {
    background-color: #15cf15e8;
    border-color: #66ccff;
  }
  
  .vis-item.host_down {
    background-color: rgb(255, 114, 114);
    border-color: red;
  }
  
  .vis-item.network_up {
    background-color: #76f076b6;
    border-color: green;
  }
  
  .vis-item.network_down {
    background-color: #ffa8a8;
    border-color: red;
  }

/*Checkbox in ospf-isis-monitoring*/
@charset "UTF-8";
.toggler-wrapper {
  display: block;
  width: 45px;
  height: 25px;
  cursor: pointer;
  position: relative;
}

.toggler-wrapper input[type="checkbox"] {
  display: none;
}

.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider {
  background-color: #44cc66;
}

.toggler-wrapper .toggler-slider {
  background-color: #ccc;
  position: absolute;
  border-radius: 100px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}

.toggler-wrapper .toggler-knob {
  position: absolute;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}
  
.toggler-wrapper.style-11 input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
left: calc(100% - 19px - 3px);
}
  
.toggler-wrapper.style-11 .toggler-slider:after {
position: absolute;
top: 50%;
right: -25px;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 75%;
text-transform: uppercase;
font-weight: 500;
opacity: 0.7;
}
  
.toggler-wrapper.style-11 .toggler-knob {
width: calc(25px - 6px);
height: calc(25px - 6px);
border-radius: 50%;
left: 3px;
top: 3px;
background-color: #fff;
}

/*Style 13*/

.toggler-wrapper.style-13 input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
  left: calc(100% - 19px - 3px);
}

.toggler-wrapper.style-13 input[type="checkbox"]:checked+.toggler-slider .toggler-knob:after {
  content: 'VRF';
}

.toggler-wrapper.style-13 .toggler-knob {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  left: 0;
  top: 0;
  background-color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(153, 153, 153, 0.75);
  box-shadow: 0 2px 6px rgba(153, 153, 153, 0.75);
}

.toggler-wrapper.style-13 .toggler-knob:after {
  content: 'VRF';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 65%;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

/* Remove standard marker of Chrome */
details summary::-webkit-details-marker {
  display: none
}
/* Remove standard marker of Firefox */
details > summary {
  list-style: none;
}

/* Add own marker of summary for close state */
details summary:before {
  content: '\f0fe';
  font-family: "Font Awesome 5 free";
  margin-right: 7px;
}

/* Add own marker of summary for open state */
details[open] summary:before {
  content: '\f146';
}

/* A link to topolograph telegram group  */
.megaphone-link {
  position: fixed;
  right: 10px;
  font-size: 16px;
  text-decoration: none;
  color: black;
  border-radius: 5px;
}

/* #myIframe {
  overflow: visible;
  position: relative;
  z-index: 1;
} */

#network {
  width: 100%;
  height: 90vh; /* fallback if JS fails */
  transition: height 0.3s ease;
}