/* ========================================================
   VIHOO OVERSEAS — ENTERPRISE ADMIN PANEL STYLES
   ======================================================== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #F1F5F9;
  color: #1E293B;
  font-family: 'Inter', sans-serif;
}

/* ---------- ADMIN SIDEBAR ---------- */
.admin-sidebar {
  width: 260px;
  background: var(--navy-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  z-index: 100;
}

.admin-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  height: 38px;
  filter: brightness(0) invert(1);
}

.admin-sidebar-nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}
.admin-nav-item .badge {
  margin-left: auto;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

/* ---------- ADMIN MAIN CONTENT ---------- */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: var(--shadow-sm);
}

.admin-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.admin-view-container {
  padding: 32px;
  flex-grow: 1;
  overflow-y: auto;
}

/* ---------- KANBAN CRM BOARD ---------- */
.kanban-board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.kanban-col {
  width: 300px;
  flex-shrink: 0;
  background: #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

.kanban-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.card-source-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(7,162,177,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.card-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.card-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.card-footer { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-dark); font-weight: 600; }

/* ---------- TOUR CONSULTANT WORKSPACE (3-PANES) ---------- */
.consultant-workspace {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  gap: 24px;
  height: calc(100vh - 170px);
}

.workspace-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.timeline-day-item {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.timeline-day-header {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

/* ---------- ACTIVE TRAVEL EMERGENCY DASHBOARD ---------- */
.active-travel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.emergency-alert-card {
  border-left: 4px solid #EF4444;
  background: #FEF2F2;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.status-badge-urgent {
  background: #EF4444;
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ============================================================
   ADMIN SPA — FULL PORTAL STYLES
   ============================================================ */

:root {
  --admin-bg: #F1F5F9;
  --admin-accent: #07A2B1;
  --admin-border: #E2E8F0;
  --admin-text: #1E293B;
  --admin-muted: #64748B;
  --admin-radius: 10px;
  --admin-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-body { font-family: 'Inter', sans-serif; background: var(--admin-bg); color: var(--admin-text); margin: 0; padding: 0; overflow: hidden; }

/* Login */
.login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%); }
.login-card { background: #fff; border-radius: 20px; padding: 48px 44px; width: 100%; max-width: 440px; box-shadow: 0 24px 80px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-title { font-size: 1.8rem; font-weight: 800; color: #0F172A; text-align: center; margin: 0 0 4px; }
.login-subtitle { text-align: center; color: var(--admin-muted); font-size: 0.9rem; margin-bottom: 32px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: #334155; }
.login-form input { width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1.5px solid #CBD5E1; border-radius: 10px; font-size: 1rem; transition: border-color 0.2s; font-family: inherit; }
.login-form input:focus { border-color: var(--admin-accent); outline: none; }
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.btn-login { width: 100%; padding: 14px; background: linear-gradient(135deg, #07A2B1, #0F5FA6); color: #fff; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.btn-login:hover { opacity: 0.9; }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }
.login-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #DC2626; padding: 10px 14px; border-radius: 8px; font-size: 0.875rem; margin-top: 12px; }
.login-footer { text-align: center; color: var(--admin-muted); font-size: 0.8rem; margin-top: 28px; }

/* Shell */
#adminShell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ---------- ENTERPRISE HIGH-CONTRAST ADMIN TOPBAR HEADER ---------- */
.admin-topbar {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  background: #0B132B !important; /* Deepest Navy for max contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 24px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
  z-index: 100 !important;
  overflow: hidden !important;
}

.topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 0 !important;
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  padding: 5px 11px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.sidebar-toggle:hover {
  background: var(--admin-accent) !important;
  border-color: var(--admin-accent) !important;
  color: #FFFFFF !important;
}

.topbar-brand {
  display: flex !important;
  align-items: center !important;
}

.topbar-logo-box {
  background: #FFFFFF !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.topbar-logo {
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.pulse-dot {
  width: 7px !important;
  height: 7px !important;
  background: #10B981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8) !important;
  animation: pulseGreen 2s infinite !important;
  display: inline-block !important;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* High-Contrast Quick Search Box */
.topbar-center {
  flex: 1 !important;
  max-width: 440px !important;
  margin: 0 16px !important;
}

.topbar-search-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.topbar-search-box .search-icon {
  position: absolute !important;
  left: 12px !important;
  font-size: 0.9rem !important;
  color: #CBD5E1 !important; /* Bright icon */
  pointer-events: none !important;
}

.topbar-search-input {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.15) !important; /* High contrast background */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 20px !important;
  padding: 7px 38px 7px 36px !important;
  color: #FFFFFF !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.topbar-search-input::placeholder {
  color: #CBD5E1 !important; /* Extremely high contrast placeholder! */
  opacity: 1 !important;
  font-weight: 500 !important;
}

.topbar-search-input:focus {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35) !important;
}

.topbar-search-box .search-kbd {
  position: absolute !important;
  right: 10px !important;
  font-size: 0.68rem !important;
  font-family: monospace !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
}

.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

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

.topbar-action-btn {
  background: linear-gradient(135deg, #07A2B1, #0F5FA6) !important; /* Solid vibrant brand gradient */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(7, 162, 177, 0.4) !important;
}
.topbar-action-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(7, 162, 177, 0.6) !important;
}

.topbar-divider {
  width: 1px !important;
  height: 22px !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.topbar-badge-wrap {
  position: relative !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #FFFFFF !important;
  font-size: 0.85rem !important;
  white-space: nowrap !important;
}
.topbar-badge-wrap:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #F97316 !important;
}

.bell-count {
  background: #F97316 !important;
  color: #FFFFFF !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
}

.topbar-user-chip {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 4px 12px 4px 5px !important;
  border-radius: 24px !important;
  cursor: pointer !important;
}

.user-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #07A2B1 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.user-info {
  display: flex !important;
  flex-direction: column !important;
}

.user-name {
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  color: #FFFFFF !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.user-role {
  font-size: 0.7rem !important;
  color: #38BDF8 !important;
  font-weight: 700 !important;
  text-transform: capitalize !important;
  white-space: nowrap !important;
}

.btn-logout {
  background: #DC2626 !important; /* Solid vibrant red button for maximum contrast */
  color: #FFFFFF !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
  transition: all 0.2s ease !important;
}
.btn-logout:hover {
  background: #B91C1C !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6) !important;
}

/* ---------- MASTER FLEX BODY & SIDEBAR LAYOUT ---------- */
.admin-body-container {
  display: flex !important;
  flex: 1 !important;
  height: calc(100vh - 64px) !important;
  max-height: calc(100vh - 64px) !important;
  width: 100vw !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Sidebar */
.admin-sidebar {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  height: 100% !important;
  background: #0F172A !important;
  color: #FFFFFF !important;
  overflow-y: auto !important;
  padding: 16px 0 !important;
  z-index: 50 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-sidebar.collapsed {
  margin-left: -240px !important;
}

.sidebar-section {
  padding: 8px 0;
}

.sidebar-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  padding: 10px 20px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.sidebar-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
  color: #38BDF8;
  background: rgba(7, 162, 177, 0.15);
  border-left-color: var(--admin-accent);
}

/* Main Full Width Workspace Layout */
.admin-main {
  flex: 1 !important;
  height: 100% !important;
  margin: 0 !important;
  overflow-y: auto !important;
  padding: 24px 32px !important;
  box-sizing: border-box !important;
  background: #F8FAFC !important;
  width: 100% !important;
  max-width: 100% !important;
}

.admin-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.admin-main .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-main .section-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--admin-text); margin: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #07A2B1, #0F5FA6); color: #fff; border: none; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: #F8FAFC; color: var(--admin-text); border: 1px solid var(--admin-border); padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; }
.btn-whatsapp { background: #25D366; color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 0.875rem; text-decoration: none; display: inline-block; }
.btn-call { background: #0F5FA6; color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 0.875rem; text-decoration: none; display: inline-block; }
.btn-danger-sm { background: #FEF2F2; color: #DC2626; border: 1px solid #FCA5A5; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }

/* Inputs */
.header-actions input, .header-actions select, #leadSearch, #custSearch { padding: 8px 14px; border: 1.5px solid var(--admin-border); border-radius: 8px; font-size: 0.875rem; background: #fff; font-family: inherit; min-width: 140px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-bottom: 28px; }
.kpi-card { background: #fff; border-radius: var(--admin-radius); padding: 22px; box-shadow: var(--admin-shadow); border-top: 4px solid #07A2B1; }
.kpi-card.kpi-blue  { border-top-color: #3B82F6; }
.kpi-card.kpi-green { border-top-color: #10B981; }
.kpi-card.kpi-orange{ border-top-color: #F59E0B; }
.kpi-card.kpi-purple{ border-top-color: #8B5CF6; }
.kpi-card.kpi-red   { border-top-color: #EF4444; }
.kpi-card.kpi-teal  { border-top-color: #07A2B1; }
.kpi-num { font-size: 2rem; font-weight: 800; color: var(--admin-text); line-height: 1; }
.kpi-label { font-size: 0.8rem; color: var(--admin-muted); font-weight: 600; margin-top: 6px; }

/* Dashboard */
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-card { background: #fff; border-radius: var(--admin-radius); padding: 22px; box-shadow: var(--admin-shadow); }
.dash-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.pipeline-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--admin-border); font-size: 0.875rem; }
.recent-lead-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; cursor: pointer; border-bottom: 1px solid var(--admin-border); font-size: 0.875rem; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); overflow: hidden; font-size: 0.875rem; }
.data-table thead th { padding: 14px 16px; text-align: left; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--admin-muted); background: #F8FAFC; border-bottom: 1px solid var(--admin-border); }
.data-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--admin-border); }
.data-table tbody tr.table-row:hover { background: #F0F9FF; cursor: pointer; }
.loading-cell, .empty-cell, .error-cell { text-align: center; color: var(--admin-muted); padding: 24px; }
.error-cell { color: #DC2626; }

/* Badges */
.badge { background: #E2E8F0; color: var(--admin-text); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.stage-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; background: #E2E8F0; color: var(--admin-text); }
.stage-pill.stage-confirmed { background: #D1FAE5; color: #065F46; }
.stage-pill.stage-lost { background: #FEE2E2; color: #991B1B; }
.stage-pill.stage-travel-active { background: #DBEAFE; color: #1E40AF; }
.stage-pill.stage-new-lead { background: #EDE9FE; color: #5B21B6; }
.source-chip { background: rgba(7,162,177,0.1); color: #0F5FA6; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.tag-chip { background: var(--admin-bg); border: 1px solid var(--admin-border); color: var(--admin-muted); padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; display: inline-block; margin: 2px; }
.doc-status.valid { background: #D1FAE5; color: #065F46; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.doc-status.expiring_soon { background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.doc-status.expired { background: #FEE2E2; color: #991B1B; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }

/* Stage select */
.stage-select { border: 1px solid var(--admin-border); border-radius: 6px; padding: 5px 8px; font-size: 0.78rem; background: #fff; cursor: pointer; font-family: inherit; }

/* Lead Cards */
.lead-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lead-card { background: #fff; border-radius: var(--admin-radius); padding: 18px; box-shadow: var(--admin-shadow); cursor: pointer; border: 1px solid var(--admin-border); transition: all 0.2s; }
.lead-card:hover { border-color: var(--admin-accent); transform: translateY(-2px); }
.lead-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lead-card-service { font-size: 0.8rem; color: var(--admin-muted); margin-top: 4px; }
.follow-up-chip { background: #FEF3C7; color: #92400E; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; margin-top: 8px; display: inline-block; }

/* Modal detail */
.lead-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.lead-modal-grid label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--admin-muted); display: block; margin-bottom: 2px; }
.lead-modal-grid p { margin: 0; font-weight: 600; }
.lead-modal-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }

/* Timeline */
.timeline { max-height: 260px; overflow-y: auto; margin: 12px 0; }
.timeline-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--admin-border); }
.timeline-dot { width: 8px; height: 8px; background: var(--admin-accent); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.timeline-action { font-weight: 700; font-size: 0.82rem; text-transform: capitalize; }
.timeline-text { font-size: 0.875rem; margin: 2px 0; }
.timeline-meta { font-size: 0.75rem; color: var(--admin-muted); }
.add-note-row { display: flex; gap: 10px; margin-top: 12px; }
.add-note-row input { flex: 1; padding: 9px 14px; border: 1.5px solid var(--admin-border); border-radius: 8px; font-size: 0.875rem; font-family: inherit; }

/* Tour Grid */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tour-admin-card { background: #fff; border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); overflow: hidden; border: 1px solid var(--admin-border); }
.tour-thumb { width: 100%; height: 160px; object-fit: cover; }
.tour-thumb-placeholder { width: 100%; height: 160px; background: #E2E8F0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.tour-admin-body { padding: 16px; }
.tour-code { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--admin-accent); margin-bottom: 4px; }
.tour-admin-body h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.tour-pricing { font-size: 0.82rem; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tour-pricing strong { color: var(--admin-accent); }

/* Forms in modal */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: var(--admin-muted); }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1.5px solid var(--admin-border); border-radius: 8px; font-size: 0.875rem; font-family: inherit; background: #fff; }
.form-group input:focus, .form-group select:focus { border-color: var(--admin-accent); outline: none; }
.form-group textarea { resize: vertical; min-height: 80px; }

/* CMS Tabs */
.cms-tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; background: #fff; padding: 6px; border-radius: 10px; box-shadow: var(--admin-shadow); }
.cms-tab { padding: 8px 20px; border: none; background: none; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; color: var(--admin-muted); }
.cms-tab.active { background: var(--admin-accent); color: #fff; }

/* Customer/Doc */
.traveler-list, .doc-list { margin-top: 8px; }
.traveler-row, .doc-row { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: var(--admin-bg); border-radius: 8px; margin-bottom: 6px; font-size: 0.875rem; }
.doc-type { font-weight: 700; text-transform: capitalize; min-width: 120px; }

/* Modal Overlay */
.admin-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-modal-box { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.3); }
.admin-modal-box h3 { margin: 0 0 20px; font-size: 1.3rem; font-weight: 800; }
.admin-modal-box h4 { font-size: 1rem; font-weight: 700; margin: 20px 0 10px; }
.modal-close-btn { position: absolute; top: 16px; right: 18px; background: #F1F5F9; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--admin-muted); }

/* Toast */
.admin-toast { position: fixed; bottom: 24px; right: 24px; z-index: 2000; padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); animation: slideUp 0.3s ease; }
.toast-success { background: #059669; color: #fff; }
.toast-error   { background: #DC2626; color: #fff; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* States */
.loading-state, .empty-state, .error-state { text-align: center; padding: 48px; color: var(--admin-muted); font-weight: 600; }
.error-state { color: #DC2626; }

/* ========================================================
   MY LEADS WORKDESK — ENTERPRISE UI
   ======================================================== */
.myleads-workdesk-header {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--admin-shadow);
}
.myleads-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.myleads-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px 0;
}
.myleads-subtitle {
  font-size: 0.88rem;
  color: var(--admin-muted);
  margin: 0;
}
.myleads-actions {
  display: flex;
  gap: 10px;
}

/* KPI Ribbon */
.myleads-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.myleads-kpi-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}
.myleads-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.myleads-kpi-card .kpi-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.myleads-kpi-card .kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.myleads-kpi-card .kpi-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--admin-muted);
}
.myleads-kpi-card.highlight-orange { background: #FFFBEB; border-color: #FDE68A; }
.myleads-kpi-card.highlight-orange .kpi-val { color: #D97706; }
.myleads-kpi-card.highlight-green { background: #ECFDF5; border-color: #A7F3D0; }
.myleads-kpi-card.highlight-green .kpi-val { color: #059669; }
.myleads-kpi-card.highlight-purple { background: #F5F3FF; border-color: #DDD6FE; }
.myleads-kpi-card.highlight-purple .kpi-val { color: #7C3AED; }

/* Filter & View Switcher */
.myleads-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}
.filter-group-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}
.myleads-search-input {
  min-width: 240px;
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.88rem;
  background: #fff;
}
.myleads-select-filter {
  padding: 9px 12px;
  border: 1.5px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  font-family: inherit;
}
.view-switcher-group {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.view-tab-btn {
  padding: 7px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-tab-btn.active {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Kanban Board Styling */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: flex-start;
}
.kanban-column {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
}
.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2E8F0;
}
.kanban-column-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100px;
}

/* Enhanced Workdesk Lead Card */
.workdesk-lead-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  position: relative;
}
.workdesk-lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,56,121,0.12);
  border-color: var(--admin-accent);
}
.workdesk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.workdesk-lead-num {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-accent);
  background: rgba(7,162,177,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.workdesk-customer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.workdesk-lead-meta {
  font-size: 0.82rem;
  color: var(--admin-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.workdesk-ctas {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}
.btn-cta-wa {
  background: #25D366;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-cta-wa:hover { background: #1ebe5d; color: #fff; }
.btn-cta-call {
  background: #3B82F6;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-cta-call:hover { background: #2563EB; color: #fff; }
.priority-pill-high { background: #FEE2E2; color: #991B1B; font-weight: 700; font-size: 0.72rem; padding: 2px 8px; border-radius: 50px; }
.priority-pill-medium { background: #FEF3C7; color: #92400E; font-weight: 700; font-size: 0.72rem; padding: 2px 8px; border-radius: 50px; }
.priority-pill-low { background: #E0E7FF; color: #3730A3; font-weight: 700; font-size: 0.72rem; padding: 2px 8px; border-radius: 50px; }
