:root {
  --brand-color: #0080c2;
  --primary-color: #0080c2;
  --base-color: #0c2b45;
  --base-border-radius: 8px;
  --base-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --font-14: 14px;
  --base-border: 1px solid #e3e6eb;
  --base-box-shadow: 0px 1px 1px 1px rgb(16 24 40 / 2%);
  --color-gray-50: oklch(98.5% .002 247.839);
  --color-gray-100: oklch(96.7% .003 264.542);
  --color-gray-300: oklch(87.2% .01 258.338);
  --color-gray-400: oklch(70.7% .022 261.325);
  --color-gray-500: oklch(55.1% .027 264.364);
  --color-gray-600: oklch(44.6% .03 256.802);
  --color-gray-900: oklch(21% .034 264.665);
  --color-gray-950: oklch(13% .028 261.692);
  --spacing: .25rem;
}

body {
    color: var(--base-color);
    font-family: 'Inter',-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* text styles */
.text-primary {
    color: #0080c2!important;
}

.border-primary {
    color: #0080c2!important;
}

/* buttons and links */
button:not(.form-check-input):not(.btn-unstyled),
.btn:not(.form-check-input), 
.button:not(.form-check-input) {
  border: var(--base-border);
  color: var(--base-color);
  border-radius: var(--base-border-radius);
  padding: 8px 14px;
  font-size: var(--font-14);
  background: #fff;
  font-weight: 500;
  transition: 0.4s;
  text-wrap: nowrap;
  text-align: center;
  /* box-shadow: var(--base-box-shadow); */
}

.btn,
a,
.button {
  cursor: pointer;
}

.btn-small, .btn-sm {
  padding: 6px 12px;
  font-size: var(--font-13);
}

.btn-round {
  border-radius: 50px;
}

.btn-unstyled {
  /* Remove all background styling */
  background: none;
  background-color: transparent;
  
  /* Remove borders and outline */
  border: none;
  outline: none;
  
  /* Remove padding and margins */
  padding: 0;
  margin: 0;
  
  /* Remove any text decoration */
  text-decoration: none;
  
  /* Reset font properties */
  font: inherit;
  color: inherit;
  
  /* Remove any shadow */
  box-shadow: none;
  
  /* Remove rounded corners */
  border-radius: 0;
  
  /* Ensure proper cursor */
  cursor: pointer;
  
  /* Remove min-width/height if any */
  min-width: 0;
  min-height: 0;
  
  /* Prevent text selection */
  user-select: none;
  
  /* Reset alignment */
  text-align: inherit;
  
  /* Ensure button text aligns with other text */
  vertical-align: baseline;
  
  /* Remove webkit appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Handle focus state for accessibility */
.btn-unstyled:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Remove default touch highlight on mobile */
.btn-unstyled {
  -webkit-tap-highlight-color: transparent;
}

a.unstyled {
  text-decoration: none;
  color: inherit;
}



.btn-primary {
    background-color: var(--brand-color)!important; 
    color: #ffffff!important;   
    border-color: var(--brand-color)!important; 
}

.btn-grey {
  background-color: #F3F3F3;
  color: var(--base-color);
}

.btn-dark-grey {
  background-color: var(--dark-grey);
  color: #fff;
  border:1px solid var(--dark-grey);
}

.btn-danger {
  background-color: #D92D20;
  color: #fff;
  border:1px solid #D92D20;
}

button:not(.form-check-input):hover, 
.btn:not(.form-check-input):hover {
  background-color: #fff;
  color: var(--brand-color);
  border: var(--base-border);
}   

.btn-primary:hover {
  background-color: #fff;
  color: var(--brand-color); 
  border-color: var(--brand-color);
}

.btn-white {
  background-color: #fff;
  color: var(--base-color);
  border:var(--base-border);
  box-shadow: var(--base-box-shadow);
  box-shadow:none;
}

.btn-white:hover {
  background-color: #F3F3F3;
  border:1px solid transparent;
  color: var(--base-color);
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
  color: var(--brand-color);
  border-color: var(--brand-color);
  background-color: #fff;
}

.close-btn {
  background-color: var(--offwhite);
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: flex;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.container-fluid {
    max-width: 1300px;
}

.container {
    max-width: 1200px;
}

/* Navigation Styles */
.custom-navbar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    max-width: 1400px;
    margin: auto;
}

.customer-nav > .nav-container {
    max-width: 800px;
}


.nav-right {
    margin-left: auto;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
    transition: color 0.15s ease;
}

.nav-brand:hover {
    color: #3b82f6;
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
}

.brand-logo {
    width: 100px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s ease;
    font-size: 14px;
}

.nav-link:hover {
    color: #3b82f6;
    background-color: #f8f9fa;
    text-decoration: none;
}

.nav-link.active {
    color: #3b82f6;
    background-color: #eff6ff;
}

.nav-link i {
    width: 16px;
    height: 16px;
}

/* Settings Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.dropdown-arrow {
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.15s ease;
}

.nav-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
    z-index: 1000;
    margin-top: 4px;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
    border-radius: 6px;
    margin: 4px;
}

.nav-dropdown-item:hover {
    color: #3b82f6;
    background-color: #f8f9fa;
    text-decoration: none;
}

.nav-dropdown-item.active {
    color: #3b82f6;
    background-color: #eff6ff;
}

.nav-dropdown-item i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    margin-bottom: 8px;
}

.mobile-dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease;
    background-color: #f1f5f9;
    border-radius: 8px;
    margin-top: 8px;
}

.mobile-dropdown-menu.show {
    max-height: 200px;
    padding: 8px 0;
}

.mobile-dropdown .nav-dropdown-item {
    padding: 12px 20px;
    margin: 2px 8px;
    background-color: transparent;
    border-radius: 6px;
}

.mobile-dropdown .nav-dropdown-item:hover {
    background-color: #e2e8f0;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    /* background-color: #f8f9fa; */
    transition: background-color 0.15s ease;
}

.user-info:hover {
    background-color: #f3f4f6;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: capitalize;
    line-height: 1;
}

.user-role.admin {
    background-color: #fef2f2;
    color: #dc2626;
}

.user-role.manager {
    background-color: #fef3c7;
    color: #d97706;
}

.user-role.staff {
    background-color: #f0f9ff;
    color: #0369a1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-logout:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.nav-login {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
}

.nav-login:hover {
    background-color: #2563eb;
    text-decoration: none;
    color: white;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #374151;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.mobile-nav-links .nav-link {
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    justify-content: center;
}

.mobile-user-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #fef2f2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mobile-logout-btn:hover {
    background-color: #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-right .user-info {
        display: none;
    }
    
    .nav-right .nav-logout {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-brand {
        font-size: 16px;
    }
    
    .logo-container {
        width: 36px;
        height: 36px;
    }
    
    .custom-navbar {
        position: relative;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-brand {
        font-size: 15px;
        gap: 8px;
    }
    
    .logo-container {
        width: 32px;
        height: 32px;
    }
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

.table-wrapper {
    overflow-x: auto;
    min-height: 400px;
}

.alert {
    background-color: #f9f9f9;
    border:none;
    /* font-weight: 500; */
    padding:12px;
    border-radius: var(--base-border-radius);
    color: var(--base-color);
    font-size: 14px;
}

/* Bootstrap table override for consistent design */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    min-width: 900px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    min-width: 900px;
}

.table thead,
.custom-table thead {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table th,
.custom-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 500;
    color: #6c757d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    white-space: nowrap;
}

.table td,
.custom-table td {
    padding: 16px 12px;
    border-top: 1px solid #f3f3f3;
    vertical-align: middle;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.table tbody tr,
.custom-table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover,
.custom-table tbody tr:hover {
    background-color: #f8f9fa !important;
}

/* Custom checkbox styling */
.customer-checkbox,
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    margin: 0;
}

.customer-checkbox:checked,
input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.customer-checkbox:checked::after,
input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.customer-checkbox:hover,
input[type="checkbox"]:hover {
    border-color: #9ca3af;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.user-email {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.status-pending, .status-submitted {
    background-color: #fff3cd;
    color: #856404;
}

.status-verified, .status-dd_confirmed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-paid, .status-paid_out {
    background-color: #cff4fc;
    color: #055160;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.product-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.product-bronze {
    background-color: #fef3e2;
    color: #92400e;
}

.product-silver {
    background-color: #f3f4f6;
    color: #374151;
}

.product-gold {
    background-color: #fef7cd;
    color: #92400e;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: #f8f9fa;
    color: #6c757d;
}

.action-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.delete-btn:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.checkbox-col {
    width: 40px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Toggle Button Styles */
.toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: #f8f9fa;
    color: #6c757d;
}

.toggle-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

.toggle-btn svg {
    transition: transform 0.15s ease;
}

/* Dropdown Content Styles */
.dropdown-content {
    display: none;
    background: #f3f3f3;
    padding: 0;
}

.dropdown-content.active {
    display: block;
}

.dropdown-details {
    padding: 24px;
}

.dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.detail-value.email {
    color: #6c757d;
    font-weight: 400;
}

.detail-value.amount {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

/* Audit Logs Styles */
.audit-logs-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.logs-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.audit-timeline {
    position: relative;
}

.audit-log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.audit-log-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-top: 6px;
    flex-shrink: 0;
}

.audit-log-success .audit-log-indicator {
    background-color: #059669;
}

.audit-log-warning .audit-log-indicator {
    background-color: #d97706;
}

.audit-log-danger .audit-log-indicator {
    background-color: #dc2626;
}

.audit-log-content {
    flex: 1;
}

.audit-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.audit-log-action {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.audit-log-time {
    font-size: 12px;
    color: #6c757d;
}

.audit-log-details {
    font-size: 13px;
    color: #6c757d;
}

.status-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.old-status, .new-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.old-status {
    background-color: #f3f4f6;
    color: #6b7280;
}

.no-logs {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.initial-log {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #6c757d;
}

/* Search and Filters Styles */
.search-filters {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6c757d;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9fafb;
    transition: all 0.15s ease;
}

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

/* Pagination Styles */
.pagination-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #f1f3f4;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    text-decoration: none;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #9ca3af;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 12px;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 12px 8px;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .avatar,
    .avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
}


/* cards */
.card {
    border: 1px solid #ededed;
    box-shadow: var(--base-box-shadow);
    border-radius: var(--base-border-radius);
  }s

  
#login-layout, .login-layout {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    margin-top:100px;
  /* Ensures the section takes at least the height of the viewport */
    max-width:380px;
    margin:auto;
}

/* Optional: Responsive adjustment */
@media (max-width: 992px) { /* Adjust based on your layout's needs */
    #login-layout {
        padding: 20px;
    }
}

/* Forms and inputs */

.form-row {
  border-bottom:1px solid #ededed;
  padding: 36px 0px 36px 0px;
}

@media (max-width:992px){
  .form-row {
    padding: 24px 0px 24px 0px;
  }
}

label {
  font-size:15px;
  font-weight:500;
  color: var(--color-gray-900);
}

.form-control, .form-select {
  box-shadow: var(--base-box-shadow);
  border:var(--base-border);
  border-radius: var(--base-border-radius);
  /* margin-bottom: 24px; */
}

.form-control:focus, .form-select:focus {
  color: var(--base-color);
  background-color: #fff;
  border-color: var(--brand-color);
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(0, 64, 255, 0.25);
}

/* Form Check Inputs (Checkboxes and Radio Buttons) */
.form-check-input {
  cursor: pointer;
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  appearance: none;
  color-adjust: exact;
  transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:active {
  filter: brightness(90%);
}

.form-check-input:focus {
  border-color: var(--brand-color);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 128, 194, 0.25);
}

.form-check-input:checked {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input.xl-form-check {
  width:20px;
  height:20px;
}

.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

.form-check-input:disabled {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}

.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
  opacity: 0.5;
}

/* Form Check Label */
.form-check-label {
  cursor: pointer;
}

/* Ensure form check wrapper doesn't interfere */
.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check .form-check-input {
  float: left;
  margin-left: -1.5em;
}

.form-check-inline {
  display: inline-block;
  margin-right: 1rem;
}

/* text styles */
.text-muted {
    color: var(--color-gray-600);
}

.fs-14 {
    font-size:14px;
    line-height: var(--spacing) * 6;
}

.fs-16 {
    font-size:16px;
    line-height: var(--spacing) * 6;
}

.fs-18 {    
    font-size:18px;
    line-height: var(--spacing) * 6;
}

.fs-20 {
    font-size:20px;
    line-height:1.5;
}

.fs-24 {
    font-size:24px;
    line-height:1.5;
}

.fs-28 {
    font-size:28px;
    line-height:1.5;
}

.fs-32 {
    font-size:32px;
    line-height:1.5;
}

.fs-36 {
    font-size:36px!important;
}

/* Referral Tracking Styles */
.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.15s ease;
    height: 100%;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f8f9fa;
    color: #6b7280;
    font-size: 20px;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-display {
    font-family: monospace;
    font-weight: 600;
    background-color: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Additional badge styles for referral tracking */
.badge-employee {
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-customer {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-affiliate {
    background-color: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Header section improvements */
.header-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.header-icon {
    font-size: 32px;
    color: var(--brand-color);
    margin-right: 16px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Table section improvements */
.table-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8f9fa;
}

.table-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* Responsive adjustments for referral tracking */
@media (max-width: 768px) {
    .info-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .info-card-value {
        font-size: 20px;
        justify-content: center;
    }
    
    .header-section {
        padding: 24px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .table-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Countdown Badge Styles */
.countdown-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid;
    transition: all 0.15s ease;
    max-width: 200px;
    word-wrap: break-word;
}

.countdown-badge i {
    font-size: 12px;
    flex-shrink: 0;
}

.countdown-badge span {
    line-height: 1.2;
}

/* Normal countdown (30+ days) */
.countdown-normal {
    background-color: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Soon countdown (8-30 days) */
.countdown-soon {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* Urgent countdown (1-7 days) */
.countdown-urgent {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    animation: pulse-urgent 2s infinite;
}

/* Today's countdown */
.countdown-today {
    background-color: #f3e8ff;
    color: #7c3aed;
    border-color: #c4b5fd;
    animation: pulse-today 1.5s infinite;
    font-weight: 700;
}

/* Overdue countdown */
.countdown-overdue {
    background-color: #450a0a;
    color: #ffffff;
    border-color: #7f1d1d;
    animation: pulse-overdue 1s infinite;
    font-weight: 700;
}

/* Pulse animations for urgent statuses */
@keyframes pulse-urgent {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    }
}

@keyframes pulse-today {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    }
}

@keyframes pulse-overdue {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
    }
}

/* Hover effects for countdown badges */
.countdown-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for countdown badges */
@media (max-width: 768px) {
    .countdown-badge {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 150px;
    }
    
    .countdown-badge i {
        font-size: 11px;
    }
}


/* customer */
.customer-footer {
    background: white;
}


/* Details element */
details {
    padding: 16px 0px;
    background-color: inherit;
    border-bottom: 1px solid #ededed;
    width: 100%;
  }
  
  details:nth-of-type(1) {
    border-top: 1px solid #ededed;
  }
  
  details > summary {
    font-size: 18px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
  }
  
  /* Remove default arrow for WebKit browsers */
  details > summary::-webkit-details-marker {
    display: none;
  }
  
  /* Plus icon (closed state) */
  details > summary::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease; /* Smoother, longer transition */
  }
  
  /* Minus icon (open state) with rotation */
  details[open] > summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg); /* Adds rotation */
  }
  
  details p {
    font-size: 16px;
    margin-top: 16px;
  }