/* ===================================================================== L2 Physical Topology page styles (light + dark, no external deps) ===================================================================== */ .l2-wrap { --bg: #f4f6f9; --panel: #ffffff; --panel-2: #fafbfd; --border: #e2e7ee; --text: #23272e; --muted: #7b8694; --brand: #2f6fdd; position: relative; display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 520px; box-sizing: border-box; padding: 4px 2px 4px; color: var(--text); } .l2-wrap.l2-dark { --bg: #0f1521; --panel: #161f2e; --panel-2: #1b2536; --border: #263143; --text: #dbe4f0; --muted: #8296ad; --brand: #4f8bf0; } /* toolbar */ .l2-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; padding: 8px 14px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px rgba(20,30,50,.05); } .tb-title { font-size: 16px; font-weight: 750; letter-spacing: .3px; margin-right: 6px; } .l2-muted { color: var(--muted); font-size: 12px; } .l2-spacer { flex: 1 1 auto; } .l2-search-wrap { position: relative; } #l2-search { width: 240px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-size: 13px; } #l2-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,139,240,.15); } #l2-sug { display: none; position: absolute; z-index: 50; top: 38px; left: 0; width: 340px; max-height: 340px; overflow: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(10,20,40,.18); } .sug-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 12.5px; } .sug-row:hover { background: var(--panel-2); } .sug-kind { flex: 0 0 auto; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; } .sug-kind.sw { background: #2E75B6; } .sug-kind.term { background: #2ECC71; } .sug-lbl { color: var(--text); } .sug-sub { color: var(--muted); margin-left: auto; font-size: 11.5px; } .sug-empty { padding: 10px 12px; color: var(--muted); } .l2-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text); cursor: pointer; user-select: none; } .l2-ts-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); } select.l2-ts-select { width: 156px; height: 32px; padding: 0 6px; box-sizing: border-box; line-height: normal; font-family: inherit; flex: 0 0 auto; margin: 0; } select.l2-ts-date { width: 150px; } select.l2-ts-time { width: 104px; } select.l2-ts-time:disabled { opacity: .55; } .l2-btn { height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); line-height: 30px; box-sizing: border-box; } .l2-btn:hover { border-color: var(--brand); color: var(--brand); } .l2-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .l2-btn.primary:hover { filter: brightness(1.08); color: #fff; } .l2-btn.on { background: #E97659; border-color: #E97659; color: #fff; } /* main split */ .l2-main { display: flex; gap: 10px; align-items: stretch; flex: 1 1 auto; min-height: 0; } .l2-canvas { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; height: auto; background: linear-gradient(rgba(120,140,170,.06) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(120,140,170,.06) 1px, transparent 1px) 0 0 / 26px 26px, var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .l2-dark .l2-canvas { background: linear-gradient(rgba(120,150,200,.05) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(120,150,200,.05) 1px, transparent 1px) 0 0 / 26px 26px, var(--bg); } #l2-cy { position: absolute; inset: 0; } .l2-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; } .l2-stats { position: absolute; left: 12px; top: 12px; z-index: 20; padding: 6px 12px; font-size: 12px; border-radius: 8px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--border); color: var(--text); backdrop-filter: blur(4px); } .l2-net-tabs { position: absolute; right: 12px; top: 12px; z-index: 21; display: flex; gap: 8px; } .l2-net-tab { border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 90%, transparent); color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 8px; cursor: pointer; backdrop-filter: blur(4px); } .l2-net-tab:hover { color: var(--text); border-color: var(--brand); } .l2-net-tab.active { color: #fff; background: var(--brand); border-color: var(--brand); } .l2-legend { position: static; flex: 0 0 auto; z-index: 20; max-height: 300px; overflow: auto; padding: 10px 12px; font-size: 12px; border-radius: 0; background: var(--panel-2); border: 0; border-top: 1px solid var(--border); color: var(--text); } .lg-title { font-weight: 700; color: var(--muted); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; margin: 8px 0 4px; } .lg-title:first-child { margin-top: 0; } .lg-row { display: flex; align-items: center; gap: 6px; margin: 3px 0; } .lg-row.lg-compact { flex-wrap: wrap; gap: 3px 6px; font-size: 11px; } .lg-row.lg-compact .lg-box { width: 11px; height: 11px; } .lg-sep { width: 1px; height: 12px; background: var(--border); display: inline-block; margin: 0 1px; } .lg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 8px; margin: 3px 0; } .lg-item { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11px; min-width: 0; } .lg-line { width: 20px; height: 0; border-top: 3px solid #999; display: inline-block; flex: 0 0 auto; } .lg-line.lg-dash { border-top-style: dashed; border-top-color: #E45959; } .lg-box { width: 12px; height: 12px; border-radius: 2px; display: inline-block; } /* side panel */ .l2-side { flex: 0 0 330px; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .side-tabs { display: flex; flex: 0 0 auto; border-bottom: 1px solid var(--border); background: var(--panel-2); } .side-tab { flex: 1; text-align: center; padding: 11px 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; } .side-tab.active { color: var(--brand); border-bottom-color: var(--brand); background: var(--panel); } .badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; color: #fff; background: #E45959; line-height: 18px; } .side-body { flex: 1 1 auto; min-height: 0; overflow: auto; } .panel-sec { display: none; } .panel-sec.active { display: block; } .panel-empty { padding: 22px 14px; color: var(--muted); text-align: center; font-size: 13px; } .alarm-row, .off-row { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; } .alarm-row:hover, .off-row:hover, .term-row:hover { background: var(--panel-2); } .alarm-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; } .alarm-main, .off-main { min-width: 0; } .alarm-title { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; } .alarm-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; } .off-mac { font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--text); } .off-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; } .term-row { align-items: flex-start; } .term-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; } .term-rate { color: var(--brand); font-weight: 700; } .hist-row.active { background: color-mix(in srgb, var(--brand) 14%, transparent); border-left: 3px solid var(--brand); padding-left: 11px; } .hist-row.active .off-mac { color: var(--brand); } /* tooltip */ .l2-tip { display: none; position: fixed; z-index: 9999; max-width: 340px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; border-radius: 10px; background: rgba(18,26,40,.96); color: #eef4ff; box-shadow: 0 10px 28px rgba(0,0,0,.35); pointer-events: none; } .l2-tip hr { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 6px 0; } @media (max-width: 900px) { .l2-wrap { height: auto; min-height: 0; } .l2-main { flex-direction: column; } .l2-side { flex-basis: auto; height: 360px; } .l2-canvas { height: 64vh; } }