.card-container{
    margin-top: 105px;
}
.font1{
     font-family: Georgia, 'Times New Roman', Times, serif;
}


/* image or pdf cancel button in the addAnouncemnt */
.close-icon-image-preview {
    position: absolute;
    top: -5px;
    right: -5px;
    color: rgb(77, 72, 72);
    background: white;
    border-radius: 50%;
  }

  .fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    display: flex;
    border-top: 1px solid #ccc;
  }
  
  .configuration-container {
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.header {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem 2rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.separator {
  margin: 0 0.5rem;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.tabs-container {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  padding: 0 2rem;
}

.tabs {
  display: flex;
  gap: 0;
}

.tab {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab:hover {
  color: #495057;
}

.tab.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.content {
  background-color: white;
  margin: 1.5rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e9ecef;
}

.tab-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tab-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.results-count {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

.tab-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
}

.search-input {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 16rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 0.875rem;
}

.add-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.add-button:hover {
  background-color: #0056b3;
}

.plus-icon {
  font-size: 1rem;
  font-weight: bold;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background-color: #f8f9fa;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.875rem;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  color: #212529;
  font-size: 0.875rem;
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-table th:first-child,
.data-table td:first-child {
  width: 80px;
}

/* Responsive design */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .tabs-container {
    padding: 0 1rem;
  }

  .content {
    margin: 1rem;
  }

  .tab-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .tab-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-input {
    width: 100%;
  }
}
/* Base Styles - Professional Theme */
body {
  padding-top: 50px;
  margin: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Mobile-specific body padding reduction */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
    margin: 1px;
  }
}

.fixed-top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  align-items: center;
  z-index: 1101;
  background: linear-gradient(135deg, #f5f3f3 0%, #f8fafc 100%) !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: 60px;
}

/* Breadcrumb Styling */
.breadcrumb-container {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  padding: 8px 16px;
  max-width: 300px;
  height: 40px;
}

.breadcrumb-text {
  color: #6b7280 !important;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease-in-out;
}

/* Search Form Styling - Mobile left, Desktop right */
.search-form {
  max-width: 320px;
  width: 100%;
  /* Mobile: stays in normal flow (left side) */
  margin-left: 0;
  margin-right: 0;
}

.search-form .form-control {
  border-radius: 8px;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
}

.search-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
  outline: none;
}

/* Modern CRM Sidebar Styles - Monday.com exact match */
.modern-crm-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
}

.modern-crm-sidebar.show {
  transform: translateX(0%);
}

.modern-crm-sidebar.collapsed {
  width: 60px;
}

/* Header Section - Monday.com style */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo-container {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.side-collapse-btn {
  width: 30px;
  height: 24px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.side-collapse-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Section Styles */
.sidebar-section {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-section:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px 16px;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 16px 8px 16px;
}

.subsection-header {
  padding: 8px 16px 4px 16px;
  margin-top: 8px;
}

.subsection-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expand-icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.expand-icon:hover {
  color: #64748b;
}

.expand-icon.rotated {
  transform: rotate(90deg);
}

/* Navigation Items - Monday.com exact styling */
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Removed padding to align items to left edge */
}

.nav-item-container {
  position: relative;
  display: flex;
  align-items: center;
  /* Removed horizontal margins to eliminate left spacing */
  margin: 0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-item-container:hover {
  background: #f1f5f9;
}

.nav-item-container:hover .nav-item-options {
  opacity: 1;
  visibility: visible;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Reduced left padding from 16px to 12px for better left alignment */
  padding: 8px 12px;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.nav-item:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.nav-item.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Navigation item options button */
.nav-item-options {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
  margin-right: 8px;
}

.nav-item-options:hover {
  background: #e2e8f0;
  color: #64748b;
}

.nav-item-options svg {
  width: 16px;
  height: 16px;
}

.favorite-indicator {
  transition: all 0.2s ease;
}

.favorite-indicator:hover {
  transform: scale(1.1);
}

/* Context Menu Styles */
.context-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 200px;
  animation: contextMenuFadeIn 0.2s ease-out;
  position: fixed;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
  margin-bottom: 100px;
}

@keyframes contextMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #475569;
  position: relative;
}

.context-menu-item:hover {
  background: #f8fafc;
  color: #1e293b;
}

.context-menu-item.context-menu-item-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.context-menu-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.context-menu-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #94a3b8;
}

.context-menu-separator {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

/* Workspace Section - Monday.com style */
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.action-icon:hover {
  color: #64748b;
}

.workspace-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  
}

.workspace-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #00c875;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.workspace-btn:hover {
  background: #00a870;
}

.workspace-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
}

.add-workspace-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #00c875;
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.add-workspace-btn:hover {
  background: #00a870;
}

/* Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
}

.logout-btn {
  width: 100%;
  justify-content: flex-start;
  color: #ef4444 !important;
}

.logout-btn:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* Collapsed State */
.modern-crm-sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px 8px;
  margin: 0;
  min-height: 44px;
  width: 100%;
}

.modern-crm-sidebar.collapsed .nav-icon {
  width: 24px;
  height: 24px;
}

.modern-crm-sidebar.collapsed .nav-item-container {
  margin: 0 4px;
  justify-content: center;
}

.modern-crm-sidebar.collapsed .workspace-btn {
  justify-content: center;
  padding: 12px 8px;
  min-height: 44px;
}

.modern-crm-sidebar.collapsed .add-workspace-btn {
  width: 32px;
  height: 32px;
}

.modern-crm-sidebar.collapsed .section-title {
  display: none;
}

.modern-crm-sidebar.collapsed .subsection-title {
  display: none;
}

.modern-crm-sidebar.collapsed .workspace-actions {
  display: none;
}

.modern-crm-sidebar.collapsed .section-header {
  display: none;
}

.modern-crm-sidebar.collapsed .subsection-header {
  display: none;
}
.modern-crm-sidebar.collapsed .workspace-selector {
  display: none
}


/* Improved tooltip positioning for collapsed state */
.modern-crm-sidebar.collapsed .nav-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Added arrow for tooltip */
.modern-crm-sidebar.collapsed .nav-item:hover::before {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #1e293b;
  z-index: 1002;
  pointer-events: none;
}

/* Desktop Styles */
@media (min-width: 992px) {
  body {
    padding-top: 64px;
    padding-left: 280px;
    margin: 2px;
  }

  .modern-crm-sidebar {
    transform: translateX(0%);
    width: 280px;
  }

  .modern-crm-sidebar.collapsed {
    width: 60px;
  }

  .fixed-top-navbar {
    left: 280px;
    width: calc(100% - 280px);
  }

  .fixed-top-navbar.collapsed {
    left: 60px;
    width: calc(100% - 60px);
  }

  /* Desktop: Search at right end */
  .search-form {
    margin-left: auto;
    margin-right: 1rem;
    max-width: 320px;
  }

  /* Breadcrumb positioning */
  .breadcrumb-container {
    margin-right: auto;
  }
}

/* Mobile Responsive breakpoints */
@media (max-width: 576px) {
  .modern-crm-sidebar {
    width: 280px;
  }

  .breadcrumb-container {
    max-width: 120px;
  }

  .search-form {
    max-width: 230px;
    /* Mobile: search stays in normal flow (left side) */
    margin-left: 0;
    margin-right: 0;
  }

  /* Reduce padding for mobile sidebar */
  .sidebar-nav-links .nav-item {
    margin-bottom: 0.5rem; /* Add gap between navigation items */
  }

  .sidebar-nav-links .nav-item .nav-link {
    padding: 0.25rem 1rem;
    font-size: 0.9375rem;
  }

  .assessment-toggle {
    padding: 0.25rem 1rem;
    font-size: 0.9375rem;
  }

  .assessment-submenu .submenu-link {
    padding: 0.125rem 1rem 0.125rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

  .company-header {
    padding: 0.9rem 0.9rem 0.75rem 1rem;
  }

  .company-header h5 {
    font-size: 1rem;
  }
}

@media (min-width: 577px) and (max-width: 767px) {
  .modern-crm-sidebar {
    width: 280px;
  }

  .search-form {
    max-width: 200px;
    /* Tablet: search stays in normal flow */
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .modern-crm-sidebar {
    width: 280px;
  }

  .search-form {
    max-width: 250px;
    /* Tablet: search stays in normal flow */
    margin-left: 0;
    margin-right: 0;
  }

  .breadcrumb-container {
    max-width: 200px;
  }
}

/* Animation Enhancements */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.assessment-submenu.show .nav-item {
  animation: slideIn 0.2s ease-out forwards;
}

/* Focus States for Accessibility */
.nav-link:focus,
.assessment-toggle:focus,
.logout-btn:focus {
  /* outline: 2px solid #6366f1; */
  outline-offset: -2px;
}

/* Smooth Scrolling */
.modern-crm-sidebar {
  scroll-behavior: smooth;
}

/* Professional Scrollbar */
.modern-crm-sidebar::-webkit-scrollbar {
  width: 4px;
}

.modern-crm-sidebar::-webkit-scrollbar-track {
  background: #f9fafb;
}

.modern-crm-sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.modern-crm-sidebar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Navbar toggler */
.navbar-toggler {
  color: #6b7280 !important;
  border: none !important;
  padding: 0.15rem 0.35rem;
  font-size: 0.875rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28107, 114, 128, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.2rem;
  height: 1.2rem;
  background-size: 1.2rem;
}

/* Professional spacing and typography */
.sidebar-nav-links .nav-item .nav-link span:first-child {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Hover effects for better UX */
/* .sidebar-nav-links .nav-item .nav-link:hover,
.assessment-toggle:hover {
  transform: translateX(2px);
} */

/* Active state indicators */
.sidebar-nav-links .nav-item .nav-link.active::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  /* transform: translateY(-50%); */
  width: 4px;
  height: 4px;
  border-radius: 50%;
  /* background: #6366f1; */
}
.mass-email-tracker {
  padding: 24px;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.info-btn,
.chat-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.info-btn:hover,
.chat-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Content Tabs */
.content-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.tab {
  padding: 12px 24px;
  border: none;
  background: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab:hover {
  color: #374151;
  background: #f8fafc;
}

.tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #f0f9ff;
}

/* Table Container */
.table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

/* Table Header */
.table-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-icon {
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: #64748b;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.empty-illustration {
  margin-bottom: 32px;
  position: relative;
}

.hand-illustration {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hand {
  position: relative;
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 60px 60px 20px 20px;
  transform: rotate(-15deg);
}

.fingers {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 60px;
  height: 40px;
  background: #ef4444;
  border-radius: 30px 30px 10px 10px;
}

.thumb {
  position: absolute;
  top: 10px;
  right: -10px;
  width: 25px;
  height: 35px;
  background: #ef4444;
  border-radius: 12px;
}

.nail-polish {
  position: absolute;
  top: -5px;
  left: 25px;
  width: 30px;
  height: 15px;
  background: #3b82f6;
  border-radius: 15px 15px 5px 5px;
}

.envelope {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 40px;
  background: #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fbbf24;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: 20px;
  right: 40px;
  animation-delay: 0s;
}

.sparkle-2 {
  bottom: 30px;
  left: 30px;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.empty-description {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 24px 0;
  max-width: 400px;
}

.learn-more-btn {
  padding: 12px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.learn-more-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Help Button */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  z-index: 1000;
}

.help-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mass-email-tracker {
    padding: 16px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .table-header {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    font-size: 11px;
  }
  
  .empty-illustration {
    width: 150px;
    height: 150px;
  }
  
  .hand-illustration {
    width: 150px;
    height: 150px;
  }
  
  .hand {
    width: 90px;
    height: 60px;
  }
} .sequences-page {
  padding: 24px;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.beta-tag {
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.new-sequence-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.new-sequence-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.filter-btn,
.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.search-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.learn-more-link,
.feedback-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.learn-more-link:hover,
.feedback-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Table Container */
.table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

/* Table Header */
.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-icon {
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: #64748b;
}

/* Empty State */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 400px;
}

.empty-content {
  text-align: center;
  max-width: 500px;
}

.empty-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.empty-description {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.new-sequence-btn-large {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin: 0 auto 16px auto;
  transition: all 0.2s ease;
}

.new-sequence-btn-large:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.learn-more-link-large {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.learn-more-link-large:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Help Button */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  z-index: 1000;
}

.help-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sequences-page {
    padding: 16px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-left {
    width: 100%;
  }
  
  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .new-sequence-btn,
  .filter-btn,
  .search-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .table-header {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    font-size: 11px;
  }
  
  .empty-title {
    font-size: 20px;
  }
  
  .empty-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .new-sequence-btn,
  .filter-btn,
  .search-btn {
    width: 100%;
    justify-content: center;
  }
  
  .table-header {
    grid-template-columns: 1fr 1fr;
  }
} .quotes-invoices-page {
  background: #ffffff;
  min-height: 100vh;
  position: relative;
}
.quotes-invoices-page {
  background: #f8f9fa;
  min-height: 100vh;
}

/* Card and Form Styling */
.document-form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.document-form {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.document-header-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Items Section Styling */
.items-section {
  margin: 32px 0;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.items-section h5 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.items-section .text-muted {
  color: #6b7280 !important;
  margin-bottom: 24px;
  font-size: 14px;
}

/* Product Selection */
.product-selection {
  position: relative;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  position: relative;
}

.input-group-text {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-selection .form-control {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.product-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-header {
  padding: 12px 16px;
  background-color: #f9fafb;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

/* Table Styling */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.table th {
  background-color: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:hover {
  background-color: #f9fafb;
}

.table input.form-control-sm {
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  max-width: 120px;
}

/* Total Section */
.total-section {
  background-color: #f9fafb;
  border-radius: 6px;
  padding: 16px 24px;
  margin-top: 24px;
}

.total-section .row {
  display: flex;
  justify-content: flex-end;
}

.total-section .col-md-6 {
  width: 50%;
  max-width: 300px;
}

.total-section .d-flex {
  padding: 8px 0;
}

.total-section .fw-bold {
  font-weight: 600;
  color: #111827;
  font-size: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 4px;
}

/* Action Buttons */
.btn-action {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-primary {
  color: #3b82f6;
  border: 1px solid #3b82f6;
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: #3b82f6;
  color: white;
}

.btn-outline-danger {
  color: #ef4444;
  border: 1px solid #ef4444;
  background: transparent;
}

.btn-outline-danger:hover {
  background-color: #ef4444;
  color: white;
}

/* Notes Section */
.notes-section {
  margin-top: 32px;
}

.notes-section .form-control {
  min-height: 100px;
  resize: vertical;
}

/* Card Header */
.card-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 24px;
}

.card-header h4 {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .table {
    display: block;
    overflow-x: auto;
  }
  
  .table th, 
  .table td {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .document-form {
    padding: 16px;
  }
  
  .items-section {
    padding: 16px;
  }
  
  .table td {
    padding: 12px 8px;
  }
  
  .total-section .col-md-6 {
    width: 100%;
    max-width: none;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .card-header > div {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .btn-action {
    flex-direction: column;
    gap: 4px;
  }
  
  .table input.form-control-sm {
    max-width: 80px;
  }
}

/* Top Header Bar */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.page-title-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.title-chevron {
  width: 16px;
  height: 16px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.title-chevron:hover {
  color: #374151;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background: #f8fafc;
  color: #374151;
  border-color: #cbd5e1;
}

.header-action-btn.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.header-action-btn.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.integration-icons {
  display: flex;
  gap: 4px;
}

.hex-icon {
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.user-profile {
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.invite-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invite-btn:hover {
  background: #1d4ed8;
}

/* Sub-navigation Tabs */
.sub-navigation {
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.sub-tab {
  padding: 12px 16px;
  background: none;
  color: #64748b;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.sub-tab:hover {
  color: #374151;
  background: #f8fafc;
}

.sub-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #f0f9ff;
}

.add-tab-btn {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.add-tab-btn:hover {
  background: #e2e8f0;
  color: #374151;
}

/* Action Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.create-new-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.create-new-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  width: 16px;
  height: 16px;
}

.search-input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  width: 240px;
  background: #ffffff;
}

.search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.action-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #f8fafc;
  color: #374151;
  border-color: #9ca3af;
}

/* Main Content Area */
.main-content {
  padding: 24px;
  min-height: calc(100vh - 200px);
}

/* Table Container */
.table-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: none
}

.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  border: none;
  padding: 0;
  vertical-align: middle;
}

/* Group Headers */
.group-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-left: 4px solid #007bff;
  padding: 1rem 0.75rem;
}

.group-header button {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.group-header .badge {
  background-color: #6c757d;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Cell Content */
.cell-content {
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.cell-content:hover {
  background-color: #f8f9fa;
}

.cell-content .edit-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cell-content:hover .edit-icon {
  opacity: 1;
}

/* Status Badge */
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.status-badge.draft {
  background-color: #6c757d;
}

.status-badge.sent {
  background-color: #17a2b8;
}

.status-badge.viewed {
  background-color: #007bff;
}

.status-badge.approved {
  background-color: #28a745;
}

.status-badge.rejected {
  background-color: #dc3545;
}

.status-badge.paid {
  background-color: #20c997;
}

/* Empty State */
.empty-state {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 0;
}

.empty-illustration {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-stack {
  position: relative;
  width: 200px;
  height: 120px;
}

.document {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-3 {
  width: 160px;
  height: 100px;
  top: 20px;
  left: 20px;
  background: #f8fafc;
  z-index: 1;
}

.document-2 {
  width: 170px;
  height: 110px;
  top: 10px;
  left: 15px;
  background: #f1f5f9;
  z-index: 2;
}

.document-1 {
  width: 180px;
  height: 120px;
  top: 0;
  left: 10px;
  background: #dbeafe;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dollar-sign {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
}

.hand {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 30px 30px 10px 10px;
  z-index: 4;
}

.pen {
  position: absolute;
  top: -10px;
  right: 15px;
  width: 4px;
  height: 40px;
  background: #374151;
  border-radius: 2px;
  transform: rotate(-15deg);
}

.pen::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.empty-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.empty-description {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* PDF Icon Styling */
.pdf-icon-container {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #ff4757;
  color: white;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
  user-select: none;
}

.pdf-icon-container:hover {
  background-color: #ff3742;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(255, 71, 87, 0.3);
}

.pdf-icon-container:active {
  transform: scale(0.95);
}

/* PDF Preview Modal */
.pdf-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pdf-preview-content {
  background-color: white;
  border-radius: 12px;
  width: 85%;
  max-width: 900px;
  max-height: 90%;
  overflow: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.pdf-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px 12px 0 0;
}

.pdf-preview-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-preview-header h5::before {
  content: "📄";
  font-size: 1.5rem;
}

.pdf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-header-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pdf-header-actions .btn-outline-primary {
  color: #2563eb;
  border: 1px solid #2563eb;
  background: transparent;
}

.pdf-header-actions .btn-outline-primary:hover {
  background-color: #2563eb;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}



.pdf-preview-body {
  padding: 1.5rem;
}

.document-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.document-type {
  font-weight: 600;
  color: #2563eb;
}

.document-number {
  font-weight: 600;
}

.document-items {
  margin-bottom: 2rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
}

.items-table th,
.items-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.items-table th {
  font-weight: 600;
  color: #64748b;
  background-color: #f8fafc;
}

.document-total {
  text-align: right;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 6px;
}

.document-footer {
  display: flex;
  justify-content: space-between;
}

.from-section {
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 6px;
  flex: 1;
  max-width: 300px;
}

/* Status Dropdown Specific Styles */
.status-dropdown-container {
  position: relative;
  width: 100%;
}

.status-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.status-dropdown-trigger:hover {
  border-color: #17a2b8;
}

.status-dropdown-trigger:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

.status-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  max-width: 280px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: #212529;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.status-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.status-dropdown-option:hover {
  background-color: #f8f9fa;
  color: #16181b;
}

.status-dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
  font-weight: 500;
}

/* Document Form Styles */
.document-form-container {
  max-width: 1000px;
  margin: 0 auto;
}

.document-form {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.document-header-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.items-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h5 {
  margin: 0;
  color: #374151;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.items-table th {
  background-color: #f8fafc;
  padding: 12px;
  text-align: left;
  font-weight: 500;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.items-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.items-table .form-control-sm {
  padding: 4px 8px;
  font-size: 14px;
}

.total-amount {
  font-weight: 500;
  color: #374151;
}

.total-section {
  text-align: right;
  padding: 16px;
  background-color: #f8fafc;
  border-radius: 6px;
}

.notes-section {
  margin-bottom: 24px;
}

/* Help Button */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  z-index: 1000;
}

.help-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .header-action-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .page-title {
    font-size: 18px;
  }
  
  .sub-navigation {
    padding: 0 16px;
    overflow-x: auto;
  }
  
  .sub-tab {
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .action-bar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .action-left,
  .action-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-input {
    width: 200px;
  }
  
  .empty-illustration {
    width: 250px;
    height: 150px;
  }
  
  .document-stack {
    width: 150px;
    height: 90px;
  }
  
  .empty-title {
    font-size: 20px;
  }
  
  .empty-description {
    font-size: 14px;
  }
  
  .pdf-preview-content {
    width: 95%;
    margin: 0 auto;
  }
  
  .document-form {
    padding: 16px;
  }
  
  .items-table {
    font-size: 14px;
  }
  
  .items-table th,
  .items-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .header-right {
    justify-content: center;
  }
  
  .search-input {
    width: 180px;
  }
  
  .action-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .empty-illustration {
    width: 200px;
    height: 120px;
  }
  
  .document-form {
    padding: 12px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }


  
}.virtual-events-page {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
  position: relative;
  padding: 40px 24px;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.highlight {
  color: #00c875;
}

.hero-description {
  font-size: 20px;
  color: #64748b;
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.create-event-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #00c875;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 200, 117, 0.3);
}

.create-event-btn:hover {
  background: #00a870;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 200, 117, 0.4);
}

/* Video Section */
.video-section {
  flex: 1;
  max-width: 500px;
}

.video-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  position: relative;
}

.video-content {
  text-align: center;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.video-frame {
  position: relative;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.video-placeholder {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-screen {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-placeholder {
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  border-radius: 6px;
  position: relative;
}

.chart-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #2563eb;
  border-radius: 2px;
}

.monday-logo {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  background: #e0f2fe;
  padding: 8px 16px;
  border-radius: 20px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
}

.play-button:hover {
  background: #dc2626;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.video-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

/* Benefits Section */
.benefits-section {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin: 0 0 48px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  margin-bottom: 20px;
}

.icon-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00c875 0%, #00a870 100%);
  border-radius: 12px;
  position: relative;
}

.icon-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 4px;
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.benefit-description {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Help Button */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .video-section {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .virtual-events-page {
    padding: 24px 16px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .create-event-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .video-container {
    padding: 16px;
  }
  
  .video-title {
    font-size: 16px;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .benefits-title {
    font-size: 24px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .benefit-card {
    padding: 24px;
  }
  
  .benefit-title {
    font-size: 18px;
  }
  
  .benefit-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .video-screen {
    flex-direction: column;
    gap: 8px;
  }
  
  .chart-placeholder {
    width: 100%;
    height: 30px;
  }
  
  .play-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
} /* Contacts Page Styles */

/* Main Container */
.contacts-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

/* Action Bar */
.action-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.action-bar .btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.action-bar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.action-bar .btn-outline-secondary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.action-bar .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Search Input */
.search-input-group {
  width: 250px;
}

.search-input-group .input-group-text {
  background: white;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.search-input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
}

.search-input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Main Table Container */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  border: none;
  padding: 0;
  vertical-align: middle;
}

/* Group Headers */
.group-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-left: 4px solid #00c875;
  padding: 1rem 0.75rem;
}

.group-header.inactive {
  background: linear-gradient(135deg, #fff2f0 0%, #ffe6e6 100%);
  border-left-color: #e2445c;
}

.group-header button {
  background: none;
  border: none;
  color: #00c875;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.group-header.inactive button {
  color: #e2445c;
}

.group-header .badge {
  background-color: #00c875;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

.group-header.inactive .badge {
  background-color: #e2445c;
}

/* Cell Content */
.cell-content {
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.cell-content:hover {
  background-color: #f8f9fa;
}

.cell-content .edit-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cell-content:hover .edit-icon {
  opacity: 1;
}

/* Contact Avatar */
.contact-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
}

/* Chip Display */
.chip-display {
  align-items: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #d1ecf1 100%);
  border-radius: 16px;
  color: #0c5460;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.chip-display:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.chip-display.saving {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.chip-display.saved {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.chip-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-count {
  align-items: center;
  background: #6c757d;
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 600;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 0.25rem;
}

.chip-remove {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  width: 20px;
  padding: 2px;
}

.chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.chip-loading {
  align-items: center;
  display: flex;
  margin-left: 0.25rem;
}

.chip-loading .spinner-border-sm {
  height: 14px;
  width: 14px;
}

.chip-success {
  align-items: center;
  background: #28a745;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  width: 20px;
}

/* Add Button */
.btn-add {
  align-items: center;
  background: rgba(23, 162, 184, 0.1);
  border: 1px dashed #17a2b8;
  border-radius: 4px;
  color: #17a2b8;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.btn-add:hover {
  background: rgba(23, 162, 184, 0.2);
  border-color: #138496;
  color: #138496;
}

/* Enhanced Popover */
.enhanced-popover {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
 
  max-width:200px ;
  position: absolute;
  z-index: 1050;
  
}

.popover-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.popover-content {
  padding: 1rem;
}

/* Dropdown Search */
.dropdown-search {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.dropdown-search:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Dropdown Options */
.dropdown-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.dropdown-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.dropdown-option-action.add {
  color: #28a745;
}

.dropdown-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.dropdown-option-action.remove {
  color: #dc3545;
}

.dropdown-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Add New Row */
.add-new-row {
  background-color: #f0f8ff;
}

.add-new-row .btn-link {
  border: none;
  border-radius: 0;
  color: #17a2b8;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  width: 100%;
}

.add-new-row .btn-link:hover {
  background-color: #e6f3ff;
  color: #138496;
}

/* Inline Editing */
.inline-edit-input {
  border: 1px solid #17a2b8;
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 120px;
  padding: 0.25rem 0.5rem;
}

.inline-edit-input:focus {
  border-color: #138496;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Column Management Panel */
.column-management-panel {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  min-width: 280px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  right: 50px;
  top: 200px;
  z-index: 1050;
}

.column-management-panel .form-check {
  margin-bottom: 0.5rem;
}

.column-management-panel .form-check-label {
  align-items: center;
  color: #495057;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-buttons .btn {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Empty State */
.empty-state {
  align-items: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state h5 {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-bar {
    padding: 1rem;
  }

  .action-bar .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .search-input-group {
    width: 100%;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .column-management-panel {
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Loading States */
.loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* Form Controls */
.form-control-sm {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Checkbox Styling */
.form-check-input {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.form-check-input:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #495057;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

.cursor-pointer {
  cursor: pointer;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Hover Effects */
.btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* Adding styles for AddDeals form component */

/* AddDeals Form Styles */
.add-deals-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

.add-deals-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.add-deals-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1.5rem;
}

.add-deals-body {
  padding: 2rem;
}

/* Multi-select Field Styles for AddDeals */
.multiselect-container {
  position: relative;
  width: 100%;
}

.multiselect-display {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  align-items: center;
}

.multiselect-display:hover {
  border-color: #17a2b8;
}

.multiselect-display.focused {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.multiselect-display.is-invalid {
  border-color: #dc3545;
}

.multiselect-display.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.multiselect-placeholder {
  color: #6c757d;
  font-size: 0.875rem;
}

.multiselect-chip {
  align-items: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #d1ecf1 100%);
  border-radius: 16px;
  color: #0c5460;
  display: flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.multiselect-chip:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.multiselect-chip-remove {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  height: 18px;
  justify-content: center;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  width: 18px;
  padding: 0;
}

.multiselect-chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.multiselect-dropdown {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  left: 0;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1050;
  margin-top: 4px;
}

.multiselect-search {
  border: none;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.875rem;
  outline: none;
  padding: 0.75rem;
  width: 100%;
}

.multiselect-search:focus {
  border-bottom-color: #17a2b8;
}

.multiselect-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.75rem;
  transition: background-color 0.2s ease;
}

.multiselect-option:hover {
  background-color: #f8f9fa;
}

.multiselect-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.multiselect-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 28px;
}

.multiselect-option-action.add {
  color: #28a745;
}

.multiselect-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.multiselect-option-action.remove {
  color: #dc3545;
}

.multiselect-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Form Enhancements for AddDeals */
.form-label {
  align-items: center;
  color: #495057;
  display: flex;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Button Styles for AddDeals */
.btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-secondary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

.btn-link {
  border: none;
  color: #17a2b8;
  font-weight: 500;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: #138496;
  text-decoration: none;
}

/* Card Styles for AddDeals */
.card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Loading States for AddDeals */
.spinner-border-sm {
  height: 1rem;
  width: 1rem;
}

/* Alert Styles for AddDeals */
.alert {
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* Responsive Design for AddDeals */
@media (max-width: 768px) {
  .add-deals-body {
    padding: 1rem;
  }

  .add-deals-header {
    padding: 1rem;
  }

 .multiselect-display {
  position: relative;
  padding-right: 28px; /* Space for edit button */
}

  .btn-primary,
  .btn-outline-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .form-control {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .add-deals-container {
    padding: 0.5rem;
  }

  .card-header .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .card-header .d-flex > div {
    width: 100%;
  }

  .multiselect-chip {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Focus and Accessibility Improvements */
.multiselect-display:focus-within {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.multiselect-option:focus {
  background-color: #e0f2f7;
  outline: none;
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Animation for Loading States */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.multiselect-dropdown {
  animation: fadeIn 0.2s ease-out;
}

.alert {
  animation: fadeIn 0.3s ease-out;
}


/* Enhanced Popover */
.enhanced-popover {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  z-index: 1050;
  max-width: 340px;      /* Add or reduce this value */
  width: 100%; 
  height: 400px;          /* Make it flexible on smaller screens */
  min-width: 280px;      /* Prevent too narrow for usability */
  padding: 0; 
  margin-top: 100px;           /* Remove extra padding if any */
}
.popover-content {
  padding: 1rem;
}

.dropdown-search {
  padding: 0.375rem 0.5rem;
  font-size: 0.9rem;
}


.popover-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.popover-content {
  padding: 1rem;
}

/* Dropdown Search */
.dropdown-search {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.dropdown-search:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Dropdown Options */
.dropdown-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.dropdown-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.dropdown-option-action.add {
  color: #28a745;
}

.dropdown-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.dropdown-option-action.remove {
  color: #dc3545;
}

.dropdown-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);


.multiselect-display {
  position: relative;
  padding-right: 28px; /* Space for edit button */
}

.btn-add {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.btn-add:hover {
  color: #17a2b8;
}

}

.group-by-wrapper {
    position: relative;
    display: inline-block;
}

.groupby-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;

    background: #fff;
    border-radius: 8px;
    padding: 16px;
    width: 350px;

    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    z-index: 9999;
}.deal-owner-details-popover {
  position: fixed;
  top: 0;
  right: 0;
  width: 700px;
  height: 600px;
  margin-bottom: 200px;
  z-index: 10000;
  animation: slideIn 0.3s ease-out forwards;
  background: white;
  border-left: 1px solid #e1e5e9;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  border: 1px solid #171717;
}

.popover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 9999;
}

.popover-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 700px;
  height: 100%;
  background: white;
  border-left: 1px solid #e1e5e9;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out forwards;
  overflow-y: auto;
  z-index: 10001;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Updated header styling to match teal design from image */
.owner-details-header {
  background: #00a6b8;
  color: white;
  padding: 20px ;
  margin: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.owner-details-header h3 {
  margin: 0;
  font-size: 20px;
  color: white;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.close-button svg {
  width: 16px;
  height: 16px;
}

.owner-details-container {
  padding: 0;
}

/* Updated section styling to match the image layout */
.owner-details-section {
  padding: 24px;
}

.owner-details-section h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #33475b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-icon {
  width: 16px;
  height: 16px;
  color: #00a6b8;
  cursor: pointer;
}

.owner-details-section p {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #516f90;
  line-height: 1.5;
}

/* Updated table styling to match the clean design from image */
.owner-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 14px;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
}

.owner-details-table th {
  padding: 12px 16px;
  text-align: left;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #516f90;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e1e5e9;
}

.owner-details-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
  color: #33475b;
  vertical-align: top;
}

.owner-details-table tbody tr:last-child td {
  border-bottom: none;
}

.property-value {
  font-weight: 500;
  color: #33475b;
}

.source-info {
  color: #516f90;
  font-size: 13px;
}

.date-info {
  color: #516f90;
  font-size: 13px;
}

/* Prevent background scrolling when popover is open */
body.popover-open {
  overflow: hidden;
}
/* Deal Detail Page Styles - HubSpot Style */
.deal-detail-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f8fa;
}

/* Header */
.deal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #e1e5e9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.deal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #0073e6;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}

.back-button:hover {
  text-decoration: underline;
}

.rotate-180 {
  transform: rotate(180deg);
}

.actions-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #cbd6e2;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #33475b;
  font-weight: 500;
}

.actions-btn:hover {
  background: #f5f8fa;
}

.deal-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.deal-tabs {
  display: flex;
  border-bottom: 1px solid #cbd6e2;
}

.deal-tab {
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #516f90;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.deal-tab.active {
  color: #0073e6;
  border-bottom-color: #0073e6;
}

.deal-tab:hover:not(.active) {
  color: #33475b;
}

.deal-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.customize-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #cbd6e2;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #33475b;
  font-weight: 500;
}

.customize-btn:hover {
  background: #f5f8fa;
}

.record-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #516f90;
  font-size: 14px;
  font-weight: 500;
}

/* Main Content Layout */
.deal-content {
  display: grid;
  grid-template-columns: 380px 1fr 320px;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

/* Left Sidebar */
.deal-sidebar {
  background: white;
  padding: 15px;
  border-right: 1px solid #e1e5e9;
  overflow-y: auto;
  max-height: calc(100vh - 73px);
}

.deal-info {
  padding: 24px;
}

.deal-title {
  font-size: 32px;
  font-weight: 600;
  color: #33475b;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.deal-meta {
  margin-bottom: 24px;
}

.deal-amount {
  font-size: 16px;
  color: #33475b;
  margin-bottom: 8px;
  font-weight: 500;
}

.deal-close-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #516f90;
  margin-bottom: 8px;
}

.deal-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #516f90;
}

.stage-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Action Buttons */
.deal-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid #cbd6e2;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  color: #516f90;
  transition: all 0.2s;
  min-height: 60px;
}

.action-btn:hover {
  background: #f5f8fa;
  border-color: #0073e6;
  color: #0073e6;
}

/* About this deal */
.deal-about {
  border: 1px solid #e1e5e9;
  border-radius: 6px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #f5f8fa;
  border-bottom: 1px solid #e1e5e9;
}

.section-header h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #33475b;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0073e6;
  font-size: 14px;
  cursor: pointer;
}

.deal-properties {
  padding: 16px;
}

.property-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f7;
}

.property-item:last-child {
  border-bottom: none;
}

.property-label {
  color: #516f90;
  font-size: 14px;
}

.property-value {
  color: #33475b;
  font-weight: 500;
  font-size: 14px;
}

/* Enhanced Main Content Area - Second Column Only */
.deal-main-content {
  background: white;
  overflow-y: scroll;
  max-height: calc(100vh - 73px);
  padding: 0;
  border-right: 1px solid #e1e5e9;
}

/* Enhanced overview and activities content with better spacing and professional styling */
.overview-content,
.activities-content {
  padding: 24px 32px;
  min-height: calc(100vh - 73px);
}

/* Professional search field with enhanced styling */
.activities-search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin: 8px 0 0 0;
  gap: 16px;
}

.time-filter-btn {
  background: none;
  border: 1px solid #cbd6e2;
  color: #516f90;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.time-filter-btn:hover {
  background: #f5f8fa;
  border-color: #8b9dc3;
}

.activities-search {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  margin: 8px 0 0 0;
  border: none;
}

.search-input-container {
  width: 220px;
  margin: 0;
}

.search-input {
  position: relative;
  width: 100%;
}

.search-input input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  font-size: 14px;
  background: #fafbfc;
  font-weight: 400;
  height: 36px;
}

.search-input svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b9dc3;
  z-index: 1;
  width: 16px !important;
  height: 16px !important;
}

.collapse-btn {
  background: #f5f8fa;
  border: 1px solid #cbd6e2;
  color: #516f90;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  margin: 0;
  width: 100%;
}

.collapse-btn:hover {
  background: #edf2f7;
  border-color: #b8c5d1;
}

.collapse-dropdown-container {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

.collapse-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 140px;
  margin-top: 4px;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #33475b;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 6px 6px;
}

/* Professional activity tabs with better visual hierarchy */
.activity-tabs {
  display: flex;
  border-bottom: 2px solid #f0f3f7;
  margin: 0 0 32px 0;
  background: #fafbfc;
  border-radius: 8px 8px 0 0;
  padding: 4px;
  gap: 2px;
}

.activity-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #516f90;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
  min-width: 80px;
  text-align: center;
}

.activity-tab.active {
  color: #33475b;
  background: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Enhanced filter section with professional styling */
.activity-filters {
  display: flex;
  align-items: center;
  padding: 0 24px;
  margin: 8px 0 0 0;
  gap: 0;
}

.filter-btn.active {
  background: #e3f2fd;
  border: 1px solid #cbd6e2;
  color: #1976d2;
  border-radius: 16px;
  padding: 5px 15px;
  margin-right: 6px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-btn.active:hover {
  background: #d6e9fb;
}

.filter-label {
  color: #33475b;
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.filter-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #516f90;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-dropdown:hover {
  background: #f8f9fa;
  border-color: #cbd6e2;
}

/* Enhanced activities timeline with scrolling and better spacing */
.activities-timeline {
  max-height: auto;
  overflow-y: auto;
  padding-right: 8px;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
 
}

.activities-timeline::-webkit-scrollbar {
  width: 6px;
}

.activities-timeline::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.activities-timeline::-webkit-scrollbar-thumb {
  background: #cbd6e2;
  border-radius: 3px;
}

.activities-timeline::-webkit-scrollbar-thumb:hover {
  background: #8b9dc3;
}

.timeline-month {
  font-size: 16px;
  font-weight: 600;
  color: #33475b;
  margin: 0 0 24px 0;
  padding: 12px 0;
  border-bottom: 2px solid #f0f3f7;
}

/* Professional activity items with vertical alignment */
.activity-items-vertical {
  display: block;
}

.activity-items-vertical .activity-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f3f7;
  align-items: flex-start;
  position: relative;
}

.activity-items-vertical .activity-item:last-child {
  border-bottom: none;
}

.activity-items-vertical .activity-item::before {
  display: none;
}

.activity-items-vertical .activity-item:last-child::before {
  display: none;
}

.activity-item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f7;
  align-items: flex-start;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item.selected {
  background: #f0f8ff;
  border-left: 3px solid #0073e6;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e1e5e9;
  flex-shrink: 0;
  margin-top: 3px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #33475b;
}

.activity-header strong {
  color: #33475b;
  font-weight: 600;
  margin: 0 2px;
}

.activity-user {
  color: #33475b;
  font-weight: 500;
}

.activity-time {
  color: #8b9dc3;
  font-size: 12.5px;
  margin-left: 8px;
}

.activity-body {
  color: #516f90;
  font-size: 14px;
  line-height: 1.5;
  background: #f8f9fa;
  padding: 11px 17px;
  border-radius: 6px;
  border-left: 3px solid #e1e5e9;
  margin-top: 3px;
  margin-bottom: 0;
}

.activity-note-content {
  color: #516f90;
  font-size: 14px;
  line-height: 1.5;
  background: #f8f9fa;
  padding: 11px 17px;
  border-radius: 6px;
  border-left: 3px solid #e1e5e9;
  margin-top: 3px;
  margin-bottom: 0;
}

/* Enhanced deal activity and creation sections */
.deal-activity,
.deal-creation {
  padding: 20px 0;
  border-bottom: 1px solid #f0f3f7;
  color: #516f90;
  font-size: 14px;
  line-height: 1.6;
}

.deal-activity h4 {
  color: #33475b;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.deal-activity .activity-text {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid #0073e6;
}

.deal-activity .activity-text a {
  color: #0073e6;
  text-decoration: none;
  font-weight: 500;
}

.deal-activity .activity-text a:hover {
  text-decoration: underline;
}

/* Enhanced empty state styling */
.empty-activity-state {
  padding: 60px 20px;
  text-align: center;
  color: #8b9dc3;
  font-size: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin: 40px 0;
  border: 1px solid #f0f3f7;
}

.data-highlights {
  margin-bottom: 28px;
  background: #fff;
  border-radius: 8px;
  padding: 0 0 0 0;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.data-highlights .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0 24px;
  background: none;
  border: none;
  margin: 0 0 8px 0;
}

.data-highlights .section-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #33475b;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 24px 16px 24px;
  gap: 0;
}

.highlight-item {
  text-align: left;
  padding: 0;
  background: none;
  border: none;
  margin-right: 12px;
}

.highlight-label {
  font-size: 12px;
  color: #516f90;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.highlight-value {
  font-size: 15px;
  font-weight: 500;
  color: #33475b;
}

/* Responsive for Highlights */
@media (max-width: 1050px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Enhanced recent activities section */
.recent-activities {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
  padding: 0;
}

.recent-activities .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0 24px;
  border: none;
}

.recent-activities .section-header h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #33475b;
}

/* Enhanced contacts section */
.contacts-section {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 0;
}

.contacts-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 0 24px;
  background: none;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.contacts-section .section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #33475b;
  margin: 0;
}

.contacts-section .section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts-section .add-btn {
  background: #f5f8fa;
  border: 1px solid #cbd6e2;
  color: #0073e6;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.contacts-section .add-btn:hover {
  background: #e1e5e9;
  text-decoration: none;
}

.contacts-section .below-bottom-column2,
.contacts-section > span {
  display: block;
  text-align: left;
  padding: 18px 24px 18px 24px;
  font-size: 15px;
  color: #33475b;
  background: none;
  margin: 0;
  border-radius: 0 0 8px 8px;
}

/* Right Sidebar */
.deal-right-sidebar {
  background: white;
  border-left: 1px solid #e1e5e9;
  overflow-y: auto;
  max-height: calc(100vh - 73px);
  padding: 24px 0;
}

.sidebar-section {
  border-bottom: 1px solid #f0f3f7;
  padding: 0 24px 24px 24px;
  margin-bottom: 24px;
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-section .section-header {
  padding: 0 0 12px 0;
  background: none;
  border: none;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 4px;
  margin: -4px;
  padding: 4px 4px 16px 4px;
}

.sidebar-section .section-header:hover {
  background-color: #f8f9fa;
}

.sidebar-section .section-header h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #33475b;
  margin-left: 8px;
}

.add-btn {
  background: none;
  border: none;
  color: #0073e6;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
  position: relative;
}

.section-content {
  color: #516f90;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  max-height: 1000px;
}

.section-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}

.sidebar-section .section-header svg:first-child {
  transition: transform 0.2s ease;
  color: #516f90;
  flex-shrink: 0;
}

.sidebar-section .section-header svg:first-child:hover {
  color: #33475b;
}

.setup-btn {
  background: #0073e6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.2s ease;
}

.setup-btn:hover {
  background: #005bb5;
}

/* Note Modal */
.note-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.note-modal {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.note-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #516f90;
  color: white;
}

.note-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.note-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-action-btn,
.modal-close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-action-btn:hover,
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.note-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.note-for {
  margin-bottom: 16px;
  font-size: 14px;
  color: #516f90;
}

.deal-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.note-editor {
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  margin-bottom: 16px;
}

.note-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: none;
  resize: vertical;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.note-textarea::placeholder {
  color: #a0aec0;
}

.note-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f5f8fa;
  border-top: 1px solid #e1e5e9;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  color: #516f90;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.toolbar-btn:hover {
  background: #e1e5e9;
}

.note-associations {
  margin-bottom: 16px;
  font-size: 14px;
  color: #0073e6;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-associations:hover {
  text-decoration: underline;
}

.note-task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.note-task label {
  font-size: 14px;
  color: #516f90;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-modal-footer {
  padding: 16px 24px;
  background: #f5f8fa;
  border-top: 1px solid #e1e5e9;
  display: flex;
  justify-content: flex-end;
}

.create-note-btn {
  background: #0073e6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.create-note-btn:hover {
  background: #0056b3;
}

.create-note-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f3f7;
  transition: background-color 0.2s ease;
}

.create-note-item:hover {
  background-color: #f8f9fa;
}

.create-note-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1976d2;
  flex-shrink: 0;
  color: #1976d2;
}

.create-note-content {
  flex: 1;
}

.create-note-text {
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
}

/* Added disabled state for create note button */
.create-note-btn:disabled {
  background: #cbd6e2;
  cursor: not-allowed;
}

/* Activities Tab Notes Header and Create Note Button */
.notes-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e1e5e9;
}

.notes-date-header {
  font-size: 16px;
  font-weight: 600;
  color: #33475b;
}

.create-note-btn-activities {
  background: #516f90;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.create-note-btn-activities:hover {
  background: #405a75;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .deal-content {
    grid-template-columns: 350px 1fr 300px;
  }
}

@media (max-width: 1200px) {
  .deal-content {
    grid-template-columns: 320px 1fr 280px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .deal-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .deal-sidebar,
  .deal-right-sidebar {
    display: none;
  }

  .deal-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .deal-header-left,
  .deal-header-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .deal-header {
    padding: 12px 16px;
  }

  .deal-main-content {
    padding: 16px;
  }

  .deal-tabs {
    width: 100%;
  }

  .deal-tab {
    flex: 1;
    text-align: center;
  }

  .note-modal {
    width: 95%;
    margin: 20px;
  }

  .note-modal-body {
    padding: 16px;
  }
}

/* Added styling for form elements in activity modals */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #33475b;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.1);
}

.form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Added styling for editable fields */
.editable {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.editable:hover {
  background-color: #f5f8fa;
}

.editable-value {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.editable-value:hover {
  background-color: #f5f8fa;
}

.deal-title-input {
  font-size: 24px;
  font-weight: 600;
  border: 2px solid #0073e6;
  border-radius: 4px;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.inline-input {
  border: 1px solid #0073e6;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: inherit;
  font-family: inherit;
  outline: none;
  background: white;
}

.inline-select {
  border: 1px solid #0073e6;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: inherit;
  font-family: inherit;
  outline: none;
  background: white;
  cursor: pointer;
}

.property-input {
  border: 1px solid #0073e6;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: white;
  width: 100%;
}

.property-select {
  border: 1px solid #0073e6;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: white;
  cursor: pointer;
  width: 100%;
}

/* Activity Management Styles */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.sort-label {
  color: #516f90;
  font-size: 14px;
  font-weight: 500;
}

.sort-btn {
  background: none;
  border: 1px solid #e1e5e9;
  color: #516f90;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: #f5f8fa;
  border-color: #cbd6e2;
}

.sort-btn.active {
  background: #0073e6;
  color: white;
  border-color: #0073e6;
}

.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e3f2fd;
  border: 1px solid #1976d2;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
}

.bulk-delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.bulk-delete-btn:hover {
  background: #c82333;
}

.activity-selection {
  display: flex;
  align-items: center;
  margin-right: 8px;
  margin-top:10px
}

.activity-selection input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #516f90;
  padding: 2px;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.expand-btn:hover {
  background: #f5f8fa;
}

.activity-actions {
  position: relative;
  margin-left: auto;
}

.action-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #516f90;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.action-menu-btn:hover {
  background: #f5f8fa;
}

.activity-actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 120px;
  margin-top: 4px;
}

.activity-actions-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #33475b;
  cursor: pointer;
  transition: background-color 0.2s;
}

.activity-actions-menu button:hover {
  background: #f8f9fa;
}

.activity-actions-menu button:first-child {
  border-radius: 6px 6px 0 0;
}

.activity-actions-menu button:last-child {
  border-radius: 0 0 6px 6px;
}

.activity-details {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #516f90;
  text-transform: capitalize;
}

.detail-value {
  color: #33475b;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.task-status-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.task-status-btn:hover {
  background: #f5f8fa;
  border-color: #cbd6e2;
}

.task-status-btn.completed {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.task-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 8px;
}

.task-status.pending {
  background: #fff3cd;
  color: #856404;
}

.task-status.completed {
  background: #d4edda;
  color: #155724;
}

/* Left sidebar spacing fix */
.deal-sidebar {
  padding-left: 15px;
}

/* Deal owner details hover effect */
.details-hover-text {
  margin-left: 8px;
  font-size: 12px;
  color: #0073e6;
  font-style: italic;
}

/* Deal owner details popover positioning */
.deal-owner-details-popover {
  position: fixed;
  top: 120px;
  right: 20px;
  z-index: 1000;
}

/* Activities tabs and search container */
.activities-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.activities-search {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Filter groups alignment */
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin: 6px 0px 0px 5px;
  flex-wrap: wrap;
  
}

/* Sort controls styling */
.sort-controls {
  display: flex;
  gap: 10px;
}

.sort-btn {
  padding: 6px 12px;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.sort-btn.active {
  background: #e3f2fd;
  border-color: #0073e6;
  color: #0073e6;
}

/* Property item container */
.property-value-container {
  position: relative;
  display: inline-block;
}

/* Data highlights responsive grid */
@media (max-width: 1200px) {
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-tabs-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .activity-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Container for the dropdown */
.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

/* Toggle button to open/close the filter dropdown */
.filter-toggle-btn {
  background: white;
  border: 1px solid #cbd6e2;
  color: #33475b;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-toggle-btn:hover {
  background: #f8f9fa;
  border-color: #0073e6;
  color: #0073e6;
}

/* Dropdown menu */
.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  z-index: 2000;
  animation: fadeInDropdown 0.2s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

/* Checkbox label */
.filter-dropdown-menu label {
  font-size: 14px;
  color: #33475b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

.filter-dropdown-menu label:hover {
  background-color: #f5f8fa;
}

.filter-dropdown-menu input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #0073e6;
}

/* Container for Done and Cancel buttons */
.filter-buttons-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* Cancel button */
.filter-cancel-btn {
  padding: 8px 16px;
  font-size: 14px;
  background: #f0f0f0;
  color: #516f90;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
  text-align: center;
  user-select: none;
}

.filter-cancel-btn:hover {
  background-color: #d6dce1;
  border-color: #a0aec0;
}

/* Done button */
.flter-cancel-btn, /* Note: typo intentional to match your JSX */
.filter-apply-btn {
  padding: 8px 16px;
  font-size: 14px;
  background: #0073e6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
  text-align: center;
  user-select: none;
}

.flter-cancel-btn:hover,
.filter-apply-btn:hover {
  background-color: #005bb5;
}

/* Fade in animation for dropdown */
@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.comments-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}

.comments-section {
  margin-top: 12px;
  border-left: 2px solid #e5e7eb;
  padding-left: 12px;
}

.comment-item {
  margin-bottom: 12px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #666;
}

.comment-user {
  font-weight: 500;
}

.comment-time {
  color: #999;
}

.comment-content {
  font-size: 14px;
  color: #333;
}

.add-comment-section {
  margin-top: 12px;
}

.comment-input-container {
  display: flex;
  gap: 8px;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.add-comment-btn {
  padding: 8px 12px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.add-comment-btn:hover {
  background-color: #2563eb;
}/* Leads Page Styles */

/* Main Container */
.leads-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

/* Action Bar */
.action-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.action-bar .btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.action-bar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.action-bar .btn-outline-secondary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.action-bar .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Search Input */
.search-input-group {
  width: 250px;
}

.search-input-group .input-group-text {
  background: white;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.search-input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
}

.search-input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Main Table Container */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  border: none;
  padding: 0;
  vertical-align: middle;
}

/* Group Headers */
.group-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-left: 4px solid #ffc107;
  padding: 1rem 0.75rem;
}

.group-header button {
  background: none;
  border: none;
  color: #ffc107;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.group-header .badge {
  background-color: #ffc107;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Cell Content */
.cell-content {
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.cell-content:hover {
  background-color: #f8f9fa;
}

.cell-content .edit-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cell-content:hover .edit-icon {
  opacity: 1;
}

/* Activities Timeline */
.activities-timeline {
  display: flex;
  gap: 2px;
  align-items: center;
}

.activity-bar {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  min-width: 4px;
}

.activity-bar:nth-child(odd) {
  background-color: #007bff;
}

/* Status Badge */
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.status-badge.new-lead {
  background-color: #ffc107;
  color: #212529;
}

.status-badge.qualified {
  background-color: #28a745;
}

.status-badge.contacted {
  background-color: #17a2b8;
}

.status-badge.proposal {
  background-color: #6f42c1;
}

.status-badge.negotiation {
  background-color: #fd7e14;
}

.status-badge.closed-won {
  background-color: #28a745;
}

.status-badge.closed-lost {
  background-color: #dc3545;
}

/* Chip Display */
.chip-display {
  align-items: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #d1ecf1 100%);
  border-radius: 16px;
  color: #0c5460;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.chip-display:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.chip-display.saving {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.chip-display.saved {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.chip-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-count {
  align-items: center;
  background: #6c757d;
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 600;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 0.25rem;
}

.chip-remove {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  width: 20px;
  padding: 2px;
}

.chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.chip-loading {
  align-items: center;
  display: flex;
  margin-left: 0.25rem;
}

.chip-loading .spinner-border-sm {
  height: 14px;
  width: 14px;
}

.chip-success {
  align-items: center;
  background: #28a745;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  width: 20px;
}

/* Add Button */
.btn-add {
  align-items: center;
  background: rgba(23, 162, 184, 0.1);
  border: 1px dashed #17a2b8;
  border-radius: 4px;
  color: #17a2b8;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.btn-add:hover {
  background: rgba(23, 162, 184, 0.2);
  border-color: #138496;
  color: #138496;
}

/* Enhanced Popover */
.enhanced-popover {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  z-index: 1050;
  max-width: 340px;
  /* Add or reduce this value */
  width: 100%;
  height: 400px;
  /* Make it flexible on smaller screens */
  min-width: 280px;
  /* Prevent too narrow for usability */
  padding: 0;
  background-color: #17a2b8;
  /* Remove extra padding if any */
}

.popover-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.popover-content {
  padding: 1rem;
}

/* Dropdown Search */
.dropdown-search {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.dropdown-search:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Dropdown Options */
.dropdown-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.dropdown-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.dropdown-option-action.add {
  color: #28a745;
}

.dropdown-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.dropdown-option-action.remove {
  color: #dc3545;
}

.dropdown-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Add New Row */
.add-new-row {
  background-color: #f0f8ff;
}

.add-new-row .btn-link {
  border: none;
  border-radius: 0;
  color: #17a2b8;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  width: 100%;
}

.add-new-row .btn-link:hover {
  background-color: #e6f3ff;
  color: #138496;
}

/* Inline Editing */
.inline-edit-input {
  border: 1px solid #17a2b8;
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 120px;
  padding: 0.25rem 0.5rem;
}

.inline-edit-input:focus {
  border-color: #138496;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Column Management Panel */
.column-management-panel {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  min-width: 280px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  right: 50px;
  top: 200px;
  z-index: 1050;
}

.column-management-panel .form-check {
  margin-bottom: 0.5rem;
}

.column-management-panel .form-check-label {
  align-items: center;
  color: #495057;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-buttons .btn {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Empty State */
.empty-state {
  align-items: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state h5 {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-bar {
    padding: 1rem;
  }

  .action-bar .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .search-input-group {
    width: 100%;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .column-management-panel {
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Loading States */
.loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* Form Controls */
.form-control-sm {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Checkbox Styling */
.form-check-input {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.form-check-input:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #495057;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

.cursor-pointer {
  cursor: pointer;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Hover Effects */
.btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Status Dropdown Specific Styles */
.status-dropdown-container {
  position: relative;
  width: 100%;
}

.status-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.status-dropdown-trigger:hover {
  border-color: #17a2b8;
}

.status-dropdown-trigger:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

.status-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  max-width: 280px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: #212529;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.status-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.status-dropdown-option:hover {
  background-color: #f8f9fa;
  color: #16181b;
}

.status-dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
  font-weight: 500;
}

/* Inline Editing Improvements */
.inline-edit-container {
  position: relative;
  width: 100%;
}

.inline-edit-input {
  width: 100%;
  min-width: 150px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.inline-edit-input:focus {
  border-color: #17a2b8;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Enhanced Popover Width Fix */
.enhanced-popover {
  min-width: 280px;
  max-width: 340px;
  width: auto !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .status-dropdown-menu {
    min-width: 200px;
    max-width: 250px;
  }

  .inline-edit-input {
    min-width: 120px;
  }
}

/* ------------------------------
   ACTIVITY CHIP (VIEW / NO ACTIVITY)
-------------------------------- */
.activity-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

/* Active (View Activity) */
.activity-chip.active {
  color: #0d6efd;
  background: #e7f1ff;
  border: 1px solid #bcdfff;
}

.activity-chip.active:hover {
  background: #d7e9ff;
  border-color: #a7d5ff;
}

/* Inactive (No Activity) */
.activity-chip.inactive {
  color: #c62828;
  background: #ffe5e5;
  border: 1px solid #ffcccc;
  cursor: not-allowed;
  opacity: 0.9;
}

/* Center the chip inside table cell */
.td-activity-center {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Force perfect center alignment inside table cell */
.activity-chip-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 0;
}.activity-panel {
    width: 100%;
    padding: 10px 40px;
    background: #f5f7f9;
}

.month-label {
    text-align: center;
    font-weight: 600;
    color: #777;
    margin: 25px 0 15px;
    font-size: 14px;
}

.timeline-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.timeline-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.icon {
    padding: 8px;
    border-radius: 6px;
    color: white;
}

.icon.call {
    background: #f5a623;
}

.icon.email {
    background: #0073ea;
}

.icon.meet {
    background: #4caf50;
}

.icon.default {
    background: #9c27b0;
}

.timeline-line {
    width: 2px;
    background: #d0d4d9;
    flex-grow: 1;
    margin-top: 5px;
}

.activity-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 16px;
    width: 100%;
    border: 1px solid #e6e9ec;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 15px;
}

.activity-time {
    font-size: 12px;
    color: #777;
}

.menu-icon {
    color: #666;
    cursor: pointer;
}

.activity-body {
    margin-top: 8px;
}

.activity-notes {
    background: #f0f4ff;
    padding: 10px;
    border-radius: 8px;
    color: #333;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.timeline-empty {
    text-align: center;
    padding: 40px;
    color: #777;
}

.activity-modal-overlay {
    position: fixed;
    /* Already there */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999 !important;
    /* ← ADD THIS */
    pointer-events: auto;
}

.activity-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.activity-modal {
    width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
}

/* Ensure the modal header is properly aligned */
.activity-header-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

/* Title styling */
.activity-header-fixed .modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Close button styling */
.close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #f0f0f0;
}

/* Fix modal container spacing */
.activity-modal {
    width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

/* Outer modal overlay */
.activity-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icon colors by activity type */
.timeline-icon.call {
    background: #f5a623;
}

.timeline-icon.email {
    background: #0073ea;
}

.timeline-icon.meeting {
    background: #4caf50;
}

.timeline-icon.default {
    background: #9c27b0;
}

.timeline-icon.phone-call {
    background: #0073ea;
}

.timeline-icon.meeting {
    background: #4caf50;
    /* green */
}

.timeline-icon.call-summary {
    background: #9c27b0;
    /* purple */
}

.timeline-icon.email {
    background: #f5a623;
    /* orange */
}

.timeline-icon.task {
    background: #ff9800;
    /* darker orange */
}

.timeline-icon.note {
    background: #607d8b;
    /* slate grey */
}

/* TIMELINE LEFT AREA */
.timeline-left {
    position: relative;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ICON */
.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 2;
    margin-bottom: 6px;
}

/* COLORED ICON TYPES */
.timeline-icon.phone-call {
    background: #0073ea;
}

.timeline-icon.meeting {
    background: #4caf50;
}

.timeline-icon.call-summary {
    background: #9c27b0;
}

.timeline-icon.email {
    background: #f5a623;
}

.timeline-icon.task {
    background: #ff9800;
}

.timeline-icon.note {
    background: #607d8b;
}

/* CONTINUOUS VERTICAL LINE */
.timeline-connector {
    position: absolute;
    top: 36px;
    /* line begins BELOW icon */
    bottom: -20px;
    /* stretch to next row */
    width: 3px;
    background: #cfd3d8;
    z-index: 1;
}

.add-activity-form {
    background: #f8f9fc;
    padding: 18px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #e4e8ee;
}

.add-activity-form h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cfd3d9;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-activity-container {
    display: flex;
    justify-content: flex-start;
    padding: 12px 0 8px 5px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.add-activity-btn {
    background: #0ea5e9;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.add-activity-btn:hover {
    background: #0284c7;
}

.add-activity-form {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-grid input,
.form-grid select {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-success {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}.accounts-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

/* Action Bar */
.action-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.action-bar .btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.action-bar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.action-bar .btn-outline-secondary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.action-bar .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Search Input */
.search-input-group {
  width: 250px;
}

.search-input-group .input-group-text {
  background: white;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.search-input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
}

.search-input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Main Table Container */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  border: none;
  padding: 0;
  vertical-align: middle;
}

/* Group Headers */
.group-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-left: 4px solid #007bff;
  padding: 1rem 0.75rem;
}

.group-header button {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.group-header .badge {
  background-color: #007bff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Cell Content */
.cell-content {
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.cell-content:hover {
  background-color: #f8f9fa;
}

.cell-content .edit-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cell-content:hover .edit-icon {
  opacity: 1;
}

/* Chip Display */
.chip-display {
  align-items: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #d1ecf1 100%);
  border-radius: 16px;
  color: #0c5460;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.chip-display:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.chip-display.saving {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.chip-display.saved {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.chip-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-count {
  align-items: center;
  background: #6c757d;
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 600;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 0.25rem;
}

.chip-remove {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  width: 20px;
  padding: 2px;
}

.chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.chip-loading {
  align-items: center;
  display: flex;
  margin-left: 0.25rem;
}

.chip-loading .spinner-border-sm {
  height: 14px;
  width: 14px;
}

.chip-success {
  align-items: center;
  background: #28a745;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  width: 20px;
}

/* Add Button */
.btn-add {
  align-items: center;
  background: rgba(23, 162, 184, 0.1);
  border: 1px dashed #17a2b8;
  border-radius: 4px;
  color: #17a2b8;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.btn-add:hover {
  background: rgba(23, 162, 184, 0.2);
  border-color: #138496;
  color: #138496;
}

/* Enhanced Popover */
.enhanced-popover {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  z-index: 1050;
  max-width: 340px;      /* Add or reduce this value */
  width: 100%; 
  height: 400px;          /* Make it flexible on smaller screens */
  min-width: 280px;      /* Prevent too narrow for usability */
  padding: 0; 
  margin-top: 100px;           /* Remove extra padding if any */
}

.popover-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.popover-content {
  padding: 1rem;
}

/* Dropdown Search */
.dropdown-search {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.dropdown-search:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Dropdown Options */

.dropdown-options-container {
  max-height: calc(5 * 40px); /* Assuming each item is roughly 40px high */
  overflow-y: auto;
}

.dropdown-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.dropdown-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.dropdown-option-action.add {
  color: #28a745;
}

.dropdown-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.dropdown-option-action.remove {
  color: #dc3545;
}

.dropdown-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Add New Row */
.add-new-row {
  background-color: #f0f8ff;
}

.add-new-row .btn-link {
  border: none;
  border-radius: 0;
  color: #17a2b8;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  width: 100%;
}

.add-new-row .btn-link:hover {
  background-color: #e6f3ff;
  color: #138496;
}

/* Inline Editing */
.inline-edit-input {
  border: 1px solid #17a2b8;
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 120px;
  padding: 0.25rem 0.5rem;
}

.inline-edit-input:focus {
  border-color: #138496;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Column Management Panel */
.column-management-panel {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  min-width: 280px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  right: 50px;
  top: 200px;
  z-index: 1050;
}

.column-management-panel .form-check {
  margin-bottom: 0.5rem;
}

.column-management-panel .form-check-label {
  align-items: center;
  color: #495057;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-buttons .btn {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Empty State */
.empty-state {
  align-items: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state h5 {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-bar {
    padding: 1rem;
  }

  .action-bar .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .search-input-group {
    width: 100%;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .column-management-panel {
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Loading States */
.loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* Form Controls */
.form-control-sm {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Checkbox Styling */
.form-check-input {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.form-check-input:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #495057;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Form Select Dropdowns */
.form-select {
  position: relative;
  z-index: 1;
}

.industry-dropdown {
  position: relative;
}

.industry-dropdown option {
  position: relative;
  z-index: 1000;
}

/* Ensure all form selects appear below their containers */
select.form-select {
  position: relative;
  z-index: auto;
}

/* Fix for dropdown positioning issues */
.form-select:focus {
  z-index: 1;
}

/* Employee dropdown styling */
.form-select option {
  padding: 0.5rem;
  background-color: white;
  color: #495057;
}

.form-select option:hover {
  background-color: #f8f9fa;
}

/* Form field spacing and layout */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Card styling for form */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Button styling */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-outline-secondary {
  border: 1px solid #dee2e6;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

.cursor-pointer {
  cursor: pointer;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Hover Effects */
.btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* Products & Services Page Styles */

/* Main Container */
.products-services-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

/* Action Bar */
.action-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.action-bar .btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.action-bar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.action-bar .btn-outline-secondary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.action-bar .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Search Input */
.search-input-group {
  width: 250px;
}

.search-input-group .input-group-text {
  background: white;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.search-input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
}

.search-input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Main Table Container */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  border: none;
  padding: 0;
  vertical-align: middle;
}

/* Group Headers */
.group-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-left: 4px solid #00c875;
  padding: 1rem 0.75rem;
}

.group-header button {
  background: none;
  border: none;
  color: #00c875;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.group-header .badge {
  background-color: #00c875;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Cell Content */
.cell-content {
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.cell-content:hover {
  background-color: #f8f9fa;
}

.cell-content .edit-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cell-content:hover .edit-icon {
  opacity: 1;
}

/* Chip Display */
.chip-display {
  align-items: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #d1ecf1 100%);
  border-radius: 16px;
  color: #0c5460;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.chip-display:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.chip-display.saving {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.chip-display.saved {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.chip-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-count {
  align-items: center;
  background: #6c757d;
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 600;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 0.25rem;
}

.chip-remove {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  width: 20px;
  padding: 2px;
}

.chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.chip-loading {
  align-items: center;
  display: flex;
  margin-left: 0.25rem;
}

.chip-loading .spinner-border-sm {
  height: 14px;
  width: 14px;
}

.chip-success {
  align-items: center;
  background: #28a745;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  width: 20px;
}

/* Add Button */
.btn-add {
  align-items: center;
  background: rgba(23, 162, 184, 0.1);
  border: 1px dashed #17a2b8;
  border-radius: 4px;
  color: #17a2b8;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.btn-add:hover {
  background: rgba(23, 162, 184, 0.2);
  border-color: #138496;
  color: #138496;
}

/* Enhanced Popover */
.enhanced-popover {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  z-index: 1050;
  max-width: 340px;
  width: 100%;
  height: 400px;
  min-width: 280px;
  padding: 0;
}

.popover-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.popover-content {
  padding: 1rem;
}

/* Dropdown Search */
.dropdown-search {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.dropdown-search:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Dropdown Options */
.dropdown-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.dropdown-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.dropdown-option-action.add {
  color: #28a745;
}

.dropdown-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.dropdown-option-action.remove {
  color: #dc3545;
}

.dropdown-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Add New Row */
.add-new-row {
  background-color: #f0f8ff;
}

.add-new-row .btn-link {
  border: none;
  border-radius: 0;
  color: #17a2b8;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  width: 100%;
}

.add-new-row .btn-link:hover {
  background-color: #e6f3ff;
  color: #138496;
}

/* Inline Editing */
.inline-edit-input {
  border: 1px solid #17a2b8;
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 120px;
  padding: 0.25rem 0.5rem;
}

.inline-edit-input:focus {
  border-color: #138496;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Type Dropdown Specific Styles */
.type-dropdown-container {
  position: relative;
  width: 100%;
}

.type-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.type-dropdown-trigger:hover {
  border-color: #17a2b8;
}

.type-dropdown-trigger:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

.type-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  max-width: 280px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: #212529;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.type-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.type-dropdown-option:hover {
  background-color: #f8f9fa;
  color: #16181b;
}

.type-dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
  font-weight: 500;
}

/* Column Management Panel */
.column-management-panel {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  min-width: 280px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  right: 50px;
  top: 200px;
  z-index: 1050;
}

.column-management-panel .form-check {
  margin-bottom: 0.5rem;
}

.column-management-panel .form-check-label {
  align-items: center;
  color: #495057;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-buttons .btn {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Empty State */
.empty-state {
  align-items: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state h5 {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-bar {
    padding: 1rem;
  }
  
  .action-bar .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-input-group {
    width: 100%;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .column-management-panel {
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Loading States */
.loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* Form Controls */
.form-control-sm {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Checkbox Styling */
.form-check-input {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.form-check-input:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #495057;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

.cursor-pointer {
  cursor: pointer;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Hover Effects */
.btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}/* Activities Page Styles */

/* Main Container */
.activities-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 1rem;
}

/* Action Bar */
.action-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.action-bar .btn-primary {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.action-bar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.action-bar .btn-outline-secondary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.action-bar .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Search Input */
.search-input-group {
  width: 250px;
}

.search-input-group .input-group-text {
  background: white;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.search-input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
}

.search-input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Main Table Container */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border: none;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody td {
  border: none;
  padding: 0;
  vertical-align: middle;
}

/* Group Headers */
.group-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-left: 4px solid #007bff;
  padding: 1rem 0.75rem;
}

.group-header button {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.group-header .badge {
  background-color: #007bff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Cell Content */
.cell-content {
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.cell-content:hover {
  background-color: #f8f9fa;
}

.cell-content .edit-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cell-content:hover .edit-icon {
  opacity: 1;
}

/* Status Badge */
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.status-badge.open {
  background-color: #007bff;
}

.status-badge.done {
  background-color: #28a745;
}

.status-badge.in-progress {
  background-color: #ffc107;
  color: #212529;
}

.status-badge.cancelled {
  background-color: #dc3545;
}

/* Activity Type Badge */
.activity-type-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.activity-type-badge.phone-call {
  background-color: #007bff;
}

.activity-type-badge.meeting {
  background-color: #6f42c1;
}

.activity-type-badge.call-summary {
  background-color: #fd7e14;
}

.activity-type-badge.email {
  background-color: #20c997;
}

.activity-type-badge.task {
  background-color: #6c757d;
}

.activity-type-badge.note {
  background-color: #17a2b8;
}

/* Chip Display */
.chip-display {
  align-items: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #d1ecf1 100%);
  border-radius: 16px;
  color: #0c5460;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.chip-display:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.chip-display.saving {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.chip-display.saved {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.chip-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-count {
  align-items: center;
  background: #6c757d;
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 600;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 0.25rem;
}

.chip-remove {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  width: 20px;
  padding: 2px;
}

.chip-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.chip-loading {
  align-items: center;
  display: flex;
  margin-left: 0.25rem;
}

.chip-loading .spinner-border-sm {
  height: 14px;
  width: 14px;
}

.chip-success {
  align-items: center;
  background: #28a745;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-left: 0.25rem;
  width: 20px;
}

/* Add Button */
.btn-add {
  align-items: center;
  background: rgba(23, 162, 184, 0.1);
  border: 1px dashed #17a2b8;
  border-radius: 4px;
  color: #17a2b8;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.btn-add:hover {
  background: rgba(23, 162, 184, 0.2);
  border-color: #138496;
  color: #138496;
}

/* Enhanced Popover */
.enhanced-popover {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  z-index: 1050;
  max-width: 340px;
  width: 100%;
  height: 400px;
  min-width: 280px;
  padding: 0;
}

.popover-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.popover-content {
  padding: 1rem;
}

/* Dropdown Search */
.dropdown-search {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.dropdown-search:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Dropdown Options */
.dropdown-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
}

.dropdown-option.selected {
  background-color: #e0f2f7;
  color: #0c5460;
}

.dropdown-option-action {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 24px;
}

.dropdown-option-action.add {
  color: #28a745;
}

.dropdown-option-action.add:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

.dropdown-option-action.remove {
  color: #dc3545;
}

.dropdown-option-action.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Add New Row */
.add-new-row {
  background-color: #f0f8ff;
}

.add-new-row .btn-link {
  border: none;
  border-radius: 0;
  color: #17a2b8;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  width: 100%;
}

.add-new-row .btn-link:hover {
  background-color: #e6f3ff;
  color: #138496;
}

/* Inline Editing */
.inline-edit-input {
  border: 1px solid #17a2b8;
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 120px;
  padding: 0.25rem 0.5rem;
}

.inline-edit-input:focus {
  border-color: #138496;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Column Management Panel */
.column-management-panel {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  min-width: 280px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  right: 50px;
  top: 200px;
  z-index: 1050;
}

.column-management-panel .form-check {
  margin-bottom: 0.5rem;
}

.column-management-panel .form-check-label {
  align-items: center;
  color: #495057;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-buttons .btn {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Empty State */
.empty-state {
  align-items: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state h5 {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-bar {
    padding: 1rem;
  }
  
  .action-bar .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-input-group {
    width: 100%;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .column-management-panel {
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Loading States */
.loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* Form Controls */
.form-control-sm {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

/* Checkbox Styling */
.form-check-input {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.form-check-input:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #495057;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

.cursor-pointer {
  cursor: pointer;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Hover Effects */
.btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}.sales-dashboard {
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Header Styles */
.dashboard-header {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-icon {
  color: #fbbf24;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-actions .btn {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Control Bar Styles */
.control-bar {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-container {
  position: relative;
  width: 300px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  z-index: 10;
}

.search-container input {
  padding-left: 40px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

/* Dashboard Grid */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.widget-column.large {
  grid-column: span 1;
}

/* Widget Styles */
.widget {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 200px;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #374151;
}

.widget-actions {
  display: flex;
  gap: 4px;
}

.widget-content {
  height: calc(100% - 50px);
  display: flex;
  flex-direction: column;
}

/* Annual Target Widget */
.annual-target-widget {
  min-height: 300px;
}

.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.pie-chart {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 16px;
}

.pie-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pie-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.pie-chart-value {
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.pie-chart-labels {
  display: flex;
  justify-content: space-between;
  width: 200px;
  font-size: 12px;
  color: #6b7280;
}

.target-stats {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

/* Monthly Target Widget */
.monthly-target-widget {
  min-height: 300px;
}

.progress-container {
  margin-bottom: 20px;
}

.progress-bar {
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #1f2937;
  transition: left 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

/* Average Deal Value Widget */
.average-deal-widget {
  min-height: 150px;
}

.deal-value-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.deal-value {
  font-size: 32px;
  font-weight: 700;
  color: #10b981;
}

/* Active Deals Forecast Widget */
.active-deals-widget {
  min-height: 150px;
}

.forecast-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.forecast-value {
  font-size: 32px;
  font-weight: 700;
  color: #3b82f6;
}

/* Deal Status Distribution Widget */
.deal-status-widget {
  min-height: 200px;
}

.status-distribution {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-label {
  flex: 1;
  font-size: 14px;
  color: #374151;
}

.status-percentage {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* Monthly Revenue Widget */
.monthly-revenue-widget {
  min-height: 200px;
}

.revenue-chart {
  display: flex;
  height: 100%;
  gap: 16px;
}

.chart-bars {
  flex: 1;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 100%;
  padding-bottom: 20px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  min-height: 4px;
}

.bar-label {
  position: absolute;
  bottom: -20px;
  font-size: 12px;
  color: #6b7280;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  padding-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .widget-row {
    grid-template-columns: 1fr;
  }
  
  .control-bar {
    flex-direction: column;
    gap: 16px;
  }
  
  .control-left,
  .control-right {
    width: 100%;
    justify-content: center;
  }
  
  .search-container {
    width: 100%;
  }
  
  .header-actions {
    flex-wrap: wrap;
  }
}

/* Widget Menu Styles */
.widget-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 150px;
}

.widget-menu-item {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.widget-menu-item:hover {
  background-color: #f9fafb;
}

/* Edit Mode Styles */
.widget.edit-mode {
  border: 2px dashed #3b82f6;
  position: relative;
}

.widget.edit-mode::after {
  content: 'Drag to resize';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #3b82f6;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
} 