.user-cover {
  height: 150px !important;
}


.h-100vh {
  height: 89vh;
}

/* Text truncation for ellipsis */
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Enhanced table responsive scrollbar visibility */
.table-responsive {
  /* Ensure horizontal scrollbar is always visible */
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  
  /* Show scrollbar even when not scrolling */
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

/* .rdt_Table{
  padding-inline: 20px !important;
  padding-block: 10px !important;
} */


/* Table header styling */
.datatable thead th,
.rdt_TableHead .rdt_TableHeadRow{
  background-color: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 600;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  min-height: 40px !important;
  padding-block: 0 !important;
}

/* Custom scrollbar styling for table-responsive containers */
.table-responsive::-webkit-scrollbar {
  height: 8px !important; /* Increased height for better visibility */
  width: 8px !important;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
  margin: 2px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  border: 1px solid #a8a8a8;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Enhanced scrollbar for table-responsive with scroll-sm class */
.table-responsive.scroll-sm::-webkit-scrollbar {
  height: 8px !important; /* Override the 4px from scroll-sm for horizontal scrollbars */
  width: 8px !important;
}

.table-responsive.scroll-sm::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
  margin: 2px;
}

.table-responsive.scroll-sm::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  border: 1px solid #a8a8a8;
}

.table-responsive.scroll-sm::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Firefox scrollbar styling for table-responsive */
.table-responsive {
  scrollbar-width: auto;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Ensure tables with min-width: max-content show scrollbars properly */
.table-responsive table {
  min-width: max-content;
}

/* Additional styling for DataTable components */
.table-responsive .rdt_Table {
  min-width: max-content;
}

/* DataTable specific scrollbar styling */
.rdt_TableWrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.rdt_TableWrapper::-webkit-scrollbar {
  height: 8px !important;
  width: 8px !important;
}

.rdt_TableWrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
  margin: 2px;
}

.rdt_TableWrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  border: 1px solid #a8a8a8;
}

.rdt_TableWrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure DataTable scrollbar is visible even when not hovering */
.rdt_TableWrapper:not(:hover)::-webkit-scrollbar-thumb {
  background: #d1d1d1;
}

/* Ensure scrollbar is visible even when table content is smaller than container */
.table-responsive:not(:hover)::-webkit-scrollbar-thumb {
  background: #d1d1d1; /* Slightly lighter when not hovering but still visible */
}

/* Mobile-friendly scrollbar adjustments */
@media (max-width: 768px) {
  .table-responsive::-webkit-scrollbar {
    height: 10px !important; /* Even more visible on mobile */
    width: 10px !important;
  }
  
  .table-responsive.scroll-sm::-webkit-scrollbar {
    height: 10px !important;
    width: 10px !important;
  }
  
  .rdt_TableWrapper::-webkit-scrollbar {
    height: 10px !important;
    width: 10px !important;
  }
}

/* Additional table container scrollbar styling */
.card-body .table-responsive,
.card .table-responsive {
  /* Ensure scrollbars are visible in card contexts */
  overflow-x: auto !important;
}

/* Handle any div containers that might wrap tables */
div[class*="table"] {
  overflow-x: auto !important;
}

/* Ensure all table-related overflow containers show scrollbars */
[class*="table"][class*="responsive"] {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Firefox scrollbar for all table containers */
.table-responsive,
.rdt_TableWrapper,
div[class*="table"],
[class*="table"][class*="responsive"] {
  scrollbar-width: auto;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.text-white-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.5);
}

.text-muted-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bs-gray-500);
}

/* Sidebar styles */
.sidebar-desktop-collapsible {
  width: 300px !important;
  max-width: 300px !important;
  flex: 0 0 300px !important;
  transition: width 0.3s ease !important;
}

.sidebar-hidden.sidebar-desktop-collapsible {
  width: 70px !important;
  max-width: 70px !important;
  flex: 0 0 70px !important;
}

.sidebar-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 0;
  z-index: 1050;
  overflow: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
}

.sidebar-visible.sidebar-mobile-overlay {
  width: 280px;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

@media (min-width: 768px) {
  .sidebar-mobile-overlay {
    position: relative;
    box-shadow: none;
  }

  .sidebar-backdrop {
    display: none;
  }

  .sidebar-visible.sidebar-mobile-overlay {
    width: 280px;
  }
}

.chat-item {
  transition: all 0.2s ease;
  height: 60px;
}

.chat-item:not(.bg-primary):hover {
  background-color: var(--bs-gray-200) !important;
}


.message-bubble:hover .message-actions {
  opacity: 1 !important;
  pointer-events: all !important;
}

.cursor-pointer {
  cursor: pointer;
}

.transition-all {
  transition: all 0.3s ease;
}

.message-bubble {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  max-width: 75%;
}

.user-bubble {
  border-radius: 1.25rem 1.25rem 0.3rem 1.25rem;
}

.assistant-bubble {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.custom-scroll::-webkit-scrollbar {
  width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.input-wrapper {
  border-width: 2px !important;
  background: var(--bs-white);
  min-height: 44px;
}

.input-wrapper:focus-within {
  border-color: inherit !important;
  box-shadow: none !important;
}

.auto-resize-textarea:focus {
  border-color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

.auto-resize-textarea {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 44px;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: none !important;
}

.auto-resize-textarea::placeholder {
  color: gray;
  opacity: 1;
}

.attachment-btn,
.send-btn {
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.attachment-btn {
  border: 1px solid var(--bs-gray-300);
  color: var(--bs-gray-600);
  background-color: var(--bs-white);
}

.attachment-btn:hover:not(:disabled) {
  background-color: var(--bs-light);
  border-color: var(--bs-gray-400);
  color: var(--bs-gray-700);
  transform: scale(1.05);
}

.attachment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bs-light);
}

.send-btn.btn-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-blue-700) 100%);
  border-color: var(--bs-primary);
  color: var(--bs-white);
}

.send-btn.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--bs-blue-700) 0%, var(--bs-blue-800) 100%);
  border-color: var(--bs-blue-700);
  transform: scale(1.05);
}

.send-btn.btn-secondary.disabled {
  background-color: var(--bs-light) !important;
  border-color: var(--bs-light) !important;
  color: var(--bs-gray-500) !important;
  cursor: not-allowed;
}

.send-btn:active {
  transform: translateY(0);
}

.drag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.spin {
  animation: spin 1s linear infinite;
}

.input-area {
  position: sticky;
  bottom: 0;
}

.ligo-ai-chat-area {
  height: calc(100vh - 4.5rem);
}

.ligo-ai-messages {
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ligo-ai-messages::-webkit-scrollbar {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.invoice-title {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif!important;
}

/* Tab styles */
/* Style for inactive tabs */
.nav-tabs .nav-link {
  color: var(--secondary-600); 
  border: 1px solid #dee2e6;
  margin-right: 5px;
}

/* Style for active tab */
.nav-tabs .nav-link.active {
  color: var(--bs-white); 
  background-color: var(--primary) !important; 
}

/* Hover effect for inactive tabs */
.nav-tabs .nav-link:hover {
  color: white;
  background-color: var(--primary); 
}


/* ROUNDED STYLES */
.rounded-2 {
  border-radius: var(--rounded-2);
}

.rounded-4 {
  border-radius: var(--rounded-4);
}

.rounded-6 {
  border-radius: var(--rounded-6);
}

.rounded-8 {
  border-radius: var(--rounded-8);
}

.rounded-9 {
  border-radius: var(--rounded-9);
}

.rounded-10 {
  border-radius: var(--rounded-10);
}

.rounded-11 {
  border-radius: var(--rounded-11);
}

.rounded-12 {
  border-radius: var(--rounded-12);
}

.rounded-13 {
  border-radius: var(--rounded-13);
}

.rounded-16 {
  border-radius: var(--rounded-16);
}

.rounded-20 {
  border-radius: var(--rounded-20);
}

.rounded-24 {
  border-radius: var(--rounded-24);
}

.rounded-28 {
  border-radius: var(--rounded-28);
}

.rounded-32 {
  border-radius: var(--rounded-32);
}

.rounded-36 {
  border-radius: var(--rounded-36);
}

.rounded-40 {
  border-radius: var(--rounded-40);
}

.rounded-44 {
  border-radius: var(--rounded-44);
}

.rounded-48 {
  border-radius: var(--rounded-48);
}

.firm-logo{
  height: 170px !important;
  width: 170px !important;
  border-radius: 15px !important;
}



/* Invoice total row double border */
.total-row-border {
  border-bottom: 5px double black !important;
}

.btn-link {
  text-decoration: none !important;
}

.list-group-item.active {
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.list-group-item.active svg {
  color: var(--white);
}