/* Armazenamento (NAS) */
.ns-units { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ns-units button { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; cursor: pointer; text-align: left; }
.ns-units button svg { width: 16px; height: 16px; color: hsl(var(--muted-fg)); }
.ns-units button b { display: block; font-size: 13px; } .ns-units button small { font-size: 11.5px; color: hsl(var(--muted-fg)); }
.ns-units button.on { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .08); }
.ns-units button.on svg { color: hsl(var(--primary)); }

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

.ns-fold { margin-bottom: 14px; }
.ns-fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none; }
.ns-fold > summary::-webkit-details-marker { display: none; }
.ns-fold > summary h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ns-fold > summary h3 svg { width: 16px; height: 16px; }
.ns-fold-b { font-size: 12px; color: hsl(var(--muted-fg)); }
.ns-fold-x { margin-left: auto; color: hsl(var(--muted-fg)); display: inline-flex; transition: transform .15s; }
.ns-fold-x svg { width: 16px; height: 16px; }
.ns-fold:not([open]) .ns-fold-x { transform: rotate(-90deg); }
.ns-fold-c { border-top: 1px solid hsl(var(--border)); }
.ns-empty { padding: 16px; }

.ns-nas { padding: 14px 16px 16px; }
.ns-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ns-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; }
.ns-gauges small { font-size: 12px; font-weight: 600; color: hsl(var(--muted-fg)); }
.ns-gauges b { font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.ns-gauges .ns-bar { grid-column: 1 / -1; width: 100%; height: 7px; margin: 0; }
.ns-gauges .muted { grid-column: 1 / -1; font-size: 11.5px; }
.ns-spec { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 12.5px; }
.ns-spec dt { color: hsl(var(--muted-fg)); } .ns-spec dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.ns-fans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ns-fan { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: hsl(var(--muted)); }
.ns-fan svg { width: 13px; height: 13px; } .ns-fan.crit { background: hsl(var(--danger) / .14); color: hsl(var(--danger)); }

.ns-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: hsl(var(--muted)); overflow: hidden; vertical-align: middle; }
.ns-bar i { display: block; height: 100%; border-radius: 3px; background: hsl(var(--success)); }
.ns-bar.warn i { background: hsl(var(--warning)); } .ns-bar.crit i { background: hsl(var(--danger)); }
.ns-bar.big { width: 100%; height: 12px; border-radius: 6px; } .ns-bar.big i { border-radius: 6px; }
.ns-ok { color: inherit; } .ns-warn { color: hsl(38 92% 38%); font-weight: 600; } .dark .ns-warn { color: hsl(var(--warning)); } .ns-crit { color: hsl(var(--danger)); font-weight: 700; }

.ns-vols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; padding: 14px 16px 16px; }
.ns-vol { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.ns-vol-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ns-vol-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; } .ns-vol-h svg { width: 15px; height: 15px; }
.ns-vol-n { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; color: hsl(var(--muted-fg)); }
.ns-vol-n b { font-size: 26px; font-weight: 750; color: hsl(var(--fg)); font-variant-numeric: tabular-nums; }
.ns-vol-n b.ns-crit { color: hsl(var(--danger)); } .ns-vol-n span:last-child { margin-left: auto; }
.ns-pill { font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.ns-pill.ok { background: hsl(var(--success) / .14); color: hsl(142 70% 30%); } .dark .ns-pill.ok { color: hsl(var(--success)); }
.ns-pill.warn { background: hsl(var(--warning) / .18); color: hsl(38 92% 32%); } .dark .ns-pill.warn { color: hsl(var(--warning)); }
.ns-pill.crit { background: hsl(var(--danger) / .14); color: hsl(var(--danger)); }

.ns-bays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid hsl(var(--border)); }
.ns-bay { width: 46px; height: 46px; border-radius: 8px; border: 1.5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font: inherit; line-height: 1.05; }
.ns-bay small { font-size: 9.5px; font-weight: 700; letter-spacing: .03em; } .ns-bay b { font-size: 14px; }
.ns-bay.ok { background: hsl(var(--success) / .16); border-color: hsl(var(--success)); color: hsl(142 70% 26%); } .dark .ns-bay.ok { color: hsl(var(--success)); }
.ns-bay.warn { background: hsl(var(--warning) / .2); border-color: hsl(var(--warning)); color: hsl(38 92% 30%); } .dark .ns-bay.warn { color: hsl(var(--warning)); }
.ns-bay.crit { background: hsl(var(--danger) / .16); border-color: hsl(var(--danger)); color: hsl(var(--danger)); }
.ns-bay.empty, .ns-bay.off { background: hsl(var(--muted)); border-color: hsl(var(--border)); color: hsl(var(--muted-fg)); }
.ns-legend { margin-left: auto; display: flex; gap: 12px; font-size: 11.5px; color: hsl(var(--muted-fg)); }
.ns-legend em { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ns-legend .lg-ok { background: hsl(var(--success)); } .ns-legend .lg-warn { background: hsl(var(--warning)); } .ns-legend .lg-crit { background: hsl(var(--danger)); } .ns-legend .lg-empty { background: hsl(var(--border)); }
.ns-tbl td { font-size: 13px; vertical-align: middle; } .ns-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ns-tbl tr.flash td { background: hsl(var(--primary) / .1); transition: background .3s; }
.ns-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: hsl(var(--border)); }
.ns-dot.ok { background: hsl(var(--success)); } .ns-dot.warn { background: hsl(var(--warning)); } .ns-dot.crit { background: hsl(var(--danger)); }

.ns-perfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; padding: 14px 16px 16px; }
.ns-perf { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ns-ch-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.ns-chart { min-height: 120px; } .ns-chart.sm { min-height: 90px; }
.ns-svg { display: block; max-width: 100%; height: auto; }
.ns-grid { stroke: hsl(var(--border)); stroke-width: 1; }
.ns-ax { font: 9.5px Inter, system-ui, sans-serif; fill: hsl(var(--muted-fg)); }
.ns-line { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke: hsl(var(--primary)); }
.ns-line.cpu { stroke: hsl(var(--success)); } .ns-line.vol { stroke: hsl(var(--violet)); }
.ns-area { stroke: none; fill: hsl(var(--primary) / .1); } .ns-area.cpu { fill: hsl(var(--success) / .1); } .ns-area.vol { fill: hsl(var(--violet) / .12); }
.ns-leg { font-size: 11px; color: hsl(var(--muted-fg)); text-align: right; }

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

@media (max-width: 1100px) { .ns-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ns-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ns-gauges { grid-template-columns: 1fr; } .ns-spec { grid-template-columns: max-content minmax(0, 1fr); } .ns-vols, .ns-perfs { grid-template-columns: 1fr; } .ns-legend { margin-left: 0; } }

.ns-nets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ns-net { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: hsl(var(--muted)); }
.ns-net svg { width: 12px; height: 12px; } .ns-net small { color: hsl(var(--muted-fg)); } .ns-net.crit { background: hsl(var(--danger) / .14); color: hsl(var(--danger)); }
.ns-net.down { background: transparent; border: 1px dashed hsl(var(--border)); color: hsl(var(--muted-fg)); }
