@charset "UTF-8";

*body {
margin: 0;
}
html, body {
width: 100%;
height: 100%;
}
#mynetwork {
border: 1px solid lightgray;
z-index: 0;
background-color: transparent;
}

.network-canvas-container {
position: relative;
}

.graph-table-drawer {
position: relative;
z-index: 950;
width: 100%;
border: 1px solid #d9dce3;
background: #fff;
box-shadow: 0 8px 24px rgba(24, 31, 45, 0.08);
color: #202532;
}

.graph-table-drawer[data-size="full"] {
position: fixed;
inset: 0;
z-index: 2000;
height: 100vh !important;
}

.graph-table-header {
display: flex;
min-height: 46px;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 6px 12px;
border-bottom: 1px solid #eceef2;
background: #f8fafc;
cursor: pointer;
}

.graph-table-title-button {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 8px;
border: 0;
background: transparent;
color: #202532;
cursor: pointer;
font-weight: 700;
}

.graph-table-icon { color: #2563eb; font-size: 1rem; }
.graph-table-count { border-radius: 999px; background: #e8eefc; color: #1d4ed8; padding: 2px 8px; font-size: 0.72rem; }
.graph-table-size-controls { display: flex; align-items: center; gap: 5px; }
.graph-table-size-controls button,
.graph-table-tabs button,
.graph-table-reports-menu summary,
.graph-table-clear {
border: 1px solid #d9dce3;
border-radius: 6px;
background: #fff;
color: #525a6c;
cursor: pointer;
padding: 5px 9px;
font-size: 0.76rem;
white-space: nowrap;
}
.graph-table-size-controls button.active,
.graph-table-tabs button.active,
.graph-table-reports-menu summary.active {
border-color: #2563eb;
background: #e8eefc;
color: #1d4ed8;
}
.graph-table-content { display: flex; height: calc(100% - 46px); min-height: 0; flex-direction: column; }
.graph-table-content[hidden] { display: none; }
.graph-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #eceef2; }
.graph-table-tabs, .graph-table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.graph-table-reports-menu { position: relative; }
.graph-table-reports-menu summary { list-style: none; }
.graph-table-reports-list { position: absolute; z-index: 21; top: calc(100% + 4px); left: 0; display: grid; min-width: 290px; gap: 4px; padding: 8px; border: 1px solid #d9dce3; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(24, 31, 45, 0.16); }
.graph-table-reports-list button { border: 0; text-align: left; }
.graph-table-columns { position: relative; }
.graph-table-columns summary { border: 1px solid #d9dce3; border-radius: 6px; padding: 5px 9px; color: #525a6c; cursor: pointer; font-size: 0.76rem; list-style: none; }
.graph-table-column-list { position: absolute; right: 0; z-index: 20; display: grid; width: min(360px, 80vw); max-height: 420px; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; border: 1px solid #d9dce3; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(24, 31, 45, 0.16); overflow-y: auto; }
.graph-table-column-list label { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; color: #525a6c; font-size: 0.74rem; overflow-wrap: anywhere; }
.graph-table-column-group { padding: 6px 4px; border-radius: 5px; background: #eef4ff; color: #1d4ed8 !important; font-weight: 700; }
.graph-table-column-attribute { padding: 3px 4px 3px 16px; }
.graph-table-clear { width: 100%; margin-top: 5px; border-color: #fecaca; color: #b91c1c; text-align: left; }
.graph-table-status { min-height: 27px; padding: 5px 12px; color: #687084; font-size: 0.74rem; }
.graph-table-scroll { min-height: 0; flex: 1; overflow: auto; }
.graph-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.76rem; }
.graph-table th, .graph-table td { max-width: 360px; padding: 7px 9px; border-right: 1px solid #eceef2; border-bottom: 1px solid #eceef2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.graph-table thead th { position: sticky; z-index: 3; top: 0; background: #eef2f7; color: #303748; font-weight: 700; }
.graph-table thead tr.graph-table-filters th { top: 33px; padding: 5px; background: #f8fafc; }
.graph-table thead th.graph-table-filter-active { background: #dbeafe; color: #1d4ed8; }
.graph-table thead tr.graph-table-filters th.graph-table-filter-active { background: #eff6ff; }
.graph-table-filter-list { display: grid; gap: 4px; }
.graph-table-filter-control { display: flex; min-width: 225px; align-items: center; gap: 4px; }
.graph-table-filter { width: auto; min-width: 70px; flex: 1 1 90px; padding: 5px 7px; border: 1px solid #cfd3dc; border-radius: 5px; font-size: 0.72rem; }
.graph-table-filter-operator { width: auto; min-width: 82px; padding: 5px; border: 1px solid #cfd3dc; border-radius: 5px; background: #fff; font-size: 0.72rem; }
.graph-table-filter-join { width: 58px; padding: 5px 2px; border: 1px solid #cfd3dc; border-radius: 5px; background: #fff; font-size: 0.68rem; font-weight: 700; }
.graph-table-filter-value { min-width: 90px; }
.graph-table-filter-add, .graph-table-filter-remove { width: 28px; min-width: 28px; height: 28px; padding: 0; border: 1px solid #93c5fd; border-radius: 5px; background: #eff6ff; color: #1d4ed8; cursor: pointer; font-weight: 700; }
.graph-table-filter-remove { border-color: #fecaca; background: #fff7f7; color: #b91c1c; }
.graph-table-filter:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; }
.graph-table tbody tr:hover { background: #eff6ff; }
.graph-table-empty { padding: 26px !important; color: #687084; text-align: center !important; }

@media (max-width: 820px) {
  .graph-table-header, .graph-table-toolbar { align-items: flex-start; flex-direction: column; }
  .graph-table-size-controls { width: 100%; }
  .graph-table-actions { width: 100%; }
}

.network-controls {
position: absolute;
top: 12px;
right: 12px;
z-index: 150;
}

.network-controls .PopUpCommonFormHideLinkCostSaveNodesPositions {
top: auto;
right: auto;
}

.PopUpFormBackupNonBackupNets.lsp-browser {
max-height: min(900px, 90vh);
overflow: hidden;
text-align: left;
}

.lsp-browser.is-hidden { display: none; }
.lsp-browser-header { display: flex; justify-content: space-between; gap: 10px; align-items: start; padding-bottom: 8px; }
.lsp-browser-header h2 { margin: 0; font-size: 1rem; }
.lsp-browser-count { color: #687084; font-size: 0.78rem; }
.lsp-search-label { display: block; margin-bottom: 4px; color: #525a6c; font-size: 0.75rem; font-weight: 650; }
.lsp-search { width: 100%; margin-bottom: 10px; padding: 8px 10px; border: 1px solid #cfd3dc; border-radius: 7px; font-size: 0.82rem; }
.lsp-search:focus { outline: 2px solid #c4b5fd; border-color: #7c3aed; }
.lsp-role-filter { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; padding: 0; border: 0; }
.lsp-role-filter legend { width: 100%; margin-bottom: 2px; color: #525a6c; font-size: 0.75rem; font-weight: 650; }
.lsp-role-filter label { margin: 0; color: #525a6c; font-size: 0.76rem; white-space: nowrap; }
.lsp-list { max-height: min(620px, calc(90vh - 210px)); margin: 0; padding: 0; border-top: 1px solid #eceef2; list-style: none; overflow-y: auto; }
/* .lsp-browser-item carries no styling: the edge browser reuses the inspector's
   .lsp-item card, and the class stays only as the list's JS selector hook */
.lsp-browser-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.lsp-browser-pagination[hidden] { display: none; }
.lsp-browser-pagination button { border: 1px solid #d9dce3; border-radius: 6px; background: #fff; color: #5b21b6; padding: 5px 9px; font-size: 0.75rem; }
.lsp-browser-pagination button:disabled { color: #9ca3af; cursor: default; }
.lsp-browser-page { color: #687084; font-size: 0.75rem; }

.lsp-inspector {
position: absolute;
left: 16px;
top: 16px;
z-index: 900;
width: min(380px, calc(100% - 32px));
max-height: calc(100% - 32px);
overflow-y: auto;
background: rgba(255, 255, 255, 0.97);
border: 1px solid #d9dce3;
border-radius: 12px;
box-shadow: 0 12px 36px rgba(24, 31, 45, 0.18);
color: #202532;
}

.lsp-inspector[hidden] { display: none; }
.lsp-inspector-header { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.lsp-inspector-header h2 { margin: 2px 0 3px; font-size: 1.05rem; }
.lsp-inspector-eyebrow { color: #6d28d9; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lsp-inspector-summary { color: #687084; font-size: 0.82rem; }
.lsp-inspector-close { border: 0; background: transparent; color: #687084; cursor: pointer; font-size: 1.65rem; line-height: 1; }
.lsp-role-tabs { display: flex; gap: 5px; padding: 0 16px 12px; overflow-x: auto; }
.lsp-role-tabs button { border: 1px solid #d9dce3; border-radius: 999px; background: #fff; color: #525a6c; cursor: pointer; padding: 5px 9px; font-size: 0.75rem; white-space: nowrap; }
.lsp-role-tabs button.active { border-color: #7c3aed; background: #ede9fe; color: #5b21b6; }
.lsp-inspector-list { border-top: 1px solid #eceef2; }
.lsp-item { padding: 12px 16px; border-bottom: 1px solid #eceef2; cursor: pointer; }
.lsp-item:hover, .lsp-item.active { background: #f7f5ff; }
.lsp-item-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lsp-item-name { font-weight: 650; overflow-wrap: anywhere; }
.lsp-status { border-radius: 999px; padding: 2px 7px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.lsp-status-placed { background: #dcfce7; color: #166534; }
.lsp-status-unplaced { background: #fee2e2; color: #991b1b; }
.lsp-item-route, .lsp-item-meta, .lsp-item-path, .lsp-item-reason { margin-top: 5px; color: #687084; font-size: 0.78rem; overflow-wrap: anywhere; }
.lsp-item-path { color: #4c1d95; }
.lsp-item-reason { color: #991b1b; }
.lsp-empty { padding: 22px 16px; color: #687084; text-align: center; }

/* Seldom dots background for the vis-network canvas area (visible through transparent canvas) */
.vis-network {
background-color: #ffffff;
background-image: radial-gradient(circle, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
background-size: 24px 24px;
}
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. */

/* Popup forms use same card style as edge tooltip (.link-details-panel) */
.PopUpFormBackupNonBackupNets {
  position: absolute;
  top: calc(100% + 28px);
  z-index: 150;
  text-align: center;
  width: 323px;
  min-height: 0;
  padding: 16px 18px;
  height: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6e9ef;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #2b2f36;
}

.PopUpFormBackupNonBackupNets p {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.node-stats {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}
.node-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 13px;
}
.node-stat-label { color: #6b7280; text-align: left; }
.node-stat-value { justify-self: end; font-weight: 700; color: #1f2937; }
.node-stat-lsp .node-stat-label { color: #7c3aed; }
.node-stat-in { color: #1e7e34; }
.node-stat-transit { color: #b26a00; }
.node-stat-out { color: #2f4bd8; }

label {
    display: block;
}

textarea {
    width: 100%;
    height: 1em;
    margin: 0 0 1em 0;
}
/* OSPF cost form "New Cost" inputs: 20px height */
input.row_input {
  width: 5em;
  height: 20px;
  min-height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  font-size: 14px;
}
.close {
text-align: center;
}
.PopUpFormNewOSPFCostSet {
  position: absolute;
  top: calc(100% + 28px);
  z-index: 50;
  text-align: center;
  width: 370px;
  min-height: 0;
  height: auto;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6e9ef;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #2b2f36;
}

/* Edge-cost popup must sit above the CSPF panel when both are open */
#messagepop2 {
  z-index: 51;
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
}
#messagepop2 table { table-layout: fixed; }
#messagepop2 th:nth-child(1),
#messagepop2 th:nth-child(2) { width: 30%; }
#messagepop2 th:nth-child(3) { width: 14%; }
#messagepop2 th:nth-child(4) { width: 26%; }
#messagepop2 td {
  white-space: normal;
  overflow-wrap: anywhere;
}
#messagepop2 input.row_input { width: 100%; }
#cspf_panel { z-index: 49; }

.PopUpFormNewOSPFCostSet > p {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.PopUpFormNewOSPFCostSet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 12px;
}
.PopUpFormNewOSPFCostSet table th,
.PopUpFormNewOSPFCostSet table td {
  border: 1px solid #e6e9ef;
  padding: 8px 10px;
  text-align: left;
}
.PopUpFormNewOSPFCostSet table th {
  background: #f8f9fc;
  color: #1f2937;
  font-weight: 600;
}

.PopUpFormUnsymmetricPaths {
  position: absolute;
  top: calc(100% + 28px);
  z-index: 50;
  text-align: left;
  width: 370px;
  min-height: 330px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6e9ef;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #2b2f36;
}

.PopUpFormUnsymmetricPaths > p {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.PopUpFormUnsymmetricPaths ul {
  margin-bottom: 12px;
  padding-left: 1.2em;
  color: #2b2f36;
  font-size: 14px;
}

.PopUpFormBackupNonBackupNets .close,
.PopUpFormNewOSPFCostSet .close,
.PopUpFormUnsymmetricPaths .close {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2c5be4;
  text-decoration: none;
  border-radius: 6px;
  background: #eef4ff;
  opacity: 1;
}
.PopUpFormBackupNonBackupNets .close:hover,
.PopUpFormNewOSPFCostSet .close:hover,
.PopUpFormUnsymmetricPaths .close:hover {
  background: #dbe8ff;
  color: #1d4ed8;
}

/* Node-click form: backup/non-backup networks panel */
.network-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  width: 340px;
  border: 1px solid #e6e9ef;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1f2937;
}

.network-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf1f5;
}

.network-list {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.network-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 4px 6px;
  margin: -4px -6px;
}

.network-prefix {
  font-weight: 500;
  color: #1f2937;
}

.backup-router-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.router-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #dbe6ff;
}

.no-backup {
  color: #dc2626;
  font-size: 13px;
}

.network-row:hover {
  background: #f6f8fc;
  border-radius: 6px;
}

/* Compare graphs form: flex row so dropdowns fill available space proportionally */
.compare-graph-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.compare-graph-row .compare-graph-select-wrap {
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .compare-graph-row .compare-graph-select-wrap {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.compare-graph-row .compare-graph-select {
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
}

.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;
}
.btnStopStartPhys {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 16px 42px 16px 16px;
  color: #1f2937;
  border: 1px solid;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  z-index: 10000;
}

.btnStopStartPhys.notification-success {
  background: #effaf3;
  border-color: #8fd6ae;
}

.btnStopStartPhys.notification-warning {
  background: #fff8e6;
  border-color: #f2c66d;
}

.instant-notification-icon {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}

.notification-success .instant-notification-icon {
  color: #218a55;
}

.notification-warning .instant-notification-icon {
  color: #d98600;
}

.instant-notification-message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.instant-notification-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
}

.instant-notification-close:hover,
.instant-notification-close:focus {
  color: #1f2937;
  background: rgba(15, 23, 42, 0.06);
  outline: none;
}

.instant-notification-close:focus-visible {
  box-shadow: 0 0 0 2px #2563eb;
}

@media (max-width: 576px) {
  .btnStopStartPhys {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}
#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;
  max-width: 100%;
  overflow: hidden;
}
.popup-details-toggle {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.popup-details-toggle summary {
  cursor: pointer;
  color: #444;
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popup-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.popup details {
  max-width: 100%;
  overflow: hidden;
}
.popup details summary {
  cursor: pointer;
  font-weight: 500;
  color: #444;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  overflow-y: auto;
  max-width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Error popup styling - same width as regular popups */
.status-error {
  background-color: #fd7e14;
  color: #ffffff;
}

.status-error details pre {
  max-width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  display: block;
}

.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;
}

/* TE (temetric) popups: distinct from IGP metric cost-change yellow */
.status-change.status-change-te {
  background-color: #97b8f5;
  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 appears */
    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;
}

/*Checkbox in ospf-isis-monitoring*/
.event-filter-input-wrap {
  position: relative;
  width: 100%;
}

.event-filter-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #6c757d;
  pointer-events: none;
}

.event-filter-search-icon svg {
  display: block;
}

.event-filter-input-wrap #eventFilter {
  padding-left: 40px;
}

.event-filter-applied {
  display: flex;
  align-items: center;
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  max-width: calc(100% - 16px);
  overflow-x: auto;
  overflow-y: hidden;
  gap: 6px;
  pointer-events: auto;
  scrollbar-width: thin;
}

.event-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e7e7e7;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  color: #111;
  font-size: 14px;
  padding: 2px 8px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
}

.event-filter-chip button {
  border: 0;
  background: transparent;
  color: #555;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.event-filter-chip button:hover {
  color: #111;
}

.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;
}

.feedback-link {
  position: fixed;
  left: 10px;
  font-size: 13px;
  text-decoration: none;
  color: #444;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 1px 7px;
  background: rgba(255,255,255,0.55);
  line-height: 26px;
}

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

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

/* Styles for graph selection controls */
.d-flex.flex-row.bd-highlight.mb-3 > .p-2.bd-highlight:first-of-type {
  text-align: center;
  display: flex;
}

.d-flex.flex-row.bd-highlight.mb-3 > .p-2.d-inline-flex.bd-highlight.ml-4 {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

/* Toast notification for copy feedback */
.copy-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Statistics details clickable summaries */
#description_elem details summary {
  cursor: pointer;
  color: #007bff;
  text-decoration: underline;
  user-select: none;
}

#description_elem details summary:hover {
  color: #0056b3;
  text-decoration: underline;
}

#description_elem details summary:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Pagination controls */
.pagination-container {
  margin-top: 15px;
  margin-bottom: 10px;
}

.pagination-container .page-link {
  color: #007bff;
  border-color: #dee2e6;
}

.pagination-container .page-link:hover {
  color: #0056b3;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pagination-container .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.pagination-container .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Tables within details */
#description_elem details {
  display: inline-block;
  width: 100%;
}

#description_elem details table {
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}

#description_elem details > div {
  background-color: white;
  padding: 5px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-top: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure flex container wraps when details expand */
#description_elem details[open] {
  min-width: 100%;
}

/* Make table cells in statistics table handle details expansion */
#description_elem .table-borderless td {
  vertical-align: top;
  position: relative;
}

#description_elem details table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

#description_elem details table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Allow description content to wrap; prevent overflow from pre default */
#description_elem {
  white-space: normal;
  overflow-x: auto;
}

/* Statistics advice text must wrap within container */
#description_elem details small {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Loading spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Pause/Resume Popups Button */
#pausePopupsBtn {
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  transition: all 0.2s;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

#pausePopupsBtn span {
  font-weight: bold;
  color: #000;
}

#pausePopupsBtn:hover {
  background-color: #e9ecef;
  transform: scale(1.05);
}

#pausePopupsBtn.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

#pausePopupsBtn.btn-warning:hover {
  background-color: #ffb300;
}

#pausePopupsBtn.btn-warning span {
  color: #000;
}

#pausedStatus {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Edge hover tooltip: let our link-details-panel provide the card look; scroll when content overflows */
div.vis-tooltip {
  padding: 0;
  white-space: normal;
  max-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: "Inter", "Segoe UI", sans-serif;
}

/* Link details panel (floating card for edge tooltip) */
.link-details-panel {
  position: relative;
  width: 280px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6e9ef;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #2b2f36;
}

.link-details-panel + .link-details-panel {
  margin-top: 12px;
}

/* Two panels in one row (two columns) so tooltip fits without scroll when hovering edge */
.link-tooltip-two-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
}

.link-tooltip-two-columns .link-details-panel {
  flex: 0 0 auto;
}

.link-tooltip-two-columns .link-details-panel + .link-details-panel {
  margin-top: 0;
}

div.vis-tooltip:has(.link-tooltip-two-columns) {
  max-width: 600px;
}

.link-header {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.link-attributes {
  display: grid;
  /* minmax(0, ...) lets the label column shrink instead of pushing the value
     column past the card edge when a row carries two badges */
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 8px;
  column-gap: 14px;
  font-size: 14px;
}

.link-attributes .attr-label {
  color: #6b7280;
  font-weight: 500;
  /* wrap rather than clip when a long value widens the value column */
  overflow-wrap: anywhere;
}

.link-attributes .attr-value {
  justify-self: end;
  text-align: right;
  font-weight: 600;
  color: #111827;
}

.link-attributes .attr-badge {
  justify-self: end;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #eef4ff;
  color: #2c5be4;
}

/* Unreserved BW: ratio to max_link_bw (else max of the eight pools on this edge) */
.link-attributes .attr-badge-unreserved-high {
  background: #eef4ff;
  color: #2c5be4;
}

.link-attributes .attr-badge-unreserved-mid {
  background: #ffedd5;
  color: #c2410c;
}

.link-attributes .attr-badge-unreserved-low {
  background: #fee2e2;
  color: #dc2626;
}

.link-attributes .attr-bw-pair {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.link-attributes .attr-badge-lsp-left {
  background: #ede9fe;
  color: #6d28d9;
}

.link-attributes .attr-badge-status-up {
  background: #d1fae5;
  color: #065f46;
}

.link-attributes .attr-badge-status-stale {
  background: #ffedd5;
  color: #c2410c;
}

.link-attributes .attr-badge-status-down {
  background: #fee2e2;
  color: #dc2626;
}

/* OSPF monitoring: Watchers Status - anchored to the document top, near the container right edge.
   z-index below Bootstrap .dropdown-menu (1000) so navbar / Links menus stay clickable and visible. */
.monitoring-watcher-dock {
  position: absolute;
  top: 6.1rem;
  z-index: 990;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  box-sizing: border-box;
  /* Default (< xl): fall back to page right */
  right: 0.5rem;
  width: min(300px, calc(100vw - 1rem));
}

/* When the flash alert is rendered above content, push the dock down to stay aligned with the row. */
body:has(.container > ul > .alert-warning) .monitoring-watcher-dock {
  top: 10.7rem;
}

/* xl+ (Bootstrap 4 container max = 1140px):
   left edge = 50% + 570px + gap  → always flush with the container right side.
   right: 0.25rem keeps it from spilling past the viewport.
   max-width caps it at 360px on wide screens. */
@media (min-width: 1200px) {
  .monitoring-watcher-dock {
    left: calc(50vw + 570px + 1rem);
    right: 0.25rem;
    width: auto;
    max-width: 360px;
  }
}

/* Mobile: drop out of fixed flow and render inline */
@media (max-width: 767.98px) {
  .monitoring-watcher-dock {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0 0 1rem 0;
    z-index: auto;
  }
}

.monitoring-watcher-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watcher-status-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.watcher-status-grid > .watcher-status-loading {
  align-self: center;
}

.watcher-status-item {
  border: 1px solid #edf1f5;
  border-radius: 8px;
  padding: 10px 10px 8px;
  background: #fafbfc;
  margin: 0;
}

#edgeDetailPanel {
  position: fixed;
  right: 12px;
  bottom: 44px;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  z-index: 11001;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e6e9ef;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #2b2f36;
}

.edge-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #edf1f5;
}

.edge-panel-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edge-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.edge-tab-btn {
  border: 1px solid #cfd7e3;
  background: #f8fafc;
  color: #334155;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.edge-tab-btn.active {
  border-color: #2c5be4;
  background: #eef4ff;
  color: #2c5be4;
}

.edge-panel-close {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.edge-panel-content {
  padding: 12px;
}

.edge-event-item {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.edge-event-time {
  color: #6b7280;
  font-size: 11px;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  white-space: nowrap;
  line-height: 1.35;
}

.edge-event-body {
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
  word-break: break-word;
}

.edge-event-item.host_up,
.edge-event-item.network_up {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.edge-event-item.host_down,
.edge-event-item.network_down {
  background: #fef2f2;
  border-color: #fecaca;
}

.edge-event-item.metric_get_better {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.edge-event-item.metric_get_worse,
.edge-event-item.metric_change {
  background: #fff7ed;
  border-color: #fed7aa;
}

.edge-event-item.temetric,
.edge-event-item.te_metric {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.edge-events-empty,
.edge-events-more {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
  padding: 8px 2px;
}

.yaml-edit-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.yaml-edit-tool-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c8d4e6;
  border-radius: 4px;
  color: #0f172a;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.yaml-edit-tool-button i {
  color: #2563eb;
  font-size: 15px;
}

.yaml-edit-tool-button:hover,
.yaml-edit-tool-button:focus {
  background: #f8fbff;
  border-color: #60a5fa;
  color: #0f172a;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.yaml-edit-lsp-panel .card-body {
  max-height: 620px;
  overflow-y: auto;
}

.yaml-edit-lsp-panel h6 {
  color: #334155;
  font-weight: 700;
  margin: 4px 0 8px;
}

.yaml-edit-lsp-panel .form-row {
  display: block;
}

.yaml-edit-lsp-panel .form-row > [class*="col-"] {
  flex: 0 0 100%;
  margin-bottom: 8px;
  max-width: 100%;
  width: 100%;
}

.yaml-edit-lsp-panel .form-row > [class*="col-"]:last-child {
  margin-bottom: 0;
}

.yaml-edit-lsp-ero {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px;
}

.yaml-diagram-split {
  --yaml-diagram-left-width: 33.333333%;
  flex-wrap: nowrap;
  position: relative;
}

.yaml-diagram-split > .yaml-diagram-editor-pane {
  flex: 0 0 var(--yaml-diagram-left-width);
  max-width: var(--yaml-diagram-left-width);
}

.yaml-diagram-split > .yaml-diagram-graph-pane {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
}

.yaml-diagram-split-handle {
  bottom: 0;
  cursor: col-resize;
  left: var(--yaml-diagram-left-width);
  position: absolute;
  top: 0;
  touch-action: none;
  transform: translateX(-50%);
  width: 12px;
  z-index: 10;
}

.yaml-diagram-split-handle::before {
  background: #d9dce3;
  bottom: 0;
  content: '';
  left: 5px;
  position: absolute;
  top: 0;
  transition: background-color 0.15s, width 0.15s;
  width: 2px;
}

.yaml-diagram-split-handle:hover::before,
.yaml-diagram-split-handle:focus-visible::before {
  background: #7c3aed;
  left: 4px;
  width: 4px;
}

body.yaml-diagram-resizing {
  cursor: col-resize;
  user-select: none;
}

body.yaml-source-resizing {
  cursor: row-resize;
  user-select: none;
}

.yaml-diagram-name-group {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}

.yaml-diagram-name-group label {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.yaml-diagram-name-group .form-control {
  border-color: #d8dee8;
  border-radius: 4px;
  height: 38px;
  width: 100%;
}

.yaml-source-editor-card {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  container-type: inline-size;
  margin-top: 14px;
  overflow: hidden;
}

.yaml-source-editor-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.yaml-source-editor-title {
  color: #111827;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.yaml-source-editor-shell {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-left: 0;
  border-right: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 78px;
  height: var(--yaml-source-editor-height, 520px);
  min-height: 200px;
  overflow: hidden;
  position: relative;
}

.yaml-source-editor-resize-handle {
  bottom: 0;
  cursor: row-resize;
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  touch-action: none;
  transform: translateY(50%);
  z-index: 10;
}

.yaml-source-editor-resize-handle::before {
  background: #d9dce3;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 5px;
  transition: background-color 0.15s, height 0.15s;
}

.yaml-source-editor-resize-handle:hover::before,
.yaml-source-editor-resize-handle:focus-visible::before {
  background: #7c3aed;
  height: 4px;
  top: 4px;
}

.yaml-source-codepane {
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.yaml-source-line-numbers,
.yaml-source-highlight,
.yaml-source-textarea {
  font-family: "JetBrains Mono", "IBM Plex Mono", "Source Code Pro", "Fira Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  font-variant-ligatures: none;
  line-height: 21px;
}

.yaml-source-line-numbers {
  background: #fbfdff;
  border-right: 1px solid #e6ecf3;
  color: #7a869a;
  overflow: hidden;
  padding: 12px 12px 12px 0;
  text-align: right;
  user-select: none;
  white-space: pre;
}

.yaml-source-highlight,
.yaml-source-textarea {
  border: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  overflow: auto;
  padding: 12px 14px;
  position: absolute;
  right: 0;
  tab-size: 2;
  top: 0;
  white-space: pre;
}

.yaml-source-highlight {
  color: #111827;
  pointer-events: none;
  z-index: 2;
}

.yaml-source-textarea {
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  caret-color: #111827;
  color: transparent;
  min-height: 100%;
  resize: none;
  z-index: 3;
}

.yaml-source-textarea:focus {
  background: transparent;
  background-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.12);
  color: transparent;
  outline: 0;
  -webkit-text-fill-color: transparent;
}

.yaml-source-textarea::selection {
  background: rgba(37, 99, 235, 0.18);
  color: transparent;
}

.yaml-source-textarea::placeholder {
  color: #8a94a6;
  opacity: 1;
}

.yaml-source-structure-layer {
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.yaml-source-block {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  position: absolute;
  right: 0;
}

.yaml-source-current-line {
  background: rgba(37, 99, 235, 0.05);
  left: 0;
  position: absolute;
  right: 0;
}

.yaml-source-block-0 { background: rgba(66, 133, 244, 0.04); }
.yaml-source-block-1 { background: rgba(52, 168, 83, 0.04); }
.yaml-source-block-2 { background: rgba(251, 188, 5, 0.04); }
.yaml-source-block-3 { background: rgba(156, 39, 176, 0.03); }

.yaml-source-item-count {
  color: #64748b;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Source Code Pro", "Fira Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 21px;
  position: absolute;
  right: 18px;
  top: 0;
}

.yaml-source-minimap {
  background: #fbfdff;
  border-left: 1px solid #e6ecf3;
  color: #64748b;
  cursor: pointer;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Source Code Pro", "Fira Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 2px;
  line-height: 3px;
  margin: 0;
  overflow: hidden;
  padding: 8px 8px;
  white-space: pre;
}

.yaml-source-key { color: #006adc; font-weight: 700; }
.yaml-source-value { color: #15803d; }
.yaml-source-bullet { color: #7c8aa5; }
.yaml-source-comment { color: #8a94a6; font-style: italic; }

.yaml-save-row {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 12px 0 0;
}

.yaml-save-row .btn {
  flex: 1 1 0;
  height: 38px;
  margin-bottom: 0;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .yaml-source-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .yaml-source-editor-shell {
    grid-template-columns: 48px minmax(0, 1fr);
    --yaml-source-editor-height: 460px;
  }

  .yaml-source-minimap {
    display: none;
  }
}

@container (max-width: 560px) {
  .yaml-source-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .yaml-source-editor-shell {
    grid-template-columns: 56px minmax(0, 1fr) 44px;
  }

  .yaml-source-item-count {
    display: none;
  }
}
