/* ==========================================================================
   CORRETOR & AGENDA SUITE - ESTILOS OFICIAIS (FÁBIO BIN & CONSTRUBIN)
   ========================================================================== */

/* BARRA 3: ESTEIRA DE AGENDAMENTOS */
.dash-ribbon-card-schedules {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.schedules-ribbon-counter-badge {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 11px;
}

/* Chips de Agendamento */
.dash-chip-item-schedule {
  border-left: 4px solid #3b82f6 !important;
  position: relative;
  overflow: hidden;
}

/* Alerta de Luz Neon / Pulsante para agendamentos de HOJE ou em andamento */
.dash-chip-item-schedule.is-alerting {
  border-color: #f59e0b !important;
  border-left: 4px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.12) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45), inset 0 0 8px rgba(245, 158, 11, 0.15) !important;
  animation: pulseScheduleGlow 2s infinite ease-in-out;
}

@keyframes pulseScheduleGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35), inset 0 0 6px rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.8), inset 0 0 14px rgba(245, 158, 11, 0.3);
    border-color: #fbbf24;
  }
}

/* Chip Concluído / Cumprido */
.dash-chip-item-schedule.is-concluded {
  border-left-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  opacity: 0.92;
}

/* Etiquetas e Badges Coloridos */
.dash-chip-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.dash-chip-horario-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.dash-chip-concluido-badge {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Ações do Chip de Agendamento */
.dash-chip-schedule-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.btn-chip-action-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-chip-gcal {
  background: #1e3a8a;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}
.btn-chip-gcal:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-chip-maps {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-chip-maps:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-chip-complete {
  grid-column: span 2;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 11.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-chip-complete:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
}

.btn-chip-completed-done {
  grid-column: span 2;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid #10b981;
  cursor: default;
  font-size: 11px;
}

/* ==========================================================================
   CENTRAL IMOBILIÁRIA FÁBIO BIN (MODAIS E ABAS)
   ========================================================================== */
.fabio-hub-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.fabio-hub-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fabio-hub-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Multi-Imóveis Card Container */
.multi-imovel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}

.multi-imovel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.multi-imovel-header h4 {
  margin: 0;
  font-size: 13px;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FOLHA A4 - VISUALIZAÇÃO E IMPRESSÃO DE CONTRATOS */
.folha-a4-preview-container {
  background: #525659;
  padding: 24px 12px;
  display: flex;
  justify-content: center;
  max-height: 75vh;
  overflow-y: auto;
  border-radius: 8px;
}

.folha-a4-documento {
  background: #ffffff;
  color: #1e293b;
  width: 210mm;
  min-height: 297mm;
  padding: 22mm 20mm;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-family: 'Times New Roman', Times, serif;
  font-size: 12pt;
  line-height: 1.6;
  position: relative;
  box-sizing: border-box;
}

.folha-a4-documento h1, 
.folha-a4-documento h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  color: #0f172a;
  margin: 0 0 14px 0;
}

.folha-a4-documento h1 {
  font-size: 16pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.folha-a4-documento .valor-destaque {
  text-align: center;
  font-weight: 800;
  font-size: 14pt;
  color: #1e3a8a;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 6px 0;
  margin-bottom: 18px;
}

.folha-a4-documento p {
  text-align: justify;
  text-indent: 15mm;
  margin: 0 0 12px 0;
}

.folha-a4-documento .clausula-titulo {
  font-weight: 800;
  color: #0f172a;
}

.folha-a4-documento .assinaturas-box {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.folha-a4-documento .linha-assinatura {
  border-top: 1px solid #000000;
  width: 75%;
  margin: 0 auto;
  text-align: center;
  padding-top: 4px;
  font-size: 10.5pt;
  font-weight: 700;
}

/* Recibo Oficial Fábio Bin */
.recibo-oficial-box {
  border: 2px solid #1e3a8a;
  border-radius: 8px;
  padding: 20px;
  background: #f8fafc;
  color: #0f172a;
}

.recibo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.recibo-valor-tag {
  font-size: 18pt;
  font-weight: 900;
  color: #1e3a8a;
  background: #e0e7ff;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #6366f1;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .dash-chip-item-schedule {
    min-width: 100% !important;
    max-width: 100% !important;
  }
  .folha-a4-preview-container {
    padding: 6px;
  }
  .folha-a4-documento {
    width: 100%;
    min-height: auto;
    padding: 14px;
    font-size: 10.5pt;
  }
  .dash-chip-schedule-actions {
    grid-template-columns: 1fr;
  }
  .btn-chip-complete {
    grid-column: span 1;
  }
}

/* Modo de Impressão */
@media print {
  /* Se o modal imobiliário estiver ativo para impressão */
  #modal-a4-imobiliario-preview.show {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  #modal-a4-imobiliario-preview:not(.show) {
    display: none !important;
  }

  .folha-a4-preview-container {
    background: transparent !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .folha-a4-documento {
    box-shadow: none !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .modal-header, .modal-footer, .no-print {
    display: none !important;
  }

  /* Garante que o visualizador de documentos e recibos A4 (#modal-doc-viewer) seja 100% visível na impressão em múltiplas páginas sem cortes */
  #modal-doc-viewer,
  #modal-doc-viewer.show,
  #modal-doc-viewer.active,
  #modal-doc-viewer .modal-dialog,
  #modal-doc-viewer .modal-body,
  #doc-preview-body,
  .document-preview-container {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    background: #ffffff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    flex: none !important;
    float: none !important;
  }
  #modal-doc-viewer *,
  #doc-preview-body *,
  .document-preview-container * {
    visibility: visible !important;
  }
}


