/* Virtualização (VMware) */
.vm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.vm-tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vm-tile small { display: flex; align-items: center; gap: 6px; color: hsl(var(--muted-fg)); font-size: 12px; font-weight: 600; }
.vm-tile small svg { width: 14px; height: 14px; }
.vm-tile b { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vm-tile b small { display: inline; font-size: .55em; color: hsl(var(--muted-fg)); }
.vm-tile > span { font-size: 12px; color: hsl(var(--muted-fg)); overflow: hidden; text-overflow: ellipsis; }
.vm-tile.warn { border-color: hsl(var(--warning) / .6); } .vm-tile.crit { border-color: hsl(var(--danger) / .6); }
.vm-tile.crit b { color: hsl(var(--danger)); }

.vm-att { margin-bottom: 14px; padding-bottom: 6px; }
.vm-att-r { display: flex; align-items: flex-start; gap: 10px; padding: 7px 16px; font-size: 13px; }
.vm-att-r svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: hsl(38 92% 42%); }
.vm-att-r.crit svg { color: hsl(var(--danger)); }
.vm-att-r + .vm-att-r { border-top: 1px dashed hsl(var(--border)); }

.vm-hvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-bottom: 14px; }
.vm-hv { padding: 16px; min-width: 0; }
.vm-hv-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vm-hv-h > div { flex: 1; min-width: 0; }
.vm-hv-h b { display: block; font-size: 15px; }
.vm-hv-h small { color: hsl(var(--muted-fg)); font-size: 12px; }
.vm-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.vm-ic svg { width: 15px; height: 15px; }
.vm-ic.big { width: 40px; height: 40px; border-radius: 12px; } .vm-ic.big svg { width: 20px; height: 20px; }
.vm-ic.ok { background: hsl(var(--success) / .14); color: hsl(var(--success)); }
.vm-ic.warn { background: hsl(var(--warning) / .16); color: hsl(38 92% 40%); }
.vm-ic.crit { background: hsl(var(--danger) / .14); color: hsl(var(--danger)); }
.vm-pill { font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.vm-pill.ok { background: hsl(var(--success) / .14); color: hsl(142 70% 30%); } .dark .vm-pill.ok { color: hsl(var(--success)); }
.vm-pill.warn { background: hsl(var(--warning) / .18); color: hsl(38 92% 32%); } .dark .vm-pill.warn { color: hsl(var(--warning)); }
.vm-pill.crit { background: hsl(var(--danger) / .14); color: hsl(var(--danger)); }

.vm-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.vm-gauges > div { background: hsl(var(--muted) / .6); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
.vm-gauges small { font-size: 12px; font-weight: 600; color: hsl(var(--muted-fg)); }
.vm-gauges b { font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.vm-gauges .vm-bar { grid-column: 1 / -1; width: 100%; height: 7px; margin: 0; }
.vm-gauges .muted { grid-column: 1 / -1; font-size: 11.5px; }

.vm-spec { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 6px 14px; margin: 0 0 14px; font-size: 12.5px; }
.vm-spec dt { color: hsl(var(--muted-fg)); }
.vm-spec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }

.vm-ch-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.vm-ch-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; } .vm-ch-h svg { width: 14px; height: 14px; }
.seg-tabs.sm button { padding: 3px 8px; font-size: 11.5px; }
.vm-chart { min-height: 120px; }
.vm-svg { width: 100%; height: auto; display: block; }
.vm-grid { stroke: hsl(var(--border)); stroke-width: 1; }
.vm-ax { font: 10px Inter, system-ui, sans-serif; fill: hsl(var(--muted-fg)); }
.vm-l-cpu { fill: none; stroke: hsl(var(--success)); stroke-width: 1.6; stroke-linejoin: round; }
.vm-l-mem { fill: none; stroke: hsl(var(--primary)); stroke-width: 1.8; stroke-linejoin: round; }
.vm-leg { display: flex; gap: 16px; justify-content: center; font-size: 11.5px; color: hsl(var(--muted-fg)); margin-top: 2px; }
.vm-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.vm-leg i.cpu { background: hsl(var(--success)); } .vm-leg i.mem { background: hsl(var(--primary)); }

.vm-sec { margin-bottom: 14px; }
.vm-sec .card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vm-filters { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vm-filters .search-box { width: 230px; }
.vm-tbl td { vertical-align: middle; font-size: 13px; }
.vm-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm-vms tr.vm-click { cursor: pointer; }
.vm-nm { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.vm-nm > svg { width: 15px; height: 15px; color: hsl(var(--muted-fg)); flex-shrink: 0; }
.vm-nm small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: hsl(38 92% 38%); }
.vm-nm small svg { width: 11px; height: 11px; }
.vm-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.vm-st svg { width: 13px; height: 13px; }
.vm-st.ok { color: hsl(142 70% 34%); } .dark .vm-st.ok { color: hsl(var(--success)); }
.vm-st.off { color: hsl(var(--muted-fg)); } .vm-st.warn { color: hsl(38 92% 38%); }
.vm-os { max-width: 200px; font-size: 12.5px; }
.vm-cfg { white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.vm-cfg small { display: block; font-weight: 400; color: hsl(var(--muted-fg)); font-size: 11.5px; }
.vm-nm small.vm-sub { color: hsl(var(--muted-fg)); }
.vm-tbl td:first-child b { white-space: nowrap; }
.vm-unit { font-weight: 600; }
.drawer .vm-spec, .vm-spec.one { grid-template-columns: max-content minmax(0, 1fr); }
.vm-hn { display: block; font-size: 12.5px; white-space: nowrap; }
.vm-hn small { display: block; color: hsl(var(--muted-fg)); font-size: 11.5px; }
.vm-mc { white-space: nowrap; min-width: 150px; }
.vm-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: hsl(var(--muted)); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.vm-bar i { display: block; height: 100%; border-radius: 3px; background: hsl(var(--success)); }
.vm-bar.warn i { background: hsl(var(--warning)); } .vm-bar.crit i { background: hsl(var(--danger)); }
.vm-pct { display: inline-block; vertical-align: middle; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vm-pct small { display: block; font-size: 11px; color: hsl(var(--muted-fg)); }
.vm-crit { color: hsl(var(--danger)); font-weight: 700; } .vm-warn { color: hsl(38 92% 38%); font-weight: 600; } .dark .vm-warn { color: hsl(var(--warning)); }
.vm-foot { display: flex; gap: 6px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid hsl(var(--border)); font-size: 12px; }
.vm-foot svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

.vm-dw-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12.5px; }
.vm-h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-fg)); margin: 16px 0 8px; }
.vm-disk { display: grid; grid-template-columns: 70px auto 52px 1fr; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.vm-disk .vm-bar { width: 90px; margin: 0; }
.vm-disk .muted { font-size: 11.5px; }

@media (max-width: 1200px) { .vm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vm-hvs { grid-template-columns: 1fr; } .vm-gauges { grid-template-columns: 1fr; } .vm-filters { margin-left: 0; width: 100%; } .vm-filters .search-box { width: 100%; } }

.vm-diag { margin-bottom: 14px; }
.vm-diag summary { cursor: pointer; padding: 14px 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.vm-diag summary svg { width: 15px; height: 15px; }
.vm-diag-b { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.vm-diag-b .vm-spec { margin: 4px 0; }
.vm-diag code { font-size: 11.5px; }

.vm-units { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vm-units button { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.vm-units button svg { width: 16px; height: 16px; color: hsl(var(--muted-fg)); }
.vm-units button b { display: block; font-size: 13px; }
.vm-units button small { display: block; font-size: 11.5px; color: hsl(var(--muted-fg)); }
.vm-units button.on { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .1); }
.vm-units button.on svg { color: hsl(var(--primary)); }
.vm-alloc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vm-alloc > div { background: hsl(var(--muted) / .6); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vm-alloc small { font-size: 11.5px; font-weight: 600; color: hsl(var(--muted-fg)); }
.vm-alloc b { font-size: 17px; font-variant-numeric: tabular-nums; }
.vm-alloc b small { font-size: .65em; }
.vm-alloc .muted { font-size: 11px; }
@media (max-width: 720px) { .vm-alloc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-hv { container-type: inline-size; }
@container (max-width: 600px) { .vm-hv .vm-spec { grid-template-columns: max-content minmax(0, 1fr); } .vm-hv .vm-alloc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* seções minimizáveis (v1.25.11) */
.vm-fold { margin-bottom: 14px; }
.vm-fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none; }
.vm-fold > summary::-webkit-details-marker { display: none; }
.vm-fold > summary h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.vm-fold > summary h3 svg { width: 16px; height: 16px; }
.vm-fold-b { font-size: 12px; color: hsl(var(--muted-fg)); }
.vm-fold-x { margin-left: auto; color: hsl(var(--muted-fg)); display: inline-flex; transition: transform .15s; }
.vm-fold-x svg { width: 16px; height: 16px; }
.vm-fold:not([open]) .vm-fold-x { transform: rotate(-90deg); }
.vm-fold:not([open]) > summary { padding-bottom: 14px; }
.vm-fold-c { border-top: 1px solid hsl(var(--border)); }
.vm-fold .vm-hvs { padding: 14px 16px 16px; margin: 0; }
.vm-fold .vm-hv { box-shadow: none; }
.vm-filters-in { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; margin: 0; }
.vm-fold-c > .vm-att-r:first-child { padding-top: 12px; }
.vm-fold-c > .vm-att-r:last-child { padding-bottom: 12px; }
.vm-perfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; padding: 14px 16px 16px; }
.vm-perf { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.vm-perf .vm-ch-h { font-size: 12px; }
.vm-perf .vm-ax { font-size: 9.5px; }
.vm-perf .vm-leg { font-size: 10.5px; }
.vm-perf .vm-chart { min-height: 90px; }
