/* ==========================================================================
   ADVANCED MOBILE REPAIRING & SOFTWARE SHOP MANAGEMENT SYSTEM
   Author: Abdul Soft Management Systems
   Theme: High-End Modern Glassmorphism & Cyber-Clean Dark/Light Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  color-scheme: dark;
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.15);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --accent-gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);

  /* Status Colors */
  --status-pending: #f59e0b;
  --status-diagnosing: #0ea5e9;
  --status-in-process: #8b5cf6;
  --status-testing: #eab308;
  --status-completed: #10b981;
  --status-delivered: #06b6d4;
  --status-cancelled: #ef4444;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.45);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f3f4f6;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(243, 244, 246, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-bright: rgba(0, 0, 0, 0.15);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px -6px rgba(0, 0, 0, 0.12);
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

code,
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* App Shell Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-blue);
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.brand-info h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-info h1 {
  background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Nav Menu */
.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-glass);
  transform: translateX(3px);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .nav-item.active {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.nav-item i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-indigo);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  height: 72px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
}

.page-title h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 16px;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
}

/* Primary and Secondary Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-emerald {
  background: var(--accent-gradient-emerald);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Viewport / Content Body */
.content-body {
  padding: 28px 32px;
  flex: 1;
}

/* Tabs Switching */
.tab-view {
  display: none;
  animation: fadeIn 0.35s ease-in-out;
}

.tab-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard & Global Summary Metrics Grid (Globally 4 boxes per line) */
.metrics-grid:not(#technicians-list-grid) {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

#technicians-list-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.metric-card:hover {
  border-color: var(--border-glass-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--metric-color, var(--accent-blue));
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--metric-color, var(--accent-blue));
  flex-shrink: 0;
}

.metric-info {
  min-width: 0;
  flex: 1;
}

.metric-info h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-info p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-subtext {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Glass Card Generic */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.card-header h3 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h3 i {
  color: var(--accent-cyan);
}

/* Form Styles & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.col-12 {
  grid-column: span 12;
}

.col-8 {
  grid-column: span 8;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.form-group label span.req {
  color: var(--accent-rose);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #d1d5db;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* ==========================================================================
   DROPDOWN (SELECT & OPTIONS) DARK / LIGHT THEME FIX
   Fixes invisible white-on-white text in dark mode dropdown menus
   ========================================================================== */
select,
select.form-control,
.filter-select {
  color-scheme: dark;
  background-color: #111827 !important;
  color: #f9fafb !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2306b6d4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 38px !important;
}

select:focus,
select.form-control:focus,
.filter-select:focus {
  background-color: #161f30 !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25) !important;
  outline: none !important;
}

/* Explicit options popup styling for dark mode */
select option,
select optgroup {
  background-color: #111827 !important;
  color: #f9fafb !important;
  padding: 12px 14px;
  font-size: 13.5px;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #1f293d !important;
  color: #38bdf8 !important;
}

select option:disabled {
  color: #6b7280 !important;
  background-color: #0b1120 !important;
}

/* Light Mode Overrides for Select & Options */
[data-theme="light"] select,
[data-theme="light"] select.form-control,
[data-theme="light"] .filter-select {
  color-scheme: light;
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

[data-theme="light"] select:focus,
[data-theme="light"] select.form-control:focus,
[data-theme="light"] .filter-select:focus {
  background-color: #ffffff !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

[data-theme="light"] select option,
[data-theme="light"] select optgroup {
  background-color: #ffffff !important;
  color: #111827 !important;
  padding: 10px 14px;
}

[data-theme="light"] select option:hover,
[data-theme="light"] select option:focus,
[data-theme="light"] select option:checked {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}

[data-theme="light"] select option:disabled {
  color: #94a3b8 !important;
  background-color: #f8fafc !important;
}

/* Category Switcher Tabs */
.category-toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-glass);
  gap: 4px;
}

.cat-btn {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cat-btn:hover {
  color: var(--text-primary);
}

.cat-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.cat-btn.cat-sw.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.cat-btn.cat-both.active {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* Fault Chips / Quick Tags */
.fault-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.fault-chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.fault-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.fault-chip.selected {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.fault-chip.sw-selected {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: #d8b4fe;
}

/* Checklist Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.check-item input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Status Badge Component */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.status-diagnosing {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.status-badge.status-in-process {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-badge.status-testing {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-badge.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-delivered {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.status-badge.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Category Badge */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.cat-badge.cat-hw {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cat-badge.cat-sw {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cat-badge.cat-both {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.search-input-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap input {
  padding-left: 40px;
}

.filter-select {
  width: auto;
  min-width: 150px;
}

/* ==========================================================================
   GLOBAL UNIFIED DATA TABLE SYSTEM
   Standardized across ALL pages (Dashboard, Repairs, Customers, Inventory, Users)
   Based on "Spare Parts & Tools Inventory" format, paddings, and action buttons
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

/* Global Table (Targets .custom-table, .data-table, and any table in container) */
.custom-table,
.data-table,
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

/* Global Table Headers */
.custom-table th,
.data-table th,
.table-responsive table th {
  background: rgba(255, 255, 255, 0.035);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass-bright);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

[data-theme="light"] .custom-table th,
[data-theme="light"] .data-table th,
[data-theme="light"] .table-responsive table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

/* Global Table Cells */
.custom-table td,
.data-table td,
.table-responsive table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
  font-size: 13px;
  color: var(--text-primary);
}

[data-theme="light"] .custom-table td,
[data-theme="light"] .data-table td,
[data-theme="light"] .table-responsive table td {
  border-bottom: 1px solid #f1f5f9;
}

/* Global Table Row Hover */
.custom-table tbody tr,
.data-table tbody tr,
.table-responsive table tbody tr {
  transition: background var(--transition-fast);
}

.custom-table tbody tr:hover,
.data-table tbody tr:hover,
.table-responsive table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

[data-theme="light"] .custom-table tbody tr:hover,
[data-theme="light"] .data-table tbody tr:hover,
[data-theme="light"] .table-responsive table tbody tr:hover {
  background: #f1f5f9;
}

.ticket-id-link {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.ticket-id-link:hover {
  text-decoration: underline;
}

.device-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13.5px;
}

.device-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.amount-text {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-emerald);
  font-size: 13.5px;
}

.balance-due {
  color: var(--accent-rose);
  font-size: 11.5px;
  font-weight: 700;
}

/* ==========================================================================
   GLOBAL TABLE ACTION CELL & ACTION BUTTONS SPECIFICATION
   Rule:
   - 1, 2, or 3 buttons: Strictly 1 single horizontal line
   - 4 or more buttons: Formatted into 3 lines
   ========================================================================== */

/* Base Container: 1 to 3 buttons strictly in 1 single horizontal line */
.table-actions,
.inv-actions-cell,
.actions-cell,
.cust-actions-cell {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* 4 or more buttons: Switch to Grid layout */
.table-actions:has(> :nth-child(4)),
.inv-actions-cell:has(> :nth-child(4)),
.actions-cell:has(> :nth-child(4)),
.cust-actions-cell:has(> :nth-child(4)) {
  display: inline-grid !important;
  gap: 4px !important;
  justify-content: flex-end !important;
  align-items: center !important;
  white-space: nowrap !important;
}

/* 4 buttons (Shop Items): Formatted into 3 lines (Row 1: 2 buttons, Row 2: 1 button, Row 3: 1 button) */
.table-actions:has(> :nth-child(4)):not(:has(> :nth-child(5))),
.inv-actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))),
.actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))),
.cust-actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) {
  grid-template-columns: repeat(2, max-content) !important;
}
.table-actions:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(3),
.inv-actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(3),
.actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(3),
.cust-actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(3) {
  grid-column: 1 / span 2 !important;
  justify-self: center !important;
}
.table-actions:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(4),
.inv-actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(4),
.actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(4),
.cust-actions-cell:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :nth-child(4) {
  grid-column: 1 / span 2 !important;
  justify-self: center !important;
}

/* 5 buttons (Inventory): Formatted into 3 lines (Row 1: 2 buttons, Row 2: 2 buttons, Row 3: 1 button) */
.table-actions:has(> :nth-child(5)):not(:has(> :nth-child(6))),
.inv-actions-cell:has(> :nth-child(5)):not(:has(> :nth-child(6))),
.actions-cell:has(> :nth-child(5)):not(:has(> :nth-child(6))),
.cust-actions-cell:has(> :nth-child(5)):not(:has(> :nth-child(6))) {
  grid-template-columns: repeat(2, max-content) !important;
}
.table-actions:has(> :nth-child(5)):not(:has(> :nth-child(6))) > :nth-child(5),
.inv-actions-cell:has(> :nth-child(5)):not(:has(> :nth-child(6))) > :nth-child(5),
.actions-cell:has(> :nth-child(5)):not(:has(> :nth-child(6))) > :nth-child(5),
.cust-actions-cell:has(> :nth-child(5)):not(:has(> :nth-child(6))) > :nth-child(5) {
  grid-column: 1 / span 2 !important;
  justify-self: center !important;
}

/* All Repair Records & 6+ button tables: Exactly 3 buttons per line (3 columns) */
#all-jobs-table-body .table-actions,
#dashboard-recent-table-body .table-actions,
.table-actions:has(> :nth-child(6)),
.inv-actions-cell:has(> :nth-child(6)),
.actions-cell:has(> :nth-child(6)),
.cust-actions-cell:has(> :nth-child(6)) {
  display: inline-grid !important;
  grid-template-columns: repeat(3, max-content) !important;
  gap: 4px !important;
  justify-content: flex-end !important;
  align-items: center !important;
  white-space: nowrap !important;
}

/* 7 or more buttons: 7th button centered across 3 columns */
.table-actions:has(> :nth-child(7)) > :nth-child(7),
.inv-actions-cell:has(> :nth-child(7)) > :nth-child(7),
.actions-cell:has(> :nth-child(7)) > :nth-child(7),
.cust-actions-cell:has(> :nth-child(7)) > :nth-child(7) {
  grid-column: 1 / span 3 !important;
  justify-self: center !important;
}

/* Global Table Action Button Base - 28px height, 6px radius, unified font & layout */
.btn-action,
.action-btn,
.cust-action-btn,
.btn-action-payment,
.btn-action-view,
.btn-action-wa,
.btn-action-edit,
.btn-action-delete,
.btn-action-status,
.btn-action-print,
.btn-action-new {
  height: 28px !important;
  min-height: 28px !important;
  min-width: 28px !important;
  padding: 0 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

/* Icon inside action button */
.btn-action i,
.action-btn i,
.cust-action-btn i,
.btn-action-payment i,
.btn-action-view i,
.btn-action-wa i,
.btn-action-edit i,
.btn-action-delete i,
.btn-action-status i,
.btn-action-print i,
.btn-action-new i {
  font-size: 12px !important;
}

/* 1. View / Preview / Track Action (Cyan) */
.btn-action-view,
.action-btn.view,
.action-btn:not([class*="edit"]):not([class*="status"]):not([class*="print"]):not([class*="whatsapp"]):not([class*="delete"]) {
  color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.btn-action-view:hover,
.action-btn.view:hover,
.action-btn:not([class*="edit"]):not([class*="status"]):not([class*="print"]):not([class*="whatsapp"]):not([class*="delete"]):hover {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: var(--accent-cyan) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 2. WhatsApp Live / Share Action (Emerald Green) */
.btn-action-wa,
.action-btn.whatsapp {
  color: #25d366 !important;
  background: rgba(37, 211, 102, 0.1) !important;
  border: 1px solid rgba(37, 211, 102, 0.25) !important;
}

.btn-action-wa:hover,
.action-btn.whatsapp:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #000 !important;
  transform: translateY(-1px);
}

/* 3. Edit Action (Indigo / Violet) */
.btn-action-edit,
.action-btn.edit-ticket,
.action-btn.btn-edit {
  color: var(--accent-indigo) !important;
  background: rgba(99, 102, 241, 0.1) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

.btn-action-edit:hover,
.action-btn.edit-ticket:hover,
.action-btn.btn-edit:hover {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: var(--accent-indigo) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 4. Status Update Action (Purple) */
.btn-action-status,
.action-btn.status-up {
  color: #a855f7 !important;
  background: rgba(168, 85, 247, 0.1) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
}

.btn-action-status:hover,
.action-btn.status-up:hover {
  background: rgba(168, 85, 247, 0.25) !important;
  border-color: #a855f7 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 5. Print Slip Action (Sky Blue) */
.btn-action-print,
.action-btn.print {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.1) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

.btn-action-print:hover,
.action-btn.print:hover {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 6. Delete / Trash Action (Rose Red) */
.btn-action-delete,
.action-btn.btn-delete-job,
.action-btn.btn-delete {
  color: var(--accent-rose) !important;
  background: rgba(244, 63, 94, 0.1) !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
}

.btn-action-delete:hover,
.action-btn.btn-delete-job:hover,
.action-btn.btn-delete:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: var(--accent-rose) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 7. New / Add / Create Action (Cyan) */
.btn-action-new {
  color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.btn-action-new:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: var(--accent-cyan) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   CUSTOMER TRACKING PORTAL VIEW (Interactive Stepper & Timeline)
   ========================================================================== */
.tracking-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tracking-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tracking-search-box {
  max-width: 580px;
  margin: 24px auto 0;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass-bright);
}

.tracking-search-box input {
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  color: #fff;
  flex: 1;
}

.tracking-search-box input:focus {
  outline: none;
}

/* Tracking Result Card */
.tracking-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-top: 24px;
}

/* Stepper Component */
.tracking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 40px 0;
  padding: 0 20px;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.stepper-progress-bar {
  position: absolute;
  top: 24px;
  left: 40px;
  height: 4px;
  background: var(--accent-gradient-cyan);
  z-index: 2;
  transition: width var(--transition-slow);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
  text-align: center;
}

.step-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--border-glass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.step-node.completed .step-icon-circle {
  background: var(--accent-emerald);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.step-node.active .step-icon-circle {
  background: var(--accent-cyan);
  border-color: #67e8f9;
  color: #0f172a;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
  animation: pulse 1.8s infinite;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

.step-node.completed .step-label,
.step-node.active .step-label {
  color: var(--text-primary);
}

.step-time {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Timeline Stream */
.timeline-stream {
  position: relative;
  padding-left: 28px;
  margin-top: 24px;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-glass);
}

.timeline-event {
  position: relative;
  margin-bottom: 22px;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--event-color, var(--accent-cyan));
  box-shadow: 0 0 8px var(--event-color, var(--accent-cyan));
}

.timeline-event-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

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

.timeline-event-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-event-time {
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-event-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Modal Popup Components */
.modal-backdrop,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

.modal-backdrop.open,
.modal.open {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Quick Details Drawer / Grid */
.detail-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.detail-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.detail-box-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.detail-box-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 280px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success {
  border-left: 4px solid var(--accent-emerald);
}

.toast.toast-info {
  border-left: 4px solid var(--accent-cyan);
}

.toast.toast-warning {
  border-left: 4px solid var(--accent-amber);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   OPENWA PLUGINS & WHATSAPP WEB SIMULATOR STYLES
   ========================================================================== */
.plugin-card {
  transition: all var(--transition-normal);
  border: 1px solid var(--border-glass);
}

.plugin-card.enabled {
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.08);
}

.plugin-card.disabled {
  opacity: 0.65;
  filter: grayscale(20%);
}

/* Modern Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

[data-theme="light"] .slider {
  background-color: #cbd5e1;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #25d366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* WhatsApp Mobile Simulator Container */
.wa-simulator-box {
  background: #0b141a;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
  position: relative;
}

[data-theme="light"] .wa-simulator-box {
  background: #efeae2;
  border-color: #e2e8f0;
}

.wa-sim-header {
  background: #1f2c34;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .wa-sim-header {
  background: #008069;
  color: #ffffff;
}

.wa-sim-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-sim-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.wa-sim-name {
  font-size: 14px;
  font-weight: 700;
  color: #e9edef;
}

[data-theme="light"] .wa-sim-name {
  color: #ffffff;
}

.wa-sim-sub {
  font-size: 11px;
  color: #8696a0;
}

[data-theme="light"] .wa-sim-sub {
  color: rgba(255, 255, 255, 0.85);
}

/* Chat Messages Area */
.wa-sim-body {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 20px 20px;
}

.wa-bubble-wrap {
  display: flex;
  width: 100%;
}

.wa-bubble-wrap.user-wrap {
  justify-content: flex-end;
}

.wa-bubble-wrap.bot-wrap {
  justify-content: flex-start;
}

.wa-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bot-bubble {
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 2px;
}

[data-theme="light"] .bot-bubble {
  background: #ffffff;
  color: #111827;
}

.user-bubble {
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 2px;
}

[data-theme="light"] .user-bubble {
  background: #d9fdd3;
  color: #111827;
}

.wa-plugin-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #25d366;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-msg-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #8696a0;
  margin-top: 4px;
}

.wa-ticks {
  color: #53bdeb;
  font-weight: bold;
}

/* Typing Indicator Animation */
.wa-typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #202c33;
  width: fit-content;
  border-radius: 12px;
  font-size: 11px;
  color: #8696a0;
}

[data-theme="light"] .wa-typing-indicator {
  background: #ffffff;
}

.wa-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8696a0;
  animation: waDotPulse 1.2s infinite;
}

.wa-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.wa-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waDotPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Chat Input Bar */
.wa-sim-footer {
  background: #202c33;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .wa-sim-footer {
  background: #f0f2f5;
  border-color: #e2e8f0;
}

.wa-sim-input {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #e9edef;
  font-family: inherit;
}

[data-theme="light"] .wa-sim-input {
  background: #ffffff;
  color: #111827;
}

.wa-sim-input:focus {
  outline: none;
}

.wa-sim-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00a884;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.wa-sim-send:hover {
  background: #06cf9c;
  transform: scale(1.05);
}

/* Quick chips */
.wa-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-quick-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
}

.wa-quick-chip:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
  }

  .content-body {
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .col-12,
  .col-8,
  .col-6,
  .col-4,
  .col-3 {
    grid-column: span 1;
  }

  .tracking-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 20px;
  }

  .tracking-stepper::before,
  .stepper-progress-bar {
    display: none;
  }

  .metrics-grid:not(#technicians-list-grid) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .metrics-grid:not(#technicians-list-grid) {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   WHATSAPP QR CODE LOGIN & DEVICE LINKING STYLES
   ========================================================================== */
.wa-login-card {
  background: var(--bg-card);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.08);
}

.wa-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25d366, #128c7e, #00a884);
}

.wa-login-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .wa-login-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.wa-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wa-qr-box {
  width: 260px;
  height: 260px;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wa-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Green laser scan animation */
.wa-scan-laser {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #25d366, #00a884, transparent);
  box-shadow: 0 0 12px #25d366, 0 0 20px #25d366;
  border-radius: 2px;
  top: 10px;
  animation: waLaserMove 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes waLaserMove {
  0% {
    top: 12px;
    opacity: 0.8;
  }

  100% {
    top: 244px;
    opacity: 0.95;
  }
}

/* Center WA Logo in QR */
.wa-qr-center-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.wa-qr-overlay-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
}

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

.wa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.wa-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.wa-step-content h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.wa-step-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* WhatsApp Mode Switcher Tabs */
.wa-mode-nav {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.wa-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.wa-mode-btn.active {
  background: #25d366;
  color: #0b141a;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

/* Dedicated Phone Pairing View */
.wa-phone-pairing-view {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 18px;
}

.wa-phone-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 540px;
}

.wa-country-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* 8-Digit Pairing Code Split Boxes */
.wa-pair-boxes-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.wa-char-cell {
  width: 44px;
  height: 52px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(37, 211, 102, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 26px;
  font-weight: 900;
  color: #25d366;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  animation: waCharPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-dash-cell {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-muted);
  margin: 0 4px;
}

@keyframes waCharPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   COMPLETE WHATSAPP LIVE WEB MESSENGER COMPONENT (FULL PAGE VIEWPORT HEIGHT)
   ========================================================================== */

/* Full Viewport Height Mode for WhatsApp Live Messenger */
.content-body:has(#view-whatsapp-chat.active-view),
body.wa-chat-view-active .content-body {
  padding: 6px 14px 6px 14px;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#view-whatsapp-chat.active-view {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Compact WhatsApp Header Strip */
.wa-chat-header-banner {
  flex-shrink: 0;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-banner-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.35);
  flex-shrink: 0;
}

.wa-full-messenger {
  display: grid;
  grid-template-columns: 340px 1fr;
  flex: 1;
  min-height: 0;
  height: calc(100% - 46px);
  max-height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 0;
}

@media (max-width: 900px) {
  .wa-full-messenger {
    grid-template-columns: 1fr;
    height: auto;
  }

  .wa-chat-list-pane {
    max-height: 280px;
  }
}

/* Left Pane: Conversations List */
.wa-chat-list-pane {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

[data-theme="light"] .wa-chat-list-pane {
  background: #f8fafc;
}

.wa-list-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.wa-list-header h4 {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-search-wrap {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  flex-shrink: 0;
}

.wa-search-wrap i {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

.wa-search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 12.5px;
  font-family: inherit;
}

.wa-search-input:focus {
  outline: none;
  border-color: #25d366;
}

.wa-chats-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(0, 0, 0, 0.2);
}

.wa-chat-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-chat-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wa-chat-item.active {
  background: rgba(37, 211, 102, 0.12);
  border-left: 4px solid #25d366;
}

.wa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  position: relative;
}

.wa-avatar .wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid var(--bg-card);
}

.wa-chat-info {
  flex: 1;
  min-width: 0;
}

.wa-chat-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.wa-chat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.wa-chat-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-chat-preview {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.wa-unread-badge {
  background: #25d366;
  color: #0b141a;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Right Pane: Active Chat Window */
.wa-chat-view-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: #0b141a;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .wa-chat-view-pane {
  background: #efeae2;
}

.wa-chat-topbar {
  padding: 12px 18px;
  background: rgba(31, 44, 52, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

[data-theme="light"] .wa-chat-topbar {
  background: #f0f2f5;
  border-color: #e2e8f0;
}

.wa-active-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-active-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #e9edef;
}

[data-theme="light"] .wa-active-name {
  color: #111827;
}

.wa-active-sub {
  font-size: 11.5px;
  color: #8696a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toggle Bot Switch in Chat Header */
.wa-bot-mode-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wa-bot-mode-pill.staff-mode {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Quick Response Templates Bar */
.wa-templates-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  flex-shrink: 0;
}

.wa-tpl-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wa-tpl-chip:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #25d366;
}

/* Message Stream with Visible Scrollbar */
.wa-chat-stream {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  padding: 16px 20px;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 20px 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 211, 102, 0.6) rgba(0, 0, 0, 0.25);
}

/* Custom Scrollbars for WhatsApp Chat Stream and Chats List */
.wa-chat-stream::-webkit-scrollbar,
.wa-chats-scroll::-webkit-scrollbar {
  width: 8px;
}

.wa-chat-stream::-webkit-scrollbar-track,
.wa-chats-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.wa-chat-stream::-webkit-scrollbar-thumb,
.wa-chats-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.wa-chat-stream::-webkit-scrollbar-thumb:hover,
.wa-chats-scroll::-webkit-scrollbar-thumb:hover {
  background: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

[data-theme="light"] .wa-chat-stream::-webkit-scrollbar-track,
[data-theme="light"] .wa-chats-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

[data-theme="light"] .wa-chat-stream::-webkit-scrollbar-thumb,
[data-theme="light"] .wa-chats-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
}

[data-theme="light"] .wa-chat-stream,
[data-theme="light"] .wa-chats-scroll {
  scrollbar-color: #94a3b8 #f1f5f9;
}

/* Floating Scroll to Bottom Button */
.wa-scroll-bottom-btn {
  position: absolute;
  right: 22px;
  bottom: 110px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31, 44, 52, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  color: #e9edef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-scroll-bottom-btn:hover {
  background: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

[data-theme="light"] .wa-scroll-bottom-btn {
  background: #ffffff;
  color: #111827;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.wa-scroll-unread-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #25d366;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #0b141a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .wa-scroll-unread-pill {
  border-color: #ffffff;
}

.wa-bubble-staff {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  position: relative;
}

[data-theme="light"] .wa-bubble-staff {
  background: #d9fdd3;
  color: #111827;
}

.wa-bubble-bot {
  background: #1f2c34;
  border-left: 3px solid #25d366;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .wa-bubble-bot {
  background: #ffffff;
  color: #111827;
}

.wa-bubble-customer {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 2px;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .wa-bubble-customer {
  background: #ffffff;
  color: #111827;
}

/* In-Bubble Interactive Touch Action Buttons */
.wa-interactive-buttons {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="light"] .wa-interactive-buttons {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.wa-touch-btn {
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
}

.wa-touch-btn:hover,
.wa-touch-btn:active {
  background: #25d366;
  color: #0b141a;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.wa-touch-btn i {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

/* Persistent Touch Action Menu Bar above Composer */
.wa-touch-actions-bar {
  flex-shrink: 0;
  padding: 7px 16px;
  background: rgba(11, 20, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

[data-theme="light"] .wa-touch-actions-bar {
  background: #e2e8f0;
  border-top-color: rgba(0, 0, 0, 0.08);
}

.wa-touch-label {
  font-size: 11px;
  font-weight: 800;
  color: #25d366;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 2px;
}

.wa-touch-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wa-touch-chip:hover,
.wa-touch-chip:active {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25d366;
  color: #25d366;
  transform: translateY(-1px);
}

/* Bottom Composer Bar - Always Permanently Visible On Screen */
.wa-composer-bar {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 25;
  padding: 12px 18px;
  background: #202c33;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .wa-composer-bar {
  background: #f0f2f5;
  border-color: #e2e8f0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.wa-composer-input {
  flex: 1;
  background: #2a3942;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 13.5px;
  color: #e9edef;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .wa-composer-input {
  background: #ffffff;
  color: #111827;
  border-color: #cbd5e1;
}

.wa-composer-input:focus {
  outline: none;
  border-color: #25d366;
}

.wa-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00a884;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wa-send-btn:hover {
  background: #06cf9c;
  transform: scale(1.05);
}

/* ==========================================================================
   TECHNICIAN MANAGEMENT & WORKLOAD ENHANCEMENTS
   ========================================================================== */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  border-color: var(--border-glass-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.12);
}

.tech-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.tech-avatar-wrap {
  position: relative;
}

.tech-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.25) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-indigo);
  flex-shrink: 0;
}

.tech-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-card);
}

.tech-online-dot.offline {
  background: #94a3b8;
}

.tech-info-main {
  flex: 1;
}

.tech-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-role {
  font-size: 12.5px;
  color: var(--accent-cyan);
  font-weight: 600;
  line-height: 1.3;
}

.tech-actions-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tech-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.tech-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.tech-action-btn.edit:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #818cf8;
}

.tech-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.tech-action-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #25d366;
}

.tech-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tech-contact-row a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
}

.tech-contact-row a:hover {
  color: #25d366;
}

.tech-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-skill-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  font-weight: 600;
}

.tech-workload-section {
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
  margin-top: auto;
}

.tech-workload-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.tech-workload-bar-track {
  height: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.tech-workload-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.tech-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

[data-theme="light"] .tech-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tech-avatar {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .tech-skill-chip {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

[data-theme="light"] .tech-workload-bar-track {
  background: #e2e8f0;
}

/* ==========================================================================
   BUTTON ROSE / DANGER & THEMED CONFIRMATION MODAL
   ========================================================================== */
.btn-rose {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
  border: none;
}

.btn-rose:hover {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.5);
  transform: translateY(-2px);
}

.custom-confirm-card {
  max-width: 490px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 0, 0, 0.5);
  animation: confirmScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes confirmScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-confirm-body {
  padding: 26px 26px 18px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.custom-confirm-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.custom-confirm-icon-wrap.type-danger {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.custom-confirm-icon-wrap.type-warning {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.custom-confirm-icon-wrap.type-info {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.custom-confirm-icon-wrap.type-success {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.custom-confirm-content {
  flex: 1;
}

.custom-confirm-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.confirm-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.custom-confirm-msg {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 4px;
}

.custom-confirm-msg b {
  color: var(--text-primary);
  font-weight: 700;
}

.confirm-subbox {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-bright);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.confirm-subbox.type-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.confirm-subbox.type-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.confirm-subbox.type-info {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.confirm-subbox.type-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.custom-confirm-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

[data-theme="light"] .custom-confirm-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .confirm-subbox {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ==========================================================================
   ANDROID 9-DOT PATTERN LOCK DRAWER & SEARCHABLE FAULT COMBOBOX
   ========================================================================== */

/* 9-Dot Pattern Drawer Grid */
.p-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.p-dot-wrap:hover {
  transform: scale(1.1);
}

.p-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #64748b;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.p-num {
  font-size: 10px;
  font-family: monospace;
  color: #64748b;
  margin-top: 3px;
  user-select: none;
}

.p-dot-wrap.active .p-dot {
  background: #6366f1;
  border-color: #a5b4fc;
  box-shadow: 0 0 14px #6366f1, 0 0 22px #818cf8;
  transform: scale(1.25);
}

.p-dot-wrap.active .p-num {
  color: #818cf8;
  font-weight: 800;
}

/* Searchable Faults Combobox */
.fault-option-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.fault-option-item:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.fault-option-item.selected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 700;
}

.fault-tag-chip {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.fault-tag-chip .remove-tag {
  cursor: pointer;
  color: #f87171;
  font-size: 10px;
}

.fault-tag-chip .remove-tag:hover {
  color: #ef4444;
}

/* ==========================================================================
   Customer Management & Intake Autocomplete Styles
   ========================================================================== */

.cust-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  max-height: 280px;
  overflow-y: auto;
  margin-top: 4px;
}

[data-theme="light"] .cust-autocomplete-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.cust-autocomplete-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .cust-autocomplete-item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

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

.cust-autocomplete-item:hover,
.cust-autocomplete-item.active {
  background: rgba(56, 189, 248, 0.15);
}

.cust-ac-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cust-ac-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cust-ac-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-weight: 600;
  white-space: nowrap;
}

.cust-add-new-btn-item {
  padding: 9px 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-top: 1px dashed rgba(16, 185, 129, 0.3);
  transition: background 0.15s ease;
}

.cust-add-new-btn-item:hover {
  background: rgba(16, 185, 129, 0.22);
}

/* Customer Table Badges & Action Buttons */
.cust-avatar-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(56, 189, 248, 0.4));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  margin-right: 10px;
  flex-shrink: 0;
}

.cust-history-chip {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cust-history-chip:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.cust-action-btn {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SMART COMPACT NO-SCROLL LAYOUT FOR NEW REPAIR TICKET (#view-new-job)
   ========================================================================== */
.content-body:has(#view-new-job.active-view) {
  padding: 10px 20px;
}

#view-new-job .glass-card {
  padding: 10px 16px;
  margin-bottom: 0;
  border-radius: var(--radius-md);
}

#view-new-job .card-header {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.job-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

@media (max-width: 1080px) {
  .job-sheet-grid {
    grid-template-columns: 1fr;
  }
}

.job-subcard {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px 10px;
}

.job-subcard-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

#view-new-job .form-grid {
  gap: 6px;
}

#view-new-job .form-group {
  gap: 2px;
}

#view-new-job .form-group label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
}

#view-new-job .form-control {
  padding: 5px 10px;
  font-size: 14px;
  height: 35px;
  border-radius: 6px;
}

#view-new-job .checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

#view-new-job .check-item {
  padding: 5px 8px;
  font-size: 12.5px;
  margin: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#view-new-job .check-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #06b6d4;
  margin: 0;
}

#view-new-job .check-item span {
  font-size: 12.5px;
  white-space: nowrap;
}

/* 3 Distinct Colored Tabs / Panels */
.job-tab-cyan {
  border: 1.5px solid rgba(6, 182, 212, 0.45) !important;
  border-top: 3px solid #06b6d4 !important;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.05) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.09) !important;
}

.job-tab-amber {
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  border-top: 3px solid #f59e0b !important;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.05) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.09) !important;
}

.job-tab-emerald {
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  border-top: 3px solid #10b981 !important;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.09) !important;
}

.billing-fullwidth-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 1150px) {
  .billing-fullwidth-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

[data-theme="light"] .job-tab-cyan {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  border-color: rgba(6, 182, 212, 0.45) !important;
}

[data-theme="light"] .job-tab-amber {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

[data-theme="light"] .job-tab-emerald {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.cust-dropdown-toggle:hover {
  color: var(--accent-cyan) !important;
}

/* ==========================================================================
   AUTHENTICATION & USER MANAGEMENT STYLES
   ========================================================================== */

/* Fullscreen Login Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.96) 0%, rgba(10, 15, 29, 0.99) 100%);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.hidden,
.login-overlay.hidden-auth {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(17, 24, 39, 0.88) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 40px rgba(6, 182, 212, 0.15) !important;
  padding: 28px 26px !important;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
}

.login-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo-circle {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 4px;
}

.login-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.login-alert-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.login-input {
  padding-left: 36px !important;
  height: 38px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.2s ease !important;
}

.login-input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2) !important;
  background: rgba(15, 23, 42, 0.9) !important;
}

.login-submit-btn {
  width: 100%;
  height: 40px;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}

.login-footer-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Topbar User Profile Widget */
.topbar-user-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px 3px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  margin-left: 4px;
}

.topbar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 800;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  text-transform: uppercase;
}

.topbar-user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.topbar-user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-role-badge {
  font-size: 9.5px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: capitalize;
}

.role-pill.role-admin {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.role-pill.role-receptionist {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.role-pill.role-technician {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.role-pill.role-viewer {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-logout {
  width: 24px;
  height: 24px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-rose) !important;
  background: rgba(244, 63, 94, 0.1) !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #fff !important;
}

.logout-btn-text {
  display: none;
}

/* User management permissions tags */
.perm-tag,
.perm-tag-item {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  margin: 1px 2px;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Role Restriction: Hide delete button on tickets for non-admin */
body.restrict-no-delete-jobs .btn-delete-job,
body.restrict-no-delete-jobs .action-btn.btn-delete-job {
  display: none !important;
}

/* ==========================================================================
   SPARE PARTS & SOFTWARE TOOLS INVENTORY STYLES
   ========================================================================== */
.inv-thumb-wrap {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-bright);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin: 0 auto;
}

.inv-thumb-wrap:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
  border-color: var(--accent-cyan);
}

.inv-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-thumb-placeholder {
  color: var(--text-muted);
  font-size: 16px;
}

.inv-actions-cell {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.btn-action-view {
  color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.btn-action-view:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  color: #fff !important;
}

.btn-action-wa {
  color: #25d366 !important;
  background: rgba(37, 211, 102, 0.1) !important;
  border: 1px solid rgba(37, 211, 102, 0.25) !important;
}

.btn-action-wa:hover {
  background: #25d366 !important;
  color: #000 !important;
}

.btn-action-edit {
  color: var(--accent-indigo) !important;
  background: rgba(99, 102, 241, 0.1) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

.btn-action-edit:hover {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #fff !important;
}

.btn-action-delete {
  color: var(--accent-rose) !important;
  background: rgba(244, 63, 94, 0.1) !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
}

.btn-action-delete:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #fff !important;
}

.profit-pill-pos {
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 12px;
}

.profit-pill-neg {
  color: var(--accent-rose);
  font-weight: 700;
  font-size: 12px;
}

/* Custom Dropdown Trigger & Parts Selection Styles */
.custom-dropdown-trigger {
  transition: all 0.2s ease;
  user-select: none;
}

.custom-dropdown-trigger:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.part-option-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.part-option-item:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

.part-option-item.selected {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #38bdf8;
  font-weight: 700;
}

.selected-part-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 6px;
  padding: 5px 10px;
  transition: all 0.15s ease;
}

.selected-part-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(15, 23, 42, 0.95);
}

.selected-part-card-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  background: #1e293b;
}

.selected-part-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ==========================================================================
   CUSTOMER WHATSAPP STATUS MESSAGE TEMPLATES CUSTOMIZER
   ========================================================================== */
.status-templates-card {
  position: relative;
  overflow: hidden;
}

.status-tpl-tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 6px;
}

.status-tpl-tabs-wrapper::-webkit-scrollbar {
  height: 6px;
}

.status-tpl-tabs-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.status-tpl-tabs-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: max-content;
}

.status-tpl-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 8px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  user-select: none;
}

.status-tpl-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.status-tpl-tab-btn.active {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.2);
}

.status-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-tab-step {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.status-tpl-tab-btn.active .status-tab-step {
  background: rgba(37, 211, 102, 0.25);
}

.status-tab-label {
  white-space: nowrap;
}

.status-tpl-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.status-tpl-editor-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-tpl-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.btn-variable-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--accent-cyan);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-variable-chip code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 700;
  color: #fff;
}

.btn-variable-chip .chip-desc {
  color: var(--text-muted);
  font-size: 10.5px;
}

.btn-variable-chip:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.status-tpl-preview-col {
  display: flex;
  flex-direction: column;
}

.wa-simulated-phone-container {
  background: #0b141a;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 14px;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.wa-sim-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.wa-preview-bubble-box {
  background: #005c4b;
  border-radius: 12px;
  border-top-right-radius: 2px;
  padding: 8px;
  margin-left: auto;
  max-width: 96%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1080px) {
  .status-tpl-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GATEWAY SETTINGS TABS SYSTEM
   Modern, responsive multi-tab layout for WhatsApp Gateway & Shop Settings
   ========================================================================== */

.gateway-tabs-bar-wrapper {
  margin: 18px 0 24px;
  background: rgba(18, 26, 36, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.gateway-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.gateway-tabs-bar::-webkit-scrollbar {
  height: 5px;
}

.gateway-tabs-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.gateway-tabs-bar::-webkit-scrollbar-thumb {
  background: rgba(37, 211, 102, 0.35);
  border-radius: 4px;
}

.gateway-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: left;
}

.gateway-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.gateway-tab-btn.active {
  background: rgba(37, 211, 102, 0.12);
  color: #fff;
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gw-tab-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gateway-tab-btn:hover .gw-tab-icon-box {
  transform: scale(1.08);
}

.gateway-tab-btn.active .gw-tab-icon-box {
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}

.gw-tab-text {
  display: flex;
  flex-direction: column;
}

.gw-tab-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.gw-tab-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.gateway-tab-btn.active .gw-tab-subtitle {
  color: #a7f3d0;
}

/* Gateway Tab Panes */
.gateway-tab-pane {
  display: none;
  animation: gwPaneFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-tab-pane.active-pane {
  display: block;
}

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

/* ==========================================================================
   ALL REPAIR RECORDS - STATUS TABS
   ========================================================================== */
.repair-records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.repair-records-title-group h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.repair-records-title-group p {
  margin: 4px 0 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.repair-status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.repair-status-tabs::-webkit-scrollbar {
  display: none;
}

.repair-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.repair-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.repair-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.22));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.repair-tab-btn.active[data-tab="completed"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.22));
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.repair-tab-btn.active[data-tab="delivered"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.22));
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.repair-tab-btn.active[data-tab="cancelled"] {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(225, 29, 72, 0.22));
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}

.repair-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: inherit;
  transition: all 0.2s ease;
}

.repair-tab-btn.active .repair-tab-badge {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   WHATSAPP ACTIVE CHAT HEADER - SMART STATUS SELECTOR
   ========================================================================== */
.wa-status-inline-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.wa-header-status-select {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 3px 22px 3px 8px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2338bdf8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  transition: all 0.2s ease;
}

.wa-header-status-select:hover {
  background-color: rgba(14, 165, 233, 0.28);
  border-color: rgba(56, 189, 248, 0.7);
}

.wa-header-status-select option {
  background: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
}