:root {
  --bg: #091315;
  --panel: #0f1d1f;
  --panel-2: #132527;
  --border: #1f3b39;
  --text: #dbeae8;
  --muted: #84a29e;
  --accent: #2dd4bf;
  --ok: #2dd4bf;
  --warning: #f59e0b;
  --critical: #ef4444;
  --error: #f97316;
  --info: #38bdf8;
  --off: #64748b;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  display: grid;
  grid-template-columns: 200px 1fr;
}
button, input, select { font: inherit; color: inherit; }

/* ---------- navegação ---------- */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 0 8px 18px; letter-spacing: .3px; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); filter: drop-shadow(0 0 6px #2dd4bf66); flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.active { background: #2dd4bf1a; color: var(--accent); font-weight: 600; }
.nav-group { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 14px 12px 4px; }
.nav a.nav-sub { padding-left: 22px; font-size: 13.5px; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 8px; line-height: 1.6; }

.main { min-width: 0; padding: 0 22px 22px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0 14px;
}
.topbar h1 { margin: 0; font-size: 20px; }
.sub { color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

select, input[type="search"] {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; outline: none;
}
select:focus, input:focus { border-color: var(--accent); }
input[type="search"] { min-width: 220px; }

.view { display: none; }
.view.active { display: block; }

/* ---------- componentes ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-demo { background: #f59e0b22; color: var(--warning); border: 1px solid #f59e0b55; }
.lvl-ok { background: #2dd4bf22; color: var(--ok); }
.lvl-warning { background: #f59e0b22; color: var(--warning); }
.lvl-critical { background: #ef444426; color: #ff7b7b; }
.lvl-off { background: #64748b33; color: #a3b1c2; }
.sev-info { background: #38bdf822; color: var(--info); }
.sev-warning { background: #f59e0b22; color: var(--warning); }
.sev-error { background: #f9731626; color: var(--error); }
.sev-critical { background: #ef444426; color: #ff7b7b; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warning { background: var(--warning); }
.dot.critical { background: var(--critical); box-shadow: 0 0 8px var(--critical); } .dot.off { background: var(--off); }

.btn {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: #2dd4bf22; border-color: #2dd4bf66; color: var(--accent); }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--panel-2); border: 0; padding: 6px 12px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: #2dd4bf26; color: var(--accent); font-weight: 600; }
.seg button:disabled { opacity: .4; cursor: default; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); }
.muted { color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.card h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: #bfe0dc; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
.chart { height: 260px; }
.chart-wide { height: 220px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi {
  background: linear-gradient(160deg, #13292b, var(--panel)); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; border-top: 3px solid var(--accent);
}
.kpi[data-route] { cursor: pointer; }
.kpi[data-route]:hover { border-color: var(--accent); }
.kpi.warn { border-top-color: var(--warning); }
.kpi.crit { border-top-color: var(--critical); }
.kpi-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-label { color: #bfe0dc; font-size: 12.5px; font-weight: 600; }
.kpi-sub { color: var(--muted); font-size: 12px; }

/* ---------- tabelas ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--text); }
.table td { padding: 7px 10px; border-bottom: 1px solid #172e2c; vertical-align: top; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: #2dd4bf0d; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .raw { color: var(--muted); font-family: Consolas, "Cascadia Mono", monospace; font-size: 11.5px; margin-top: 2px; word-break: break-word; }
#inv-table td { white-space: nowrap; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { max-height: calc(100vh - 210px); overflow: auto; }
.btn.more { margin: 12px auto; display: block; }
.mini-bar { display: inline-block; width: 70px; height: 6px; background: #1c3532; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.mini-bar span { display: block; height: 100%; }
.chip-filter { display: inline-flex; align-items: center; gap: 6px; background: #2dd4bf1a; border: 1px solid #2dd4bf55; color: var(--accent); border-radius: 999px; padding: 3px 6px 3px 12px; font-size: 12.5px; }
.chip-filter button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 14px; padding: 0 4px; }

.alert-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.alert-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid #172e2c; cursor: pointer; border-radius: 6px; }
.alert-list li:hover { background: #2dd4bf0d; }
.alert-list .dot { margin-top: 6px; }
.alert-list small { color: var(--muted); }
.alert-list .reason { color: var(--muted); font-size: 12.5px; }

/* ---------- topologia ---------- */
.view-topo.active { display: flex; flex-direction: column; height: calc(100vh - 86px); }
.topo-crumb { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
.topo-crumb a { color: var(--accent); cursor: pointer; }
.topo-body { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 14px; min-height: 0; }
.cy-wrap { position: relative; background: radial-gradient(circle at 50% 40%, #102426, #0a1517 70%); border: 1px solid var(--border); border-radius: var(--radius); min-height: 420px; overflow: hidden; }
#cy { position: absolute; inset: 0; }
.legend {
  position: absolute; left: 10px; bottom: 10px; background: #0b1719e6; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px 8px; font-size: 11.5px; color: var(--muted);
}
.legend-body { display: grid; grid-template-columns: auto auto; gap: 3px 14px; margin-top: 4px; }
.legend.collapsed .legend-body { display: none; }
.legend-toggle { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font-size: 11.5px; font-weight: 600; }
.legend-toggle::after { content: " ▾"; color: var(--muted); }
.legend.collapsed .legend-toggle::after { content: " ▸"; }
.legend .ln { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.legend .ln.dashed { border-top-style: dashed; }
.legend .dot { margin-right: 6px; vertical-align: middle; }
.topo-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow: auto; min-height: 0; }
.panel-head .ptype { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
.panel-head h2 { margin: 2px 0 6px; font-size: 17px; word-break: break-all; }
.panel-section { margin-top: 14px; }
.panel-section h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 3px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.reasons { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #f6c46a; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 8px; font-size: 12.5px; margin: 4px 0; }
.bar { height: 8px; background: #1c3532; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.panel-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ev-mini { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.ev-mini li { padding: 6px 0; border-bottom: 1px solid #172e2c; }
.ev-mini .when { color: var(--muted); font-size: 11.5px; }
.panel-empty { color: var(--muted); font-size: 13px; }
.panel-empty b { color: var(--text); }

/* ---------- importar ---------- */
.notice { background: #f59e0b14; border: 1px solid #f59e0b55; color: #f6c46a; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.notice code, .imp-form code { color: var(--text); }
.imp-form { display: flex; flex-direction: column; }
.imp-form p { font-size: 12.5px; margin: 0 0 6px; }
.imp-form label:not(.chk) { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 12.5px; color: var(--muted); }
.imp-form .chk { margin: 8px 0; font-size: 12.5px; }
.imp-form input[type="text"], .imp-form input[type="password"], .imp-form input[type="number"], .imp-form select, .imp-form input[type="file"] {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; color: var(--text); width: 100%;
}
.imp-form input[type="file"] { padding: 6px; font-size: 12.5px; }
.imp-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.imp-form button[type="submit"] { margin-top: auto; align-self: flex-start; }
.imp-form button:disabled, .imp-form fieldset:disabled { opacity: .5; cursor: progress; }
/* ---------- card e detalhe do vCenter ---------- */
.kpi-vc { cursor: pointer; border-top-color: #38bdf8; }
.kpi-vc:hover { border-color: var(--accent); }
.modal { position: fixed; inset: 0; z-index: 40; background: #050c0dcc; display: grid; place-items: start center; padding: 4vh 16px; overflow: auto; }
.modal-card { position: relative; width: min(1180px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px 22px; box-shadow: 0 20px 60px #000a; }
.modal-card h2 { margin: 0 0 6px; font-size: 17px; padding-right: 30px; }
.modal-card section { margin-top: 16px; }
.modal-card h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--text); }
.vc-kv { grid-template-columns: 140px 1fr; }
.vc-nodes { margin-top: 6px; }
.vc-table td { vertical-align: top; }
.vc-table tbody tr { cursor: default; }
.vc-bar { height: 5px; background: var(--panel-2); border-radius: 999px; margin: 5px 0 3px; overflow: hidden; width: 160px; max-width: 100%; }
.vc-bar span { display: block; height: 100%; background: var(--ok); }
.vc-bar span.mid { background: var(--warning); }
.vc-bar span.hi { background: var(--critical); }
.vc-kind { cursor: pointer !important; }
.vc-kind:hover td { background: #2dd4bf0d; }
.vc-caret { color: var(--accent); display: inline-block; width: 12px; }
.vc-ds > td { padding: 0 0 6px 22px; }
.vc-total td { border-top: 1px solid var(--border); }
.vc-warn { color: var(--warning); }
.vc-crit { color: #ff7b7b; }
.vc-note { font-size: 12px; margin-top: 6px; }
.vc-msg { font-family: Consolas, "Cascadia Mono", monospace; font-size: 11.5px; word-break: break-word; }
#tb-vc-types tbody tr, #tb-vc-svc tbody tr, #tb-vc-recent tbody tr { cursor: default; }

/* ---------- login e configurações ---------- */
.auth { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 30%, #0f2a2a 0%, var(--bg) 70%); }
.auth-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 26px 22px; display: flex; flex-direction: column; box-shadow: 0 20px 60px #0008; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: .3px; margin-bottom: 14px; }
.auth-brand .brand-mark { width: 40px; height: 40px; }
.auth-card h2 { margin: 0 0 4px; font-size: 16px; text-align: center; }
.auth-card p { margin: 0 0 6px; font-size: 12.5px; text-align: center; }
.auth-card label { display: flex; flex-direction: column; gap: 4px; margin: 7px 0; font-size: 12.5px; color: var(--muted); }
.auth-card input { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--text); width: 100%; outline: none; }
.auth-err { color: #ff7b7b; font-size: 12.5px; min-height: 18px; margin-top: 4px; }
.auth-actions { display: flex; gap: 8px; margin-top: 6px; }
.auth-actions .btn.primary { flex: 1; padding: 9px; }
.user-box { border-top: 1px solid var(--border); padding: 10px 8px 0; font-size: 12px; line-height: 1.5; }
.user-name { font-weight: 600; color: var(--text); }
.user-links { display: flex; gap: 12px; margin-top: 4px; }
.user-links a { color: var(--accent); text-decoration: none; }
.usr-form { margin-bottom: 14px; }
.usr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.usr-buttons { display: flex; gap: 8px; margin-top: 8px; }
.usr-act { white-space: nowrap; text-align: right; }
.usr-act .btn { padding: 3px 10px; font-size: 12px; margin-left: 6px; }
#usr-table tbody tr { cursor: default; }
.sec-form { max-width: 760px; }
.sec-row { padding: 12px 0; border-bottom: 1px solid #172e2c; display: grid; gap: 4px; font-size: 13px; }
.sec-row .muted { font-size: 12.5px; }
.sec-row code { color: var(--text); }
.sec-nums { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.sec-nums label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.sec-nums input { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); width: 150px; }
.sec-fixed { border-bottom: 0; }
.imp-progress { margin-top: 10px; font-size: 12.5px; }
.imp-track { height: 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
.imp-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, var(--accent)); border-radius: 999px; transition: width .4s ease; }
.imp-progress.indeterminate .imp-track span { width: 35%; animation: imp-slide 1.3s ease-in-out infinite; }
@keyframes imp-slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.imp-ptext { margin-top: 6px; color: var(--text); }
.imp-pdetail { margin-top: 2px; font-size: 12px; word-break: break-all; }
.imp-pdetail:empty { display: none; }
.imp-result { font-size: 12.5px; margin-top: 10px; }
.imp-result.ok { color: var(--ok); }
.imp-result.err { color: #ff7b7b; }
.imp-result ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.current-tag { font-size: 11px; color: var(--accent); border: 1px solid #2dd4bf55; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
#imp-collections td { white-space: nowrap; }
#imp-collections .btn { padding: 3px 10px; font-size: 12px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .span-4 { grid-column: span 6; }
  .topo-body { grid-template-columns: 1fr; grid-template-rows: minmax(420px, 1fr) auto; }
  .view-topo.active { height: auto; }
  .cy-wrap { height: 60vh; }
}
@media (max-width: 760px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 12px; overflow-x: auto; }
  .brand { padding: 0; }
  .nav { flex-direction: row; }
  .sidebar-foot { display: none; }
  .main { padding: 0 16px 16px; }
  .span-4, .span-6 { grid-column: span 12; }
  input[type="search"] { min-width: 0; flex: 1; }
}

/* ---------- IA › Assessment Broadcom VCF ---------- */
.as-head { margin-bottom: 14px; display: grid; gap: 8px; border-left: 4px solid var(--ok); }
.as-head.v-impeditivo { border-left-color: var(--critical); }
.as-head.v-atencao { border-left-color: var(--warning); }
.as-verdict { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.as-kpis { margin: 4px 0 0; }
.as-note { font-size: 12px; }
.as-section { margin-bottom: 14px; }
.as-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid #172e2c; }
.as-item:first-of-type { border-top: 0; }
.as-title { font-weight: 600; }
.as-detail { color: #c4dbd8; margin-top: 3px; line-height: 1.45; }
.as-rec { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.as-rec b { color: #bfe0dc; font-weight: 600; }
.as-ev { margin-top: 6px; }
.as-ev summary { cursor: pointer; color: var(--accent); font-size: 12.5px; margin-bottom: 6px; }
.as-ref { color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.as-ref:hover { color: var(--accent); }
.as-sources a { color: var(--accent); font-size: 13px; line-height: 1.8; }
@media (max-width: 760px) { .as-item { grid-template-columns: 1fr; gap: 4px; } }
.ai-card { border-left: 4px solid #a78bfa; }
.ai-setup { display: grid; gap: 10px; margin-top: 8px; line-height: 1.5; }
.ai-setup a, .ai-actions a { color: var(--accent); }
.ai-key { display: flex; gap: 8px; max-width: 520px; }
.ai-key input { flex: 1; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); }
.ai-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ai-card .as-note a { color: var(--accent); }
.ai-h { margin: 14px 0 4px; font-size: 13px; }
.ai-cmd { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; user-select: all; }
.ai-api { margin-top: 14px; }
.ai-api > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.ai-payload { max-height: 320px; overflow: auto; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 11.5px; white-space: pre-wrap; margin-top: 10px; }
.ai-out { line-height: 1.55; color: #d3e6e3; }
.ai-out:not(:empty) { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 4px; }
.ai-out h3, .ai-out h4 { color: #bfe0dc; margin: 16px 0 6px; font-size: 14.5px; }
.ai-out ul, .ai-out ol { margin: 4px 0 8px; padding-left: 22px; }
.ai-out li { margin: 3px 0; }
.ai-out p { margin: 6px 0; }
.ai-out blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--warning); color: #f6c46a; background: #f59e0b10; }
.ai-cursor { color: #a78bfa; animation: ai-blink 1s steps(2) infinite; }
@keyframes ai-blink { 50% { opacity: 0; } }

/* ---------- IA › Melhorias e pontos de atenção ---------- */
.mh-head { margin-bottom: 14px; }
.mh-kpis { margin: 0 0 8px; }
.mh-note { font-size: 12.5px; line-height: 1.5; }
.mh-item { margin-bottom: 10px; border-left: 4px solid var(--info); }
.mh-item.p-alta { border-left-color: var(--critical); }
.mh-item.p-media { border-left-color: var(--warning); }
.mh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.mh-cat { color: #bfe0dc; font-weight: 600; }
.mh-src { color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.mh-n { margin-left: auto; color: var(--muted); }
.mh-title { font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.mh-detail { color: #c4dbd8; margin-top: 3px; line-height: 1.45; }
.mh-rec { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.mh-rec b { color: #bfe0dc; font-weight: 600; }
.mh-foot { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.mh-ev { flex: 1; min-width: 260px; }
.mh-ev summary { cursor: pointer; color: var(--accent); font-size: 12.5px; }
.mh-ev ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: #c4dbd8; max-height: 260px; overflow: auto; word-break: break-word; }
.mh-btn { font-size: 12px; padding: 4px 10px; text-decoration: none; }

/* ---------- configurações de um objeto (js/objconfig.js) ---------- */
.cfg-head .ptype { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.cfg-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.cfg-block { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; margin: 0 !important; }
.cfg-block.wide { grid-column: 1 / -1; }
.cfg-kv { grid-template-columns: minmax(150px, 40%) 1fr; }
.cfg-kv dd { overflow-wrap: anywhere; }
.cfg-dg { margin-top: 10px; }
.cfg-dg:first-child { margin-top: 0; }
.cfg-dg-head { margin-bottom: 4px; font-size: 13px; }
.cfg-sub { margin: 14px 0 4px; font-size: 13px; }
.cfg-sub:first-child { margin-top: 0; }
.cfg-health { margin: 4px 0; }
.cfg-health summary { cursor: pointer; padding: 3px 0; }
.cfg-health ul { list-style: none; margin: 4px 0 8px 14px; padding: 0; display: grid; gap: 3px; }
.cfg-link { color: var(--accent, #2dd4bf); cursor: pointer; text-decoration: underline dotted; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
@media (max-width: 860px) { .cfg-grid { grid-template-columns: 1fr; } }

/* ---------- licenciamento (js/licenciamento.js) ---------- */
#view-licenciamento .card { margin-bottom: 14px; }
.lic-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lic-findings li { padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; }
.lic-findings .muted { margin-top: 3px; }
tr.lic-stale td { opacity: .6; }
.kpi-sub { font-size: 11.5px; margin-top: 2px; }
#view-licenciamento td.mono { white-space: nowrap; }

/* Dimensionamento de VMs */
.rs-head p { margin: 0 0 10px; }
.rs-use { display: grid; gap: 3px; font-size: 12px; }
.rs-use .bar { position: relative; overflow: visible; }
.rs-use .bar i { position: absolute; top: -3px; width: 2px; height: 14px; background: #e2e8f0; margin-left: -1px; border-radius: 1px; }
.rs-arrow { font-weight: 700; white-space: nowrap; }
.rs-arrow.over { color: #a3e635; }
.rs-arrow.under { color: #ef4444; }
.rs-notes { font-size: 12px; min-width: 260px; max-width: 360px; }
.rs-notes div + div { margin-top: 3px; }
.rs-rules ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
#view-dimensionamento td.nowrap, #view-hosts td.nowrap { white-space: nowrap; }
.rs-search { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.rs-search:focus-within { border-color: #2dd4bf; }
.rs-search span { opacity: .7; font-size: 13px; }
#rs-q { min-width: 300px; border: 0; background: transparent; outline: none; padding: 7px 0; color: inherit; }

.rs-sort { margin-left: 4px; font-size: 10px; opacity: .45; }
#view-dimensionamento th.sorted, #view-hosts th.sorted { color: #2dd4bf; }
#view-dimensionamento th.sorted .rs-sort, #view-hosts th.sorted .rs-sort { opacity: 1; }
#view-dimensionamento th.sortable, #view-hosts th.sortable { user-select: none; white-space: nowrap; }
#hs-q { min-width: 300px; border: 0; background: transparent; outline: none; padding: 7px 0; color: inherit; }
#view-hosts .card + .card, #view-hosts .card + .toolbar { margin-top: 12px; }

/* Exportar */
.exp-seg { align-items: center; }
.exp-seg .exp-label { padding: 0 10px; font-size: 12.5px; opacity: .75; }
.exp-seg button:disabled { opacity: .6; cursor: wait; }
.exp-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin: 12px 0; }
.exp-sec { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); cursor: pointer; }
.exp-sec input { margin-top: 3px; }
.exp-sec span { display: grid; gap: 2px; }
.exp-sec small { font-size: 11.5px; }
.exp-sec.exp-off { opacity: .55; }
.exp-actions { margin-top: 6px; }

/* Transferência de arquivos */
.tr-drop { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--border); border-radius: 10px; cursor: pointer; text-align: center; margin: 10px 0; }
.tr-drop:hover, .tr-drop.over { border-color: #2dd4bf; background: rgba(45, 212, 191, .06); }
.tr-drop-icon { font-size: 26px; opacity: .7; }
.tr-send { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tr-send input[type=text] { flex: 1 1 280px; }
.tr-progress { display: grid; gap: 4px; margin-top: 10px; }
.tr-progress .bar span { background: #2dd4bf; transition: width .2s; }
.tr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-head h3 { margin: 0; flex: 1; }
.tr-actions { white-space: nowrap; }
.tr-actions .btn { padding: 3px 9px; font-size: 12px; text-decoration: none; display: inline-block; }
.tr-actions .btn.danger { color: #f87171; }
tr.tr-partial td { opacity: .6; }

/* Recomendações e observações do relatório */
.exp-notes.has-notes { border-color: #2dd4bf88; color: var(--accent); }
.exp-notes.has-notes::after { content: " ✓"; }
.notes-card { width: min(820px, 100%); }
#notes-text { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel-2); color: inherit; font: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical; min-height: 220px; }
#notes-text:focus { outline: none; border-color: #2dd4bf; }
.notes-actions { margin-top: 12px; }

/* Coluna Sugestão (ação sugerida) */
.rs-sugg { color: #93c5fd; }
.rs-sugg div::before { content: "→ "; opacity: .7; }
.exp-sugg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.exp-sugg input { accent-color: #2dd4bf; }
body.no-sugg .rs-sugg, body.no-sugg .sugg-col, body.no-sugg [data-hs-sort="sugg"], body.no-sugg [data-rs-sort="sugg"] { display: none; }
