﻿/* 
 *   Nelskinexusprm.com 
 *  (c) Copyright. All rights reserved.
*/

/* Import design tokens */
@import './tokens.css';

/* ============ 
   GDPR Cookie Consent Banner
   ============ */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.98);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 3px solid var(--color-interactive-primary);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.cookie-consent-text strong {
  color: #ffffff;
  font-weight: 600;
}

.cookie-consent-text a {
  color: var(--color-interactive-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
  color: var(--color-interactive-primary-hover);
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cookie-consent-btn-accept {
  background: var(--color-interactive-primary);
  color: white;
}

.cookie-consent-btn-accept:hover {
  background: var(--color-interactive-primary-hover);
  transform: translateY(-1px);
}

.cookie-consent-btn-decline {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4b5563;
}

.cookie-consent-btn-decline:hover {
  background: #374151;
  color: #ffffff;
  border-color: #6b7280;
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #6b7280;
}

.cookie-consent-btn-settings:hover {
  background: #4b5563;
  color: #ffffff;
}

.cookie-consent-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.cookie-consent-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cookie-settings-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.cookie-settings-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.cookie-settings-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.cookie-settings-close:hover {
  color: #1f2937;
  background: #f3f4f6;
}

.cookie-settings-body {
  padding: 1.5rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.cookie-category-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-category-title {
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  font-size: 1rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--color-interactive-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #d1d5db;
  cursor: not-allowed;
}

.cookie-category-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-settings-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }
  
  .cookie-consent-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-consent-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }
  
  .cookie-settings-content {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .cookie-settings-footer {
    flex-direction: column;
  }
  
  .cookie-settings-footer .cookie-consent-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============ 
   General
   =============*/

body { 
  font-family: var(--font-family-sans);
  font-size: var(--typography-body-size);
  font-weight: var(--typography-body-weight);
  line-height: var(--typography-body-line-height);
  color: var(--color-text-primary);
  background-color: var(--color-background-primary);
}

/* Sticky Footer Layout */
body.sticky-footer-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.sticky-footer-layout .body-content {
  flex: 1 0 auto;
  padding-bottom: var(--spacing-md);
}

body.sticky-footer-layout footer {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: auto;
}

/* Responsive adjustments for sticky footer */
@media (max-width: 768px) {
  body.sticky-footer-layout .body-content {
    padding-bottom: var(--spacing-sm);
  }
}

header { 
  padding: var(--spacing-component-sm) var(--spacing-section-sm); 
}

footer { 
  margin-bottom: var(--spacing-lg); 
}

/* Sticky Footer Adjustments */
body.sticky-footer-layout footer {
  margin-bottom: 0;
  margin-top: auto;
  /*padding-bottom: var(--spacing-md);*/
}

a, button { 
  outline: none !important; 
}

a { 
  color: var(--color-interactive-primary);
  transition: color 0.15s ease-in-out;
}

a:hover { 
  color: var(--color-interactive-primary-hover);
  text-decoration: none;
}

/* ============ 
   Navigation
   ============ */

/* Main menu nav */

.main-menu { 
  background: #1e40af !important; 
  height: var(--space-12); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-menu { 
  margin-top: var(--spacing-sm);
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-item { 
  padding-right: var(--spacing-component-sm); 
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white !important;
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 100;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white !important;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Debug styles to make sure the toggle is visible */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  margin: 0;
  padding: 0;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Additional safety CSS for mobile overlay */
.mobile-nav-overlay {
  pointer-events: none;
}

.mobile-nav-overlay.active {
  pointer-events: auto;
}

/* Ensure body overflow is handled properly */
body.mobile-nav-open {
  overflow: hidden;
  height: 100vh;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #1e40af;
  transition: right 0.3s ease-in-out;
  z-index: 1050;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.mobile-nav-menu.active {
  right: 0;
}

.mobile-nav-menu .nav-item {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

.mobile-nav-menu .nav-link {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  color: white !important;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.mobile-nav-menu .nav-link:hover,
.mobile-nav-menu .nav-link.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: white !important;
  font-size: 28px;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-content {
  margin-top: 1rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  margin-bottom: 0.5rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: white !important;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: rgba(255, 255, 255, 0.15) !important;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.mobile-nav-actions h6,
.mobile-nav-user h6 {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu .nav-item a.nav-link { 
  color: white !important; 
  height: var(--space-8);
  background: transparent; 
  padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs); 
  font-size: var(--font-size-sm); 
  border-radius: var(--radius-button); 
  transition: background-color 0.15s ease-in-out;
  text-decoration: none;
}

.nav-menu .nav-item a.nav-link.active,
.nav-menu .nav-item a.nav-link:hover,
.nav-menu .nav-item a.nav-link:focus { 
  text-decoration: none; 
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
}

.nav-menu .nav-item a.nav-link.active:hover,
.nav-menu .nav-item a.nav-link.active:focus { 
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
}

/* Ensure all navigation elements are visible */
.main-menu .nav-menu .nav-link {
  color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-menu {
    height: var(--space-14);
    padding: 0 var(--space-3);
    position: relative;
    align-items: center;
    justify-content: space-between;
  }

  .nav-menu {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    order: 2;
  }

  .brand-logo img {
    height: calc(var(--space-8) - var(--space-1)) !important;
  }

  /* Hide most action items on mobile, keep user menu */
  .action-menu-item {
    display: none;
  }

  .action-menu-item:last-child {
    display: flex;
    order: 3;
  }

  /* Ensure mobile menu components are available but initially hidden */
  .mobile-nav-overlay,
  .mobile-nav-menu {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-nav-toggle,
  .mobile-nav-overlay,
  .mobile-nav-menu {
    display: none !important;
  }
}

.avatar-wrapper { 
  display: inline-block; 
  width: calc(var(--space-10) + var(--space-2)); 
  text-align: right; 
  margin-top: var(--spacing-sm); 
  margin-right: var(--spacing-sm); 
  margin-bottom: var(--spacing-sm); 
}

.avatar { 
  border-radius: var(--radius-full); 
  width: var(--space-8); 
  height: var(--space-8); 
  vertical-align: middle; 
  background: var(--color-primary-700); 
  color: var(--color-text-inverse); 
  text-align: center; 
  font: var(--font-size-lg) var(--font-family-sans); 
  display: inline-block;
}

.action-circle { 
  border-radius: var(--radius-full); 
  width: calc(var(--space-6) + var(--space-1)); 
  height: calc(var(--space-6) + var(--space-1)); 
  line-height: calc(var(--space-6) + var(--space-1)); 
  vertical-align: middle; 
  color: var(--color-text-inverse); 
  padding-top: var(--spacing-xs); 
  text-align: center; 
  font: var(--font-size-base) var(--font-family-sans); 
  display: inline-block; 
  background: rgba(255, 255, 255, 0.35);
}

/* Admin nav */

.page-box-admin-menu { 
  padding: 0 0 0 var(--spacing-section-sm); 
  display: flex;
  align-items: center;
}

.nav-admin .nav-item { 
  padding-right: var(--spacing-component-md); 
}
.nav-admin .nav-item a.nav-link { 
  color: var(--color-text-secondary) !important; 
  border-radius: var(--radius-button);
  height: var(--space-8);
  padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs); 
  font-size: var(--font-size-xs);
  transition: all 0.15s ease-in-out;
}

.nav-admin .nav-item .nav-link { 
  color: var(--color-text-primary); 
  font-weight: var(--font-weight-normal); 
  height: calc(var(--space-8) + var(--spacing-xs)); 
  padding-top: var(--spacing-sm); 
  background: var(--color-background-tertiary); 
  transition: all 0.15s ease-in-out;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-sm);
}

.nav-admin .nav-item .nav-link:hover, 
.nav-admin .nav-item .nav-link.active { 
  color: var(--color-text-primary); 
  background: var(--color-gray-200); 
}

/* General nav */

/* immediately render dropdowns upon hover - menu and button dropdowns (right aligned) */
/*.dropdown:hover .dropdown-menu { display: block; margin: 0; }
.btn-group:hover .dropdown-menu { display: block; margin: 0; right: 0; left: auto; }*/

/* override default active menu color */
.dropdown-item.active, .dropdown-item:active { color: #16181b; background-color: #f6f7f8; }

/* ============ 
   Page Layout
   ============ */

.page { 
  background: var(--color-background-tertiary); 
  padding: var(--spacing-section-sm); 
  margin: 0; 
  border-radius: var(--radius-card); 
  margin-top: var(--spacing-md); 
}

.page-box { 
  background: var(--color-background-secondary); 
  margin-top: var(--spacing-component-md); 
  border: 1px solid var(--color-border-primary); 
  padding: var(--spacing-component-sm) var(--spacing-component-sm) var(--spacing-component-sm) var(--spacing-component-sm); 
  font-size: var(--font-size-sm); 
  border-radius: var(--radius-button); 
  position: relative; 
}

.page-box .d-flex {
  align-items: center;
}

.page-box-icon { 
  font-size: 15px; 
  font-weight: var(--font-weight-bold);
  text-transform: capitalize; 
  color: var(--color-brand-primary); 
}

.page-box-welcome {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
  padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-component-sm);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

.page-box-back {
  font-size: 14px;
  font-weight: normal;
  color: var(--color-text-primary);
}

.page-box-name { 
  padding: var(--spacing-xs) var(--spacing-3xl) 0 0; 
  font-size: var(--font-size-lg); 
}

.page-box-data,
.page-box-data-first,
.page-box-data-last {
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-xs); 
  border-left: 1px solid var(--color-border-primary); 
  font-size: var(--font-size-xs); 
  line-height: var(--line-height-relaxed); 
  color: var(--color-text-secondary); 
  min-height: calc(var(--space-12) + var(--spacing-sm));
}

.page-box-data-first { 
  margin-left: var(--space-12); 
}

.page-box-data-last { 
  border-right: 1px solid var(--color-border-primary); 
}

.page-box-filter { 
  padding: var(--spacing-component-sm) 0 var(--spacing-xs) 0; 
}

.page-box-items { 
  font-size: var(--font-size-sm);  
  margin: var(--spacing-lg) 0 0 var(--spacing-section-sm); 
}

.page-box-new-button { 
  padding: var(--spacing-lg) var(--spacing-sm) 0 0; 
}

.page-box-new-button-top { 
  padding: var(--spacing-xs) var(--spacing-sm) 0 0; 
}

.page-box-items-advanced { font-size: 14px; margin: 8px 0 0 5px; }
.page-box-button { padding: 16px 7px 0 10px; }
.page-box-buttons { padding: 0; }

.filter-buttons { position: absolute; top: 60px; right: 19px; z-index: 100; }
/*.filter-buttons .standard-toggle { width: 36px; }*/

/* Mobile and Tablet Responsive Styles for Filters */
@media (max-width: 991px) {
  .filter-buttons {
    position: static;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  
  .page-box .d-flex:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .page-box-new-button-top {
    margin: 0 !important;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .page-box-new-button-top .btn {
    flex: 0 1 auto;
    min-width: fit-content;
    white-space: nowrap;
    font-size: 12px;
    padding: 0.375rem 0.5rem;
  }
  
  .page-box-icon {
    width: 100%;
  }
  
  .pr-130 {
    padding-right: 15px !important;
  }
  
  .pl-30 {
    padding-left: 15px !important;
  }
}

@media (max-width: 768px) {
  .page-box {
    padding: 15px;
  }
  
  .page-box-filter {
    width: 100%;
  }
  
  .page-box-filter .form-select {
    width: 100% !important;
  }
  
  .width-240 {
    width: 100% !important;
  }
  
  .filter-buttons {
    margin-top: 15px;
  }
  
  .advanced-filter .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .advanced-filter .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  /* Consistent button heights for tablet */
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    line-height: 1.2;
    min-height: 38px;
  }
  
  .btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    min-height: 32px;
  }
  
  .filter-buttons .btn {
    padding: 0.375rem 0.5rem;
    min-height: 32px;
    line-height: 1.2;
  }
  
  .page-box-new-button-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .page-box-new-button-top .btn {
    flex: 1 1 auto;
    min-width: 100px;
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .page-box {
    padding: 10px;
    margin: 5px;
  }
  
  .page-box-icon {
    font-size: 14px;
    line-height: 1.3;
  }
  
  /* Consistent button heights for mobile */
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    line-height: 1.2;
    min-height: 38px;
  }
  
  .btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    min-height: 32px;
  }
  
  .filter-buttons .btn {
    padding: 0.375rem 0.5rem;
    min-height: 32px;
    line-height: 1.2;
  }
  
  .filter-buttons {
    width: auto;
    margin-top: 10px;
  }
  
  .page-box-new-button-top .btn {
    flex: 1;
    min-width: 45px;
    min-height: 32px;
    margin-bottom: 5px;
    font-size: 13px;
  }
  
  .page-box-new-button-top {
    gap: 6px;
  }
  
  .pt-3 {
    padding-top: 1rem !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .page-box-new-button-top .btn {
    flex: 1 1 auto;
    min-width: 40px;
    font-size: 12px;
    padding: 0.375rem 0.5rem;
  }
  
  .page-box-new-button-top {
    gap: 4px;
  }
}

/* ============ 
   Buttons  
   ============ */

.btn-light { 
  color: var(--color-text-primary); 
  background-color: var(--color-background-tertiary); 
  border-color: var(--color-border-secondary); 
  text-transform: none; 
  transition: all 0.15s ease-in-out;
}

.btn-light:hover, 
.btn-light:focus, 
.btn-light:active, 
.btn-light.active { 
  border-color: var(--color-gray-400); 
  background-color: var(--color-gray-200); 
}

.btn-light.disabled { 
  border-color: var(--color-border-secondary); 
  opacity: 0.6;
}

.btn-xs { 
  padding: calc(var(--spacing-xs) - var(--space-px)) calc(var(--spacing-xs) + var(--space-px)); 
  font-size: var(--font-size-xs); 
  line-height: var(--line-height-snug); 
  border-radius: var(--radius-sm); 
}

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

.dropdown-item { 
  font-size: var(--font-size-base); 
}

.dropdown-toggle { 
  -webkit-box-shadow: 0 !important; 
  box-shadow: 0 !important; 
}

.button-bar { 
  margin-top: var(--spacing-sm); 
  padding: var(--spacing-xs) 0; 
  text-align: center; 
  background-color: var(--color-background-primary);
}

/* bootstrap overrides */
.btn-primary { 
  color: var(--color-text-inverse); 
  background-color: var(--color-interactive-primary); 
  border-color: var(--color-interactive-primary); 
  transition: all 0.15s ease-in-out;
}

.btn-primary:hover, 
.btn-primary:focus { 
  color: var(--color-text-inverse); 
  background-color: var(--color-interactive-primary-hover); 
  border-color: var(--color-interactive-primary-hover); 
}

.btn-primary:not(:disabled):not(.disabled):active, 
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle { 
  color: var(--color-text-inverse); 
  background-color: var(--color-interactive-primary-active); 
  border-color: var(--color-interactive-primary-active); 
}

.btn-primary:not(:disabled):not(.disabled):active:focus, 
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus { 
  box-shadow: var(--shadow-focus-primary); 
}


/* ============ 
   Related tabs
   =============*/

.tabs { background: #fbfbfc; }

.nav-tabs-related .nav-item { text-transform: uppercase; margin-right: 6px; }

.nav-tabs-related .nav-item a.nav-link,
.nav-tabs-related .nav-item a.nav-link:hover,
.nav-tabs-related .nav-item a.nav-link:focus,
.nav-tabs-related .nav-item a.nav-link:focus { background: #f7f8f8; color:steelblue; border-top: 2px solid var(--color-primary-600); border-bottom: 2px solid #f7f8f8; border-left: 1px solid #ddd; border-right: 1px solid #ddd; margin-bottom: -1px; }

.nav-tabs-related .nav-item a.nav-link.active,
.nav-tabs-related .nav-item a.nav-link:hover,
.nav-tabs-related .nav-item a.nav-link:focus { background: #fff; border-bottom: 2px solid #fff; }

.tab-content { margin-top: 1px; margin-bottom: 40px; }

.tab-pane { background: #fff; padding: 25px; padding-top: 0; }

.tab-pane-row { background: white; padding: 30px 15px; margin: 0; }
.tab-pane-heading { font-size: 15px; padding: 8px 0 0 10px; }
.tab-pane-viewall { font-size: 15px; padding: 8px 0 0 22px; }

.no-relateds { padding: 20px 50px 200px 40px; font-size: 14px; background: white; margin-top: 12px; }

.tab-badge { background: #eee; color: black; border-radius: 50%; text-align: center; display: inline-block; font-size: 13px; width: 19px; height: 19px; border: 0px solid #ccc; margin-left: 8px; }

/* ============ 
   Related tab body
   =============*/

.related-header { padding: 5px 0; background: white; border-bottom: 1px solid #ddd; }
.related-header .related-icon { padding: 8px; }
.related-header .related-text { padding: 12px 0 0 0; font-size: 15px; font-weight: bold; }
.related-header .related-viewall { padding: 13px 0 0 30px; text-decoration: underline; }
.related-header .related-new { padding: 8px; }

.related-items { padding: 15px; border-bottom: 0px solid #ddd; background: white; }
.related-item { padding: 0 0 10px 10px; margin-right: 10px; }

.table-related { width: 100%; }
.table-related td { padding: 3px 0; }


/* ============ 
   Activity tabs
   =============*/

.tabs-activity { margin-top: 40px; margin-left: 20px; }
.tabs-activity .nav-item { margin-right: 20px; }
.tabs-activity .nav-item .nav-link { padding: 7px; border: none; border-bottom: 1px solid transparent; color: #444; font-size: 14px; }
.nav-tabs-activity .nav-link.active, .nav-tabs-activity .nav-link:hover { border: none; border-bottom: 1px solid #215CA0; }

.tab-pane-activity { background: #fff; padding: 20px; padding-top: 0; margin-top: 20px; }
.activity-text { padding: 2px 0 2px 0; font-size: 14px; }

/*.nav-tabs-activity { margin-top: 12px; border-top: 0px solid red;  }
.nav-tabs-activity > li { background: #f8f8f8; border-radius: 0; border-right-color: #ddd; }*/

/* ============ 
   Underlines
   =============*/

a.dashed-underline { text-decoration: none; border-bottom: 1px dashed #3c7676; }
a.dashed-underline:hover { border-bottom: 1px solid #515b5b; }


/* ============ 
   Forms
   =============*/

.form-control { 
  font-size: var(--font-size-base); 
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group { 
  margin-bottom: var(--spacing-xs); 
  position: relative; 
}

.col-form-label { 
  padding-top: calc(var(--spacing-xs) + 2px); 
  text-align: right; 
}

.col-form-text { 
  padding-top: calc(var(--spacing-xs) + 1px); 
  padding-bottom: calc(var(--spacing-xs) + 1px); 
  margin-bottom: 0; 
  font-size: inherit; 
  line-height: var(--line-height-normal); 
}

.col-form-checkbox { 
  padding-top: calc(var(--spacing-xs) + var(--spacing-xs)); 
  padding-bottom: calc(var(--spacing-xs) + 1px); 
  margin-bottom: 0; 
  font-size: inherit; 
  line-height: var(--line-height-normal); 
  text-align: left; 
}

.input-validation-error { 
  border: solid 1px var(--color-border-secondary); 
  outline: 0; 
  box-shadow: var(--shadow-focus-danger);
}

.field-validation-error { 
  color: var(--color-danger-500); 
  font-size: var(--font-size-xs); 
}

.required { 
  color: var(--color-danger-500); 
  display: inline-block; 
  padding-right: var(--spacing-xs); 
}

/* Responsive Form Layout */
@media (max-width: 768px) {
  .col-form-label {
    text-align: left;
    padding-top: var(--spacing-xs);
    margin-bottom: var(--space-2);
  }

  .form-group {
    margin-bottom: var(--space-4);
  }

  .row .col-md-2,
  .row .col-md-3,
  .row .col-md-4,
  .row .col-md-6,
  .row .col-md-8,
  .row .col-md-9,
  .row .col-md-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .button-bar {
    text-align: left;
    padding: var(--space-4) 0;
  }

  .btn {
    width: 100%;
    margin-bottom: var(--space-2);
  }

  /* .btn:last-child {
    margin-bottom: 0;
  } */
}

/* ============ 
  Tables  
  =============*/

.table-sm th,
.table-sm td { 
  padding: var(--spacing-component-xs); 
}

.table-list th { 
  font-weight: var(--font-weight-semibold); 
  text-transform: uppercase; 
  font-size: var(--font-size-xs); 
  overflow: hidden; 
  text-overflow: ellipsis; 
  transition: background-color 0.15s ease-in-out;
}

.table-list th:hover { 
  background: var(--color-background-secondary); 
}

.table-list th.no-hover:hover { 
  background: var(--color-background-primary) !important; 
}

.table-list th a { 
  color: var(--color-text-primary); 
}

.table-list th a:hover,
.table-list th a:focus { 
  color: var(--color-interactive-primary); 
  text-decoration: none; 
}

.table-list-link { 
  text-decoration: none; 
  color: var(--color-interactive-primary); 
  background: transparent !important; 
}

.table-list-link:hover { 
  text-decoration: underline; 
  color: var(--color-interactive-primary); 
}

.table-list-actions { 
  width: calc(var(--space-32) + var(--space-4)); 
  text-transform: none !important; 
}


.table-hover tbody tr:hover td { 
  background-color: var(--color-gray-50); 
}

.table-hover tbody tr:first-child:hover { 
  background-color: var(--color-background-primary); 
}

.table-header, 
.table-head:hover { 
  background: var(--color-background-secondary) !important; 
}

.no-items, 
td .no-items { 
  padding: var(--spacing-section-sm) var(--spacing-sm) var(--space-24) var(--spacing-lg) !important; 
}

.table { 
  --bs-table-hover-bg: var(--color-gray-50); 
}

/* Mobile Card Layout for Tables */
.table-mobile-cards {
  display: none;
}

.mobile-card {
  background: var(--color-background-primary);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.mobile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-primary);
}

.mobile-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.mobile-card-actions {
  display: flex;
  gap: var(--space-2);
}

.mobile-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.mobile-card-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-card-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-card-value {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

.mobile-card-value.empty {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Two-column layout for larger mobile screens */
@media (min-width: 480px) and (max-width: 768px) {
  .mobile-card-body {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive Table Behavior */
@media (max-width: 768px) {
  .table-responsive table {
    display: none;
  }
  
  .table-mobile-cards {
    display: block;
  }

  .page-box {
    padding: var(--space-3);
    margin: var(--space-3) 0;
  }

  .page-box-data,
  .page-box-data-first,
  .page-box-data-last {
    display: none;
  }

  .page-box-name {
    font-size: var(--font-size-base);
    padding-right: var(--space-2);
  }

  .page-box-filter {
    padding: var(--space-2) 0;
  }

  .page-box-items {
    margin: var(--space-4) 0 0 0;
  }
}

/* up-down sort arrows */

a.selected-asc:link,
a.selected-asc:visited,
a.selected-asc:hover,
a.selected-asc:active { padding-right: 20px; background: url(/img/arrow-down.png) no-repeat center right; }

a.selected-desc:link,
a.selected-desc:visited,
a.selected-desc:hover,
a.selected-desc:active { padding-right: 20px; background: url(/img/arrow-up.png) no-repeat center right; }

a.selected-none { padding-right: 20px; background: url(/img/arrow-none.png) no-repeat center right; }
a.selected-none:hover,
a.selected-none:active { padding-right: 20px; background: url(/img/arrow-down.png) no-repeat center right; }

/* ============ 
   Entity icons
   =============*/

/* entity icons */

.icon-square { 
  display: inline-block; 
  padding: var(--spacing-xs); 
  border-radius: var(--radius-sm); 
  color: var(--color-text-inverse); 
  /* margin-right: var(--spacing-xs);  */
}

.icon-envelope-circle,
.icon-bubble-circle { 
  display: inline-block; 
  padding: var(--spacing-xs); 
  border-radius: var(--radius-full); 
  color: var(--color-text-inverse); 
  /* margin-right: var(--spacing-xs);  */
}

.icon-little { 
  padding: var(--spacing-xs); 
  font-size: var(--font-size-sm); 
  margin: var(--space-px) var(--spacing-xs) var(--space-px) 0; 
}

/* opportunities */
.icon-opportunity { background: #764ba2; }

/* leads */
.icon-lead { background: #ffac00; }

/* tasks */
.icon-task { background: #20c997; }

/* accounts */
.icon-account { background: #20a8d8; }

/* contacts */
.icon-contact { background: #63c2de; }

/* campaign */
.icon-campaign { background: #bca3e5; }

/* case */
.icon-case { background: #eea36b; }

/* admin */
.icon-admin { background: #666; }

/* people */
.icon-persons { background: #ff672d; }

.icon-owner { background: #faca36; }

/* email */
.icon-email { background: #66d309; }

/* call */
.icon-call { background: #ffa42e; }


/* ============ 
   Modal
   =============*/

/* bootstrap modal fix */
.modal-open[style] { padding-right: 0 !important; }

/* removes scrollbar from modal backdrop when not necessary */
.modal { overflow-y: auto; }

/* custom class to add space for scrollbar */
.modal-scrollbar { margin-right: 15px; }

.modal-header { background: #0e8ecd; }
.modal-title {color: white;}

/* ============ 
   Alerts boxes
   =============*/

.alert { z-index:1500;}
.alert-absolute { position: absolute; left: 0; right: 0; margin-left: auto; margin-right: auto; top: 40px; width: 600px; display: none; padding: 12px; }
.alert-success { color: #76683c; background-color: #fbefc1; border-color: #d6e9c6; }
.alert-error { color: #a94442; background-color: #fbe3c1; border-color: #ebccd1; }

/* close buttons on alerts */

.close-light,
.close-light:hover { text-shadow: 0; line-height: .7; color: #fff; filter: alpha(opacity=50); opacity: .5; }
.close-light:hover { color: #fff; filter: alpha(opacity=70); opacity: .7; }


/* ============ 
   Placeholders 
   =============*/


.form-control::-webkit-input-placeholder { color: #9ea4aa; opacity: 1; }

.form-control::-moz-placeholder { color: #9ea4aa; opacity: 1; }

.form-control:-ms-input-placeholder { color: #9ea4aa; opacity: 1; }

.form-control::-ms-input-placeholder { color: #9ea4aa; opacity: 1; }

.form-control::placeholder { color: #9ea4aa; opacity: 1; }


/* ============ 
   Typeahead 
   =============*/

/* typeahead formatting (from source) */
.typeahead { background-color: #fff; }
.twitter-typeahead { width: 100%; }

/* typeahead custom formatting */

.tt-menu { width: 300px; margin: 12px 0; padding: 8px 0; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2); box-shadow: 0 5px 10px rgba(0,0,0,.2); }
.tt-menu, .gist { text-align: left; }
.tt-hint { color: #999 }
.tt-suggestion { padding: 5px 20px; line-height: 24px; }
.tt-suggestion:hover { cursor: pointer; background-color: #f0f0f0; }
.tt-suggestion.tt-cursor { background-color: #f0f0f0; }
.tt-suggestion p { margin: 0; }
.gist { font-size: 14px; }


/* search icon on typeahead input fields */

.search-wrapper { position: relative; }
.search-wrapper .form-control { padding-right: 40px; }
.search-icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-family: 'simple-line-icons'; line-height: 1; pointer-events: none; color: var(--color-neutral-500); }

/* ============ 
   Stepped progress
   =============*/

.stepped-progress { 
  padding: var(--spacing-sm) 0 var(--spacing-lg);
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.stepped-progress > .stepped-progress-step { 
  padding: 0; 
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stepped-progress > .stepped-progress-step .stepped-progress-stepnum { 
  font-size: var(--font-size-sm); 
  margin-bottom: var(--spacing-xs); 
  text-align: center;
}

.stepped-progress > .stepped-progress-step .stepped-progress-info { 
  font-size: var(--font-size-sm);
  text-align: center;
  margin-top: var(--spacing-sm);
}

.stepped-progress > .stepped-progress-step > .stepped-progress-dot { 
  position: relative;
  width: var(--space-8); 
  height: var(--space-8); 
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-info-200); 
  border: none;
  border-radius: var(--radius-full);
  z-index: 2;
}

.stepped-progress > .stepped-progress-step.complete > .stepped-progress-dot:after { 
  content: ' '; 
  width: var(--spacing-component-sm); 
  height: var(--spacing-component-sm); 
  background: var(--color-primary-700); 
  border-radius: var(--radius-full); 
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Center radio input dots for unselected stages */
.stepped-progress > .stepped-progress-step .dot-check input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 1px solid #e5e7eb;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border-radius: 50%;
  width: var(--spacing-component-sm);
  height: var(--spacing-component-sm);
}

/* Light border on focus */
.stepped-progress > .stepped-progress-step .dot-check input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid #d1d5db;
}

/* Selected/checked state - change color */
.stepped-progress > .stepped-progress-step .dot-check input[type="radio"]:checked {
  background: var(--color-primary-600);
  border: 1px solid var(--color-primary-600);
}

/* Selected and focused state */
.stepped-progress > .stepped-progress-step .dot-check input[type="radio"]:checked:focus {
  background: var(--color-primary-700);
  border: 1px solid var(--color-primary-700);
}

.stepped-progress > .stepped-progress-step > .progress { 
  position: absolute;
  top: 50%;
  left: 50%;
  right: -50%;
  width: 100%;
  height: var(--spacing-xs);
  border-radius: 0px;
  box-shadow: none;
  margin: 0;
  transform: translateY(-50%);
  z-index: 1;
}

.stepped-progress > .stepped-progress-step > .progress > .progress-bar { 
  width: 0px; 
  box-shadow: none; 
  background: var(--color-info-200); 
}

.stepped-progress > .stepped-progress-step.complete > .progress > .progress-bar { 
  width: 100%; 
}

.stepped-progress > .stepped-progress-step.active > .progress > .progress-bar { 
  width: 0%; 
}

.stepped-progress > .stepped-progress-step:first-child.active > .progress > .progress-bar { 
  width: 0%; 
}

.stepped-progress > .stepped-progress-step:last-child.active > .progress > .progress-bar { 
  width: 0%; 
}

.stepped-progress > .stepped-progress-step.disabled > .stepped-progress-dot { 
  background-color: var(--color-gray-100); 
}

.stepped-progress > .stepped-progress-step.disabled > .stepped-progress-dot:after { 
  opacity: 0; 
}

/* Fix progress line positioning for proper connection */
.stepped-progress > .stepped-progress-step:first-child > .progress { 
  left: 50%; 
  width: 50%;
  right: auto;
}

.stepped-progress > .stepped-progress-step:last-child > .progress { 
  left: -50%;
  width: 100%;
  right: auto;
}

.stepped-progress > .stepped-progress-step:not(:first-child):not(:last-child) > .progress {
  left: -50%;
  width: 200%;
  right: auto;
}

.stepped-progress > .stepped-progress-step.disabled .stepped-progress-check { 
  position: absolute; 
  display: block; 
  top: calc(var(--space-10) + var(--spacing-xs)); 
  left: 50%; 
  margin-top: calc(-1 * var(--spacing-md)); 
  margin-left: calc(-1 * var(--spacing-md)); 
  border-radius: var(--radius-full); 
}

.dot-check { 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile & Tablet Responsive Styles for Stepped Progress */
@media (max-width: 768px) {
  
  .stepped-progress > .stepped-progress-step:last-child {
    margin-bottom: 0;
  }
  
  .stepped-progress > .stepped-progress-step.complete {
    background: var(--color-primary-50);
    border-color: var(--color-primary-200);
  }
  
  .stepped-progress > .stepped-progress-step .stepped-progress-stepnum {
    order: 1;
    margin-bottom: 0;
    margin-right: var(--spacing-md);
    font-weight: 600;
    min-width: 60px;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
  }
  
  .stepped-progress > .stepped-progress-step.complete .stepped-progress-stepnum {
    color: var(--color-primary-700);
  }
  
  .stepped-progress > .stepped-progress-step > .stepped-progress-dot {
    order: 2;
    margin-right: var(--spacing-md);
    width: 24px;
    height: 24px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  
  .stepped-progress > .stepped-progress-step .stepped-progress-info {
    order: 3;
    text-align: left;
    margin-top: 0;
    flex: 1;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-gray-700);
  }
  
  .stepped-progress > .stepped-progress-step.complete .stepped-progress-info {
    color: var(--color-primary-700);
  }
  
  .stepped-progress > .stepped-progress-step > .progress {
    display: none; /* Hide horizontal progress lines on mobile */
  }
  
  /* Enhanced radio button styling for mobile */
  .stepped-progress > .stepped-progress-step .dot-check input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-300);
    cursor: pointer;
  }
  
  .stepped-progress > .stepped-progress-step .dot-check input[type="radio"]:checked {
    background: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
  }
  
  /* Add visual feedback on tap */
  .stepped-progress > .stepped-progress-step:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 991px) {
  .stepped-progress > .stepped-progress-step .stepped-progress-stepnum {
    font-size: 11px;
  }
  
  .stepped-progress > .stepped-progress-step .stepped-progress-info {
    font-size: 11px;
    margin-top: 6px;
  }
  
  .stepped-progress > .stepped-progress-step > .stepped-progress-dot {
    width: 20px;
    height: 20px;
  }
  
  .stepped-progress > .stepped-progress-step .dot-check input[type="radio"] {
    width: 16px;
    height: 16px;
  }
}

/* ============ 
   Page Progress
   =============*/

.page-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  min-height: 200px;
  width: 100%;
}

.page-progress form {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-progress .stepped-progress {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

/* Responsive adjustments for page-progress */
@media (max-width: 768px) {
  .page-progress {
    padding: var(--spacing-md) 0 30px 0 !important;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .page-progress.pl-30 {
    padding-left: 0 !important;
  }
  
  .page-progress form {
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-sm);
  }
  
  .page-progress .stepped-progress {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Override Bootstrap row behavior on mobile */
  .page-progress .stepped-progress.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .stepped-progress {
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Override Bootstrap col behavior on mobile */
  .stepped-progress > .stepped-progress-step.col {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  .stepped-progress > .stepped-progress-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    min-height: 60px;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .page-progress {
    padding: var(--spacing-lg) var(--spacing-md) 20px var(--spacing-md);
    min-height: 180px;
  }
}

@media (max-width: 576px) {
  .page-progress {
    padding: var(--spacing-xs);
    min-height: 120px;
  }
  
  .page-progress .stepped-progress-step {
    margin-bottom: var(--spacing-sm);
  }
}

/* file upload button */
.fileinput-button input { 
  position: absolute; 
  top: 0; 
  right: 0; 
  margin: 0; 
  opacity: 0; 
  filter: alpha(opacity=0); 
  -ms-filter: 'alpha(opacity=0)'; 
  cursor: pointer; 
}

/* ============ 
   Callouts
   =============*/

.callout { border: 1px solid #ddd; padding: 10px 10px 10px 20px; color: #fff; border-radius: 2px; }
.callout-body { padding: 5px 7px 0 2px; }
.callout-stage { font-size: 17px; }
.callout-amount { font-size: 24px; }
.callout-items { font-size: 13px; padding-top: 11px; }

/* ================= 
   Chart placeholders
   =================*/

.cross-hatched { width: 100%; height: 350px; position: relative; background: repeating-linear-gradient(135deg,#fff,#fff 10px,#f6f6f6 10px,#f6f6f6 20px); }
.dashed { border: 5px dashed #666; }

/* ============ 
   Datepicker
   =============*/

.datepicker { font-size: 13px; }
.datepicker td,
.datepicker th { text-align: center; width: 30px; height: 30px; }

.datepicker table tr td.active:hover,
.datepicker table tr td.active:hover:hover,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active.disabled:hover:hover,
.datepicker table tr td.active:active,
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active.disabled:active,
.datepicker table tr td.active.disabled:hover:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active,
.datepicker table tr td.active.disabled.active,
.datepicker table tr td.active.disabled:hover.active,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active:hover.disabled,
.datepicker table tr td.active.disabled.disabled,
.datepicker table tr td.active.disabled:hover.disabled,
.datepicker table tr td.active[disabled],
.datepicker table tr td.active:hover[disabled],
.datepicker table tr td.active.disabled[disabled],
.datepicker table tr td.active.disabled:hover[disabled] { background-color: #ADD8E6; color: #333; }

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover { background-color: #006dcc; background-image: none; filter: none; border-color: #00b3cc #00b3cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); }

.datepicker table tr td span.active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover { background-color: #006dcc; background-image: none; background-repeat: repeat-x; filter: none; border-color: #00b3cc #00b3cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: none; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); }

.datepicker table tr td span.active:hover,
.datepicker table tr td span.active:hover:hover,
.datepicker table tr td span.active.disabled:hover,
.datepicker table tr td span.active.disabled:hover:hover,
.datepicker table tr td span.active:active,
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active.disabled:active,
.datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.active,
.datepicker table tr td span.active:hover.active,
.datepicker table tr td span.active.disabled.active,
.datepicker table tr td span.active.disabled:hover.active,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active:hover.disabled,
.datepicker table tr td span.active.disabled.disabled,
.datepicker table tr td span.active.disabled:hover.disabled,
.datepicker table tr td span.active[disabled],
.datepicker table tr td span.active:hover[disabled],
.datepicker table tr td span.active.disabled[disabled],
.datepicker table tr td span.active.disabled:hover[disabled] { background-color: #ADD8E6; color: #333; }

/* ============ 
   Edit pages
   =============*/

.edit-title { font-size: 15px; text-transform: uppercase; border-bottom: 1px solid #ddd; padding: 6px; margin: 35px 0 25px 0; }

.edit-pane { background: #f7f8f8; padding: 25px; margin: 0; }
.edit-pane-row { background: white; padding: 30px 15px; margin: 0; }


/* ============ 
   Home page
   =============*/

.home-heading { 
  padding: 7px 0 10px 0; 
  font-size: 15px; 
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-primary);
  border-bottom: 1px solid var(--color-border-primary);
  margin-bottom: 15px;
}
.home-barchart { width: 100%; height: 350px; background-color: #f6f6f6; position: relative; }
.home-piechart-wrapper { position:relative; width: 100%; height: 350px; background-color: #f6f6f6; padding: 60px 100px 60px 20px; }
.home-piechart { width: 100%; height: 230px; background-color: #f6f6f6; }
.home-piechart-center { position: absolute; top: 45%; left: 40%; font-size: 27px; }

/* ============ 
   Misc
   =============*/

.no-break { white-space: nowrap; }
.width-45 { width: 45px !important; }

.percent { 
  overflow: visible; 
  position: absolute; 
  margin: 7px 2px; 
  padding: 3px 0 0 3px; 
  left: 0; 
  top: 0; 
  height: 24px; 
  background: linear-gradient(135deg, var(--color-brand-secondary), var(--color-brand-accent));
  border-radius: var(--radius-sm); 
  white-space: nowrap !important;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  will-change: width;
  transform: translateZ(0);
}

/* High probability (75% and above) - Green gradient */
.percent.high-probability {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* Medium probability (25% to 74%) - Yellow/Orange gradient */
.percent.medium-probability {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

/* Low probability (0% to 24%) - Red gradient */
.percent.low-probability {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.percent.animate {
  width: var(--target-width);
}

/* Activities time line */

.timeline { position: relative; width: 50px; }
.timeline::before { /* this is the vertical line */ content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: 3px; background: #b6ccdc; min-height: 28px; }

/* Center activity icons above timeline */
.width-50 {
  text-align: center;
}

.width-50 > div:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 20px;
}

/* ============ 
   Chartist customization
   =============*/

.ct-line { fill: none; stroke-width: 2px; }
.ct-series-a .ct-point, .ct-series-a .ct-line, .ct-series-a .ct-bar, .ct-series-a .ct-slice-donut { stroke: var(--color-chart-primary); }
.ct-series-a .ct-slice-pie, .ct-series-a .ct-slice-donut-solid, .ct-series-a .ct-area { fill: var(--color-chart-primary); }
.ct-series-b .ct-point, .ct-series-b .ct-line, .ct-series-b .ct-bar, .ct-series-b .ct-slice-donut { stroke: var(--color-chart-secondary); }
.ct-series-b .ct-slice-pie, .ct-series-b .ct-slice-donut-solid, .ct-series-b .ct-area { fill: var(--color-chart-secondary); }
.ct-series-c .ct-point, .ct-series-c .ct-line, .ct-series-c .ct-bar, .ct-series-c .ct-slice-donut { stroke: var(--color-chart-tertiary); }
.ct-series-c .ct-slice-pie, .ct-series-c .ct-slice-donut-solid, .ct-series-c .ct-area { fill: var(--color-chart-tertiary); }
.ct-series-d .ct-point, .ct-series-d .ct-line, .ct-series-d .ct-bar, .ct-series-d .ct-slice-donut { stroke: #ffd454; }
.ct-series-d .ct-slice-pie, .ct-series-d .ct-slice-donut-solid, .ct-series-d .ct-area { fill: #ffd454; }
.ct-series-e .ct-point, .ct-series-e .ct-line, .ct-series-e .ct-bar, .ct-series-e .ct-slice-donut { stroke: #ffbb00; }
.ct-series-e .ct-slice-pie, .ct-series-e .ct-slice-donut-solid, .ct-series-e .ct-area { fill: #ffbb00; }
.ct-series-f .ct-point, .ct-series-f .ct-line, .ct-series-f .ct-bar, .ct-series-f .ct-slice-donut { stroke: #ff9190; }
.ct-series-f .ct-slice-pie, .ct-series-f .ct-slice-donut-solid, .ct-series-f .ct-area { fill: #ff9190; }
.ct-series-g .ct-point, .ct-series-g .ct-line, .ct-series-g .ct-bar, .ct-series-g .ct-slice-donut { stroke: #4dbd74; }
.ct-series-g .ct-slice-pie, .ct-series-g .ct-slice-donut-solid, .ct-series-g .ct-area { fill: #4dbda5; }
.ct-series-h .ct-point, .ct-series-h .ct-line, .ct-series-h .ct-bar, .ct-series-h .ct-slice-donut { stroke: #e83e8c; }
.ct-series-h .ct-slice-pie, .ct-series-h .ct-slice-donut-solid, .ct-series-h .ct-area { fill: #e83e8c; }
.ct-series-i .ct-point, .ct-series-i .ct-line, .ct-series-i .ct-bar, .ct-series-i .ct-slice-donut { stroke: #6f42c1; }
.ct-series-i .ct-slice-pie, .ct-series-i .ct-slice-donut-solid, .ct-series-i .ct-area { fill: #6f42c1; }
.ct-series-j .ct-point, .ct-series-j .ct-line, .ct-series-j .ct-bar, .ct-series-j .ct-slice-donut { stroke: #20c997; }
.ct-series-j .ct-slice-pie, .ct-series-j .ct-slice-donut-solid, .ct-series-j .ct-area { fill: #20c997; }
.ct-series-k .ct-point, .ct-series-k .ct-line, .ct-series-k .ct-bar, .ct-series-k .ct-slice-donut { stroke: #ABDCF4; }
.ct-series-k .ct-slice-pie, .ct-series-k .ct-slice-donut-solid, .ct-series-k .ct-area { fill: #ABDCF4; }
.ct-series-l .ct-point, .ct-series-l .ct-line, .ct-series-l .ct-bar, .ct-series-l .ct-slice-donut { stroke: #4759D7; }
.ct-series-l .ct-slice-pie, .ct-series-l .ct-slice-donut-solid, .ct-series-l .ct-area { fill: #4759D7; }
.ct-series-m .ct-point, .ct-series-m .ct-line, .ct-series-m .ct-bar, .ct-series-m .ct-slice-donut { stroke: #262566; }
.ct-series-m .ct-slice-pie, .ct-series-m .ct-slice-donut-solid, .ct-series-m .ct-area { fill: #262566; }
.ct-series-n .ct-point, .ct-series-n .ct-line, .ct-series-n .ct-bar, .ct-series-n .ct-slice-donut { stroke: #00659A; }
.ct-series-n .ct-slice-pie, .ct-series-n .ct-slice-donut-solid, .ct-series-n .ct-area { fill: #00659A; }
.ct-series-o .ct-point, .ct-series-o .ct-line, .ct-series-o .ct-bar, .ct-series-o .ct-slice-donut { stroke: #00CFFF; }
.ct-series-o .ct-slice-pie, .ct-series-o .ct-slice-donut-solid, .ct-series-o .ct-area { fill: #00CFFF; }

/* chart and legend styles */

.ct-chart { position: relative; }
.ct-legend { position: relative; z-index: 10; list-style: none; text-align: center; }
.ct-legend li { position: relative; padding-left: 23px; margin-right: 25px; margin-bottom: 3px; cursor: default; text-align: left; display: inline-block; font-size: 11px; }
.ct-legend li:before { width: 12px; height: 12px; position: absolute; left: 0; content: ''; border: 3px solid transparent; border-radius: 2px; }
.ct-legend li.inactive:before { background: transparent; }
.ct-legend.ct-legend-inside { position: absolute; top: 70px; right: 40px; }
.ct-legend.ct-legend-inside li { display: block; margin: 0; }
.ct-legend .ct-series-0:before { background-color: var(--color-chart-primary); border-color: var(--color-chart-primary); }
.ct-legend .ct-series-1:before { background-color: var(--color-chart-secondary); border-color: var(--color-chart-secondary); }
.ct-legend .ct-series-2:before { background-color: var(--color-chart-tertiary); border-color: var(--color-chart-tertiary); }
.ct-legend .ct-series-3:before { background-color: #ffd454; border-color: #ffd454; }
.ct-legend .ct-series-4:before { background-color: #ffbb00; border-color: #ffbb00; }
.ct-legend .ct-series-5:before { background-color: #ff9190; border-color: #ff9190; }
.ct-legend .ct-series-6:before { background-color: #4dbd74; border-color: #4dbd74; }
.ct-legend .ct-series-7:before { background-color: #e83e8c; border-color: #e83e8c; }

/* Mobile and tablet chart legend overrides */
@media (max-width: 991px) {
    .ct-legend.ct-legend-inside {
        top: auto !important;
    }
}

/* ============ 
   Header Navigation Styles
   =============*/

.main-menu {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-4);
  align-items: center;
  min-height: var(--space-14);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.brand-logo {
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: var(--space-1);
}

.nav-menu .nav-item {
  margin: 0;
}

.nav-menu .nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: var(--transition-colors);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.nav-menu .nav-link:hover {
  color: var(--color-brand-primary);
  background-color: var(--color-brand-50);
  text-decoration: none;
}

.nav-menu .nav-link.active {
  color: var(--color-brand-primary);
  background-color: var(--color-brand-100);
  font-weight: var(--font-weight-semibold);
}

.action-menu-item {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
}

.action-button {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

/* Ensure equal horizontal spacing between action items and avatar in the header */
.main-menu > .d-none.d-lg-flex {
  gap: var(--space-2);
}

/* Make the avatar container follow the same internal padding and alignment */
.user-menu {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
}

/* Reset legacy avatar wrapper sizing in the header context */
.main-menu .avatar-wrapper {
  width: auto;
  margin: 0;
  text-align: initial;
}

.action-circle {
  background: var(--color-brand-primary);
  border-radius: var(--radius-full);
  width: var(--space-8);
  height: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reset legacy line-height/padding from earlier .action-circle rule */
  padding: 0;
  line-height: 1;
  transition: var(--transition-colors), transform 120ms ease;
}

.action-circle:hover {
  background: var(--color-brand-secondary);
  transform: scale(1.05);
}

/* Ensure the icon inside stays optically centered */
.action-circle i {
  line-height: 1;
  display: inline-block;
}

.avatar {
  background: var(--color-brand-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  width: var(--space-8);
  height: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reset legacy padding/line-height to keep content centered */
  padding: 0;
  line-height: 1;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-lg {
  background: var(--color-brand-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  width: var(--space-12);
  height: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reset legacy padding/line-height to keep content centered */
  padding: 0;
  line-height: 1;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.user-menu .dropdown-menu {
  min-width: 280px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.user-info {
  padding: var(--space-3) !important;
  border-radius: var(--radius-md);
  background: var(--color-background-secondary);
}

.user-avatar-container {
  padding: var(--space-1) var(--space-2) var(--space-1) 0;
}

.user-details {
  padding: var(--space-1) 0;
}

.user-email {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* ============ 
   Callout Variants
   =============*/

.callout-primary {
  background: var(--color-brand-primary) !important;
}

.callout-success {
  background: var(--color-success) !important;
}

.callout-danger {
  background: var(--color-error) !important;
}

.callout-warning {
  background: var(--color-warning) !important;
}

/* ============ 
   Authentication Styles
   =============*/

.auth-container {
  background: var(--color-background-secondary);
  /* display: flex; */
  min-height: 100vh;
}

@media (max-width: 576px) {
  .auth-container {
    flex-direction: column;
  }
}

.auth-form-section {
  /* width: 50%; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-8);
  min-height: 500px;
}

@media (max-width: 576px) {
  .auth-form-section {
    width: 100%;
  }
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-16);
}

.auth-logo-img {
  padding-top: var(--space-10);
  padding-bottom: var(--space-16);
}

.auth-form-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-help-icon {
  text-align: center;
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.form-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-error);
}

.auth-submit-btn {
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--font-weight-semibold);
}

.auth-forgot-link {
  margin-top: var(--space-4);
  text-align: center;
}

.auth-forgot-link a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.auth-forgot-link a:hover {
  text-decoration: underline;
}

.external-auth {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.auth-external-btn {
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
}

.auth-hero-section {
  margin-left: auto;
  width: 50%;
  padding: var(--space-5);
  height: 725px;
  background: url(/img/login.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-16);
}

@media (max-width: 576px) {
  .auth-hero-section {
    width: 100%;
    height: 300px;
  }
}

.auth-hero-title {
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
}

/* ============ 
   Admin Panel Styles
   =============*/

.admin-actions-panel {
  padding: var(--space-5);
  background: var(--color-background-secondary);
  margin: var(--space-8);
  height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.admin-action-item {
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.admin-action-btn {
  width: 70px;
  font-weight: var(--font-weight-medium);
}

.admin-action-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* ============ 
   Landing Page Styles
   =============*/

.landing-hero {
  background: url(/img/landing.jpg) no-repeat;
  background-position: left;
  background-size: cover;
}

.landing-hero-content {
  padding-top: var(--space-8);
  padding-left: var(--space-11);
  color: var(--color-brand-primary);
}

.landing-hero-content h3 {
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-primary);
}

/* ============ 
   Responsive Utilities
   =============*/

.visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; }
.hidden-xs, .hidden-sm, .hidden-md, .hidden-lg { display: block !important; }

/* Mobile (up to 576px) */
@media (max-width: 575.98px) {
  .visible-xs { display: block !important; }
  .hidden-xs { display: none !important; }
}

/* Tablet Portrait (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .visible-sm { display: block !important; }
  .hidden-sm { display: none !important; }
}

/* Tablet Landscape (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .visible-md { display: block !important; }
  .hidden-md { display: none !important; }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
  .visible-lg { display: block !important; }
  .hidden-lg { display: none !important; }
}

/* Mobile-First Responsive Table to Card Conversion */
@media (max-width: 768px) {
  /* Hide table headers and restructure table data */
  .table,
  .table thead,
  .table tbody,
  .table th,
  .table td,
  .table tr {
    display: block;
  }

  .table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table tr {
    border: 1px solid var(--color-border-primary);
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-background-primary);
    box-shadow: var(--shadow-sm);
    position: relative;
  }

  /* Hide the header row on mobile */
  .table tr.bg-light,
  .table tr:first-child {
    display: none !important;
  }

  .table td {
    border: none;
    position: relative;
    padding: var(--space-3) 0 !important;
    display: block;
    border-bottom: 1px solid var(--color-border-primary);
    word-wrap: break-word;
  }

  .table td:last-child {
    border-bottom: none;
    padding-top: var(--space-3) !important;
    margin-top: var(--space-2);
    text-align: left !important;
  }

  /* Style the first cell as the card title */
  .table tr td:first-child {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border-primary);
    padding-bottom: var(--space-3) !important;
    margin-bottom: var(--space-3);
  }

  .table tr td:first-child a {
    color: var(--color-interactive-primary);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
  }

  .table tr td:first-child a:hover {
    text-decoration: underline;
  }

  /* Other cells get smaller, secondary styling */
  .table tr td:not(:first-child):not(:last-child) {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0 !important;
  }

  /* Action buttons styling for mobile cards */
  .table td:last-child .btn {
    display: inline-block;
    margin-right: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-3);
  }

  .table td:last-child .btn:last-child {
    margin-right: 0;
  }

  /* Probability bar adjustments for mobile */
  .table td .percent {
    position: relative;
    top: auto;
    left: auto;
    margin: var(--space-1) 0;
    display: inline-block;
    min-width: 60px;
  }

  /* General mobile optimizations */
  .container-fluid {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .page-box {
    margin: var(--space-3) 0;
    padding: var(--space-3);
  }

  .btn-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-toolbar .btn {
    margin-bottom: var(--space-2);
    width: 100%;
  }

  .page-header {
    padding: var(--space-3) 0;
  }

  .page-header h1 {
    font-size: var(--font-size-xl);
  }

  /* Hide "no items" message styling on mobile for better appearance */
  .table .no-items {
    text-align: center;
    padding: var(--space-8) var(--space-4) !important;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
  }
}

/* Corporate Template Styles for Landing Page */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.header-float {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header .container {
    align-items: center;
    padding: 1rem 15px;
}

.header-logo .logo-link {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.header-logo .logo {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-right: 8px;
}

.header-nav {
    display: flex;
    margin-left: auto;
    margin-right: 2rem;
}

.header-nav .container {
    display: flex;
    padding: 0;
}

.header-nav-item {
    margin: 0 1rem;
}

.header-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav-link:hover {
    color: #667eea;
}

.header-btn .btn {
    padding: 0.5rem 1.5rem;
}

.header-mobile-nav-toggler {
    display: none;
    background: transparent;
    border: none;
    color: #333 !important;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 100;
}

.header-mobile-nav-toggler span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333 !important;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.header-mobile-nav-toggler.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.header-mobile-nav-toggler.active span:nth-child(2) {
    opacity: 0;
}

.header-mobile-nav-toggler.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.header-mobile-nav-toggler:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.section {
    position: relative;
}

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.section-bg.with-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-hero .container {
    z-index: 2;
}

.section-hero-content {
    padding: 6rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    color: #667eea;
    border-bottom-color: #667eea;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .header-mobile-nav-toggler {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-hero-content {
        padding: 4rem 0;
        text-align: center;
    }
    
    .section-hero {
        min-height: 80vh;
    }
}

/* Extend the tablet breakpoint for hamburger menu */
@media (max-width: 991px) {
    .header-nav {
        display: none;
    }
    
    .header-mobile-nav-toggler {
        display: flex;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
}

/* Landing Page Contact and Footer Styles */
.contact-item {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

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

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Template Footer Styles */
.footer {
    background: #f8f9fa;
    padding: 4rem 0 1rem;
    border-top: 1px solid #e9ecef;
}

/* Center footer content in viewport */
.footer .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.footer .row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.footer-desc {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 0.25rem;
}

.footer-link-list a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-link-list a:hover {
    color: #667eea;
}

.footer-media-list {
    display: flex;
    gap: 0.25rem;
}

.footer-media-list a {
    color: #6c757d;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-media-list a:hover {
    color: #667eea;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #e9ecef;
    /*background-color: #f8f9fa;*/
}

/* Sticky footer specific styling */
body.sticky-footer-layout .footer-copyright {
    margin-top: 0;
}

/* Footer alignment with header */
.footer-copyright .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.footer-copyright .row {
    margin-left: 0;
    margin-right: 0;
}

/* Responsive footer alignment */
@media (max-width: 768px) {
    .footer-copyright .col-md-6[style*="padding-left: var(--space-4)"] {
        padding-left: var(--space-3) !important;
        padding-right: var(--space-1) !important;
    }
    
    .footer-copyright .col-md-6[style*="padding-right: var(--space-4)"] {
        padding-left: var(--space-1) !important;
        padding-right: var(--space-3) !important;
    }
}

.footer-copyright .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.footer-copyright .row {
    margin-left: 0;
    margin-right: 0;
}

.footer-copyright .col-lg-6 {
    padding-left: 0;
    padding-right: 0;
}

.footer-copyright-text {
    color: #6c757d;
    font-size: 0.8125rem;
    text-align: left;
    margin-left: 0;
}

.footer-copyright .text-lg-end {
    text-align: right !important;
    margin-right: 0;
}

.footer-copyright-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

.footer-copyright-link:hover {
    color: #667eea;
}

.text-gray-600 {
  color: var(--color-text-secondary) !important;
}

/* Landing readability across light/dark modes */
.landing-section,
#features,
#contact,
.section {
  color: var(--color-text-primary);
}

.landing-section p,
.landing-section .text-muted,
#features .text-gray-600,
.section .text-gray-600,
.section .fw-bold.text-gray-600,
.section .card .fw-bold.text-gray-600 {
  color: var(--color-text-secondary) !important;
}

.landing-section .card,
.section .card {
  background-color: var(--color-background-primary);
  border-color: var(--color-border-primary);
}

.landing-section .card .card-title,
.landing-section .card h3,
.landing-section .card h4,
.section .card h4 {
  color: var(--color-text-primary) !important;
}

.footer hr {
    opacity: 0.2;
    margin: 1rem 0;
}

@media (max-width: 1200px) {
    .footer .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .footer .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer .container {
        max-width: 540px;
    }
    
    .footer-copyright {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .footer-copyright .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer-copyright .col-lg-6 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-copyright-text {
        text-align: center !important;
    }
    
    .footer-copyright .text-lg-end {
        text-align: center !important;
    }
    
    .footer-media-list {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo-text {
        font-size: 1.125rem;
    }
    
    .footer-desc {
        font-size: 0.8125rem;
    }
    
    .footer-title {
        font-size: 0.875rem;
    }

    /* Center content on mobile */
    .footer .col-lg-3 {
        text-align: center;
    }

    .footer-link-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .footer .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Remove old landing footer styles */

@media (max-width: 768px) {
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-links {
        text-align: center;
    }
}

/* Home page button consistency */
.home-table-container .btn {
  border-radius: var(--radius-button);
  text-align: center;
  font-weight: 500;
}

.home-table-container .btn-xs {
  border-radius: var(--radius-button);
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.home-table-container .btn-sm {
  border-radius: var(--radius-button);
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.home-table-container .btn-light {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  color: #495057;
  transition: all 0.15s ease-in-out;
}

.home-table-container .btn-light:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile card action buttons for home page */
@media (max-width: 768px) {
  .home-table-container .mobile-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
  }
  
  .home-table-container .mobile-card-actions .btn {
    border-radius: var(--radius-button);
    font-size: 12px;
    padding: 6px 12px;
    min-width: 60px;
  }
}

/* Global mobile card layout for all tables except home page */
@media (max-width: 768px) {
  /* Hide entire table structure on mobile for all tables except home */
  .table-responsive:not(.home-table-container) table,
  .page-box .table:not(.home-table-container table) {
    display: none !important;
  }
  
  .table-responsive:not(.home-table-container) thead,
  .table-responsive:not(.home-table-container) tbody,
  .table-responsive:not(.home-table-container) th,
  .table-responsive:not(.home-table-container) td,
  .table-responsive:not(.home-table-container) tr,
  .page-box .table:not(.home-table-container table) thead,
  .page-box .table:not(.home-table-container table) tbody,
  .page-box .table:not(.home-table-container table) th,
  .page-box .table:not(.home-table-container table) td,
  .page-box .table:not(.home-table-container table) tr {
    display: none !important;
  }
  
  /* Show mobile cards container for all tables except home */
  .table-responsive:not(.home-table-container) .table-mobile-cards,
  .page-box:not(.home-table-container) .table-mobile-cards {
    display: block !important;
  }
  
  /* Global mobile card styling for all tables except home */
  .table-responsive:not(.home-table-container) .mobile-card,
  .page-box:not(.home-table-container) .mobile-card {
    display: block !important;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-header,
  .page-box:not(.home-table-container) .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-title,
  .page-box:not(.home-table-container) .mobile-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    line-height: 1.4;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-number,
  .page-box:not(.home-table-container) .mobile-card-number {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-left: 12px;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-body,
  .page-box:not(.home-table-container) .mobile-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-field,
  .page-box:not(.home-table-container) .mobile-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-label,
  .page-box:not(.home-table-container) .mobile-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-value,
  .page-box:not(.home-table-container) .mobile-card-value {
    font-size: 14px;
    color: #212529;
    font-weight: 400;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-value.text-success,
  .page-box:not(.home-table-container) .mobile-card-value.text-success {
    color: #198754 !important;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-value.text-danger,
  .page-box:not(.home-table-container) .mobile-card-value.text-danger {
    color: #dc3545 !important;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-value.text-warning,
  .page-box:not(.home-table-container) .mobile-card-value.text-warning {
    color: #fd7e14 !important;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-actions,
  .page-box:not(.home-table-container) .mobile-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
  }
  
  .table-responsive:not(.home-table-container) .mobile-card-actions .btn,
  .page-box:not(.home-table-container) .mobile-card-actions .btn {
    border-radius: var(--radius-button);
    font-size: 12px;
    padding: 6px 12px;
    min-width: 60px;
    flex: 0 0 auto;
  }
}

/* Hide mobile cards on desktop for all tables except home */
@media (min-width: 769px) {
  .table-responsive:not(.home-table-container) .table-mobile-cards,
  .page-box:not(.home-table-container) .table-mobile-cards {
    display: none !important;
  }
}

/* ==================== MOBILE TAB PANEL STYLES ==================== */

/* Mobile styles for details tab panel */
@media (max-width: 768px) {
  .tab-pane#details .tab-pane-row {
    padding: 15px 10px;
  }
  
  .tab-pane#details .col-12.col-sm-6 {
    margin-bottom: 20px;
  }
  
  .tab-pane#details .col-12.col-sm-6:last-child {
    margin-bottom: 0;
  }
  
  /* Style output fields for better mobile display */
  .tab-pane#details .form-group {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary-600);
  }
  
  /* Tighten spacing between label and text */
  .tab-pane#details .form-group .col-form-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 3px;
    padding-bottom: 0;
    line-height: 1.2;
  }
  
  .tab-pane#details .form-group .col-form-text,
  .tab-pane#details .form-group .col-form-checkbox {
    padding-top: 0;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .tab-pane#details .form-group .form-control-plaintext {
    font-size: 14px;
    padding: 0;
    min-height: auto;
    line-height: 1.4;
  }
  
  .tab-pane#details .form-group a {
    color: var(--color-primary-600);
    text-decoration: none;
    font-weight: 500;
  }
  
  .tab-pane#details .form-group a:hover {
    text-decoration: underline;
  }
}

/* Tablet styles for details tab panel */
@media (min-width: 769px) and (max-width: 991px) {
  .tab-pane#details .tab-pane-row {
    padding: 20px 15px;
  }
  
  .tab-pane#details .form-group {
    margin-bottom: 18px;
  }
  
  /* Tighten spacing between label and text for tablet */
  .tab-pane#details .form-group .col-form-label {
    margin-bottom: 4px;
    padding-bottom: 0;
    line-height: 1.3;
  }
  
  .tab-pane#details .form-group .col-form-text,
  .tab-pane#details .form-group .col-form-checkbox {
    padding-top: 0;
    margin-top: 0;
  }
}

/* ==================== ACTIVITY TAB DESKTOP STYLES ==================== */

/* Desktop activity table beautification */
.tab-pane#activity .table-borderless {
  margin-bottom: 25px;
}

.tab-pane#activity .table-borderless tr {
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f1f3f4;
}

.tab-pane#activity .table-borderless tr:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
  background: #fafbfc;
}

.tab-pane#activity .table-borderless td {
  border: none !important;
  vertical-align: top;
  padding: 18px 15px !important;
}

.tab-pane#activity .table-borderless td.width-50 {
  width: 60px;
  padding: 18px 10px !important;
  border-right: 1px solid #f1f3f4;
}

.tab-pane#activity .table-borderless td.width-140 {
  width: 160px;
  padding: 18px 15px !important;
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}

/* Activity content styling */
.tab-pane#activity .pt-3 {
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  margin-bottom: 10px;
  line-height: 1.4;
}

.tab-pane#activity .activity-text {
  font-size: 14px;
  color: #495057;
  line-height: 1.5;
  margin-bottom: 6px;
}

.tab-pane#activity .activity-text:last-child {
  margin-bottom: 0;
}

.tab-pane#activity .activity-text a {
  color: var(--color-primary-600);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.tab-pane#activity .activity-text a:hover {
  border-bottom-color: var(--color-primary-600);
}

/* Activity icons styling */
.tab-pane#activity .width-50 i {
  font-size: 18px;
  color: var(--color-primary-600);
  margin-bottom: 8px;
  display: inline-block;
}

/* Section headers beautification */
.tab-pane#activity .font-weight-bold {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  /* margin: 35px 0 20px 0; */
  padding: 12px 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary-600);
  position: relative;
}

.tab-pane#activity .font-weight-bold::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary-600);
  border-radius: 50%;
}

/* Empty state beautification */
.tab-pane#activity .font-italic {
  font-size: 14px;
  color: #6c757d;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 25px;
  border: 2px dashed #dee2e6;
  font-style: italic;
}

/* ==================== MOBILE ACTIVITY TAB STYLES ==================== */

/* Mobile styles for activity tab panel */
@media (max-width: 768px) {
  /* Activity tab main container */
  .tab-pane#activity {
    padding: 10px;
  }
  
  /* Convert activity tables to cards */
  .tab-pane#activity .table-borderless {
    display: block !important;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    border-left: 4px solid var(--color-primary-600);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .tab-pane#activity .table-borderless tr,
  .tab-pane#activity .table-borderless td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
  }
  
  /* Activity icon and timeline styling */
  .tab-pane#activity .width-50 {
    text-align: left;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .tab-pane#activity .width-50 i {
    font-size: 18px;
    color: var(--color-primary-600);
    width: 20px;
    text-align: center;
  }
  
  /* Hide timeline visual on mobile */
  .tab-pane#activity .timeline {
    display: none;
  }
  
  /* Activity subject styling */
  .tab-pane#activity .pt-3 {
    font-weight: 600;
    font-size: 15px;
    color: #212529;
    margin-bottom: 8px;
    padding-top: 0 !important;
  }
  
  /* Activity content */
  .tab-pane#activity .activity-text {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #495057;
  }
  
  .tab-pane#activity .activity-text:last-child {
    margin-bottom: 12px;
  }
  
  /* Activity links styling */
  .tab-pane#activity .activity-text a {
    color: var(--color-primary-600);
    text-decoration: none;
    font-weight: 500;
  }
  
  .tab-pane#activity .activity-text a:hover {
    text-decoration: underline;
  }
  
  /* Date display */
  .tab-pane#activity .width-140 {
    text-align: left !important;
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    font-weight: 500;
    padding-top: 8px !important;
    border-top: 1px solid #e9ecef;
  }
  
  /* Nested activity tabs */
  .tabs-activity {
    margin-left: 5px;
    margin-top: 15px;
    margin-bottom: 20px;
  }
  
  .nav-tabs-activity {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  
  .nav-tabs-activity .nav-item {
    flex-shrink: 0;
    margin-right: 10px;
    white-space: nowrap;
  }
  
  .nav-tabs-activity .nav-link {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
  }
  
  /* Activity forms mobile optimization */
  .tab-pane#activity .form-group {
    margin-bottom: 15px;
  }
  
  .tab-pane#activity .form-group .col-form-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 4px;
    padding-bottom: 0;
  }
  
  .tab-pane#activity .form-group .col-sm-8 {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Section headers */
  .tab-pane#activity .font-weight-bold {
    font-size: 14px;
    color: #495057;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 3px solid var(--color-primary-600);
  }
  
  /* Empty state messages */
  .tab-pane#activity .font-italic {
    font-size: 13px;
    color: #6c757d;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
  }
}

/* Tablet styles for activity tab panel */
@media (min-width: 769px) and (max-width: 991px) {
  .tab-pane#activity {
    padding: 15px;
  }
  
  .tab-pane#activity .table-borderless {
    margin-bottom: 20px;
  }
  
  .tabs-activity {
    margin-left: 10px;
    margin-top: 25px;
  }
  
  .nav-tabs-activity .nav-item {
    margin-right: 15px;
  }
  
  .tab-pane#activity .form-group .col-form-label {
    font-size: 14px;
    margin-bottom: 5px;
  }
}
