219 lines
13 KiB
CSS
219 lines
13 KiB
CSS
*{box-sizing:border-box}
|
|
:root{
|
|
--bg:#f5f7fa;
|
|
--surface:#ffffff;
|
|
--surface-soft:#fafbfc;
|
|
--sidebar:#1f2937;
|
|
--sidebar-hover:#2b3646;
|
|
--border:#e5e7eb;
|
|
--border-strong:#d1d5db;
|
|
--text:#111827;
|
|
--muted:#6b7280;
|
|
--primary:#475569;
|
|
--primary-strong:#334155;
|
|
--primary-strong-hover:#273444;
|
|
--button-soft:#e5e7eb;
|
|
--button-soft-hover:#dbe1e8;
|
|
--button-soft-text:#374151;
|
|
--danger-soft:#f3e8e8;
|
|
--danger-soft-hover:#eadbdb;
|
|
--danger-soft-text:#7c4a4a;
|
|
--teal:#0f766e;
|
|
--green:#15803d;
|
|
--amber:#b45309;
|
|
--red:#b91c1c;
|
|
--shadow:0 10px 30px rgba(15,23,42,.06);
|
|
}
|
|
|
|
body{margin:0;background:var(--bg);color:var(--text);font:13px/1.5 var(--tblr-font-sans-serif,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif)}
|
|
a{color:var(--primary);text-decoration:none}
|
|
a:hover{text-decoration:none}
|
|
code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
|
|
|
|
.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}
|
|
.sidebar{background:var(--sidebar);color:#f3f4f6;display:flex;flex-direction:column;padding:18px 14px;position:sticky;top:0;height:100vh}
|
|
.brand-block{display:flex;gap:12px;align-items:center;padding:4px 8px 20px}
|
|
.brand-mark{width:40px;height:40px;border-radius:8px;background:#111827;border:1px solid rgba(255,255,255,.08);display:grid;place-items:center;font-size:13px;font-weight:700}
|
|
.brand-title{font-size:14px;font-weight:600}
|
|
.brand-subtitle{font-size:11px;color:#9ca3af;margin-top:2px}
|
|
.side-nav{display:flex;flex-direction:column;gap:4px}
|
|
.nav-section{padding:14px 10px 6px;font-size:11px;color:#9ca3af;text-transform:uppercase;letter-spacing:.06em}
|
|
.side-nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:#e5e7eb;font-size:12px;font-weight:500}
|
|
.side-nav a:hover{background:var(--sidebar-hover)}
|
|
.nav-icon{width:28px;height:24px;border-radius:6px;border:1px solid rgba(255,255,255,.1);display:grid;place-items:center;font-size:10px;color:#d1d5db}
|
|
.nav-icon .ui-icon{width:14px;height:14px;stroke-width:1.75}
|
|
.sidebar-footer{margin-top:auto;padding:14px 8px 0;border-top:1px solid rgba(255,255,255,.08)}
|
|
.sidebar-note{font-size:12px;color:#9ca3af;line-height:1.5}
|
|
|
|
.workspace{min-width:0}
|
|
.topbar{height:72px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}
|
|
.topbar h1{margin:4px 0 0;font-size:18px;font-weight:600}
|
|
.crumb,.eyebrow{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
|
|
.topbar-actions{display:flex;gap:8px}
|
|
main{padding:24px 28px 36px;max-width:1440px}
|
|
|
|
.hero-band{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px;padding:8px 2px}
|
|
.hero-band h2{margin:4px 0 6px;font-size:21px;font-weight:600;line-height:1.25}
|
|
|
|
.card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:18px 20px;margin:16px 0;box-shadow:var(--shadow)}
|
|
.card h2{margin:0 0 8px;font-size:16px;font-weight:600}
|
|
.card h3{margin:0 0 6px;font-size:14px;font-weight:600}
|
|
.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
|
|
.title-with-icon{display:flex;align-items:center;gap:8px}
|
|
.title-with-icon .ui-icon{width:16px;height:16px;color:#475569}
|
|
.muted{color:var(--muted)}
|
|
.small{font-size:12px}
|
|
|
|
.btn,button,input,select,textarea{font:inherit}
|
|
.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 10px;border-radius:7px;border:1px solid var(--border-strong);background:var(--button-soft);color:var(--button-soft-text);cursor:pointer;font-size:11px;font-weight:500;line-height:1.15;min-height:32px;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
|
|
.btn:hover,button:hover{background:var(--button-soft-hover);border-color:#c3ccd6}
|
|
.btn.primary,button.primary{background:var(--primary-strong);border-color:var(--primary-strong);color:#f8fafc}
|
|
.btn.primary:hover,button.primary:hover{background:var(--primary-strong-hover);border-color:var(--primary-strong-hover)}
|
|
.btn.secondary,button.secondary,.btn.ghost{background:var(--button-soft);border-color:var(--border-strong);color:var(--button-soft-text)}
|
|
.btn.secondary:hover,button.secondary:hover,.btn.ghost:hover{background:var(--button-soft-hover);border-color:#c3ccd6}
|
|
.btn.danger,button.danger{background:var(--danger-soft);border-color:#e7d5d5;color:var(--danger-soft-text)}
|
|
.btn.danger:hover,button.danger:hover{background:var(--danger-soft-hover);border-color:#dbc4c4}
|
|
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}
|
|
input,select,textarea{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--border-strong);background:#fff;color:var(--text);font-size:12px}
|
|
textarea{min-height:140px;line-height:1.55}
|
|
|
|
.msg,.error{padding:12px 14px;border-radius:8px;margin:12px 0;white-space:pre-wrap}
|
|
.msg{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}
|
|
.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
|
|
|
|
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
|
|
.stat{padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}
|
|
.stat .k{font-size:12px;color:var(--muted)}
|
|
.metric-label{display:flex;align-items:center;gap:6px}
|
|
.metric-label .ui-icon{width:14px;height:14px}
|
|
.stat .v{margin-top:8px;font-size:22px;font-weight:700;line-height:1}
|
|
.stat .hint{margin-top:6px;font-size:12px;color:var(--muted)}
|
|
.accent-teal .v{color:var(--teal)}
|
|
.accent-green .v{color:var(--green)}
|
|
.accent-slate .v{color:#475569}
|
|
.accent-amber .v{color:var(--amber)}
|
|
|
|
.table-tools{display:flex;gap:8px;align-items:center}
|
|
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:8px;background:#fff}
|
|
table{width:100%;border-collapse:collapse;min-width:900px}
|
|
th,td{padding:13px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
|
|
th{background:var(--surface-soft);font-size:12px;font-weight:600;color:#4b5563}
|
|
tbody tr:hover{background:#f9fafb}
|
|
|
|
.device-cell{display:flex;align-items:center;gap:12px;min-width:220px}
|
|
.device-avatar{width:34px;height:34px;border-radius:8px;background:#e5eefc;color:#1d4ed8;display:grid;place-items:center}
|
|
.device-avatar .ui-icon{width:18px;height:18px}
|
|
.device-name{font-size:13px;font-weight:600}
|
|
.device-meta-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:3px;font-size:11px;color:var(--muted)}
|
|
.status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:6px;vertical-align:middle}
|
|
.status-dot.ok{background:var(--green)}
|
|
.status-dot.bad{background:var(--red)}
|
|
.status-text{font-size:12px;font-weight:500}
|
|
.config-inline{display:flex;flex-direction:column;gap:4px}
|
|
.device-id-inline{margin-top:6px}
|
|
.state-stack{display:flex;flex-direction:column;gap:6px}
|
|
.state-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
|
|
|
|
.pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;border:1px solid var(--border);background:#f3f4f6;color:#374151;font-size:11px;font-weight:600}
|
|
.pill.ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
|
|
.pill.bad{background:#fef2f2;border-color:#fecaca;color:#991b1b}
|
|
.pill.run{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
|
|
.pill.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}
|
|
|
|
.actions{display:flex;flex-wrap:wrap;gap:8px}
|
|
.actions.compact{gap:6px}
|
|
.actions.compact .btn,.actions.compact button{padding:4px 8px;font-size:11px;line-height:1.1;min-height:28px}
|
|
.btn .ui-icon{width:14px;height:14px}
|
|
.stack{flex-direction:column;align-items:flex-start}
|
|
.device-context-head{display:flex;align-items:center;gap:12px}
|
|
.device-context-icon{width:34px;height:34px;border-radius:8px;background:#e5eefc;color:#1d4ed8;display:grid;place-items:center}
|
|
.device-context-icon .ui-icon{width:18px;height:18px}
|
|
.device-tab-wrap{margin-top:16px}
|
|
.asset-tab-wrap{margin-top:0}
|
|
.device-tab-card{margin-top:-1px;padding:0}
|
|
.asset-tab-card{margin-top:-1px;padding:0}
|
|
.device-panel-body{padding:16px}
|
|
.asset-panel-body{padding:16px}
|
|
.device-panel-body>.card,.device-panel-body>details.card{margin:0 0 16px}
|
|
.asset-panel-body>.card,.asset-panel-body>details.card{margin:0 0 16px}
|
|
.device-panel-body>.card:last-child,.device-panel-body>details.card:last-child{margin-bottom:0}
|
|
.asset-panel-body>.card:last-child,.asset-panel-body>details.card:last-child{margin-bottom:0}
|
|
|
|
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
|
|
.device-selector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
|
|
.quad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
|
|
.control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
|
|
.selector-card .actions{margin-top:auto}
|
|
.panel-block{border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);padding:16px}
|
|
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
|
|
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
|
|
.field-grid label span{display:block;margin-bottom:6px;font-size:12px;color:var(--muted)}
|
|
.field-grid .full{grid-column:1/-1}
|
|
.field-grid input,.field-grid select,.field-grid textarea{width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font:inherit}
|
|
.field-grid textarea{resize:vertical;min-height:120px}
|
|
.code-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5}
|
|
|
|
.info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
|
|
.info-list>div{padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}
|
|
.info-list span{display:block;margin-bottom:5px;font-size:12px;color:var(--muted)}
|
|
.info-list strong{display:block;font-size:13px;font-weight:600;line-height:1.45}
|
|
.compact-list{grid-template-columns:1fr}
|
|
|
|
.summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
|
|
.control-summary{margin-bottom:16px}
|
|
.summary-chip{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}
|
|
.summary-chip-label{font-size:12px;color:var(--muted)}
|
|
.summary-chip-value{margin-top:6px;font-size:13px;font-weight:600}
|
|
|
|
.asset-stat{margin-top:12px;font-size:20px;font-weight:700;color:#111827}
|
|
.asset-list{margin-top:14px;border-top:1px solid var(--border)}
|
|
.asset-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
|
|
.asset-link{color:inherit}
|
|
.asset-link:hover{background:#f8fafc}
|
|
.truncate-cell{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
.muted-row{opacity:.62}
|
|
.asset-tabs .nav-link{font-size:12px;font-weight:500;color:#64748b}
|
|
.asset-tabs .nav-link:hover{color:#334155}
|
|
.asset-tabs .nav-link.active{color:#111827}
|
|
.profile-editor-tabs .tab-content>.card{margin-top:-1px}
|
|
.nested-section{margin-top:14px;padding:14px}
|
|
.nested-section pre{margin-top:10px}
|
|
.profile-instance-editor .field-grid{margin-top:14px}
|
|
|
|
.empty-state{padding:18px;border:1px dashed var(--border-strong);border-radius:8px;background:var(--surface-soft)}
|
|
.empty-state.compact{padding:14px}
|
|
.empty-title{font-size:13px;font-weight:600;margin-bottom:6px}
|
|
|
|
.collapsible summary,.collapsible-inline summary{cursor:pointer;font-weight:600}
|
|
pre{margin-top:12px;padding:12px;border-radius:8px;border:1px solid #1f2937;background:#111827;color:#e5e7eb;overflow:auto;white-space:pre-wrap}
|
|
|
|
.row{display:flex;gap:12px;flex-wrap:wrap}
|
|
.row>*{flex:1 1 220px}
|
|
.subnav{display:flex;gap:8px;flex-wrap:wrap}
|
|
.device-tab-wrap{margin-top:16px}
|
|
.device-tabs .nav-link{font-size:12px;font-weight:500;color:#64748b}
|
|
.device-tabs .nav-link:hover{color:#334155}
|
|
.device-tabs .nav-link.active{color:#111827}
|
|
.device-tab-card{margin-top:0}
|
|
.device-panel-body{padding:16px}
|
|
.device-panel-body>.card,.device-panel-body>details.card{margin:0 0 16px}
|
|
.device-panel-body>.card:last-child,.device-panel-body>details.card:last-child{margin-bottom:0}
|
|
.ui-icon{display:block;flex:0 0 auto}
|
|
|
|
.batch-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);margin:0 0 12px}
|
|
.batch-toolbar-count{font-size:13px;font-weight:600}
|
|
.batch-toolbar .actions{justify-content:flex-end}
|
|
.batch-toolbar .actions .btn,.batch-toolbar .actions button{white-space:nowrap}
|
|
.select-cell{width:52px;text-align:center;vertical-align:middle}
|
|
.select-cell input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--primary)}
|
|
|
|
@media (max-width:1024px){
|
|
.app-shell{grid-template-columns:1fr}
|
|
.sidebar{position:relative;height:auto}
|
|
.topbar{position:relative;height:auto;padding:18px;flex-direction:column;align-items:flex-start;gap:12px}
|
|
main{padding:18px}
|
|
.stats,.detail-grid,.device-selector-grid,.quad-grid,.control-grid,.summary-strip,.info-list,.field-grid{grid-template-columns:1fr}
|
|
.hero-band{flex-direction:column;align-items:flex-start}
|
|
.batch-toolbar{flex-direction:column}
|
|
}
|