/* ============================================================
   OKY — Alerts page (redesign)
   Pixel-perfect implementation of Figma "Dashboard · Alerts".

   Reuses the redesigned light/blue palette + page frame from
   dashboard.css (--d-* tokens, .p-main.ov-active gutters + aura).
   Everything here is scoped under `.pg-alerts` so it can't bleed
   into the other (not-yet-redesigned) views. Severity drives the
   card tint + dot/icon color: critical/high = red, everything else
   = neutral with a blue accent.
   ============================================================ */

.pg-alerts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ----- header --------------------------------------------------- */
.pg-alerts-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pg-alerts-title {
  font-family: var(--font-mont);
  font-weight: 700;
  font-size: 30px;
  line-height: 33px;
  letter-spacing: -0.025em;
  color: var(--d-ink);
  margin: 0;
}
.pg-alerts-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--d-muted);
  margin: 0;
}

/* ----- list ----------------------------------------------------- */
.pg-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 625px;
}

/* ----- card ----------------------------------------------------- */
.pg-alerts-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--d-card);
  border: 1px solid rgba(229, 229, 229, 0.55);
  border-radius: 16px;
  box-shadow: var(--d-shadow-soft);
  padding: 16px 18px;
}

/* info / lower severity — faint blue wash */
.pg-alerts-card.info {
  background: #f6f9ff;
  border-color: rgba(21, 93, 252, 0.10);
}

/* critical / high — red wash */
.pg-alerts-card.danger {
  background: #fdf2f2;
  border-color: rgba(110, 4, 4, 0.10);
}

/* ----- icon tile ------------------------------------------------ */
.pg-alerts-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--d-card);
  border: 1px solid var(--d-line-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pg-alerts-card.danger .pg-alerts-icon { color: var(--d-danger-ink); }
.pg-alerts-card.info   .pg-alerts-icon { color: var(--d-blue); }

/* small severity dot, layered on the tile icon */
.pg-alerts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pg-alerts-card.danger .pg-alerts-dot { background: #e7000b; }
.pg-alerts-card.info   .pg-alerts-dot { background: var(--d-blue); }

/* ----- body ----------------------------------------------------- */
.pg-alerts-body { min-width: 0; }
.pg-alerts-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: var(--d-ink);
  margin: 0 0 4px;
}
.pg-alerts-msg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--d-muted);
  margin: 0 0 6px;
}
.pg-alerts-time {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--d-faint);
}

/* ----- empty state ---------------------------------------------- */
.pg-alerts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  max-width: 625px;
  padding: 48px 24px;
  background: var(--d-card);
  border: 1px solid rgba(229, 229, 229, 0.55);
  border-radius: 18px;
  box-shadow: var(--d-shadow-card);
}
.pg-alerts-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--d-safe-soft);
  color: var(--d-safe-ink);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.pg-alerts-empty h4 {
  font-family: var(--font-mont);
  font-weight: 600;
  font-size: 15px;
  color: var(--d-ink);
  margin: 0;
}
.pg-alerts-empty p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  color: var(--d-muted);
  margin: 0;
  max-width: 340px;
}
