.block-mwa-dashboard-app /* ── ALERTAS INTELIGENTES ── block_mwa_dashboard */

/* KPI row na aba de alertas */
.sa-kpi-row{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 1300px) {.block-mwa-dashboard-app .sa-kpi-row{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  {.block-mwa-dashboard-app .sa-kpi-row{ grid-template-columns: repeat(2, 1fr); } }.block-mwa-dashboard-app .sa-kpi{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s, box-shadow .15s;
}.block-mwa-dashboard-app .sa-kpi:hover{ transform: translateY(-2px); box-shadow: var(--shadow-hover); }.block-mwa-dashboard-app .sa-kpi-label{
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}.block-mwa-dashboard-app .sa-kpi-val{
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  margin-top: 8px;
}.block-mwa-dashboard-app .sa-kpi-delta{
  font-size: .75rem;
  color: var(--subtle);
  font-weight: 700;
  margin-top: 4px;
}.block-mwa-dashboard-app /* Cores por tipo */
.sa-kpi.c-red    .sa-kpi-val{ color: var(--red); }.block-mwa-dashboard-app .sa-kpi.c-amber  .sa-kpi-val{ color: var(--amber); }.block-mwa-dashboard-app .sa-kpi.c-purple .sa-kpi-val{ color: var(--purple); }.block-mwa-dashboard-app .sa-kpi.c-blue   .sa-kpi-val{ color: var(--blue); }.block-mwa-dashboard-app .sa-kpi.c-teal   .sa-kpi-val{ color: var(--teal); }.block-mwa-dashboard-app .sa-kpi.c-green  .sa-kpi-val{ color: var(--green); }.block-mwa-dashboard-app /* Borda esquerda colorida */
.sa-kpi.c-red{ border-left: 3px solid var(--red); }.block-mwa-dashboard-app .sa-kpi.c-amber{ border-left: 3px solid var(--amber); }.block-mwa-dashboard-app .sa-kpi.c-purple{ border-left: 3px solid var(--purple); }.block-mwa-dashboard-app .sa-kpi.c-blue{ border-left: 3px solid var(--blue); }.block-mwa-dashboard-app .sa-kpi.c-teal{ border-left: 3px solid var(--teal); }.block-mwa-dashboard-app .sa-kpi.c-green{ border-left: 3px solid var(--green); }.block-mwa-dashboard-app /* ── Blocos de alerta ── */
.smart-alerts-wrap{
  display: flex;
  flex-direction: column;
  gap: 14px;
}.block-mwa-dashboard-app .smart-alert{
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: mwafadeIn .25s ease;
}

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

.smart-alert.sa-warning { background: var(--amber-dim); border-color: rgba(201,138,42,.25); }.block-mwa-dashboard-app .smart-alert.sa-danger{ background: var(--red-dim);   border-color: rgba(217,95,95,.25); }.block-mwa-dashboard-app .smart-alert.sa-info{ background: var(--blue-dim);  border-color: rgba(91,155,213,.25); }.block-mwa-dashboard-app .smart-alert.sa-success{ background: var(--green-dim); border-color: rgba(58,171,122,.25); }.block-mwa-dashboard-app .smart-alert.sa-purple{ background: var(--purple-dim);border-color: rgba(139,114,212,.25); }.block-mwa-dashboard-app .sa-icon{
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}.block-mwa-dashboard-app .sa-body{ flex: 1; min-width: 0; }.block-mwa-dashboard-app .sa-title{
  font-weight: 900;
  font-size: .95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}.block-mwa-dashboard-app .sa-count{
  font-size: .72rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.07);
  color: var(--text);
}.block-mwa-dashboard-app .sa-names{
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}.block-mwa-dashboard-app .sa-names strong{ color: var(--text); font-weight: 800; }.block-mwa-dashboard-app .sa-tip{
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,.55);
  border-radius: 10px;
  border-left: 3px solid currentColor;
  line-height: 1.5;
}.block-mwa-dashboard-app .sa-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}.block-mwa-dashboard-app /* Botões dentro do alerta */
.sa-btn-primary{
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91,155,213,.28);
  transition: transform .15s, box-shadow .15s;
}.block-mwa-dashboard-app .sa-btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,155,213,.38); }.block-mwa-dashboard-app .sa-btn-ghost{
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}.block-mwa-dashboard-app .sa-btn-ghost:hover{ border-color: var(--blue); color: var(--blue); }.block-mwa-dashboard-app .sa-toggle-link{
  color: var(--blue);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}.block-mwa-dashboard-app .sa-toggle-link:hover{ text-decoration: underline; }.block-mwa-dashboard-app /* Estado vazio */
.sa-empty{
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}.block-mwa-dashboard-app .sa-empty-icon{ font-size: 2.5rem; margin-bottom: 12px; }.block-mwa-dashboard-app .sa-empty p{ font-size: .95rem; font-weight: 700; margin: 0; }
