.chart-sync-container {
  position: relative;
  width: 100%;
}

.modal-xl-custom {
  width: 60% !important;
  max-width: 60% !important;
  margin: 0 !important;
  left: 20% !important;
  position: fixed !important;
  top: 8vh !important;
}

.nav-tabs .nav-link {
  font-weight: 500;
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  font-weight: bold;
  border-bottom: 2px solid #0d6efd;
}

.card-chart-header {
  font-size: 0.85rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-xs-custom {
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
}

.ai-suggestion-btn {
  transition: all 0.2s;
}

.ai-suggestion-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

/* Sticky Header Component */
.modal-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.shadow-xs {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.insight-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.avatar-sm img {
  transition: transform 0.2s;
}
.avatar-sm img:hover {
  transform: scale(1.1);
}

.btn-white {
  background-color: #fff;
  color: #212529;
}
.btn-white:hover {
  background-color: #f8f9fa;
}

/* Fix overlapped sticky header */
.table-responsive thead.sticky-top th {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Ensure it stays on top */
  background-color: #f8f9fa;
  /* Explicit background to prevent see-through */
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Ensure absolute centering works */
#valuationModal .modal-content {
  position: relative;
  height: 90vh !important;
  display: flex;
  flex-direction: column;
  min-height: 400px; /* Ensure space for loader */
}

#valuationModal .modal-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

#valuationModal .ai-loading-overlay {
  justify-content: flex-start;
  padding-top: 120px;
}

#valuationModal {
  padding: 0 !important;
}
