RTU/test/web_root/css/style.css

1078 lines
23 KiB
CSS

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--nav-bg: #1a1a2e;
--nav-text: #e0e0e0;
--primary: #4CAF50;
--primary-hover: #43A047;
--danger: #f44336;
--danger-hover: #e53935;
--info: #2196F3;
--info-hover: #1E88E5;
--bg: #f0f2f5;
--card-bg: #ffffff;
--border: #e0e0e0;
--text: #333333;
--text-secondary: #666666;
--text-muted: #999999;
--shadow: 0 2px 8px rgba(0,0,0,0.08);
--radius: 8px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
}
/* === Navigation Sidebar === */
#nav-sidebar {
width: 220px;
min-width: 220px;
background: var(--nav-bg);
color: var(--nav-text);
display: flex;
flex-direction: column;
min-height: 100vh;
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 100;
transition: transform 0.3s;
}
#nav-sidebar .nav-header {
padding: 20px 16px;
font-size: 16px;
font-weight: 700;
border-bottom: 1px solid rgba(255,255,255,0.1);
text-align: center;
letter-spacing: 1px;
}
#nav-sidebar .nav-status {
padding: 10px 16px;
font-size: 12px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
.nav-status-dot.connected { background: #4CAF50; box-shadow: 0 0 6px #4CAF50; }
.nav-status-dot.disconnected { background: #f44336; box-shadow: 0 0 6px #f44336; }
.nav-status-dot.connecting { background: #FF9800; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
#nav-sidebar nav { flex: 1; padding: 8px 0; }
#nav-sidebar nav a {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
color: var(--nav-text);
text-decoration: none;
font-size: 14px;
transition: background 0.2s;
border-left: 3px solid transparent;
}
#nav-sidebar nav a:hover { background: rgba(255,255,255,0.08); }
#nav-sidebar nav a.active { background: rgba(255,255,255,0.12); border-left-color: var(--primary); }
#nav-sidebar .nav-footer {
padding: 12px 16px;
border-top: 1px solid rgba(255,255,255,0.08);
}
#nav-sidebar .nav-footer button {
width: 100%;
padding: 8px;
background: rgba(255,255,255,0.1);
color: var(--nav-text);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 4px;
cursor: pointer;
font-size: 13px;
}
#nav-sidebar .nav-footer button:hover { background: rgba(255,255,255,0.18); }
/* === Main Content === */
#main-content {
margin-left: 220px;
flex: 1;
min-height: 100vh;
padding: 24px;
}
.page { display: none; }
.page.active { display: block; }
/* === Login Page (no sidebar) === */
body.login-page #nav-sidebar { display: none; }
body.login-page #main-content { margin-left: 0; display: flex; align-items: center; justify-content: center; }
.login-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: 0 4px 24px rgba(0,0,0,0.12);
padding: 48px 40px;
width: 400px;
max-width: 90vw;
text-align: center;
}
.login-card h1 {
font-size: 22px;
color: var(--nav-bg);
margin-bottom: 4px;
}
.login-card .login-subtitle {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 32px;
}
.login-card .form-group {
margin-bottom: 16px;
text-align: left;
}
.login-card label {
display: block;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.login-card input {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 14px;
transition: border-color 0.2s;
}
.login-card input:focus { outline: none; border-color: var(--primary); }
.login-card input:disabled {
background: #f5f5f5;
color: var(--text-muted);
cursor: not-allowed;
}
.login-card .login-btn {
width: 100%;
padding: 12px;
background: var(--primary);
color: #fff;
border: none;
border-radius: 4px;
font-size: 15px;
cursor: pointer;
margin-top: 8px;
transition: background 0.2s;
}
.login-card .login-btn:hover { background: var(--primary-hover); }
.login-card .login-hint {
font-size: 12px;
color: var(--text-muted);
margin-top: 16px;
}
/* === Dashboard === */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
@media (max-width: 1200px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dash-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 32px 24px;
text-align: center;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
text-decoration: none;
color: var(--text);
display: block;
}
.dash-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}
.dash-card .card-icon { font-size: 36px; margin-bottom: 12px; }
.dash-card .card-title {
font-size: 17px;
font-weight: 600;
margin-bottom: 4px;
}
.dash-card .card-desc {
font-size: 13px;
color: var(--text-muted);
}
.dash-card.out { border-top: 4px solid #FF9800; }
.dash-card.in { border-top: 4px solid #2196F3; }
.dash-card.yk { border-top: 4px solid #f44336; }
.dash-card.ao { border-top: 4px solid #4CAF50; }
.dash-card.param { border-top: 4px solid #9C27B0; }
.dash-card.monitor { border-top: 4px solid #607D8B; }
.dash-card.terminal { border-top: 4px solid #00BCD4; }
/* === 批量操作工具栏 === */
.batch-toolbar {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 24px 28px;
margin-top: 28px;
text-align: center;
}
.batch-toolbar h3 {
font-size: 18px;
margin-bottom: 6px;
color: var(--nav-bg);
}
.batch-toolbar p {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 18px;
}
/* === Page Header === */
.page-header {
margin-bottom: 20px;
}
.page-header h2 {
font-size: 20px;
color: var(--nav-bg);
}
.page-header p {
font-size: 13px;
color: var(--text-muted);
margin-top: 2px;
}
/* === Toolbar / Form Row === */
.toolbar {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px 20px;
margin-bottom: 16px;
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: flex-end;
}
.toolbar .field { display: flex; flex-direction: column; gap: 4px; }
.toolbar .field label {
font-size: 12px;
color: var(--text-secondary);
font-weight: 500;
}
.toolbar input, .toolbar select {
padding: 8px 12px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 14px;
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--primary); }
.toolbar input[type="text"] { width: 260px; }
.toolbar select { width: 130px; }
/* === Buttons === */
.btn {
padding: 8px 18px;
border: none;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
transition: background 0.2s;
white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: var(--info-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-outline {
background: #fff;
color: var(--text-secondary);
border: 1px solid var(--border);
}
.btn-outline:hover { background: #f5f5f5; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-success { background: #4CAF50; color: #fff; }
.btn-success:hover { background: #43A047; }
.btn-warn { background: #FF9800; color: #fff; }
.btn-warn:hover { background: #F57C00; }
/* === Table === */
.table-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
}
.table-wrapper {
max-height: 58vh;
overflow-y: auto;
}
.signal-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.signal-table thead th {
position: sticky;
top: 0;
background: #2c3e50;
color: #fff;
padding: 10px 12px;
text-align: left;
z-index: 10;
font-weight: 500;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.signal-table tbody td {
padding: 9px 12px;
border-bottom: 1px solid #f0f0f0;
}
.signal-table tbody tr:hover { background: #f8f9fa; }
.signal-table .val-input {
width: 100px;
padding: 5px 8px;
border: 1px solid var(--border);
border-radius: 3px;
font-size: 13px;
}
.signal-table .val-input:focus { outline: none; border-color: var(--primary); }
.signal-table .empty-row td {
text-align: center;
color: var(--text-muted);
padding: 40px;
font-size: 14px;
}
/* === Expandable Row (Param/定值) === */
.expand-row { cursor: pointer; }
.expand-row:hover { background: #f0f4ff !important; }
.expand-icon { display: inline-block; transition: transform 0.2s; font-size: 12px; margin-right: 4px; }
.expand-icon.open { transform: rotate(90deg); }
.zone-sub-row td { padding: 0 !important; border-bottom: none !important; }
.zone-sub-table {
width: 100%;
border-collapse: collapse;
background: #f8f9fb;
border-left: 3px solid #9C27B0;
}
.zone-sub-table thead th {
background: #eceff1;
color: #555;
font-size: 11px;
padding: 7px 10px;
position: static;
}
.zone-sub-table tbody td {
padding: 7px 10px;
font-size: 12px;
border-bottom: 1px solid #e8e8e8;
}
/* === Monitor Page === */
.monitor-stats {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 12px 20px;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 16px;
font-size: 13px;
}
.monitor-stats .stat-label { color: var(--text-muted); }
.monitor-stats .stat-value { font-weight: 600; }
.monitor-log {
background: #1e1e2e;
color: #cdd6f4;
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 8px 0;
height: 68vh;
overflow-y: auto;
font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
font-size: 12px;
}
.monitor-empty {
padding: 40px;
text-align: center;
color: #6c7086;
font-size: 13px;
}
/* 每条记录 */
.mon-item {
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mon-item.open {
background: rgba(255,255,255,0.03);
}
.mon-item-head {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
cursor: pointer;
transition: background 0.15s;
}
.mon-item-head:hover {
background: rgba(255,255,255,0.05);
}
.mon-time { color: #6c7086; white-space: nowrap; font-size: 11px; }
.mon-dir {
font-weight: 700;
white-space: nowrap;
font-size: 11px;
padding: 2px 6px;
border-radius: 3px;
}
.mon-dir.mon-up { color: #a6e3a1; background: rgba(166,227,161,0.12); }
.mon-dir.mon-down { color: #89b4fa; background: rgba(137,180,250,0.12); }
.mon-addr {
color: #9399b2;
white-space: nowrap;
font-size: 11px;
}
.mon-summary {
color: #cdd6f4;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
}
.mon-expand-icon {
color: #6c7086;
font-size: 10px;
white-space: nowrap;
min-width: 14px;
text-align: center;
}
/* 展开的详情 */
.mon-item-body {
padding: 0 16px 12px 16px;
}
.mon-item-body pre {
background: rgba(0,0,0,0.25);
color: #cdd6f4;
padding: 12px;
border-radius: 4px;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
font-size: 11px;
line-height: 1.6;
margin: 0;
border-left: 3px solid #585b70;
}
/* === Utility === */
.hidden { display: none !important; }
/* === Responsive === */
@media (max-width: 768px) {
#nav-sidebar { width: 180px; min-width: 180px; }
#main-content { margin-left: 180px; padding: 16px; }
.toolbar { flex-direction: column; }
.toolbar input[type="text"] { width: 100%; }
.dashboard-grid { grid-template-columns: 1fr; }
.signal-table { font-size: 12px; }
.signal-table thead th, .signal-table tbody td { padding: 6px 8px; }
}
/* ===== 命令终端 ===== */
.terminal-wrap {
background: #1e1e1e;
border-radius: 4px;
overflow: hidden;
display: flex;
flex-direction: column;
height: calc(100vh - 200px);
min-height: 400px;
}
.terminal-output {
flex: 1;
overflow-y: auto;
padding: 10px;
font-family: 'Courier New', monospace;
font-size: 13px;
color: #d4d4d4;
white-space: pre-wrap;
word-break: break-all;
background: #1e1e1e;
}
.terminal-output div {
line-height: 1.5;
}
.terminal-input-line {
display: flex;
background: #2d2d2d;
padding: 6px 10px;
border-top: 1px solid #3c3c3c;
}
.terminal-prompt {
color: #6a9955;
padding: 4px 6px 4px 0;
font-family: 'Courier New', monospace;
font-size: 13px;
white-space: nowrap;
}
.terminal-input {
flex: 1;
background: transparent;
border: none;
color: #d4d4d4;
font-family: 'Courier New', monospace;
font-size: 13px;
outline: none;
}
.term-sent { color: #569cd6; }
.term-resp { color: #d4d4d4; }
.term-err { color: #f44747; }
.term-info { color: #6a9955; }
/* === 命令终端 — 命令列表 === */
.terminal-cmd-list {
padding: 8px 10px;
background: #252526;
border-bottom: 1px solid #3c3c3c;
display: flex;
flex-wrap: wrap;
gap: 6px;
max-height: 120px;
overflow-y: auto;
}
.cmd-list-hint {
color: #6a9955;
font-family: 'Courier New', monospace;
font-size: 12px;
}
.cmd-tag {
display: inline-block;
padding: 3px 10px;
background: #3c3c3c;
color: #d4d4d4;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 12px;
cursor: pointer;
transition: background 0.15s;
white-space: nowrap;
}
.cmd-tag:hover {
background: #4CAF50;
color: #fff;
}
/* === 数据中心页面 === */
.datacenter-toolbar {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 12px 20px;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.dc-tab-bar {
display: flex;
gap: 4px;
}
.dc-tab {
padding: 6px 16px;
border-radius: 4px;
font-size: 13px;
cursor: pointer;
color: var(--text-secondary);
background: transparent;
border: 1px solid var(--border);
transition: all 0.2s;
}
.dc-tab:hover {
background: #f0f0f0;
}
.dc-tab.active {
background: var(--primary);
color: #fff;
border-color: var(--primary);
}
.dc-search {
padding: 6px 12px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 13px;
width: 200px;
}
.dc-search:focus {
outline: none;
border-color: var(--primary);
}
.dc-count {
font-size: 12px;
color: var(--text-muted);
margin-left: auto;
}
/* === 数据中心 选择添加栏 === */
.dc-sel-bar {
background: #e8f5e9;
border: 1px solid #a5d6a7;
border-radius: var(--radius);
padding: 10px 20px;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
animation: dcSlideDown 0.2s ease-out;
}
@keyframes dcSlideDown {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.dc-sel-label {
font-size: 14px;
font-weight: 600;
color: #2e7d32;
}
.dc-sel-bar label {
font-size: 13px;
color: var(--text-secondary);
}
.dc-sel-bar select {
padding: 4px 8px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 13px;
background: #fff;
}
.dc-sel-bar .btn {
padding: 6px 16px;
font-size: 13px;
}
#dc-cb-all, .dc-cb-row {
width: 16px;
height: 16px;
cursor: pointer;
accent-color: var(--primary);
}
/* === PLC Debug Page === */
.plc-toolbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
padding: 12px 16px;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.plc-actions {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
padding: 12px 16px;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.plc-grid {
display: flex;
gap: 24px;
}
.plc-col {
flex: 1;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px;
min-height: 200px;
}
.plc-col h3 {
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid var(--primary);
font-size: 16px;
}
/* 信号选择列 */
.plc-signal-col {
width: 280px;
min-width: 260px;
flex-shrink: 0;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px;
min-height: 200px;
}
.plc-signal-col h3 {
margin-bottom: 4px;
font-size: 16px;
}
.plc-arrow-row {
display: flex;
justify-content: center;
gap: 24px;
padding: 4px 0 12px 0;
border-bottom: 2px solid var(--primary);
margin-bottom: 8px;
}
.plc-arrow-btn {
width: 36px;
height: 36px;
border-radius: 50%;
border: 2px solid var(--primary);
background: #fff;
color: var(--primary);
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
line-height: 1;
}
.plc-arrow-btn:hover {
background: var(--primary);
color: #fff;
}
.plc-arrow-btn:active {
transform: scale(0.9);
}
.plc-sig-list {
max-height: calc(100vh - 380px);
overflow-y: auto;
}
.plc-sig-check-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 6px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
font-size: 12px;
transition: background 0.15s;
}
.plc-sig-check-item:hover {
background: #f0f8ff;
}
.plc-sig-check-item .plc-sig-saddr {
color: var(--primary);
font-weight: 600;
font-family: monospace;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.plc-sig-check-item .plc-sig-val {
font-weight: 700;
color: var(--info);
min-width: 30px;
text-align: right;
}
.plc-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
}
.plc-led {
font-size: 28px;
cursor: pointer;
opacity: 0.3;
transition: all 0.3s;
filter: grayscale(100%);
}
.plc-led-on {
opacity: 1;
filter: none;
text-shadow: 0 0 10px #4CAF50, 0 0 20px #4CAF50;
}
.plc-btn-icon {
font-size: 28px;
cursor: pointer;
transition: transform 0.15s;
}
.plc-btn-icon:active {
transform: scale(0.85);
}
.plc-info {
flex: 1;
font-size: 13px;
}
.plc-saddr {
color: var(--primary);
font-weight: 600;
font-family: monospace;
}
.plc-val {
font-size: 16px;
font-weight: 700;
color: var(--info);
min-width: 40px;
text-align: right;
}
/* === Modal === */
.modal-overlay {
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.45);
display: flex; align-items: center; justify-content: center;
z-index: 999;
}
.modal-box {
background: var(--card-bg);
border-radius: var(--radius);
padding: 24px;
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
min-width: 380px;
}
.modal-box h3 { margin-bottom: 8px; }
.plc-sig-row:hover { background: #f0f8ff !important; }
/* === Batch ops === */
.batch-ops { display: flex; align-items: center; gap: 8px; }
/* === Dashboard plc card === */
.dash-card.plc { border-top: 4px solid #FF9800; }
.dash-card.plc_cfg { border-top: 4px solid #9C27B0; }
/* === PLC Config Page === */
.plc-cfg-tabs {
display: flex;
gap: 4px;
margin-bottom: 16px;
background: var(--card-bg);
border-radius: var(--radius);
padding: 6px;
box-shadow: var(--shadow);
}
.plc-cfg-tab {
flex: 1;
padding: 10px 16px;
border: none;
background: transparent;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
color: #888;
transition: all 0.2s;
}
.plc-cfg-tab:hover { background: #f0f0f0; color: #333; }
.plc-cfg-tab.active { background: var(--primary); color: #fff; }
/* Signals Tab */
.plc-sig-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
padding: 12px 16px;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.plc-sig-header select,
.plc-sig-header input {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
}
.plc-sig-header select { min-width: 160px; }
.plc-sig-header input { flex: 1; min-width: 200px; }
.plc-sig-table-wrap {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: auto;
max-height: calc(100vh - 260px);
}
.plc-sig-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.plc-sig-table th {
position: sticky;
top: 0;
background: #f5f5f5;
padding: 10px 12px;
text-align: left;
font-weight: 700;
border-bottom: 2px solid #ddd;
z-index: 1;
}
.plc-sig-table td {
padding: 8px 12px;
border-bottom: 1px solid #eee;
}
.plc-sig-table tr:hover td { background: #f0f8ff; }
.plc-sig-table code {
background: #f0f0f0;
padding: 2px 6px;
border-radius: 3px;
font-size: 12px;
}
/* Viewer & Editor Canvas */
.plc-viewer-toolbar,
.plc-editor-toolbar {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
padding: 8px 12px;
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.plc-editor-toolbar input {
padding: 6px 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
}
.plc-canvas-wrap {
background: #1a1a2e;
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
height: calc(100vh - 300px);
min-height: 400px;
}
.plc-canvas-wrap canvas {
display: block;
width: 100%;
height: 100%;
}
.plc-view-legend {
margin-top: 8px;
padding: 8px 12px;
background: var(--card-bg);
border-radius: var(--radius);
font-size: 12px;
}
.plc-editor-main {
display: flex;
gap: 0;
}
.plc-editor-main .plc-canvas-wrap {
flex: 1;
height: calc(100vh - 280px);
min-height: 450px;
}
.plc-editor-info {
margin-top: 8px;
padding: 8px 16px;
background: var(--card-bg);
border-radius: var(--radius);
font-size: 12px;
color: #888;
}
/* Modal rows */
.plc-modal-row {
padding: 10px 12px;
cursor: pointer;
border-bottom: 1px solid #eee;
transition: background 0.15s;
}
.plc-modal-row:hover { background: #f0f8ff; }
.plc-modal-row.plc-modal-used {
opacity: 0.5;
background: #fff5f5;
cursor: not-allowed;
}
.plc-modal-row.plc-modal-current {
background: #e3f2fd;
border-left: 3px solid #2196F3;
}