
/* File: src/MeshHealth.Dashboard/asset/css/styles-enterprise.css */
/* Componentes enterprise (Task Manager, etc.) — cargar antes de styles.css */
.tm-shell {
  overflow: hidden;
  background: var(--mesh-bg-card, #1a1f2e);
  transition: background 0.35s ease;
}
.tm-layout {
  display: flex;
  min-height: calc(400px * var(--mesh-density, 0.7));
}
.tm-sidebar {
  width: calc(220px * var(--mesh-density, 0.7));
  flex-shrink: 0;
  background: var(--mesh-bg-subtle, #151a27);
  border-right: 1px solid var(--mesh-border, #2a3344);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: background 0.35s ease, border-color 0.25s ease;
}
.tm-tile {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.875rem;
  border: none;
  border-bottom: 1px solid var(--mesh-border, #1e293b);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.2s;
}
.tm-tile:hover {
  background: color-mix(in srgb, var(--mesh-accent, #14b8a6) 6%, var(--mesh-bg-panel, #0f172a));
}
.tm-tile.active {
  background: color-mix(in srgb, var(--mesh-accent, #14b8a6) 12%, var(--mesh-bg-panel, #0f172a));
  box-shadow: inset 3px 0 0 var(--mesh-accent, #00bcf2);
}
.tm-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}
.tm-tile-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mesh-text, #e2e8f0);
}
.tm-tile-pct {
  font-size: 0.75rem;
  color: var(--mesh-text-muted, #94a3b8);
  font-variant-numeric: tabular-nums;
}
.tm-tile-spark {
  height: 36px;
  margin-bottom: 0.25rem;
}
.tm-tile-sub {
  font-size: 0.625rem;
  color: var(--mesh-text-dim, #64748b);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--mesh-bg-panel, transparent);
}
.tm-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tm-main-title {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--mesh-text, #f1f5f9);
}
.tm-main-subtitle {
  font-size: 0.8125rem;
  color: var(--mesh-text-dim, #64748b);
  text-align: right;
  max-width: 55%;
}

.tm-chart-wrap {
  position: relative;
  flex: 1;
  min-height: calc(280px * var(--mesh-density, 0.7));
  margin-bottom: calc(1rem * var(--mesh-density, 0.7));
}
.tm-chart-wrap--grid {
  background-color: color-mix(in srgb, var(--mesh-bg-panel) 92%, var(--mesh-bg) 8%);
  background-image:
    linear-gradient(var(--mesh-chart-grid, rgba(255, 255, 255, 0.05)) 1px, transparent 1px),
    linear-gradient(90deg, var(--mesh-chart-grid, rgba(255, 255, 255, 0.05)) 1px, transparent 1px);
  background-size: 48px 48px;
  border-radius: 0.25rem;
  padding: 0.5rem 0.25rem 1.25rem 0.5rem;
  border: 1px solid var(--mesh-border, #1e293b);
}
.tm-chart-y-label,
.tm-chart-y-max,
.tm-chart-x-label,
.tm-chart-x-end {
  position: absolute;
  font-size: 0.6875rem;
  color: var(--mesh-text-dim, #64748b);
  z-index: 1;
}
.tm-chart-y-label { left: 0.5rem; top: 0.5rem; }
.tm-chart-y-max { right: 0.75rem; top: 0.5rem; }
.tm-chart-x-label { left: 0.5rem; bottom: 0.25rem; }
.tm-chart-x-end { right: 0.75rem; bottom: 0.25rem; }
#tm-main-chart {
  width: 100% !important;
  height: 100% !important;
}
.tm-chart-wrap canvas,
.tm-tile-spark canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.tm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem 1.25rem;
  border-top: 1px solid var(--mesh-border, #1e293b);
  padding-top: 1rem;
}
.tm-stat-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--mesh-text-dim, #64748b);
  margin-bottom: 0.125rem;
}
.tm-stat-value {
  display: block;
  font-size: 0.8125rem;
  color: var(--mesh-text, #e2e8f0);
  font-variant-numeric: tabular-nums;
}

.device-section-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--mesh-border, #1e293b);
}

.device-section-tab {
  font-size: 0.8125rem;
  color: var(--mesh-text-muted, #94a3b8);
  padding: 0.5rem 1rem;
  border-radius: var(--mesh-radius, 0.5rem);
  border: 1px solid var(--mesh-border-strong, #334155);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.device-section-tab:hover {
  color: var(--mesh-text, #e2e8f0);
  transform: translateY(-1px);
}

.device-section-tab.active {
  color: var(--mesh-accent-hover, #5eead4);
  background: color-mix(in srgb, var(--mesh-accent, #14b8a6) 12%, transparent);
  border-color: color-mix(in srgb, var(--mesh-accent, #14b8a6) 40%, transparent);
  animation: menu-tab-activate 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mesh-accent, #14b8a6) 18%, transparent);
}
