/*
 * ============================================================================
 * WHALEXY DESIGN SYSTEM
 * Cyprus + Sand Brand Theme
 * ============================================================================
 */

/* ── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Brand Palette */
  --wx-cyprus: #004741;
  --wx-cyprus-deep: #00332f;
  --wx-cyprus-soft: #17635c;
  --wx-sand: #f0ede4;
  --wx-sand-light: #faf8f2;
  --wx-sand-deep: #ded8ca;
  --wx-muted: #69746f;

  /* Semantic Colors */
  --wx-emerald: #059669;
  --wx-emerald-bg: #d1fae5;
  --wx-amber: #d97706;
  --wx-amber-bg: #fef3c7;
  --wx-rose: #e11d48;
  --wx-rose-bg: #ffe4e6;
  --wx-violet: #7c3aed;
  --wx-violet-bg: #ede9fe;
  --wx-sky: #0284c7;
  --wx-sky-bg: #e0f2fe;
  --wx-orange: #ea580c;
  --wx-orange-bg: #ffedd5;
  --wx-slate: #64748b;
  --wx-slate-bg: #f1f5f9;

  /* Panel / Surface (light mode) */
  --wx-panel: #ffffff;
  --wx-line: #e8e5de;
  --wx-soft: #faf8f2;
  --wx-heading: #00332f;
  --wx-body: #faf8f2;

  /* Layout */
  --wx-sidebar-width: 260px;
  --wx-sidebar-collapsed-width: 72px;
  --wx-topbar-height: 64px;

  /* Typography */
  --wx-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wx-font-display: 'Outfit', 'Inter', sans-serif;

  /* Radius */
  --wx-radius-sm: 6px;
  --wx-radius: 10px;
  --wx-radius-lg: 14px;
  --wx-radius-xl: 18px;

  /* Shadows */
  --wx-shadow-sm: 0 1px 3px rgba(0, 71, 65, 0.06);
  --wx-shadow: 0 4px 16px rgba(0, 71, 65, 0.08);
  --wx-shadow-lg: 0 10px 32px rgba(0, 71, 65, 0.1);
  --wx-shadow-xl: 0 20px 50px rgba(0, 71, 65, 0.12);

  /* Transitions */
  --wx-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wx-duration: 0.2s;
}

/* ── Dark Mode ─────────────────────────────────────────────────────────────── */
.wx-dark {
  --wx-panel: #074f48;
  --wx-line: #28736c;
  --wx-soft: #0c5a53;
  --wx-muted: #c6c7bd;
  --wx-heading: #f0ede4;
  --wx-body: var(--wx-cyprus-deep);
}

/* ── Reset Overrides ──────────────────────────────────────────────────────── */
.wx-app {
  font-family: var(--wx-font);
  background: var(--wx-body);
  color: var(--wx-cyprus-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wx-app *,
.wx-app *::before,
.wx-app *::after {
  box-sizing: border-box;
}

.wx-app ::selection {
  background: var(--wx-cyprus);
  color: var(--wx-sand);
}

/* ── Typography ───────────────────────────────────────────────────────────── */
.wx-app h1,
.wx-app h2,
.wx-app h3,
.wx-app h4 {
  font-family: var(--wx-font-display);
  color: var(--wx-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.wx-app h1 {
  font-size: 1.75rem;
}

.wx-app h2 {
  font-size: 1.375rem;
}

.wx-app h3 {
  font-size: 1.125rem;
}

.wx-app h4 {
  font-size: 0.9375rem;
}

.wx-app p {
  margin: 0;
  color: var(--wx-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.wx-app small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wx-muted);
}

/* ── Dashboard Shell Layout ───────────────────────────────────────────────── */
.wx-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.wx-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--wx-sidebar-width);
  background: linear-gradient(180deg, var(--wx-cyprus), var(--wx-cyprus-deep));
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width var(--wx-duration) var(--wx-ease), transform var(--wx-duration) var(--wx-ease);
  overflow: hidden;
}

.wx-sidebar-collapsed .wx-sidebar {
  width: var(--wx-sidebar-collapsed-width);
}

/* Brand */
.wx-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  min-height: 60px;
}

.wx-sidebar-brand img {
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
}

.wx-sidebar-brand .wx-sidebar-toggle {
  background: none;
  border: none;
  color: #a8b5ae;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--wx-radius-sm);
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-sidebar-brand .wx-sidebar-toggle:hover {
  background: rgba(240, 237, 228, 0.12);
  color: var(--wx-sand);
}

/* Business Context */
.wx-sidebar-business {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 10px 12px;
  background: rgba(240, 237, 228, 0.08);
  border-radius: var(--wx-radius);
  color: var(--wx-sand);
  cursor: pointer;
  transition: background var(--wx-duration) var(--wx-ease);
}

.wx-sidebar-business:hover {
  background: rgba(240, 237, 228, 0.14);
}

.wx-sidebar-business .wx-biz-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--wx-sand);
  color: var(--wx-cyprus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wx-sidebar-business .wx-biz-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.wx-sidebar-business .wx-biz-info b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-sidebar-business .wx-biz-info small {
  font-size: 0.625rem;
  color: #a8b5ae;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wx-sidebar-business .wx-biz-info small i {
  width: 6px;
  height: 6px;
  background: var(--wx-emerald);
  border-radius: 50%;
  display: inline-block;
}

.wx-sidebar-collapsed .wx-sidebar-business .wx-biz-info,
.wx-sidebar-collapsed .wx-sidebar-business svg {
  display: none;
}

/* Sidebar Navigation */
.wx-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 237, 228, 0.15) transparent;
}

.wx-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.wx-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(240, 237, 228, 0.15);
  border-radius: 4px;
}

.wx-sidebar-group {
  margin-bottom: 6px;
}

.wx-sidebar-group-label {
  padding: 10px 12px 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b8a82;
  white-space: nowrap;
  overflow: hidden;
}

.wx-sidebar-collapsed .wx-sidebar-group-label {
  visibility: hidden;
  height: 8px;
  padding: 0;
}

.wx-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  color: #c5ccc5;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--wx-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--wx-duration) var(--wx-ease);
  white-space: nowrap;
  position: relative;
}

.wx-sidebar-link:hover {
  background: rgba(240, 237, 228, 0.12);
  color: var(--wx-sand);
}

.wx-sidebar-link.active {
  /* background: rgba(34, 197, 94, 0.12); */
  color: #f0ede4;
  /* box-shadow: inset 3px 0 0 #22c55e; */
  font-weight: 600;
}

.wx-sidebar-link i,
.wx-sidebar-link svg,
.wx-sidebar-link .wx-sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-sidebar-link .wx-sidebar-text {
  flex: 1;
  text-align: left;
}

.wx-sidebar-collapsed .wx-sidebar-link .wx-sidebar-text,
.wx-sidebar-collapsed .wx-sidebar-link .wx-sidebar-badge {
  display: none;
}

.wx-sidebar-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(240, 237, 228, 0.18);
  color: var(--wx-sand);
  line-height: 1.4;
}

.wx-sidebar-badge-new {
  background: var(--wx-sand);
  color: var(--wx-cyprus);
}

/* Sidebar Footer */
.wx-sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(240, 237, 228, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wx-sidebar-ai-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: rgba(240, 237, 228, 0.08);
  border-radius: var(--wx-radius);
  color: var(--wx-sand);
  cursor: pointer;
  transition: background var(--wx-duration) var(--wx-ease);
}

.wx-sidebar-ai-btn:hover {
  background: rgba(240, 237, 228, 0.14);
}

.wx-sidebar-ai-btn .wx-ai-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--wx-sand);
  color: var(--wx-cyprus);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wx-sidebar-ai-btn .wx-ai-info b {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.wx-sidebar-ai-btn .wx-ai-info small {
  font-size: 0.625rem;
  color: #a8b5ae;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wx-sidebar-ai-btn .wx-ai-info small i {
  width: 6px;
  height: 6px;
  background: var(--wx-emerald);
  border-radius: 50%;
  display: inline-block;
}

.wx-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--wx-radius);
}

.wx-sidebar-user .wx-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--wx-sand);
  color: var(--wx-cyprus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wx-sidebar-user .wx-user-info b {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wx-sand);
}

.wx-sidebar-user .wx-user-info small {
  font-size: 0.625rem;
  color: #a8b5ae;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.wx-sidebar-collapsed .wx-sidebar-ai-btn .wx-ai-info,
.wx-sidebar-collapsed .wx-sidebar-user .wx-user-info {
  display: none;
}

/* ── Main Content Area ────────────────────────────────────────────────────── */
.wx-main {
  flex: 1;
  margin-left: var(--wx-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--wx-duration) var(--wx-ease);
}

.wx-sidebar-collapsed .wx-main {
  margin-left: var(--wx-sidebar-collapsed-width);
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.wx-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  height: var(--wx-topbar-height);
  background: rgba(250, 248, 242, 0.97);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid #e8e5de;
}

.wx-dark .wx-topbar {
  background: rgba(0, 71, 65, 0.97);
  border-bottom-color: #28736c;
}

.wx-topbar-title {
  flex-shrink: 0;
  min-width: 160px;
}

.wx-topbar-title small {
  font-size: 0.5625rem;

  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wx-cyprus);
}

.wx-topbar-title h1 {
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Global Search */
.wx-search {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  height: 44px;
  background: var(--wx-soft);
  border: 1px solid var(--wx-line);
  border-radius: 20px;
  box-shadow: none;
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-search:focus-within {
  /* border-color: var(--wx-cyprus);
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.1); */
}

.wx-search svg {
  width: 16px;
  height: 16px;
  color: var(--wx-muted);
  flex-shrink: 0;
}

.wx-search input {
  flex: 1;
  border: none;
  background: none;
  box-shadow: none;
  min-width: 0;
  height: 100%;
  padding: 0;
  outline: none;
  appearance: none;
  font-size: 0.875rem;
  color: var(--wx-heading);
  font-family: var(--wx-font);
  line-height: 1;
}

.wx-search input::placeholder {
  color: var(--wx-muted);
}

.wx-search kbd {
  font-size: 0.625rem;
  font-family: var(--wx-font);
  padding: 2px 6px;
  background: var(--wx-sand-light);
  border: 1px solid var(--wx-line);
  border-radius: 4px;
  color: var(--wx-muted);
  white-space: nowrap;
}

/* Topbar Actions */
.wx-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.wx-topbar-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wx-muted);
  transition: color var(--wx-duration) var(--wx-ease);
}

.wx-topbar-actions button:hover {
  color: var(--wx-heading);
}

.wx-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: 1px solid transparent;
  color: var(--wx-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-icon-btn:hover {
  background: var(--wx-soft);
  border-color: var(--wx-line);
  color: var(--wx-heading);
}

.wx-icon-btn svg {
  width: 18px;
  height: 18px;
}

.wx-icon-btn .wx-notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--wx-rose);
  border-radius: 50%;
  border: 2px solid var(--wx-sand-light);
}

/* User Avatar Button */
.wx-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: none;
  border: 1px solid var(--wx-line);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-avatar-btn:hover {
  background: var(--wx-soft);
  border-color: var(--wx-cyprus);
}

.wx-avatar-btn .wx-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wx-cyprus);
  color: var(--wx-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
}

.wx-avatar-btn .wx-avatar-info b {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wx-heading);
}

.wx-avatar-btn .wx-avatar-info small {
  font-size: 0.5625rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wx-muted);
  font-weight: 400;
}

/* Mobile Menu Toggle */
.wx-mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--wx-heading);
  cursor: pointer;
}

.wx-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 51, 47, 0.5);
  z-index: 1039;
  border: none;
  cursor: pointer;
}

/* ── Content Area ─────────────────────────────────────────────────────────── */
.wx-content {
  flex: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 14px 16px 20px !important;
  background: linear-gradient(180deg, #f3f6f4 0%, #f5f5f0 48%, #f0f4f2 100%);
}

/* ── Panel / Card ─────────────────────────────────────────────────────────── */
.wx-panel {
  background: #ffffff;
  border: 1px solid #e8e5de;
  border-radius: var(--wx-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 71, 65, 0.05);
  overflow: visible;
}

.wx-panel-padded {
  padding: 20px;
}

.wx-card {
  background: #ffffff;
  border: 1px solid #e8dede;
  border-radius: var(--wx-radius-lg);
  box-shadow: 0 1px 4px rgba(0, 71, 65, 0.06);
  transition: all var(--wx-duration) var(--wx-ease);
  overflow: visible;
}

.wx-card:hover {
  box-shadow: 0 6px 20px rgba(0, 71, 65, 0.09);
}

/* ── Panel Header / View Header ───────────────────────────────────────────── */
.wx-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap;
}

.wx-view-header-info small {
  color: var(--wx-cyprus);
}

.wx-view-header-info h2 {
  margin-top: 4px;
}

.wx-view-header-info p {
  margin-top: 6px;
}

.wx-view-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.wx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--wx-font);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--wx-radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--wx-duration) var(--wx-ease);
  white-space: nowrap;
  line-height: 1.4;
}

.wx-btn svg {
  width: 16px;
  height: 16px;
}

.wx-btn-primary {
  background: var(--wx-cyprus);
  color: var(--wx-sand);
  box-shadow: 0 4px 12px rgba(0, 71, 65, 0.2);
}

.wx-btn-primary:hover {
  background: var(--wx-cyprus-soft);
  box-shadow: 0 6px 16px rgba(0, 71, 65, 0.28);
  transform: translateY(-1px);
}

.wx-btn-secondary {
  background: var(--wx-sand-light);
  border-color: var(--wx-line);
  color: var(--wx-cyprus);
}

.wx-btn-secondary:hover {
  border-color: var(--wx-cyprus);
  background: var(--wx-sand);
}

.wx-btn-danger {
  background: var(--wx-rose);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.wx-btn-danger:hover {
  background: #be123c;
}

.wx-btn-ghost {
  background: none;
  color: var(--wx-cyprus);
}

.wx-btn-ghost:hover {
  background: var(--wx-soft);
}

.wx-btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.wx-btn-lg {
  padding: 11px 22px;
  font-size: 0.875rem;
}

.wx-btn-block {
  width: 100%;
  justify-content: center;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.wx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
}

.wx-badge svg {
  width: 12px;
  height: 12px;
}

.wx-badge-emerald {
  background: var(--wx-emerald-bg);
  color: var(--wx-emerald);
}

.wx-badge-amber {
  background: var(--wx-amber-bg);
  color: var(--wx-amber);
}

.wx-badge-rose {
  background: var(--wx-rose-bg);
  color: var(--wx-rose);
}

.wx-badge-violet {
  background: var(--wx-violet-bg);
  color: var(--wx-violet);
}

.wx-badge-sky {
  background: var(--wx-sky-bg);
  color: var(--wx-sky);
}

.wx-badge-orange {
  background: var(--wx-orange-bg);
  color: var(--wx-orange);
}

.wx-badge-slate {
  background: var(--wx-slate-bg);
  color: var(--wx-slate);
}

.wx-badge-solid-emerald {
  background: var(--wx-emerald);
  color: #fff;
}

.wx-badge-solid-cyprus {
  background: var(--wx-cyprus);
  color: var(--wx-sand);
}

/* ── Toggle Switch ────────────────────────────────────────────────────────── */
.wx-toggle {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.wx-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wx-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--wx-line);
  border-radius: 12px;
  transition: background var(--wx-duration) var(--wx-ease);
}

.wx-toggle input:checked+.wx-toggle-track {
  background: var(--wx-cyprus);
}

.wx-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform var(--wx-duration) var(--wx-ease);
}

.wx-toggle input:checked+.wx-toggle-track::after {
  transform: translateX(18px);
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.wx-table-wrap,
.table-responsive {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper {
  overflow: visible !important;
}

.wx-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
  table-layout: auto !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.wx-table thead th {
  padding: 10px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  word-wrap: break-word !important;
}

color: var(--wx-muted) !important;
background: var(--wx-soft) !important;
border-bottom: 1px solid var(--wx-line);
text-align: left;
white-space: nowrap;
}

.wx-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--wx-line);
  background: var(--wx-panel) !important;
  color: var(--wx-cyprus-deep) !important;
  vertical-align: middle;
}

.wx-table tbody tr:hover td {
  background: var(--wx-soft) !important;
}

.wx-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Table Toolbar ────────────────────────────────────────────────────────── */
.wx-table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.wx-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--wx-soft);
  border-radius: var(--wx-radius);
}

.wx-tab {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--wx-muted);
  border-radius: var(--wx-radius-sm);
  cursor: pointer;
  transition: all var(--wx-duration) var(--wx-ease);
  white-space: nowrap;
}

.wx-tab:hover {
  color: var(--wx-heading);
}

.wx-tab.active {
  /* background: var(--wx-cyprus); */
  color: var(--wx-sand);
  /* box-shadow: 0 2px 6px rgba(0, 71, 65, 0.2); */
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.wx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 51, 47, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--wx-duration) var(--wx-ease);
}

.wx-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.wx-modal {
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius-xl);
  box-shadow: var(--wx-shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(10px) scale(0.98);
  transition: transform var(--wx-duration) var(--wx-ease);
}

.wx-modal-backdrop.open .wx-modal {
  transform: translateY(0) scale(1);
}

.wx-modal-wide {
  max-width: 880px;
}

.wx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-modal-header small {
  color: var(--wx-cyprus);
}

.wx-modal-header h3 {
  margin-top: 2px;
}

.wx-modal-close {
  background: none;
  border: none;
  color: var(--wx-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--wx-radius-sm);
}

.wx-modal-close:hover {
  background: var(--wx-soft);
  color: var(--wx-heading);
}

.wx-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.wx-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--wx-line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── Stat Card ────────────────────────────────────────────────────────────── */
.wx-stat-card {
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wx-stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wx-stat-card-header .wx-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--wx-radius);
  background: #e2ded2;
  color: var(--wx-cyprus);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-stat-card-header .wx-stat-icon svg {
  width: 18px;
  height: 18px;
}

.wx-stat-card p {
  font-size: 0.75rem;
  color: var(--wx-muted);
  margin: 0;
}

.wx-stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wx-stat-value-row h3 {
  font-size: 1.5rem;
}

.wx-stat-value-row em {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--wx-emerald);
}

/* ── Health Card ──────────────────────────────────────────────────────────── */
.wx-health-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--wx-line);
  border-radius: var(--wx-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.wx-health-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--wx-panel);
}

.wx-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wx-health-green .wx-health-dot {
  background: var(--wx-emerald);
  box-shadow: 0 0 6px var(--wx-emerald);
}

.wx-health-yellow .wx-health-dot {
  background: var(--wx-amber);
  box-shadow: 0 0 6px var(--wx-amber);
}

.wx-health-red .wx-health-dot {
  background: var(--wx-rose);
  box-shadow: 0 0 6px var(--wx-rose);
}

.wx-health-card small {
  font-size: 0.625rem;
}

.wx-health-card b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wx-heading);
}

.wx-health-card em {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--wx-muted);
  margin-left: auto;
}

/* ── Decision Card ────────────────────────────────────────────────────────── */
.wx-decision-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wx-line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--wx-duration) var(--wx-ease);
}

.wx-decision-card:hover {
  background: var(--wx-soft);
}

.wx-decision-card:last-child {
  border-bottom: none;
}

.wx-decision-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--wx-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wx-decision-icon svg {
  width: 18px;
  height: 18px;
}

.wx-decision-icon.wx-tone-amber {
  background: var(--wx-amber-bg);
  color: var(--wx-amber);
}

.wx-decision-icon.wx-tone-rose {
  background: var(--wx-rose-bg);
  color: var(--wx-rose);
}

.wx-decision-icon.wx-tone-orange {
  background: var(--wx-orange-bg);
  color: var(--wx-orange);
}

.wx-decision-icon.wx-tone-violet {
  background: var(--wx-violet-bg);
  color: var(--wx-violet);
}

.wx-decision-icon.wx-tone-sky {
  background: var(--wx-sky-bg);
  color: var(--wx-sky);
}

.wx-decision-card>div {
  flex: 1;
  min-width: 0;
}

.wx-decision-card small {
  font-size: 0.625rem;
  color: var(--wx-muted);
}

.wx-decision-card b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wx-heading);
  margin-top: 2px;
}

.wx-decision-card p {
  margin-top: 2px;
  font-size: 0.75rem;
}

/* ── Sparkline SVG ────────────────────────────────────────────────────────── */
.wx-sparkline {
  width: 100%;
  height: 48px;
}

.wx-sparkline .spark-baseline {
  stroke: var(--wx-line);
  stroke-width: 1;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.wx-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.wx-form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wx-heading);
}

.wx-form-input,
.wx-form-select,
.wx-form-textarea {
  padding: 9px 14px;
  font-family: var(--wx-font);
  font-size: 0.8125rem;
  color: var(--wx-heading);
  background: var(--wx-sand-light);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius);
  transition: all var(--wx-duration) var(--wx-ease);
  outline: none;
}

.wx-form-input:focus,
.wx-form-select:focus,
.wx-form-textarea:focus {
  /* border-color: var(--wx-cyprus);
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.1); */
}

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

.wx-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.wx-form-grid .wx-form-full {
  grid-column: 1 / -1;
}

/* ── Alert ────────────────────────────────────────────────────────────────── */
.wx-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--wx-radius-lg);
  font-size: 0.8125rem;
  margin-bottom: 16px;
}

.wx-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.wx-alert b {
  display: block;
  font-weight: 600;
}

.wx-alert-warning {
  background: var(--wx-amber-bg);
  color: var(--wx-amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.wx-alert-danger {
  background: var(--wx-rose-bg);
  color: var(--wx-rose);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.wx-alert-info {
  background: var(--wx-sky-bg);
  color: var(--wx-sky);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.wx-alert-success {
  background: var(--wx-emerald-bg);
  color: var(--wx-emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ── Search Input ─────────────────────────────────────────────────────────── */
.wx-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  background: var(--wx-sand-light);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius);
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-search-input:focus-within {
  /* border-color: var(--wx-cyprus);
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.1); */
}

.wx-search-input svg {
  width: 15px;
  height: 15px;
  color: var(--wx-muted);
  flex-shrink: 0;
}

.wx-search-input input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 0.8125rem;
  color: var(--wx-heading);
  font-family: var(--wx-font);
}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.wx-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.wx-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  z-index: 1049;
  pointer-events: auto;
}

.wx-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius-lg);
  box-shadow: var(--wx-shadow-lg);
  min-width: 200px;
  z-index: 1050;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wx-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-family: var(--wx-font);
  color: var(--wx-heading);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--wx-duration) var(--wx-ease);
}

.wx-dropdown-item:hover {
  background: var(--wx-soft);
}

.wx-dropdown-divider {
  height: 1px;
  background: var(--wx-line);
  margin: 4px 0;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
.wx-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
}

.wx-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--wx-line);
  border-top-color: var(--wx-cyprus);
  border-radius: 50%;
  animation: wx-spin 0.8s linear infinite;
}

@keyframes wx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── AI Panel ─────────────────────────────────────────────────────────────── */
.wx-ai-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--wx-panel);
  border-left: 1px solid var(--wx-line);
  box-shadow: var(--wx-shadow-xl);
  z-index: 1045;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--wx-ease);
}

.wx-ai-panel.open {
  transform: translateX(0);
}

.wx-ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wx-line);
}

.wx-ai-panel-header .wx-ai-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wx-ai-panel-header .wx-ai-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--wx-cyprus);
  color: var(--wx-sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-ai-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── Popover (notifications, business selector) ───────────────────────────── */
.wx-popover-anchor {
  position: relative;
}

.wx-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius-lg);
  box-shadow: var(--wx-shadow-xl);
  min-width: 300px;
  z-index: 1060;
  overflow: hidden;
}

/* ── Settings Layout ──────────────────────────────────────────────────────── */
.wx-settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.wx-settings-nav button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wx-muted);
  text-align: left;
  border-radius: var(--wx-radius-sm);
  cursor: pointer;
  transition: all var(--wx-duration) var(--wx-ease);
}

.wx-settings-nav button:hover {
  color: var(--wx-heading);
  background: var(--wx-soft);
}

.wx-settings-nav button.active {
  background: var(--wx-cyprus);
  color: var(--wx-sand);
}

/* ── Campaign / Stat Summary Bar ──────────────────────────────────────────── */
.wx-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--wx-line);
  border-radius: var(--wx-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.wx-summary-item {
  padding: 16px 18px;
  background: var(--wx-panel);
}

.wx-summary-item small {
  font-size: 0.625rem;
}

.wx-summary-item b {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wx-heading);
  margin-top: 4px;
}

.wx-summary-item span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wx-emerald);
}

/* ── Bulk Action Bar ──────────────────────────────────────────────────────── */
.wx-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--wx-cyprus);
  color: var(--wx-sand);
  border-radius: var(--wx-radius);
  margin: 0 16px 12px;
  font-size: 0.8125rem;
}

.wx-bulk-bar button {
  background: rgba(240, 237, 228, 0.15);
  border: none;
  color: var(--wx-sand);
  padding: 4px 12px;
  border-radius: var(--wx-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.wx-bulk-bar button:hover {
  background: rgba(240, 237, 228, 0.25);
}

/* ── Setting Row (toggle row) ─────────────────────────────────────────────── */
.wx-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--wx-line);
}

.wx-setting-row:last-child {
  border-bottom: none;
}

.wx-setting-row b {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wx-heading);
}

.wx-setting-row small {
  font-size: 0.6875rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: block;
}

/* ── Dashboard Grid ───────────────────────────────────────────────────────── */
.wx-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

.wx-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* ── Contact Cell ─────────────────────────────────────────────────────────── */
.wx-contact-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wx-contact-cell .wx-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2ded2;
  color: var(--wx-cyprus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wx-contact-cell b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wx-heading);
}

.wx-contact-cell small {
  font-size: 0.6875rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* ── Agent Pill ───────────────────────────────────────────────────────────── */
.wx-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: var(--wx-soft);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wx-heading);
}

/* ── Progress Bar ─────────────────────────────────────────────────────────── */
.wx-progress {
  height: 6px;
  background: var(--wx-line);
  border-radius: 3px;
  overflow: hidden;
}

.wx-progress-fill {
  height: 100%;
  background: var(--wx-cyprus);
  border-radius: 3px;
  transition: width 0.5s var(--wx-ease);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wx-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .wx-settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wx-sidebar {
    transform: translateX(-100%);
  }

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

  .wx-mobile-menu {
    display: flex;
  }

  .wx-mobile-overlay.show {
    display: block;
  }

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

  .wx-sidebar-collapsed .wx-main {
    margin-left: 0;
  }

  .wx-topbar {
    padding: 0 16px;
  }

  .wx-content {
    padding: 16px;
  }

  .wx-search {
    display: none;
  }

  .wx-avatar-btn .wx-avatar-info {
    display: none;
  }

  .wx-ai-panel {
    width: 100%;
  }

  .wx-metric-grid {
    grid-template-columns: 1fr;
  }

  .wx-health-bar {
    grid-template-columns: 1fr;
  }

  .wx-summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ── Utilities ────────────────────────────────────────────────────────────── */
.wx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wx-flex {
  display: flex;
}

.wx-flex-center {
  display: flex;
  align-items: center;
}

.wx-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wx-flex-wrap {
  flex-wrap: wrap;
}

.wx-gap-sm {
  gap: 6px;
}

.wx-gap {
  gap: 12px;
}

.wx-gap-lg {
  gap: 20px;
}

.wx-mt-0 {
  margin-top: 0;
}

.wx-mt-sm {
  margin-top: 8px;
}

.wx-mt {
  margin-top: 16px;
}

.wx-mt-lg {
  margin-top: 24px;
}

.wx-mb-0 {
  margin-bottom: 0;
}

.wx-mb {
  margin-bottom: 16px;
}

.wx-w-full {
  width: 100%;
}

.wx-text-center {
  text-align: center;
}

.wx-text-right {
  text-align: right;
}

.wx-text-muted {
  color: var(--wx-muted);
}

.wx-text-heading {
  color: var(--wx-heading);
}

.wx-text-cyprus {
  color: var(--wx-cyprus);
}

.wx-text-emerald {
  color: var(--wx-emerald);
}

.wx-text-amber {
  color: var(--wx-amber);
}

.wx-text-rose {
  color: var(--wx-rose);
}

.wx-font-bold {
  font-weight: 700;
}

.wx-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Smooth transition for dark mode ──────────────────────────────────────── */
.wx-app,
.wx-app *:not(svg):not(svg *) {
  transition-property: background-color, border-color, color;
  transition-duration: 0.3s;
  transition-timing-function: var(--wx-ease);
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {

  .wx-sidebar,
  .wx-topbar,
  .wx-ai-panel,
  .wx-mobile-menu,
  .wx-mobile-overlay {
    display: none !important;
  }

  .wx-main {
    margin-left: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS PAGE — Override legacy Argon fieldset/legend styles
   inside .wx-settings-panel-body
══════════════════════════════════════════════════════════════ */
.wx-settings-panel-body fieldset,
.wx-settings-panel-body .lw-fieldset {
  border: 1px solid #e8e5de;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}

.wx-settings-panel-body fieldset legend,
.wx-settings-panel-body .lw-fieldset legend {
  float: none !important;
  width: auto;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #69746f !important;
  padding: 12px 18px 10px !important;
  margin: 0 !important;
  background: #fafaf8 !important;
  border-bottom: 1px solid #f0ede4 !important;
  border-radius: 0 !important;
  display: block !important;
  width: 100% !important;
  cursor: pointer;
}

.wx-settings-panel-body fieldset legend[data-toggle],
.wx-settings-panel-body .lw-fieldset legend[data-toggle] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wx-settings-panel-body fieldset>*:not(legend),
.wx-settings-panel-body .lw-fieldset>*:not(legend) {
  padding: 16px 18px;
}

/* Form controls inside settings */
.wx-settings-panel-body .form-control,
.wx-settings-panel-body input[type="text"],
.wx-settings-panel-body input[type="email"],
.wx-settings-panel-body input[type="password"],
.wx-settings-panel-body input[type="number"],
.wx-settings-panel-body input[type="url"],
.wx-settings-panel-body textarea,
.wx-settings-panel-body select,
.wx-settings-panel-body .selectize-input {
  border: 1px solid #e0dcd4 !important;
  border-radius: 9px !important;
  background: #faf8f2 !important;
  color: #00332f !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8125rem !important;
  padding: 9px 14px !important;
  transition: border-color .18s, box-shadow .18s !important;
  box-shadow: none !important;
}

.wx-settings-panel-body .form-control:focus,
.wx-settings-panel-body input[type="text"]:focus,
.wx-settings-panel-body input[type="email"]:focus,
.wx-settings-panel-body input[type="password"]:focus,
.wx-settings-panel-body textarea:focus,
.wx-settings-panel-body select:focus,
.wx-settings-panel-body .selectize-input.focus,
.wx-settings-panel-body .selectize-input.dropdown-active {
  /* border-color: #004741 !important; */
  /* box-shadow: 0 0 0 3px rgba(0, 71, 65, .1) !important; */
  background: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Labels */
.wx-settings-panel-body label,
.wx-settings-panel-body .form-group>label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #374240 !important;
  margin-bottom: 6px !important;
}

/* Buttons inside settings */
.wx-settings-panel-body .btn-primary,
.wx-settings-panel-body button[type="submit"].btn {
  background: #004741 !important;
  border-color: #004741 !important;
  border-radius: 9px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  box-shadow: none !important;
  color: #f0ede4 !important;
  transition: background .18s !important;
}

.wx-settings-panel-body .btn-primary:hover,
.wx-settings-panel-body button[type="submit"].btn:hover {
  background: #00332f !important;
  border-color: #00332f !important;
}

.wx-settings-panel-body .btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  border-radius: 9px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  box-shadow: none !important;
}

.wx-settings-panel-body .btn-warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
  border-radius: 9px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  box-shadow: none !important;
}

.wx-settings-panel-body .btn-danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  border-radius: 9px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  box-shadow: none !important;
}

.wx-settings-panel-body .btn-dark {
  background: #374240 !important;
  border-color: #374240 !important;
  border-radius: 9px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  box-shadow: none !important;
}

.wx-settings-panel-body .btn-sm {
  padding: 6px 14px !important;
  font-size: 0.75rem !important;
}

.wx-settings-panel-body .btn-lg {
  padding: 12px 24px !important;
  font-size: 0.9375rem !important;
}

/* Facebook connect button special */
.wx-settings-panel-body #fbConnectButton {
  background: #1877f2 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 16px rgba(24, 119, 242, .3) !important;
  transition: box-shadow .18s, transform .18s !important;
}

.wx-settings-panel-body #fbConnectButton:hover {
  box-shadow: 0 8px 24px rgba(24, 119, 242, .4) !important;
  transform: translateY(-1px) !important;
}

.wx-settings-panel-body #fbConnectButton .h2 {
  font-size: 1rem !important;
}

/* Alerts inside settings */
.wx-settings-panel-body .alert {
  border-radius: 10px !important;
  font-size: 0.8125rem !important;
  padding: 12px 16px !important;
}

.wx-settings-panel-body .alert-warning {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-left: 4px solid #f59e0b !important;
  color: #78350f !important;
}

.wx-settings-panel-body .alert-success {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 4px solid #22c55e !important;
  color: #14532d !important;
}

.wx-settings-panel-body .alert-danger {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 4px solid #ef4444 !important;
  color: #7f1d1d !important;
}

.wx-settings-panel-body .alert-info {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-left: 4px solid #3b82f6 !important;
  color: #1e3a5f !important;
}

/* Badge overrides */
.wx-settings-panel-body .badge-success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
}

.wx-settings-panel-body .badge-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
}

/* Heading inside settings panel */
.wx-settings-panel-body h1,
.wx-settings-panel-body h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #00332f;
  margin: 0 0 16px;
}

.wx-settings-panel-body h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #00332f;
  margin: 0 0 12px;
  text-align: center;
}

/* OR divider */
.wx-settings-panel-body h3.text-center.mt-5 {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ba8a4;
  margin: 20px 0 !important;
  text-align: center;
}

.wx-settings-panel-body h3.text-center.mt-5::before,
.wx-settings-panel-body h3.text-center.mt-5::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e8e5de;
}

.wx-settings-panel-body h3.text-center.mt-5::before {
  left: 0;
}

.wx-settings-panel-body h3.text-center.mt-5::after {
  right: 0;
}

/* OR row wrapper for connect methods */
.wx-settings-panel-body>div.row>div.col-md-8>h1 {
  display: none;
  /* hidden — page title is already in the panel header */
}

/* Right side column (Phone Numbers, Health) */
.wx-settings-panel-body>div.row>div.col-md-4 {
  position: sticky;
  top: 88px;
}

/* Input group inside settings */
.wx-settings-panel-body .input-group .form-control {
  border-right: none !important;
}

.wx-settings-panel-body .input-group-text {
  background: #faf8f2 !important;
  border: 1px solid #e0dcd4 !important;
  border-left: none !important;
  border-radius: 0 9px 9px 0 !important;
  color: #69746f !important;
}

.wx-settings-panel-body .input-group:first-child .form-control {
  border-radius: 9px 0 0 9px !important;
}

/* Copy button */
.wx-settings-panel-body .btn-outline-light {
  border: 1px solid #e0dcd4 !important;
  color: #374240 !important;
  border-radius: 0 9px 9px 0 !important;
  background: #f5f5f0 !important;
  font-size: 0.75rem !important;
  padding: 9px 14px !important;
}

/* Right column cards (WhatsApp Business Info, Phone Numbers etc) */
.wx-settings-panel-body>div.row>div.col-md-4 .card {
  border: 1px solid #e8e5de !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 71, 65, .04) !important;
  margin-bottom: 14px !important;
}

/* Fix collapse animations */
.wx-settings-panel-body .collapse:not(.show) {
  display: none;
}

/* Switchery toggle */
.wx-settings-panel-body .switchery {
  border-color: #e0dcd4 !important;
}

/* Help links */
.wx-settings-panel-body a.float-right {
  font-size: 0.75rem;
  color: #004741;
  font-weight: 600;
}

.wx-settings-panel-body a.float-right:hover {
  color: #22c55e;
}

/* Processing animation block */
.wx-settings-panel-body .lw-loading-block {
  text-align: center;
  padding: 40px 20px;
}

/* Two-col layout fix inside settings content */
.wx-settings-panel-body>div.row {
  margin: 0;
}

.wx-settings-panel-body>div.row>div[class^="col"] {
  padding: 0;
}

.wx-settings-panel-body>div.row>div.col-md-8 {
  padding-right: 20px;
}

@media (max-width: 768px) {
  .wx-settings-panel-body>div.row>div.col-md-8 {
    padding-right: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP CHAT (SMART INBOX) — Whalexy Redesign Overrides
   ══════════════════════════════════════════════════════════════ */
.wx-app .lw-whatsapp-chat-block-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.wx-app .lw-whatsapp-chat-window {
  padding: 0 !important;
}

/* ── Left Contacts Column ──────────────────────────────────── */
.wx-app .lw-contact-list-block {
  background: #ffffff !important;
  border: 1px solid #e8e5de !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(0, 71, 65, .04) !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 120px) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

.wx-app .lw-contact-list-block h1 {
  font-family: var(--wx-font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--wx-heading) !important;
  margin-bottom: 12px !important;
  border: none !important;
}

.wx-app .lw-contact-list-block hr {
  display: none !important;
}

.wx-app .lw-contacts-header {
  display: none !important;
}

.wx-app .lw-contact-list-block .form-group {
  margin-bottom: 12px !important;
}

.wx-app .lw-contact-list-block label[for="lwShowUnreadOnlyContacts"] {
  font-size: 0.8125rem !important;
  color: var(--wx-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.wx-app .lw-contact-list-block input[type="search"] {
  border: 1px solid var(--wx-line) !important;
  border-radius: 10px !important;
  background: var(--wx-sand-light) !important;
  color: var(--wx-heading) !important;
  padding: 8px 12px !important;
  font-size: 0.8125rem !important;
  width: 100% !important;
}

.wx-app .lw-contact-list-block input[type="search"]:focus {
  /* border-color: var(--wx-cyprus) !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.1) !important; */
}

.wx-app .lw-contact-list-block .nav-tabs {
  border: 1px solid var(--wx-line) !important;
  border-radius: 10px !important;
  background: var(--wx-sand-light) !important;
  padding: 3px !important;
  display: flex !important;
  gap: 2px !important;
  margin-bottom: 14px !important;
  margin-left: 0 !important;
  border-bottom: 1px solid var(--wx-line) !important;
}

.wx-app .lw-contact-list-block .nav-tabs .nav-link {
  flex: 1 !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  color: var(--wx-muted) !important;
  font-size: 0.75rem !important;
  padding: 6px 4px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  transition: background 0.15s, color 0.15s !important;
}

.wx-app .lw-contact-list-block .nav-tabs .nav-link:hover {
  background: rgba(0, 71, 65, 0.04) !important;
  color: var(--wx-cyprus) !important;
}

.wx-app .lw-contact-list-block .nav-tabs .nav-link.active {
  background: #ffffff !important;
  color: var(--wx-cyprus) !important;
  /* box-shadow: var(--wx-shadow-sm) !important; */
}

.wx-app .lw-contact-list-block .nav-item.dropdown {
  width: 100% !important;
  margin-bottom: 10px !important;
}

.wx-app .lw-contact-list-block #labelFilterDropdown {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 8px 12px !important;
  font-size: 0.8125rem !important;
  color: var(--wx-heading) !important;
  width: 100% !important;
  text-decoration: none !important;
}

.wx-app .lw-contact-list-block .lw-contact-list {
  flex-grow: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  margin-right: -8px !important;
  padding-right: 4px !important;
}

.wx-app .lw-contact-list::-webkit-scrollbar {
  width: 5px !important;
}

.wx-app .lw-contact-list::-webkit-scrollbar-thumb {
  background: var(--wx-line) !important;
  border-radius: 4px !important;
}

.wx-app .lw-contact-list .lw-contact {
  background: #ffffff !important;
  border: 1px solid transparent !important;
  border-bottom: 1px solid rgba(0, 71, 65, 0.04) !important;
  border-radius: 10px !important;
  margin-bottom: 4px !important;
  padding: 12px 10px !important;
  transition: background 0.15s, border-color 0.15s !important;
}

.wx-app .lw-contact-list .lw-contact:hover {
  background: var(--wx-sand-light) !important;
  border-color: var(--wx-line) !important;
}

.wx-app .lw-contact-list .lw-contact.list-group-item-light {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.15) !important;
  box-shadow: inset 3px 0 0 #22c55e !important;
}

.wx-app .lw-contact .lw-contact-avatar {
  background-color: var(--wx-cyprus-soft) !important;
  color: #ffffff !important;
  font-family: var(--wx-font-display) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 50% !important;
  margin-right: 12px !important;
}

.wx-app .lw-contact h3 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--wx-heading) !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

.wx-app .lw-contact-labels .label-badge {
  font-size: 0.625rem !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

.wx-app .lw-contact .lw-last-message-at {
  font-size: 0.6875rem !important;
  color: var(--wx-muted) !important;
}

.wx-app .lw-contact .badge.bg-success {
  background-color: #22c55e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.6875rem !important;
  border-radius: 10px !important;
  padding: 3px 6px !important;
  line-height: 1.1 !important;
}

/* ── Middle Conversation Column ────────────────────────────── */
.wx-app .chat-container {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 120px) !important;
}

.wx-app #lwChatWindowBox.chat {
  background: #ffffff !important;
  border: 1px solid #e8e5de !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 4px rgba(0, 71, 65, .05) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

.wx-app #lwChatWindowBox .user-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #f0ede4 !important;
  padding: 12px 20px !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 10 !important;
}

.wx-app #lwChatWindowBox .user-bar .avatar {
  background-color: var(--wx-cyprus) !important;
  color: #ffffff !important;
  font-family: var(--wx-font-display) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 50% !important;
}

.wx-app #lwChatWindowBox .user-bar .name {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: var(--wx-heading) !important;
  margin-left: 12px !important;
}

.wx-app #lwChatWindowBox .user-bar .name a {
  color: var(--wx-cyprus) !important;
  font-weight: 600 !important;
}

.wx-app #lwChatWindowBox .user-bar .status.text-success {
  color: #22c55e !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

.wx-app #lwChatWindowBox .user-bar .status.text-yellow {
  color: var(--wx-amber) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

.wx-app #lwChatWindowBox .conversation {
  background: var(--wx-sand-light) !important;
  flex-grow: 1 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

.wx-app #lwChatWindowBox .conversation .conversation-container {
  flex-grow: 1 !important;
  height: auto !important;
  overflow-y: auto !important;
  box-shadow: none !important;
  padding: 20px !important;
}

.wx-app #lwChatWindowBox .message {
  box-shadow: 0 1px 2px rgba(0, 71, 65, 0.05) !important;
  padding: 10px 14px !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  border-radius: 12px !important;
  margin: 6px 0 !important;
}

.wx-app #lwChatWindowBox .message:after {
  display: none !important;
}

.wx-app #lwChatWindowBox .message.received {
  background: #ffffff !important;
  border: 1px solid #e8e5de !important;
  color: var(--wx-heading) !important;
  border-radius: 0 12px 12px 12px !important;
}

.wx-app #lwChatWindowBox .message.sent {
  background: #e8f5e9 !important;
  border: 1px solid #ccebd6 !important;
  color: var(--wx-heading) !important;
  border-radius: 12px 0 12px 12px !important;
}

.wx-app #lwChatWindowBox .metadata .time {
  color: var(--wx-muted) !important;
  font-size: 0.625rem !important;
  font-weight: 500 !important;
}

.wx-app #lwChatWindowBox .conversation-compose {
  background: #ffffff !important;
  border-top: 1px solid #f0ede4 !important;
  padding: 12px 20px !important;
  height: auto !important;
  align-items: center !important;
  gap: 10px !important;
}

.wx-app #lwChatWindowBox .conversation-compose .emoji {
  display: none !important;
}

.wx-app #lwChatWindowBox .emojionearea {
  border: 1px solid var(--wx-line) !important;
  border-radius: 10px !important;
  background: var(--wx-sand-light) !important;
  flex-grow: 1 !important;
  width: auto !important;
  margin-left: 0 !important;
  height: 40px !important;
}

.wx-app #lwChatWindowBox .emojionearea .emojionearea-editor {
  background: transparent !important;
  color: var(--wx-heading) !important;
  font-size: 0.8125rem !important;
  margin-top: 4px !important;
  height: 32px !important;
}

.wx-app #lwChatWindowBox .conversation-compose .photo {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.wx-app #lwChatWindowBox .conversation-compose .photo:after {
  display: none !important;
}

.wx-app #lwChatWindowBox .conversation-compose .photo .lw-whatsapp-bar-icon-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: var(--wx-sand-light) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--wx-line) !important;
  transition: background 0.15s !important;
}

.wx-app #lwChatWindowBox .conversation-compose .photo .lw-whatsapp-bar-icon-btn:hover {
  background: var(--wx-soft) !important;
}

.wx-app #lwChatWindowBox .conversation-compose .send {
  margin: 0 !important;
}

.wx-app #lwChatWindowBox .conversation-compose .send .circle {
  background: var(--wx-cyprus) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 71, 65, 0.2) !important;
  transition: background 0.15s !important;
  padding-left: 0 !important;
}

.wx-app #lwChatWindowBox .conversation-compose .send .circle:hover {
  background: var(--wx-cyprus-soft) !important;
}

/* ── Right CRM Column ──────────────────────────────────────── */
.wx-app .lw-contact-crm-block {
  background: #ffffff !important;
  border: 1px solid #e8e5de !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(0, 71, 65, .04) !important;
  padding: 20px !important;
  height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  margin-bottom: 0 !important;
}

.wx-app .lw-contact-crm-block fieldset,
.wx-app .lw-contact-crm-block .lw-fieldset {
  border: 1px solid #e8e5de !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 71, 65, 0.02) !important;
}

.wx-app .lw-contact-crm-block fieldset legend,
.wx-app .lw-contact-crm-block .lw-fieldset legend {
  float: none !important;
  width: 100% !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #69746f !important;
  padding: 12px 16px 10px !important;
  margin: 0 !important;
  background: #fafaf8 !important;
  border-bottom: 1px solid #f0ede4 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wx-app .lw-contact-crm-block fieldset>*:not(legend),
.wx-app .lw-contact-crm-block .lw-fieldset>*:not(legend) {
  padding: 14px 16px !important;
}

.wx-app .lw-contact-crm-block dl dt {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  color: var(--wx-muted) !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

.wx-app .lw-contact-crm-block dl dd {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--wx-heading) !important;
  margin-bottom: 10px !important;
}

.wx-app .lw-contact-crm-block .form-control,
.wx-app .lw-contact-crm-block textarea,
.wx-app .lw-contact-crm-block select,
.wx-app .lw-contact-crm-block .selectize-input {
  border: 1px solid var(--wx-line) !important;
  border-radius: 9px !important;
  background: var(--wx-sand-light) !important;
  color: var(--wx-heading) !important;
  font-size: 0.8125rem !important;
  padding: 8px 12px !important;
}

.wx-app .lw-contact-crm-block .selectize-input {
  padding: 4px 8px !important;
}

.wx-app .lw-contact-crm-block fieldset .btn {
  margin-top: 8px !important;
}

/* ── Interactive Enhancements & Animations ─────────────────── */
/* Contact list item hover scale & ease transition */
.wx-app .lw-contact-list .lw-contact {
  transition: background 0.22s var(--wx-ease), border-color 0.22s var(--wx-ease), transform 0.22s var(--wx-ease) !important;
}

.wx-app .lw-contact-list .lw-contact:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 71, 65, 0.05) !important;
}

/* Pulse animation for unread message counters */
@keyframes wx-badge-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }

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

.wx-app .lw-contact-list .lw-contact .badge.bg-success {
  animation: wx-badge-pulse 2s infinite ease-in-out !important;
}

/* Message bubble entry animation */
@keyframes wx-bubble-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.wx-app #lwChatWindowBox .message {
  animation: wx-bubble-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  transition: transform 0.18s var(--wx-ease), box-shadow 0.18s var(--wx-ease) !important;
}

.wx-app #lwChatWindowBox .message:hover {
  transform: scale(1.005) !important;
  /* box-shadow: 0 2px 6px rgba(0, 71, 65, 0.08) !important; */
}

/* Emojione area editor focus effect */
.wx-app #lwChatWindowBox .emojionearea {
  /* transition: border-color 0.2s var(--wx-ease), box-shadow 0.2s var(--wx-ease) !important; */
}

.wx-app #lwChatWindowBox .emojionearea.focused {
  /* border-color: var(--wx-cyprus) !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.1) !important; */
}

/* Interactive hover scaling for icons and buttons */
.wx-app #lwChatWindowBox .conversation-compose .photo .lw-whatsapp-bar-icon-btn {
  transition: background 0.2s, transform 0.2s !important;
}

.wx-app #lwChatWindowBox .conversation-compose .photo .lw-whatsapp-bar-icon-btn:hover {
  transform: scale(1.05) !important;
}

.wx-app #lwChatWindowBox .conversation-compose .send .circle {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.wx-app #lwChatWindowBox .conversation-compose .send .circle:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(0, 71, 65, 0.35) !important;
}

/* Accordion expand/collapse transition overrides for CRM widgets */
.wx-app .lw-contact-crm-block fieldset {
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.wx-app .lw-contact-crm-block fieldset:hover {
  box-shadow: 0 3px 10px rgba(0, 71, 65, 0.03) !important;
}

/* GitHub Style Contact & Link UI styling overrides */
.wx-app .wx-btn-github {
  background-color: #2ea44f !important;
  color: #ffffff !important;
  border: 1px solid rgba(27, 31, 36, 0.15) !important;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  border-radius: 6px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1) !important;
}

.wx-app .wx-btn-github:hover {
  background-color: #2c974b !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.wx-app .wx-btn-github:active {
  /* background-color: #298e46 !important; */
  /* box-shadow: inset 0 1px 0 rgba(20, 70, 32, 0.2) !important; */
}

.wx-app .wx-github-link {
  color: #0969da !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.wx-app .wx-github-link:hover {
  text-decoration: underline !important;
  color: #0969da !important;
}

/* Modals & Inputs Premium styling overrides */
.wx-app .modal-content {
  background: var(--wx-panel) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius-lg) !important;
  box-shadow: var(--wx-shadow-lg) !important;
  overflow: hidden !important;
}

.wx-app .modal-header {
  background: var(--wx-panel) !important;
  border-bottom: 1px solid var(--wx-line) !important;
  padding: 18px 24px !important;
}

.wx-app .modal-header h3.modal-title {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--wx-heading) !important;
  font-family: var(--wx-font-display) !important;
}

.wx-app .modal-header .close {
  color: var(--wx-muted) !important;
  opacity: 0.6 !important;
  text-shadow: none !important;
  transition: opacity 0.2s !important;
  font-size: 1.5rem !important;
  padding: 1rem !important;
  margin: -1rem -1rem -1rem auto !important;
}

.wx-app .modal-header .close:hover {
  opacity: 1 !important;
}

.wx-app .lw-form-modal-body {
  padding: 24px !important;
  background: var(--wx-panel) !important;
}

.wx-app .modal-footer {
  background: var(--wx-soft) !important;
  border-top: 1px solid var(--wx-line) !important;
  padding: 16px 24px !important;
}

.wx-app .form-group label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--wx-muted) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.wx-app .form-control {
  background: var(--wx-sand-light) !important;
  border: 1px solid var(--wx-line) !important;
  color: var(--wx-cyprus-deep) !important;
  border-radius: var(--wx-radius-sm) !important;
  font-size: 0.875rem !important;
  padding: 10px 14px !important;
  height: auto !important;
  transition: border-color var(--wx-duration) var(--wx-ease), box-shadow var(--wx-duration) var(--wx-ease) !important;
}

.wx-app .form-control:focus {
  /* border-color: var(--wx-cyprus) !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.15) !important; */
  background: #ffffff !important;
}

/* Switchery style adjustments */
.wx-app .switchery {
  border-radius: 20px !important;
}

/* Fieldset styling inside modal */
.wx-app .lw-form-modal-body fieldset {
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius) !important;
  padding: 16px !important;
  margin-top: 20px !important;
  background: rgba(240, 237, 228, 0.2) !important;
}

.wx-app .lw-form-modal-body legend {
  width: auto !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  color: var(--wx-cyprus) !important;
  background: var(--wx-panel) !important;
  padding: 0 8px !important;
  margin-bottom: 0 !important;
}

/* Premium DataTables Pagination UI */
.wx-app .dataTables_wrapper .dataTables_paginate {
  margin-top: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

.wx-app .dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}

.wx-app .dataTables_wrapper .dataTables_paginate .paginate_button a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 8px !important;
  border-radius: var(--wx-radius-sm) !important;
  border: 1px solid var(--wx-line) !important;
  background: var(--wx-sand-light) !important;
  color: var(--wx-cyprus) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
}

.wx-app .dataTables_wrapper .dataTables_paginate .paginate_button:hover a {
  border-color: var(--wx-cyprus) !important;
  background: var(--wx-sand) !important;
  color: var(--wx-cyprus-deep) !important;
}

.wx-app .dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.wx-app .dataTables_wrapper .dataTables_paginate .paginate_button.current a {
  background: var(--wx-cyprus) !important;
  /* border-color: var(--wx-cyprus) !important; */
  color: var(--wx-sand-light) !important;
}

.wx-app .dataTables_wrapper .dataTables_paginate .paginate_button.disabled a {
  opacity: 0.4 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Universal Empty State styling for DataTables */
.wx-app td.dataTables_empty {
  padding: 64px 32px !important;
  text-align: center !important;
  color: var(--wx-muted) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.wx-app td.dataTables_empty::before {
  content: "\f05a" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  display: block !important;
  font-size: 2rem !important;
  color: var(--wx-line) !important;
  margin-bottom: 16px !important;
}

/* Flexbox Gap Utilities for older Bootstrap compat */
.wx-app .gap-1,
.wx-app.gap-1 {
  gap: 0.25rem !important;
}

.wx-app .gap-2,
.wx-app.gap-2 {
  gap: 0.5rem !important;
}

.wx-app .gap-3,
.wx-app.gap-3 {
  gap: 0.75rem !important;
}

.wx-app .gap-4,
.wx-app.gap-4 {
  gap: 1rem !important;
}

.wx-app .gap-5,
.wx-app.gap-5 {
  gap: 1.5rem !important;
}

/* Premium wx-table overrides (Lighter font weight, compact padding and clean style) */
.wx-app .wx-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.8125rem !important;
}

.wx-app .wx-table th {
  background: var(--wx-sand-light) !important;
  color: var(--wx-muted) !important;
  font-weight: 600 !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--wx-line) !important;
  border-top: none !important;
}

.wx-app .wx-table td {
  padding: 10px 16px !important;
  vertical-align: middle !important;
  color: var(--wx-cyprus-deep) !important;
  font-weight: 400 !important;
  /* Lighter font weight */
  border-bottom: 1px solid #f0ede4 !important;
  border-top: none !important;
}

.wx-app .wx-table tr:hover td {
  background-color: var(--wx-sand-light) !important;
}

/* Make font weights of links and mono texts lighter inside the table */
.wx-app .wx-table .wx-github-link {
  font-weight: 500 !important;
  /* Lighter name font weight */
  font-size: 0.8125rem !important;
}

.wx-app .wx-table .font-mono {
  font-weight: 400 !important;
  font-size: 0.75rem !important;
}

/* Flex Space-y Containers */
.wx-space-y-6 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wx-space-y-8 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Premium Tabs & Links list styling */
ul.wx-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px !important;
  background: var(--wx-soft);
  border-radius: var(--wx-radius);
  list-style: none !important;
  margin: 0 !important;
}

ul.wx-tabs li.wx-tab {
  display: inline-flex;
  align-items: center;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.wx-tabs li.wx-tab a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wx-muted) !important;
  border-radius: var(--wx-radius-sm);
  text-decoration: none !important;
  transition: all var(--wx-duration) var(--wx-ease);
}

ul.wx-tabs li.wx-tab:hover a {
  color: var(--wx-heading) !important;
}

ul.wx-tabs li.wx-tab.active a {
  background: var(--wx-cyprus);
  color: var(--wx-sand) !important;
  /* box-shadow: 0 2px 6px rgba(0, 71, 65, 0.2); */
}

/* Profile Avatar Hover Polish */
.wx-avatar-btn {
  transition: all var(--wx-duration) var(--wx-ease) !important;
}

.wx-avatar-btn:hover {
  background: var(--wx-soft) !important;
  border-color: var(--wx-cyprus) !important;
  box-shadow: var(--wx-shadow-sm) !important;
  transform: translateY(-1px);
}

.wx-avatar-btn:active {
  transform: translateY(0);
}

.wx-dark .wx-avatar-btn:hover {
  border-color: var(--wx-line) !important;
}

/* ── Smart Inbox Custom Styling Overrides ─────────────────── */
.wx-app .lw-contact-list .lw-contact.active-chat-card {
  background: rgba(0, 71, 65, 0.05) !important;
  /* border-color: var(--wx-cyprus) !important; */
  /* box-shadow: inset 4px 0 0 var(--wx-cyprus) !important; */
}

.wx-app .lw-contact-list .lw-contact.active-chat-card h3 {
  color: var(--wx-cyprus-deep) !important;
}

.wx-app .lw-contact-list-block .wx-tab {
  font-family: var(--wx-font) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
  border-radius: 7px !important;
  color: var(--wx-muted) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
}

.wx-app .lw-contact-list-block .wx-tab:hover {
  color: var(--wx-heading) !important;
}

.wx-app .lw-contact-list-block .wx-tab.active {
  background: var(--wx-cyprus) !important;
  color: var(--wx-sand) !important;
  /* box-shadow: var(--wx-shadow-sm) !important; */
}

.wx-app .lw-contact-crm-block .wx-tabs {
  background: var(--wx-soft) !important;
  border-radius: var(--wx-radius) !important;
  padding: 3px !important;
  display: flex !important;
  width: 100% !important;
}

.wx-app .lw-contact-crm-block .wx-tab {
  flex: 1 !important;
  text-align: center !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: var(--wx-radius-sm) !important;
  cursor: pointer !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
  color: var(--wx-muted) !important;
}

.wx-app .lw-contact-crm-block .wx-tab.active {
  background: var(--wx-cyprus) !important;
  color: var(--wx-sand) !important;
  /* box-shadow: var(--wx-shadow-sm) !important; */
}

/* Enhanced Profile Avatar Button Hover */
.wx-avatar-btn {
  cursor: pointer;
}

.wx-avatar-btn:hover .wx-avatar {
  background: var(--wx-cyprus) !important;
  color: var(--wx-sand) !important;
  transform: scale(1.05);
}

.wx-avatar {
  transition: all var(--wx-duration) var(--wx-ease) !important;
}

/* ── Button Styles ────────────────────────────────────────── */
.wx-btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--wx-cyprus) !important;
  color: var(--wx-sand-light) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9px;
  border: none !important;
  cursor: pointer;
  transition: all .18s ease;
  font-family: var(--wx-font) !important;
  text-decoration: none !important;
}

.wx-btn-save:hover {
  background: var(--wx-cyprus-deep) !important;
  color: var(--wx-sand-light) !important;
  text-decoration: none !important;
}

.wx-btn-save:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.wx-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--wx-panel) !important;
  color: var(--wx-cyprus-soft) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid var(--wx-line) !important;
  cursor: pointer;
  transition: all .18s ease;
  font-family: var(--wx-font) !important;
  text-decoration: none !important;
}

.wx-btn-cancel:hover {
  background: var(--wx-soft) !important;
  color: var(--wx-cyprus-deep) !important;
  text-decoration: none !important;
}

/* ── Topbar Extra Compact (≤ 576px) ──────────────────────────────────────── */
@media (max-width: 576px) {

  /* Hide Sound Toggle on small mobile screens */
  .wx-topbar-actions button[title*="sound"],
  .wx-topbar-actions button[title*="Sound"],
  .wx-topbar-actions button[x-bind*="sound"] {
    display: none !important;
  }

  /* Hide language switcher entirely on very small screens to save space */
  .wx-topbar-actions .wx-dropdown-wrapper>div:first-child button {
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
  }

  /* Shrink page title and headers */
  .wx-topbar-title {
    min-width: 0 !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
  }

  .wx-topbar-title h1 {
    font-size: 0.85rem !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .wx-topbar-title small {
    font-size: 0.45rem !important;
  }

  /* Topbar compact */
  .wx-topbar {
    padding: 0 10px !important;
    gap: 6px !important;
  }

  .wx-topbar-actions {
    gap: 2px !important;
  }

  /* Compact notification and icon buttons */
  .wx-icon-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .wx-avatar-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
  }

  .wx-avatar-btn .wx-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.55rem !important;
  }
}

.wx-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: none !important;
  color: var(--wx-rose) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid var(--wx-rose-bg) !important;
  cursor: pointer;
  transition: all .18s ease;
  font-family: var(--wx-font) !important;
  text-decoration: none !important;
}

.wx-btn-danger-outline:hover {
  background: var(--wx-rose-bg) !important;
  text-decoration: none !important;
}

/* ── Inline Alerts ────────────────────────────────────────── */
.wx-inline-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-family: var(--wx-font);
  margin-bottom: 16px;
}

.wx-inline-alert.warning {
  background: var(--wx-amber-bg) !important;
  color: var(--wx-amber) !important;
  border-left: 4px solid var(--wx-amber) !important;
}

.wx-inline-alert.info {
  background: var(--wx-sky-bg) !important;
  color: var(--wx-sky) !important;
  border-left: 4px solid var(--wx-sky) !important;
}

.wx-inline-alert.success {
  background: var(--wx-emerald-bg) !important;
  color: var(--wx-emerald) !important;
  border-left: 4px solid var(--wx-emerald) !important;
}

.wx-inline-alert a {
  color: inherit !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

/* ── Global Whalexy Table Styles ──────────────────────────── */
.wx-table-wrap {
  background: var(--wx-panel) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem !important;
  max-width: 100%;
}

.wx-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.wx-table thead th {
  background: var(--wx-soft) !important;
  border-bottom: 1px solid var(--wx-line) !important;
  padding: 1rem 1.5rem !important;
  font-family: var(--wx-font-display) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  color: var(--wx-cyprus) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.wx-table tbody tr {
  border-bottom: 1px solid var(--wx-line) !important;
  transition: background var(--wx-duration) var(--wx-ease) !important;
}

.wx-table tbody tr:last-child {
  border-bottom: none !important;
}

.wx-table tbody tr:hover {
  background: var(--wx-soft) !important;
}

.wx-table tbody td {
  padding: 1rem 1.5rem !important;
  font-size: 0.8125rem !important;
  color: var(--wx-cyprus-deep) !important;
  vertical-align: middle !important;
  border-top: none !important;
}

.wx-table-footer {
  padding: 1rem 1.5rem !important;
  background: var(--wx-soft) !important;
  border-top: 1px solid var(--wx-line) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WHALEXY RESPONSIVENESS OVERRIDES (Mobile / Tablet / Laptop Viewports)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Tablet & Mobile Sidebar Drawer (<= 991px) ────────────────────────────── */
@media (max-width: 991px) {
  .wx-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: translateX(-100%) !important;
    z-index: 1050 !important;
    width: var(--wx-sidebar-width) !important;
    box-shadow: var(--wx-shadow-lg) !important;
  }

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

  .wx-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 51, 47, 0.4);
    z-index: 1040;
    backdrop-filter: blur(4px);
  }

  .wx-mobile-overlay.show {
    display: block !important;
  }

  .wx-main {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .wx-sidebar-collapsed .wx-main {
    margin-left: 0 !important;
  }

  .wx-mobile-menu {
    display: flex !important;
  }
}

/* ── Topbar Adaptations (<= 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .wx-topbar {
    padding: 0 16px !important;
    gap: 10px !important;
  }

  /* Hide workspace pill selector to save space */
  .wx-workspace-pill {
    display: none !important;
  }

  /* Condense User Avatar Menu (no name, no arrow) */
  .wx-avatar-btn {
    padding: 4px !important;
    border-radius: 50% !important;
  }

  .wx-avatar-btn .wx-avatar-info,
  .wx-avatar-btn svg {
    display: none !important;
  }

  /* Condense Language Switcher */
  .wx-topbar-actions .wx-dropdown-wrapper button>span:nth-child(3),
  .wx-topbar-actions .wx-dropdown-wrapper button>svg:last-child {
    display: none !important;
  }

  .wx-topbar-actions .wx-dropdown-wrapper>div:first-child button {
    padding: 4px 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .wx-topbar-actions .wx-dropdown-wrapper>div:first-child button span {
    margin: 0 !important;
  }

  /* Ensure User Avatar / Profile button stays visible */
  .wx-avatar-btn {
    display: flex !important;
    flex-shrink: 0 !important;
    padding: 4px !important;
    border-radius: 50% !important;
  }

  .wx-avatar-btn .wx-avatar-info,
  .wx-avatar-btn>svg {
    display: none !important;
  }
}



/* ── Smart Inbox Responsive Toggles (<= 768px) ────────────────────────────── */
@media (max-width: 768px) {
  .smart-inbox-grid {
    grid-template-columns: 1fr !important;
    height: calc(100dvh - var(--wx-topbar-height, 64px)) !important;
    min-height: calc(100dvh - var(--wx-topbar-height, 64px)) !important;
  }

  /* Pane 1 (Contacts list) visibility */
  .smart-inbox-grid:not(.contact-list-closed) .smart-inbox-contacts-col {
    display: flex !important;
    width: 100% !important;
  }

  .smart-inbox-grid:not(.contact-list-closed) .smart-inbox-chat-col {
    display: none !important;
  }

  /* Pane 2 (Chat window) visibility */
  .smart-inbox-grid.contact-list-closed .smart-inbox-contacts-col {
    display: none !important;
  }

  .smart-inbox-grid.contact-list-closed .smart-inbox-chat-col {
    display: flex !important;
    width: 100% !important;
  }

  /* Hide the right CRM details block entirely on mobile/tablet */
  .smart-inbox-crm-col {
    display: none !important;
  }

  /* Adjust chat bubble max-width on mobile */
  .si-bubble-in,
  .si-bubble-out {
    max-width: 85% !important;
  }
}

/* ── General Dashboard Pages & Layouts (<= 768px) ─────────────────────────── */
@media (max-width: 768px) {

  /* Dashboard Owner Brief Banner responsiveness */
  .wx-owner-brief {
    padding: 20px 24px !important;
  }

  .wx-owner-brief h2 {
    font-size: 1.25rem !important;
  }

  .wx-owner-brief p {
    font-size: 0.75rem !important;
  }

  /* Metric cards */
  .wx-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  /* Two-column layout */
  .wx-two-col {
    grid-template-columns: 1fr !important;
  }

  /* Form elements full width spacing */
  .form-group {
    margin-bottom: 1rem !important;
  }

  /* Inline tables and modals */
  .modal-dialog {
    margin: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }
}

/* ── Prevent Horizontal Scrolling & Content Containment ── */
.wx-shell,
.wx-main {
  max-width: 100% !important;
  overflow-x: clip !important;
  /* clip does not break sticky layout like hidden does */
}

.wx-main {
  min-width: 0 !important;
}

/* Restore container padding — zero for full-bleed dashboard */
.wx-app .container-fluid,
.wx-app .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 768px) {

  /* Reduce row gutters slightly on mobile to look cleaner */
  .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }

  .row>[class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Prevent code blocks/text from stretching viewports */
  pre,
  code,
  td,
  th {
    word-break: break-word !important;
  }

  /* Reduce excessive padding inside main content on mobile */
  .wx-content {
    padding: 10px 10px 16px !important;
  }

  .wx-space-y-8 {
    gap: 12px;
  }

  /* Compact card bodies on mobile — full width */
  .card-body,
  .wx-card .card-body,
  .wx-panel-padded {
    padding: 0 !important;
  }

  /* Compact table cells padding on small screens */
  .wx-table th,
  .wx-table td {
    padding: 10px 8px !important;
  }

  /* Ensure overflowing tables dropdown menus remain completely visible (no clipping) */
  .card-body>div,
  .wx-table-wrap {
    max-width: 100% !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Clean up DataTable Responsive expansion clutter (hiding the + button and placeholder column) ── */
.wx-app table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control::before,
.wx-app table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control::before {
  display: none !important;
}

.wx-app table.dataTable th[style*="width: 1px"],
.wx-app table.dataTable td[style*="width: 1px"],
.wx-app table.dataTable th[style*="width:1px"],
.wx-app table.dataTable td[style*="width:1px"] {
  display: none !important;
}

.wx-app table.dataTable>tbody>tr.child {
  display: none !important;
}

/* ============================================================================
   GLOBAL DESIGN SYSTEM OVERLAYS & STANDARDIZATION
   ============================================================================ */

:root {
  --wx-input-bg: #ffffff;
  --wx-text: var(--wx-cyprus-deep);
}

.wx-dark {
  --wx-input-bg: var(--wx-soft);
  --wx-text: var(--wx-heading);
}

/* ── Standardized Cards ── */
.wx-app .card,
.wx-app .wx-card,
.wx-app .card.shadow {
  /* background-color: var(--wx-panel) !important; */
  /* border: 1px solid var(--wx-line) !important; */
  /* border-radius: var(--wx-radius-lg) !important; */
  /* box-shadow: var(--wx-shadow) !important; */
  /* margin-bottom: 24px !important; */
  transition: all var(--wx-duration) var(--wx-ease) !important;

}

.wx-app .card-header,
.wx-app .wx-card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--wx-line) !important;
  padding: 16px 24px !important;
  border-top-left-radius: var(--wx-radius-lg) !important;
  border-top-right-radius: var(--wx-radius-lg) !important;
}

.wx-app .card-footer,
.wx-app .wx-card-footer {
  background-color: transparent !important;
  border-top: 1px solid var(--wx-line) !important;
  padding: 16px 24px !important;
  border-bottom-left-radius: var(--wx-radius-lg) !important;
  border-bottom-right-radius: var(--wx-radius-lg) !important;
}

/* ── Standardized Buttons ── */
.wx-app .btn,
.wx-app .wx-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  font-family: var(--wx-font) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  height: 38px !important;
  border-radius: var(--wx-radius) !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
}

.wx-app .btn-sm,
.wx-app .wx-btn-sm {
  padding: 5px 12px !important;
  font-size: 0.75rem !important;
  height: 32px !important;
}

.wx-app .btn-lg,
.wx-app .wx-btn-lg {
  padding: 11px 22px !important;
  font-size: 0.875rem !important;
  height: 46px !important;
}

/* Button color states - standardized to #004741 */
.wx-app .btn,
.wx-app .wx-btn,
.wx-app .btn-primary,
.wx-app .wx-btn-primary,
.wx-app .btn-secondary,
.wx-app .wx-btn-secondary,
.wx-app .btn-default,
.wx-app .wx-btn-cancel,
.wx-app .btn-light,
.wx-app .btn-danger,
.wx-app .wx-btn-danger,
.wx-app .btn-warning,
.wx-app .wx-btn-warning,
.wx-app .btn-success,
.wx-app .wx-btn-success,
.wx-app .btn-info,
.wx-app .wx-btn-info,
.wx-app .btn-dark,
.wx-app .wx-btn-dark,
.wx-app .btn-outline-primary,
.wx-app .btn-outline-secondary,
.wx-app .btn-outline-danger,
.wx-app .btn-outline-success {
  background-color: #004741 !important;
  color: #ffffff !important;
  border-color: #004741 !important;
}

.wx-app .btn:hover,
.wx-app .wx-btn:hover,
.wx-app .btn-primary:hover,
.wx-app .wx-btn-primary:hover,
.wx-app .btn-secondary:hover,
.wx-app .wx-btn-secondary:hover,
.wx-app .btn-default:hover,
.wx-app .wx-btn-cancel:hover,
.wx-app .btn-light:hover,
.wx-app .btn-danger:hover,
.wx-app .wx-btn-danger:hover,
.wx-app .btn-warning:hover,
.wx-app .wx-btn-warning:hover,
.wx-app .btn-success:hover,
.wx-app .wx-btn-success:hover,
.wx-app .btn-info:hover,
.wx-app .wx-btn-info:hover,
.wx-app .btn-dark:hover,
.wx-app .wx-btn-dark:hover,
.wx-app .btn-outline-primary:hover,
.wx-app .btn-outline-secondary:hover,
.wx-app .btn-outline-danger:hover,
.wx-app .btn-outline-success:hover {
  background-color: var(--wx-cyprus-soft) !important;
  border-color: var(--wx-cyprus-soft) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  /* box-shadow: var(--wx-shadow-sm) !important; */
}

/* ── Standardized Forms & Inputs ── */
.wx-app .form-control,
.wx-app .wx-form-control,
.wx-app select.form-control,
.wx-app .dataTables_wrapper select,
.wx-app .dataTables_wrapper input {
  height: 38px !important;
  padding: 10px 14px !important;
  background-color: var(--wx-input-bg) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius) !important;
  font-family: var(--wx-font) !important;
  font-size: 0.8125rem !important;
  color: var(--wx-text) !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
  outline: none !important;
  box-shadow: none !important;
}

.wx-app .form-control:focus,
.wx-app .wx-form-control:focus,
.wx-app select.form-control:focus,
.wx-app .dataTables_wrapper select:focus,
.wx-app .dataTables_wrapper input:focus {
  /* border-color: var(--wx-cyprus) !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 65, 0.1) !important; */
}

.wx-app textarea.form-control {
  height: auto !important;
  min-height: 80px !important;
}

.wx-app .form-control-sm,
.wx-app .wx-form-control-xs {
  height: 32px !important;
  padding: 5px 10px !important;
  font-size: 0.75rem !important;
}

/* ── Standardized Search Bars ── */
.wx-app .wx-search-input,
.wx-app .dataTables_filter {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  float: right !important;
}

.wx-app .wx-search-input {
  gap: 8px !important;
}

/* A wrapped search field must have only one visual container. */
.wx-app .wx-search-input input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.wx-app .dataTables_filter input {
  padding-left: 36px !important;
  min-width: 220px !important;
  height: 38px !important;
}

.wx-app .wx-search-input svg,
.wx-app .dataTables_filter::before {
  position: absolute !important;
  left: 12px !important;
  color: var(--wx-muted) !important;
  pointer-events: none !important;
}

.wx-app .wx-search-input svg,
.wx-app .wx-search-input i {
  position: static !important;
  flex: 0 0 auto !important;
  color: var(--wx-muted) !important;
  pointer-events: none !important;
}

/* ── Standardized Tables ── */
.wx-app table.dataTable,
.wx-app table.table,
.wx-app .wx-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.wx-app table.dataTable th,
.wx-app table.table th,
.wx-app .wx-table th {
  background-color: #fcfcfc !important;
  color: #94a3b8 !important;
  font-family: var(--wx-font) !important;
  font-weight: 700 !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top: none !important;
}

.wx-app table.dataTable td,
.wx-app table.table td,
.wx-app .wx-table td {
  padding: 10px 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.8125rem !important;
  color: #374151 !important;
  background-color: #ffffff !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

.wx-app table.dataTable tbody tr,
.wx-app table.table tbody tr,
.wx-app .wx-table tbody tr,
.wx-app table.dataTable tbody tr.odd,
.wx-app table.dataTable tbody tr.even,
.wx-app table.table-striped tbody tr:nth-of-type(odd),
.wx-app table.table-striped tbody tr:nth-of-type(even) {
  background-color: var(--wx-panel) !important;
  box-shadow: none !important;
}

.wx-app table.dataTable tbody tr:last-child td,
.wx-app table.table tbody tr:last-child td,
.wx-app .wx-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Subtle hover on rows */
.wx-app table.dataTable tbody tr:hover td,
.wx-app table.table tbody tr:hover td,
.wx-app .wx-table tbody tr:hover td {
  background-color: #fafafa !important;
  box-shadow: none !important;
}

/* ── Standardized Modals ── */
.wx-app .modal-content {
  background-color: var(--wx-panel) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius-lg) !important;
  box-shadow: var(--wx-shadow-lg) !important;
  overflow: hidden !important;
}

.wx-app .modal-header {
  border-bottom: 1px solid var(--wx-line) !important;
  padding: 16px 24px !important;
}

.wx-app .modal-footer {
  border-top: 1px solid var(--wx-line) !important;
  padding: 16px 24px !important;
}

.wx-app .modal-title {
  font-family: var(--wx-font-display) !important;
  font-weight: 700 !important;
  color: var(--wx-text) !important;
}

/* ── Standardized Badges ── */
.wx-app .badge {
  padding: 5px 10px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: var(--wx-radius-sm) !important;
}

/* ── Date/Time Picker (pickadate/pickatime) ── */
.wx-app .picker__box {
  background-color: var(--wx-panel) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius-lg) !important;
  box-shadow: var(--wx-shadow-lg) !important;
  padding: 16px !important;
  font-family: var(--wx-font) !important;
}

.wx-app .picker__header {
  border-bottom: 1px solid var(--wx-line) !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

.wx-app .picker__select--month,
.wx-app .picker__select--year {
  background-color: var(--wx-input-bg) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius-sm) !important;
  padding: 4px 8px !important;
  font-size: 0.8125rem !important;
  color: var(--wx-text) !important;
}

.wx-app .picker__day--infocus {
  color: var(--wx-text) !important;
}

.wx-app .picker__day--today::before {
  border-top-color: var(--wx-cyprus) !important;
}

.wx-app .picker__day--selected,
.wx-app .picker__day--selected:hover {
  background-color: var(--wx-cyprus) !important;
  color: var(--wx-sand) !important;
  border-radius: var(--wx-radius-sm) !important;
}

.wx-app .picker__button--today,
.wx-app .picker__button--clear,
.wx-app .picker__button--close {
  background: var(--wx-sand-light) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius-sm) !important;
  color: var(--wx-cyprus) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  padding: 6px 12px !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
}

.wx-app .picker__button--today:hover,
.wx-app .picker__button--clear:hover,
.wx-app .picker__button--close:hover {
  border-color: var(--wx-cyprus) !important;
  background: var(--wx-soft) !important;
}

/* ── Filepond (File Upload) Standardizations ── */
.wx-app .filepond--panel-root {
  background-color: var(--wx-soft) !important;
  border: 1.5px dashed var(--wx-line) !important;
  border-radius: var(--wx-radius) !important;
}

.wx-app .filepond--drop-label {
  color: var(--wx-text) !important;
  font-family: var(--wx-font) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
}

.wx-app .filepond--label-action {
  color: var(--wx-cyprus) !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

.wx-app .filepond--item-panel {
  background-color: var(--wx-cyprus) !important;
  border-radius: var(--wx-radius-sm) !important;
}

/* ── Default File Upload Inputs ── */
.wx-app input[type="file"]::file-selector-button {
  background-color: var(--wx-sand-light) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius-sm) !important;
  color: var(--wx-cyprus) !important;
  padding: 6px 12px !important;
  font-family: var(--wx-font) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
  margin-right: 12px !important;
}

.wx-app input[type="file"]::file-selector-button:hover {
  border-color: var(--wx-cyprus) !important;
  background-color: var(--wx-soft) !important;
}

/* ── Form Layout Spacing ── */
.wx-app form .form-group,
.wx-app form .mb-3,
.wx-app form .mb-4 {
  margin-bottom: 20px !important;
}

.wx-app form label {
  display: block !important;
  margin-bottom: 8px !important;
  font-family: var(--wx-font) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--wx-text) !important;
}

.wx-app form .form-text,
.wx-app form .help-block,
.wx-app form small {
  display: block !important;
  margin-top: 6px !important;
  font-size: 0.75rem !important;
  color: var(--wx-muted) !important;
}

.wx-app form .invalid-feedback,
.wx-app form .error {
  color: var(--wx-rose) !important;
  font-size: 0.75rem !important;
  margin-top: 6px !important;
  font-weight: 500 !important;
}

.wx-app form .form-actions,
.wx-app form .modal-footer {
  display: flex !important;
  gap: 12px !important;
  justify-content: flex-end !important;
  margin-top: 24px !important;
}

/* ── Checkboxes & Radio Buttons ── */
.wx-app .form-check-input {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  border: 1.5px solid var(--wx-line) !important;
  background-color: var(--wx-input-bg) !important;
  cursor: pointer !important;
  transition: all var(--wx-duration) var(--wx-ease) !important;
  margin-top: 3px !important;
}

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

.wx-app .form-check-input:checked {
  background-color: var(--wx-cyprus) !important;
  border-color: var(--wx-cyprus) !important;
}

.wx-app .form-check-label {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--wx-text) !important;
  padding-left: 6px !important;
  cursor: pointer !important;
}

/* ── Contact Table Premium Reference Style Overrides ── */
.wx-app .wx-table {
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.wx-app .wx-table th {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 12px 16px !important;
}

.wx-app .wx-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 16px !important;
  background-color: #ffffff !important;
}

.wx-app .wx-table tr:hover td {
  background-color: #f8fafc !important;
}

/* Initials avatar green/emerald badge style */
.wx-app .wx-avatar {
  background-color: var(--wx-emerald-bg) !important;
  color: var(--wx-emerald) !important;
  border-radius: 50% !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Contact Name Links */
.wx-app .wx-table .wx-github-link {
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
}

.wx-app .wx-table .wx-github-link:hover {
  color: var(--wx-cyprus) !important;
  text-decoration: underline !important;
}

/* Flexbox helper utilities for justify-between alignment */
.wx-app .justify-between,
.wx-app .d-flex.justify-between {
  justify-content: space-between !important;
}

.wx-app .items-center,
.wx-app .d-flex.items-center {
  align-items: center !important;
}

.wx-app .flex {
  display: flex !important;
}

/* Global DataTables Bottom Info/Pagination Footer Standardization */
.wx-app .dataTables_wrapper .row:last-child,
.wx-app .dataTables_wrapper>div:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 12px !important;
  background-color: var(--wx-soft) !important;
  border-top: 1px solid var(--wx-line) !important;
  margin: 0 !important;
  border-bottom-left-radius: var(--wx-radius-lg) !important;
  border-bottom-right-radius: var(--wx-radius-lg) !important;
  width: 100% !important;
}

.wx-app .dataTables_wrapper .dataTables_info {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  /* text-xs equivalent */
  color: var(--wx-muted) !important;
  font-weight: 500 !important;
  font-family: var(--wx-font) !important;
}

.wx-app .dataTables_wrapper .dataTables_paginate {
  padding: 0 !important;
  margin: 0 !important;
}

/* Custom Toggle Overrides to Emerald Green */
.wx-app .custom-toggle input:checked+.custom-toggle-slider {
  background-color: var(--wx-emerald) !important;
  border-color: var(--wx-emerald) !important;
}

.wx-app .custom-toggle input:disabled:checked+.custom-toggle-slider {
  background-color: var(--wx-emerald) !important;
  border-color: var(--wx-emerald) !important;
  opacity: 0.85 !important;
}

/* ── Premium Whalexy Design Upgrades ── */

/* 1. Frosted Glass Topbar */
.wx-app .wx-topbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(232, 229, 222, 0.7) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01) !important;
}

.wx-dark .wx-topbar {
  background: rgba(7, 79, 72, 0.82) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(40, 115, 108, 0.7) !important;
}

/* 2. Interactive Card Elevations */
.wx-app .card,
.wx-settings-panel,
.wx-accordion-item {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.wx-app .card:hover,
.wx-settings-panel:hover,
.wx-accordion-item:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 16px 36px rgba(0, 71, 65, 0.08) !important; */
  border-color: rgba(0, 71, 65, 0.15) !important;
}

/* 3. Glowing Focus States for Fields */
.wx-app .form-control,
.wx-app input[type="text"],
.wx-app input[type="number"],
.wx-app textarea,
.wx-app select,
.selectize-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.wx-app .form-control:focus,
.wx-app input[type="text"]:focus,
.wx-app input[type="number"]:focus,
.wx-app textarea:focus,
.wx-app select:focus,
.selectize-input.focus {
  /* border-color: var(--wx-cyprus) !important; */
  background-color: #ffffff !important;
  /* box-shadow: 0 0 0 4px rgba(0, 71, 65, 0.14) !important; */
}

/* 4. Elegant Button Animations */
.wx-app .btn-primary,
.wx-app .btn-default,
.wx-app .btn-secondary,
.wx-app .wx-btn-cancel,
.wx-app button[type="submit"] {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
}

.wx-app .btn-primary:hover,
.wx-app .btn-default:hover,
.wx-app button[type="submit"]:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(0, 71, 65, 0.25) !important;
}

.wx-app .btn-primary:active,
.wx-app .btn-default:active,
.wx-app button[type="submit"]:active {
  transform: translateY(0.5px);
  /* box-shadow: 0 4px 12px rgba(0, 71, 65, 0.2) !important; */
}

.wx-app .btn-secondary:hover,
.wx-app .wx-btn-cancel:hover {
  transform: translateY(-1.5px);
  background-color: #fafafa !important;
  border-color: var(--wx-cyprus) !important;
  color: var(--wx-cyprus) !important;
}

/* 5. Smooth Sidebar Link Transitions */
.wx-sidebar-link {
  transition: padding-left 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease, color 0.22s ease !important;
}

.wx-sidebar-link:hover {
  padding-left: 18px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

.wx-sidebar-link.active {
  padding-left: 18px !important;
}

/* 6. Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 71, 65, 0.25) !important;
  border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 71, 65, 0.45) !important;
}




/* Remove default Bootstrap row padding inside DataTables to allow table to span full width */
.wx-app .dataTables_wrapper .row>.col-sm-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── DataTable action menus (portal to body via JS) ───────────────────────── */
.wx-table-action-panel,
.action-dropdown .wx-dropdown-menu.wx-table-action-panel,
.cl-action-dropdown.wx-table-action-panel {
  position: fixed;
  z-index: 10050 !important;
  min-width: 180px;
  background: var(--wx-panel) !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius) !important;
  box-shadow: var(--wx-shadow-lg) !important;
  padding: 4px 0 !important;
  overflow: visible !important;
}

.wx-app table.dataTable td.wx-action-col,
.wx-app table.dataTable td:has(.action-dropdown),
.wx-app table.dataTable td:has(.cl-action-wrap),
.wx-app table.dataTable td:has(.wx-table-action-menu) {
  overflow: visible !important;
  position: relative;
}

.wx-app .dataTables_wrapper,
.wx-app .dataTables_wrapper .dataTables_scroll,
.wx-app .card-body,
.wx-app .cl-contacts-card {
  overflow: visible !important;
}

.wx-app .table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

/* Prevent body-level horizontal scroll while allowing table wrappers to scroll */
html,
body.wx-app {
  overflow-x: hidden;
  max-width: 100vw;
}

.wx-topbar-actions {
  flex-shrink: 0;
  min-width: 0;
}

@media (max-width: 991px) {
  .wx-content {
    max-width: 100%;
  }

  .wx-view-header,
  .cl-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wx-view-header-actions,
  .cl-page-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .wx-topbar {
    flex-wrap: nowrap;
    overflow: visible;
  }

  .wx-topbar-actions {
    gap: 4px;
    flex-shrink: 0;
  }

  /* Ensure avatar/profile button is always visible on mobile */
  .wx-avatar-btn {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  /* Hide search kbd shortcut on mobile */
  .wx-search kbd {
    display: none !important;
  }

  .wx-table thead th,
  .wx-table tbody td,
  .wx-app table.dataTable th,
  .wx-app table.dataTable td {
    white-space: nowrap;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FULL-BLEED LAYOUT — edge-to-edge sections, tighter spacing, polished UI
   ═══════════════════════════════════════════════════════════════════════════ */

.wx-main {
  width: auto;
  min-width: 0;
}

.wx-content>.wx-space-y-8,
.wx-content>.container-fluid,
.wx-content>.container,
.wx-content>div {
  width: 100%;
  max-width: 100%;
}

/* Remove bootstrap container gutters inside dashboard */
.wx-app .wx-content>.container-fluid,
.wx-app .wx-content .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

.wx-app .wx-content .row {
  margin-left: -12px !important;
  margin-right: -12px !important;
}

.wx-app .wx-content .row>[class*="col-"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Maintain full-bleed spacing for smart inbox and chat panels */
.wx-content:has(.smart-inbox-grid) .row,
.wx-content:has(.smart-inbox-grid) .row>[class*="col-"],
.wx-content:has(.lw-whatsapp-chat-block-container) .row,
.wx-content:has(.lw-whatsapp-chat-block-container) .row>[class*="col-"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Page headers — compact, full width */
.wx-view-header {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 0 2px;
}

.wx-view-header-info h2 {
  font-size: 1.35rem;
}

/* Panels & cards — full width, refined surfaces */
.wx-panel,
.wx-card,
.wx-app .card.shadow,
.wx-dash-card,
.cl-contacts-card {
  width: 100%;
  border-radius: var(--wx-radius-lg);
  border-color: var(--wx-line);
  box-shadow: 0 1px 2px rgba(0, 71, 65, 0.04), 0 4px 18px rgba(0, 71, 65, 0.05);
}

.wx-panel-padded {
  padding: 16px;
}

/* DataTable card shell — flush, no double boxing */
.wx-app .card.shadow {
  margin-bottom: 0 !important;
  border: 1px solid var(--wx-line);
  background: var(--wx-panel);
  overflow: hidden;
}

.wx-app .card.shadow .card-body {
  padding: 0 !important;
}

.wx-app .card.shadow .card-header {
  padding: 14px 16px;
  background: var(--wx-soft);
  border-bottom: 1px solid var(--wx-line);
}

/* Table toolbars */
.wx-table-wrap {
  margin-bottom: 0 !important;
}

.cl-toolbar,
.cl-page-header {
  padding-left: 16px;
  padding-right: 16px;
}

/* Chat / full-height pages */
.wx-content--flush,
.wx-content:has(.lw-whatsapp-chat-block-container),
.wx-content:has(.smart-inbox-grid) {
  padding: 0 !important;
  background: var(--wx-panel);
}

.wx-content:has(.smart-inbox-grid) .container-fluid,
.wx-content:has(.smart-inbox-grid) .card.lw-whatsapp-chat-block-container {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.wx-content:has(.smart-inbox-grid) .card-body {
  padding: 0 !important;
}

.smart-inbox-grid {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - var(--wx-topbar-height));
  height: calc(100vh - var(--wx-topbar-height));
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Dashboard metric polish */
.wx-metrics-grid {
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.wx-owner-brief {
  margin-bottom: 12px !important;
  border-radius: var(--wx-radius-lg) !important;
}

.wx-metric-card,
.wx-dash-card {
  border-radius: var(--wx-radius-lg) !important;
}

/* Alerts inside content — slight inset only */
.wx-content .wx-alert,
.wx-content>.wx-space-y-8>div[style*="margin-bottom"] {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 991px) {
  .wx-content {
    padding: 8px 8px 14px !important;
  }

  .wx-panel,
  .wx-card,
  .wx-app .card.shadow,
  .wx-dash-card,
  .cl-contacts-card,
  .wx-owner-brief {
    border-radius: 12px !important;
  }

  .wx-view-header-info h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .wx-content {
    padding: 0 !important;
  }

  .wx-space-y-8 {
    gap: 8px;
  }

  .wx-view-header,
  .cl-page-header {
    padding: 12px 12px 0;
    margin-bottom: 8px !important;
  }

  .wx-panel,
  .wx-card,
  .wx-app .card.shadow,
  .wx-dash-card,
  .cl-contacts-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .wx-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .wx-metric-card {
    border-radius: 0 !important;
    border-top: none !important;
  }

  .wx-owner-brief {
    border-radius: 0 !important;
    padding: 20px 16px !important;
  }

  .cl-toolbar,
  .cl-page-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .smart-inbox-grid {
    min-height: calc(100dvh - var(--wx-topbar-height));
    height: calc(100dvh - var(--wx-topbar-height));
  }
}

/* Fix for Selectize copying form-control class and causing double-box effect */
.selectize-control.form-control {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
}

/* Fix Selectize dropdown options styling */
.selectize-dropdown {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  border-radius: 8px !important;
  z-index: 9999 !important;
  margin-top: 4px !important;
}

.selectize-dropdown-content {
  max-height: 250px !important;
}

.selectize-dropdown [data-selectable],
.selectize-dropdown .option {
  padding: 10px 16px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  display: block !important;
}

.selectize-dropdown .active {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ── Global DataTables Override: Shift Search to Left ── */
.dataTables_wrapper .row:first-child {
  display: flex !important;
  flex-direction: row-reverse !important;
}

.dataTables_wrapper .dataTables_filter {
  text-align: left !important;
  float: left !important;
}

.dataTables_wrapper .dataTables_length {
  text-align: right !important;
  float: right !important;
}

/* ── Global Fix: Round the bottom corners of datatables to match card curves ── */
.card-body.p-0 .dataTables_wrapper .row:last-child,
.cl-contacts-card .dataTables_wrapper .row:last-child,
.wx-panel .dataTables_wrapper .row:last-child,
.card .dataTables_wrapper .row:last-child,
.wx-app .dataTables_wrapper>div:last-child {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-bottom-left-radius: var(--wx-radius-lg) !important;
  border-bottom-right-radius: var(--wx-radius-lg) !important;
}

/* Keep the footer's inner grid cells from painting square corners over the row. */
.wx-app .dataTables_wrapper .row:last-child>div:first-child,
.wx-app .dataTables_wrapper>div:last-child>div:first-child {
  border-bottom-left-radius: var(--wx-radius-lg) !important;
}

.wx-app .dataTables_wrapper .row:last-child>div:last-child,
.wx-app .dataTables_wrapper>div:last-child>div:last-child {
  border-bottom-right-radius: var(--wx-radius-lg) !important;
}

.wx-app .cl-contacts-card,
.wx-app .cl-contacts-card .wx-table-wrap,
.wx-app .cl-contacts-card .dataTables_wrapper {
  border-bottom-left-radius: var(--wx-radius-lg) !important;
  border-bottom-right-radius: var(--wx-radius-lg) !important;
}

/* ── Global table-toolbar alignment: search always starts on the left ── */
.wx-app .wx-panel>.d-flex:has(> .wx-search-input)>.wx-search-input,
.wx-app .wx-card>.d-flex:has(> .wx-search-input)>.wx-search-input {
  order: -1 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.wx-app .wf-table-controls .wf-search-wrap {
  order: -1 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.wx-app .camp-table-header-right {
  order: -1 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.wx-app .camp-table-header-right .camp-search-wrap {
  order: -1 !important;
}

/* ── Spacing and alignment for DataTable top controls ── */
.wx-app .dataTables_wrapper>.row:first-child {
  padding: 8px 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--wx-line) !important;
  background-color: var(--wx-sand-light) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.wx-app .dataTables_wrapper>.row:first-child>div {
  padding: 0 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
}

.wx-app .dataTables_wrapper>.row:first-child>div:first-child {
  order: 2 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.wx-app .dataTables_wrapper>.row:first-child>div:last-child {
  order: 1 !important;
  display: flex !important;
  justify-content: flex-start !important;
}

.wx-app .dataTables_wrapper .dataTables_filter {
  float: none !important;
  text-align: left !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.wx-app .dataTables_wrapper .dataTables_filter label {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 500 !important;
  color: var(--wx-cyprus-deep) !important;
}

.wx-app .dataTables_wrapper .dataTables_filter input {
  width: 240px !important;
  height: 36px !important;
  padding: 6px 12px !important;
  font-size: 0.875rem !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius) !important;
  outline: none !important;
  background-color: var(--wx-panel) !important;
  color: var(--wx-heading) !important;
}

.wx-app .dataTables_wrapper .dataTables_length {
  float: none !important;
  text-align: right !important;
  margin: 0 !important;
}

.wx-app .dataTables_wrapper .dataTables_length label {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 500 !important;
  color: var(--wx-muted) !important;
}

.wx-app .dataTables_wrapper .dataTables_length select {
  height: 36px !important;
  padding: 6px 24px 6px 12px !important;
  border: 1px solid var(--wx-line) !important;
  border-radius: var(--wx-radius) !important;
  background-color: var(--wx-panel) !important;
  color: var(--wx-heading) !important;
}

/* ── Action Dropdown Menus ── */
.cl-action-wrap {
  position: relative;
  display: inline-block;
}

.cl-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--wx-line);
  background: var(--wx-panel);
  color: var(--wx-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.cl-action-btn:hover {
  background: var(--wx-soft);
  border-color: var(--wx-muted);
  color: var(--wx-heading);
}

.cl-action-dropdown {
  position: fixed;
  min-width: 190px;
  background: var(--wx-panel);
  border: 1px solid var(--wx-line);
  border-radius: 10px;
  box-shadow: var(--wx-shadow-lg);
  z-index: 9999;
  padding: 4px 0;
  overflow: visible;
}

.cl-action-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wx-heading);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s ease;
  border: none;
  background: none;
  width: 100%;
}

.cl-action-item i {
  width: 14px;
  color: var(--wx-muted);
}

.cl-action-item:hover {
  background: var(--wx-soft);
  color: var(--wx-cyprus-deep);
  text-decoration: none;
}

.cl-action-item:hover i {
  color: var(--wx-cyprus-soft);
}

.cl-action-danger {
  color: var(--wx-rose) !important;
}

.cl-action-danger i {
  color: var(--wx-rose) !important;
}

.cl-action-danger:hover {
  background: var(--wx-rose-bg) !important;
}

.cl-action-divider {
  height: 1px;
  background: var(--wx-line);
  margin: 3px 0;
}

/* ── Page Header Styles ── */
.cl-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 0 12px;
  margin-bottom: 24px !important;
}

.cl-page-header-left {
  flex: 1;
  min-width: 0;
}

.cl-page-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wx-cyprus-soft);
  margin-bottom: 4px;
}

.cl-page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--wx-heading);
  line-height: 1.2;
  margin: 0 0 4px;
  font-family: var(--wx-font-display);
}

.cl-page-desc {
  font-size: 0.8125rem;
  color: var(--wx-muted);
  margin: 0;
}

.cl-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Super Admin Button Colors (#004741) ── */
.wx-super-admin-console .btn:not(.btn-danger):not(.btn-outline-danger):not(.cl-action-danger):not(.cl-action-btn):not(.wx-sidebar-toggle):not(.wx-mobile-menu),
.wx-super-admin-console .btn-primary,
.wx-super-admin-console .btn-info,
.wx-super-admin-console .btn-success,
.wx-super-admin-console .btn-default,
.wx-super-admin-console .btn-dark,
.wx-super-admin-console .btn-light {
  background-color: #004741 !important;
  border-color: #004741 !important;
  color: #ffffff !important;
}

.wx-super-admin-console .btn:not(.btn-danger):not(.btn-outline-danger):not(.cl-action-danger):not(.cl-action-btn):not(.wx-sidebar-toggle):not(.wx-mobile-menu):hover,
.wx-super-admin-console .btn-primary:hover,
.wx-super-admin-console .btn-info:hover,
.wx-super-admin-console .btn-success:hover,
.wx-super-admin-console .btn-default:hover,
.wx-super-admin-console .btn-dark:hover,
.wx-super-admin-console .btn-light:hover {
  background-color: #00332f !important;
  border-color: #00332f !important;
  color: #ffffff !important;
}

.wx-super-admin-console .btn-outline-primary,
.wx-super-admin-console .btn-outline-info,
.wx-super-admin-console .btn-outline-success,
.wx-super-admin-console .btn-outline-dark,
.wx-super-admin-console .btn-outline-light {
  border-color: #004741 !important;
  color: #004741 !important;
  background-color: transparent !important;
}

.wx-super-admin-console .btn-outline-primary:hover,
.wx-super-admin-console .btn-outline-info:hover,
.wx-super-admin-console .btn-outline-success:hover,
.wx-super-admin-console .btn-outline-dark:hover,
.wx-super-admin-console .btn-outline-light:hover {
  background-color: #004741 !important;
  color: #ffffff !important;
  border-color: #004741 !important;
}

/* ── Custom Whalexy Switchery Toggles ── */
.wx-app .switchery {
  height: 20px !important;
  width: 40px !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  position: relative !important;
  background-color: var(--wx-sand-deep) !important;
  border: none !important;
  /* Flat borderless styling prevents calculation offset bugs */
  transition: background-color 0.2s !important;
}

.wx-app .switchery>small {
  position: absolute !important;
  height: 20px !important;
  width: 20px !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  top: 0px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
}

/* Checked State: Styled via checkbox checked sibling rule */
.wx-app input[type="checkbox"]:checked+.switchery {
  background-color: var(--wx-cyprus) !important;
}

/* Hide default DataTables search filter globally */
.wx-table-wrap label:not([class]),
div[id$="_filter"],
div[class*="dataTables_filter"],
div[class*="dt-search"],
.wx-app .dataTables_wrapper .dataTables_filter,
.wx-app .dataTables_filter,
.dataTables_wrapper .dataTables_filter,
.dataTables_filter {
  display: none !important;
}

/* Hide empty first row (length/filter row) of DataTables wrapper globally to remove blank vertical space */
.wx-app .dataTables_wrapper>.row:first-child {
  display: none !important;
}

/* Keep topbar search visually single-layer and vertically centered */
.wx-app .wx-topbar {
  align-items: center !important;
}

.wx-app .wx-search {
  box-shadow: none !important;
  align-self: center !important;
}

.wx-app .wx-search input {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* Compact the vendor dashboard so the second row starts sooner */
.wx-app .wx-dashboard .wx-health-row,
.wx-app .wx-dashboard .wx-metrics-grid,
.wx-app .wx-dashboard .wx-two-col {
  margin-bottom: 16px !important;
}

.wx-app .wx-dashboard .wx-two-col {
  gap: 16px !important;
}

.wx-app .wx-dashboard .wx-two-col:first-of-type>.wx-dash-card:last-child {
  max-height: none;
  overflow: hidden;
}

.wx-app .wx-dashboard .wx-two-col:first-of-type>.wx-dash-card {
  max-height: none;
  overflow: hidden;
  align-self: start !important;
  height: auto !important;
}

.wx-app .wx-dashboard .wx-urgent-item {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

/* ================================================================
   ADMIN RESPONSIVENESS
   Shared by Vendor Owner/Manager pages and Central Admin pages.
   Wide data stays accessible inside the card instead of being clipped.
   ================================================================ */
.wx-app .wx-content,
.wx-app .wx-content>*,
.wx-app .wx-space-y-8,
.wx-app .wx-panel,
.wx-app .wx-card,
.wx-app .card,
.wx-app .card-body,
.wx-app .dataTables_wrapper {
  min-width: 0 !important;
  max-width: 100% !important;
}

.wx-app .wx-table-wrap,
.wx-app .wx-datatable-scroll,
.wx-app .table-responsive {
  display: block;
  width: 100%;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.wx-app .wx-datatable-scroll:focus-visible {
  outline: 2px solid rgba(0, 114, 103, 0.35);
  outline-offset: -2px;
}

/* Keep page-level action groups inside the viewport. */
.wx-app .wx-view-header,
.wx-app .cl-page-header,
.wx-app .wx-view-header-actions,
.wx-app .cl-page-actions,
.wx-app .wx-table-toolbar {
  min-width: 0;
}

@media (max-width: 991.98px) {

  .wx-app .wx-view-header-actions,
  .wx-app .cl-page-actions {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .wx-app .wx-view-header-actions>*,
  .wx-app .cl-page-actions>* {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {

  /* DataTables need a real scroll width on phones; wrapping cells makes
     names/emails unreadable and was the source of the clipped Agent list. */
  .wx-app .wx-datatable-scroll table.dataTable,
  .wx-app .wx-datatable-scroll .wx-table,
  .wx-app .wx-table-wrap table.dataTable,
  .wx-app .wx-table-wrap .wx-table {
    width: max-content !important;
    min-width: 760px !important;
    table-layout: auto !important;
  }

  .wx-app .wx-datatable-scroll th,
  .wx-app .wx-datatable-scroll td,
  .wx-app .wx-table-wrap th,
  .wx-app .wx-table-wrap td {
    white-space: nowrap !important;
    word-break: normal !important;
  }

  /* Custom list toolbars: search first, page length second, no overflow. */
  .wx-app .wx-panel>.d-flex:has(.wx-search-input),
  .wx-app .wx-card>.d-flex:has(.wx-search-input),
  .wx-app .card>.d-flex:has(.wx-search-input) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .wx-app .wx-panel>.d-flex:has(.wx-search-input) .wx-search-input,
  .wx-app .wx-card>.d-flex:has(.wx-search-input) .wx-search-input,
  .wx-app .card>.d-flex:has(.wx-search-input) .wx-search-input {
    flex: 1 1 220px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .wx-app .dataTables_wrapper .row:last-child,
  .wx-app .dataTables_wrapper>div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 12px !important;
    padding: 10px 12px !important;
  }

  .wx-app .dataTables_wrapper .dataTables_info,
  .wx-app .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .wx-app .modal-dialog {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
  }

  .wx-app .modal-content,
  .wx-app .modal-body,
  .wx-app .lw-form-modal-body {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .wx-app .modal-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

@media (max-width: 575.98px) {

  .wx-app .wx-view-header-actions>.wx-btn,
  .wx-app .cl-page-actions>.wx-btn,
  .wx-app .wx-view-header-actions>button,
  .wx-app .cl-page-actions>button,
  .wx-app .wx-view-header-actions>a,
  .wx-app .cl-page-actions>a {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .wx-app .modal-footer>.btn,
  .wx-app .modal-footer>.wx-btn {
    flex: 1 1 calc(50% - 4px) !important;
    justify-content: center !important;
  }
}

/* ── Hide All Scrollbars (keep scroll functionality) ─────────────────────── */
* {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / Edge */
}

*::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Selectize Dropdown Styling Overrides */
.selectize-dropdown {
  background-color: var(--wx-panel, #ffffff) !important;
  border: 1px solid var(--wx-line, #e8e5de) !important;
  border-radius: var(--wx-radius, 10px) !important;
  box-shadow: var(--wx-shadow, 0 4px 16px rgba(0, 71, 65, 0.08)) !important;
  margin-top: 4px !important;
  z-index: 1050 !important;
}

.selectize-dropdown-content {
  background-color: var(--wx-panel, #ffffff) !important;
  border-radius: var(--wx-radius, 10px) !important;
}

.selectize-dropdown .option {
  padding: 10px 14px !important;
  color: var(--wx-cyprus-deep, #00332f) !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.selectize-dropdown .active {
  background-color: var(--wx-soft, #faf8f2) !important;
  color: var(--wx-cyprus, #004741) !important;
}

.selectized {
  display: none !important;
}

div.selectize-control.form-control {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

div.selectize-dropdown.form-control {
  height: auto !important;
  padding: 0 !important;
}
/* Premium billing and subscription portal */
.wx-billing-shell{--bill-bg:#f7faf9;--bill-dark:#0b5d52;--bill-green:#16a34a;--bill-accent:#22c55e;--bill-blue:#2563eb;--bill-border:#e5e7eb;--bill-text:#0f172a;--bill-muted:#64748b;color:var(--bill-text);max-width:1480px;margin:0 auto;padding:24px 28px 112px;font-family:var(--wx-font-body,"Inter",sans-serif)}
.wx-billing-shell *{box-sizing:border-box}.wx-billing-shell h1,.wx-billing-shell h2,.wx-billing-shell h3,.wx-billing-shell p{margin-top:0}.wx-billing-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 260px;gap:32px;min-height:318px;padding:40px 40px 0;margin-bottom:24px;border:1px solid rgba(11,93,82,.1);border-radius:24px;background:radial-gradient(circle at 86% 18%,rgba(34,197,94,.15),transparent 27%),linear-gradient(135deg,#fff 0%,#f1fbf7 52%,#eff8ff 100%);box-shadow:0 18px 50px rgba(15,23,42,.06);animation:wxBillIn .55s ease both}.wx-billing-hero-copy{padding-top:5px}.wx-billing-eyebrow,.wx-panel-heading>div>span,.wx-section-heading>span{display:block;margin-bottom:8px;color:var(--bill-dark);font-size:11px;font-weight:800;letter-spacing:.14em}.wx-billing-hero h1{margin-bottom:10px;font:700 clamp(28px,3vw,42px)/1.15 var(--wx-font-display,"Outfit",sans-serif);letter-spacing:-.035em}.wx-billing-hero-copy p,.wx-section-heading p{color:var(--bill-muted);font-size:15px}.wx-billing-card-art{position:relative;align-self:start;width:182px;height:112px;margin:8px auto 0;transform:rotate(-7deg);border-radius:14px;background:linear-gradient(145deg,#087d64,#06483f);box-shadow:0 20px 35px rgba(11,93,82,.2)}.wx-billing-art-chip{position:absolute;left:22px;top:28px;width:34px;height:25px;border-radius:6px;background:linear-gradient(135deg,#d5f7e8,#98dfc2)}.wx-billing-art-line{position:absolute;left:22px;bottom:24px;width:82px;height:7px;border-radius:10px;background:rgba(255,255,255,.75)}.wx-billing-card-art i{position:absolute;right:-15px;bottom:-15px;display:grid;place-items:center;width:48px;height:48px;border:6px solid #effaf6;border-radius:50%;color:#fff;background:var(--bill-accent);transform:rotate(7deg)}.wx-billing-summary{position:absolute;left:24px;right:24px;bottom:20px;display:grid;grid-template-columns:repeat(5,1fr);min-height:102px;border:1px solid rgba(229,231,235,.9);border-radius:18px;background:rgba(255,255,255,.9);box-shadow:0 10px 30px rgba(15,23,42,.06);backdrop-filter:blur(12px)}.wx-summary-item{display:flex;align-items:center;gap:12px;padding:20px;border-right:1px solid var(--bill-border)}.wx-summary-item:last-child{border-right:0}.wx-summary-item>i{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;color:var(--bill-dark);background:#eaf9f3}.wx-summary-item:first-child>i{color:#b88711;background:#fff8d9}.wx-summary-item span{min-width:0;color:var(--bill-muted);font-size:11px}.wx-summary-item strong{display:block;overflow:hidden;margin-top:5px;color:var(--bill-text);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.wx-summary-item .wx-status-active{color:var(--bill-green)}.wx-summary-progress{display:block;height:5px;margin-top:7px;border-radius:20px;background:#edf1f0}.wx-summary-progress em{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--bill-green),var(--bill-accent));animation:wxBillGrow .9s .25s ease both}.wx-billing-overview{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;margin-bottom:24px}.wx-billing-panel{border:1px solid var(--bill-border);border-radius:24px;background:#fff;box-shadow:0 10px 35px rgba(15,23,42,.045);animation:wxBillIn .55s .08s ease both}.wx-current-plan,.wx-billing-overview>.wx-billing-panel{padding:28px}.wx-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.wx-panel-heading h2,.wx-section-heading h2{margin:0;font:700 21px/1.2 var(--wx-font-display,"Outfit",sans-serif);letter-spacing:-.02em}.wx-active-pill{padding:7px 11px;border-radius:999px;color:#137a40;background:#e9f9ee;font-size:12px;font-weight:700}.wx-plan-identity{display:flex;align-items:center;gap:18px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--bill-border)}.wx-plan-icon{display:grid;place-items:center;flex:0 0 72px;width:72px;height:72px;border-radius:20px;color:var(--bill-dark);font-size:30px;background:linear-gradient(135deg,#dcfce7,#e7faf4)}.wx-plan-identity h3{margin-bottom:5px;font-size:21px}.wx-plan-price{margin-bottom:3px;color:var(--bill-text);font-size:24px;font-weight:800}.wx-plan-price small{color:var(--bill-muted);font-size:12px;font-weight:500}.wx-plan-identity p:last-child,.wx-muted-copy{margin-bottom:0;color:var(--bill-muted);font-size:12px}.wx-usage-list{display:grid;gap:19px}.wx-usage-row>div:first-child{display:flex;justify-content:space-between;gap:16px;margin-bottom:8px;font-size:12px}.wx-usage-row strong{font-weight:700}.wx-progress{overflow:hidden;height:6px;border-radius:99px;background:#edf1f0}.wx-progress span{display:block;width:76%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--bill-green),var(--bill-accent));animation:wxBillGrow .9s .2s ease both}.wx-progress span.is-unlimited{width:100%}.wx-plan-actions{display:flex;align-items:center;gap:14px;margin-top:28px}.wx-btn,.wx-plan-select{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid #b9d3cc;border-radius:11px;color:var(--bill-dark);background:#fff;font-size:13px;font-weight:700;transition:.22s ease}.wx-btn:hover,.wx-plan-select:hover{color:#fff;border-color:var(--bill-dark);background:var(--bill-dark);transform:translateY(-2px)}.wx-btn-primary{color:#fff;border-color:var(--bill-green);background:var(--bill-green)}.wx-text-action{color:var(--bill-blue);font-size:12px;font-weight:700}.wx-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.wx-feature-card{min-width:0;padding:16px;border:1px solid #edf0ef;border-radius:16px;background:#fff;transition:.22s ease}.wx-feature-card:hover{border-color:rgba(22,163,74,.5);box-shadow:0 12px 22px rgba(15,23,42,.07);transform:translateY(-3px)}.wx-feature-card>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border-radius:11px;color:var(--bill-green);background:#ebfbf1}.wx-feature-card h3{overflow:hidden;margin-bottom:5px;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.wx-feature-card p{margin:0;color:var(--bill-muted);font-size:10px}.wx-feature-card.is-disabled{opacity:.48}.wx-pricing-section,.wx-payment-section,.wx-invoices{padding:30px;margin-bottom:24px}.wx-section-heading{margin-bottom:24px}.wx-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.wx-price-card{position:relative;display:flex;flex-direction:column;min-height:520px;padding:24px;border:1px solid var(--bill-border);border-radius:20px;background:#fff;transition:.25s ease}.wx-price-card:hover{box-shadow:0 20px 40px rgba(15,23,42,.09);transform:translateY(-5px)}.wx-price-card.is-popular{border:2px solid rgba(22,163,74,.7);background:linear-gradient(180deg,#f1fff6 0,#fff 33%);box-shadow:0 16px 38px rgba(22,163,74,.1)}.wx-price-card.is-current{box-shadow:inset 0 0 0 2px rgba(11,93,82,.12)}.wx-popular-badge{position:absolute;right:18px;top:18px;padding:6px 9px;border-radius:999px;color:#0d7a3c;background:#dcfce7;font-size:9px;font-weight:800;letter-spacing:.08em}.wx-price-head{display:flex;align-items:center;gap:13px;padding-right:70px}.wx-price-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:15px;color:var(--bill-blue);background:#eff6ff}.wx-price-card.is-popular .wx-price-icon{color:#8e268f;background:#fce7f3}.wx-price-head h3{margin-bottom:3px;font-size:18px}.wx-price-head p{margin:0;color:var(--bill-muted);font-size:11px}.wx-price{margin:26px 0 20px;font-size:27px;font-weight:800}.wx-price small{color:var(--bill-muted);font-size:11px;font-weight:500}.wx-price-card ul{display:grid;gap:11px;padding:0;margin:0 0 24px;list-style:none}.wx-price-card li{display:flex;gap:10px;color:#334155;font-size:12px}.wx-price-card li i{margin-top:2px;color:var(--bill-green);font-size:11px}.wx-plan-select{width:100%;margin-top:auto;cursor:pointer}.wx-plan-select input{position:absolute;opacity:0;pointer-events:none}.wx-plan-select.is-selected{color:var(--bill-dark);background:#edf9f4}.wx-price-card.is-popular .wx-plan-select{color:#fff;border-color:var(--bill-green);background:linear-gradient(135deg,#16a34a,#22c55e)}.wx-payment-layout{display:grid;grid-template-columns:.85fr 1.5fr .85fr;gap:20px;align-items:stretch}.wx-payment-methods,.wx-payment-process,.wx-proof-card{padding:20px;border:1px solid var(--bill-border);border-radius:18px;background:#fbfdfc}.wx-payment-layout h3{margin-bottom:16px;font-size:14px}.wx-payment-methods{display:grid;gap:10px}.wx-payment-choice{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid transparent;border-radius:12px;background:#fff;cursor:pointer;transition:.2s}.wx-payment-choice:hover,.wx-payment-choice:has(input:checked){border-color:rgba(22,163,74,.55);box-shadow:0 7px 18px rgba(15,23,42,.05)}.wx-payment-choice input{accent-color:var(--bill-green)}.wx-payment-logo{display:grid;place-items:center;width:48px;height:38px}.wx-payment-logo img{max-width:46px;max-height:28px}.wx-payment-choice strong,.wx-payment-choice small{display:block;font-size:11px}.wx-payment-choice small{margin-top:3px;color:var(--bill-muted);font-size:9px}.wx-payment-process ol{position:relative;display:flex;justify-content:space-between;padding:16px 0 0;margin:0;list-style:none}.wx-payment-process ol:before{content:"";position:absolute;top:30px;left:8%;right:8%;height:2px;background:linear-gradient(90deg,#86efac,#16a34a)}.wx-payment-process li{position:relative;z-index:1;width:19%;text-align:center}.wx-payment-process li span{display:grid;place-items:center;width:30px;height:30px;margin:0 auto 9px;border:1px solid #86d9a3;border-radius:50%;color:#137a40;background:#eaf9ef;font-size:11px;font-weight:800}.wx-payment-process li p{margin:0;color:#334155;font-size:9px;line-height:1.4}.wx-verification-note{display:flex;gap:8px;padding:11px;margin-top:22px;border-radius:10px;color:#1d4e70;background:#edf8ff;font-size:10px}.wx-proof-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-style:dashed}.wx-proof-card:hover{border-color:var(--bill-green);box-shadow:0 0 0 4px rgba(34,197,94,.07)}.wx-proof-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:13px;border-radius:16px;color:var(--bill-dark);background:#e9f9f2;font-size:20px}.wx-proof-card h3{margin-bottom:6px}.wx-proof-card p{color:var(--bill-muted);font-size:10px;line-height:1.5}.wx-proof-card>div{display:flex;gap:6px}.wx-proof-card>div span{padding:4px 7px;border-radius:5px;color:var(--bill-muted);background:#eef2f1;font-size:8px;font-weight:700}.wx-checkout-form{margin-top:22px}.wx-stripe-element{padding:16px;margin-bottom:14px;border:1px solid var(--bill-border);border-radius:12px}.wx-continue-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:56px;border:0;border-radius:14px;color:#fff;background:linear-gradient(110deg,#2563eb,#1681e9,#2563eb);background-size:200% 100%;box-shadow:0 14px 28px rgba(37,99,235,.22);font-size:14px;font-weight:800;cursor:pointer;transition:.22s ease}.wx-continue-btn:hover{color:#fff;box-shadow:0 18px 34px rgba(37,99,235,.32);transform:translateY(-2px);background-position:100% 0}.wx-invoices .table{margin:0}.wx-invoices .table th{border-top:0;color:var(--bill-muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.wx-invoices .table td{vertical-align:middle;font-size:12px}@keyframes wxBillIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes wxBillGrow{from{width:0}}@media (prefers-reduced-motion:reduce){.wx-billing-shell *{animation:none!important;transition:none!important}}@media(max-width:1100px){.wx-billing-summary{grid-template-columns:repeat(3,1fr)}.wx-billing-hero{min-height:414px}.wx-summary-item:nth-child(3){border-right:0}.wx-billing-overview{grid-template-columns:1fr}.wx-payment-layout{grid-template-columns:1fr 1fr}.wx-payment-process{grid-column:1/-1;grid-row:2}.wx-pricing-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:767px){.wx-billing-shell{padding:16px 14px 96px}.wx-billing-hero{display:block;min-height:auto;padding:28px 22px}.wx-billing-card-art{display:none}.wx-billing-summary{position:relative;left:auto;right:auto;bottom:auto;grid-template-columns:1fr 1fr;margin-top:28px}.wx-summary-item{padding:15px;border-bottom:1px solid var(--bill-border)}.wx-summary-item:nth-child(3){border-right:1px solid var(--bill-border)}.wx-summary-item:nth-child(even){border-right:0}.wx-summary-item:last-child{grid-column:1/-1}.wx-feature-grid{grid-template-columns:repeat(2,1fr)}.wx-pricing-grid,.wx-payment-layout{grid-template-columns:1fr}.wx-payment-process{grid-column:auto;grid-row:auto;overflow-x:auto}.wx-payment-process ol{min-width:470px}.wx-price-card{min-height:auto}.wx-current-plan,.wx-billing-overview>.wx-billing-panel,.wx-pricing-section,.wx-payment-section,.wx-invoices{padding:20px}.wx-plan-actions{align-items:stretch;flex-direction:column}.wx-popular-badge{position:static;align-self:flex-start;margin-bottom:16px}.wx-price-head{padding-right:0}}@media(max-width:420px){.wx-billing-summary,.wx-feature-grid{grid-template-columns:1fr}.wx-summary-item,.wx-summary-item:nth-child(3){border-right:0}.wx-summary-item:last-child{grid-column:auto}.wx-plan-identity{align-items:flex-start}.wx-plan-icon{width:58px;height:58px;flex-basis:58px}}
