/* ============================================================================
   hub-operacional/hub-operacional.css — M55.dashboard-operacional
   ============================================================================ */

.cf-hubop-wrap {
  margin-bottom: 24px;
}

.cf-hubop-loading {
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cf-hubop-loading i {
  width: 18px;
  height: 18px;
  animation: cfHubopSpin 1s linear infinite;
}
@keyframes cfHubopSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.cf-hubop-error {
  padding: 20px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 8px;
  color: #7f1d1d;
  font-size: 12.5px;
}

/* Header — segue page-header padrão do design system (eyebrow + título + sub) */
.cf-hubop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.cf-hubop-head h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin: 4px 0 4px;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cf-hubop-head small {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}
.cf-hubop-head::before {
  /* eyebrow uppercase (acessibilidade: aria-hidden via CSS) */
  display: none;  /* injetar via JS futuramente */
}
.cf-hubop-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  color: #475569;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  align-self: flex-start;
}
.cf-hubop-refresh:hover {
  background: #1E5BAA;
  color: #fff;
}

/* Seção — mais respiro entre seções + título maior pra ler do canto do olho */
.cf-hubop-secao {
  margin-bottom: 32px;
}
.cf-hubop-secao > header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
}
.cf-hubop-secao > header i {
  width: 16px;
  height: 16px;
  color: #1E5BAA;
  flex-shrink: 0;
}
.cf-hubop-secao > header h3 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Grid + Card · refinado pra hierarquia visual mais clara */
.cf-hubop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cf-hubop-card {
  background: #fff;
  border: 0;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 200ms ease, transform 200ms ease, border-left-width 200ms ease;
  position: relative;
}
.cf-hubop-card:hover {
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
  border-left-width: 4px;
}
.cf-hubop-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cf-hubop-card-head i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}
.cf-hubop-card-titulo {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cf-hubop-card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;          /* M59 turno 41: reduzido de 32 pra escalabilidade R$ milhões */
  font-weight: 600;
  line-height: 1.1;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;  /* alinhamento perfeito de dígitos */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-hubop-card-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}
.cf-hubop-card-cta {
  margin-top: 12px;
  padding: 6px 12px;
  background: transparent;
  color: #1E5BAA;
  border: 0;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  transition: background 150ms ease, color 150ms ease, gap 150ms ease;
  margin-left: -12px;  /* alinhar com bord card pra parecer link, não botão */
}
.cf-hubop-card-cta:hover {
  background: #1E5BAA14;
  color: #164680;
  gap: 6px;  /* micro-interação: seta se afasta */
}

/* Seção Prontidão (banner destaque) */
.cf-hubop-pront {
  margin-top: 32px;
}
.cf-hubop-pront-body {
  background: linear-gradient(135deg, #1E5BAA10 0%, #1E5BAA20 100%);
  border: 0;
  border-left: 4px solid #1E5BAA;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cf-hubop-pront-body p {
  margin: 0;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cf-hubop-pront-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: #1E5BAA;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms;
}
.cf-hubop-pront-cta:hover { background: #143C7E; }
