
  :root {
    --bg: #F4F6FA;
    --accent-cyan: #06B6D4;
    --surface: #FFFFFF;
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-dark: #3730A3;
    --accent-green: #10B981;
    --accent-green-light: #ECFDF5;
    --accent-orange: #F59E0B;
    --accent-orange-light: #FFFBEB;
    --accent-red: #EF4444;
    --accent-red-light: #FEF2F2;
    --accent-blue: #3B82F6;
    --accent-blue-light: #EFF6FF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --sidebar-width: 260px;
    --transition: all 0.2s ease;
    --accent-purple-light: #F5F3FF;
    --ai-grad: linear-gradient(135deg, #4F46E5, #8B5CF6, #EC4899);
    --bs-app-sidebar-width: 220px;
    --ai: linear-gradient(135deg, #4F46E5, #8B5CF6, #EC4899);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
body, .app-default {
    background-color:var(--bg) !important;
}
.nav-ai-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--ai);
    color: white;
}
  /* ─── SIDEBAR ─── */
  .sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
  }

  .sidebar-brand {
    padding: 24px 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
  }

  .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
  }

  .brand-name span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
  }

  .sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
scrollbar-width: none;
  }

  .nav-section {
    margin-bottom: 24px;
  }

  .nav-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 2px;
    margin-top: 2px;
    color:#fff;
  }

  .nav-item:hover {
    background: #9ba9d64f;;
    //color: var(--text-primary);
  }

  .nav-item.active {
    background: #9ba9d64f;
    //color: var(--primary);
  }

  .nav-item.active i {
    color: #fff;
  }

  .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
  }

  .nav-item:hover i {
    color: var(--text-secondary);
  }

  .nav-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.4;
  }

  .sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
  }

  .user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
  }

  .user-card:hover {
    background: #4655738f;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #818CF8, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
  }

  .user-info {
    flex: 1;
    min-width: 0;
  }

  .user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .user-role {
    font-size: 11px;
    color: var(--text-muted);
  }

  /* ─── MAIN CONTENT ─── */
  .main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
  }

  /* ─── TOP BAR ─── */
  .topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    //border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    width: 280px;
    transition: var(--transition);
  }

  .search-box:focus-within {
    //border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  }

  .search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
  }

  .search-box input::placeholder {
    color: var(--text-muted);
  }

  .search-box i {
    color: var(--text-muted);
    font-size: 14px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    color: var(--text-secondary);
  }

  .icon-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
  }

  .icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--surface);
  }

  /* ─── DASHBOARD CONTENT ─── */
  .content {
    padding: 28px 32px;
  }

  /* ─── GREETING ─── */
  .greeting-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .greeting h2 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
  }

  .greeting h2 strong {
    color: var(--text-primary);
    font-weight: 600;
  }

  .date-display {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* ─── STAT CARDS ─── */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 20px;
  }

  .stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }

  .stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: transparent;
  }

  .stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
  }

  .stat-card-icon.purple { background: var(--primary-light);  }
  .stat-card-icon.purple i{color: var(--primary);}

  .stat-card-icon.green { background: var(--accent-green-light); color: var(--accent-green); }
  .stat-card-icon.green i{ color: var(--accent-green); }

  .stat-card-icon.orange { background: var(--accent-orange-light); color: var(--accent-orange); }
  .stat-card-icon.orange i{  color: var(--accent-orange); }

  .stat-card-icon.blue { background: var(--accent-blue-light); color: var(--accent-blue); }
  .stat-card-icon.blue i{ color: var(--accent-blue); }

  .stat-card-icon.red { background: var(--accent-red-light); color: var(--accent-red); }
  .stat-card-icon.red i{ color: var(--accent-red); }

  .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
  }

  .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 6px;
  }

  .stat-change.up {
    color: var(--accent-green);
    background: var(--accent-green-light);
  }

  .stat-change.down {
    color: var(--accent-red);
    background: var(--accent-red-light);
  }

  /* ─── PANELS ─── */
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
  }

  .panel:hover {
    box-shadow: var(--shadow-sm);
  }

  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
  }

  .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .panel-title .count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
  }

  .panel-action {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
  }

  .panel-action:hover {
    gap: 8px;
  }

  /* ─── TABLE ─── */
  .data-table {
    width: 100%;
    border-collapse: collapse;
  }

  .data-table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 10px 24px;
    text-align: left;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }

  .data-table tbody tr {
    transition: var(--transition);
  }

  .data-table tbody tr:hover {
    background: var(--bg);
  }

  .data-table tbody td {
    padding: 14px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
  }

  .data-table .lead-name {
    color: var(--text-primary);
    font-weight: 500;
  }

  .data-table .email-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
  }

  .data-table .email-link:hover {
    text-decoration: underline;
  }

  .table-id {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
  }

  /* ─── STATUS BADGE ─── */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
  }

  .status-badge.new { background: var(--accent-blue-light); color: var(--accent-blue); }
  .status-badge.pending { background: var(--accent-orange-light); color: var(--accent-orange); }
  .status-badge.confirmed { background: var(--accent-green-light); color: var(--accent-green); }

  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }

  /* ─── PIPELINE CHART ─── */
  .pipeline-chart {
    padding: 20px 24px 24px;
  }

  .pipeline-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .pipeline-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .pipeline-label {
    width: 140px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
  }

  .pipeline-bar-track {
    flex: 1;
    height: 28px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }

  .pipeline-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    padding-left: 10px;
  }

  .pipeline-bar-fill span {
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
  }

  .bar-new { background: linear-gradient(90deg, #6366F1, #818CF8); }
  .bar-followup1 { background: linear-gradient(90deg, #06B6D4, #22D3EE); }
  .bar-followup2 { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
  .bar-proposal { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
  .bar-accepted { background: linear-gradient(90deg, #10B981, #34D399); }
  .bar-negotiation { background: linear-gradient(90deg, #EF4444, #F87171); }
  .bar-confirmed { background: linear-gradient(90deg, #374151, #6B7280); }

  .pipeline-value {
    width: 60px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
  }

  /* ─── BOOKING LIST ─── */
  .booking-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    gap: 16px;
  }

  .booking-item:hover {
    background: var(--bg);
  }

  .booking-item:last-child {
    border-bottom: none;
  }

  .booking-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
  }

  .booking-info {
    flex: 1;
    min-width: 0;
  }

  .booking-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .booking-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
  }

  .booking-service {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .booking-id {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
  }

  /* ─── EMPTY STATE ─── */
  .empty-state {
    padding: 48px 24px;
    text-align: center;
  }

  .empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 14px;
  }

  .empty-state h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .empty-state p {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ─── MEETINGS ─── */
  .meeting-item {
    display: flex;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
  }

  .meeting-item:hover {
    background: var(--bg);
  }

  .meeting-time-block {
    width: 52px;
    text-align: center;
    flex-shrink: 0;
  }

  .meeting-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .meeting-period {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
  }

  .meeting-divider {
    width: 3px;
    border-radius: 2px;
    background: var(--primary);
    flex-shrink: 0;
  }

  .meeting-details {
    flex: 1;
  }

  .meeting-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
  }

  .meeting-subtitle {
    font-size: 12px;
    color: var(--text-muted);
  }

  /* ─── QUICK ACTIONS ─── */
  .quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
  }

  .quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
  }

  .quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }

  .quick-btn.primary-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .quick-btn.primary-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
  }

  /* ─── FULL WIDTH PANEL ─── */
  .full-panel {
    grid-column: 1 / -1;
  }

  /* ─── PAGINATION ─── */
  .table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-top: 1px solid var(--border-light);
  }

  .table-footer-text {
    font-size: 12px;
    color: var(--text-muted);
  }

  .pagination {
    display: flex;
    gap: 4px;
  }

  .pagination button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
  }

  .pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  .pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1400px) {
    .stats-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  @media (max-width: 1100px) {
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .sidebar {
      transform: translateX(-100%);
    }
    .main {
      margin-left: 0;
    }
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .content {
      padding: 20px 16px;
    }
    .topbar {
      padding: 12px 16px;
    }
  }

.nav-submenu-wrapper {
    margin-bottom: 6px;
}

.nav-submenu-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

.nav-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.nav-submenu-wrapper.open .nav-submenu-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    padding-left: 18px;
    margin-top: 6px;
}

.nav-submenu.show {
    display: block;
}

.nav-sub-item {
    display: block;
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-sub-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-sub-item.active {
    background: #4d4d4d75;
    color: #fff;
}


/* Basic styling for the calendar */
    #calendar {
        font-family: Arial, sans-serif;
        /* border: 1px solid #ccc; */
        width: 270px;
        text-align: center;
        /* box-shadow: 0 4px 8px rgba(0,0,0,0.1);
         border-radius: 10px; */
        overflow: hidden;
        background-color: #fff;
    }
    #calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color: #fff;
        color: #3498db;
        font-weight: bold;
    }
    #calendar-header button {
        background: #fff;
        border: none;
        color: #000000b0;
        font-size: 18px;
        cursor: pointer;
    }
    #calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        padding: 10px;
    }
    .day-name {
        font-weight: bold;
        color: #555;
    }
    .day {
        padding: 5px 0;
        border-radius: 20px;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .day:hover {
        background-color: #e3f2fd;
    }
    .day.empty {
        background-color: #f9f9f9;
        cursor: default;
    }
    .day.current-month {
        background-color: #fff;
    }
    .day.selected {
        background-color: #aaddff;
    }
    .day.today {
        background-color: #ffe0b2; /* Light orange for today */
        font-weight: bold;
    }
    .hover-highlight {
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    .hover-highlight:hover {
        background-color: #f0f0f0; /* light gray */
    }
    .all-hidden {
        display: none;
    }
    .google-calendar-details {
        background-color: #f9f9f9;
        border-left: 5px solid #007BFF;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        font-family: 'Segoe UI', sans-serif;
        line-height: 1.6;
        color: #333;
        max-width: 700px;
    }
    .google-calendar-details b {
        color: #c0392b;
        display: inline-block;
        margin-top: 4px;
    }
    .google-calendar-details br + br {
        line-height: 1.5;
        content: "";
        display: block;
        margin-bottom: 10px;
    }
    .google-calendar-details::before {
        content: '';
        font-size: 18px;
        font-weight: 600;
        display: block;
        margin-bottom: 15px;
        color: #007BFF;
    }
    .google-calendar-details a {
        color: #007BFF;
        text-decoration: underline;
        word-break: break-all; /* breaks at any point if needed */
        display: inline-block;
        max-width: 100%;
    }
    .google-calendar-details small,
    .google-calendar-details .footer-note {
        display: block;
        margin-top: 20px;
        color: #888;
        font-size: 12px;
        text-align: right;
    }
    .pac-container {
        z-index: 1056 !important; /* Bootstrap modal z-index is 1055 */
        position: absolute !important;
    }
    .swal-overlay {
        z-index: 99999 !important;
    }
    .swal-popup {
        z-index: 100000 !important;
    }
    @media (min-width: 1200px) {
        .card-body.calendar-card-body {
            padding: 1rem 1.5rem; /* adjust as you want */
        }
    }
    .note-header{
        display: none;
    }
     #calendar {
    width: auto;
    zoom: 0.9;                 /* quick & simple (non-standard, widely supported) */
    -moz-transform: scale(.9); /* firefox fallback using transform */
    -moz-transform-origin: 0 0;
    }
    .swal2-container {
    z-index: 99999 !important;
}

.container-fluid-header{
	padding-right: 0px !important;
    	padding-left: 0px !important;
}


 /* ─── STATS ROW ─── */
  .leads-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .leads-stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
  }

  .leads-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: transparent;
  }

  .leads-stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }

  .leads-stat-icon.purple { background: var(--primary-light); color: var(--primary); }
  .leads-stat-icon.green { background: var(--accent-green-light); color: var(--accent-green); }
  .leads-stat-icon.orange { background: var(--accent-orange-light); color: var(--accent-orange); }
  .leads-stat-icon.red { background: var(--accent-red-light); color: var(--accent-red); }

  .leads-stat-info {}
  .leads-stat-value { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
  .leads-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }


/* ─── MAIN PANEL ─── */
  .leads-panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  /* ─── TOOLBAR ─── */
  .leads-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
    flex-wrap: wrap;
  }

  .toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .toolbar-right { display: flex; align-items: center; gap: 10px; }

  .leads-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    width: 240px;
    transition: var(--transition);
  }

  .leads-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  }

  .leads-search input {
    border: none; outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
  }

  .leads-search input::placeholder { color: var(--text-muted); }
  .leads-search i { color: var(--text-muted); font-size: 13px; }

  .filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
  }

  .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }

  .filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }

  .add-lead-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
  }

  .add-lead-btn:hover { background: var(--primary-dark); }

  /* ─── ACTIVE FILTERS ─── */
  .active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
  }

  .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }

  .filter-tag i { font-size: 9px; }

  .filter-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* ─── TABLE ─── */
  .leads-table { width: 100%; border-collapse: collapse; }

  .leads-table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 11px 16px;
    text-align: left;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
  }

  .leads-table thead th:hover { color: var(--text-secondary); }

  .leads-table thead th .th-inner {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .leads-table thead th i { font-size: 9px; opacity: 0.5; }
  .leads-table thead th.sorted i { opacity: 1; color: var(--primary); }

  .leads-table tbody tr {
    transition: var(--transition);
    cursor: pointer;
  }

  .leads-table tbody tr:hover { background: #FAFBFF; }

  .leads-table tbody td {
    padding: 13px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
  }

  .leads-table tbody tr:last-child td { border-bottom: none; }

  /* Cell styles */
  .cell-id {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: monospace;
  }

  .cell-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
  }
.cell-name:hover{
color: var(--text-muted);
}

  .cell-name .sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
  }

  .source-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--accent-green-light);
    color: var(--accent-green);
  }

  .source-badge i { font-size: 9px; }

  .tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
  }

  .tag-oos { background: var(--accent-red-light); color: var(--accent-red); }

  .service-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
  }

  .service-chip i { font-size: 10px; }

  .phone-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .phone-link:hover { text-decoration: underline; }
  .phone-link i { font-size: 10px; color: var(--accent-green); }

  .created-date { font-size: 12px; white-space: nowrap; }
  .created-date .time { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }

  .action-group { display: flex; align-items: center; gap: 6px; }

  .action-icon-btn {
    width: 30px; height: 30px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 12px;
  }

  .action-icon-btn:hover.view { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
  .action-icon-btn:hover.del { border-color: var(--accent-red); color: var(--accent-red); background: var(--accent-red-light); }
  .action-icon-btn.view:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
  .action-icon-btn.del:hover { border-color: var(--accent-red); color: var(--accent-red); background: var(--accent-red-light); }

  /* Checkbox */
  .cb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cb-wrap input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
  }

  /* ─── FOOTER ─── */
  .table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 10px;
  }

  .table-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .rows-select {
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    outline: none;
  }

  .rows-select:focus { border-color: var(--primary); }

  .footer-text { font-size: 12px; color: var(--text-muted); }

  .pagination { display: flex; gap: 4px; }

  .pagination button {
    width: 32px; height: 32px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pagination button:hover { border-color: var(--primary); color: var(--primary); }
  .pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }





/* ─── FILTER PANEL (slide-in) ─── */
  .filter-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .filter-panel-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .filter-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    background: var(--surface);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
  }

  .filter-panel-overlay.open .filter-panel {
    transform: translateX(0);
  }

  .filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-light);
  }

  .filter-panel-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

  .filter-close-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
  }

  .filter-close-btn:hover { border-color: var(--accent-red); color: var(--accent-red); background: var(--accent-red-light); }

  .filter-panel-body { flex: 1; overflow-y: auto; padding: 16px 20px; }

  .filter-group { margin-bottom: 20px; }

  .filter-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .filter-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
  }

  .filter-input:focus { border-color: var(--primary); background: var(--surface); }

  .filter-check-list { display: flex; flex-direction: column; gap: 8px; }

  .filter-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 0;
  }

  .filter-check-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px; height: 18px;
    cursor: pointer;
  }

  .filter-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
  }

  .filter-apply-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
  }

  .filter-apply-btn:hover { background: var(--primary-dark); }

  .filter-reset-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
  }

  .filter-reset-btn:hover { border-color: var(--accent-red); color: var(--accent-red); background: var(--accent-red-light); }

     .filter-group {
    margin-bottom: 24px;
}

.filter-group-label span {
    font-size: 13px;
    font-weight: 700;
    color: #7e8299;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.saved-filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.saved-filter-item:hover {
    border-color: #009ef7;
    background: #f8fbff;
    box-shadow: 0 6px 18px rgba(0, 158, 247, 0.08);
}
.saved-filter-item.active {
    border-color: #009ef7;
    background: #eef6ff;
    box-shadow: 0 6px 16px rgba(0, 158, 247, 0.12);
}

.saved-filter-item.active .saved-filter-name {
    color: #009ef7;
    font-weight: 600;
}

.saved-filter-item.active .saved-filter-action {
    background: #e1f0ff;
    color: #009ef7;
}
.saved-filter-link {
    flex: 1;
    text-decoration: none;
    min-width: 0;
}

.saved-filter-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saved-filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #009ef7;
    font-size: 15px;
    flex-shrink: 0;
}

.saved-filter-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.saved-filter-name {
    font-size: 14px;
    font-weight: 600;
    color: #181c32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-filter-subtext {
    font-size: 12px;
    color: #a1a5b7;
    margin-top: 2px;
}

.saved-filter-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f5f8fa;
    color: #7e8299;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.saved-filter-action:hover {
    background: #eef6ff;
    color: #009ef7;
}

.filterjson.active + .dropdown .saved-filter-action,
.saved-filter-item.active-filter .saved-filter-action {
    background: #eef6ff;
    color: #009ef7;
}

.saved-filter-item.active-filter {
    border-color: #009ef7;
    background: #eef6ff;
    box-shadow: 0 6px 18px rgba(0, 158, 247, 0.12);
}

.saved-filter-item.active-filter .saved-filter-name {
    color: #009ef7;
}

.saved-filter-item.active-filter .saved-filter-icon {
    background: #009ef7;
    color: #ffffff;
}

.empty-filter-text {
    border: 1px dashed #d8dde7;
    border-radius: 14px;
    background: #f9fafb;
    text-align: center;
    padding: 28px 20px;
}

.empty-filter-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eef3f7;
    color: #a1a5b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.empty-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #3f4254;
    margin-bottom: 4px;
}

.empty-filter-subtitle {
    font-size: 12px;
    color: #a1a5b7;
}

.dropdown-menu .dropdown-item {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
}

@media (max-width: 576px) {
    .saved-filter-item {
        padding: 10px 12px;
    }

    .saved-filter-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .saved-filter-name {
        font-size: 13px;
    }

    .saved-filter-subtext {
        font-size: 11px;
    }
}


/* ─── STATS ─── */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 14px;
    }

    .stat-card {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 16px 18px;
      border: 1px solid var(--border);
      transition: var(--transition);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .stat-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      border-radius: 0 0 var(--radius) var(--radius);
      opacity: 0;
      transition: var(--transition);
    }

    .stat-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
      border-color: transparent;
    }

    .stat-card:hover::after {
      opacity: 1;
    }

    .stat-card.active-filter {
      border-color: transparent;
      box-shadow: var(--shadow-md);
    }

    .stat-card.active-filter::after {
      opacity: 1;
    }

    .stat-card.all::after {
      background: var(--primary);
    }

    .stat-card.all.active-filter {
      background: linear-gradient(135deg, #EEF2FF 0%, #F8F9FF 100%);
    }

    .stat-card.pending::after {
      background: var(--accent-orange);
    }

    .stat-card.pending.active-filter {
      background: linear-gradient(135deg, #FFFBEB 0%, #FFFDF5 100%);
    }

    .stat-card.avail::after {
      background: var(--accent-cyan);
    }

    .stat-card.avail.active-filter {
      background: linear-gradient(135deg, #ECFEFF 0%, #F5FEFF 100%);
    }

    .stat-card.confirmed::after {
      background: var(--accent-green);
    }

    .stat-card.confirmed.active-filter {
      background: linear-gradient(135deg, #ECFDF5 0%, #F5FFF9 100%);
    }

    .stat-card.completed::after {
      background: var(--accent-purple);
    }

    .stat-card.completed.active-filter {
      background: linear-gradient(135deg, #F5F3FF 0%, #FAF9FF 100%);
    }

    .stat-card.lost::after {
      background: var(--accent-red);
    }

    .stat-card.lost.active-filter {
      background: linear-gradient(135deg, #FEF2F2 0%, #FFF8F8 100%);
    }

    .stat-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      margin-bottom: 10px;
    }

    .stat-icon.purple {
      background: var(--primary-light);
      color: var(--primary);
    }

    .stat-icon.orange {
      background: var(--accent-orange-light);
      color: var(--accent-orange);
    }

    .stat-icon.cyan {
      background: var(--accent-cyan-light);
      color: var(--accent-cyan);
    }

    .stat-icon.green {
      background: var(--accent-green-light);
      color: var(--accent-green);
    }

    .stat-icon.violet {
      background: var(--accent-purple-light);
      color: var(--accent-purple);
    }

    .stat-icon.red {
      background: var(--accent-red-light);
      color: var(--accent-red);
    }

    .stat-value-text {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1;
      margin-bottom: 3px;
    }

    .stat-label {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-muted);
    }
.page-header {
    display: flex;
    align-items: center; /* 🔥 fix alignment */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* Right side wrapper */
.page-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Button design upgrade */
.add-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect 🔥 */
.add-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

/* Icon size */
.add-booking-btn i {
    font-size: 12px;
}

/* Breadcrumb spacing fix */
.page-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .breadcrumb a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
    }

    .breadcrumb i {
      font-size: 9px;
    }

   

.cell-name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 13px;
    }

    .cell-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }
 .prop-badge {
     // display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      background: var(--border-light);
      color: var(--text-secondary);
      border-radius: 6px;
      font-size: 10px;
      font-weight: 500;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      width: 150px;
    }

    .height-text {
      font-size: 12px;
      color: var(--text-secondary);
      max-width: 160px;
      line-height: 1.4;
     display: -webkit-box;
     -webkit-line-clamp: 4;
     -webkit-box-orient: vertical;
     overflow: hidden;
     width: 149px;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
    }

    .status-badge .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }

    .status-pending {
      background: var(--accent-orange-light);
      color: var(--accent-orange);
    }

    .status-avail {
      background: var(--accent-cyan-light);
      color: var(--accent-cyan);
    }

    .status-confirmed {
      background: var(--accent-green-light);
      color: var(--accent-green);
    }

    .status-completed {
      background: var(--accent-purple-light);
      color: var(--accent-purple);
    }

    .status-lost {
      background: var(--accent-red-light);
      color: var(--accent-red);
    }

    .status-cancelled {
      background: var(--border-light);
      color: var(--text-muted);
    }

    .unit-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--primary-light);
      color: var(--primary);
      font-size: 12px;
      font-weight: 700;
    }

    .price-text {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent-green);
    }

    .addr-text {
      font-size: 11.5px;
      color: var(--text-secondary);
      max-width: 180px;
      line-height: 1.5;
    }

    .action-group {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .act-btn {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      border: 1px solid var(--border);
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 11px;
      transition: var(--transition);
    }

    .act-btn.view:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-light);
    }

    .act-btn.edit:hover {
      border-color: var(--accent-orange);
      color: var(--accent-orange);
      background: var(--accent-orange-light);
    }

    .act-btn.del:hover {
      border-color: var(--accent-red);
      color: var(--accent-red);
      background: var(--accent-red-light);
    }


/* ─── SAVED FILTERS SIDEBAR ─── */
    .saved-filters-panel {
      width: 230px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .sf-card {
      background: var(--surface);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .sf-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px 10px;
      border-bottom: 1px solid var(--border-light);
    }

    .sf-title {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .sf-title i {
      color: var(--primary);
      font-size: 11px;
    }

    .sf-add-btn {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 11px;
      transition: var(--transition);
    }

    .sf-add-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-light);
    }

    .sf-list {
      padding: 8px;
    }

    .sf-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 10px;
      border-radius: var(--radius-xs);
      cursor: pointer;
      transition: var(--transition);
      margin-bottom: 2px;
      position: relative;
    }

    .sf-item:hover {
      background: var(--bg);
    }

    .sf-item.active {
      background: var(--primary-light);
    }

    .sf-item-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .sf-item-info {
      flex: 1;
      min-width: 0;
    }

    .sf-item-name {
      font-size: 12.5px;
      font-weight: 500;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sf-item.active .sf-item-name {
      color: var(--primary);
      font-weight: 600;
    }

    .sf-item-count {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 1px;
    }

    .sf-item-badge {
      font-size: 10px;
      font-weight: 600;
      padding: 1px 7px;
      border-radius: 10px;
      background: var(--border-light);
      color: var(--text-muted);
      flex-shrink: 0;
    }

    .sf-item.active .sf-item-badge {
      background: var(--primary-light);
      color: var(--primary);
    }

    .sf-item-actions {
      display: none;
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      gap: 3px;
    }

    .sf-item:hover .sf-item-actions {
      display: flex;
    }

    .sf-item:hover .sf-item-badge {
      display: none;
    }

    .sf-action-mini {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      border: 1px solid var(--border);
      background: var(--surface);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 10px;
      transition: var(--transition);
    }

    .sf-action-mini:hover.edit {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-light);
    }

    .sf-action-mini:hover.del {
      border-color: var(--accent-red);
      color: var(--accent-red);
      background: var(--accent-red-light);
    }

    .sf-action-mini.edit:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-light);
    }

    .sf-action-mini.del:hover {
      border-color: var(--accent-red);
      color: var(--accent-red);
      background: var(--accent-red-light);
    }

    /* Booking filter section */
    .sf-section-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: var(--text-muted);
      padding: 10px 10px 4px;
    }

    .sf-filter-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 10px;
      border-radius: var(--radius-xs);
      cursor: pointer;
      transition: var(--transition);
      margin-bottom: 1px;
      font-size: 12.5px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .sf-filter-item:hover {
      background: var(--bg);
      color: var(--text-primary);
    }

    .sf-filter-item.active {
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 600;
    }

    .sf-filter-item i {
      font-size: 12px;
      width: 16px;
      text-align: center;
      color: var(--text-muted);
    }

    .sf-filter-item.active i {
      color: var(--primary);
    }

    .sf-filter-item:hover i {
      color: var(--text-secondary);
    }

    .sf-filter-count {
      margin-left: auto;
      font-size: 10px;
      font-weight: 600;
      padding: 1px 7px;
      border-radius: 10px;
      background: var(--border-light);
      color: var(--text-muted);
    }

    .sf-filter-item.active .sf-filter-count {
      background: var(--primary-light);
      color: var(--primary);
    }

@media (max-width: 900px) {
          .saved-filters-panel {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
      }

      .sf-card {
        flex-shrink: 0;
      }
    }


 /* Bootstrap modal backdrop is already handled by Bootstrap */

.custom-save-filter-modal {
    background: var(--surface);
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.custom-modal-wrap {
    padding: 28px;
}

#kt_modal_save_fiter_as_new_stage .modal-dialog {
    max-width: 380px;
}

#kt_modal_save_fiter_as_new_stage .modal-content {
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

#kt_modal_save_fiter_as_new_stage.show .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    margin-bottom: 14px;
}

.modal-input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: none;
}

.color-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-dot.selected {
    border-color: var(--text-primary);
    transform: scale(1.15);
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border: none;
    padding: 0;
    margin-top: 0;
}

.modal-cancel-btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.modal-cancel-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.modal-save-btn {
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.modal-save-btn:hover {
    background: var(--primary-dark);
}
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

 /* ─── SECTION CARD ─── */
  .section-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    scroll-margin-top: 120px;
  }

  .sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-light);
  }

  .sc-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sc-title i {
    font-size: 13px;
    color: var(--primary);
  }

  .sc-action {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .sc-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
  }

  .sc-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }

  .sc-body {
    padding: 18px 20px;
  }

  /* ─── CONTACT CARD ─── */
  .contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
  }

  .contact-info {
    flex: 1;
  }

  .contact-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .contact-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
  }

  .contact-actions {
    display: flex;
    gap: 6px;
  }

  .ca-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 11px;
    transition: var(--transition);
    text-decoration: none;
  }

  .ca-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }

  /* ─── INFO GRID ─── */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
  }

  .info-grid.cols3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .info-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 6px;
  }

  .info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
  }

  .info-value.link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
  }

  .info-value.link:hover {
    text-decoration: underline;
  }

  .divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
  }

  /* ─── AI BUTTON ─── */
  .ai-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    background: var(--ai-grad);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
  }

  .ai-inline-btn:hover {
    opacity: 0.88;
  }

  /* ─── EDIT MODE FIX ─── */
  .position-relative {
    position: relative;
  }

  .view-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .view-mode.hidden {
    display: none !important;
  }

  .edit-container {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
  }

  .edit-container.active {
    display: flex !important;
  }

  .edit-icon {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 4px;
    transition: var(--transition);
  }


  .btn-action {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  /* .btn-action:hover {
    border-color: var(--primary);
    background: var(--primary-light);
  } */

  .btn-save {
    color: var(--accent-green, #16a34a);
  }

  .btn-cancel {
    color: var(--accent-red, #dc2626);
  }

  .edit-container .form-control,
  .edit-container .form-select {
    min-width: 220px;
    max-width: 100%;
  }

  .invalid-feedback.d-block {
    font-size: 11px;
    margin-top: 4px;
  }

  @media (max-width: 992px) {
    .info-grid.cols3 {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 768px) {
    .info-grid,
    .info-grid.cols3 {
      grid-template-columns: 1fr;
    }

    .contact-row {
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .contact-actions {
      width: 100%;
      margin-top: 8px;
    }
  }
  .view-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.view-mode .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
}

.view-mode .link:hover {
  text-decoration: underline;
}

.edit-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 6px;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.edit-icon:hover {
  color: var(--primary);
}
.description-text {
  line-height: 1.4;
  color: var(--text-primary);
  font-size: 12px;
  width: 90%;
}

  /* ─── AI ACTIONS IN SECTIONS ─── */
  .ai-inline-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: var(--radius-xs);
    font-size: 11px; font-weight: 600;
    background: var(--ai-grad); color: white; border: none;
    cursor: pointer; font-family: inherit; transition: var(--transition);
  }

  .ai-inline-btn:hover { opacity: 0.88; }

  .ai-suggestion {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    border-radius: var(--radius-xs);
    margin-top: 10px;
  }

  .ai-suggestion-icon { font-size: 14px; color: var(--primary); margin-top: 1px; flex-shrink: 0; }
  .ai-suggestion-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
  .ai-suggestion-text strong { color: var(--text-primary); }
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius:6px;
  font-size: 11px;
  font-weight: 600;
}
.btn-primary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

  /* ─── ACTIVITY TABS ─── */
  /* Main activity tab switch */
.act-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
}

.act-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.act-tab:hover {
  color: var(--text-secondary);
}

.act-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.activity-panel {
  display: none;
}

.activity-panel.active {
  display: block;
}

/* inner mail subtabs */
.mail-subtabs {
  border-bottom: 1px solid var(--border-light);
  gap: 6px;
}

.mail-subtabs .nav-link {
  border: 0 !important;
  background: transparent !important;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0px 5px;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
}

.mail-subtabs .nav-link.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
  font-weight: 600;
}

/* datatable look */
.modern-activity-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.modern-activity-table thead th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 10px 12px !important;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light) !important;
  text-align: left;
  white-space: nowrap;
}

.modern-activity-table tbody td {
  padding: 10px 12px !important;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light) !important;
  vertical-align: middle;
}

.modern-activity-table tbody tr:hover {
  background: #fafbff;
}

/* datatable wrapper cleanup */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 6px;
  outline: none;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  margin: 0 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-secondary) !important;
  padding: 4px 10px !important;
  margin-left: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px !important;
}

@media (max-width: 768px) {
  .act-tabs {
    overflow-x: auto;
  }

  .act-tab {
    white-space: nowrap;
  }
}
  /* ─── EMAIL TABLE ─── */
  .email-table { width: 100%; border-collapse: collapse; }

  .email-table thead th {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.7px; color: var(--text-muted);
    padding: 8px 12px; background: var(--bg);
    border-bottom: 1px solid var(--border-light); text-align: left;
  }

  .email-table tbody tr { transition: var(--transition); cursor: pointer; }
  .email-table tbody tr:hover { background: #FAFBFF; }

  .email-table tbody td {
    padding: 10px 12px; font-size: 12px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light); vertical-align: middle;
  }

  .email-table tbody tr:last-child td { border-bottom: none; }

  .email-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 12px; }
  .email-link:hover { text-decoration: underline; }

  .email-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; }
  .es-sent { background: var(--accent-blue-light); color: var(--accent-blue); }
  .es-opened { background: var(--accent-green-light); color: var(--accent-green); }
  .es-clicked { background: var(--accent-purple-light); color: var(--accent-purple); }
.sc-btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
  .sc-btn.primary:hover { background: var(--primary-dark); }



 /* related header row */
    #kt_custom_desktop_header_releted_menu {
        background: #fff;
        border-top: 1px solid #eef2f7;
        border-bottom: 1px solid #eef2f7;
        width: 100%;
    }

    #kt_custom_desktop_header_releted_menu .related-inner {
        width: 100%;
        padding: 0 24px;
    }


.sticky-nav-wrap {
    width: 930px;
    /* overflow-x: auto; */
    overflow-y: hidden;
    background: #fff;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sticky-nav-wrap::-webkit-scrollbar {
    display: none;
}

.sticky-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: max-content;
    min-height: 48px;
    white-space: nowrap;
}

.snav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 12px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.snav-item i {
    font-size: 12px;
    /* color: var(--primary); */
}

.snav-item:hover i {
    color: var(--text-secondary);
}

.snav-item:hover {
    color: var(--text-secondary);
}

.snav-item.active {
    color: #4f46e5;
    font-weight: 700;
    border-bottom-color: #4f46e5;
}

.snav-item.active i {
    color: #4f46e5;
}



    @media (max-width: 991.98px) {
        #kt_custom_desktop_header_releted_menu {
            display: none !important;
        }
    }
    @media (min-width: 992px) {
    .app-header-related.app-header {
        height: 54px;
    }
}

  /* ─── TIMELINE ─── */
  .timeline { padding: 16px 20px; }
  .tl-item { display: flex; gap: 12px; margin-bottom: 16px; position: relative; }
  .tl-item:last-child { margin-bottom: 0; }

  .tl-item::before {
    content: '';
    position: absolute; left: 15px; top: 32px; bottom: -16px;
    width: 1px; background: var(--border-light);
  }

  .tl-item:last-child::before { display: none; }

  .tl-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0; z-index: 1;
    border: 2px solid var(--surface);
  }

  .tl-content { flex: 1; }
  .tl-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
  .tl-sub { font-size: 11px; color: var(--text-muted); }
  .tl-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; }

.activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ab-gray {
    background: #F3F4F6;
    color: #6B7280;
}
.badge-gray {
    background: var(--border-light);
    color: var(--text-secondary);
}

  /* ─── TECHNICIAN CARD ─── */
  .tech-cards {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: var(--bg); border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
  }

  .tech-avatar {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: white;
    flex-shrink: 0;
  }

  .tech-info { flex: 1; }
  .tech-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
  .tech-role { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

  .tech-stats { display: flex; gap: 12px; margin-top: 10px; }
  .tech-stat { text-align: center; }
  .tech-stat-vals { font-size: 16px; font-weight: 700; color: var(--text-primary); }
  .tech-stat-lbl { font-size: 10px; color: var(--text-muted); }
.topbar-id {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── STATU BAR STAGE ON SCROLL DOWN HIDE OTHER WISE SHOW ─── */


 .app-header-stages.app-header {
        position: sticky;
        top: var(--kt-app-header-height, 70px);
        z-index: 95;
        border-bottom: 1px solid #eef2f7;
        right: 0;
    }
    @media (min-width: 992px) {
        .app-header-stages.app-header {
            height: 48px;
        }
    }
  
    .status-bar {
        background: var(--surface);
        padding: 10px 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .status-steps {
        display: flex;
        align-items: center;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
        flex: 1;
        min-width: 0;
    }

    .status-steps::-webkit-scrollbar {
        display: none;
    }

    .step {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 7px 16px;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-muted);
        cursor: pointer;
        transition: var(--transition);
        position: relative;
        border-radius: var(--radius-sm);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .step:hover {
        color: var(--text-secondary);
        background: var(--bg);
    }

    .step.active {
        color: var(--primary);
        font-weight: 600;
    }

    .step.done {
        color: var(--accent-green);
    }

    .step .step-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        border: 2px solid var(--border);
        color: var(--text-muted);
        background: var(--surface);
        transition: var(--transition);
        flex-shrink: 0;
    }

    .step.active .step-icon {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-light);
    }

    .step.done .step-icon {
        border-color: var(--accent-green);
        color: #fff;
        background: var(--accent-green);
    }

    .step-arrow {
        color: var(--border);
        font-size: 10px;
        margin: 0 2px;
        flex-shrink: 0;
    }

    .status-bar-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        flex-shrink: 0;
    }

    .appt-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border-radius: 8px;
        background: var(--accent-green-light);
        color: var(--accent-green);
        font-size: 11px;
        font-weight: 600;
    }

    .appt-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .date-badge {
        font-size: 11px;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 5px;
    }
.container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
    padding-right: calc(var(--bs-gutter-x) * 0); 
    padding-left: calc(var(--bs-gutter-x) * 0);
}

/* active tab (purple gradient like image) */

.custom-tabs {
    display: inline-flex;
    background: #e9eaee;
    border-radius: 50px;
    padding-top: 8px;
    height: 35px;
}

/* remove default list spacing */
.custom-tabs li {
    list-style: none;
}

/* tab base */
.custom-tabs .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* active tab (purple gradient like image) */
.custom-tabs .tab-btn.active {
    background:var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* hover effect */
.custom-tabs .tab-btn:hover:not(.active) {
    color: #4f46e5;
}


.page-link.active, .active > .page-link {
     background-color: var(--primary) !important;
}

.stepper.stepper-pills .stepper-item.current .stepper-icon {
    background-color: #7239ea;
}

#kt_app_sidebar {
    width: var(--bs-app-sidebar-width)!important;
}
.app-wrapper {
        margin-left: var(--bs-app-sidebar-width)!important;
 }
div#kt_app_header,div#kt_custom_desktop_header_releted_menu,div#kt_custom_desktop_header_stages {
	left:var(--bs-app-sidebar-width)!important;
}

#kt_modal_create_app .modal-header{
    padding: 1.2rem 1.5rem !important;
}
.search-container:focus-within {
    width: 400px; /* expanded width */
}

.dsh-card{
cursor: default;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.filter-btn.active {
    color: #4F46E5 !important;
    border-color: #4F46E5 !important;
    background: rgba(79, 70, 229, 0.08) !important;
}

.filter-active-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: #4F46E5 !important;
    display: inline-block;
}

