You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

585 lines
15 KiB

:root {
--bg: #eef1f6;
--surface: #ffffff;
--surface-muted: #f5f7fb;
--line: #dfe5ee;
--text: #5d6a7d;
--heading: #33445b;
--sidebar: #31435f;
--sidebar-deep: #25354c;
--sidebar-active: #1f90ff;
--accent: #4ea0ff;
--accent-strong: #3f97f7;
--danger: #ff5e5e;
--success: #3e9b61;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", "Malgun Gothic", sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
.login-body {
min-height: 100vh;
background:
radial-gradient(circle at top left, rgba(78,160,255,0.22), transparent 30%),
linear-gradient(180deg, #1f2f45 0%, #2f4260 100%);
}
.login-shell {
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
.login-panel {
width: min(440px, 100%);
background: rgba(255,255,255,0.97);
border: 1px solid rgba(223,229,238,0.9);
border-radius: 18px;
padding: 28px;
box-shadow: 0 26px 70px rgba(16, 28, 44, 0.35);
}
.login-brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 22px;
}
.login-copy h1 {
margin: 0;
font-size: 28px;
color: var(--heading);
}
.login-copy p {
margin: 8px 0 0;
font-size: 14px;
color: #6e7d92;
}
.login-form {
display: grid;
gap: 14px;
margin-top: 22px;
}
.login-submit {
min-height: 40px;
}
.login-error {
margin-top: 18px;
border: 1px solid #f1c6c6;
background: #fff1f1;
color: #b14e4e;
border-radius: 10px;
padding: 12px 14px;
font-size: 13px;
}
.login-hint {
margin-top: 16px;
font-size: 13px;
color: #6f7d91;
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
width: 200px;
background: linear-gradient(180deg, var(--sidebar-deep), var(--sidebar));
color: #dbe4f0;
padding: 18px 0 24px;
flex: 0 0 200px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand-mark { width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.brand-title { color: #fff; font-size: 20px; font-weight: 700; line-height: 1; }
.brand-subtitle { margin-top: 4px; font-size: 11px; opacity: 0.7; }
.nav { padding-top: 10px; }
.nav-group { margin-bottom: 2px; }
.nav-item, .nav-child {
display: flex;
align-items: center;
min-height: 42px;
padding: 0 18px;
color: #dbe4f0;
}
.nav-item { justify-content: space-between; }
.nav-item.active, .nav-child.active { background: rgba(78,160,255,0.18); color: #58a5ff; font-weight: 600; }
.nav-label { font-size: 14px; }
.nav-caret {
width: 8px;
height: 8px;
flex: 0 0 auto;
border-right: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(45deg);
transition: transform 0.18s ease;
}
.nav-children { display: none; padding-bottom: 6px; }
.nav-group.expanded .nav-children { display: block; }
.nav-group.expanded .nav-caret { transform: rotate(225deg); }
.nav-child { padding-left: 32px; font-size: 13px; min-height: 40px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
height: 56px;
background: #243349;
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 20px; }
.topbar-crumbs { font-size: 13px; opacity: 0.92; }
.crumb-sep { margin: 0 6px; opacity: 0.55; }
.legacy-link { font-size: 12px; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.user-pill { font-size: 14px; }
.theme-pill { border: 0; background: var(--accent-strong); color: #fff; border-radius: 3px; padding: 6px 12px; font-size: 12px; }
.logout-form { margin: 0; }
.logout-button {
border: 1px solid rgba(255,255,255,0.18);
background: rgba(255,255,255,0.06);
color: #fff;
border-radius: 4px;
padding: 6px 10px;
font-size: 12px;
cursor: pointer;
}
.workspace-tabs {
display: flex;
gap: 2px;
overflow-x: auto;
padding: 6px 8px 0;
background: #f5f6f8;
border-bottom: 1px solid #e0e4eb;
}
.workspace-tab {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
background: #fff;
border: 1px solid #dce3eb;
border-bottom: 0;
border-radius: 4px 4px 0 0;
font-size: 12px;
color: #6d7b90;
white-space: nowrap;
}
.workspace-tab-link { color: inherit; }
.workspace-tab.active { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.workspace-close {
border: 0;
background: transparent;
color: inherit;
opacity: 0.7;
cursor: pointer;
padding: 0;
line-height: 1;
}
.workspace-close:hover { opacity: 1; }
.content { padding: 14px 8px 20px; }
.page-header { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; }
.page-kicker { font-size: 13px; color: #7b8798; }
.page-header h1 { margin: 0; font-size: 20px; color: var(--heading); }
.mock-badge { margin-left: auto; padding: 5px 8px; background: #fff2cc; color: #8c6b00; border: 1px solid #f0d889; border-radius: 999px; font-size: 11px; font-weight: 700; }
.subtabs {
display: flex;
gap: 20px;
padding: 0 22px 0 22px;
border-bottom: 1px solid var(--line);
margin: 0 10px 0;
}
.subtabs.embedded { padding: 0 0 12px; margin: 0 0 12px; }
.subtab {
position: relative;
padding: 12px 0;
font-size: 13px;
font-weight: 600;
color: #5f6e84;
}
.subtab.active { color: var(--accent-strong); }
.subtab.active::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -1px;
height: 2px;
background: var(--accent-strong);
}
.blocks { display: grid; gap: 14px; padding: 0 10px; }
.panel {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 4px;
padding: 14px 22px 20px;
}
.panel-header { padding-bottom: 12px; border-bottom: 1px solid #edf1f6; margin-bottom: 14px; }
.panel-header h2 { margin: 0; font-size: 14px; font-weight: 700; color: #5f6e84; }
.panel-header p { margin: 6px 0 0; font-size: 12px; color: #8996a8; }
.panel-header-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.port-link-grid {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: 8px;
}
.port-link {
border: 1px solid #aeb7c4;
background: #f8fafc;
border-radius: 6px;
padding: 8px 4px;
text-align: center;
font-size: 11px;
}
.port-link.up { border-color: #6da884; background: #edf9f1; }
.port-link.down { border-color: #b7bec8; background: #f5f6f8; }
.port-link.blink { box-shadow: 0 0 0 2px rgba(78,160,255,0.18); }
.port-link-card {
border: 1px solid #aeb7c4;
background: #f8fafc;
border-radius: 8px;
overflow: hidden;
}
.port-link-card.up { border-color: #6da884; background: #edf9f1; }
.port-link-card.down { border-color: #b7bec8; background: #f5f6f8; }
.port-link-card.blink { box-shadow: 0 0 0 2px rgba(78,160,255,0.18); }
.port-link-card.active {
box-shadow: 0 0 0 2px rgba(63,151,247,0.32);
}
.port-link-view {
border: 0;
background: transparent;
padding: 8px 4px;
text-align: center;
font-size: 11px;
width: 100%;
cursor: pointer;
}
.port-link-view { min-height: 78px; display: grid; align-content: center; gap: 4px; }
.port-link-number { font-weight: 700; color: #44546a; }
.port-link-state { margin-top: 4px; color: #718197; }
.port-link-caption { font-size: 10px; color: #4f86d6; font-weight: 700; }
.port-link-apply {
width: 100%;
border: 0;
border-top: 1px solid rgba(94, 112, 135, 0.16);
background: rgba(255,255,255,0.7);
color: #4c627d;
font-size: 11px;
font-weight: 700;
padding: 7px 4px;
cursor: pointer;
}
.port-link-apply.selected {
background: #3f97f7;
color: #fff;
}
.kv-table { display: grid; }
.kv-row {
display: grid;
grid-template-columns: 240px 1fr;
min-height: 44px;
align-items: center;
border-bottom: 1px solid #eef2f6;
}
.kv-row:last-child { border-bottom: 0; }
.kv-key { color: #67778d; }
.kv-value { color: #4b5c73; }
.mock-form { display: grid; gap: 14px; }
.form-grid {
display: grid;
grid-template-columns: 360px;
gap: 14px 24px;
}
.compact-grid { grid-template-columns: repeat(2, minmax(240px, 360px)); }
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: 13px; color: #6b7b91; }
.required { color: #ef7e7e; }
.form-row input[type="text"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
width: 100%;
min-height: 32px;
border: 1px solid #d9e0ea;
border-radius: 4px;
background: #fff;
padding: 6px 10px;
color: #607188;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 11px; color: #97a4b3; }
.switch { position: relative; width: 34px; height: 18px; display: inline-flex; }
.switch input { display: none; }
.slider {
width: 34px;
height: 18px;
border-radius: 999px;
background: #d8dee8;
position: relative;
}
.slider::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,0.14);
}
.switch input:checked + .slider { background: #72b1ff; }
.switch input:checked + .slider::after { transform: translateX(16px); }
.target-grid-wrap { border-top: 1px solid #edf1f6; padding-top: 10px; }
.target-title { margin-bottom: 10px; font-size: 13px; color: #67778d; font-weight: 600; }
.target-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 10px;
}
.target-chip {
position: relative;
display: grid;
gap: 4px;
min-height: 72px;
padding: 12px 8px;
border: 1px solid #b8c2cf;
border-radius: 10px;
background: #f8fafc;
color: #5f6e84;
text-align: center;
cursor: pointer;
transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.target-chip:hover {
transform: translateY(-1px);
border-color: #7bb0f5;
}
.target-chip input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.target-chip.selected {
border-color: #6da884;
background: #edf9f1;
box-shadow: 0 0 0 2px rgba(78,160,255,0.16);
}
.target-chip-number {
font-size: 13px;
font-weight: 700;
color: #44546a;
}
.target-chip-state {
font-size: 11px;
color: #718197;
}
.panel-actions { display: flex; gap: 12px; align-items: center; }
.panel-actions.compact { margin-bottom: 0; }
.modal-form .panel-actions,
.group-modal .panel-actions {
margin-top: 18px;
}
.btn {
border: 1px solid transparent;
border-radius: 3px;
padding: 8px 18px;
font-size: 12px;
cursor: pointer;
}
.btn.primary { background: var(--accent-strong); color: #fff; }
.btn.secondary { background: #fff; border-color: #d7dee9; color: #6b7c91; }
.btn.danger { background: var(--danger); color: #fff; }
.note-list { display: grid; gap: 6px; }
.note-item { font-size: 12px; color: #8a97a6; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid #eef2f6; text-align: left; color: #5e7087; }
.data-table th { background: #f3f6fa; font-weight: 700; color: #6d7d94; }
.row-actions { white-space: nowrap; }
.link-action { border: 0; background: transparent; padding: 0 2px; font-size: 12px; cursor: pointer; }
.link-action.primary { color: var(--accent-strong); }
.link-action.danger { color: var(--danger); }
.empty-state { text-align: center; color: #98a5b3; }
.action-panel .action-copy { margin-bottom: 16px; font-size: 13px; color: #6b7b90; }
.result-box {
min-height: 180px;
border: 1px solid #d9e0ea;
border-radius: 4px;
background: #fbfcfe;
padding: 10px;
white-space: pre-wrap;
color: #65758d;
}
.modal-layer {
position: fixed;
inset: 0;
display: grid;
place-items: center;
z-index: 1200;
}
.modal-layer[hidden] {
display: none;
}
.modal-backdrop {
position: absolute;
inset: 0;
background: rgba(27, 40, 58, 0.42);
backdrop-filter: blur(2px);
}
.modal-box {
position: relative;
z-index: 1;
width: min(720px, calc(100vw - 32px));
border: 1px solid #dfe5ee;
background: #fbfcfe;
border-radius: 10px;
padding: 18px;
box-shadow: 0 24px 60px rgba(20, 33, 52, 0.24);
}
.modal-form {
display: grid;
gap: 18px;
}
.modal-form .form-grid {
gap: 18px 24px;
}
.group-modal {
width: min(920px, calc(100vw - 32px));
}
.group-modal .form-grid {
gap: 18px 24px;
margin-bottom: 18px;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.modal-close {
border: 0;
background: transparent;
color: #6b7c91;
cursor: pointer;
font-size: 18px;
line-height: 1;
padding: 4px;
}
.modal-message { margin: 0 0 18px; font-size: 13px; color: #6d7c91; }
.group-permission-grid,
.group-permission-checks {
display: grid;
grid-template-columns: repeat(9, minmax(0, 1fr));
gap: 8px;
}
.group-permission-grid {
margin-top: 18px;
}
.group-permission-checks {
margin-top: 14px;
margin-bottom: 18px;
}
.group-permission-cell {
min-height: 64px;
border: 1px solid #dfe5ee;
border-radius: 8px;
background: #f8fbff;
padding: 12px 8px;
text-align: center;
font-size: 12px;
color: #6b7c91;
display: flex;
align-items: center;
justify-content: center;
line-height: 1.45;
}
.group-permission-cell.heading {
font-weight: 700;
color: #607188;
background: #f3f7fc;
}
.permission-chip {
min-height: 44px;
border: 1px solid #d9e3ef;
border-radius: 8px;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
font-size: 12px;
color: #5f6e84;
}
.permission-chip input {
margin: 0;
}
.permission-chip.selected {
border-color: #5aa57a;
background: #edf8f1;
color: #24523a;
}
.toast-root {
position: fixed;
right: 18px;
bottom: 18px;
display: grid;
gap: 10px;
z-index: 1000;
}
.toast {
min-width: 260px;
max-width: 360px;
background: #243349;
color: #fff;
border-radius: 6px;
padding: 12px 14px;
box-shadow: 0 12px 24px rgba(0,0,0,0.18);
font-size: 13px;
}
@media (max-width: 1100px) {
.compact-grid { grid-template-columns: 1fr; }
.port-link-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.target-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.group-permission-grid,
.group-permission-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
.sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); z-index: 30; }
body.sidebar-open .sidebar { transform: translateX(0); }
.menu-toggle { display: inline-flex; }
.compact-grid, .form-grid { grid-template-columns: 1fr; }
.target-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.group-permission-grid,
.group-permission-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}