/* ============================================================================
   insights-diarios.css — card de insights IA pro Hub
   ============================================================================ */
.cf-ind-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  font-family: 'Inter', sans-serif;
  border-left: 4px solid #A855F7;
}

.cf-ind-card header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.cf-ind-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 400; font-size: 18px;
  margin: 0; color: #0F172A;
}
.cf-ind-card h3 i { width: 18px; height: 18px; color: #A855F7; }
.cf-ind-card header small {
  font-size: 11px; color: #94A3B8;
  font-family: 'IBM Plex Mono', monospace;
}
.cf-ind-card header small code {
  background: #F1F5F9; padding: 1px 5px; border-radius: 3px;
  color: #1E5BAA;
}

.cf-ind-refresh {
  background: transparent; border: 0; cursor: pointer;
  padding: 6px; border-radius: 6px;
  color: #64748B;
  display: flex; align-items: center; justify-content: center;
}
.cf-ind-refresh:hover { background: #F1F5F9; color: #1E5BAA; }
.cf-ind-refresh i { width: 14px; height: 14px; }
.cf-ind-refresh.is-spinning i { animation: cf-ind-spin 1s linear infinite; }
@keyframes cf-ind-spin { to { transform: rotate(360deg); } }

.cf-ind-loading, .cf-ind-empty, .cf-ind-erro {
  padding: 24px; text-align: center;
  color: #94A3B8; font-size: 12.5px;
  font-style: italic;
}
.cf-ind-erro { color: #DC2626; font-style: normal; }

.cf-ind-destaque {
  display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(135deg, #F3E8FF, #FAF5FF);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #0F172A;
  line-height: 1.5;
  font-weight: 500;
}
.cf-ind-destaque i { width: 18px; height: 18px; color: #A855F7; flex-shrink: 0; margin-top: 2px; }

.cf-ind-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px;
}
.cf-ind-item {
  background: #F8FAFC;
  border-left: 3px solid #64748B;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.cf-ind-item.cf-ind-positivo { border-left-color: #10B981; background: #F0FDF4; }
.cf-ind-item.cf-ind-atencao  { border-left-color: #F59E0B; background: #FEF3C7; }
.cf-ind-item.cf-ind-neutro   { border-left-color: #64748B; background: #F8FAFC; }

.cf-ind-tipo {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 10px;
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  width: fit-content;
}
.cf-ind-tipo i { width: 10px; height: 10px; }

.cf-ind-text {
  font-size: 13px;
  color: #0F172A;
  line-height: 1.45;
}

.cf-ind-acao {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: #1E5BAA;
  font-style: italic;
  margin-top: 2px;
}
.cf-ind-acao i { width: 11px; height: 11px; }

.cf-ind-metricas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.cf-ind-metricas > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px;
  background: #F8FAFC;
  border-radius: 6px;
}
.cf-ind-metricas strong {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px; line-height: 1; color: #0F172A;
}
.cf-ind-metricas small {
  font-size: 9.5px; color: #64748B;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 600;
}
