/* ==========================================================================
   CONSOLIDAÇÃO - IDÊNTICO AO ESTÚDIO DE CANAIS DARK (1:1 PARITY)
   ========================================================================== */

.consolidacao-view .planning-local {
  font-family: 'Geist', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 100px;
}

.consolidacao-view .planning-layout {
  display: block;
  max-width: 1040px;
  margin: 0 auto;
}

.consolidacao-view .planning-summary {
  display: none !important;
}

.consolidacao-view .planning-card {
  border: 1px solid #283242;
  border-radius: 12px;
  background: #141a24;
  overflow: hidden;
}

.consolidacao-view .planning-heading {
  padding: 28px 32px 24px;
  border-bottom: 1px solid #283242;
}

.consolidacao-view .planning-heading h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin: 12px 0 6px;
  letter-spacing: -0.5px;
  color: #f8fafc;
}

.consolidacao-view .planning-heading > p {
  font-size: 13.5px;
  line-height: 22px;
  color: #94a3b8;
  margin: 0 0 10px;
}

.consolidacao-view .planning-heading .format-note {
  font-size: 12px;
  line-height: 18px;
  color: #94a3b8;
  margin: 0;
}

.consolidacao-view .planning-heading .format-note strong {
  color: #cbd5e1;
  font-weight: 600;
}

/* Pills no Topo */
.consolidacao-view .stage-pill-purple {
  display: inline-flex;
  align-items: center;
  background: #1c1d3b;
  color: #818cf8;
  border: 1px solid #312e81;
  font-weight: 500;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 9999px;
}

.consolidacao-view .count-pill-neutral {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #182232;
  color: #94a3b8;
  border: 1px solid #283242;
  font-weight: 500;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 9999px;
}

/* Corpo Geral */
.consolidacao-content {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 1. Banner Canal Validado */
.channel-validated-banner {
  background: #06231e;
  border: 1px solid #059669;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-validated-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-validated-title {
  font-size: 15px;
  font-weight: 600;
  color: #34d399;
  margin: 0 0 2px;
}

.channel-validated-desc {
  font-size: 13px;
  color: #6ee7b7;
  margin: 0;
  line-height: 1.4;
}

/* 2. Seção Diagnóstico de Saúde */
.section-title-wrap {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.consolidacao-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consolidacao-section-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Lista de Bloqueios e Avisos */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.issue-card {
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s;
}

.issue-card.block {
  background: #231116;
  border: 1px solid #7f1d1d;
}

.issue-card.warning {
  background: #26190e;
  border: 1px solid #854d0e;
}

.issue-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.issue-card.block .issue-icon {
  color: #ef4444;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.issue-card.warning .issue-icon {
  color: #eab308;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.issue-card-body {
  min-width: 0;
  flex: 1;
}

.issue-card.block .issue-tag {
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.issue-card.warning .issue-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.issue-card.block .issue-message {
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.4;
  margin: 0;
}

.issue-card.warning .issue-message {
  font-size: 13px;
  color: #fde68a;
  line-height: 1.4;
  margin: 0;
}

.issue-card.block .btn-goto-stage {
  background: transparent;
  border: 1px solid #7f1d1d;
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.issue-card.block .btn-goto-stage:hover {
  background: rgba(127, 29, 29, 0.25);
  border-color: #991b1b;
}

.issue-card.warning .btn-goto-stage {
  background: transparent;
  border: 1px solid #854d0e;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.issue-card.warning .btn-goto-stage:hover {
  background: rgba(133, 77, 14, 0.25);
  border-color: #a16207;
}

/* 3. Estratégia de Prompts (4 Cards Selecionáveis em Grid 2x2) */
.prompt-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prompt-strategy-card {
  background: #101621;
  border: 1px solid #283242;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}

.prompt-strategy-card:hover {
  border-color: #3b495d;
}

.prompt-strategy-card.selected {
  border-color: #6366f1;
  background: #171c2f;
}

.prompt-strategy-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.prompt-selected-badge {
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.prompt-strategy-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
}

.prompt-strategy-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* 4. Pasta do Canal no Computador */
.folder-box {
  background: #101621;
  border: 1px solid #283242;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.folder-box-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.folder-box-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #064e3b;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.folder-path-text {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bridge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #06251b;
  border: 1px solid #059669;
  color: #34d399;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 9999px;
}

.bridge-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.btn-change-folder {
  background: #1a2332;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-change-folder:hover {
  background: #243044;
  border-color: #475569;
}

/* 5. Diagnóstico Crítico (IA) */
.ai-diag-card {
  background: #101621;
  border: 1px solid #283242;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-diag-icon {
  color: #64748b;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.ai-diag-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 4px;
}

.ai-diag-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 16px;
  max-width: 480px;
  line-height: 1.5;
}

.btn-request-ai-diag {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-request-ai-diag:hover {
  background: #283548;
  border-color: #475569;
}

/* 6. Resumo do Canal (Cards das 9 Etapas) */
.channel-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.summary-card {
  background: #101621;
  border: 1px solid #283242;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-card.span-two {
  grid-column: 1 / -1;
}

.summary-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-card-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.summary-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.btn-edit-stage {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-edit-stage:hover {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #475569;
}

.summary-field-group {
  margin-top: 4px;
}

.summary-field-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.summary-field-value {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0 0 8px;
  word-break: break-word;
}

.summary-field-value:last-child {
  margin-bottom: 0;
}

/* 7. Observações Finais */
.final-notes-box textarea {
  width: 100%;
  background: #0d121b;
  border: 1px solid #283242;
  border-radius: 8px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
  min-height: 80px;
  resize: vertical;
}

.final-notes-box textarea::placeholder {
  color: #64748b;
}

.final-notes-status {
  text-align: right;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Footer Fixo da Consolidação */
.consolidacao-view .planning-footer {
  position: fixed;
  bottom: 0;
  left: 256px;
  right: 0;
  z-index: 30;
  background: #141a24;
  border-top: 1px solid #283242;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-blocks-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f87171;
  font-size: 13px;
  font-weight: 500;
}

.footer-blocks-status svg {
  color: #ef4444;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consolidacao-view .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-chat-ai {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-chat-ai:hover {
  background: #334155;
  border-color: #475569;
}

.btn-view-channel {
  background: #6366f1;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-view-channel:hover {
  background: #4f46e5;
}

/* Badge Opcional na Sidebar */
.pill-optional {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar selected item for consolidação */
.nav-channel-item[data-sidebar-stage="consolidacao"].active {
  background: #1e2338 !important;
  color: #818cf8 !important;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .consolidacao-view .planning-footer {
    left: 0;
  }
  .prompt-strategy-grid,
  .channel-summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card.span-two {
    grid-column: 1;
  }
}
