/* ============================================================================
   cf-sla-helpers.css — chips de SLA + janela 24h (M27)
   Usado por: meu-atendimento, chat-v2 list, supervisor table.
   ============================================================================ */

.cf-sla-chip,
.cf-win-chip {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--c, #64748b) 12%, transparent);
  color: var(--c, #64748b);
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--c, #64748b) 25%, transparent);
}

.cf-sla-chip.cf-sla-critico {
  animation: cf-sla-pulse 2s ease-in-out infinite;
}
@keyframes cf-sla-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, #dc2626 30%, transparent); }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, #dc2626 0%, transparent); }
}

/* Coluna "Em risco" no supervisor table */
.meu-sup-table tbody td.num.is-crit {
  color: #991b1b;
  background: #fee2e2;
  font-weight: 700;
}

/* ─── M38.0: Simulação de comissões ────────────────────────────────────── */
.cf-com-warning {
  display: flex; gap: 12px;
  padding: 12px 14px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  margin-bottom: 18px;
  align-items: flex-start;
  color: #92400e;
}
.cf-com-warning i { flex-shrink: 0; margin-top: 2px; }
.cf-com-warning strong { display: block; font-size: 13px; }
.cf-com-warning small { display: block; font-size: 11.5px; line-height: 1.45; margin-top: 3px; }

.cf-com-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.cf-com-pct {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px; color: #475569;
}
.cf-com-pct input {
  width: 56px;
  border: 0; padding: 2px 4px;
  font-size: 13px; font-weight: 600; text-align: right;
  font-family: 'IBM Plex Mono', monospace;
}
.cf-com-pct input:focus { outline: 2px solid #1E5BAA; outline-offset: 1px; }

.cf-com-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.cf-com-tile {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid var(--c, #1E5BAA);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.cf-com-tile-icon {
  flex-shrink: 0; width: 30px; height: 30px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c); border-radius: 6px;
}
.cf-com-tile-body { display: flex; flex-direction: column; gap: 1px; }
.cf-com-tile-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.1;
}
.cf-com-tile-label { font-size: 11px; color: #64748b; line-height: 1.3; }

.cf-com-breakdown {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.cf-com-bd-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg, #f1f5f9);
  color: var(--c, #475569);
  border-radius: 6px;
  font-size: 12px;
}
.cf-com-bd-row strong { font-weight: 600; }
.cf-com-bd-row small { color: inherit; opacity: 0.7; }
.cf-com-bd-row span {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.cf-com-list-card { padding: 16px; }
.cf-com-table-wrap { overflow-x: auto; }
.cf-com-table {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
}
.cf-com-table thead th {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.cf-com-table thead th.num { text-align: right; }
.cf-com-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}
.cf-com-table tbody td.num {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}
.cf-com-table tbody tr:hover { background: #f8fafc; }

.cf-com-st {
  display: inline-block;
  padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  background: var(--bg, #f1f5f9);
  color: var(--c, #475569);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.cf-com-footer-note {
  display: flex; gap: 6px; align-items: center;
  margin-top: 18px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  color: #64748b; font-size: 11.5px;
}
.cf-com-footer-note code {
  background: #e2e8f0; padding: 1px 4px; border-radius: 3px;
  font-size: 10.5px;
}

/* ─── M38.2: extensões do painel oficial de comissões ─────────────────── */

/* Variante azul do warning (informativa, não-alerta) */
.cf-com-warning.cf-com-warning-blue {
  background: #eff6ff;
  border-left-color: #1E5BAA;
  color: #1e3a8a;
}
.cf-com-warning.cf-com-warning-sm {
  padding: 9px 12px;
  margin-bottom: 14px;
}
.cf-com-warning.cf-com-warning-sm strong { font-size: 12px; }
.cf-com-warning.cf-com-warning-sm small  { font-size: 11px; margin-top: 2px; }

/* Ações alinhadas à direita na toolbar */
.cf-com-actions {
  margin-left: auto;
  display: inline-flex; gap: 8px; align-items: center;
}

/* Barra de bulk-select fixa abaixo da toolbar */
.cf-com-bulkbar {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 14px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 12.5px; color: #155e75;
}
.cf-com-bulkbar strong {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

/* Ações por linha (mini buttons) */
.cf-com-row-actions {
  display: inline-flex; gap: 4px;
}
.meu-btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  padding: 0;
  background: #1E5BAA; color: #fff;
  border: 0; border-radius: 5px;
  cursor: pointer;
  transition: background .12s ease;
}
.meu-btn-mini:hover { background: #164d96; }
.meu-btn-mini-ghost {
  background: #f1f5f9; color: #475569;
}
.meu-btn-mini-ghost:hover { background: #e2e8f0; }

/* Card de histórico (expandido inline) */
.cf-com-history-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.cf-com-history-card .cnt-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}

/* Lista de breakdown vertical (atendente) */
.cf-com-bd-list {
  display: flex; flex-direction: column; gap: 8px;
}

/* Seção "Minhas comissões" dentro do Meu Atendimento */
.meu-comissoes {
  margin-top: 24px;
  padding: 18px 18px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}

/* ─── M38.3: hardening da área de comissões ────────────────────────────── */

/* Variante âmbar do warning (alerta operacional persistente) */
.cf-com-warning.cf-com-warning-amber {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #78350f;
}

/* Painel de saúde */
.cf-com-saude-grid { margin-bottom: 16px; }
.cf-com-saude-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  overflow: hidden;
}
.cf-com-saude-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  cursor: default;
}
.cf-com-saude-head h3 {
  margin: 0; font-size: 13px; font-weight: 600; color: #0f172a;
  font-family: 'IBM Plex Sans', sans-serif;
}
.cf-com-saude-head small { color: #64748b; font-size: 11px; }
.cf-com-saude-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.cf-com-saude-row {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 10px; align-items: center;
  font-size: 12.5px;
}
.cf-com-saude-key { color: #64748b; font-weight: 600; }
.cf-com-saude-val {
  color: #0f172a; font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}
.cf-com-saude-val.cf-com-saude-off {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  background: #fef3c7; color: #92400e;
  font-size: 11px;
}
.cf-com-saude-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 4px; border-top: 1px solid #f1f5f9;
}
.cf-com-saude-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c, #475569);
  font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
}
.cf-com-saude-pill strong {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700; font-size: 12px;
}
.cf-com-saude-pill.is-destacado {
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}
.cf-com-saude-error {
  padding: 10px 14px; border-radius: 6px;
  background: #fee2e2; color: #991b1b; font-size: 12px;
}

/* Checklist */
.cf-com-checklist-card {
  margin-top: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  overflow: hidden;
}
.cf-com-checklist-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
}
.cf-com-checklist-head h3 {
  margin: 0; font-size: 13px; font-weight: 600; color: #0f172a;
  font-family: 'IBM Plex Sans', sans-serif;
}
.cf-com-checklist-head small { color: #64748b; font-size: 11px; }
.cf-com-checklist-counter {
  display: inline-block;
  margin-left: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: #e2e8f0; color: #475569;
  padding: 1px 6px; border-radius: 999px;
  font-weight: 600;
}
.cf-com-checklist-list {
  list-style: none; margin: 0;
  padding: 6px 16px 12px;
}
.cf-com-checklist-item {
  display: flex; align-items: center;
  padding: 6px 0;
  font-size: 12.5px; color: #1e293b;
}
.cf-com-checklist-item label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.cf-com-checklist-item.is-done span {
  text-decoration: line-through; color: #64748b;
}
.cf-com-checklist-ready {
  display: flex; gap: 8px; align-items: center;
  margin: 0 16px 14px;
  padding: 10px 12px;
  background: #ecfdf5;
  border-radius: 6px;
  color: #166534; font-size: 12.5px;
}

/* Badge TESTE em linhas com is_test */
.cf-com-table tbody tr.is-teste {
  background: #faf5ff;
}
.cf-com-test-badge {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Marcador de órfã */
.cf-com-orfa-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9; color: #92400e;
  border-radius: 4px;
  font-size: 11px; font-style: italic;
}

/* Botão mini "warn" pra setar holder em órfã */
.meu-btn-mini-warn {
  background: #fef3c7; color: #92400e;
}
.meu-btn-mini-warn:hover { background: #fde68a; }

/* Modal setHolder reaproveita o slot do histórico */
.cf-com-setholder {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: #1e293b;
}
.cf-com-setholder ul {
  margin: 0; padding-left: 18px;
  color: #64748b; font-size: 12px;
}
.cf-com-setholder ul code {
  background: #e2e8f0; padding: 1px 4px; border-radius: 3px;
  font-size: 11px;
}
.cf-com-setholder-label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: #64748b;
}
.cf-com-setholder-actions {
  display: flex; gap: 10px; align-items: center;
  margin-top: 6px;
}

/* ─── M38.4: auditoria/pré-fechamento ──────────────────────────────────── */

/* Sub-tabs nav */
.cf-com-subtabs {
  display: flex; gap: 4px;
  margin: 14px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}
.cf-com-subtab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: transparent; color: #64748b;
  border: 0; border-bottom: 2px solid transparent;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  margin-bottom: -5px;
  transition: color .12s ease, border-color .12s ease;
}
.cf-com-subtab:hover { color: #1E5BAA; }
.cf-com-subtab.is-on {
  color: #1E5BAA;
  border-bottom-color: #1E5BAA;
}
.cf-com-subtab-counter {
  display: none;
  align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: #ef4444; color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

/* Pré-fechamento grid + actions */
.cf-com-pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.cf-com-pf-actions {
  display: flex; gap: 10px; align-items: center;
  margin: 16px 0;
}
.cf-com-pf-actions small {
  margin-left: auto;
  color: #64748b; font-size: 11px;
}
.cf-com-pf-card { padding: 14px 16px; margin-top: 4px; }
.cf-com-pf-table th, .cf-com-pf-table td {
  white-space: nowrap;
}

/* Pendências */
.cf-com-pend-card { padding: 14px 16px; margin-bottom: 14px; }
.cf-com-pend-list, .cf-com-div-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cf-com-pend-item, .cf-com-div-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
}
.cf-com-pend-item.is-sev-high, .cf-com-div-item.is-sev-high {
  background: #fef2f2;
  border-left-color: #dc2626;
}
.cf-com-pend-item.is-sev-medium, .cf-com-div-item.is-sev-medium {
  background: #fffbeb;
  border-left-color: #f59e0b;
}
.cf-com-pend-item.is-sev-info, .cf-com-div-item.is-sev-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}
.cf-com-pend-info, .cf-com-div-body { flex: 1; min-width: 0; }
.cf-com-pend-titulo, .cf-com-div-titulo {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: #0f172a;
}
.cf-com-pend-count {
  background: #1e293b; color: #fff;
  padding: 1px 8px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 700;
}
.cf-com-pend-valor {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #1E5BAA;
}
.cf-com-div-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  display: grid; place-items: center;
  background: #fff; color: #475569;
  border-radius: 6px;
}
.cf-com-div-item.is-sev-high .cf-com-div-icon { color: #dc2626; }
.cf-com-div-item.is-sev-medium .cf-com-div-icon { color: #f59e0b; }
.cf-com-div-item.is-sev-info .cf-com-div-icon { color: #3b82f6; }
.cf-com-div-amostra {
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #475569;
}

/* Resumo do período (modal-like dentro do history-card) */
.cf-com-resumo {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 13px; color: #1e293b;
}
.cf-com-resumo h4 {
  margin: 6px 0 0;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; color: #64748b;
  font-weight: 600;
}
.cf-com-resumo-meta {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 12px;
}
.cf-com-resumo-meta dt { color: #64748b; }
.cf-com-resumo-meta dd { margin: 0; color: #0f172a; font-weight: 500; }
.cf-com-resumo-totais {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px;
}
.cf-com-resumo-totais li { color: #475569; }
.cf-com-resumo-totais strong {
  font-family: 'IBM Plex Mono', monospace;
  color: #0f172a;
}
.cf-com-resumo-atendentes {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.cf-com-resumo-atendentes li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 12px;
}
.cf-com-resumo-atendentes li strong {
  font-family: 'IBM Plex Mono', monospace;
}
.cf-com-resumo-actions {
  display: flex; gap: 10px; align-items: center;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

/* Timeline do histórico (M38.4.6) */
.cf-com-hist-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.cf-com-hist-tech {
  display: inline-flex; gap: 6px; align-items: center;
  margin-left: auto;
  font-size: 11.5px; color: #64748b;
}
.cf-com-timeline {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.cf-com-timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 0; bottom: 0;
  border-left: 2px dashed #e2e8f0;
}
.cf-com-timeline-item {
  position: relative;
  display: flex; gap: 16px;
  padding: 10px 0 12px 0;
}
.cf-com-timeline-dot {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--c, #94a3b8);
  border-radius: 999px;
  color: var(--c, #94a3b8);
  position: relative; z-index: 1;
}
.cf-com-timeline-body {
  flex: 1; min-width: 0;
}
.cf-com-timeline-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cf-com-timeline-header strong {
  font-size: 12.5px; color: #0f172a;
}
.cf-com-timeline-meta-line {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: 11.5px; color: #475569;
  margin-bottom: 4px;
}
.cf-com-timeline-actor { color: #64748b; }
.cf-com-timeline-actor strong { color: #0f172a; font-weight: 600; }
.cf-com-timeline-numbers {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: #1e293b;
}
.cf-com-timeline-numbers span {
  display: inline-flex; gap: 4px; align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}
.cf-com-timeline-numbers small {
  font-family: 'Inter', sans-serif;
  color: #94a3b8; font-weight: 400; font-size: 10px;
  text-transform: uppercase;
}
.cf-com-timeline-meta {
  margin: 6px 0 0;
  padding: 8px 10px;
  background: #0f172a; color: #cbd5e1;
  border-radius: 4px;
  font-size: 11px; font-family: 'IBM Plex Mono', monospace;
  white-space: pre-wrap; word-break: break-word;
  max-height: 200px; overflow-y: auto;
}

/* ─── M39: empty states humanos (.cf-empty) ───────────────────────────── */
.cf-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
  color: #475569;
}
.cf-empty.cf-empty-sm { padding: 20px 16px; gap: 6px; }
.cf-empty-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: #f1f5f9;
  border-radius: 999px;
  color: #94a3b8;
}
.cf-empty.cf-empty-sm .cf-empty-icon { width: 32px; height: 32px; }
.cf-empty-title {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  font-family: 'IBM Plex Sans', sans-serif;
}
.cf-empty.cf-empty-sm .cf-empty-title { font-size: 12.5px; }
.cf-empty-hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  max-width: 360px;
  line-height: 1.5;
}
.cf-empty-cta {
  margin-top: 6px;
  padding: 6px 14px;
  background: #1E5BAA; color: #fff;
  border: 0; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .12s ease;
}
.cf-empty-cta:hover { background: #164d96; }

/* ─── M39bisR: highlight visual quando hash abre item específico ──────── */
.cf-task-highlight,
.cf-row-highlight {
  animation: cf-row-pulse 1.6s ease-in-out;
  outline: 2px solid #1E5BAA;
  outline-offset: 2px;
  border-radius: 6px;
}
@keyframes cf-row-pulse {
  0%, 100% { background-color: transparent; }
  20%      { background-color: rgba(30, 91, 170, 0.18); }
  60%      { background-color: rgba(30, 91, 170, 0.08); }
}

/* ─── M41: Catálogo de Integrações (cards estilo Clint adaptado) ───────── */
.cf-int-section { padding: 0; }
.cf-int-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.cf-int-search {
  flex: 1; min-width: 240px; max-width: 360px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 13px; color: #1e293b;
}
.cf-int-search:focus { outline: 2px solid #1E5BAA; outline-offset: 1px; border-color: transparent; }
.cf-int-cats {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.cf-int-cat {
  padding: 6px 12px;
  background: transparent; color: #64748b;
  border: 1px solid #e2e8f0; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  cursor: pointer;
  transition: all .12s ease;
}
.cf-int-cat:hover { color: #1E5BAA; border-color: #1E5BAA; }
.cf-int-cat.is-on { background: #1E5BAA; color: #fff; border-color: #1E5BAA; }

.cf-int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cf-int-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
  display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cf-int-card:hover {
  box-shadow: 0 4px 12px rgba(15,23,42,.10);
  transform: translateY(-1px);
}
.cf-int-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 4px;
}
.cf-int-card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, #1E5BAA) 12%, transparent);
  color: var(--c, #1E5BAA);
  border-radius: 10px;
}
.cf-int-card-pill {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cf-int-card-title {
  margin: 0;
  font-size: 14px; font-weight: 600; color: #0f172a;
  font-family: 'IBM Plex Sans', sans-serif;
}
.cf-int-card-desc {
  margin: 0;
  font-size: 12px; color: #64748b; line-height: 1.5;
  flex: 1;
}
.cf-int-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.cf-int-card-count {
  font-size: 11px;
  color: #1E5BAA;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}
.cf-int-card-count-zero { color: #94a3b8; }
.cf-int-card-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: transparent; color: #1E5BAA;
  border: 0;
  font-size: 11.5px; font-weight: 600;
  cursor: pointer;
}
.cf-int-card-btn:hover { color: #164d96; }

.cf-int-footnote {
  display: flex; gap: 6px; align-items: center;
  margin-top: 22px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  color: #64748b; font-size: 11.5px;
}

/* Detalhe (drawer) */
.cf-int-detail { display: flex; flex-direction: column; gap: 16px; padding: 4px; }
.cf-int-detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid #e2e8f0;
}
.cf-int-list { display: flex; flex-direction: column; gap: 14px; }
.cf-int-row {
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 14px;
}
.cf-int-row-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.cf-int-row-head strong { font-size: 13px; }
.cf-int-status {
  display: inline-block;
  padding: 1px 8px; margin-left: 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cf-int-status.is-on  { background: #dcfce7; color: #16a34a; }
.cf-int-status.is-off { background: #fef3c7; color: #92400e; }
.cf-int-row-desc { margin: 4px 0 10px; font-size: 12px; color: #64748b; }
.cf-int-row-block { margin: 10px 0; }
.cf-int-row-label {
  display: block;
  font-size: 11px; color: #64748b; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.cf-int-copybox {
  display: flex; gap: 6px; align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
}
.cf-int-copybox code {
  flex: 1; min-width: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #1e293b;
  background: transparent;
  word-break: break-all;
}

.cf-int-row-collapse {
  margin-top: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
.cf-int-row-collapse summary {
  cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: #475569;
  padding: 4px 0;
}
.cf-int-row-collapse summary:hover { color: #1E5BAA; }
.cf-int-row-collapse[open] summary { color: #1E5BAA; }
.cf-int-row-collapse textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #0f172a; color: #cbd5e1;
  border: 0; border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  resize: vertical; min-height: 90px;
}
.cf-int-row-actions {
  display: flex; gap: 8px; align-items: center;
  margin-top: 8px;
}
.cf-int-test-result {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 11.5px;
  max-height: 280px; overflow: auto;
}
.cf-int-test-result pre {
  background: #0f172a; color: #cbd5e1;
  padding: 8px; border-radius: 4px;
  font-size: 10.5px;
  white-space: pre-wrap; word-break: break-word;
  margin: 6px 0;
}

.cf-int-row-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.cf-int-row-del { color: #dc2626; }
.cf-int-row-del:hover { background: #fee2e2; }

.cf-int-logtbl {
  width: 100%; border-collapse: collapse;
  font-size: 11.5px;
  margin-top: 8px;
}
.cf-int-logtbl th, .cf-int-logtbl td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.cf-int-logtbl th {
  font-size: 10px; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cf-int-log-status {
  display: inline-block;
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
}
.cf-int-log-status.is-success  { background: #dcfce7; color: #16a34a; }
.cf-int-log-status.is-error    { background: #fee2e2; color: #991b1b; }
.cf-int-log-status.is-ignored  { background: #f1f5f9; color: #64748b; }
.cf-int-log-status.is-duplicate { background: #fef3c7; color: #92400e; }
.cf-int-log-status.is-dry_run  { background: #ede9fe; color: #6d28d9; }

.cf-int-soon, .cf-int-manual {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 10px;
}
.cf-int-soon h3, .cf-int-manual h3 {
  margin: 0;
  font-size: 16px; color: #0f172a;
}

/* M41.x: Seção Automação dentro do detalhe da integração */
.cf-int-auto-form {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 4px;
}
.cf-int-auto-select {
  width: 100%; padding: 8px 10px;
  background: #fff;
  border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 12.5px;
}
.cf-int-auto-modes {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
}
.cf-int-auto-modes label {
  display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; color: #1e293b;
  cursor: pointer;
}
.cf-int-auto-warning {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  color: #78350f; font-size: 12px;
}

/* M41.y: Rotas (destino do lead) */
.cf-int-rotas-wrap { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; }
.cf-int-rotas-intro { padding: 4px 0; }
.cf-int-rotas-list { display: flex; flex-direction: column; gap: 10px; }
.cf-int-rota-row {
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 12px;
}
.cf-int-rota-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cf-int-rota-head strong { font-size: 13px; }
.cf-int-rota-acts { display: inline-flex; gap: 4px; }
.cf-int-rota-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 11.5px; color: #475569;
}
.cf-int-rota-meta span { white-space: nowrap; }
.cf-int-rota-meta strong { color: #1e293b; font-weight: 600; }
.cf-int-rota-desc { margin: 6px 0 0; color: #64748b; font-size: 11px; }

.cf-int-rota-form-card {
  margin-top: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.cf-int-rota-form-card h4 {
  margin: 0 0 6px;
  font-size: 13px; color: #0f172a;
  font-family: 'IBM Plex Sans', sans-serif;
}
.cf-int-rota-form-card input[type="text"],
.cf-int-rota-form-card input[type="email"],
.cf-int-rota-form-card input[type="number"],
.cf-int-rota-form-card select {
  width: 100%;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 12.5px; color: #1e293b;
  margin-top: 4px;
}
.cf-int-rota-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.cf-int-rota-form-card .cf-int-row-label {
  font-size: 11.5px; color: #475569; font-weight: 500;
  text-transform: none; letter-spacing: 0;
}

/* M41.zz: Logs estruturados em timeline */
.cf-int-logs-list {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 10px;
}
.cf-int-log-card {
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 12px 14px;
}
.cf-int-log-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cf-int-log-timeline {
  list-style: none; margin: 0; padding: 0 0 0 4px;
  position: relative;
}
.cf-int-log-timeline::before {
  content: ''; position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  border-left: 1.5px dashed #e2e8f0;
}
.cf-int-log-step {
  position: relative;
  display: flex; gap: 10px;
  padding: 4px 0;
}
.cf-int-log-dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: #fff;
  border: 1.5px solid var(--c, #94a3b8);
  border-radius: 999px;
  color: var(--c, #94a3b8);
  position: relative; z-index: 1;
}
.cf-int-log-step-body {
  flex: 1; min-width: 0;
  font-size: 11.5px; color: #1e293b;
  padding-top: 2px;
}
.cf-int-log-step-body strong { display: block; font-weight: 600; }
.cf-int-log-step-body small {
  display: block; color: #64748b; font-size: 10.5px; margin-top: 1px;
}

.cf-int-log-error {
  display: flex; gap: 6px; align-items: center;
  padding: 8px 10px; margin-top: 8px;
  background: #fee2e2; color: #991b1b;
  border-radius: 6px;
  font-size: 11.5px;
}
.cf-int-log-foot {
  display: flex; justify-content: flex-end;
  margin-top: 8px;
}
.cf-int-log-raw {
  margin: 10px 0 0;
  padding: 10px;
  background: #0f172a; color: #cbd5e1;
  border-radius: 6px;
  font-size: 10.5px;
  white-space: pre-wrap; word-break: break-word;
  max-height: 240px; overflow: auto;
}

/* M42: Horários da equipe */
.cf-int-info-banner {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: #eff6ff;
  border-left: 3px solid #1E5BAA;
  border-radius: 6px;
  color: #1e3a8a; font-size: 12px;
  margin-bottom: 14px;
}
.cf-wh-list { display: flex; flex-direction: column; gap: 10px; }
.cf-wh-user-card {
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 14px;
}
.cf-wh-user-card.cf-wh-no-override { background: #f8fafc; }
.cf-wh-user-head {
  display: flex; justify-content: space-between; align-items: center;
}
.cf-wh-user-info strong { font-size: 13px; }
.cf-wh-user-info small { display: block; color: #64748b; font-size: 11px; margin-top: 2px; }
.cf-wh-user-status { display: inline-flex; gap: 8px; align-items: center; }
.cf-wh-summary {
  display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap;
}
.cf-wh-day-chip {
  padding: 2px 8px;
  background: #ecfdf5; color: #166534;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
}
.cf-wh-expanded {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex; flex-direction: column; gap: 12px;
}
.cf-wh-toggle, .cf-wh-tz {
  display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; color: #1e293b;
}
.cf-wh-tz select {
  padding: 4px 8px;
  border: 1px solid #cbd5e1; border-radius: 4px;
  font-size: 12px;
}
.cf-wh-days {
  display: flex; flex-direction: column; gap: 8px;
}
.cf-wh-day-row {
  display: grid; grid-template-columns: 50px 1fr;
  gap: 12px; align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cf-wh-day-row strong { color: #475569; font-size: 12px; padding-top: 4px; }
.cf-wh-day-ranges {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
}
.cf-wh-range {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 12px;
}
.cf-wh-range input[type="time"] {
  padding: 3px 6px;
  border: 1px solid #cbd5e1; border-radius: 4px;
  font-size: 12px; width: 90px;
}
.cf-wh-day-ranges small { color: #94a3b8; font-style: italic; font-size: 11px; }

/* ─── M29: UI de configuração de SLA ────────────────────────────────────── */

.cf-sla-form {
  display: flex; flex-direction: column; gap: 16px;
}

.cf-sla-card {
  padding: 20px;
}

.cf-sla-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

.cf-sla-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cf-sla-row:last-child { border-bottom: 0; }

.cf-sla-row-label {
  font-size: 13px; font-weight: 600; color: #1e293b;
  grid-column: 1; grid-row: 1;
}

.cf-sla-row-input {
  display: inline-flex; align-items: center; gap: 6px;
  grid-column: 2; grid-row: 1 / 3;
  justify-self: end;
}
.cf-sla-row-input input {
  width: 96px; height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
}
.cf-sla-row-input input:focus {
  outline: 2px solid #1E5BAA; outline-offset: 1px;
  border-color: transparent;
}
.cf-sla-row-input small {
  color: #64748b; font-size: 12px; min-width: 32px;
}

.cf-sla-row-hint {
  grid-column: 1; grid-row: 2;
  font-size: 12px; color: #64748b; line-height: 1.4;
}

.cf-sla-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  padding-top: 8px;
}

.cf-sla-hint {
  text-align: right;
  font-size: 12px; color: #64748b;
  min-height: 16px;
}

/* ─── M29.8: Card SLA no info-panel do Chat-v2 ─────────────────────────── */
.cf-info-sla-card {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 3px solid #dc2626;
}
.cf-info-sla-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px;
}
.cf-info-sla-line.is-atencao { color: #92400e; }
.cf-info-sla-line.is-atencao + .cf-info-sla-line { padding-top: 8px; border-top: 1px solid #fee2e2; }
.cf-info-sla-line.is-critico { color: #991b1b; }
.cf-info-sla-line.is-expiring { color: #92400e; }
.cf-info-sla-line.is-expired { color: #64748b; }
.cf-info-sla-line i { flex-shrink: 0; margin-top: 1px; }
.cf-info-sla-line strong { display: block; font-size: 12px; font-weight: 600; }
.cf-info-sla-line small { display: block; font-size: 11px; opacity: 0.85; line-height: 1.4; }

/* Variante atencao (mais suave que crítico) */
.cf-info-sla-card:has(.cf-info-sla-line.is-atencao):not(:has(.cf-info-sla-line.is-critico)) {
  background: #fffbeb;
  border-left-color: #ea580c;
}

/* ─── M30.7: painel saúde do Watchdog ──────────────────────────────────── */
.cf-sla-bw-desc {
  font-size: 13px; color: #475569; line-height: 1.5;
  margin: 8px 0 0;
}
.cf-sla-bw-actions {
  display: flex; gap: 8px;
  margin: 12px 0 16px;
}
.cf-sla-bw-status {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.cf-sla-spin { animation: cf-sla-spin 1s linear infinite; }
@keyframes cf-sla-spin { to { transform: rotate(360deg); } }

.cf-bw-history-head {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #64748b; margin-bottom: 8px;
}
.cf-bw-history-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.cf-bw-history-row {
  display: grid;
  grid-template-columns: 8px auto auto 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #f8fafc; border-radius: 6px;
  font-size: 12px;
}
.cf-bw-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
}
.cf-bw-error .cf-bw-status-dot { background: #dc2626; }
.cf-bw-skipped .cf-bw-status-dot { background: #94a3b8; }
.cf-bw-running .cf-bw-status-dot { background: #ea580c; animation: cf-sla-pulse 1.2s infinite; }
@keyframes cf-sla-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.cf-bw-when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #475569;
}
.cf-bw-tag {
  background: #1E5BAA; color: #fff;
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.cf-bw-tag.is-dry { background: #94a3b8; }
.cf-bw-detail { color: #64748b; }
.cf-bw-err { color: #dc2626; font-style: italic; }

/* M31.4: chip de status do cron */
.cf-bw-history-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.cf-bw-cron-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  text-transform: none; letter-spacing: normal;
}
.cf-bw-cron-pill.is-on  { background: #dcfce7; color: #166534; }
.cf-bw-cron-pill.is-off { background: #f1f5f9; color: #64748b; }

/* ─── M33a: Dashboard saúde do sistema ──────────────────────────────────── */
.cf-hs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.cf-hs-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  border-left: 3px solid var(--c, #64748b);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.cf-hs-card.is-zero { opacity: 0.55; }
.cf-hs-card-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg, #f1f5f9);
  color: var(--c, #64748b);
  border-radius: 8px;
}
.cf-hs-card-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.cf-hs-card-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1;
  color: var(--c, #0f172a);
}
.cf-hs-card-title { font-size: 12px; font-weight: 600; color: #1e293b; margin-top: 4px; }
.cf-hs-card-desc { font-size: 11px; color: #64748b; line-height: 1.4; }

/* Tabela */
.cf-hs-card-list { padding: 16px; }
.cf-hs-table-wrap { overflow-x: auto; margin-top: 8px; }
.cf-hs-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.cf-hs-table thead th {
  text-align: left; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.cf-hs-table thead th.num { text-align: right; }
.cf-hs-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.cf-hs-table tbody td.num {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 600; color: #1e293b;
}
.cf-hs-table tbody td.num.is-warn { color: #991b1b; background: #fee2e2; }

.cf-hs-row-falhando { background: #fef2f2; }
.cf-hs-row-atencao  { background: #fffbeb; }
.cf-hs-row:hover    { background: #f8fafc; }
.cf-hs-row-falhando:hover { background: #fee2e2; }
.cf-hs-row-atencao:hover  { background: #fef3c7; }

.cf-hs-jobname {
  display: flex; align-items: center; gap: 8px;
}
.cf-hs-jobname strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: #0f172a;
}
.cf-hs-crit {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: #92400e;
  background: #fef3c7; padding: 1px 6px; border-radius: 4px;
}

.cf-hs-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--bg, #f1f5f9); color: var(--c, #475569);
  white-space: nowrap;
}
.cf-hs-streak {
  display: block;
  font-size: 10px; color: #991b1b; margin-top: 4px;
  font-weight: 600;
}

/* Drawer */
.cf-hs-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 1100;
  display: flex; justify-content: flex-end;
}
.cf-hs-drawer {
  background: #fff;
  width: 100%; max-width: 560px;
  height: 100vh;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(15,23,42,.2);
  animation: cf-hs-slide-in 220ms ease;
}
@keyframes cf-hs-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.cf-hs-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.cf-hs-drawer-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #64748b; font-weight: 600; margin-bottom: 4px;
}
.cf-hs-drawer-head h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px; color: #0f172a;
  margin: 0 0 4px;
}
.cf-hs-drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; }

.cf-hs-drawer-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--bg, #f1f5f9); color: var(--c, #475569);
  font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}

.cf-hs-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}
.cf-hs-drawer-grid > div {
  padding: 10px 12px;
  background: #f8fafc; border-radius: 6px;
}
.cf-hs-drawer-grid dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #64748b; font-weight: 600; margin-bottom: 4px;
}
.cf-hs-drawer-grid dd { margin: 0; font-size: 13px; color: #1e293b; font-weight: 500; }

.cf-hs-err-block {
  padding: 12px 14px;
  background: #fef2f2; border-left: 3px solid #dc2626;
  border-radius: 4px; margin-bottom: 16px;
}
.cf-hs-err-block strong { display: block; font-size: 12px; color: #991b1b; margin-bottom: 6px; }
.cf-hs-err-block pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #1e293b; margin: 0;
  white-space: pre-wrap; word-break: break-word;
}

.cf-hs-detail-runs { margin-top: 16px; }
.cf-hs-detail-runs h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #64748b; font-weight: 600; margin: 0 0 10px;
}
.cf-hs-detail-runs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-hs-run {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: #f8fafc; border-radius: 6px;
  font-size: 12px;
}
.cf-hs-run-success .cf-bw-status-dot { background: #16a34a; }
.cf-hs-run-error   .cf-bw-status-dot { background: #dc2626; }

.cf-hs-drawer-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* ========================================================================
   M55.health-center: seções extras no Saúde do Sistema
   ======================================================================== */
.cf-hs-extra {
  margin-top: 18px;
}
.cf-hs-extra .cnt-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cf-hs-extra .cnt-card-title {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  margin: 0;
}
.cf-hs-extra .cnt-card-title i {
  color: #475569;
  margin-right: 4px;
}
.cf-hs-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.cf-hs-stat {
  background: var(--bg, #f8fafc);
  border-left: 3px solid var(--c, #64748b);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cf-hs-stat strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--c, #64748b);
  line-height: 1;
}
.cf-hs-stat-label {
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}
.cf-hs-stat-hint {
  font-size: 10.5px;
  color: #94a3b8;
}
.cf-hs-subhead {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  font-weight: 600;
  margin: 14px 0 8px;
}
.cf-hs-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cf-hs-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 11.5px;
}
.cf-hs-event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cf-hs-event-app {
  font-weight: 600;
  color: #0f172a;
  flex-shrink: 0;
}
.cf-hs-event-status {
  color: #475569;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-hs-cta-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.cf-hs-trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cf-hs-trend-label {
  display: block;
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
}
.cf-hs-trend-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
}
.cf-hs-trend-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cf-hs-trend-bar > div {
  width: 100%;
  min-height: 4px;
  border-radius: 3px;
  transition: height 200ms;
}
.cf-hs-trend-bar small {
  font-size: 10px;
  color: #64748b;
}
.cf-hs-trend-bar small.meu-muted {
  font-family: 'IBM Plex Mono', monospace;
  color: #94a3b8;
}
@media (max-width: 720px) {
  .cf-hs-trend-grid { grid-template-columns: 1fr; }
}

/* M55.health-center.v2: filtros + alertas + drill-down */
.cf-hs-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cf-hs-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg, #fef3c7);
  border-left: 3px solid var(--c, #92400e);
  border-radius: 6px;
  color: var(--c, #92400e);
}
.cf-hs-alert i { flex-shrink: 0; margin-top: 1px; }
.cf-hs-alert-body { flex: 1; line-height: 1.4; }
.cf-hs-alert-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.cf-hs-alert-body small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #475569;
}
.cf-hs-alert-cta {
  background: rgba(255,255,255,.6);
  color: var(--c, #92400e);
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}
.cf-hs-alert-cta:hover { background: rgba(255,255,255,.9); }

.cf-hs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 14px;
}
.cf-hs-flt-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.cf-hs-flt-group > small {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-right: 4px;
}
.cf-hs-flt-opt {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 100ms, border-color 100ms;
}
.cf-hs-flt-opt:hover { background: #f1f5f9; border-color: #cbd5e1; }
.cf-hs-flt-opt.is-on {
  background: #1E5BAA;
  color: #fff;
  border-color: #1E5BAA;
}

.cf-hs-details {
  margin-top: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
.cf-hs-details summary {
  cursor: pointer;
  font-size: 11.5px;
  color: #1E5BAA;
  font-weight: 600;
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
.cf-hs-details summary::-webkit-details-marker { display: none; }
.cf-hs-details summary::before {
  content: '▸ ';
  font-size: 10px;
  display: inline-block;
  transition: transform 120ms;
}
.cf-hs-details[open] summary::before { content: '▾ '; }
.cf-hs-details summary:hover { color: #143C7E; }
