/* Alarm */
.ai {
  display: flex;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 3px;
  margin-bottom: 2px;
  font-size: 9px;
  border-left: 3px solid;
}

.ai.cr {
  border-color: var(--crit);
  background: rgba(239, 68, 68, 0.07);
}

.ai.hi {
  border-color: var(--high);
  background: rgba(245, 158, 11, 0.05);
}

.ai .at {
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

/* Alarm filter (dropdown) */
.alarm-filter {
  position: relative;
}

.alarm-filter__summary {
  list-style: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--wing-card-alpha);
  color: var(--text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  user-select: none;
  white-space: nowrap;
}

.alarm-filter__summary::-webkit-details-marker {
  display: none;
}

.alarm-filter__menu {
  position: absolute;
  right: 0;
  top: 22px;
  z-index: 2000;
  min-width: 170px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--wing-glass-dense);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

.alarm-filter__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  color: var(--text);
  user-select: none;
}

.alarm-filter__row:hover {
  background: rgba(59, 130, 246, 0.08);
}

.alarm-filter__row input {
  cursor: pointer;
}

.alarm-filter__cnt {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}

.alarm-filter__sep {
  height: 1px;
  background: var(--wing-border);
  margin: 4px 0;
}
