/* Central de notificações alinhada ao padrão visual do AprendizPro. */
.page-stack:has(.actionable-alert-list) {
  gap: 16px;
}

.page-stack:has(.actionable-alert-list) .page-heading {
  justify-content: flex-start;
  min-height: 94px;
  padding: 18px 22px;
  gap: 14px;
  border-radius: 20px;
}

.page-stack:has(.actionable-alert-list) .page-heading > div {
  min-width: 0;
}

.page-stack:has(.actionable-alert-list) .page-heading > svg {
  order: -1;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  padding: 14px;
  box-sizing: content-box;
  border-radius: 999px;
  background: #eef1ff;
  color: #2f4cff !important;
  stroke-width: 1.7;
}

.page-stack:has(.actionable-alert-list) .page-heading .eyebrow {
  margin: 0 0 2px;
  color: #8aa0c0;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.page-stack:has(.actionable-alert-list) .page-heading h1 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-stack:has(.actionable-alert-list) .page-heading p:not(.eyebrow) {
  font-size: 12px;
}

.page-stack:has(.actionable-alert-list) .metric-grid {
  padding: 14px;
  gap: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.page-stack:has(.actionable-alert-list) .metric-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 90px;
  padding: 14px 16px;
  column-gap: 7px;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: none;
}

.page-stack:has(.actionable-alert-list) .metric-card:first-child {
  border-color: #aebcff;
  background: #f5f7ff;
  box-shadow: 0 0 0 2px rgb(47 76 255 / 7%);
}

.page-stack:has(.actionable-alert-list) .metric-card::before {
  grid-column: 1;
  grid-row: 1;
  width: 15px;
  height: 15px;
  background: #8aa0c0;
  content: '';
  mask: center / contain no-repeat;
}

.page-stack:has(.actionable-alert-list) .metric-card:nth-child(1)::before {
  background: #2f4cff;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='m4 6 1 1 2-2M4 12l1 1 2-2M4 18l1 1 2-2'/%3E%3C/g%3E%3C/svg%3E");
}

.page-stack:has(.actionable-alert-list) .metric-card:nth-child(2)::before {
  background: #ef4444;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.5 2.6 17a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 3.5a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/g%3E%3C/svg%3E");
}

.page-stack:has(.actionable-alert-list) .metric-card:nth-child(3)::before {
  background: #8aa0c0;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E");
}

.page-stack:has(.actionable-alert-list) .metric-card:nth-child(4)::before {
  background: #ef4444;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v12H4z'/%3E%3Cpath d='m4 6 8 6 8-6M9 20h6'/%3E%3C/g%3E%3C/svg%3E");
}

.page-stack:has(.actionable-alert-list) .metric-card p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #8496b2;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.page-stack:has(.actionable-alert-list) .metric-card strong {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  margin-top: 8px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.page-stack:has(.actionable-alert-list) .metric-card:first-child strong {
  color: #243ed3;
}

.page-stack:has(.actionable-alert-list) .metric-card:nth-child(2) strong,
.page-stack:has(.actionable-alert-list) .metric-card:nth-child(4) strong {
  color: #e11d48;
}

.page-stack:has(.actionable-alert-list) > .panel {
  padding: 22px;
  border-radius: 22px;
}

.page-stack:has(.actionable-alert-list) .panel__heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.page-stack:has(.actionable-alert-list) .panel__heading::before {
  width: 20px;
  height: 20px;
  padding: 14px;
  border-radius: 999px;
  background-color: #eef1ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%232f4cff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l4 4v16H6z'/%3E%3Cpath d='M14 2v5h5M9 13h6M9 17h6M9 9h2'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  content: '';
}

.page-stack:has(.actionable-alert-list) .panel__heading > div {
  min-width: 0;
}

.page-stack:has(.actionable-alert-list) .panel__heading h2 {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 600;
}

.page-stack:has(.actionable-alert-list) .panel__heading p {
  color: #64748b;
  font-size: 11px;
}

.page-stack:has(.actionable-alert-list) .alert-filters {
  margin: 20px 0 16px;
  padding: 14px;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  background: #f8fafc;
}

.page-stack:has(.actionable-alert-list) .actionable-alert-list {
  gap: 12px;
}

.page-stack:has(.actionable-alert-list) .actionable-alert {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 14px;
  gap: 12px;
  border: 1px solid #aebcff;
  border-radius: 16px;
  background: #f9faff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.page-stack:has(.actionable-alert-list) .actionable-alert--warning {
  border-color: #f2cc73;
  background: #fffdf7;
}

.page-stack:has(.actionable-alert-list) .actionable-alert--critical {
  border-color: #f2a6b2;
  background: #fffafb;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #eef1ff;
  color: #2f4cff;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__heading h3 {
  margin: 2px 0 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__body > p {
  margin: 6px 0 0;
  color: #52627d;
  font-size: 11px;
  line-height: 1.5;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__meta {
  gap: 12px 28px;
  margin: 10px 0;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__meta dt {
  color: #8aa0c0;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__meta dd {
  color: #334155;
  font-size: 11px;
  font-weight: 500;
}

.page-stack:has(.actionable-alert-list) .delivery-chips {
  margin: 8px 0 12px;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__actions .button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f4cff;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__actions .button:hover {
  background: transparent;
  color: #1b2fcc;
  text-decoration: underline;
}

.page-stack:has(.actionable-alert-list) .actionable-alert__actions .button svg {
  width: 13px;
  height: 13px;
}

.page-stack:has(.actionable-alert-list) .empty-state {
  min-height: 210px;
  padding: 34px 20px;
}

.page-stack:has(.actionable-alert-list) .empty-state > svg {
  width: 20px;
  height: 20px;
  padding: 13px;
  box-sizing: content-box;
  border-radius: 999px;
  background: #eef1ff;
  color: #2f4cff;
  stroke-width: 1.7;
}

.page-stack:has(.actionable-alert-list) .empty-state h3 {
  margin: 3px 0 0;
  color: #52627d;
  font-size: 14px;
  font-weight: 600;
}

.page-stack:has(.actionable-alert-list) .empty-state p {
  color: #8490a6;
  font-size: 10px;
}

@media (max-width: 900px) {
  .page-stack:has(.actionable-alert-list) .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-stack:has(.actionable-alert-list) .page-heading {
    align-items: flex-start;
    padding: 16px;
  }

  .page-stack:has(.actionable-alert-list) .metric-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .page-stack:has(.actionable-alert-list) > .panel {
    padding: 16px;
  }

  .page-stack:has(.actionable-alert-list) .panel__heading {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .page-stack:has(.actionable-alert-list) .panel__heading > .button {
    grid-column: 2;
    justify-self: start;
  }

  .page-stack:has(.actionable-alert-list) .alert-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-stack:has(.actionable-alert-list) .actionable-alert {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .page-stack:has(.actionable-alert-list) .actionable-alert__icon {
    width: 42px;
    height: 42px;
  }
}
