/* Dashboard Style - System Monitoring Console */

.view-dashboard {
  animation: fadeIn 0.4s ease-out;
}

.view-dashboard.is-abnormal-view {
  height: calc(100vh - var(--topbar-h) - 40px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.view-dashboard.is-abnormal-view .view-header {
  margin-bottom: 14px;
}

.view-dashboard.is-abnormal-view .dashboard-sub-tabs {
  margin-bottom: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.08);
  padding-bottom: 12px;
}

.view-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.view-header h2 .subtitle {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--primary);
  opacity: 0.85;
  margin-left: 8px;
}

.view-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 172, 132, 0.1);
  border: 1px solid rgba(16, 172, 132, 0.25);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
}

.status-indicator.online .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse-green-dot 1.5s infinite;
}

@keyframes pulse-green-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 172, 132, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 172, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 172, 132, 0); }
}

.dashboard-sub-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 6px;
}

.dashboard-sub-tabs button {
  min-width: 118px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: 700 12px var(--font-mono);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-sub-tabs button.active {
  color: #06101d;
  background: linear-gradient(135deg, var(--primary), #42f59b);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
}

.dashboard-monitor-space {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.kpi-card {
  min-height: 96px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.kpi-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 18px var(--font-mono);
}

.kpi-icon-health {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.16), rgba(0, 242, 254, 0.03) 52%, rgba(255, 255, 255, 0.025) 100%);
  border-color: rgba(0, 242, 254, 0.18);
  box-shadow: inset 0 0 18px rgba(0, 242, 254, 0.08), 0 0 12px rgba(0, 242, 254, 0.08);
}

.kpi-icon-health svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.health-icon-track,
.health-icon-ring {
  fill: none;
  stroke-width: 4;
}

.health-icon-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.health-icon-ring {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 10;
  filter: drop-shadow(0 0 5px var(--primary-glow));
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
}

.health-icon-check {
  fill: none;
  stroke: #dffcff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.55));
}

.kpi-icon-live {
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 172, 132, 0.18), rgba(16, 172, 132, 0.035) 58%, rgba(255, 255, 255, 0.025) 100%);
  border-color: rgba(16, 172, 132, 0.22);
  box-shadow: inset 0 0 18px rgba(16, 172, 132, 0.08), 0 0 12px rgba(16, 172, 132, 0.08);
}

.kpi-icon-live svg {
  width: 44px;
  height: 44px;
  overflow: visible;
}

.live-on-text {
  fill: var(--green);
  font: 900 20px var(--font-mono);
  text-anchor: middle;
  letter-spacing: 0;
  filter: drop-shadow(0 0 7px rgba(16, 172, 132, 0.85));
}

.kpi-icon-alert {
  background:
    radial-gradient(circle at 50% 50%, rgba(238, 82, 83, 0.17), rgba(238, 82, 83, 0.035) 58%, rgba(255, 255, 255, 0.025) 100%);
  border-color: rgba(238, 82, 83, 0.24);
  box-shadow: inset 0 0 18px rgba(238, 82, 83, 0.08), 0 0 12px rgba(238, 82, 83, 0.08);
}

.kpi-icon-alert svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.alert-icon-triangle {
  fill: rgba(238, 82, 83, 0.14);
  stroke: var(--red);
  stroke-width: 2.8;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--red-glow));
}

.alert-icon-mark {
  fill: none;
  stroke: #ffd7d7;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(238, 82, 83, 0.72));
}

.alert-icon-dot {
  fill: #ffd7d7;
  filter: drop-shadow(0 0 5px rgba(238, 82, 83, 0.72));
}

.kpi-icon-sites {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 159, 67, 0.18), rgba(255, 159, 67, 0.035) 58%, rgba(255, 255, 255, 0.025) 100%);
  border-color: rgba(255, 159, 67, 0.24);
  box-shadow: inset 0 0 18px rgba(255, 159, 67, 0.08), 0 0 12px rgba(255, 159, 67, 0.08);
}

.kpi-icon-sites svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.sites-icon-road {
  fill: none;
  stroke: rgba(255, 159, 67, 0.78);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--amber-glow));
}

.sites-icon-node {
  fill: #ffe6c8;
  stroke: var(--amber);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px var(--amber-glow));
}

.sites-icon-node.main {
  fill: var(--amber);
  stroke: #fff1df;
  stroke-width: 2.4;
}

.kpi-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 3px 0;
}

.kpi-trend {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.cyan-text { color: var(--primary); text-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }
.green-text { color: var(--green); text-shadow: 0 0 10px rgba(16, 172, 132, 0.2); }
.violet-text { color: var(--secondary); text-shadow: 0 0 10px rgba(165, 94, 234, 0.2); }
.amber-text { color: var(--amber); text-shadow: 0 0 10px rgba(255, 159, 67, 0.2); }
.red-text { color: var(--red); text-shadow: 0 0 10px rgba(238, 82, 83, 0.2); }

.area-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.area-health-card {
  min-height: 154px;
  padding: 18px;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
}

.area-health-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--primary);
  opacity: 0.9;
  pointer-events: none;
}

.area-health-card.green::before {
  border-left-color: var(--green);
}

.area-health-ring {
  width: 112px;
  height: 112px;
  position: relative;
}

.area-health-ring svg {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 9;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.06);
}

.ring-value {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  filter: drop-shadow(0 0 5px var(--primary-glow));
  transition: stroke-dashoffset 0.35s ease;
}

.area-health-card.green .ring-value {
  stroke: var(--green);
  filter: drop-shadow(0 0 5px var(--green-glow));
}

.area-health-ring strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 800 22px var(--font-mono);
}

.area-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.area-title-row h3 {
  color: #fff;
  font-size: 17px;
  letter-spacing: 0;
}

.area-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.area-metrics span {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.area-metrics b {
  color: #fff;
  font-size: 17px;
}

.network-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.network-kpi-card {
  padding: 16px;
  min-height: 112px;
  border-left: 3px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.network-kpi-card.green { border-left-color: var(--green); }
.network-kpi-card.violet { border-left-color: var(--secondary); }
.network-kpi-card.amber { border-left-color: var(--amber); }

.network-kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  animation: telemetry-scan 3s linear infinite;
  pointer-events: none;
}

@keyframes telemetry-scan {
  0% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(360%); opacity: 0; }
}

.network-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.network-value {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.network-value small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.network-kpi-card p {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
}

.dashboard-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 15px;
}

.monitor-panel {
  padding: 18px;
  min-height: 280px;
}

.panel-heading {
  font-size: 15px;
  color: #fff;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.panel-heading span {
  color: rgba(255, 255, 255, 0.35);
  font: 500 11px var(--font-mono);
  margin-left: 8px;
}

.host-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.host-group header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.host-group h4 {
  color: var(--primary);
  font-size: 13px;
}

.host-group.green h4 { color: var(--green); }
.host-group.violet h4 { color: var(--secondary); }

.host-group header span {
  color: rgba(255, 255, 255, 0.42);
  font: 700 11px var(--font-mono);
}

.host-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.host-row {
  display: grid;
  grid-template-columns: 104px 108px repeat(3, minmax(76px, 1fr)) 82px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.host-name {
  color: #fff;
  font-weight: 800;
}

.host-ip {
  color: rgba(255, 255, 255, 0.42);
}

.risk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 5px;
  border: 1px solid rgba(238, 82, 83, 0.14);
  background: rgba(238, 82, 83, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.risk-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(238, 82, 83, 0.16);
  color: var(--red);
  font: 800 13px var(--font-mono);
}

.risk-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.risk-main strong,
.risk-main small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.risk-main strong {
  color: #fff;
  font-size: 12px;
}

.risk-main small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.abnormal-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.abnormal-list,
.abnormal-map-shell {
  padding: 16px;
  min-height: 0;
}

.abnormal-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.abnormal-list-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.abnormal-card-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.42) rgba(7, 11, 25, 0.55);
}

.abnormal-card-scroll::-webkit-scrollbar {
  width: 8px;
}

.abnormal-card-scroll::-webkit-scrollbar-track {
  background: rgba(7, 11, 25, 0.58);
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 254, 0.07);
}

.abnormal-card-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.58), rgba(238, 82, 83, 0.46));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.18);
}

.abnormal-card-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.78), rgba(238, 82, 83, 0.62));
}

.abnormal-list-head h3,
.abnormal-map-shell h3 {
  color: #fff;
  font-size: 16px;
}

.abnormal-list-head p,
.abnormal-map-shell header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.abnormal-card {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px 12px;
  padding: 12px;
  margin-bottom: 9px;
  border-radius: 6px;
  border: 1px solid rgba(238, 82, 83, 0.14);
  background: rgba(8, 12, 28, 0.76);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.abnormal-card:hover,
.abnormal-card.located {
  transform: translateY(-1px);
  border-color: rgba(238, 82, 83, 0.45);
  background: rgba(238, 82, 83, 0.08);
}

.abnormal-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.abnormal-card-main strong,
.abnormal-card-main small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.abnormal-card-main strong {
  color: #fff;
  font-size: 13px;
}

.abnormal-card-main small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.abnormal-card-metrics {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.offline-count {
  color: var(--red);
  font-weight: 800;
}

.offline-chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.offline-chip {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(238, 82, 83, 0.26);
  background: rgba(238, 82, 83, 0.11);
  color: #ffb0b0;
  font: 700 10px var(--font-mono);
}

.offline-chip.more {
  color: var(--amber);
  border-color: rgba(255, 159, 67, 0.24);
  background: rgba(255, 159, 67, 0.1);
}

.abnormal-map-shell {
  display: flex;
  flex-direction: column;
  position: relative;
}

.abnormal-map-shell header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.abnormal-map-container {
  flex: 1;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.12);
  background: #070b19;
}

.abnormal-map-container.map-dark-mode .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(80%) contrast(100%) saturate(60%) !important;
  transition: filter 0.3s ease;
}

.abnormal-map-container .leaflet-bar {
  background: rgba(14, 21, 46, 0.86) !important;
  border: 1px solid rgba(0, 242, 254, 0.16) !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.abnormal-map-container .leaflet-bar a {
  background: transparent !important;
  color: var(--primary) !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.14) !important;
}

.abnormal-map-container .leaflet-bar a:hover {
  background: rgba(0, 242, 254, 0.12) !important;
  color: #fff !important;
}

.abnormal-map-marker {
  width: 32px !important;
  height: 32px !important;
  margin-left: -16px !important;
  margin-top: -16px !important;
}

.abnormal-map-marker span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(238, 82, 83, 0.92);
  border: 2px solid #ffd5d5;
  color: #fff;
  font: 800 12px var(--font-mono);
  box-shadow: 0 0 0 0 rgba(238, 82, 83, 0.55);
  animation: pulse-red 1.4s infinite;
}

.abnormal-map-marker.selected {
  z-index: 700 !important;
}

.abnormal-map-marker.selected span {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.98), rgba(238, 82, 83, 0.96));
  border: 2px solid #fff2d6;
  color: #fff;
  font-size: 14px;
  box-shadow:
    0 0 0 8px rgba(255, 159, 67, 0.16),
    0 0 22px rgba(255, 159, 67, 0.72),
    0 0 36px rgba(238, 82, 83, 0.38);
  animation: selected-abnormal-pulse 1.25s infinite;
}

@keyframes selected-abnormal-pulse {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.42), 0 0 22px rgba(255, 159, 67, 0.72); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 13px rgba(255, 159, 67, 0), 0 0 26px rgba(255, 159, 67, 0.82); }
  100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255, 159, 67, 0), 0 0 22px rgba(255, 159, 67, 0.72); }
}

.abnormal-map-info-panel {
  position: absolute;
  top: 64px;
  right: 28px;
  z-index: 800;
  width: min(340px, calc(100% - 56px));
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.28);
  background: rgba(7, 11, 25, 0.58);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.56),
    0 0 26px rgba(0, 242, 254, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.abnormal-map-info-panel header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.abnormal-map-info-panel header strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 14px;
}

.abnormal-map-info-meta,
.abnormal-map-info-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.abnormal-map-info-meta span,
.abnormal-map-info-stats span {
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.abnormal-map-info-stats b {
  color: #fff;
  font-size: 13px;
}

.abnormal-map-info-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #0d1530;
  color: #e2e8f0;
  border: 1px solid rgba(0, 242, 254, 0.18);
}

@media (max-width: 1280px) {
  .kpi-grid,
  .network-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-ops-grid,
  .abnormal-layout {
    grid-template-columns: 1fr;
  }

  .abnormal-map-container {
    min-height: 420px;
  }
}

@media (max-width: 840px) {
  .view-header,
  .abnormal-map-shell header {
    flex-direction: column;
  }

  .kpi-grid,
  .area-health-grid,
  .network-kpi-grid {
    grid-template-columns: 1fr;
  }

  .area-health-card {
    grid-template-columns: 1fr;
  }

  .area-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-row {
    grid-template-columns: 1fr 1fr;
  }
}
