
.alerts-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.alerts-filters label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

.alerts-filters button {
  min-height: 46px;
  margin: 0;
}

.alerts-secondary-button {
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.alerts-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.alerts-main-panel {
  margin-bottom: 18px;
}

.alerts-card-list {
  display: grid;
  gap: 10px;
}

.alert-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.alert-card:hover {
  background: #eef5f2;
}

.alert-card-marker {
  width: 10px;
  height: 36px;
  border-radius: 999px;
  background: #94a3b8;
}

.alert-card.danger .alert-card-marker { background: #dc2626; }
.alert-card.warning .alert-card-marker { background: #f59e0b; }
.alert-card.success .alert-card-marker { background: #16a34a; }

.alert-card small {
  color: var(--muted);
}

.alerts-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.alerts-entity-list {
  display: grid;
  gap: 8px;
}

.alert-entity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.alert-entity-row:hover {
  background: #eef5f2;
}

.alert-entity-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-change {
  min-width: 78px;
  text-align: right;
  font-weight: 900;
}

.alert-change.negative { color: #b91c1c; }
.alert-change.positive { color: #15803d; }
.alert-change.neutral { color: var(--muted); }

.alert-value {
  min-width: 110px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .alerts-filters,
  .alerts-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .alerts-filters,
  .alerts-summary-grid,
  .alerts-tables-grid {
    grid-template-columns: 1fr;
  }
}
