/* ============================================================
   Bancul de lucru virtual — stiluri (assets/rlnet.js)
   ============================================================ */

.ns {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin: 20px 0 26px;
  overflow: hidden;
}
.ns-broken {
  border: 1px solid #c85a3e; background: rgba(214, 92, 66, 0.07);
  padding: 10px 12px; border-radius: 8px; font-size: 0.9rem;
}

/* --- antet ------------------------------------------------- */
.ns-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 12px; background: #123526; color: #fff;
}
.ns-title { font-family: var(--mono); font-size: 0.8rem; line-height: 1.35; }
.ns-title b { display: block; font-size: 0.84rem; letter-spacing: 0.3px; }
.ns-title span { color: #a5b6c1; }
.ns-tools { margin-left: auto; display: flex; gap: 7px; }

.ns-btn {
  font-family: var(--mono); font-size: 0.74rem; padding: 5px 12px;
  border: 1px solid #a2ceeb; color: #123526; background: #a2ceeb;
  border-radius: 5px; cursor: pointer; transition: 0.15s;
}
.ns-btn:hover { background: #c0ddf2; border-color: #c0ddf2; }
.ns-btn.ghost { background: transparent; color: #a5b6c1; border-color: #325744; }
.ns-btn.ghost:hover { color: #fff; border-color: #a2ceeb; background: transparent; }
.ns-btn.small { padding: 4px 10px; font-size: 0.72rem; }
.ns-btn.ghost2 { background: #fff; color: var(--muted); border-color: var(--border); }
.ns-btn.ghost2:hover { background: #f6f5f2; color: var(--navy); border-color: #3e6a8a; }

/* --- sarcina ----------------------------------------------- */
.ns-task {
  padding: 9px 12px; background: rgba(62,106,138, 0.07);
  border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--navy);
}

/* --- topologia --------------------------------------------- */
.ns-topo { padding: 10px 12px 4px; overflow-x: auto; background: #fbfcfd; }
.ns-topo svg { display: block; width: 100%; min-width: 460px; max-width: 780px; margin: 0 auto; }
.ns-topo .nl { stroke: #c4c1b6; stroke-width: 2; }
.ns-topo .nl.on { stroke: #2e7a58; }
.ns-topo .nl.off { stroke: #c85a3e; stroke-dasharray: 5 4; }
.ns-topo .nl.air { stroke-dasharray: 2 4; stroke-width: 1.6; }
.ns-topo .n-ap rect { fill: rgba(184,101,42, 0.12); stroke: #b8652a; }
.ns-topo .np { font: 8.5px var(--mono, monospace); fill: #868c7d; text-anchor: middle;
  stroke: #fbfcfd; stroke-width: 3px; paint-order: stroke; }
.ns-topo .nd { cursor: pointer; }
.ns-topo .nd rect { fill: #fff; stroke: #9ca491; stroke-width: 1.4; }
.ns-topo .n-switch rect { fill: rgba(62,106,138, 0.10); stroke: #3e6a8a; }
.ns-topo .n-router rect { fill: rgba(46,122,88, 0.14); stroke: #2e7a58; }
.ns-topo .n-hub rect    { fill: rgba(184,101,42, 0.14); stroke: #b8652a; }
.ns-topo .nd.sel rect { stroke-width: 2.6; stroke: #123526; }
.ns-topo .nn  { font: 700 11px var(--mono, monospace); fill: #123526; text-anchor: middle; }
.ns-topo .ns2 { font: 8.5px var(--mono, monospace); fill: #666b5f; text-anchor: middle; }

/* --- selectorul de echipamente ----------------------------- */
.ns-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 10px; background: #fbfcfd;
  border-bottom: 1px solid var(--border); }
.ns-chip {
  font-family: var(--mono); font-size: 0.76rem; padding: 4px 10px;
  border: 1px solid var(--border); background: #fff; color: var(--navy);
  border-radius: 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.ns-chip i { font-style: normal; opacity: 0.75; }
.ns-chip:hover { border-color: #3e6a8a; }
.ns-chip.on { background: #123526; color: #fff; border-color: #123526; }

/* --- zona de lucru ----------------------------------------- */
.ns-work { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; }
@media (max-width: 860px) { .ns-work { grid-template-columns: 1fr; } }

/* --- terminalul -------------------------------------------- */
.ns-term {
  background: #091d13; padding: 10px 12px 12px; min-height: 300px;
  display: flex; flex-direction: column; cursor: text;
}
.ns-scroll {
  flex: 1; margin: 0; color: #e8e5dc; font-family: var(--mono, monospace);
  font-size: 0.78rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  max-height: 340px; min-height: 240px; overflow-y: auto; background: none; padding: 0; border: 0;
}
.ns-inline { display: flex; align-items: baseline; gap: 7px; border-top: 1px solid #1c3729;
  margin-top: 8px; padding-top: 8px; }
.ns-prompt { color: #a2ceeb; font-family: var(--mono, monospace); font-size: 0.78rem; white-space: nowrap; }
.ns-input {
  flex: 1; background: none; border: 0; outline: none; color: #fff;
  font-family: var(--mono, monospace); font-size: 0.78rem; padding: 0; min-width: 0;
}

/* --- panourile laterale ------------------------------------ */
.ns-side { border-left: 1px solid var(--border); background: #fff; min-width: 0; }
@media (max-width: 860px) { .ns-side { border-left: 0; border-top: 1px solid var(--border); } }
.ns-panel { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ns-panel:last-child { border-bottom: 0; }
.ns-wide { border-top: 1px solid var(--border); border-bottom: 0; }
.ns-panel h5 {
  margin: 0 0 8px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted); font-weight: 700;
}
.ns-panel h5 b { color: var(--navy); }
.ns-panel label { display: block; font-size: 0.76rem; color: var(--muted); margin-bottom: 6px;
  font-family: var(--mono); }
.ns-panel input, .ns-panel select {
  display: block; width: 100%; box-sizing: border-box; margin-top: 2px;
  font-family: var(--mono); font-size: 0.8rem; padding: 4px 7px;
  border: 1px solid var(--border); border-radius: 4px; color: var(--navy); background: #fff;
}
.ns-panel input:focus, .ns-panel select:focus { outline: none; border-color: #3e6a8a; }
.ns-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ns-row select { width: auto; flex: 1; min-width: 120px; }
.ns-mac { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.ns-hint { font-size: 0.76rem; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.ns-msg { font-size: 0.76rem; margin-top: 7px; font-family: var(--mono); line-height: 1.4; }
.ns-msg.ok   { color: #34654c; }
.ns-msg.bad  { color: #9c3f28; }
.ns-msg.warn { color: #9a4e18; }

/* --- obiective --------------------------------------------- */
.ns-count { float: right; font-weight: 700; color: var(--navy); }
.ns-goals { list-style: none; margin: 0; padding: 0; }
.ns-goals li {
  position: relative; padding: 3px 0 3px 22px; font-size: 0.82rem;
  color: var(--muted); line-height: 1.4;
}
.ns-goals li::before {
  content: "○"; position: absolute; left: 3px; top: 3px; color: #c4c1b6; font-size: 0.85rem;
}
.ns-goals li.ok { color: var(--navy); }
.ns-goals li.ok::before { content: "✓"; color: #2e7a58; font-weight: 700; }
.ns-panel.flash { animation: nsflash 0.7s ease-out; }
@keyframes nsflash {
  0% { background: rgba(46,122,88, 0.22); } 100% { background: transparent; }
}

/* --- tabele mici în panouri --------------------------------- */
.ns-tw { overflow-x: auto; }
.ns-trace, .ns-cab {
  width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.72rem;
}
.ns-trace th, .ns-cab th {
  text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-weight: 700; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.4px; white-space: nowrap;
}
.ns-trace td, .ns-cab td {
  padding: 4px 6px; border-bottom: 1px solid rgba(18,53,38, 0.07);
  color: var(--navy); white-space: nowrap;
}
.ns-cab td i { color: var(--muted); }
.ns-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px;
  background: #c4c1b6; vertical-align: middle; }
.ns-dot.on { background: #2e7a58; }
.ns-dot.off { background: #c85a3e; }
.ns-x {
  font-family: var(--mono); font-size: 0.68rem; padding: 2px 8px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 4px;
}
.ns-x:hover { border-color: #3e6a8a; color: var(--navy); }
