/* ==========================================================================
   FLUXO OPERACIONAL DO CORRETOR FÁBIO BIN (EAGLE TOWER) - ESTILOS OFICIAIS
   Etapa 1: Cadastro (Vendedores & Compradores)
   Etapa 2: Contrato de Representação (+ ABNT + Mídias + Portais + Feedback)
   Etapa 3: Visitas & Atendimento
   Etapa 4: Proposta de Compra e Venda
   Etapa 5: Fechamento Jurídico (C&V)
   Etapa 6: Financeiro & Pós-Venda
   ========================================================================== */

/* Container Principal do Fluxo */
.fluxo-corretor-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Banner de Cabeçalho do Fluxo Operacional */
.fluxo-header-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg, 12px);
  padding: 22px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 160, 89, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.fluxo-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fluxo-header-icon {
  font-size: 32px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fluxo-header-text h2 {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.fluxo-header-text p {
  font-size: 13px;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

.fluxo-header-creci-badge {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 8px;
  padding: 8px 16px;
  text-align: right;
}

.fluxo-header-creci-badge strong {
  display: block;
  font-size: 13px;
  color: #fce7b2;
}

.fluxo-header-creci-badge span {
  font-size: 11px;
  color: #cbd5e1;
}

/* Esteira Visual das 6 Etapas Sequenciais (Stepper / Pipeline) */
.fluxo-stepper-wrapper {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 20px;
  overflow-x: auto;
}

.fluxo-stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 900px;
  position: relative;
  gap: 8px;
}

.fluxo-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.fluxo-step-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.fluxo-step-item.active {
  background: rgba(197, 160, 89, 0.12);
  border-color: rgba(197, 160, 89, 0.4);
}

.fluxo-step-item.concluded .fluxo-step-bubble {
  background: #10b981;
  border-color: #34d399;
  color: #ffffff;
}

.fluxo-step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
}

.fluxo-step-item.active .fluxo-step-bubble {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fce7b2;
  color: #0f172a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  transform: scale(1.08);
}

.fluxo-step-title {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.fluxo-step-item.active .fluxo-step-title {
  color: #fce7b2;
}

.fluxo-step-subtitle {
  font-size: 10px;
  color: #64748b;
  max-width: 140px;
  line-height: 1.2;
}

.fluxo-step-connector {
  position: absolute;
  top: 27px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* Painel de Conteúdo de Cada Etapa */
.fluxo-stage-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  display: none;
}

.fluxo-stage-panel.active {
  display: block;
  animation: fadeInStage 0.3s ease-out;
}

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

/* Topo da Etapa (Título, Descrição e Ações Rápidas) */
.fluxo-stage-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}

.fluxo-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(197, 160, 89, 0.18);
  color: #fce7b2;
  border: 1px solid rgba(197, 160, 89, 0.35);
  margin-bottom: 6px;
}

.fluxo-stage-title-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.fluxo-stage-title-text p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

/* Formulário de Cadastro (Etapa 1) */
.cadastro-tipo-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  background: rgba(30, 41, 59, 0.6);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cadastro-tipo-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.cadastro-tipo-btn.active {
  background: rgba(197, 160, 89, 0.2);
  border-color: rgba(197, 160, 89, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cadastro-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

/* Cards Dinâmicos de Vendedores e Imóveis (Etapa 2) */
.multi-entry-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s;
}

.multi-entry-card:hover {
  border-color: rgba(197, 160, 89, 0.35);
}

.multi-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.multi-entry-header h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fce7b2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-multi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-multi:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}

/* 4 Serviços Técnicos Atrelados à Etapa 2 */
.servicos-atrelados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.servico-atrelado-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.servico-atrelado-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.4);
}

.servico-atrelado-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.servico-atrelado-icon {
  font-size: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
}

.servico-atrelado-info h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.servico-atrelado-info p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 3px 0 0 0;
  line-height: 1.3;
}

/* Visualizador de Contrato A4 Oficial do PDF */
.contrato-a4-preview-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 6px;
  padding: 40px 45px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
  font-size: 11pt;
  max-width: 900px;
  margin: 0 auto;
}

.contrato-a4-preview-card h1 {
  font-size: 14pt;
  font-weight: 900;
  text-align: center;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.contrato-a4-preview-card p {
  text-align: justify;
  margin-bottom: 12px;
  color: #1e293b;
}

.contrato-a4-preview-card strong {
  color: #0f172a;
}

.contrato-clausula-header {
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #0f172a;
}

.contrato-imovel-bloco {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 8px 0 12px 0;
  font-size: 10pt;
}

.contrato-assinaturas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 45px;
}

.contrato-assinatura-linha {
  text-align: center;
  border-top: 1px solid #0f172a;
  padding-top: 6px;
  font-size: 9.5pt;
  color: #0f172a;
}

/* Botões de Ação do Fluxo */
.fluxo-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.btn-fluxo-next {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-fluxo-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-fluxo-prev {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-fluxo-prev:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .fluxo-stepper-track {
    min-width: 720px;
  }
  .contrato-a4-preview-card {
    padding: 20px 16px;
    font-size: 9.5pt;
  }
  .contrato-assinaturas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fluxo-stage-panel {
    padding: 16px;
  }
}

/* ==========================================================================
   INTEGRAÇÃO CRM 360° COM O FLUXO OPERACIONAL (ANEXO 3)
   ========================================================================== */
.fluxo-crm-integrado-bar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(245, 158, 11, 0.15);
}

.fluxo-crm-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.fluxo-crm-title-area {
  flex: 1;
  min-width: 260px;
}

.fluxo-crm-badge-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.fluxo-crm-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #fbbf24;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fluxo-crm-subtitle {
  font-size: 12px;
  color: #cbd5e1;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.fluxo-crm-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fluxo-crm-search-wrapper {
  position: relative;
  width: 100%;
}

.fluxo-crm-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.fluxo-crm-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  color: #fbbf24;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fluxo-crm-input,
#cad-search-crm-client,
input#cad-search-crm-client.fluxo-crm-input {
  width: 100% !important;
  padding-left: 54px !important;
  padding-right: 42px !important;
  height: 48px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  background: #0b1120 !important;
  border: 2px solid #38bdf8 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}

.fluxo-crm-input:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
  outline: none;
}

.fluxo-crm-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.fluxo-crm-clear-btn:hover {
  color: #ffffff;
}

/* Dropdown Flutuante */
.crm-fluxo-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f172a;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.crm-fluxo-dropdown-header {
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.15);
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  letter-spacing: 0.5px;
}

.crm-fluxo-dropdown-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease;
}

.crm-fluxo-dropdown-item:last-child {
  border-bottom: none;
}

.crm-fluxo-dropdown-item:hover {
  background: rgba(245, 158, 11, 0.22);
}

.crm-fluxo-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.crm-fluxo-item-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.crm-fluxo-item-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.crm-fluxo-item-meta {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
}

.crm-fluxo-item-end {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.crm-fluxo-dropdown-empty {
  padding: 18px 16px;
  text-align: center;
}

/* Card de Cliente Selecionado */
.fluxo-crm-selected-card {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10b981;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fluxo-crm-selected-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fluxo-crm-selected-avatar {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #10b981;
}

.fluxo-crm-selected-status {
  font-size: 10.5px;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fluxo-crm-selected-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.fluxo-crm-selected-details {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 2px;
}

.fluxo-crm-selected-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* ==========================================================================
   ESTRUTURA DE ALTO PADRÃO 360°: LINHA DO TEMPO, ALERTAS, PASTAS E GERADORES
   ========================================================================== */

/* Barra Seletora de Imóvel / Negociação Ativa */
.fluxo-imovel-selector-bar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 100%);
  border: 2px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fluxo-imovel-selector-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.fluxo-imovel-selector-select {
  background: #0b1120 !important;
  color: #ffffff !important;
  border: 2px solid #c5a059 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  min-width: 300px;
  flex: 1;
}

/* Alerta Inteligente de Pendências (Pilar 4) */
.fluxo-alerta-pendencias-banner {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35) 0%, rgba(69, 26, 3, 0.5) 100%);
  border: 2px solid #f59e0b;
  border-left: 6px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fluxo-alerta-pendencias-banner.tudo-ok {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: #10b981;
  border-left-color: #10b981;
}

.fluxo-alerta-title {
  font-size: 14px;
  font-weight: 900;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fluxo-alerta-pendencias-banner.tudo-ok .fluxo-alerta-title {
  color: #a7f3d0;
}

.fluxo-alerta-desc {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  margin-top: 4px;
  line-height: 1.45;
}

/* Badges de Status na Linha do Tempo Visual (Pilar 1) */
.fluxo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1.5px solid transparent;
}

.fluxo-status-pill.concluido {
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
  border-color: #10b981;
}

.fluxo-status-pill.andamento {
  background: rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
  border-color: #3b82f6;
}

.fluxo-status-pill.pendente {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border-color: #f59e0b;
}

/* Árvore de Pastas e Documentos Integrados (Pilar 3) */
.dossie-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.dossie-folder-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.dossie-folder-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.dossie-folder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  gap: 8px;
}

.dossie-folder-name {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13.5px;
  font-weight: 900;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossie-doc-item {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossie-doc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.dossie-doc-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.dossie-doc-desc {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.4;
}

.dossie-doc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Gerador em 1 Clique (Pilar 2) */
.gerador-1click-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.btn-gerador-1click {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-gerador-1click:hover {
  border-color: #fbbf24;
  background: rgba(197, 160, 89, 0.16);
  transform: translateY(-2px);
}

.btn-gerador-1click strong {
  font-size: 13px;
  font-weight: 800;
  color: #fce7b2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-gerador-1click span {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Chips de Condomínios Prioritários */
.condominio-chip-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.condominio-chip-btn.selected {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 800;
}

/* Tabela Técnica ACM e ABNT */
.tabela-tecnica-alto-padrao {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tabela-tecnica-alto-padrao th {
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
  font-weight: 800;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tabela-tecnica-alto-padrao td {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-weight: 600;
}

/* ==========================================================================
   SUPORTE COMPLETO E ALTO CONTRASTE PARA MODO CLARO (body.theme-light)
   Conforme diretrizes permanentes em AGENTS.md
   ========================================================================== */
body.theme-light .fluxo-header-card,
body.theme-light .fluxo-imovel-selector-bar,
body.theme-light .fluxo-stepper-wrapper,
body.theme-light .fluxo-stage-panel,
body.theme-light .fluxo-crm-integrado-bar,
body.theme-light .dossie-folder-card,
body.theme-light .multi-entry-card,
body.theme-light .servico-atrelado-card {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .fluxo-header-text h2,
body.theme-light .fluxo-stage-title-text h3,
body.theme-light .dossie-doc-title,
body.theme-light .fluxo-crm-selected-name,
body.theme-light .crm-fluxo-item-name,
body.theme-light .servico-atrelado-info h5 {
  color: #0f172a !important;
  font-weight: 900 !important;
}

body.theme-light .fluxo-header-text p,
body.theme-light .fluxo-stage-title-text p,
body.theme-light .fluxo-crm-subtitle,
body.theme-light .dossie-doc-desc,
body.theme-light .fluxo-crm-selected-details,
body.theme-light .servico-atrelado-info p {
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.theme-light .fluxo-step-title {
  color: #1e293b !important;
  font-weight: 800 !important;
}

body.theme-light .fluxo-step-item.active {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
}

body.theme-light .fluxo-step-item.active .fluxo-step-title {
  color: #78350f !important;
}

body.theme-light .fluxo-step-subtitle {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .dossie-folder-name,
body.theme-light .fluxo-crm-title,
body.theme-light .multi-entry-header h4 {
  color: #92400e !important;
  font-weight: 900 !important;
}

body.theme-light .dossie-doc-item {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .btn-gerador-1click {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body.theme-light .btn-gerador-1click strong {
  color: #0f172a !important;
}

body.theme-light .btn-gerador-1click span {
  color: #334155 !important;
}

body.theme-light .fluxo-alerta-pendencias-banner {
  background: #fffbeb !important;
  border-color: #d97706 !important;
  border-left-color: #b45309 !important;
}

body.theme-light .fluxo-alerta-pendencias-banner .fluxo-alerta-title {
  color: #92400e !important;
}

body.theme-light .fluxo-alerta-pendencias-banner .fluxo-alerta-desc {
  color: #0f172a !important;
}

body.theme-light .fluxo-alerta-pendencias-banner.tudo-ok {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  border-left-color: #047857 !important;
}

body.theme-light .fluxo-alerta-pendencias-banner.tudo-ok .fluxo-alerta-title {
  color: #065f46 !important;
}

body.theme-light .fluxo-status-pill.concluido {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #059669 !important;
}

body.theme-light .fluxo-status-pill.andamento {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-color: #2563eb !important;
}

body.theme-light .fluxo-status-pill.pendente {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #d97706 !important;
}

body.theme-light .fluxo-imovel-selector-select,
body.theme-light .fluxo-crm-input,
body.theme-light #cad-search-crm-client {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #1d4ed8 !important;
}

body.theme-light .tabela-tecnica-alto-padrao th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .tabela-tecnica-alto-padrao td {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
