netx/web/src/index.css
oliver c105cd8fd6 Show latest KPIs and hover tooltips on the port traffic wall chart.
Cursor tracking syncs In/Out/Util values and displays a live bit/s tooltip.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-31 15:22:06 +08:00

3168 lines
52 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Inter, "Segoe UI", Arial, sans-serif;
background: #eef2f7;
color: #1f2937;
}
#root {
min-height: 100vh;
}
.app--shell {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.app-brand {
display: flex;
align-items: center;
justify-content: space-between;
height: 52px;
padding: 0 24px;
background: linear-gradient(90deg, #1565c0 0%, #1e88e5 55%, #2196f3 100%);
box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}
.app-brand__logo {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.4px;
color: #fff;
text-decoration: none;
flex-shrink: 0;
}
.app-brand__logo--static {
display: inline-block;
}
.app-brand__sep {
width: 1px;
height: 22px;
background: rgba(255, 255, 255, 0.35);
flex-shrink: 0;
}
.app-brand__start {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
}
.app-brand__apps {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
border: none;
border-radius: 4px;
background: transparent;
color: #fff;
cursor: pointer;
}
.app-brand__apps:hover,
.app-brand__apps:focus-visible {
background: rgba(255, 255, 255, 0.16);
outline: none;
}
.app-brand__module-title {
font-size: 16px;
font-weight: 600;
color: #fff;
white-space: nowrap;
}
.app-brand__actions {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.app-main {
flex: 1;
padding: 20px 28px 32px;
background: #eef2f7;
color: #1f2937;
}
.workbench {
max-width: 1280px;
}
.wb-section {
margin-bottom: 28px;
}
.wb-section__title {
margin: 0 0 14px;
padding-bottom: 10px;
font-size: 15px;
font-weight: 600;
color: #334155;
border-bottom: 1px solid #d8dee8;
}
.wb-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 14px;
}
.wb-card {
display: flex;
align-items: center;
gap: 14px;
min-height: 72px;
padding: 14px 16px;
border: 1px solid #e2e8f0;
border-radius: 4px;
background: #fff;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
cursor: pointer;
text-align: left;
text-decoration: none;
color: inherit;
transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.wb-card:hover {
border-color: #90caf9;
box-shadow: 0 4px 14px rgba(33, 150, 243, 0.15);
transform: translateY(-1px);
}
.wb-card__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 4px;
flex-shrink: 0;
}
.wb-card__icon--blue {
background: #e3f2fd;
color: #1565c0;
}
.wb-card__icon--green {
background: #e8f5e9;
color: #2e7d32;
}
.wb-card__icon--amber {
background: #fff8e1;
color: #f57f17;
}
.wb-card__icon--slate {
background: #eceff1;
color: #455a64;
}
.wb-card__text {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.wb-card__label {
font-size: 14px;
font-weight: 600;
color: #1e293b;
}
.wb-card__desc {
font-size: 12px;
color: #64748b;
line-height: 1.35;
}
.conn-pill--on-brand {
border-color: rgba(255, 255, 255, 0.35);
background: rgba(255, 255, 255, 0.12);
color: #fff;
font-size: 12px;
}
.header-menu__trigger--on-brand {
border-color: rgba(255, 255, 255, 0.45);
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.header-menu__trigger--on-brand:hover,
.header-menu__trigger--on-brand:focus-visible {
background: rgba(255, 255, 255, 0.22);
border-color: #fff;
}
.header-menu__panel--light {
background: #fff;
border-color: #e2e8f0;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.header-menu__label--light {
color: #64748b;
}
.header-menu__item--light {
color: #334155;
}
.header-menu__item--light:hover {
background: #f1f5f9;
color: #0f172a;
}
.header-menu__item--active-light {
background: #e3f2fd;
color: #1565c0;
}
.header-menu {
position: relative;
}
.header-menu__trigger {
min-width: 36px;
height: 36px;
padding: 0 10px;
font-size: 20px;
line-height: 1;
letter-spacing: 0.12em;
}
.header-menu__trigger:hover,
.header-menu__trigger:focus-visible {
border-color: #3d82f7;
outline: none;
}
.header-menu__panel {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 50;
min-width: 148px;
padding: 6px;
border: 1px solid #2c405f;
border-radius: 10px;
background: #0f1e34;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.header-menu__label {
padding: 6px 10px 4px;
font-size: 11px;
color: #6b7f9c;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.header-menu__item {
display: block;
width: 100%;
text-align: left;
padding: 8px 10px;
border: none;
border-radius: 6px;
background: transparent;
color: #c1cde0;
font-size: 13px;
cursor: pointer;
}
.header-menu__item:hover {
background: rgba(61, 130, 247, 0.14);
color: #dce8ff;
}
.header-menu__item--active {
background: rgba(61, 130, 247, 0.22);
color: #dce8ff;
}
.app-main button,
.app-main select,
.app-main input,
.app-main textarea {
border: 1px solid #cbd5e1;
background: #fff;
color: #1f2937;
border-radius: 6px;
padding: 8px 10px;
}
button,
select,
input,
textarea {
border: 1px solid #cbd5e1;
background: #fff;
color: #1f2937;
border-radius: 6px;
padding: 8px 10px;
}
textarea {
width: 100%;
resize: vertical;
}
button {
cursor: pointer;
}
.cards {
display: grid;
grid-template-columns: repeat(3, minmax(220px, 1fr));
gap: 12px;
margin-bottom: 12px;
}
.app-main .card,
.app-main .panel {
border: 1px solid #e2e8f0;
background: #fff;
border-radius: 8px;
padding: 14px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.card,
.panel {
border: 1px solid #e2e8f0;
background: #fff;
border-radius: 8px;
padding: 14px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.card h3,
.panel h2 {
margin: 0 0 10px;
font-size: 16px;
}
.card__section-title {
margin: 14px 0 8px;
font-size: 14px;
font-weight: 600;
}
.card input:not([type="checkbox"]):not([type="radio"]),
.card select,
.card textarea {
width: 100%;
margin-bottom: 8px;
}
.card input[type="checkbox"],
.card input[type="radio"] {
width: auto;
margin-bottom: 0;
flex: 0 0 auto;
}
.pager input,
.pager select {
width: auto;
margin-bottom: 0;
}
.actions-row {
margin-top: 8px;
}
.actions-row--inline {
display: flex;
gap: 8px;
flex-wrap: nowrap;
overflow-x: auto;
}
.card--full {
grid-column: 1 / -1;
}
.filter-inline {
display: grid;
grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) 180px;
gap: 8px;
align-items: center;
}
.filter-inline input,
.filter-inline select {
width: 100%;
margin-bottom: 0;
}
a {
color: #1565c0;
text-decoration: none;
}
.muted {
color: #64748b;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
border-bottom: 1px solid #e2e8f0;
padding: 8px;
text-align: left;
font-size: 13px;
vertical-align: top;
color: #334155;
}
th {
color: #64748b;
font-weight: 600;
}
.split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
pre {
white-space: pre-wrap;
margin: 0;
background: #091425;
border: 1px solid #223651;
border-radius: 8px;
padding: 10px;
}
.ws-log-panel {
margin-top: 12px;
max-height: 240px;
overflow-y: auto;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 8px 10px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
line-height: 1.45;
}
.ws-log-line {
padding: 3px 0;
border-bottom: 1px solid #e8edf3;
word-break: break-word;
}
.ws-log-line:last-child {
border-bottom: none;
}
.ws-log-line--error {
color: #c62828;
}
.ws-log-line--warning {
color: #e65100;
}
.ws-log-line--info {
color: #475569;
}
.ws-log-ts {
color: #94a3b8;
margin-right: 8px;
}
.pill {
margin-top: 8px;
padding: 6px 10px;
border-radius: 6px;
width: fit-content;
font-size: 12px;
background: #f1f5f9;
color: #334155;
border: 1px solid #e2e8f0;
}
.pill--high {
background: #ffebee;
border-color: #ffcdd2;
color: #b71c1c;
}
.pill--medium {
background: #fff8e1;
border-color: #ffe082;
color: #e65100;
}
.pill--low {
background: #e8f5e9;
border-color: #c8e6c9;
color: #2e7d32;
}
.link-btn {
border: none;
background: transparent;
color: #1565c0;
padding: 0;
cursor: pointer;
}
.link-btn--danger {
color: #c62828;
}
.link-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.table-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.status {
margin-top: 12px;
color: #9db2cf;
font-size: 12px;
}
.app-main .conn-pill:not(.conn-pill--on-brand) {
font-size: 12px;
border: 1px solid #cbd5e1;
border-radius: 999px;
padding: 4px 10px;
background: #f8fafc;
color: #475569;
}
.conn-pill {
font-size: 12px;
border: 1px solid #cbd5e1;
border-radius: 999px;
padding: 4px 10px;
background: #f8fafc;
}
.conn-pill--up {
border-color: #a5d6a7;
color: #2e7d32;
background: #e8f5e9;
}
.conn-pill--down {
border-color: #ef9a9a;
color: #c62828;
background: #ffebee;
}
.conn-pill--unknown {
border-color: #cbd5e1;
color: #64748b;
}
.toast {
position: fixed;
right: 20px;
bottom: 20px;
padding: 12px 16px;
border-radius: 8px;
border: 1px solid #cbd5e1;
background: #fff;
color: #1e293b;
font-size: 14px;
line-height: 1.45;
z-index: 60;
max-width: 420px;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.toast--ok {
border-color: #81c784;
background: #e8f5e9;
color: #1b5e20;
}
.toast--error {
border-color: #ef9a9a;
background: #ffebee;
color: #b71c1c;
}
.inline-spinner {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 8px;
border: 2px solid rgba(255, 255, 255, 0.22);
border-top-color: rgba(255, 255, 255, 0.85);
border-radius: 50%;
vertical-align: -2px;
animation: inline-spin 0.65s linear infinite;
}
@keyframes inline-spin {
to {
transform: rotate(360deg);
}
}
.conn-pill--warn {
border-color: #ffe082;
color: #e65100;
background: #fff8e1;
}
.app-main .inline-spinner {
border-color: rgba(21, 101, 192, 0.2);
border-top-color: #1565c0;
}
.skeleton-line {
height: 32px;
border-radius: 8px;
margin-bottom: 10px;
background: linear-gradient(90deg, #14253e 25%, #1d3558 50%, #14253e 75%);
background-size: 200% 100%;
animation: shimmer 1.4s infinite;
}
.mini-chart {
margin-top: 10px;
}
.mini-chart__row {
display: grid;
grid-template-columns: 70px 1fr 36px;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}
.mini-chart__label,
.mini-chart__value {
font-size: 12px;
color: #a8bad5;
}
.card-title-with-hint {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
}
.help-hint {
position: relative;
display: inline-flex;
vertical-align: middle;
}
.app-main .help-hint__trigger,
.help-hint__trigger {
width: auto;
height: auto;
min-width: 0;
padding: 0 2px;
border: none;
border-radius: 0;
background: transparent;
box-shadow: none;
color: #64748b;
font-size: 13px;
font-weight: 700;
line-height: 1;
cursor: pointer;
}
.app-main .help-hint__trigger:hover,
.app-main .help-hint__trigger:focus-visible,
.help-hint__trigger:hover,
.help-hint__trigger:focus-visible {
border: none;
background: transparent;
box-shadow: none;
color: #1565c0;
outline: none;
}
.help-hint__popover {
position: absolute;
top: calc(100% + 6px);
left: 0;
z-index: 40;
width: min(360px, 80vw);
padding: 10px 12px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #fff;
color: #334155;
font-size: 13px;
font-weight: 400;
line-height: 1.45;
white-space: pre-line;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.help-hint--align-end .help-hint__popover {
left: auto;
right: 0;
}
.help-hint__popover--portal {
z-index: 2000;
width: auto;
}
.help-hint__popover--nowrap {
width: max-content;
max-width: min(90vw, 720px);
white-space: nowrap;
}
.panel__toolbar-end {
margin-left: auto;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
}
.stat-card {
border: 1px solid var(--border, #e2e8f0);
border-radius: 8px;
padding: 12px 14px;
background: var(--panel-bg, #fff);
}
.stat-card strong {
display: block;
margin-top: 4px;
font-size: 1.05rem;
}
.btn-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.btn-primary {
background: #2563eb;
color: #fff;
border-color: #1d4ed8;
}
.btn-primary:disabled {
opacity: 0.55;
}
.data-table {
width: 100%;
}
.config-sync-policy-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px 16px;
}
.config-sync-policy-check {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0;
font-size: 13px;
color: #334155;
white-space: nowrap;
cursor: pointer;
}
.config-sync-policy-check input {
width: 14px;
height: 14px;
margin: 0;
flex-shrink: 0;
}
.config-sync-policy-field {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0;
font-size: 13px;
color: #334155;
white-space: nowrap;
}
.config-sync-policy-field input[type="number"] {
width: 64px;
margin: 0;
}
.config-sync-policy-field select {
width: auto;
min-width: 110px;
margin: 0;
}
.ne-stats-card {
padding: 12px 14px;
}
.ne-stats-card__header {
display: flex;
align-items: center;
gap: 12px;
justify-content: space-between;
margin-bottom: 10px;
}
.ne-stats-card__header-left {
display: flex;
align-items: center;
gap: 10px;
}
.ne-stats-card__header-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.ne-stats-card__title {
font-size: 15px;
font-weight: 600;
color: #1e293b;
}
.ne-stats-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 9px;
border-radius: 999px;
font-size: 12px;
font-weight: 500;
}
.ne-stats-pill--pass { background: #dcfce7; color: #166534; }
.ne-stats-pill--fail { background: #fee2e2; color: #991b1b; }
.ne-stats-pill--testing{ background: #fef9c3; color: #854d0e; }
.ne-stats-pill--unknown{ background: #f1f5f9; color: #475569; }
.ne-stats-card__actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.ne-stats-card__tag-select {
height: 32px;
font-size: 13px;
padding: 0 8px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
min-width: 150px;
}
.ne-stats-card__loading {
color: #94a3b8;
font-size: 13px;
margin: 0;
}
.ne-stats-card__tag-cards {
width: 100%;
display: grid;
grid-template-columns: repeat(4, minmax(190px, 1fr));
gap: 10px;
}
.ne-tag-card {
border: 1px solid #e2e8f0;
border-radius: 10px;
background: #f8fafc;
padding: 10px 10px;
}
.ne-tag-card__title {
font-size: 13px;
font-weight: 600;
color: #0f172a;
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ne-tag-card__total {
font-size: 12px;
color: #64748b;
margin-bottom: 8px;
}
.ne-tag-card__pills {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.mini-chart__bar-wrap {
height: 10px;
border-radius: 999px;
background: #10213a;
border: 1px solid #223651;
overflow: hidden;
}
.mini-chart__bar {
height: 100%;
background: linear-gradient(90deg, #3973d2, #5aa1ff);
}
.pager {
margin-top: 12px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.pager__meta {
color: #9db2cf;
font-size: 12px;
}
.pager__controls {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: nowrap;
}
.pager__btn,
.pager__num {
min-width: 34px;
padding: 6px 10px;
}
.pager__num.active {
border-color: #4f7ec7;
background: rgba(61, 130, 247, 0.24);
color: #dce8ff;
}
.pager__size {
width: auto;
min-width: 88px;
}
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.page-stack {
display: flex;
flex-direction: column;
gap: 12px;
}
.page-stack > .cards {
margin-bottom: 0;
}
.panel--warn {
border-color: #ffe082;
background: #fff8e1;
color: #5d4037;
}
.panel__toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.panel__toolbar h2,
.panel__toolbar h3 {
margin: 0;
}
.panel__actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.btn--danger {
color: #b71c1c;
border-color: #ef9a9a;
background: #ffebee;
}
.btn--danger:hover:not(:disabled) {
background: #ffcdd2;
}
.btn--danger:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.table-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 50;
background: rgba(15, 23, 42, 0.45);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.modal {
width: min(720px, 100%);
max-height: 90vh;
overflow: auto;
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}
.modal--wide {
width: min(920px, 100%);
}
.connect-detail-summary {
margin-left: 8px;
color: #64748b;
font-size: 13px;
}
.connect-log {
margin: 12px 0 0;
padding: 12px;
max-height: min(52vh, 480px);
overflow: auto;
background: #0f172a;
color: #e2e8f0;
border-radius: 8px;
font-size: 12px;
line-height: 1.45;
white-space: pre-wrap;
word-break: break-word;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.modal h3 {
margin: 0 0 16px;
}
.modal__actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
.cli-connect-panel {
width: 100%;
text-align: left;
}
.cli-connect-panel .form-grid,
.cli-connect-panel .form-fieldset {
width: 100%;
max-width: none;
}
.cli-connect-panel .form-grid label:not(.form-check) {
align-items: stretch;
text-align: left;
}
.cli-connect-panel .form-label {
display: block;
margin: 0;
text-align: left;
}
.cli-connect-panel .form-grid input,
.cli-connect-panel .form-grid select,
.cli-connect-panel .form-fieldset input,
.cli-connect-panel .form-fieldset select {
width: 100%;
margin: 0;
text-align: left;
}
.cli-connect-panel .form-fieldset {
text-align: left;
width: 100%;
min-width: 0;
min-inline-size: 0;
}
.cli-connect-panel .hop-proxy-fields,
.cli-connect-panel .hop-proxy-fields .form-grid {
width: 100%;
}
.cli-connect-panel .hop-proxy-fields .form-grid label {
align-items: flex-start;
justify-content: flex-start;
text-align: left;
width: 100%;
}
.cli-connect-panel .hop-proxy-fields .form-grid select,
.cli-connect-panel .hop-proxy-fields .form-grid input {
display: block;
width: 100%;
max-width: 100%;
margin: 0;
box-sizing: border-box;
text-align: left;
text-align-last: left;
}
.cli-connect-panel .hop-proxy-fields .form-field-hint {
text-align: left;
}
.cli-connect-panel .form-fieldset legend {
margin: 0 0 8px;
padding: 0 6px;
text-align: left;
}
.cli-connect-panel .form-check {
display: flex;
flex-direction: row;
align-items: center;
width: fit-content;
max-width: 100%;
}
.card .cli-connect-panel input,
.card .cli-connect-panel select,
.card .cli-connect-panel textarea {
margin-bottom: 0;
}
.cli-connect-test-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.cli-connect-test-row input {
flex: 1 1 320px;
min-width: 240px;
margin-bottom: 0;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.form-hint {
margin: 0 0 12px;
font-size: 12px;
color: #64748b;
}
.form-label__required {
color: #c62828;
font-weight: 600;
}
.form-label__optional {
color: #94a3b8;
font-weight: 400;
}
.form-field-hint {
font-size: 11px;
color: #94a3b8;
line-height: 1.35;
}
.form-label {
display: block;
margin: 0;
font-size: 12px;
color: #64748b;
text-align: left;
}
.form-grid label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: #64748b;
}
.form-grid input,
.form-grid select {
font-size: 14px;
}
.form-grid__full {
grid-column: 1 / -1;
}
.form-fieldset {
margin-top: 16px;
padding: 12px;
border: 1px solid #e2e8f0;
border-radius: 8px;
}
.form-fieldset legend,
.form-fieldset__title {
padding: 0 6px;
font-size: 13px;
font-weight: 600;
color: #334155;
}
.form-fieldset__title {
display: block;
margin: 0 0 10px;
padding: 0;
text-align: left;
}
.form-check {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
margin-bottom: 12px;
font-size: 13px;
color: #334155;
width: fit-content;
max-width: 100%;
}
.form-check__text {
white-space: nowrap;
line-height: 1.4;
}
/* form-grid labels are column layout; checkbox rows must stay horizontal */
.form-grid label.form-check {
flex-direction: row;
align-items: center;
width: fit-content;
max-width: 100%;
}
.table-tag {
display: inline-block;
margin-left: 6px;
padding: 1px 6px;
border-radius: 4px;
font-size: 11px;
background: #e0f2fe;
color: #0369a1;
}
.form-grid--single {
grid-template-columns: 1fr;
}
.panel__hint {
margin: 0 0 12px;
font-size: 13px;
color: #64748b;
line-height: 1.45;
}
.panel__hint--live {
color: #1565c0;
}
.collect-commands {
width: 100%;
min-height: 160px;
font-family: ui-monospace, Consolas, monospace;
font-size: 13px;
line-height: 1.4;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 6px;
resize: vertical;
}
.collect-meta {
font-size: 13px;
color: #64748b;
margin-right: auto;
}
.collect-create-panel__head {
margin-bottom: 0;
}
.collect-create-panel--collapsed {
padding-bottom: 16px;
}
.collect-create-panel h3 {
margin: 0;
font-size: 15px;
font-weight: 600;
color: #334155;
}
.collect-selected-block,
.collect-pick-block {
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid #e2e8f0;
}
.collect-selected-block__head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px 16px;
margin-bottom: 10px;
}
.collect-selected-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 220px;
overflow: auto;
padding: 4px 0;
}
.collect-selected-chip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
}
.collect-selected-chip__main {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.collect-selected-chip__meta {
font-size: 12px;
color: #64748b;
}
.collect-pick-filters {
margin-bottom: 12px;
}
.collect-cmd-preview {
font-size: 12px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 10px;
max-height: 120px;
overflow: auto;
white-space: pre-wrap;
}
.collect-runs-panel {
display: flex;
flex-direction: column;
gap: 10px;
}
.collect-runs-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
}
.collect-runs-filter {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #475569;
}
.collect-runs-filter select {
min-width: 140px;
padding: 6px 8px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
}
.collect-runs-filter input {
min-width: 180px;
padding: 6px 8px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
}
.collect-run-message {
max-width: 420px;
max-height: 160px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-size: 12px;
line-height: 1.45;
color: #334155;
padding: 6px 8px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
}
.webcrt-page {
min-height: calc(100vh - 120px);
}
.webcrt-session-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 8px;
font-size: 13px;
color: #334155;
}
.webcrt-term-panel {
padding: 0;
overflow: hidden;
min-height: 420px;
flex: 1;
}
.webcrt-term {
width: 100%;
height: 100%;
min-height: 240px;
background: #0f172a;
padding: 8px;
box-sizing: border-box;
}
.webcrt-term .xterm {
height: 100%;
}
.webcrt-term .xterm-viewport {
overflow-y: auto !important;
}
.webcrt-shell {
display: grid;
grid-template-columns: 280px 1fr;
height: calc(100vh - 56px);
min-height: 480px;
margin: -20px -28px -32px;
background: #c0c0c0;
border: 1px solid #808080;
overflow: hidden;
}
.webcrt-sidebar {
display: flex;
flex-direction: column;
background: #f0f0f0;
border-right: 1px solid #808080;
min-width: 0;
min-height: 0; /* grid/flex: allow tree to shrink and scroll */
overflow: hidden;
height: 100%;
}
.webcrt-sidebar__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 8px 6px 10px;
background: linear-gradient(#f8f8f8, #e4e4e4);
border-bottom: 1px solid #b0b0b0;
flex-shrink: 0;
}
.webcrt-sidebar__title {
font-size: 13px;
font-weight: 600;
color: #1e293b;
line-height: 1.2;
}
.webcrt-sidebar__toolbar {
display: none;
}
.webcrt-sidebar__search {
padding: 6px;
border-bottom: 1px solid #d0d0d0;
flex-shrink: 0;
}
.webcrt-sidebar__search input {
width: 100%;
box-sizing: border-box;
height: 28px;
padding: 0 8px;
border: 1px solid #a8a8a8;
border-radius: 2px;
font-size: 12px;
}
.webcrt-source-tabs {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
border-bottom: 1px solid #c8c8c8;
flex-shrink: 0;
}
.webcrt-source-tabs__btn {
height: 26px;
border: 0;
border-right: 1px solid #c8c8c8;
background: #e8e8e8;
font-size: 12px;
cursor: pointer;
}
.webcrt-source-tabs__btn:last-child {
border-right: 0;
}
.webcrt-source-tabs__btn.is-active {
background: #fff;
font-weight: 600;
}
.webcrt-tree {
flex: 1 1 auto;
overflow-x: hidden;
overflow-y: auto;
background: #fff;
min-height: 0;
overscroll-behavior: contain;
}
.webcrt-tree__folder {
padding: 6px 8px;
font-size: 12px;
font-weight: 600;
color: #334155;
}
.webcrt-tree__empty {
padding: 10px 12px;
font-size: 12px;
color: #64748b;
}
.webcrt-tree__list {
list-style: none;
margin: 0;
padding: 0 0 8px;
}
.webcrt-tree__item {
width: 100%;
display: flex;
align-items: flex-start;
gap: 6px;
padding: 4px 8px 4px 18px;
border: 0;
background: transparent;
text-align: left;
cursor: pointer;
font-size: 12px;
}
.webcrt-tree__item:hover {
background: #f1f5f9;
}
.webcrt-tree__item.is-selected,
.webcrt-tree__item.is-active {
background: #cde8ff;
}
.webcrt-tree__icon {
color: #2563eb;
line-height: 1.2;
}
.webcrt-tree__label {
display: flex;
flex-direction: column;
min-width: 0;
}
.webcrt-tree__name {
color: #0f172a;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.webcrt-tree__meta {
color: #64748b;
font-size: 11px;
}
.webcrt-sidebar__pager {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
padding: 4px 8px;
border-top: 1px solid #c8c8c8;
background: #ececec;
font-size: 11px;
color: #475569;
flex-shrink: 0;
}
.webcrt-sidebar__pager-btns {
display: flex;
gap: 2px;
}
.app-main .webcrt-sidebar__pager-btns button,
.webcrt-sidebar__pager-btns button {
width: 22px;
height: 20px;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: #334155;
cursor: pointer;
line-height: 1;
font-size: 16px;
}
.app-main .webcrt-sidebar__pager-btns button:disabled,
.webcrt-sidebar__pager-btns button:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.webcrt-sidebar__footer {
display: flex;
border-top: 1px solid #a8a8a8;
background: #ddd;
flex-shrink: 0;
}
.webcrt-sidebar__footer button {
flex: 1;
height: 28px;
border: 0;
border-right: 1px solid #b8b8b8;
background: transparent;
font-size: 12px;
}
.webcrt-sidebar__footer button.is-active {
background: #fff;
font-weight: 600;
}
.webcrt-main {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
height: 100%;
overflow: hidden;
background: #808080;
}
.webcrt-tabs {
display: flex;
gap: 1px;
overflow-x: auto;
background: #6e6e6e;
border-bottom: 1px solid #505050;
min-height: 28px;
flex-shrink: 0;
}
.webcrt-tabs__item {
display: inline-flex;
align-items: center;
gap: 2px;
padding: 4px 8px;
background: #cfcfcf;
color: #1e293b;
font-size: 12px;
cursor: pointer;
white-space: nowrap;
}
.webcrt-tabs__item.is-active {
background: #f3f3f3;
font-weight: 600;
}
/* span close mark — avoid global `button` border/padding chrome */
.webcrt-tabs__close {
display: inline;
margin: 0;
padding: 0;
border: none;
background: none;
box-shadow: none;
outline: none;
cursor: pointer;
font: inherit;
font-weight: inherit;
line-height: inherit;
color: inherit;
opacity: 0.4;
}
.webcrt-tabs__close::before {
content: " ";
}
.webcrt-tabs__item:hover .webcrt-tabs__close,
.webcrt-tabs__close:hover {
opacity: 0.75;
}
.webcrt-tabs__close:focus-visible {
opacity: 1;
text-decoration: underline;
}
.webcrt-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 6px 8px;
background: #f3f4f6;
border-bottom: 1px solid #d1d5db;
flex-shrink: 0;
}
.webcrt-action-btn {
display: inline-flex;
align-items: center;
gap: 5px;
height: 28px;
padding: 0 10px;
border: 1px solid #c0c0c0;
border-radius: 3px;
background: #fff;
color: #1e293b;
font-size: 12px;
cursor: pointer;
}
.webcrt-action-btn:hover {
background: #f8fafc;
}
.webcrt-action-btn.is-active {
background: #dbeafe;
border-color: #93c5fd;
color: #1d4ed8;
}
.webcrt-main__body {
flex: 1;
min-height: 0;
position: relative;
background: #0f172a;
}
.webcrt-main__pane {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
}
.webcrt-main__pane[hidden] {
display: none !important;
}
.webcrt-main__pane .webcrt-term {
flex: 1;
width: 100%;
height: auto !important;
min-height: 240px !important;
}
.webcrt-main__empty,
.webcrt-main__placeholder {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
color: #e2e8f0;
background: #6b7280;
text-align: center;
padding: 24px;
}
.webcrt-main__placeholder--error {
color: #fecaca;
}
.webcrt-error-detail {
margin: 8px 0 0;
max-width: 80%;
white-space: pre-wrap;
word-break: break-word;
font-size: 12px;
color: #fee2e2;
text-align: left;
}
.webcrt-statusline {
display: none;
}
@media (max-width: 900px) {
.webcrt-shell {
grid-template-columns: 1fr;
height: auto;
min-height: calc(100vh - 64px);
}
.webcrt-sidebar {
max-height: 42vh;
}
.webcrt-main {
min-height: 50vh;
}
}
@media (max-width: 1200px) {
.cards {
grid-template-columns: 1fr;
}
.filter-inline {
grid-template-columns: 1fr;
}
.actions-row--inline {
flex-wrap: wrap;
}
.split {
grid-template-columns: 1fr;
}
.form-grid {
grid-template-columns: 1fr;
}
}
/* ---- Topology ---- */
.topo-page {
display: grid;
grid-template-columns: 280px 1fr;
gap: 12px;
height: calc(100vh - 72px);
min-height: 520px;
padding: 12px 16px 16px;
transition: grid-template-columns 0.18s ease;
}
.topo-page.is-sidebar-collapsed {
grid-template-columns: 40px 1fr;
}
.topo-sidebar {
display: flex;
flex-direction: column;
gap: 12px;
min-height: 0;
background: #fff;
border: 1px solid #dbe3ee;
border-radius: 10px;
padding: 12px;
overflow: hidden;
}
.topo-page.is-sidebar-collapsed .topo-sidebar {
padding: 6px;
align-items: stretch;
}
.topo-sidebar__rail {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 10px;
width: 100%;
border: 0;
background: transparent;
padding: 8px 0;
cursor: pointer;
color: #475569;
border-radius: 8px;
}
.topo-sidebar__rail:hover {
background: #f1f5f9;
color: #0f172a;
}
.topo-sidebar__rail-icon {
font-size: 18px;
line-height: 1;
font-weight: 600;
}
.topo-sidebar__rail-label {
writing-mode: vertical-rl;
text-orientation: mixed;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.06em;
}
.topo-sidebar__section {
display: flex;
flex-direction: column;
gap: 8px;
min-height: 0;
min-width: 0;
}
.topo-sidebar__section--grow {
flex: 1;
}
.topo-sidebar__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.topo-sidebar__head-actions {
display: flex;
align-items: center;
gap: 4px;
}
.topo-palette-source {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
padding: 2px;
background: #f1f5f9;
border-radius: 8px;
}
.topo-palette-source__btn {
border: 0;
background: transparent;
border-radius: 6px;
padding: 6px 8px;
font-size: 12px;
font-weight: 600;
color: #64748b;
cursor: pointer;
}
.topo-palette-source__btn.is-active {
background: #fff;
color: #0f172a;
box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
}
.topo-map-list,
.topo-palette {
list-style: none;
margin: 0;
padding: 0;
overflow: auto;
flex: 1;
min-width: 0;
}
.topo-map-list li,
.topo-palette > li {
margin: 0 0 6px;
width: 100%;
min-width: 0;
}
.topo-map-list li:last-child,
.topo-palette > li:last-child {
margin-bottom: 0;
}
.topo-map-list__row,
.topo-palette__row {
display: flex;
align-items: stretch;
width: 100%;
box-sizing: border-box;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #fff;
overflow: hidden;
min-width: 0;
}
.topo-map-list li.is-active .topo-map-list__row {
border-color: #93c5fd;
background: #e8f1fb;
}
.topo-palette > li.is-on-canvas .topo-palette__row {
background: #f8fafc;
border-color: #e2e8f0;
}
.topo-map-list__item,
.topo-palette__item {
display: block;
flex: 1 1 auto;
width: 100%;
max-width: 100%;
text-align: left;
border: 0;
background: transparent;
padding: 8px 10px;
cursor: pointer;
border-radius: 0;
min-width: 0;
box-sizing: border-box;
}
.app-main .topo-map-list__item,
.app-main .topo-map-list__icon,
.app-main .topo-palette__item {
border: none;
background: transparent;
border-radius: 0;
box-shadow: none;
width: auto;
}
.app-main .topo-map-list__item,
.app-main .topo-palette__item {
display: block;
width: 100%;
padding: 8px 10px;
}
.app-main .topo-map-list__icon {
width: 32px;
height: auto;
padding: 0;
color: #64748b;
font-size: 14px;
line-height: 1;
}
.topo-map-list__item:hover,
.topo-palette__item:hover:not(:disabled) {
background: #f1f5f9;
}
.topo-map-list li.is-active .topo-map-list__item:hover {
background: #dbeafe;
}
.topo-map-list__actions {
display: flex;
align-items: stretch;
flex: 0 0 auto;
border-left: 1px solid #e2e8f0;
}
.topo-map-list li.is-active .topo-map-list__actions {
border-left-color: #bfdbfe;
}
.topo-map-list__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
min-height: 100%;
border: 0;
background: transparent;
color: #64748b;
cursor: pointer;
}
.topo-map-list__icon:hover:not(:disabled) {
background: #f1f5f9;
color: #0f172a;
}
.topo-map-list__icon:disabled {
opacity: 0.45;
cursor: default;
}
.topo-palette__item:disabled {
opacity: 0.55;
cursor: default;
}
.topo-palette__empty {
padding: 8px;
box-sizing: border-box;
width: 100%;
}
.topo-map-list__name,
.topo-palette__name {
display: block;
font-weight: 600;
color: #0f172a;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.topo-map-list__meta,
.topo-palette__meta {
display: block;
font-size: 12px;
color: #64748b;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.topo-main {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
background: #fff;
border: 1px solid #dbe3ee;
border-radius: 10px;
overflow: hidden;
}
.topo-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 12px;
border-bottom: 1px solid #e2e8f0;
flex-wrap: nowrap;
}
.topo-toolbar__left {
display: flex;
flex-direction: row;
align-items: center;
gap: 6px;
min-width: 0;
flex: 1 1 auto;
}
.topo-toolbar__title {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.topo-toolbar__title strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.topo-toolbar__actions {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 8px;
flex: 0 0 auto;
}
.topo-display-toggles {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 10px;
margin-right: 4px;
font-size: 12px;
color: #475569;
}
.topo-display-toggles__item {
display: inline-flex;
align-items: center;
gap: 4px;
cursor: pointer;
user-select: none;
white-space: nowrap;
}
.topo-ctx {
position: fixed;
z-index: 40;
min-width: 168px;
padding: 4px 0;
margin: 0;
list-style: none;
background: #0f172a;
color: #e2e8f0;
border: 1px solid #334155;
border-radius: 8px;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}
/* Beat .app-main button { color:#1f2937; background:#fff } so hover stays readable. */
.app-main .topo-ctx__item,
.topo-ctx__item {
display: block;
width: 100%;
padding: 8px 14px;
border: 0;
border-radius: 0;
background: transparent;
color: #e2e8f0;
text-align: left;
font: inherit;
cursor: pointer;
}
.app-main .topo-ctx__item:hover:not(:disabled),
.app-main .topo-ctx__item:focus-visible:not(:disabled),
.topo-ctx__item:hover:not(:disabled),
.topo-ctx__item:focus-visible:not(:disabled) {
background: #1e293b;
color: #f8fafc;
}
.app-main .topo-ctx__item:disabled,
.topo-ctx__item:disabled {
opacity: 0.45;
cursor: not-allowed;
color: #94a3b8;
}
.app-main .topo-ctx__item--danger,
.topo-ctx__item--danger {
color: #fca5a5;
}
.app-main .topo-ctx__item--danger:hover:not(:disabled),
.app-main .topo-ctx__item--danger:focus-visible:not(:disabled),
.topo-ctx__item--danger:hover:not(:disabled),
.topo-ctx__item--danger:focus-visible:not(:disabled) {
background: #7f1d1d;
color: #fecaca;
}
.topo-ctx__sep {
height: 1px;
margin: 4px 0;
background: #334155;
}
.topo-discover {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 220px;
padding: 10px 12px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
overflow: hidden;
}
.topo-discover__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.topo-discover__summary {
margin: 0;
font-size: 13px;
color: #334155;
}
.topo-discover__error {
margin: 0;
font-size: 13px;
color: #b91c1c;
}
.topo-discover__list {
list-style: none;
margin: 0;
padding: 0;
overflow: auto;
flex: 1;
min-height: 0;
}
.topo-discover__list li {
padding: 8px;
border-radius: 8px;
margin-bottom: 4px;
background: #fff;
border: 1px solid #e2e8f0;
}
.topo-discover__list li.is-fail {
border-color: #fecaca;
background: #fff1f2;
}
.topo-discover__item-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-weight: 600;
color: #0f172a;
}
.topo-discover__badge {
font-size: 11px;
font-weight: 700;
color: #166534;
}
.topo-discover__list li.is-fail .topo-discover__badge {
color: #b91c1c;
}
.topo-discover__item-meta,
.topo-discover__item-cmd {
margin-top: 2px;
font-size: 12px;
color: #64748b;
}
.topo-discover__item-cmd {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.topo-canvas {
position: relative;
flex: 1;
min-height: 0;
background: #fff;
}
.topo-canvas:fullscreen,
.topo-canvas.is-fullscreen:fullscreen {
width: 100vw;
height: 100vh;
background: #fff;
}
/* Place fullscreen above zoom-in (+); Controls renders custom children last. */
.topo-canvas .react-flow__controls {
display: flex;
flex-direction: column;
}
.topo-canvas .react-flow__controls-button.topo-fs-control {
order: -1;
}
.topo-canvas .react-flow__controls-button.topo-fs-control svg {
max-width: 14px;
max-height: 14px;
}
.topo-canvas__empty {
display: grid;
place-items: center;
height: 100%;
color: #64748b;
}
.topo-node {
min-width: 72px;
max-width: 160px;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
font-size: 11px;
text-align: center;
/* Default asset is blue (= ZTE). */
--topo-vendor: #0277bd;
--topo-icon-filter: none;
}
.topo-node--cisco {
--topo-vendor: #1d4ed8;
--topo-icon-filter: hue-rotate(-8deg) saturate(1.15);
}
.topo-node--huawei {
--topo-vendor: #c62828;
--topo-icon-filter: hue-rotate(155deg) saturate(1.35);
}
.topo-node--zte {
--topo-vendor: #0277bd;
--topo-icon-filter: none;
}
.topo-node--juniper {
--topo-vendor: #2e7d32;
--topo-icon-filter: hue-rotate(95deg) saturate(1.2);
}
.topo-node--nokia {
--topo-vendor: #00838f;
--topo-icon-filter: hue-rotate(-28deg) saturate(1.1) brightness(0.98);
}
.topo-node--ericsson {
--topo-vendor: #f9a825;
--topo-icon-filter: hue-rotate(175deg) saturate(1.45) brightness(1.05);
}
.topo-node--h3c {
--topo-vendor: #ef6c00;
--topo-icon-filter: hue-rotate(165deg) saturate(1.4);
}
.topo-node--other {
--topo-vendor: #546e7a;
--topo-icon-filter: grayscale(0.85) brightness(0.95);
}
.topo-node__glyph {
position: relative;
width: 56px;
height: 56px;
margin: 0 auto;
}
.topo-node__handle {
width: 12px !important;
height: 12px !important;
min-width: 12px !important;
min-height: 12px !important;
background: transparent !important;
border: 0 !important;
opacity: 0;
}
.topo-node__handle--center {
left: 50% !important;
top: 50% !important;
right: auto !important;
bottom: auto !important;
transform: translate(-50%, -50%) !important;
}
.topo-node.is-selected .topo-node__glyph {
outline: 2px solid #2563eb;
outline-offset: 5px;
border-radius: 999px;
}
.topo-node.is-selected .topo-node__icon {
transform: scale(1.08);
filter: var(--topo-icon-filter, none) drop-shadow(0 0 8px rgba(37, 99, 235, 0.55));
}
.topo-node.is-selected .topo-node__caption {
color: #1d4ed8;
font-weight: 700;
}
.topo-node__icon {
display: block;
width: 56px;
height: 56px;
margin: 0;
object-fit: contain;
pointer-events: none;
user-select: none;
filter: var(--topo-icon-filter, none);
transition: transform 0.12s ease, filter 0.12s ease;
}
/* Same plain-text style as edge port labels */
.topo-node__caption {
margin-top: 2px;
color: #475569;
line-height: 1.25;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}
.react-flow__edge-textbg {
fill: #ffffff;
}
.react-flow__edge-text {
fill: #475569;
font-size: 11px;
}
@media (max-width: 960px) {
.topo-page,
.topo-page.is-sidebar-collapsed {
grid-template-columns: 1fr;
height: auto;
}
.topo-sidebar {
max-height: 40vh;
}
.topo-page.is-sidebar-collapsed .topo-sidebar {
max-height: none;
min-height: 40px;
}
.topo-sidebar__rail {
flex-direction: row;
justify-content: center;
padding: 6px 8px;
}
.topo-sidebar__rail-label {
writing-mode: horizontal-tb;
}
.topo-canvas {
min-height: 420px;
}
}
.login-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background:
radial-gradient(ellipse at 20% 20%, rgba(33, 150, 243, 0.18), transparent 55%),
radial-gradient(ellipse at 80% 0%, rgba(21, 101, 192, 0.2), transparent 45%),
#eef2f7;
}
.login-card {
width: min(400px, 100%);
padding: 28px 28px 24px;
background: #fff;
border: 1px solid #d8dee8;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
display: flex;
flex-direction: column;
gap: 12px;
}
.login-card__brand {
font-size: 22px;
font-weight: 700;
color: #1565c0;
letter-spacing: 0.02em;
}
.login-card__title {
margin: 0;
font-size: 20px;
color: #0f172a;
}
.login-card__hint {
margin: 0;
color: #64748b;
font-size: 13px;
}
.login-card__label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
color: #334155;
}
.login-card__label input {
height: 36px;
padding: 0 10px;
}
.login-card__error {
color: #b91c1c;
font-size: 13px;
}
.login-card__submit {
margin-top: 4px;
height: 38px;
border: 0;
border-radius: 6px;
background: #1565c0;
color: #fff;
font-weight: 600;
}
.login-card__submit:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* —— Network Management shell (left nav + main) —— */
.network-shell {
display: flex;
height: calc(100vh - 56px);
min-height: 480px;
margin: -20px -28px -32px;
background: #e8edf3;
overflow: hidden;
}
.network-nav {
width: 220px;
flex-shrink: 0;
display: flex;
flex-direction: column;
background: #f7f9fc;
border-right: 1px solid #d0d7e2;
min-height: 0;
transition: width 0.18s ease;
}
.network-shell.is-nav-collapsed .network-nav {
width: 48px;
}
.network-nav__head {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 8px 8px 12px;
border-bottom: 1px solid #e2e8f0;
min-height: 44px;
}
.network-shell.is-nav-collapsed .network-nav__head {
justify-content: center;
padding: 10px 4px;
}
.network-nav__title {
flex: 1;
min-width: 0;
font-size: 13px;
font-weight: 700;
color: #0f172a;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.app-main .network-nav__collapse-btn,
.network-nav__collapse-btn {
flex-shrink: 0;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: 6px;
background: transparent;
color: #64748b;
cursor: pointer;
line-height: 1;
box-shadow: none;
}
.app-main .network-nav__collapse-btn:hover,
.network-nav__collapse-btn:hover {
background: #eef2f7;
color: #0f172a;
}
.network-nav__rail {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 10px 4px;
overflow: auto;
}
.network-nav__rail-link {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
text-decoration: none;
color: #475569;
font-size: 12px;
font-weight: 700;
background: transparent;
}
.network-nav__rail-link:hover {
background: #eef2f7;
color: #0f172a;
}
.network-nav__rail-link.is-active {
background: #e3effc;
color: #1565c0;
}
.network-nav__scroll {
flex: 1;
min-height: 0;
overflow: auto;
padding: 6px 0 16px;
}
.network-nav__group {
margin: 0;
}
.app-main .network-nav__group-toggle,
.network-nav__group-toggle {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 10px 12px;
border: 0;
border-radius: 0;
background: transparent;
color: #0f172a;
font-size: 13px;
font-weight: 600;
text-align: left;
cursor: pointer;
}
.app-main .network-nav__group-toggle:hover,
.network-nav__group-toggle:hover {
background: #eef2f7;
}
.network-nav__group.is-active-group .network-nav__group-toggle {
color: #1565c0;
}
.network-nav__chevron {
display: inline-block;
width: 1em;
color: #64748b;
font-size: 12px;
line-height: 1;
}
.network-nav__group-label {
flex: 1;
min-width: 0;
}
.network-nav__list {
list-style: none;
margin: 0;
padding: 0 0 6px;
}
.network-nav__link {
display: block;
padding: 7px 12px 7px 30px;
color: #334155;
text-decoration: none;
font-size: 13px;
border-left: 3px solid transparent;
}
.network-nav__link:hover {
background: #eef2f7;
color: #0f172a;
}
.network-nav__link.is-active {
background: #e3effc;
color: #1565c0;
border-left-color: #1565c0;
font-weight: 600;
}
.network-main {
flex: 1;
min-width: 0;
min-height: 0;
overflow: auto;
padding: 16px 20px 24px;
background: #eef2f7;
}
.network-main:has(.topo-page),
.network-main:has(.webcrt-shell) {
padding: 0;
overflow: hidden;
}
.network-main .topo-page,
.network-main .topo-page.is-sidebar-collapsed {
height: 100%;
margin: 0;
min-height: 0;
}
.network-main .webcrt-shell {
height: 100%;
margin: 0;
min-height: 0;
border: 0;
}
.network-placeholder h2 {
margin: 0 0 8px;
}
.network-placeholder__list {
margin: 12px 0 0;
padding-left: 1.25rem;
color: #475569;
line-height: 1.6;
}
/* Port traffic monitoring */
.pt-wizard__steps {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.pt-wizard__step {
border: 1px solid #cbd5e1;
background: #f8fafc;
color: #334155;
border-radius: 6px;
padding: 6px 10px;
font-size: 13px;
cursor: pointer;
}
.pt-wizard__step.is-active {
border-color: #0f766e;
background: #ccfbf1;
color: #115e59;
}
.pt-wizard__ne-block {
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #e2e8f0;
}
.pt-wizard__confirm-list {
margin: 8px 0 16px;
padding-left: 1.2rem;
max-height: 220px;
overflow: auto;
color: #334155;
}
.pt-wall-page__filters {
margin-bottom: 12px;
gap: 12px 18px;
align-items: flex-end;
}
.pt-wall-page__filters label {
display: inline-flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: #64748b;
}
.pt-wall-page__filters select {
min-width: 160px;
}
.pt-wall {
--pt-bg: #0b1220;
--pt-panel: #111827;
--pt-line: rgba(148, 163, 184, 0.22);
--pt-text: #e2e8f0;
--pt-muted: #94a3b8;
--pt-in: #2dd4bf;
--pt-out: #f59e0b;
background:
linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(11, 18, 32, 0.98)),
repeating-linear-gradient(
0deg,
transparent,
transparent 23px,
rgba(148, 163, 184, 0.05) 24px
),
repeating-linear-gradient(
90deg,
transparent,
transparent 23px,
rgba(148, 163, 184, 0.05) 24px
);
border: 1px solid #1f2937;
border-radius: 10px;
padding: 16px 18px 12px;
color: var(--pt-text);
}
.pt-wall__head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
margin-bottom: 14px;
}
.pt-wall__title {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.pt-wall__ne {
font-size: 13px;
color: var(--pt-muted);
}
.pt-wall__if {
font-size: 20px;
font-weight: 650;
letter-spacing: 0.02em;
font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}
.pt-wall__range {
font-size: 12px;
color: var(--pt-muted);
white-space: nowrap;
}
.pt-wall__kpis {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.pt-wall__kpi {
background: rgba(17, 24, 39, 0.72);
border: 1px solid var(--pt-line);
border-radius: 8px;
padding: 10px 12px;
}
.pt-wall__kpi-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--pt-muted);
margin-bottom: 4px;
}
.pt-wall__kpi-value {
font-size: 22px;
font-weight: 650;
font-variant-numeric: tabular-nums;
font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
line-height: 1.2;
}
.pt-wall__kpi--in .pt-wall__kpi-value {
color: var(--pt-in);
}
.pt-wall__kpi--out .pt-wall__kpi-value {
color: var(--pt-out);
}
.pt-wall__kpi-unit,
.pt-wall__kpi-sep {
margin-left: 4px;
font-size: 12px;
color: var(--pt-muted);
font-weight: 500;
}
.pt-wall__chart {
min-height: 260px;
width: 100%;
}
.pt-wall__chart .uplot,
.pt-wall__chart .u-wrap {
font-family: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}
.pt-wall__chart-wrap {
position: relative;
min-height: 260px;
width: 100%;
}
.pt-wall__tip {
position: absolute;
top: 0;
left: 0;
z-index: 5;
min-width: 150px;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid rgba(148, 163, 184, 0.35);
background: rgba(15, 23, 42, 0.94);
color: #e2e8f0;
font-size: 12px;
line-height: 1.45;
pointer-events: none;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pt-wall__tip-time {
margin-bottom: 6px;
color: #94a3b8;
font-variant-numeric: tabular-nums;
}
.pt-wall__tip-row {
display: flex;
justify-content: space-between;
gap: 12px;
font-variant-numeric: tabular-nums;
}
.pt-wall__tip-row--in strong {
color: #2dd4bf;
}
.pt-wall__tip-row--out strong {
color: #f59e0b;
}
.pt-wall__chart .u-legend {
color: var(--pt-muted);
}
.pt-wall__chart .u-legend .u-value {
font-variant-numeric: tabular-nums;
color: #e2e8f0;
}
.pt-wall__empty {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 16px 24px;
text-align: center;
line-height: 1.5;
color: var(--pt-muted);
background: rgba(11, 18, 32, 0.72);
border: 1px dashed rgba(148, 163, 184, 0.28);
border-radius: 8px;
pointer-events: none;
}
@media (max-width: 900px) {
.pt-wall__kpis {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}