/* =============================================================
   ADATASK_CRM_REDESIGN_R2_V1 — لایهٔ طراحی یکپارچهٔ CRM (فاز ۱.۵)
   مرجع بصری: دو مفهوم تأییدشدهٔ کارفرما (پیشخوان فروش + پروندهٔ مشتری)
   رنگ‌های مرجع دفتر بازطراحی: سرمه‌ای #0B1F3A · سبزآبی #10A8A0 · زمینه #F6F7F9

   قواعد این لایه:
   - همه‌چیز زیر `.av2-host-crm` محدود می‌شود (فقط پوستهٔ CRM در Live Office؛
     پشتیبانی، VoIP، خدمات پس از فروش، مکاتبات، تقویم و داشبورد اصلی لمس
     نمی‌شوند).
   - استایل اجزای مشترک V3 فقط زیر `.crm-r2` اعمال می‌شود. کانتینر
     `pipeline` (Kanban معاملات — منطقهٔ محافظت‌شده) هرگز `crm-r2` نمی‌گیرد؛
     پس هیچ قاعده‌ای از این فایل به Kanban نمی‌رسد.
   - Spacing روی شبکهٔ ۴/۸/۱۲/۱۶/۲۰/۲۴/۳۲/۴۰؛ انتقال‌ها ۱۵۰–۲۲۰ms.
   - بدون زنجیرهٔ !important؛ برنده‌شدن این لایه از ترتیب لود آن است
     (بعد از adatask-workflow-polish-v3470 و adatask-release-readiness-v3480).
   ============================================================= */

/* ---------- ۰. توکن‌ها ---------- */
.av2-host-crm {
  --crm-navy: #0B1F3A;
  --crm-navy-2: #13294B;
  --crm-navy-soft: #1B3A66;
  --crm-teal: #10A8A0;
  --crm-teal-strong: #0B8A84;
  --crm-teal-tint: #E7F6F5;
  --crm-canvas: #F6F7F9;
  --crm-card: #FFFFFF;
  --crm-line: #E4E9F2;
  --crm-line-soft: #EEF2F7;
  --crm-text: #1C2A3A;
  --crm-muted: #5E718A;
  --crm-faint: #8494A8;
  --crm-ok: #178A50;
  --crm-ok-tint: #EAF7F0;
  --crm-warn: #B45309;
  --crm-warn-tint: #FDF3E3;
  --crm-danger: #C2372C;
  --crm-danger-tint: #FBEDEB;
  --crm-info: #2563EB;
  --crm-info-tint: #EBF1FE;
  --crm-radius: 14px;
  --crm-radius-lg: 18px;
  --crm-shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 10px 28px rgba(11, 31, 58, 0.06);
  --crm-shadow-hover: 0 2px 4px rgba(11, 31, 58, 0.06), 0 14px 34px rgba(11, 31, 58, 0.10);
  --crm-focus: 0 0 0 3px rgba(16, 168, 160, 0.28);
  --crm-ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  background: var(--crm-canvas);
  color: var(--crm-text);
  font-size: 14px;
  line-height: 1.7;
}

/* ADATASK_CRM_REFERENCE_NAV_20261004 — grouped live routes; RTL touch scrolling. */
.av2-host-crm .crm-ref-navigation { margin-block: 14px 22px; min-width: 0; }
.av2-host-crm .crm-ref-primary,
.av2-host-crm .crm-ref-secondary {
  display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  padding: 6px; scroll-padding-inline: 6px;
}
.av2-host-crm .crm-ref-primary { background: #112b49; border-radius: 12px; }
.av2-host-crm .crm-ref-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 9px 15px; border: 0; border-radius: 8px;
  background: transparent; color: #d4deec; font: inherit; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.av2-host-crm .crm-ref-primary .crm-ref-tab:hover { color: #fff; background: #23425f; }
.av2-host-crm .crm-ref-primary .crm-ref-tab.is-active { color: #112b49; background: #fff; }
.av2-host-crm .crm-ref-secondary { border-bottom: 1px solid #e0e7f0; margin-top: 6px; }
.av2-host-crm .crm-ref-secondary .crm-ref-tab { color: #526680; }
.av2-host-crm .crm-ref-secondary .crm-ref-tab.is-active { color: #1b5fd0; background: #eaf2ff; }
.av2-host-crm .crm-ref-tab:disabled { opacity: .45; cursor: default; }
.av2-host-crm .crm-ref-tab:focus-visible { outline: 2px solid #6fa6ff; outline-offset: -3px; }
.av2-host-crm .crm-ref-count { font-size: 11px; min-width: 20px; border-radius: 5px; background: #dfe8f5; color: #112b49; }
@media (max-width: 600px) {
  .av2-host-crm .crm-ref-navigation { margin-block: 10px 16px; }
  .av2-host-crm .crm-ref-tab { padding-inline: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .av2-host-crm .crm-ref-tab { transition: none; }
}
.av2-host-crm :focus-visible {
  outline: none;
  box-shadow: var(--crm-focus);
  border-radius: 8px;
}

/* ---------- ۱. جعبهٔ جستجوی بالای CRM ---------- */
.av2-host-crm .av2-crm-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--crm-card);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
  transition: border-color 0.18s var(--crm-ease), box-shadow 0.18s var(--crm-ease);
}
.av2-host-crm .av2-crm-search:focus-within {
  border-color: var(--crm-teal);
  box-shadow: var(--crm-focus);
}
.av2-host-crm .av2-crm-search-label {
  color: var(--crm-muted);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.av2-host-crm .av2-crm-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  min-width: 0;
  font-family: inherit;
  color: var(--crm-text);
}
.av2-host-crm .av2-crm-search-input::placeholder { color: var(--crm-faint); }
.av2-host-crm .av2-crm-search-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 50;
  background: var(--crm-card);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius);
  box-shadow: var(--crm-shadow-hover);
  max-height: 380px;
  overflow: auto;
  padding: 6px;
}
.av2-host-crm .av2-crm-search-group {
  padding: 8px 10px 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--crm-faint);
}
.av2-host-crm .av2-crm-search-hit {
  display: block;
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.15s var(--crm-ease);
}
.av2-host-crm .av2-crm-search-hit:hover,
.av2-host-crm .av2-crm-search-hit:focus-visible { background: var(--crm-teal-tint); }
.av2-host-crm .av2-crm-search-hit b { display: block; font-size: 13.5px; font-weight: 800; }
.av2-host-crm .av2-crm-search-hit small { font-size: 12px; color: var(--crm-muted); }
.av2-host-crm .av2-crm-search-msg { padding: 14px 12px; color: var(--crm-muted); font-size: 13px; }

/* ---------- ۲. نوار ناوبری CRM (سبک سایدبار سرمه‌ای موکاپ) ---------- */
.av2-host-crm .av2-subnav {
  position: sticky;
  top: 8px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--crm-navy);
  border: none;
  border-radius: var(--crm-radius-lg);
  padding: 7px;
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.22);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.av2-host-crm .av2-subnav .av2-subnav-item {
  appearance: none;
  border: none;
  background: transparent;
  color: #AAB8CE;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--crm-ease), color 0.16s var(--crm-ease);
}
.av2-host-crm .av2-subnav .av2-subnav-item:hover { background: rgba(255, 255, 255, 0.09); color: #FFFFFF; }
.av2-host-crm .av2-subnav .av2-subnav-item.is-active {
  background: var(--crm-teal);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 168, 160, 0.42);
}
.av2-host-crm .av2-subnav .av2-subnav-item.is-secondary { color: #8DA0BC; }
.av2-host-crm .av2-subnav .av2-subnav-more { position: relative; margin-inline-start: auto; }
.av2-host-crm .av2-subnav .av2-subnav-more > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #C6D2E4;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.av2-host-crm .av2-subnav .av2-subnav-more > summary::-webkit-details-marker { display: none; }
.av2-host-crm .av2-subnav .av2-subnav-more.is-active > summary {
  border-color: var(--crm-teal);
  background: rgba(16, 168, 160, 0.18);
  color: #FFFFFF;
}
.av2-host-crm .av2-subnav .av2-subnav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 220px;
  max-height: min(65vh, 420px);
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius);
  background: var(--crm-card);
  box-shadow: var(--crm-shadow-hover);
}
.av2-host-crm .av2-subnav .av2-subnav-more-menu .av2-subnav-item {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 2px 0;
  color: var(--crm-text);
}
.av2-host-crm .av2-subnav .av2-subnav-more-menu .av2-subnav-item:hover { background: var(--crm-teal-tint); color: var(--crm-navy); }
.av2-host-crm .av2-subnav .av2-subnav-more-menu .av2-subnav-item.is-active {
  background: var(--crm-teal-tint);
  color: var(--crm-teal-strong);
  box-shadow: none;
}
@media (max-width: 760px) {
  .av2-host-crm .av2-subnav { top: 4px; border-radius: var(--crm-radius); padding: 6px; }
  .av2-host-crm .av2-subnav .av2-subnav-item { min-height: 40px; flex: 0 0 auto; font-size: 12.5px; padding: 0 13px; }
  .av2-host-crm .av2-subnav .av2-subnav-more { margin-inline-start: auto; flex: 0 0 auto; }
  .av2-host-crm .av2-subnav .av2-subnav-more-menu {
    position: fixed;
    inset: auto 10px 74px;
    max-height: 55vh;
    min-width: 0;
  }
}

/* ---------- ۳. سطوح عملیاتی CRM (.crm-r2) — اجزای مشترک ---------- */
/* Kanban معاملات (.crm-operational-v1-pipeline / .v3-kanban) عمداً بیرون از
   این محدوده است و هیچ قاعدهٔ زیرین به آن اعمال نمی‌شود. */

.av2-host-crm .crm-r2 { font-size: 14px; }

/* سربرگ صفحه */
.av2-host-crm .crm-r2 .v3-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}
.av2-host-crm .crm-r2 .v3-page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--crm-navy);
  line-height: 1.4;
}
.av2-host-crm .crm-r2 .v3-page-sub { margin-top: 4px; font-size: 12.5px; color: var(--crm-muted); }

/* کارت */
.av2-host-crm .crm-r2 .v3-card {
  background: var(--crm-card);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius-lg);
  box-shadow: var(--crm-shadow);
  padding: 20px;
}
.av2-host-crm .crm-r2 .v3-card.is-flat { box-shadow: none; }
.av2-host-crm .crm-r2 .v3-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.av2-host-crm .crm-r2 .v3-card-title { font-size: 15.5px; font-weight: 800; color: var(--crm-navy); }
.av2-host-crm .crm-r2 .v3-card-sub { margin-top: 3px; font-size: 12.5px; color: var(--crm-muted); }

/* دکمه‌ها */
.av2-host-crm .crm-r2 .v3-btn,
.av2-host-crm .crm-r2 .v3-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s var(--crm-ease), border-color 0.16s var(--crm-ease),
    color 0.16s var(--crm-ease), box-shadow 0.16s var(--crm-ease), transform 0.12s var(--crm-ease);
}
.av2-host-crm .crm-r2 .v3-btn {
  background: var(--crm-card);
  border: 1px solid #D8E0EB;
  color: var(--crm-navy);
}
.av2-host-crm .crm-r2 .v3-btn:hover { border-color: var(--crm-teal); color: var(--crm-teal-strong); background: var(--crm-teal-tint); }
.av2-host-crm .crm-r2 .v3-btn:active { transform: translateY(1px); }
.av2-host-crm .crm-r2 .v3-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.av2-host-crm .crm-r2 .v3-btn-primary {
  background: var(--crm-teal);
  border: 1px solid var(--crm-teal);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(16, 168, 160, 0.30);
}
.av2-host-crm .crm-r2 .v3-btn-primary:hover { background: var(--crm-teal-strong); border-color: var(--crm-teal-strong); }

/* تب‌ها */
.av2-host-crm .crm-r2 .v3-submenu {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: #EDF1F6;
  border: none;
  border-radius: 12px;
  padding: 4px;
}
.av2-host-crm .crm-r2 .v3-tab {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--crm-muted);
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.16s var(--crm-ease), color 0.16s var(--crm-ease), box-shadow 0.16s var(--crm-ease);
}
.av2-host-crm .crm-r2 .v3-tab:hover { color: var(--crm-navy); }
.av2-host-crm .crm-r2 .v3-tab.is-active {
  background: var(--crm-card);
  color: var(--crm-teal-strong);
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.14);
}

/* چیپ وضعیت */
.av2-host-crm .crm-r2 .v3-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.6;
  background: var(--crm-line-soft);
  color: var(--crm-muted);
}
.av2-host-crm .crm-r2 .v3-chip.tone-ok { background: var(--crm-ok-tint); color: var(--crm-ok); }
.av2-host-crm .crm-r2 .v3-chip.tone-warn { background: var(--crm-warn-tint); color: var(--crm-warn); }
.av2-host-crm .crm-r2 .v3-chip.tone-danger,
.av2-host-crm .crm-r2 .v3-chip.tone-error { background: var(--crm-danger-tint); color: var(--crm-danger); }
.av2-host-crm .crm-r2 .v3-chip.tone-info,
.av2-host-crm .crm-r2 .v3-chip.tone-brand { background: var(--crm-info-tint); color: var(--crm-info); }
.av2-host-crm .crm-r2 .v3-chip.tone-purple { background: #F1ECFB; color: #6D3FC0; }
.av2-host-crm .crm-r2 .v3-chip.tone-teal { background: var(--crm-teal-tint); color: var(--crm-teal-strong); }

/* جدول */
.av2-host-crm .crm-r2 .v3-table-wrap { border: 1px solid var(--crm-line-soft); border-radius: var(--crm-radius); overflow: hidden; }
.av2-host-crm .crm-r2 .v3-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.av2-host-crm .crm-r2 .v3-table th {
  position: sticky;
  top: 0;
  background: #F7F9FC;
  color: var(--crm-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  padding: 11px 14px;
  border-bottom: 1px solid var(--crm-line);
  white-space: nowrap;
}
.av2-host-crm .crm-r2 .v3-table td { padding: 11px 14px; border-bottom: 1px solid var(--crm-line-soft); vertical-align: middle; }
.av2-host-crm .crm-r2 .v3-table tbody tr:last-child td { border-bottom: none; }
.av2-host-crm .crm-r2 .v3-table tbody tr { transition: background 0.14s var(--crm-ease); }
.av2-host-crm .crm-r2 .v3-table tbody tr:hover { background: #F8FBFC; }
.av2-host-crm .crm-r2 .v3-table tbody tr[role='button'] { cursor: pointer; }
.av2-host-crm .crm-r2 .v3-table tbody tr[role='button']:hover { background: var(--crm-teal-tint); }
.av2-host-crm .crm-r2 .v3-table tbody tr:focus-visible { outline: none; box-shadow: inset var(--crm-focus); }

/* KPI */
.av2-host-crm .crm-r2 .v3-kpi {
  appearance: none;
  border: 1px solid var(--crm-line);
  background: var(--crm-card);
  border-radius: var(--crm-radius-lg);
  box-shadow: var(--crm-shadow);
  padding: 18px 20px;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.18s var(--crm-ease), transform 0.18s var(--crm-ease), border-color 0.18s var(--crm-ease);
}
.av2-host-crm .crm-r2 .v3-kpi:hover { box-shadow: var(--crm-shadow-hover); transform: translateY(-2px); border-color: #D3E4E2; }
.av2-host-crm .crm-r2 .v3-kpi-label { font-size: 12.5px; font-weight: 700; color: var(--crm-muted); }
.av2-host-crm .crm-r2 .v3-kpi-value { margin-top: 6px; font-size: 23px; font-weight: 800; color: var(--crm-navy); line-height: 1.35; }
.av2-host-crm .crm-r2 .v3-kpi-hint { margin-top: 4px; font-size: 12px; color: var(--crm-faint); }

/* اعلان / اقدام بعدی */
.av2-host-crm .crm-r2 .v3-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--crm-line);
  background: var(--crm-card);
}
.av2-host-crm .crm-r2 .v3-notice.tone-ok { background: var(--crm-ok-tint); border-color: #CDEBDC; }
.av2-host-crm .crm-r2 .v3-notice.tone-warn { background: var(--crm-warn-tint); border-color: #F2DCB8; }
.av2-host-crm .crm-r2 .v3-notice.tone-danger { background: var(--crm-danger-tint); border-color: #F1C8C3; }
.av2-host-crm .crm-r2 .v3-notice-icon { display: inline-flex; flex-shrink: 0; }
.av2-host-crm .crm-r2 .v3-notice-body { flex: 1; font-size: 13px; }
.av2-host-crm .crm-r2 .v3-notice-body b { display: inline-block; margin-inline-end: 6px; font-weight: 800; }

/* حالت خالی / خطا */
.av2-host-crm .crm-r2 .v3-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 40px 24px;
}
.av2-host-crm .crm-r2 .v3-state-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--crm-line-soft);
}
.av2-host-crm .crm-r2 .v3-state.is-error .v3-state-ico { background: var(--crm-danger-tint); }
.av2-host-crm .crm-r2 .v3-state-title { font-size: 15px; font-weight: 800; color: var(--crm-navy); }
.av2-host-crm .crm-r2 .v3-state-body { font-size: 13px; color: var(--crm-muted); max-width: 380px; line-height: 1.9; }

/* اسکلتون */
.av2-host-crm .crm-r2 .v3-skel {
  border-radius: 10px;
  background: linear-gradient(100deg, #EDF1F6 40%, #F7F9FC 50%, #EDF1F6 60%);
  background-size: 200% 100%;
  animation: crm-r2-shimmer 1.3s infinite linear;
}
@keyframes crm-r2-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* فرم */
.av2-host-crm .crm-r2 .v3-label { font-size: 12.5px; font-weight: 800; color: var(--crm-navy); }
.av2-host-crm .crm-r2 .v3-field input[type='text'],
.av2-host-crm .crm-r2 .v3-field input[type='search'],
.av2-host-crm .crm-r2 .v3-field input[type='number'],
.av2-host-crm .crm-r2 .v3-field input[type='email'],
.av2-host-crm .crm-r2 .v3-field input[type='tel'],
.av2-host-crm .crm-r2 .v3-field input[type='date'],
.av2-host-crm .crm-r2 .v3-field input[type='datetime-local'],
.av2-host-crm .crm-r2 .v3-field select,
.av2-host-crm .crm-r2 .v3-field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--crm-text);
  min-height: 40px;
  border: 1px solid #D8E0EB;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--crm-card);
  transition: border-color 0.16s var(--crm-ease), box-shadow 0.16s var(--crm-ease);
}
.av2-host-crm .crm-r2 .v3-field textarea { min-height: 84px; line-height: 1.8; }
.av2-host-crm .crm-r2 .v3-field input:focus,
.av2-host-crm .crm-r2 .v3-field select:focus,
.av2-host-crm .crm-r2 .v3-field textarea:focus {
  outline: none;
  border-color: var(--crm-teal);
  box-shadow: var(--crm-focus);
}
.av2-host-crm .crm-r2 .v3-help { font-size: 12px; color: var(--crm-faint); }
.av2-host-crm .crm-r2 .v3-err { font-size: 12px; font-weight: 700; color: var(--crm-danger); }

/* صفحه‌بندی */
.av2-host-crm .crm-r2 .v3-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.av2-host-crm .crm-r2 .v3-pager-info { font-size: 12.5px; color: var(--crm-muted); }

/* مودال — فقط داخل سطوح crm-r2؛ مودال‌های Kanban و Growth Center لمس نمی‌شوند */
.av2-host-crm .crm-r2 .v3-overlay {
  background: rgba(11, 31, 58, 0.46);
  backdrop-filter: blur(2px);
}
.av2-host-crm .crm-r2 .v3-modal {
  background: var(--crm-card);
  border: none;
  border-radius: var(--crm-radius-lg);
  box-shadow: 0 24px 70px rgba(11, 31, 58, 0.30);
}
.av2-host-crm .crm-r2 .v3-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--crm-line-soft);
}
.av2-host-crm .crm-r2 .v3-modal-title { font-size: 15.5px; font-weight: 800; color: var(--crm-navy); }
.av2-host-crm .crm-r2 .v3-modal-body { padding: 18px 20px; font-size: 13.5px; }
.av2-host-crm .crm-r2 .v3-modal-foot { padding: 14px 20px; border-top: 1px solid var(--crm-line-soft); }

/* ---------- ۴. پیشخوان فروش (تصویر A) ---------- */
.av2-host-crm .crm-ops-v3490-hero {
  background:
    radial-gradient(720px 220px at 88% -40%, rgba(16, 168, 160, 0.16), transparent 70%),
    linear-gradient(135deg, #FFFFFF 55%, #F2F8F8 100%);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius-lg);
  box-shadow: var(--crm-shadow);
}
.av2-host-crm .crm-ops-v3490-title h1 { color: var(--crm-navy); font-size: 22px; font-weight: 800; }
.av2-host-crm .crm-ops-v3490-title small {
  color: var(--crm-teal-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.av2-host-crm .crm-ops-v3490-title p { color: var(--crm-muted); font-size: 13.5px; }
.av2-host-crm .crm-ops-v3490-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crm-navy);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.av2-host-crm .crm-ops-v3490-alert {
  background: var(--crm-card);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
  transition: box-shadow 0.16s var(--crm-ease), transform 0.16s var(--crm-ease), border-color 0.16s var(--crm-ease);
}
.av2-host-crm .crm-ops-v3490-alert:hover { box-shadow: var(--crm-shadow-hover); transform: translateY(-2px); border-color: #D3E4E2; }
.av2-host-crm .crm-ops-v3490-alert.tone-danger { border-inline-start: 4px solid var(--crm-danger); }
.av2-host-crm .crm-ops-v3490-alert.tone-warn { border-inline-start: 4px solid var(--crm-warn); }
.av2-host-crm .crm-ops-v3490-alert.tone-ok { border-inline-start: 4px solid var(--crm-ok); }
.av2-host-crm .crm-ops-v3490-alert.tone-info { border-inline-start: 4px solid var(--crm-info); }
.av2-host-crm .crm-ops-v3490-alert b { color: var(--crm-navy); font-size: 19px; }
.av2-host-crm .crm-ops-v3490-alert small { color: var(--crm-muted); font-size: 12px; font-weight: 700; }
.av2-host-crm .crm-ops-v3490-alert em { color: var(--crm-faint); font-size: 11.5px; font-style: normal; }
.av2-host-crm .crm-ops-v3490-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--crm-card);
  border: 1px dashed #CBD6E4;
  border-radius: var(--crm-radius);
  padding: 12px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.16s var(--crm-ease), background 0.16s var(--crm-ease);
}
.av2-host-crm .crm-ops-v3490-more:hover { border-color: var(--crm-teal); background: var(--crm-teal-tint); }
.av2-host-crm .crm-ops-v3490-more b { font-size: 13.5px; color: var(--crm-navy); }
.av2-host-crm .crm-ops-v3490-more small { display: block; color: var(--crm-muted); font-size: 12px; }
.av2-host-crm .crm-ops-v3490-more i {
  font-style: normal;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--crm-line-soft);
  color: var(--crm-navy);
  font-weight: 800;
}

/* ---------- ۵. پروندهٔ مشتری ۳۶۰ (تصویر B) ---------- */
.av2-crm360 { display: flex; flex-direction: column; gap: 16px; }
.av2-crm360-hero {
  background: var(--crm-card);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius-lg);
  box-shadow: var(--crm-shadow);
  padding: 20px 22px;
}
.av2-crm360-ident { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.av2-crm360-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--crm-navy) 0%, #16407A 100%);
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  flex-shrink: 0;
}
.av2-crm360-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.av2-crm360-name h1 { margin: 0; font-size: 20px; font-weight: 800; color: var(--crm-navy); }
.av2-crm360-meta { margin-top: 3px; font-size: 12.5px; color: var(--crm-muted); }
.av2-crm360-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--crm-ok-tint);
  color: var(--crm-ok);
}
.av2-crm360-flag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.av2-crm360-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.av2-crm360-kpi {
  background: #F8FAFC;
  border: 1px solid var(--crm-line-soft);
  border-radius: var(--crm-radius);
  padding: 14px 16px;
}
.av2-crm360-kpi small { display: block; font-size: 11.5px; font-weight: 700; color: var(--crm-muted); }
.av2-crm360-kpi b { display: block; margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--crm-navy); }
.av2-crm360-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.av2-crm360-side { display: flex; flex-direction: column; gap: 16px; }
.av2-crm360-info { display: flex; flex-direction: column; }
.av2-crm360-info > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--crm-line-soft);
  font-size: 13px;
}
.av2-crm360-info > div:last-child { border-bottom: none; }
.av2-crm360-info small { color: var(--crm-muted); font-size: 12px; flex-shrink: 0; }
.av2-crm360-info b { font-weight: 700; text-align: left; }
@media (max-width: 1100px) {
  .av2-crm360-body { grid-template-columns: 1fr; }
}

/* تایم‌لاین قوی‌شده */
.av2-host-crm .crm-r2 .v3-timeline { position: relative; }
.av2-crm360-tl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--crm-line-soft);
}
.av2-crm360-tl-item:last-child { border-bottom: none; }
.av2-crm360-tl-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--crm-info-tint);
  color: var(--crm-info);
}
.av2-crm360-tl-ico.type-call { background: var(--crm-teal-tint); color: var(--crm-teal-strong); }
.av2-crm360-tl-ico.type-meeting { background: #F1ECFB; color: #6D3FC0; }
.av2-crm360-tl-ico.type-note { background: var(--crm-warn-tint); color: var(--crm-warn); }
.av2-crm360-tl-ico.type-quote,
.av2-crm360-tl-ico.type-payment { background: var(--crm-ok-tint); color: var(--crm-ok); }
.av2-crm360-tl-ico.type-status { background: var(--crm-line-soft); color: var(--crm-muted); }
.av2-crm360-tl-body b { display: block; font-size: 13.5px; font-weight: 800; color: var(--crm-text); }
.av2-crm360-tl-body small { font-size: 12px; color: var(--crm-faint); }
.av2-crm360-tl-body p { margin: 3px 0 0; font-size: 13px; color: var(--crm-muted); }

/* ---------- ۶. هویت مستقل سرنخ ---------- */
.crm-lead-hero {
  background:
    radial-gradient(560px 180px at 90% -30%, rgba(109, 63, 192, 0.12), transparent 70%),
    var(--crm-card);
  border: 1px solid var(--crm-line);
  border-radius: var(--crm-radius-lg);
  box-shadow: var(--crm-shadow);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.crm-lead-hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F1ECFB;
  color: #6D3FC0;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
}
.crm-lead-hero h1 { margin: 10px 0 2px; font-size: 21px; font-weight: 800; color: var(--crm-navy); }
.crm-lead-hero .crm-lead-hero-sub { font-size: 12.5px; color: var(--crm-muted); }
.crm-lead-hero-hint {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--crm-warn);
  background: var(--crm-warn-tint);
  border: 1px solid #F2DCB8;
  border-radius: 10px;
  padding: 8px 12px;
}

/* ---------- ۷. مخاطب (شخص‌محور) ---------- */
.crm-contact-cell { display: flex; align-items: center; gap: 10px; }
.crm-contact-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--crm-info-tint);
  color: var(--crm-info);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.crm-contact-cell b { display: block; font-size: 13.5px; font-weight: 800; color: var(--crm-text); }
.crm-contact-cell small { display: block; font-size: 12px; color: var(--crm-faint); }

/* ---------- ۸. واکنش‌گرایی ---------- */
@media (max-width: 1366px) {
  .av2-host-crm .crm-r2 .v3-kpi-value { font-size: 21px; }
}
@media (max-width: 1024px) {
  .av2-host-crm .crm-dash-v1-grid.is-2-1,
  .av2-host-crm .crm-dash-v1-grid.is-3 { grid-template-columns: 1fr; }
  .av2-host-crm .crm-dash-v1-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .av2-host-crm { font-size: 13.5px; }
  .av2-host-crm .crm-r2 .v3-card { padding: 16px; border-radius: var(--crm-radius); }
  .av2-host-crm .crm-r2 .v3-page-title { font-size: 18px; }
  .av2-host-crm .crm-ops-v3490-title h1 { font-size: 19px; }
  .av2-host-crm .crm-dash-v1-kpi-grid { grid-template-columns: 1fr; }
  .av2-host-crm .crm-ops-v3490-hero { padding: 16px; }
  .av2-crm360-kpis { grid-template-columns: 1fr; }
  .av2-crm360-avatar { width: 46px; height: 46px; font-size: 16px; }
  /* جدول → کارت (قرارداد v3 is-cards) */
  .av2-host-crm .crm-r2 .v3-table-wrap.is-cards { border: none; border-radius: 0; overflow: visible; }
  .av2-host-crm .crm-r2 .v3-table, .av2-host-crm .crm-r2 .v3-table tbody, .av2-host-crm .crm-r2 .v3-table tr, .av2-host-crm .crm-r2 .v3-table td { display: block; width: 100%; }
  .av2-host-crm .crm-r2 .v3-table thead { display: none; }
  .av2-host-crm .crm-r2 .v3-table tr {
    background: var(--crm-card);
    border: 1px solid var(--crm-line);
    border-radius: var(--crm-radius);
    padding: 6px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
  }
  .av2-host-crm .crm-r2 .v3-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--crm-line-soft);
    padding: 9px 0;
    text-align: left;
  }
  .av2-host-crm .crm-r2 .v3-table td::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--crm-faint);
    flex-shrink: 0;
  }
  .av2-host-crm .crm-r2 .v3-table td:last-child { border-bottom: none; }
}
@media (max-width: 430px) {
  .av2-host-crm .crm-r2 .v3-kpi { padding: 15px 16px; }
  .av2-host-crm .crm-r2 .v3-kpi-value { font-size: 19px; }
  .av2-host-crm .crm-ops-v3490-title h1 { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .av2-host-crm * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* /ADATASK_CRM_REDESIGN_R2_V1 */


/* 2026-09-07: live workspace and body-mounted customer dossier. */
.av2-host-crm {
  --crm-canvas: #f5f7fa;
  --crm-radius: 12px;
  --crm-radius-lg: 16px;
  --crm-shadow: 0 2px 8px rgba(11,31,58,.035);
  font-family: Vazirmatn, Vazir, sans-serif;
  padding: 16px;
  min-width: 0;
}
.av2-host-crm button, .av2-host-crm input, .av2-host-crm select, .av2-host-crm textarea { font-family: inherit; }
.av2-host-crm .av2-subnav {
  position: relative;
  top: auto;
  flex-wrap: wrap;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--crm-line);
  box-shadow: none;
  gap: 4px;
  margin-bottom: 20px;
}
.av2-host-crm .av2-subnav .av2-subnav-item,
.av2-host-crm .av2-subnav .av2-subnav-item.is-secondary { color: #52647b; font-size: 14px; }
.av2-host-crm .av2-subnav .av2-subnav-item:hover { color: var(--crm-navy); background: #edf3f8; }
.av2-host-crm .av2-subnav .av2-subnav-item.is-active { background: var(--crm-navy); color: #fff; box-shadow: none; }
.av2-host-crm .av2-subnav .av2-subnav-more > summary { color: var(--crm-text); border-color: var(--crm-line); font-size: 14px; }
.av2-host-crm .av2-subnav .av2-subnav-more.is-active > summary { color: var(--crm-teal-strong); background: var(--crm-teal-tint); }
.av2-host-crm .crm-r2.crm-ops-v3490 { display: flex; flex-direction: column; gap: 20px; padding: 0; }
.av2-host-crm .crm-r2 .crm-ops-v3490-hero {
  background: transparent; color: var(--crm-text); border: 0; box-shadow: none;
  padding: 8px 0; margin: 0; align-items: center;
}
.av2-host-crm .crm-r2 .crm-ops-v3490-hero::before,
.av2-host-crm .crm-r2 .crm-ops-v3490-hero::after { display: none; }
.av2-host-crm .crm-r2 .crm-ops-v3490-title h1 { font-size: 26px; color: var(--crm-navy); letter-spacing: 0; margin: 4px 0; }
.av2-host-crm .crm-r2 .crm-ops-v3490-title > p { color: var(--crm-muted); font-size: 13px; }
.av2-host-crm .crm-r2 .crm-ops-v3490-title > p:first-of-type { display: none; }
.av2-host-crm .crm-r2 .crm-ops-v3490-title > small { color: var(--crm-muted); }
.av2-host-crm .crm-r2 .crm-workspace-greeting { font-size: 14px; color: var(--crm-muted); }
.av2-host-crm .crm-r2 .crm-dash-v1-btn { min-height: 42px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.av2-host-crm .crm-r2 .crm-dash-v1-btn.is-primary { background: var(--crm-navy); border-color: var(--crm-navy); color: #fff; }
.av2-host-crm .crm-r2 .crm-dash-v1-tools { gap: 8px; align-items: center; }
.av2-host-crm .crm-r2 .crm-dash-v1-segment { background: #e9eef4; border-color: transparent; padding: 4px; }
.av2-host-crm .crm-r2 .crm-dash-v1-segment button { color: #52647b; min-height: 34px; font-size: 13px; }
.av2-host-crm .crm-r2 .crm-dash-v1-segment button.is-active { background: #fff; color: var(--crm-navy); box-shadow: 0 1px 4px #0b1f3a12; }
.av2-host-crm .crm-r2 .crm-workspace-next {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: #eaf5f4; border: 1px solid #cfe6e3; border-radius: 16px;
}
.av2-host-crm .crm-r2 .crm-workspace-next-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: #fff; color: #087b75; border-radius: 14px; }
.av2-host-crm .crm-r2 .crm-workspace-next-copy { flex: 1; min-width: 0; }
.av2-host-crm .crm-r2 .crm-workspace-next small { color: #087b75; font-size: 13px; }
.av2-host-crm .crm-r2 .crm-workspace-next h2 { font-size: 18px; line-height: 1.7; margin: 3px 0; color: var(--crm-navy); }
.av2-host-crm .crm-r2 .crm-workspace-next p { font-size: 14px; margin: 0; color: #52647b; }
.av2-host-crm .crm-r2 .crm-ops-v3490-attention { gap: 12px; margin: 0; }
.av2-host-crm .crm-r2 .crm-ops-v3490-alert { background: #fff; border: 1px solid var(--crm-line); padding: 16px; box-shadow: none; min-height: 106px; }
.av2-host-crm .crm-r2 .crm-ops-v3490-alert b { font-size: 26px; }
.av2-host-crm .crm-r2 .crm-ops-v3490-alert small { font-size: 14px; }
.av2-host-crm .crm-r2 .crm-ops-v3490-alert em { font-size: 12px; }
.av2-host-crm .crm-r2 .crm-ops-v3490-actions { background: #fff; padding: 18px; margin: 0; border: 1px solid var(--crm-line); box-shadow: none; }
.av2-host-crm .crm-r2 .crm-ops-v3490-actions h2 { font-size: 16px; }
.av2-host-crm .crm-r2 .crm-dash-v1-quick { background: #f7f9fc; border: 1px solid #e9edf3; box-shadow: none; min-height: 80px; }
.av2-host-crm .crm-r2 .crm-dash-v1-kpi-grid { gap: 12px; margin: 0; }
.av2-host-crm .crm-r2 .crm-dash-v1-kpi { border: 1px solid var(--crm-line); box-shadow: none; background: #fff; }
.av2-host-crm .crm-r2 .crm-dash-v1-card { border: 1px solid var(--crm-line); box-shadow: none; border-radius: 14px; }
.av2-host-crm .crm-r2 .crm-dash-v1-card-head { padding: 18px 20px; }
.av2-host-crm .crm-r2 .crm-dash-v1-card-head h2 { font-size: 16px; }
.av2-host-crm .crm-r2 .crm-dash-v1-card-head p { font-size: 13px; }
.av2-host-crm .crm-r2 .crm-ops-v3490-more { background: #fff; border: 1px solid var(--crm-line); box-shadow: none; padding: 18px; }
/* Customer modals mount under body, outside .av2-host-crm. */
.crm-customer-modal-overlay, .crm-sales-submodal-overlay, .crm-aq-overlay { font-family: Vazirmatn, Vazir, sans-serif; }
.crm-customer-modal-panel { border-radius: 18px; border: 1px solid #dfe6ef; box-shadow: 0 24px 80px #0b1f3a26; background: #f7f9fc; }
.crm-customer-modal-panel button, .crm-customer-modal-panel input,
.crm-sales-submodal button, .crm-sales-submodal input, .crm-sales-submodal select,
.crm-sales-submodal textarea { font-family: inherit; }
.crm-customer-modal-header { padding: 22px 24px; background: #fff; border-bottom: 1px solid #e4e9f2; }
.crm-customer-modal-tabs { background: #fff; gap: 6px; padding: 10px 20px; }
.crm-customer-modal-tab { font-size: 14px; min-height: 42px; border-radius: 9px; }
.crm-customer-modal-content { padding: 20px 24px; }
.crm-customer-modal-field, .crm-customer-modal-row { background: #fff; border: 1px solid #e4e9f2; border-radius: 12px; padding: 14px; }
.crm-customer-modal-field span, .crm-customer-modal-field small { font-size: 13px; color: #62738a; }
.crm-customer-modal-field b { font-size: 15px; color: #152d49; }
.crm-customer-modal-close { width: 40px; height: 40px; border-radius: 10px; }
.crm-sales-submodal { max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 16px; }
.crm-sales-submodal-head { flex: 0 0 auto; padding: 18px 22px; }
.crm-sales-submodal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px; }
.crm-customer-edit-input { min-height: 44px; font-size: 14px; border-radius: 9px; }
@media (max-width: 1000px) {
  .av2-host-crm .crm-r2 .crm-ops-v3490-hero { flex-direction: column; align-items: stretch; gap: 16px; }
  .av2-host-crm .crm-r2 .crm-dash-v1-tools { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .av2-host-crm { padding: 10px; }
  .av2-host-crm .av2-subnav { gap: 2px; padding: 5px; }
  .av2-host-crm .av2-subnav .av2-subnav-item { font-size: 13px; padding: 0 10px; }
  .av2-host-crm .av2-subnav .av2-subnav-more-menu { min-width: min(260px, calc(100vw - 48px)); }
  .av2-host-crm .crm-r2 .crm-workspace-next { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .av2-host-crm .crm-r2 .crm-workspace-next h2 { font-size: 16px; }
  .av2-host-crm .crm-r2 .crm-workspace-next > button { width: 100%; justify-content: center; }
  .av2-host-crm .crm-r2 .crm-ops-v3490-attention,
  .av2-host-crm .crm-r2 .crm-dash-v1-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .av2-host-crm .crm-r2 .crm-ops-v3490-alert { padding: 12px; }
  .crm-customer-modal-header, .crm-customer-modal-content { padding: 16px; }
  .crm-sales-submodal { max-height: calc(100dvh - 20px); }
}

/* CRM customer correspondence: touch targets and long subjects. */
.crm-customer-links .crm-customer-modal-action-section-head { flex-wrap:wrap; gap:12px; }
.crm-customer-links .crm-form-secondary { min-height:44px; padding:8px 14px; background:#fff; border:1px solid #d7e2ee; color:#112b49; border-radius:10px; font:inherit; font-weight:600; cursor:pointer; }
.crm-customer-links .crm-customer-modal-row-title { min-width:0; overflow-wrap:anywhere; }

.crm-customer-links .crm-form-secondary:hover { background:#eef5ff; border-color:#1b5fd0; }
.crm-customer-links .crm-form-secondary:focus-visible { outline:2px solid #1b5fd0; outline-offset:3px; }
.crm-customer-links .crm-form-secondary:disabled { opacity:.55; cursor:wait; }
.crm-customer-links h3 { margin:0; font-size:16px; color:#112b49; }
.crm-customer-modal-tabs .crm-customer-modal-tab.is-active { color:#1b5fd0; border-bottom-color:#1b5fd0; }
.crm-customer-message-form { display:grid; gap:14px; padding:16px; background:#fff; border:1px solid #d7e2ee; border-radius:14px; }
.crm-customer-message-form .crm-customer-edit-field { min-width:0; }
.crm-customer-message-form .crm-customer-edit-input { min-height:44px; box-sizing:border-box; width:100%; max-width:100%; }
.crm-customer-message-form .crm-customer-edit-input:disabled { opacity:.7; }
.crm-customer-messages .crm-customer-modal-row p { overflow-wrap:anywhere; }
.crm-customer-message-form .crm-customer-modal-hint { margin:0; }
.crm-customer-message-form .crm-customer-modal-submit { min-height:44px; }

/* ADATASK_CRM_REFERENCE_SURFACE_20261005 — supplied app-bar, white seven-tab nav and four summary columns. */
.av2-host-crm { --crm-navy:#173454; --crm-navy-2:#1f4468; --crm-teal:#4f9b9b; --crm-teal-tint:#eaf6f6; --crm-canvas:#f5f7fa; --crm-line:#e7ecf1; --crm-radius:12px; --crm-radius-lg:16px; min-width:0; }
.av2-host-crm .crm-ref-appbar { display:flex; align-items:center; gap:18px; padding:14px 18px; border-radius:14px; background:#173454; color:#fff; position:relative; z-index:25; margin-bottom:22px; min-width:0; }
.av2-host-crm .crm-ref-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.av2-host-crm .crm-ref-brand b { display:block; font-size:13px; max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.av2-host-crm .crm-ref-brand small { display:block; font-size:10px; color:#bdcede; }
.av2-host-crm .crm-ref-brand-mark, .av2-host-crm .crm-ref-avatar { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:10px; background:#567fba; color:#fff; font-weight:800; }
.av2-host-crm .crm-ref-avatar { border-radius:50%; background:#9464cf; }
.av2-host-crm .crm-ref-module { font-size:11px; color:#e3eaf4; border:1px solid #ffffff2b; border-radius:20px; padding:6px 12px; white-space:nowrap; }
.av2-host-crm .crm-ref-user { display:flex; align-items:center; gap:8px; font-size:12px; white-space:nowrap; }
.av2-host-crm .crm-ref-appbar .av2-crm-search { flex:1; min-width:180px; margin:0; padding:7px 12px; border-radius:10px; background:#ffffff18; border-color:#ffffff38; box-shadow:none; }
.av2-host-crm .crm-ref-appbar .av2-crm-search-label { color:#d2deea; font-size:11px; }
.av2-host-crm .crm-ref-appbar .av2-crm-search-input { color:#fff; min-height:30px; font-size:12px; }
.av2-host-crm .crm-ref-appbar .av2-crm-search-input::placeholder { color:#d0dcea; }
.av2-host-crm .crm-ref-appbar .av2-crm-search-pop { color:#182b3d; }
.av2-host-crm .crm-ref-navigation { margin:0 0 20px; }
.av2-host-crm .crm-ref-primary { background:#fff; padding:5px; border:1px solid #e7ecf1; box-shadow:0 4px 14px #0f233c08; border-radius:12px; }
.av2-host-crm .crm-ref-primary .crm-ref-tab { flex:1 0 auto; color:#536983; font-size:13px; padding:9px 12px; border-radius:9px; gap:8px; }
.av2-host-crm .crm-ref-primary .crm-ref-tab:hover { color:#173454; background:#eaf2fa; }
.av2-host-crm .crm-ref-primary .crm-ref-tab.is-active { color:#fff; background:#173454; }
.av2-host-crm .crm-ref-secondary { border:0; margin-top:6px; padding:4px 0; }
.av2-host-crm .crm-ref-secondary .crm-ref-tab { font-size:12px; border:1px solid #e7ecf1; background:#fff; }
.av2-host-crm .crm-ref-secondary .crm-ref-tab.is-active { background:#eaf2ff; border-color:#b9cfee; }
.av2-host-crm .crm-r2 .v3-page-head { border:0; margin-bottom:18px; padding-block:0 8px; }
.av2-host-crm .crm-r2 .v3-page-title { font-size:20px; }
.av2-host-crm .crm-r2 .v3-btn-primary { background:#173454; border-color:#173454; }
.av2-host-crm .crm-r2 .v3-btn { background:#ebf5fd; border-color:#dce8f3; color:#1f4468; }
.av2-host-crm .crm-r2 .v3-card, .av2-host-crm .crm-r2 .v3-table-wrap { border-radius:12px; box-shadow:0 1px 2px #0f233c05,0 6px 20px #0f233c08; }
.av2-host-crm .crm-r2 .v3-table th { background:#edf4fa; color:#365471; font-size:12px; padding:13px 14px; }
.av2-host-crm .crm-r2 .v3-table td { padding:14px; }
.adatask-shell-v2:has(.crm-ref-appbar) > .av2-column > .av2-subnav { display:none; }
.av2-host-crm .crm-ref-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; align-items:stretch; }
.av2-host-crm .crm-ref-stat-column { --ref-color:#173454; --ref-tint:#ecf4fa; display:flex; flex-direction:column; gap:10px; padding:12px; min-width:0; background:#fff; border:1px solid #e7ecf1; border-radius:12px; box-shadow:0 1px 2px #0f233c08,0 6px 20px #0f233c08; }
.av2-host-crm .crm-ref-stat-column.tone-violet { --ref-color:#7440be; --ref-tint:#f3ecfc; }
.av2-host-crm .crm-ref-stat-column.tone-teal { --ref-color:#4f9b9b; --ref-tint:#eaf6f6; }
.av2-host-crm .crm-ref-stat-column.tone-blue { --ref-color:#5b96c9; --ref-tint:#ebf5fd; }
.av2-host-crm .crm-ref-stat-column > header { display:flex; align-items:center; justify-content:space-between; min-height:38px; padding:5px 12px; border-radius:20px; font-size:12px; color:#1f4468; background:var(--ref-tint); }
.av2-host-crm .crm-ref-stat-badge { display:grid; place-items:center; min-width:34px; height:34px; border-radius:50%; background:var(--ref-color); color:#fff; font-weight:800; }
.av2-host-crm .crm-ref-stat-column > h2 { display:flex; align-items:center; gap:10px; font-size:13px; margin:0; }
.av2-host-crm .crm-ref-stat-column > h2:after { content:''; height:2px; flex:1; background:linear-gradient(90deg,var(--ref-color),#e7ecf1 70%); }
.av2-host-crm .crm-ref-pills { display:flex; flex-direction:column; gap:7px; flex:1; }
.av2-host-crm .crm-ref-pill { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; min-height:44px; padding:8px 14px; border:0; border-radius:20px; background:var(--ref-tint); color:var(--ref-color); text-align:right; font-size:12px; font-weight:600; }
.av2-host-crm .crm-ref-pill b { font-size:13px; font-weight:800; overflow-wrap:anywhere; text-align:left; }
.av2-host-crm .crm-ref-pill.is-danger { color:#c63838; background:#fcebeb; }
.av2-host-crm .crm-ref-rates { padding-top:10px; margin-top:3px; border-top:1px dashed #e7ecf1; color:#5b6b7c; font-size:11px; }
.av2-host-crm .crm-ref-rates p { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; }
.av2-host-crm .crm-ref-period-row { display:flex; justify-content:flex-end; align-items:center; gap:10px; font-size:12px; color:#5b6b7c; }
.av2-host-crm .crm-ref-top-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.av2-host-crm .crm-ref-view-tabs { display:flex; flex-wrap:wrap; gap:3px; padding:3px; background:#f5f7fa; border:1px solid #e7ecf1; border-radius:9px; }
.av2-host-crm .crm-ref-view-tabs button { border:0; border-radius:7px; min-height:44px; padding:7px 10px; background:transparent; color:#536983; font-size:11px; }
.av2-host-crm .crm-ref-view-tabs button.is-active { color:#173454; background:#fff; box-shadow:0 1px 4px #0f233c15; }
.av2-host-crm .crm-ref-empty { margin:0; padding:18px; font-size:12px; color:#60768c; line-height:1.9; }
.av2-host-crm .crm-ref-distribution { padding:18px; display:flex; flex-direction:column; gap:14px; }
.av2-host-crm .crm-ref-dist-row { display:grid; grid-template-columns:minmax(100px,1fr) minmax(40px,1.4fr) auto; align-items:center; gap:10px; font-size:12px; }
.av2-host-crm .crm-ref-dist-row small { display:block; color:#8192a5; font-size:10px; margin-top:3px; }
.av2-host-crm .crm-ref-dist-track { min-width:0; display:flex; justify-content:flex-start; direction:rtl; }
.av2-host-crm .crm-ref-dist-track i { display:block; height:32px; min-width:0; border-radius:9px; background:repeating-linear-gradient(to left,transparent 0,transparent calc(100% / var(--segments) - 2px),#fff calc(100% / var(--segments) - 2px),#fff calc(100% / var(--segments))),linear-gradient(90deg,#96bde0,#28547e); }
.av2-host-crm .crm-ref-funnel { padding:18px; display:flex; flex-direction:column; gap:8px; }
.av2-host-crm .crm-ref-funnel-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(80px,1.2fr); align-items:center; gap:18px; border:0; background:#fff; color:#173454; text-align:right; width:100%; min-height:56px; padding:4px; }
.av2-host-crm .crm-ref-funnel-label b { display:block; font-size:12px; }
.av2-host-crm .crm-ref-funnel-label small { display:block; font-size:10px; color:#60768c; overflow-wrap:anywhere; }
.av2-host-crm .crm-ref-funnel-shape { display:grid; place-items:center; height:44px; width:var(--stage-size); min-width:42px; justify-self:center; color:#fff; font-weight:800; background:var(--stage-color); clip-path:polygon(0 0,100% 0,92% 100%,8% 100%); }
.av2-host-crm .crm-ref-funnel.is-column { flex-direction:row; align-items:flex-end; min-height:260px; gap:6px; overflow-x:auto; }
.av2-host-crm .crm-ref-funnel.is-column .crm-ref-funnel-row { display:flex; flex-direction:column-reverse; flex:1 0 75px; min-width:0; gap:12px; }
.av2-host-crm .crm-ref-funnel.is-column .crm-ref-funnel-shape { width:80%; min-height:32px; height:var(--stage-height); clip-path:none; border-radius:8px 8px 0 0; }
.av2-host-crm .crm-ref-funnel.is-column > p { display:none; }
.av2-host-crm .crm-ref-donut { padding:20px; display:flex; align-items:center; justify-content:center; gap:20px; }
.av2-host-crm .crm-ref-donut svg { width:180px; max-width:45%; }
.av2-host-crm .crm-ref-donut p { font-size:12px; margin:8px 0; }
.av2-host-crm .crm-ref-donut i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-inline-end:7px; }
.av2-host-crm .crm-ref-conversion { display:flex; flex-direction:column; align-items:center; padding:28px; gap:10px; }
.av2-host-crm .crm-ref-conversion b { display:grid; place-items:center; width:140px; height:140px; border:14px solid #eaf2fb; border-top-color:#6b94c8; border-inline-start-color:#6b94c8; border-radius:50%; color:#173454; font-size:30px; }
.av2-host-crm .crm-ref-conversion p { font-size:12px; color:#60768c; }
@media (max-width:1100px) {
 .av2-host-crm .crm-ref-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .av2-host-crm .crm-ref-module { display:none; }
 .av2-host-crm .crm-ref-brand small { display:none; }
 .av2-host-crm .crm-ref-top-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:600px) {
 .av2-host-crm .crm-ref-appbar { flex-wrap:wrap; gap:10px; padding:12px; border-radius:12px; margin-bottom:14px; }
 .av2-host-crm .crm-ref-brand { flex:1; } .av2-host-crm .crm-ref-user b { max-width:120px; overflow:hidden; text-overflow:ellipsis; }
 .av2-host-crm .crm-ref-appbar .av2-crm-search { flex:1 0 100%; order:3; }
 .av2-host-crm .crm-ref-primary .crm-ref-tab { flex:0 0 auto; }
 .av2-host-crm .crm-ref-stat-grid { grid-template-columns:minmax(0,1fr); }
 .av2-host-crm .crm-ref-dist-row { grid-template-columns:minmax(85px,1fr) minmax(40px,1fr) auto; gap:6px; font-size:11px; }
 .av2-host-crm .crm-ref-dist-row small { overflow-wrap:anywhere; }
 .av2-host-crm .crm-ref-donut { gap:10px; }
}

/* ADATASK_CRM_REFERENCE_LEADS_SURFACE_20261005: supplied CSS scoped to live CRM. */
.av2-host-crm .crm-leadref{
    --navy:#173454; --navy-2:#1f4468; --navy-dark:#0e2236; --heading:#0e2236; --accent-text:#1f4468;
    --purple:#9759E7; --purple-dark:#7440BE; --purple-tint:#F3ECFC;
    --turquoise:#96CDCD; --turquoise-dark:#4F9B9B; --turquoise-tint:#EAF6F6;
    --light-blue:#AAD2F1; --light-blue-dark:#5B96C9; --light-blue-tint:#EBF5FD;
    --pale-blue:#ECF4FA; --pale-green:#DBFCFC;
    --navy-tint:#EAEFF4; --bg:#F5F7FA; --card:#FFFFFF; --border:#E7ECF1;
    --text:#182B3D; --text-soft:#5B6B7C; --text-faint:#93A2B1;
    --success:#1E9E5A; --success-tint:#E9F7EF; --danger:#E64545; --danger-tint:#FCEBEB; --amber:#D98A16; --amber-tint:#FDF3E0;
    --radius-lg:16px; --radius-md:12px; --radius-sm:9px;
    --shadow:0 1px 2px rgba(15,35,60,.04), 0 6px 20px rgba(15,35,60,.05);
  }
.av2-host-crm .crm-leadref .icon{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.av2-host-crm .crm-leadref .top-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap;}
.av2-host-crm .crm-leadref .th-title h1{font-size:19px;margin:0 0 4px;color:var(--heading);}
.av2-host-crm .crm-leadref .th-title p{margin:0;font-size:12.5px;color:var(--text-soft);}
.av2-host-crm .crm-leadref .th-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.av2-host-crm .crm-leadref .btn-primary{padding:10px 18px;border-radius:10px;border:1px solid var(--navy);background:var(--navy);color:#fff;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:8px;}
.av2-host-crm .crm-leadref .btn-primary:hover{background:var(--navy-2);}
.av2-host-crm .crm-leadref .btn-outline{padding:10px 16px;border-radius:10px;border:1px solid var(--border);background:var(--light-blue-tint);color:var(--accent-text);font-size:12.8px;font-weight:700;display:inline-flex;align-items:center;gap:7px;}
.av2-host-crm .crm-leadref .btn-outline:hover{background:#DCEBF9;}
.av2-host-crm .crm-leadref .btn-ghost{padding:9px 14px;border-radius:10px;border:1px solid var(--border);background:var(--card);color:var(--text-soft);font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:7px;}
.av2-host-crm .crm-leadref .btn-ghost:hover{background:var(--bg);}
.av2-host-crm .crm-leadref .btn-ghost.active{background:var(--navy-tint);color:var(--accent-text);border-color:var(--navy-tint);}
.av2-host-crm .crm-leadref .btn-danger{padding:10px 16px;border-radius:10px;border:1px solid var(--danger);background:var(--danger);color:#fff;font-size:12.8px;font-weight:700;}
.av2-host-crm .crm-leadref .btn-danger:hover{background:#C63838;}
.av2-host-crm .crm-leadref .search-input{display:flex;align-items:center;gap:8px;background:var(--card);border:1px solid var(--border);border-radius:11px;padding:9px 14px;color:var(--text-faint);min-width:220px;}
.av2-host-crm .crm-leadref .search-input .icon{color:var(--text-faint);}
.av2-host-crm .crm-leadref .search-input input{border:none;outline:none;background:none;flex:1;font-family:inherit;font-size:12.8px;color:var(--text);}
.av2-host-crm .crm-leadref select.form-select-sm{border:1px solid var(--border);border-radius:10px;background:var(--card);padding:9px 12px;font-family:inherit;font-size:12.5px;color:var(--text);outline:none;}
.av2-host-crm .crm-leadref .kanban{display:flex;gap:14px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x mandatory;}
.av2-host-crm .crm-leadref .stage-col{flex:0 0 268px;display:flex;flex-direction:column;background:#EEF1F5;border-radius:var(--radius-md);max-height:max(calc((100vh - 260px) * 2), 640px);scroll-snap-align:start;scroll-snap-stop:always;}
.av2-host-crm .crm-leadref .stage-col.dragover{outline:2px dashed var(--navy-2);outline-offset:-2px;}
.av2-host-crm .crm-leadref .stage-head{padding:12px 12px 10px;border-bottom:2px solid rgba(0,0,0,.05);}
.av2-host-crm .crm-leadref .stage-head .sh-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.av2-host-crm .crm-leadref .stage-head .sh-title{display:flex;align-items:center;gap:7px;font-size:12.8px;font-weight:800;color:var(--heading);}
.av2-host-crm .crm-leadref .stage-head .sh-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;}
.av2-host-crm .crm-leadref .stage-head .sh-count{font-size:11px;font-weight:700;color:#fff;background:var(--text-faint);border-radius:20px;padding:1px 8px;}
.av2-host-crm .crm-leadref .stage-head .sh-add{width:24px;height:24px;border-radius:7px;border:1px solid var(--border);background:var(--card);color:var(--text-soft);display:flex;align-items:center;justify-content:center;}
.av2-host-crm .crm-leadref .stage-head .sh-add:hover{background:var(--navy-tint);color:var(--accent-text);}
.av2-host-crm .crm-leadref .stage-head .sh-sum{font-size:11.5px;color:var(--text-soft);font-weight:600;}
.av2-host-crm .crm-leadref .stage-head .sh-stagebar{display:flex;gap:4px;margin:8px 0 2px;}
.av2-host-crm .crm-leadref .stage-head .sh-stagebar .seg{flex:1;height:4px;border-radius:3px;background:var(--border);}
.av2-host-crm .crm-leadref .stage-col.won .stage-head{border-bottom-color:rgba(30,158,90,.25);}
.av2-host-crm .crm-leadref .stage-col.lost .stage-head{border-bottom-color:rgba(230,69,69,.25);}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head{padding:0 0 10px;overflow:visible;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-top{align-items:center;justify-content:space-between;gap:6px;
    margin:0 -19px 11px;padding:11px 27px;position:relative;min-height:54px;
    color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.15);
    clip-path:polygon(100% 0,24px 0,0 50%,24px 100%,100% 100%,calc(100% - 24px) 50%);
    z-index:2;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-top.sh-top-first{clip-path:polygon(100% 0,24px 0,0 50%,24px 100%,100% 100%);padding-inline-start:14px;margin-inline-start:0;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-top.sh-top-last{clip-path:polygon(100% 0,0 0,0 100%,100% 100%,calc(100% - 24px) 50%);padding-inline-end:18px;margin-inline-end:0;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-title{color:#fff;flex:1;min-width:0;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;max-width:100%;vertical-align:middle;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-dot{display:none;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-count{background:rgba(255,255,255,.32);color:#fff;flex-shrink:0;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-add{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.16);color:#fff;flex-shrink:0;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-add:hover{background:rgba(255,255,255,.34);color:#fff;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-sum{padding:0 14px;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-stagebar{margin:0 14px 8px;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-top{transition:filter .15s ease, transform .15s ease;}
.av2-host-crm .crm-leadref #kanbanBoard .stage-head .sh-top:hover{filter:brightness(1.1) saturate(1.08);transform:scale(1.02);}
.av2-host-crm .crm-leadref .stage-body{flex:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:9px;}
.av2-host-crm .crm-leadref .dc-owner{width:23px;height:23px;border-radius:50%;background:var(--navy);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.av2-host-crm .crm-leadref .stage-empty{font-size:11.5px;color:var(--text-faint);text-align:center;padding:16px 6px;}
.av2-host-crm .crm-leadref .list-wrap{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow);overflow:hidden;}
.av2-host-crm .crm-leadref table.deals-table{width:100%;border-collapse:collapse;font-size:12.6px;}
.av2-host-crm .crm-leadref table.deals-table th{text-align:right;padding:11px 12px;background:var(--bg);color:var(--text-soft);font-weight:700;font-size:11.5px;border-bottom:1px solid var(--border);white-space:nowrap;}
.av2-host-crm .crm-leadref table.deals-table td{padding:11px 12px;border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap;}
.av2-host-crm .crm-leadref table.deals-table tr:last-child td{border-bottom:none;}
.av2-host-crm .crm-leadref table.deals-table tr:hover td{background:#FAFBFC;}
.av2-host-crm .crm-leadref .bulk-bar{display:none;align-items:center;gap:10px;background:var(--navy-tint);border-bottom:1px solid var(--border);padding:9px 14px;font-size:12px;font-weight:700;color:var(--accent-text);}
.av2-host-crm .crm-leadref .bulk-bar.show{display:flex;}
.av2-host-crm .crm-leadref .modal-foot{padding:16px 22px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;}
.av2-host-crm .crm-leadref .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;}
.av2-host-crm .crm-leadref .form-group{display:flex;flex-direction:column;}
.av2-host-crm .crm-leadref .form-group.full{grid-column:1/-1;}
.av2-host-crm .crm-leadref .form-label{font-size:12.3px;font-weight:700;color:var(--text);margin-bottom:7px;}
.av2-host-crm .crm-leadref .form-input,.av2-host-crm .crm-leadref .form-select,.av2-host-crm .crm-leadref .form-textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);padding:10px 13px;font-family:inherit;font-size:12.8px;color:var(--text);outline:none;transition:border-color .15s;}
.av2-host-crm .crm-leadref .form-input:focus,.av2-host-crm .crm-leadref .form-select:focus,.av2-host-crm .crm-leadref .form-textarea:focus{border-color:var(--accent-text);}
.av2-host-crm .crm-leadref .form-textarea{resize:vertical;min-height:64px;}
.av2-host-crm .crm-leadref .modal-foot{transition:opacity .18s ease, max-height .28s ease, padding .28s ease;overflow:hidden;max-height:80px;}
.av2-host-crm .crm-leadref .modal-foot.ldv-hidden{opacity:0;max-height:0;padding-top:0;padding-bottom:0;pointer-events:none;}
.av2-host-crm .crm-leadref .btn-primary:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.15);}
.av2-host-crm .crm-leadref .btn-primary:disabled:hover{background:var(--navy);}
.av2-host-crm .crm-leadref .form-input.req-err{border-color:var(--danger);}
.av2-host-crm .crm-leadref .panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;}
.av2-host-crm .crm-leadref .panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border);flex-wrap:wrap;}
.av2-host-crm .crm-leadref .panel-head > div:first-child{flex:1;min-width:0;}
.av2-host-crm .crm-leadref .panel-head h3{margin:0;font-size:13.6px;color:var(--heading);display:flex;align-items:center;gap:8px;}
.av2-host-crm .crm-leadref .panel-head .ph-sub{font-size:11.2px;color:var(--text-soft);margin-top:2px;}
.av2-host-crm .crm-leadref #dashTopGrid > .panel{display:flex;flex-direction:column;}
.av2-host-crm .crm-leadref #dashTopGrid > .panel > #dashFunnel,.av2-host-crm .crm-leadref #dashTopGrid > .panel > #dashSources{flex:1;}
.av2-host-crm .crm-leadref #dashTopGrid > .panel > #dashFunnelDonut,.av2-host-crm .crm-leadref #dashTopGrid > .panel > #dashFunnelColumn{flex:1;display:flex;flex-direction:column;justify-content:center;}
.av2-host-crm .crm-leadref .pc-av{width:42px;height:42px;border-radius:12px;background:var(--navy);color:#fff;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.av2-host-crm .crm-leadref .pc-av.co{border-radius:10px;background:var(--purple-dark);}
.av2-host-crm .crm-leadref .lead-subnav{display:flex;gap:6px;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:5px;margin-bottom:16px;width:fit-content;box-shadow:var(--shadow);flex-wrap:wrap;}
.av2-host-crm .crm-leadref .lead-subnav button{padding:8px 14px;border-radius:9px;border:none;background:none;font-family:inherit;font-size:12.5px;font-weight:700;color:var(--text-soft);display:flex;align-items:center;gap:7px;}
.av2-host-crm .crm-leadref .lead-subnav button.active{background:var(--navy);color:#fff;}
.av2-host-crm .crm-leadref .lead-subnav button.active .icon{stroke:#fff;}
.av2-host-crm .crm-leadref .lead-subnav .ls-n{font-size:10.3px;font-weight:800;background:var(--navy-tint);color:var(--accent-text);border-radius:20px;padding:1px 6px;}
.av2-host-crm .crm-leadref .lead-subnav button.active .ls-n{background:rgba(255,255,255,.2);color:#fff;}
.av2-host-crm .crm-leadref .lead-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px;}
@media (max-width:1200px){.av2-host-crm .crm-leadref .lead-kpis{grid-template-columns:repeat(2,1fr);}
}
.av2-host-crm .crm-leadref .lkpi{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:13px 15px;box-shadow:var(--shadow);position:relative;overflow:hidden;}
.av2-host-crm .crm-leadref .lkpi:before{content:'';position:absolute;inset-inline-start:0;top:0;bottom:0;width:3px;background:var(--navy-2);}
.av2-host-crm .crm-leadref .lkpi.amber:before{background:var(--amber);}
.av2-host-crm .crm-leadref .lkpi.danger:before{background:var(--danger);}
.av2-host-crm .crm-leadref .lkpi.green:before{background:var(--success);}
.av2-host-crm .crm-leadref .lkpi.purple:before{background:var(--purple);}
.av2-host-crm .crm-leadref .lkpi .lk-l{font-size:11.2px;color:var(--text-soft);font-weight:600;margin-bottom:7px;display:flex;align-items:center;gap:6px;}
.av2-host-crm .crm-leadref .lkpi .lk-v{font-size:18px;font-weight:800;color:var(--heading);}
.av2-host-crm .crm-leadref .lkpi .lk-s{font-size:10.6px;color:var(--text-faint);margin-top:4px;}
.av2-host-crm .crm-leadref .lead-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.av2-host-crm .crm-leadref .lead-chips{display:flex;gap:6px;flex-wrap:wrap;}
.av2-host-crm .crm-leadref .lead-chips button{padding:7px 13px;border-radius:20px;border:1px solid var(--border);background:var(--card);font-family:inherit;font-size:12px;font-weight:700;color:var(--text-soft);}
.av2-host-crm .crm-leadref .lead-chips button.active{background:var(--navy);border-color:var(--accent-text);color:#fff;}
.av2-host-crm .crm-leadref .st-pill{font-size:10.6px;font-weight:700;padding:3px 9px;border-radius:20px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
.av2-host-crm .crm-leadref .st-pill i{width:7px;height:7px;border-radius:50%;display:inline-block;}
.av2-host-crm .crm-leadref .rate-pill{font-size:10.4px;font-weight:800;padding:2px 8px;border-radius:20px;}
.av2-host-crm .crm-leadref .rate-hot{background:var(--danger-tint);color:var(--danger);}
.av2-host-crm .crm-leadref .rate-warm{background:var(--amber-tint);color:var(--amber);}
.av2-host-crm .crm-leadref .rate-cold{background:var(--light-blue-tint);color:var(--light-blue-dark);}
.av2-host-crm .crm-leadref .score-wrap{display:flex;align-items:center;gap:7px;min-width:96px;}
.av2-host-crm .crm-leadref .score-track{flex:1;height:6px;border-radius:6px;background:#EEF1F5;overflow:hidden;}
.av2-host-crm .crm-leadref .score-track i{display:block;height:100%;border-radius:6px;}
.av2-host-crm .crm-leadref .score-num{font-size:11px;font-weight:800;color:var(--accent-text);}
.av2-host-crm .crm-leadref .lead-name b{font-size:12.7px;font-weight:700;color:var(--text);display:block;}
.av2-host-crm .crm-leadref .lead-name span{font-size:10.8px;color:var(--text-faint);}
.av2-host-crm .crm-leadref .row-acts{display:flex;gap:5px;}
.av2-host-crm .crm-leadref .ra-btn{width:27px;height:27px;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--text-soft);display:inline-flex;align-items:center;justify-content:center;}
.av2-host-crm .crm-leadref .ra-btn:hover{background:var(--navy-tint);color:var(--accent-text);}
.av2-host-crm .crm-leadref .ra-btn.green:hover{background:var(--success-tint);color:var(--success);}
.av2-host-crm .crm-leadref .ra-btn.red:hover{background:var(--danger-tint);color:var(--danger);}
.av2-host-crm .crm-leadref .lead-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-top:1px solid var(--border);font-size:12px;color:var(--text-soft);font-weight:600;flex-wrap:wrap;}
.av2-host-crm .crm-leadref .lead-pager .lp-btns{display:flex;gap:5px;}
.av2-host-crm .crm-leadref .lead-pager .lp-btns button{min-width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:var(--card);font-family:inherit;font-size:12px;font-weight:700;color:var(--text-soft);padding:0 8px;}
.av2-host-crm .crm-leadref .lead-pager .lp-btns button.active{background:var(--navy);color:#fff;border-color:var(--accent-text);}
.av2-host-crm .crm-leadref .lead-pager .lp-btns button:disabled{opacity:.45;}
.av2-host-crm .crm-leadref .empty-box{padding:36px 16px;text-align:center;color:var(--text-faint);font-size:12.4px;}
.av2-host-crm .crm-leadref .empty-box b{display:block;color:var(--text-soft);font-size:13px;margin-bottom:5px;}
.av2-host-crm .crm-leadref .lk-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:11px 12px;box-shadow:0 1px 2px rgba(15,35,60,.05);cursor:grab;}
.av2-host-crm .crm-leadref .lk-card.dragging{opacity:.4;}
.av2-host-crm .crm-leadref .lk-card .lkc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin-bottom:5px;}
.av2-host-crm .crm-leadref .lk-card .lkc-name{font-size:12.7px;font-weight:700;}
.av2-host-crm .crm-leadref .lk-card .lkc-co{font-size:11px;color:var(--text-soft);margin-bottom:8px;}
.av2-host-crm .crm-leadref .lk-card .lkc-amt{font-size:12.8px;font-weight:800;color:var(--accent-text);margin-bottom:8px;}
.av2-host-crm .crm-leadref .lk-card .lkc-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;}
.av2-host-crm .crm-leadref .lk-card .lkc-age{font-size:10.5px;font-weight:700;color:var(--text-faint);display:flex;align-items:center;gap:4px;}
.av2-host-crm .crm-leadref .lk-card .lkc-age.warn{color:var(--danger);}
.av2-host-crm .crm-leadref .lk-card .lkc-age .icon{width:12px;height:12px;}
.av2-host-crm .crm-leadref .rep-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:1000px){.av2-host-crm .crm-leadref .rep-grid{grid-template-columns:1fr;}
}
.av2-host-crm .crm-leadref .rep-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);}
.av2-host-crm .crm-leadref .rep-row:last-child{border-bottom:none;}
.av2-host-crm .crm-leadref .rep-lbl{flex:0 0 118px;font-size:12px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:6px;}
.av2-host-crm .crm-leadref .rep-track{flex:1;height:22px;border-radius:7px;background:#EEF1F5;overflow:hidden;}
.av2-host-crm .crm-leadref .rep-track i{display:block;height:100%;border-radius:7px;display:flex;align-items:center;padding:0 8px;color:#fff;font-size:10.6px;font-weight:800;white-space:nowrap;}
.av2-host-crm .crm-leadref .rep-val{flex:0 0 96px;text-align:left;font-size:11.3px;font-weight:700;color:var(--text-soft);}
.av2-host-crm .crm-leadref .create-grid{display:grid;grid-template-columns:1fr 330px;gap:18px;align-items:start;}
@media (max-width:1100px){.av2-host-crm .crm-leadref .create-grid{grid-template-columns:1fr;}
}
.av2-host-crm .crm-leadref .fs-block{padding:16px 18px;border-bottom:1px solid var(--border);}
.av2-host-crm .crm-leadref .fs-block:last-child{border-bottom:none;}
.av2-host-crm .crm-leadref .fs-title{font-size:12.6px;font-weight:800;color:var(--heading);margin-bottom:14px;display:flex;align-items:center;gap:8px;}
.av2-host-crm .crm-leadref .fs-title .icon{color:var(--accent-text);}
.av2-host-crm .crm-leadref .form-hint{font-size:10.7px;color:var(--text-faint);margin-top:5px;}
.av2-host-crm .crm-leadref .form-input.err,.av2-host-crm .crm-leadref .form-select.err{border-color:var(--danger);background:#FFF9F9;}
.av2-host-crm .crm-leadref .dupe-warn{display:none;align-items:center;gap:9px;background:var(--amber-tint);border:1px solid rgba(217,138,22,.28);border-radius:11px;padding:11px 13px;font-size:12px;font-weight:700;color:var(--amber);margin-bottom:14px;}
.av2-host-crm .crm-leadref .dupe-warn.show{display:flex;}
.av2-host-crm .crm-leadref .prev-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:15px 16px;box-shadow:var(--shadow);}
.av2-host-crm .crm-leadref .prev-card .pc-av{width:42px;height:42px;border-radius:12px;background:var(--navy);color:#fff;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;}
.av2-host-crm .crm-leadref .prev-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px dashed var(--border);font-size:11.8px;}
.av2-host-crm .crm-leadref .prev-line:last-child{border-bottom:none;}
.av2-host-crm .crm-leadref .prev-line span{color:var(--text-soft);font-weight:600;}
.av2-host-crm .crm-leadref .prev-line b{font-weight:700;color:var(--text);}
.av2-host-crm .crm-leadref .tips-list{font-size:11.6px;color:var(--text-soft);line-height:2;padding-inline-start:16px;margin:0;}
.av2-host-crm .crm-leadref .form-input.err{border-color:var(--danger);background:#FFF9F9;}

/* Native shell containment and touch/keyboard additions; reference geometry retained. */
.av2-host-crm .crm-leadref{min-width:0;color:var(--text);font-size:14px;line-height:1.6;margin:18px 0;}
.av2-host-crm .crm-leadref *{box-sizing:border-box;min-width:0;}
.av2-host-crm .crm-leadref button{font-family:inherit;box-shadow:none;}
.av2-host-crm .crm-leadref .top-head h1{font-size:19px;margin:0 0 4px;color:#0e2236;}
.av2-host-crm .crm-leadref .lead-subnav{margin-inline-start:0;margin-inline-end:auto;}
.av2-host-crm .crm-leadref .lead-subnav button{min-height:40px;}
.av2-host-crm .crm-leadref .lead-chips{margin-bottom:14px;}
.av2-host-crm .crm-leadref .lead-toolbar .search-input{min-width:250px;flex:1 1 250px;}
.av2-host-crm .crm-leadref .lead-table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain;}
.av2-host-crm .crm-leadref .deals-table{table-layout:auto;}
.av2-host-crm .crm-leadref .lead-name-link{font-size:12.7px;font-weight:700;background:none;border:0;text-align:right;padding:0;display:block;color:var(--text);}
.av2-host-crm .crm-leadref .lead-owner{display:inline-flex;align-items:center;gap:6px;}
.av2-host-crm .crm-leadref .dc-owner{font-style:normal;}
.av2-host-crm .crm-leadref .lead-amount{font-weight:800;color:var(--accent-text);}
.av2-host-crm .crm-leadref .lead-stale{color:var(--danger);font-weight:700;}
.av2-host-crm .crm-leadref .row-acts .ra-btn{width:auto;min-width:27px;padding:4px 6px;font-size:10px;}
.av2-host-crm .crm-leadref .crm-leadref-column{flex:0 0 268px;min-width:268px;max-width:268px;overflow:hidden;}
.av2-host-crm .crm-leadref .crm-leadref-column>header{border-radius:0;}
.av2-host-crm .crm-leadref .stage-body{max-height:calc(100dvh - 380px);min-height:180px;}
.av2-host-crm .crm-leadref .crm-leadref-card{overflow-wrap:anywhere;}
.av2-host-crm .crm-leadref .crm-leadref-card-title{background:none;border:0;text-align:right;padding:0;font-size:12.7px;color:var(--text);font-weight:700;min-height:32px;max-width:100%;}
.av2-host-crm .crm-leadref .lead-card-actions{margin-top:8px;border-top:1px solid var(--border);font-size:11px;color:var(--text-soft);}
.av2-host-crm .crm-leadref .lead-card-actions summary{cursor:pointer;min-height:44px;display:flex;align-items:center;}
.av2-host-crm .crm-leadref .lead-card-actions select{width:100%;min-height:44px;font:inherit;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--card);}
.av2-host-crm .crm-leadref .crm-leadref-pick{display:flex;align-items:center;gap:8px;min-height:44px;}
.av2-host-crm .crm-leadref .crm-leadref-pick input{width:18px;height:18px;}
.av2-host-crm .crm-leadref .preview-person{display:flex;align-items:center;gap:11px;margin:11px 0 13px;}
.av2-host-crm .crm-leadref .preview-person small{display:block;font-size:11px;color:var(--text-soft);}
.av2-host-crm .crm-leadref .prev-card{margin-bottom:14px;}
.av2-host-crm .crm-leadref .prev-card>small{display:block;font-size:11px;font-weight:800;color:var(--text-faint);}
.av2-host-crm .crm-leadref .form-error{padding:12px 16px;color:var(--danger);background:var(--danger-tint);overflow-wrap:anywhere;}
.av2-host-crm .crm-leadref .crm-leadref-bulk,.av2-host-crm .crm-leadref .crm-leadref-bulk-result{padding:12px 14px;background:var(--pale-blue);overflow-wrap:anywhere;}
.av2-host-crm .crm-leadref .crm-leadref-bulk>div,.av2-host-crm .crm-leadref .crm-leadref-bulk label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0;}
.av2-host-crm .crm-leadref .crm-leadref-bulk select,.av2-host-crm .crm-leadref .crm-leadref-bulk input{max-width:100%;min-height:44px;padding:8px;font:inherit;border:1px solid var(--border);border-radius:9px;}
.av2-host-crm .crm-leadref .crm-leadref-distribution{padding:12px 16px;}
.av2-host-crm .crm-leadref .crm-leadref-distribution>div{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);}
.av2-host-crm .crm-leadref .crm-leadref-distribution span{flex:1;overflow-wrap:anywhere;}
.av2-host-crm .crm-leadref :focus-visible{outline:2px solid #5B96C9;outline-offset:3px;}
@media(max-width:640px){
 .av2-host-crm .crm-leadref .lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .av2-host-crm .crm-leadref .lead-kpis>:last-child:nth-child(odd){grid-column:1/-1;}
 .av2-host-crm .crm-leadref .form-grid,.av2-host-crm .crm-leadref .create-grid,.av2-host-crm .crm-leadref .rep-grid{grid-template-columns:minmax(0,1fr);}
 .av2-host-crm .crm-leadref .th-actions{width:100%;gap:8px;}
 .av2-host-crm .crm-leadref .th-actions>button{flex:1;justify-content:center;}
 .av2-host-crm .crm-leadref .lead-toolbar .search-input{min-width:0;width:100%;flex-basis:100%;}
 .av2-host-crm .crm-leadref .lead-toolbar select{flex:1;max-width:100%;}
 .av2-host-crm .crm-leadref input:not([type=checkbox]),.av2-host-crm .crm-leadref select,.av2-host-crm .crm-leadref textarea{font-size:16px;max-width:100%;}
 .av2-host-crm .crm-leadref .lead-subnav{width:100%;}
 .av2-host-crm .crm-leadref button,.av2-host-crm .crm-leadref .lead-subnav button{min-height:44px;}
 .av2-host-crm .crm-leadref .lead-pager .lp-btns button{height:44px;}
 .av2-host-crm .crm-leadref .modal-foot{flex-wrap:wrap;padding:12px 16px;}
 .av2-host-crm .crm-leadref .modal-foot>button{flex:1;justify-content:center;}
 .av2-host-crm .crm-leadref .stage-body{max-height:60dvh;}
}

/* Reference lead report geometry, scoped to the real CRM renderer. */
.av2-host-crm .crm-leadref .crm-leadref-report-body{padding:12px 16px 16px}
.av2-host-crm .crm-leadref .crm-leadref-report-wide,.av2-host-crm .crm-leadref .crm-leadref-stale{margin-top:16px}
.av2-host-crm .crm-leadref .crm-leadref-owner-report{flex:1;min-width:0}
.av2-host-crm .crm-leadref .crm-leadref-owner-count{display:flex;justify-content:space-between;gap:8px;font-size:12.1px;margin-bottom:5px}
.av2-host-crm .crm-leadref .crm-leadref-owner-report small{display:block;font-size:10.7px;color:var(--text-faint);margin-top:5px}
@media(max-width:640px){.av2-host-crm .crm-leadref .rep-lbl{flex-basis:86px}.av2-host-crm .crm-leadref .rep-val{flex-basis:80px;font-size:10px}}

/* Supplied reference app-bar/nav geometry; keep existing scoped host and real controls. */
.av2-host-crm .crm-ref-appbar{border-radius:0;padding:10px 26px;gap:16px;min-height:61px;border-bottom:1px solid #ffffff14}
.av2-host-crm .crm-ref-brand{flex-shrink:0}
.av2-host-crm .crm-ref-brand-mark{background:linear-gradient(135deg,#9759E7,#5B96C9)}
.av2-host-crm .crm-ref-brand small{font-size:10.8px;color:#ffffff9e}
.av2-host-crm .crm-ref-module{font-size:11.2px;font-weight:700;background:#ffffff1f;border-color:#ffffff24;padding:4px 10px}
.av2-host-crm .crm-ref-appbar .av2-crm-search{max-width:520px;padding:8px 13px}
.av2-host-crm .crm-ref-appbar .av2-crm-search-label{display:none}
.av2-host-crm .crm-ref-appbar .av2-crm-search-input{min-height:24px;font-size:12.6px}
.av2-host-crm .crm-ref-user{margin-inline-start:auto;padding:5px 11px 5px 7px;border:1px solid #ffffff29;border-radius:11px;background:#ffffff1a}
.av2-host-crm .crm-ref-avatar{flex-basis:28px;height:28px;font-size:11px;background:#9759E7}
.av2-host-crm .crm-ref-navigation{margin-bottom:18px}
.av2-host-crm .crm-ref-primary{width:fit-content;max-width:100%;margin-inline-end:auto;gap:6px;box-shadow:0 1px 2px #0f233c0a,0 6px 20px #0f233c0d}
.av2-host-crm .crm-ref-primary .crm-ref-tab{flex:0 0 auto;padding:9px 16px;gap:7px}
@media(max-width:640px){
.av2-host-crm .crm-ref-appbar{padding:8px 12px;gap:8px 10px;flex-wrap:wrap}
.av2-host-crm .crm-ref-brand{flex:1 1 auto;min-width:0}
.av2-host-crm .crm-ref-brand b{max-width:34vw}
.av2-host-crm .crm-ref-brand small,.av2-host-crm .crm-ref-module,.av2-host-crm .crm-ref-user b{display:none}
.av2-host-crm .crm-ref-user{padding:3px}
.av2-host-crm .crm-ref-appbar .av2-crm-search{order:5;flex:1 1 100%;max-width:none;min-width:0}
.av2-host-crm .crm-ref-primary{width:100%;gap:4px}
.av2-host-crm .crm-ref-primary .crm-ref-tab{padding:9px 12px;font-size:12.6px;min-height:44px}
}

/* ADATASK_CRM_CLAUDE_DASHBOARD_SURFACE_V7: approved file styles, scoped to the actual dashboard. */
.av2-host-crm .crm-claude-dashboard{
    --navy:#173454; --navy-2:#1f4468; --navy-dark:#0e2236; --heading:#0e2236; --accent-text:#1f4468;
    --purple:#9759E7; --purple-dark:#7440BE; --purple-tint:#F3ECFC;
    --turquoise:#96CDCD; --turquoise-dark:#4F9B9B; --turquoise-tint:#EAF6F6;
    --light-blue:#AAD2F1; --light-blue-dark:#5B96C9; --light-blue-tint:#EBF5FD;
    --pale-blue:#ECF4FA; --pale-green:#DBFCFC;
    --navy-tint:#EAEFF4; --bg:#F5F7FA; --card:#FFFFFF; --border:#E7ECF1;
    --text:#182B3D; --text-soft:#5B6B7C; --text-faint:#93A2B1;
    --success:#1E9E5A; --success-tint:#E9F7EF; --danger:#E64545; --danger-tint:#FCEBEB; --amber:#D98A16; --amber-tint:#FDF3E0;
    --radius-lg:16px; --radius-md:12px; --radius-sm:9px;
    --shadow:0 1px 2px rgba(15,35,60,.04), 0 6px 20px rgba(15,35,60,.05);
  }
.av2-host-crm .crm-claude-dashboard .icon{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.av2-host-crm .crm-claude-dashboard .top-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap;}
.av2-host-crm .crm-claude-dashboard .th-title h1{font-size:19px;margin:0 0 4px;color:var(--heading);}
.av2-host-crm .crm-claude-dashboard .th-title p{margin:0;font-size:12.5px;color:var(--text-soft);}
.av2-host-crm .crm-claude-dashboard .th-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.av2-host-crm .crm-claude-dashboard .btn-primary{padding:10px 18px;border-radius:10px;border:1px solid var(--navy);background:var(--navy);color:#fff;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:8px;}
.av2-host-crm .crm-claude-dashboard .btn-primary:hover{background:var(--navy-2);}
.av2-host-crm .crm-claude-dashboard .btn-outline{padding:10px 16px;border-radius:10px;border:1px solid var(--border);background:var(--light-blue-tint);color:var(--accent-text);font-size:12.8px;font-weight:700;display:inline-flex;align-items:center;gap:7px;}
.av2-host-crm .crm-claude-dashboard .btn-outline:hover{background:#DCEBF9;}
.av2-host-crm .crm-claude-dashboard .btn-ghost{padding:9px 14px;border-radius:10px;border:1px solid var(--border);background:var(--card);color:var(--text-soft);font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:7px;}
.av2-host-crm .crm-claude-dashboard .btn-ghost:hover{background:var(--bg);}
.av2-host-crm .crm-claude-dashboard .btn-ghost.active{background:var(--navy-tint);color:var(--accent-text);border-color:var(--navy-tint);}
.av2-host-crm .crm-claude-dashboard select.form-select-sm{border:1px solid var(--border);border-radius:10px;background:var(--card);padding:9px 12px;font-family:inherit;font-size:12.5px;color:var(--text);outline:none;}
.av2-host-crm .crm-claude-dashboard .loss-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.av2-host-crm .crm-claude-dashboard .loss-stats .stat-card{padding:11px 12px;}
.av2-host-crm .crm-claude-dashboard .loss-stats .sc-label{margin-bottom:6px;}
.av2-host-crm .crm-claude-dashboard .loss-stats .sc-value{font-size:15.5px;}
@media (max-width:640px){.av2-host-crm .crm-claude-dashboard .loss-stats{grid-template-columns:1fr;}
}
.av2-host-crm .crm-claude-dashboard .stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 16px;box-shadow:var(--shadow);transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;}
.av2-host-crm .crm-claude-dashboard .stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(15,35,60,.10);border-color:var(--light-blue);}
.av2-host-crm .crm-claude-dashboard .stat-card .sc-label{font-size:11.3px;color:var(--text-soft);margin-bottom:8px;font-weight:600;}
.av2-host-crm .crm-claude-dashboard .stat-card .sc-value{font-size:18px;font-weight:800;color:var(--heading);}
.av2-host-crm .crm-claude-dashboard .stat-card .sc-value.danger{color:var(--danger);}
.av2-host-crm .crm-claude-dashboard .stat-card .sc-value.success{color:var(--success);}
.av2-host-crm .crm-claude-dashboard .btn-primary:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.15);}
.av2-host-crm .crm-claude-dashboard .btn-primary:disabled:hover{background:var(--navy);}
.av2-host-crm .crm-claude-dashboard .panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;}
.av2-host-crm .crm-claude-dashboard .panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border);flex-wrap:wrap;}
.av2-host-crm .crm-claude-dashboard .panel-head > div:first-child{flex:1;min-width:0;}
.av2-host-crm .crm-claude-dashboard .panel-head h3{margin:0;font-size:13.6px;color:var(--heading);display:flex;align-items:center;gap:8px;}
.av2-host-crm .crm-claude-dashboard .panel-head .ph-sub{font-size:11.2px;color:var(--text-soft);margin-top:2px;}
.av2-host-crm .crm-claude-dashboard .attn{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border);}
.av2-host-crm .crm-claude-dashboard .attn:last-child{border-bottom:none;}
.av2-host-crm .crm-claude-dashboard .attn-bar{width:3px;border-radius:3px;align-self:stretch;flex-shrink:0;}
.av2-host-crm .crm-claude-dashboard .attn-main{flex:1;min-width:0;}
.av2-host-crm .crm-claude-dashboard .attn-t{font-size:12.4px;font-weight:700;color:var(--text);margin-bottom:3px;}
.av2-host-crm .crm-claude-dashboard .attn-s{font-size:11px;color:var(--text-soft);line-height:1.6;}
.av2-host-crm .crm-claude-dashboard .attn-cta{border:1px solid var(--border);background:var(--card);border-radius:8px;padding:6px 11px;font-family:inherit;font-size:11.2px;font-weight:700;color:var(--accent-text);white-space:nowrap;align-self:center;}
.av2-host-crm .crm-claude-dashboard .attn-cta:hover{background:var(--navy-tint);}
.av2-host-crm .crm-claude-dashboard .panel-empty{padding:30px 18px;text-align:center;}
.av2-host-crm .crm-claude-dashboard .panel-empty .pe-t{font-size:12.6px;font-weight:700;color:var(--text-soft);margin-bottom:4px;}
.av2-host-crm .crm-claude-dashboard .panel-empty .pe-s{font-size:11.4px;color:var(--text-faint);}
.av2-host-crm .crm-claude-dashboard .dash-stats-wrap{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:auto auto auto;gap:12px;margin-bottom:18px;align-items:stretch;}
.av2-host-crm .crm-claude-dashboard .dopp-col{grid-column:1;grid-row:1 / 4;}
.av2-host-crm .crm-claude-dashboard .leads-col{grid-column:2;grid-row:1 / 4;}
.av2-host-crm .crm-claude-dashboard .value-col{grid-column:3;grid-row:1 / 4;}
.av2-host-crm .crm-claude-dashboard .activity-col{grid-column:4;grid-row:1 / 4;}
@media (max-width:1100px){.av2-host-crm .crm-claude-dashboard .dash-stats-wrap{grid-template-columns:repeat(2,1fr);grid-template-rows:none;}
.av2-host-crm .crm-claude-dashboard .dopp-col,.av2-host-crm .crm-claude-dashboard .leads-col,.av2-host-crm .crm-claude-dashboard .value-col,.av2-host-crm .crm-claude-dashboard .activity-col{grid-column:auto;grid-row:auto;}
}
.av2-host-crm .crm-claude-dashboard .dopp{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;height:100%;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;}
.av2-host-crm .crm-claude-dashboard .dopp:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(15,35,60,.10);border-color:var(--purple);}
.av2-host-crm .crm-claude-dashboard .dopp-top{position:relative;background:var(--light-blue-tint);border-radius:20px;padding:9px 46px 9px 14px;display:flex;align-items:center;}
.av2-host-crm .crm-claude-dashboard .dopp-title{font-size:12px;font-weight:700;color:var(--accent-text);}
.av2-host-crm .crm-claude-dashboard .dopp-badge{position:absolute;left:-6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:3px solid var(--card);}
.av2-host-crm .crm-claude-dashboard .dopp-sub{font-size:12.5px;font-weight:800;color:var(--heading);display:flex;align-items:center;gap:8px;}
.av2-host-crm .crm-claude-dashboard .dopp-sub:after{content:'';flex:1;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--navy),var(--border) 70%);}
.av2-host-crm .crm-claude-dashboard .dopp-pills{display:flex;flex-direction:column;gap:7px;flex:1;justify-content:flex-start;}
.av2-host-crm .crm-claude-dashboard .dopp-pill{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-radius:20px;font-size:12px;font-weight:600;color:var(--accent-text);transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;}
.av2-host-crm .crm-claude-dashboard .dopp-pill:hover{transform:translateY(-2px) scale(1.015);box-shadow:0 4px 12px rgba(15,35,60,.12);filter:brightness(1.03);}
.av2-host-crm .crm-claude-dashboard .dopp-pill b{font-size:13.5px;font-weight:800;}
.av2-host-crm .crm-claude-dashboard .dopp-pill.bad{background:var(--danger-tint);}
.av2-host-crm .crm-claude-dashboard .dopp-pill.bad b{color:var(--danger);}
.av2-host-crm .crm-claude-dashboard .dopp-badge.dlink,.av2-host-crm .crm-claude-dashboard .dopp-badge.dlink:hover{border-bottom:none;color:#fff;}
.av2-host-crm .crm-claude-dashboard .dopp-rates{display:flex;flex-direction:column;gap:6px;padding-top:9px;margin-top:1px;border-top:1px dashed var(--border);}
.av2-host-crm .crm-claude-dashboard .dopp-rate{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;font-weight:600;color:var(--text-soft);cursor:help;}
.av2-host-crm .crm-claude-dashboard .dopp-rate b{font-size:12.5px;font-weight:800;color:var(--heading);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-top{background:var(--pale-blue);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-badge{background:var(--navy);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-sub:after{background:linear-gradient(90deg,var(--navy),var(--border) 70%);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-pill{background:var(--pale-blue);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-pill b{color:var(--navy);}
.av2-host-crm .crm-claude-dashboard .leads-col .dopp-top{background:var(--purple-tint);}
.av2-host-crm .crm-claude-dashboard .leads-col .dopp-badge{background:var(--purple);}
.av2-host-crm .crm-claude-dashboard .leads-col .dopp-sub:after{background:linear-gradient(90deg,var(--purple),var(--border) 70%);}
.av2-host-crm .crm-claude-dashboard .leads-col .dopp-pill{background:var(--purple-tint);}
.av2-host-crm .crm-claude-dashboard .leads-col .dopp-pill b{color:var(--purple-dark);}
.av2-host-crm .crm-claude-dashboard .value-col .dopp-top{background:var(--turquoise-tint);}
.av2-host-crm .crm-claude-dashboard .value-col .dopp-sub:after{background:linear-gradient(90deg,var(--turquoise-dark),var(--border) 70%);}
.av2-host-crm .crm-claude-dashboard .value-col .dopp-pill{background:var(--turquoise-tint);}
.av2-host-crm .crm-claude-dashboard .value-col .dopp-pill b{color:var(--turquoise-dark);}
.av2-host-crm .crm-claude-dashboard .activity-col .dopp-top{background:var(--light-blue-tint);}
.av2-host-crm .crm-claude-dashboard .activity-col .dopp-sub:after{background:linear-gradient(90deg,var(--light-blue-dark),var(--border) 70%);}
.av2-host-crm .crm-claude-dashboard .activity-col .dopp-pill{background:var(--light-blue-tint);}
.av2-host-crm .crm-claude-dashboard .activity-col .dopp-pill b{color:var(--light-blue-dark);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-pill.bad,.av2-host-crm .crm-claude-dashboard .leads-col .dopp-pill.bad,.av2-host-crm .crm-claude-dashboard .value-col .dopp-pill.bad,.av2-host-crm .crm-claude-dashboard .activity-col .dopp-pill.bad{background:var(--danger-tint);}
.av2-host-crm .crm-claude-dashboard .dopp-col .dopp-pill.bad b,.av2-host-crm .crm-claude-dashboard .leads-col .dopp-pill.bad b,.av2-host-crm .crm-claude-dashboard .value-col .dopp-pill.bad b,.av2-host-crm .crm-claude-dashboard .activity-col .dopp-pill.bad b{color:var(--danger);}
.av2-host-crm .crm-claude-dashboard .dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch;}
@media (max-width:1100px){.av2-host-crm .crm-claude-dashboard .dash-grid{grid-template-columns:1fr;}
}
.av2-host-crm .crm-claude-dashboard #dashTopGrid{grid-template-columns:1fr 1fr;align-items:stretch;}
.av2-host-crm .crm-claude-dashboard .dash-grid > .panel{display:flex;flex-direction:column;min-width:0;}
.av2-host-crm .crm-claude-dashboard #dashTrend{flex:1;display:flex;flex-direction:column;justify-content:center;}
.av2-host-crm .crm-claude-dashboard #dashConversion{flex:1;display:flex;flex-direction:column;justify-content:center;}
.av2-host-crm .crm-claude-dashboard #dashTopGrid > .panel{display:flex;flex-direction:column;}
.av2-host-crm .crm-claude-dashboard #dashTopGrid > .panel > #dashFunnel,.av2-host-crm .crm-claude-dashboard #dashTopGrid > .panel > #dashSources{flex:1;}
.av2-host-crm .crm-claude-dashboard #dashTopGrid > .panel > #dashFunnelDonut,.av2-host-crm .crm-claude-dashboard #dashTopGrid > .panel > #dashFunnelColumn{flex:1;display:flex;flex-direction:column;justify-content:center;}
.av2-host-crm .crm-claude-dashboard .won-trend-legend{display:flex;align-items:center;gap:14px;font-size:11.5px;color:var(--text-soft);font-weight:600;flex-shrink:0;flex-wrap:wrap;justify-content:center;}
.av2-host-crm .crm-claude-dashboard .won-trend-legend span{display:flex;align-items:center;gap:5px;}
.av2-host-crm .crm-claude-dashboard .won-trend-legend i{width:13px;height:3px;border-radius:2px;display:inline-block;}
.av2-host-crm .crm-claude-dashboard .won-trend-legend i.wt-leg-dash{width:14px;height:0;background:none;border-radius:0;border-top-width:2px;border-top-style:dashed;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-cmp-line{stroke-dasharray:6 4;opacity:.55;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart{width:100%;height:auto;display:block;overflow:visible;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-grid{stroke:var(--border);stroke-width:1;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-axis-l{font-size:10.6px;fill:var(--text-faint);font-weight:600;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-axis-r{font-size:10.6px;fill:var(--text-faint);font-weight:600;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-x-label{font-size:11px;fill:var(--text-soft);font-weight:600;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-dot{transition:r .12s ease;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-dot:hover{r:5.5;}
@media (max-width:1100px){.av2-host-crm .crm-claude-dashboard #dashTopGrid{grid-template-columns:1fr;}
}
.av2-host-crm .crm-claude-dashboard #dashFunnel{flex:1;display:flex;flex-direction:column;justify-content:center;}
.av2-host-crm .crm-claude-dashboard .ffun-wrap{position:relative;display:flex;align-items:stretch;justify-content:center;gap:14px;}
.av2-host-crm .crm-claude-dashboard .ffun-side{display:flex;flex-direction:column;flex:0 0 auto;}
.av2-host-crm .crm-claude-dashboard .ffun-lbl-col{flex:1 1 150px;min-width:130px;}
.av2-host-crm .crm-claude-dashboard .ffun-drp-col{flex:0 0 84px;}
.av2-host-crm .crm-claude-dashboard .ffun-item{height:52px;display:flex;align-items:center;gap:8px;border-radius:10px;padding:0 6px;margin:0 -6px;cursor:pointer;transition:background .15s ease, opacity .15s ease;}
.av2-host-crm .crm-claude-dashboard .ffun-item.hl{background:var(--navy-tint);}
.av2-host-crm .crm-claude-dashboard .ffun-item.dim{opacity:.45;}
.av2-host-crm .crm-claude-dashboard .ffun-num{width:20px;height:20px;border-radius:50%;color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.av2-host-crm .crm-claude-dashboard .ffun-nm{font-size:11.8px;font-weight:800;color:var(--text);line-height:1.5;}
.av2-host-crm .crm-claude-dashboard .ffun-sub{font-size:10.2px;font-weight:600;color:var(--text-soft);line-height:1.5;}
.av2-host-crm .crm-claude-dashboard .ffun-badge{display:inline-flex;align-items:center;gap:4px;font-size:10.6px;font-weight:800;padding:3px 9px;border-radius:20px;background:var(--navy-tint);color:var(--text-soft);white-space:nowrap;}
.av2-host-crm .crm-claude-dashboard .ffun-badge svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;}
.av2-host-crm .crm-claude-dashboard .ffun-badge.bad{background:var(--danger-tint);color:var(--danger);}
.av2-host-crm .crm-claude-dashboard .ffun-badge.in{background:var(--success-tint);color:var(--success);}
.av2-host-crm .crm-claude-dashboard .ffun-svg{flex:0 0 auto;display:block;overflow:visible;}
.av2-host-crm .crm-claude-dashboard .ffun-seg{stroke:var(--card);stroke-width:3;stroke-linejoin:round;cursor:pointer;transform-box:fill-box;transform-origin:center;transition:transform .18s ease, filter .18s ease, opacity .18s ease;}
.av2-host-crm .crm-claude-dashboard .ffun-seg.hl{transform:scale(1.045);filter:drop-shadow(0 6px 10px rgba(15,35,60,.32));}
.av2-host-crm .crm-claude-dashboard .ffun-seg.dim{opacity:.4;}
.av2-host-crm .crm-claude-dashboard .ffun-shine{pointer-events:none;stroke:none;transform-box:fill-box;transform-origin:center;transition:transform .18s ease, opacity .18s ease;}
.av2-host-crm .crm-claude-dashboard .ffun-shine.hl{transform:scale(1.045);}
.av2-host-crm .crm-claude-dashboard .ffun-shine.dim{opacity:.4;}
.av2-host-crm .crm-claude-dashboard .ffun-val{fill:#fff;font-size:13px;font-weight:800;pointer-events:none;text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:rgba(0,0,0,.18);stroke-width:2px;transition:opacity .18s ease;}
.av2-host-crm .crm-claude-dashboard .ffun-val.dim{opacity:.4;}
@media (max-width:520px){.av2-host-crm .crm-claude-dashboard .ffun-lbl-col{flex-basis:110px;min-width:100px;}
.av2-host-crm .crm-claude-dashboard .ffun-drp-col{flex-basis:72px;}
}
.av2-host-crm .crm-claude-dashboard .view-toggle{display:flex;background:var(--bg);border:1px solid var(--border);border-radius:9px;padding:2px;gap:2px;}
.av2-host-crm .crm-claude-dashboard .view-toggle .vt-btn{border:none;background:none;padding:5px 12px;font-size:11px;font-weight:700;color:var(--text-soft);border-radius:7px;cursor:pointer;}
.av2-host-crm .crm-claude-dashboard .view-toggle .vt-btn.active{background:var(--card);color:var(--accent-text);box-shadow:var(--shadow);}
.av2-host-crm .crm-claude-dashboard .view-toggle.dr-overridden{opacity:.5;}
.av2-host-crm .crm-claude-dashboard .src-row{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.av2-host-crm .crm-claude-dashboard .src-name{flex:0 0 104px;font-size:11.8px;font-weight:700;color:var(--text);}
.av2-host-crm .crm-claude-dashboard .src-val{flex:0 0 96px;text-align:left;font-size:11px;font-weight:700;color:var(--text-soft);}
.av2-host-crm .crm-claude-dashboard .tm-wrap{position:relative;width:100%;}
.av2-host-crm .crm-claude-dashboard .tm-cell{position:absolute;box-sizing:border-box;border:2px solid var(--card);border-radius:3px;padding:9px 12px;overflow:hidden;cursor:default;transition:filter .15s,opacity .15s,transform .15s,box-shadow .15s;}
.av2-host-crm .crm-claude-dashboard .tm-cell.tm-hover{filter:brightness(1.09);transform:scale(1.015);z-index:2;box-shadow:0 6px 16px rgba(15,30,50,.22);}
.av2-host-crm .crm-claude-dashboard .tm-cell.tm-dim{opacity:.32;}
.av2-host-crm .crm-claude-dashboard .tm-cell.tm-active{z-index:3;box-shadow:0 0 0 2px var(--purple),0 6px 16px rgba(15,30,50,.25);}
.av2-host-crm .crm-claude-dashboard .tm-name{display:block;font-size:12.2px;font-weight:800;line-height:1.35;overflow:hidden;white-space:normal;word-break:break-word;}
.av2-host-crm .crm-claude-dashboard .tm-val{display:block;font-size:10.6px;font-weight:700;opacity:.82;margin-top:4px;white-space:normal;overflow:hidden;}
.av2-host-crm .crm-claude-dashboard .tm-cell.tm-sm .tm-val{display:none;}
.av2-host-crm .crm-claude-dashboard .tm-cell.tm-xs .tm-name{font-size:10.5px;}
.av2-host-crm .crm-claude-dashboard .as-chart{display:flex;flex-direction:column;gap:16px;}
.av2-host-crm .crm-claude-dashboard .as-chart:not(.as-focused) .as-bar:hover .as-stack i{opacity:.82;}
.av2-host-crm .crm-claude-dashboard .as-chart:not(.as-focused) .as-bar .as-stack i:hover{opacity:1;}
.av2-host-crm .crm-claude-dashboard .as-chart.as-focused .as-stack i{opacity:.15;}
.av2-host-crm .crm-claude-dashboard .as-chart.as-focused .as-stack i.on{opacity:1;}
.av2-host-crm .crm-claude-dashboard .as-chart.as-focused .as-legend span{opacity:.38;}
.av2-host-crm .crm-claude-dashboard .as-chart.as-focused .as-legend span.on{opacity:1;}
.av2-host-crm .crm-claude-dashboard .as-legend{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:center;font-size:11px;font-weight:700;color:var(--text-soft);}
.av2-host-crm .crm-claude-dashboard .as-legend span{display:flex;align-items:center;gap:6px;cursor:pointer;transition:opacity .16s ease;}
.av2-host-crm .crm-claude-dashboard .as-legend i{width:9px;height:9px;border-radius:50%;display:block;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(23,52,84,.1);}
.av2-host-crm .crm-claude-dashboard .cv-wrap{display:flex;flex-direction:column;align-items:center;gap:14px;height:100%;justify-content:center;}
.av2-host-crm .crm-claude-dashboard .cv-gauge{width:100%;max-width:330px;cursor:pointer;}
.av2-host-crm .crm-claude-dashboard .cv-gauge svg{display:block;width:100%;height:auto;overflow:visible;}
.av2-host-crm .crm-claude-dashboard .cv-gauge:hover .cv-fill{filter:brightness(1.16) drop-shadow(0 0 9px rgba(151,89,231,.5));}
.av2-host-crm .crm-claude-dashboard .cv-end{font-size:12px;font-weight:700;fill:var(--text-faint);}
.av2-host-crm .crm-claude-dashboard .cv-val{font-size:30px;font-weight:800;fill:var(--heading);transition:fill .25s ease;}
.av2-host-crm .crm-claude-dashboard .cv-gauge:hover .cv-val{fill:var(--accent-text);}
.av2-host-crm .crm-claude-dashboard .cv-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:100%;}
.av2-host-crm .crm-claude-dashboard .cv-chip{display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:10px;background:var(--bg);border:1px solid var(--border);text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;}
.av2-host-crm .crm-claude-dashboard .cv-chip:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,35,60,.14);border-color:var(--accent-text);}
.av2-host-crm .crm-claude-dashboard .cv-chip:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px;}
.av2-host-crm .crm-claude-dashboard .cv-chip.dlink,.av2-host-crm .crm-claude-dashboard .cv-chip.dlink:hover{border-bottom:none;}
.av2-host-crm .crm-claude-dashboard .cv-chip i{width:9px;height:9px;border-radius:50%;display:block;flex-shrink:0;}
.av2-host-crm .crm-claude-dashboard .cv-chip b{font-size:13px;font-weight:800;color:var(--heading);}
.av2-host-crm .crm-claude-dashboard .cv-chip span{font-size:11px;font-weight:700;color:var(--text-soft);}
.av2-host-crm .crm-claude-dashboard .cv-note{font-size:11px;font-weight:700;color:var(--text-faint);text-align:center;}
.av2-host-crm .crm-claude-dashboard .dr-bar{display:flex;justify-content:flex-start;align-items:center;gap:8px;flex-wrap:wrap;margin:-6px 0 10px;}
.av2-host-crm .crm-claude-dashboard .dr-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-hit{fill:transparent;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart.wt-off-v .wt-s-v,.av2-host-crm .crm-claude-dashboard .won-trend-chart.wt-off-v .wt-axis-l{display:none;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart.wt-off-c .wt-s-c,.av2-host-crm .crm-claude-dashboard .won-trend-chart.wt-off-c .wt-axis-r{display:none;}
.av2-host-crm .crm-claude-dashboard .wt-toggles{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:12px 16px 0;}
.av2-host-crm .crm-claude-dashboard .wt-stat-toggles{gap:14px;}
.av2-host-crm .crm-claude-dashboard .wtc-card{position:relative;display:flex;flex-direction:column;gap:2px;min-width:220px;padding:10px 16px 12px;border-radius:12px;border:1.5px solid var(--c);color:var(--c);background:color-mix(in srgb, var(--c) 9%, var(--card));box-shadow:0 1px 2px rgba(15,35,60,.06);cursor:pointer;user-select:none;transition:background .15s ease,color .15s ease,box-shadow .15s ease,transform .1s ease,border-color .15s ease;}
.av2-host-crm .crm-claude-dashboard .wtc-card input{position:absolute;opacity:0;width:0;height:0;pointer-events:none;}
.av2-host-crm .crm-claude-dashboard .wtc-top{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;margin-bottom:4px;white-space:nowrap;}
.av2-host-crm .crm-claude-dashboard .wtc-box{position:relative;width:16px;height:16px;flex:none;border-radius:4px;border:1.5px solid currentColor;background:var(--card);transition:background .15s,border-color .15s;}
.av2-host-crm .crm-claude-dashboard .wtc-box::after{content:"";position:absolute;left:50%;top:45%;width:8px;height:4.5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translate(-50%,-50%) rotate(-45deg);opacity:0;transition:opacity .12s;}
.av2-host-crm .crm-claude-dashboard .wtc-num{font-size:19px;font-weight:800;line-height:1.15;white-space:nowrap;}
.av2-host-crm .crm-claude-dashboard .wtc-card:hover{box-shadow:0 6px 16px rgba(15,35,60,.16);border-color:var(--c);transform:translateY(-2px);}
.av2-host-crm .crm-claude-dashboard .wtc-card:active{transform:translateY(0);box-shadow:0 2px 6px rgba(15,35,60,.12);}
.av2-host-crm .crm-claude-dashboard .wtc-card:has(input:checked){background:var(--c);color:#fff;border-color:var(--c);box-shadow:0 4px 12px rgba(15,35,60,.2);}
.av2-host-crm .crm-claude-dashboard .wtc-card:has(input:checked):hover{box-shadow:0 8px 18px rgba(15,35,60,.26);}
.av2-host-crm .crm-claude-dashboard .wtc-card:has(input:checked) .wtc-box{border-color:#fff;background:rgba(255,255,255,.001);}
.av2-host-crm .crm-claude-dashboard .wtc-card:has(input:checked) .wtc-box::after{opacity:1;}
.av2-host-crm .crm-claude-dashboard .wtc-card:has(input:focus-visible){box-shadow:0 0 0 2px var(--dr-accent);}
.av2-host-crm .crm-claude-dashboard .wt-btn{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 11px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-family:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;}
.av2-host-crm .crm-claude-dashboard .wt-btn:hover{border-color:var(--dr-accent);}
.av2-host-crm .crm-claude-dashboard .wt-btn:focus-visible,.av2-host-crm .crm-claude-dashboard .wt-btn.open{outline:none;border-color:var(--dr-accent);box-shadow:0 0 0 1px var(--dr-accent);}
.av2-host-crm .crm-claude-dashboard .wt-icon-btn{width:34px;padding:0;justify-content:center;flex:none;}
.av2-host-crm .crm-claude-dashboard .wt-icon-btn svg,.av2-host-crm .crm-claude-dashboard .wt-btn .wt-ic{width:15px;height:15px;flex:none;color:var(--heading);}
.av2-host-crm .crm-claude-dashboard .wt-cmp-btn.on{background:var(--navy-tint);color:var(--accent-text);border-color:var(--navy-tint);}
.av2-host-crm .crm-claude-dashboard .wt-cmp-btn.on .wt-ic{color:var(--accent-text);}
.av2-host-crm .crm-claude-dashboard .wt-btn .wt-chev{width:11px;height:11px;flex:none;color:var(--text-soft);transition:transform .15s;}
.av2-host-crm .crm-claude-dashboard .wt-btn.open .wt-chev{transform:rotate(180deg);}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-tick{stroke:var(--text-faint);stroke-width:1.2;}
.av2-host-crm .crm-claude-dashboard .won-trend-chart .wt-hit:hover{fill:var(--light-blue-tint);}
.av2-host-crm .crm-claude-dashboard .stat-card .sc-value:not(.danger) .dlink:hover{color:var(--accent-text);}
.av2-host-crm .crm-claude-dashboard .tg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;align-content:start;overflow-x:hidden;overflow-y:auto;max-height:566px;scroll-snap-type:y proximity;scrollbar-width:thin;}
@media (max-width:560px){.av2-host-crm .crm-claude-dashboard .tg-grid{grid-template-columns:minmax(0,1fr);}
}
.av2-host-crm .crm-claude-dashboard .tg-grid .tg-svg{max-width:280px;margin-inline:auto;}
.av2-host-crm .crm-claude-dashboard .tg-grid::-webkit-scrollbar{width:7px;}
.av2-host-crm .crm-claude-dashboard .tg-grid::-webkit-scrollbar-track{background:transparent;}
.av2-host-crm .crm-claude-dashboard .tg-grid::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px;}
.av2-host-crm .crm-claude-dashboard .tg-grid::-webkit-scrollbar-thumb:hover{background:var(--text-faint);}
.av2-host-crm .crm-claude-dashboard .tg-split{display:flex;align-items:stretch;}
.av2-host-crm .crm-claude-dashboard .tg-main{flex:2 1 0%;min-width:0;}
.av2-host-crm .crm-claude-dashboard .tg-side{flex:1 1 0%;min-width:0;border-inline-start:1px solid var(--border);padding:16px 18px;display:flex;flex-direction:column;}
@media (max-width:1150px){.av2-host-crm .crm-claude-dashboard .tg-split{flex-direction:column;}
.av2-host-crm .crm-claude-dashboard .tg-side{border-inline-start:none;border-top:1px solid var(--border);}
}
.av2-host-crm .crm-claude-dashboard .tgb-list{display:flex;flex-direction:column;gap:16px;flex:1;}
.av2-host-crm .crm-claude-dashboard .tgb-row{display:flex;flex-direction:column;gap:6px;}
.av2-host-crm .crm-claude-dashboard .tgb-top{display:flex;align-items:center;justify-content:space-between;}
.av2-host-crm .crm-claude-dashboard .tgb-name{font-size:11.8px;font-weight:800;color:var(--text);}
.av2-host-crm .crm-claude-dashboard .tgb-pct{font-size:10.8px;font-weight:800;padding:1px 7px;border-radius:20px;background:var(--pale-blue);color:var(--navy-2);}
.av2-host-crm .crm-claude-dashboard .tgb-pct.hi{background:var(--success-tint);color:var(--success);}
.av2-host-crm .crm-claude-dashboard .tgb-pct.mid{background:var(--amber-tint);color:var(--amber);}
.av2-host-crm .crm-claude-dashboard .tgb-track{position:relative;height:26px;border-radius:7px;background:var(--pale-blue);overflow:visible;direction:ltr;margin-top:2px;}
.av2-host-crm .crm-claude-dashboard .tgb-fill{position:absolute;top:0;bottom:0;left:0;border-radius:7px;background:linear-gradient(90deg,var(--light-blue-dark),var(--purple));display:flex;align-items:center;padding:0 8px;overflow:hidden;}
.av2-host-crm .crm-claude-dashboard .tgb-fill span{font-size:10.4px;font-weight:800;color:#fff;white-space:nowrap;}
.av2-host-crm .crm-claude-dashboard .tgb-total{margin-top:auto;padding-top:14px;border-top:1px dashed var(--border);}
.av2-host-crm .crm-claude-dashboard .tgb-total .tgb-name{font-size:12.6px;color:var(--heading);}
.av2-host-crm .crm-claude-dashboard .tgb-total .tgb-track{height:30px;}
.av2-host-crm .crm-claude-dashboard .tgb-total .tgb-fill{background:linear-gradient(90deg,var(--navy-2),var(--purple-dark));}
.av2-host-crm .crm-claude-dashboard .tgb-legend{display:flex;justify-content:center;gap:8px;margin-top:14px;font-size:10.8px;font-weight:700;color:var(--text-soft);}
.av2-host-crm .crm-claude-dashboard .tgb-legend span{display:flex;align-items:center;gap:6px;}
.av2-host-crm .crm-claude-dashboard .tgb-legend i{width:9px;height:9px;border-radius:3px;display:block;background:linear-gradient(90deg,var(--light-blue-dark),var(--purple));}
.av2-host-crm .crm-claude-dashboard .tg-card{scroll-snap-align:start;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);padding:12px 12px 10px;display:flex;flex-direction:column;min-width:0;}
.av2-host-crm .crm-claude-dashboard .tg-hd{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.av2-host-crm .crm-claude-dashboard .tg-av{width:26px;height:26px;border-radius:50%;background:var(--navy-tint);color:var(--accent-text);font-size:10.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:none;}
.av2-host-crm .crm-claude-dashboard .tg-nm{font-size:12.6px;font-weight:800;color:var(--heading);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.av2-host-crm .crm-claude-dashboard .tg-pct{font-size:11px;font-weight:800;padding:2px 9px;border-radius:999px;background:var(--navy-tint);color:var(--text-soft);flex:none;}
.av2-host-crm .crm-claude-dashboard .tg-pct.lo{background:var(--danger-tint);color:var(--danger);}
.av2-host-crm .crm-claude-dashboard .tg-pct.mid{background:var(--amber-tint);color:var(--amber);}
.av2-host-crm .crm-claude-dashboard .tg-pct.hi{background:var(--success-tint);color:var(--success);}
.av2-host-crm .crm-claude-dashboard .tg-svg{width:100%;height:auto;display:block;}
.av2-host-crm .crm-claude-dashboard .tg-svg text{font-family:inherit;}
.av2-host-crm .crm-claude-dashboard .tg-meta{font-size:11px;color:var(--text-faint);text-align:center;margin-top:2px;}
.av2-host-crm .crm-claude-dashboard .lb-list{flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:6px;padding:10px 20px 6px;}
.av2-host-crm .crm-claude-dashboard .lb-row{display:flex;align-items:center;gap:12px;min-width:0;}
.av2-host-crm .crm-claude-dashboard .lb-av{position:relative;width:46px;height:46px;border-radius:50%;flex:none;border:0;padding:0;background:var(--navy);color:#fff;font-family:inherit;font-size:14px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:default;}
.av2-host-crm .crm-claude-dashboard button.lb-av{cursor:pointer;}
.av2-host-crm .crm-claude-dashboard .lb-av img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;}
.av2-host-crm .crm-claude-dashboard button.lb-av:hover .lb-cam,.av2-host-crm .crm-claude-dashboard button.lb-av:focus-visible .lb-cam{opacity:1;}
.av2-host-crm .crm-claude-dashboard .lb-rank{position:absolute;left:-4px;bottom:-2px;width:18px;height:18px;border-radius:50%;border:2px solid var(--card);background:var(--navy-tint);color:var(--text-soft);font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;}
.av2-host-crm .crm-claude-dashboard .lb-rank.r1{background:#E9B949;color:#3D2A00;}
.av2-host-crm .crm-claude-dashboard .lb-rank.r2{background:#B8C2CC;color:#22303D;}
.av2-host-crm .crm-claude-dashboard .lb-rank.r3{background:#CD8B5A;color:#fff;}
@media (max-width:640px){.av2-host-crm .crm-claude-dashboard select.form-select-sm{min-width:0;max-width:100%;}
.av2-host-crm .crm-claude-dashboard .btn-primary,.av2-host-crm .crm-claude-dashboard .btn-outline,.av2-host-crm .crm-claude-dashboard .btn-ghost{min-height:40px;}
.av2-host-crm .crm-claude-dashboard .top-head{gap:10px;margin-bottom:14px;}
.av2-host-crm .crm-claude-dashboard .th-title h1{font-size:17px;}
.av2-host-crm .crm-claude-dashboard .th-actions{width:100%;gap:8px;}
.av2-host-crm .crm-claude-dashboard .th-actions > .btn-primary,.av2-host-crm .crm-claude-dashboard .th-actions > .btn-outline{flex:1 1 auto;justify-content:center;}
.av2-host-crm .crm-claude-dashboard .th-actions .search-input{min-width:0 !important;width:100%;flex:1 1 100%;}
.av2-host-crm .crm-claude-dashboard .loss-stats,.av2-host-crm .crm-claude-dashboard .dash-grid,.av2-host-crm .crm-claude-dashboard #dashTopGrid,.av2-host-crm .crm-claude-dashboard .tg-grid,.av2-host-crm .crm-claude-dashboard .dash-stats-wrap{grid-template-columns:minmax(0,1fr) !important;}
.av2-host-crm .crm-claude-dashboard .dash-stats-wrap > *{grid-column:auto !important;grid-row:auto !important;}
.av2-host-crm .crm-claude-dashboard .wtc-card{min-width:0;width:100%;}
.av2-host-crm .crm-claude-dashboard .ffun-lbl-col{flex-basis:96px;min-width:84px;}
.av2-host-crm .crm-claude-dashboard .ffun-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;justify-content:stretch;align-items:start;}
.av2-host-crm .crm-claude-dashboard .ffun-wrap > .ffun-svg{grid-column:1 / -1;grid-row:1;width:100%;max-width:340px;height:auto;margin:0 auto 10px;justify-self:center;}
.av2-host-crm .crm-claude-dashboard .ffun-wrap > .ffun-lbl-col{grid-column:1;grid-row:2;min-width:0;flex:none;}
.av2-host-crm .crm-claude-dashboard .ffun-wrap > .ffun-drp-col{grid-column:2;grid-row:2;flex:none;min-width:0;}
.av2-host-crm .crm-claude-dashboard .ffun-lbl-col .ffun-item > div{min-width:0;}
.av2-host-crm .crm-claude-dashboard .ffun-nm,.av2-host-crm .crm-claude-dashboard .ffun-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.av2-host-crm .crm-claude-dashboard .ffun-item{margin:0 -4px;padding:0 4px;border-bottom:1px solid var(--border);border-radius:0;}
.av2-host-crm .crm-claude-dashboard .ffun-item:last-child{border-bottom:none;}
.av2-host-crm .crm-claude-dashboard .ffun-drp-col .ffun-item{justify-content:flex-start;}
}
.av2-host-crm .crm-claude-dashboard { display:block; min-width:0; width:100%; font-size:14px; line-height:1.6; color:var(--text); }
.av2-host-crm .crm-claude-dashboard * { box-sizing:border-box; }
.av2-host-crm .crm-claude-dashboard .top-head { margin-bottom:18px; padding:0; border:0; background:none; box-shadow:none; }
.av2-host-crm .crm-claude-dashboard button { font-family:inherit; cursor:pointer; }
.av2-host-crm .crm-claude-dashboard .dash-grid { margin-top:16px; }
.av2-host-crm .crm-claude-dashboard #dashTopGrid { margin-top:0; }
.av2-host-crm .crm-claude-dashboard .dopp-col,.av2-host-crm .crm-claude-dashboard .leads-col,.av2-host-crm .crm-claude-dashboard .value-col,.av2-host-crm .crm-claude-dashboard .activity-col { padding:0; box-shadow:none; background:none; border:0; border-radius:0; min-width:0; }
.av2-host-crm .crm-claude-dashboard .dopp-top { min-height:37px; }
.av2-host-crm .crm-claude-dashboard .dopp-pill { width:100%; min-height:39px; border:0; text-align:right; background:var(--pale-blue); gap:8px; }
.av2-host-crm .crm-claude-dashboard .dopp-pill b { overflow-wrap:anywhere; font-size:13px; }
.av2-host-crm .crm-claude-dashboard .leads-col .dopp-pill { background:var(--purple-tint); color:var(--purple-dark); }
.av2-host-crm .crm-claude-dashboard .value-col .dopp-pill { background:var(--turquoise-tint); color:var(--turquoise-dark); }
.av2-host-crm .crm-claude-dashboard .activity-col .dopp-pill { background:var(--light-blue-tint); color:var(--light-blue-dark); }
.av2-host-crm .crm-claude-dashboard .dopp-pill.bad { background:var(--danger-tint); color:var(--danger); }
.av2-host-crm .crm-claude-dashboard .dr-bar { justify-content:flex-start; }
.av2-host-crm .crm-claude-dashboard .refdash-filter { display:inline-flex; align-items:center; gap:7px; background:var(--card); border:1px solid var(--border); border-radius:9px; padding-inline:10px 0; }
.av2-host-crm .crm-claude-dashboard .refdash-filter select { border:0; min-width:0; padding:7px 8px; font-size:11px; }
.av2-host-crm .crm-claude-dashboard .refdash-body { padding:14px 16px 18px; }
.av2-host-crm .crm-claude-dashboard .refdash-note { font-size:10.5px; line-height:1.8; color:var(--text-faint); margin:0 0 14px; }
.av2-host-crm .crm-claude-dashboard .refdash-funnel-body { padding:14px 16px 18px; }
.av2-host-crm .crm-claude-dashboard .ffun-wrap { gap:8px; justify-content:space-between; }
.av2-host-crm .crm-claude-dashboard .ffun-svg { width:44%; max-width:300px; height:auto; min-width:0; }
.av2-host-crm .crm-claude-dashboard .ffun-lbl-col { min-width:0; flex:1; }
.av2-host-crm .crm-claude-dashboard .ffun-drp-col { flex:0 0 62px; }
.av2-host-crm .crm-claude-dashboard button.ffun-item { width:100%; border:0; font:inherit; text-align:right; background:transparent; }
.av2-host-crm .crm-claude-dashboard .ffun-item { height:52px; min-width:0; }
.av2-host-crm .crm-claude-dashboard .ffun-sub { font-size:9px; white-space:normal; overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .ffun-nm { font-size:11.5px; white-space:normal; overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .src-name { flex-basis:88px; }
.av2-host-crm .crm-claude-dashboard .src-name small { display:block; color:var(--text-faint); font-size:10px; overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .src-seg-track { flex:1; display:flex; align-items:center; min-width:0; }
.av2-host-crm .crm-claude-dashboard .src-seg-bar { display:block; height:30px; border-radius:9px; background:repeating-linear-gradient(to left,transparent 0,transparent calc(100% / var(--src-n) - 2px),white calc(100% / var(--src-n) - 2px),white calc(100% / var(--src-n))),linear-gradient(to left,#5B96C9,#28547E); }
.av2-host-crm .crm-claude-dashboard .src-val { flex-basis:58px; color:var(--heading); }
.av2-host-crm .crm-claude-dashboard .src-total { display:flex; justify-content:space-between; border-top:1px dashed var(--border); padding-top:12px; font-size:12px; }
.av2-host-crm .crm-claude-dashboard .refdash-won { padding-top:10px; }
.av2-host-crm .crm-claude-dashboard .refdash-won > .wt-btn { margin:0 16px 10px; }
.av2-host-crm .crm-claude-dashboard .refdash-line-wrap { padding:8px 16px 16px; }
.av2-host-crm .crm-claude-dashboard .won-trend-chart { min-height:190px; max-height:320px; }
.av2-host-crm .crm-claude-dashboard .refdash-forecast { padding:18px 16px; }
.av2-host-crm .crm-claude-dashboard .refdash-forecast-columns { display:flex; align-items:stretch; gap:6px; height:244px; min-width:0; }
.av2-host-crm .crm-claude-dashboard .refdash-forecast-col { flex:1; display:flex; flex-direction:column; gap:5px; min-width:0; font-size:9px; color:var(--text-soft); text-align:center; }
.av2-host-crm .crm-claude-dashboard .refdash-forecast-value { min-height:29px; font-size:9px; overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .refdash-forecast-track { flex:1; display:flex; align-items:flex-end; justify-content:center; border-bottom:1px solid var(--border); }
.av2-host-crm .crm-claude-dashboard .refdash-forecast-track i { width:80%; border-radius:7px 7px 0 0; display:block; }
.av2-host-crm .crm-claude-dashboard .refdash-forecast .refdash-note { margin-top:14px; }
.av2-host-crm .crm-claude-dashboard .cv-wrap { padding:16px; }
.av2-host-crm .crm-claude-dashboard .loss-stats { padding:14px 16px 0; }
.av2-host-crm .crm-claude-dashboard .refdash-treemap { display:flex; flex-wrap:wrap; min-height:220px; padding:14px 16px 18px; align-items:stretch; }
.av2-host-crm .crm-claude-dashboard .tm-cell { min-width:70px; min-height:85px; }
.av2-host-crm .crm-claude-dashboard .refdash-activity-bars { display:flex; align-items:flex-end; justify-content:space-around; gap:8px; min-height:230px; border-bottom:1px solid var(--border); padding-bottom:10px; }
.av2-host-crm .crm-claude-dashboard .refdash-activity-col { background:none; border:0; padding:0; display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; flex:1; font-size:11px; color:var(--text-soft); }
.av2-host-crm .crm-claude-dashboard .refdash-activity-col > span:last-child { overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .refdash-activity-stack { display:flex; flex-direction:column-reverse; width:80%; min-width:12px; border-radius:7px 7px 0 0; overflow:hidden; }
.av2-host-crm .crm-claude-dashboard .refdash-activity-stack i { display:block; width:100%; }
.av2-host-crm .crm-claude-dashboard #dashTargetPanel { margin-top:16px; }
.av2-host-crm .crm-claude-dashboard .tgb-row small { font-size:10px; color:var(--text-soft); overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .reference-target-editor { border-top:1px solid var(--border); padding:16px; }
.av2-host-crm .crm-claude-dashboard .reference-target-editor .crm-targets-v1-summary { display:none; }
.av2-host-crm .crm-claude-dashboard .reference-target-editor .crm-targets-v1-meter { display:none; }
.av2-host-crm .crm-claude-dashboard .refdash-lb-info { flex:1; min-width:0; }
.av2-host-crm .crm-claude-dashboard .refdash-lb-top { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; }
.av2-host-crm .crm-claude-dashboard .refdash-lb-info small { color:var(--text-faint); font-size:10px; }
.av2-host-crm .crm-claude-dashboard .refdash-lb-track { height:6px; border-radius:5px; background:var(--pale-blue); margin:8px 0; overflow:hidden; }
.av2-host-crm .crm-claude-dashboard .refdash-lb-track i { display:block; height:100%; background:linear-gradient(90deg,var(--navy),var(--purple)); border-radius:5px; }
.av2-host-crm .crm-claude-dashboard .lb-list { max-height:410px; overflow-y:auto; }
.av2-host-crm .crm-claude-dashboard .refdash-team-row { display:flex; align-items:center; gap:8px; min-height:40px; font-size:11px; }
.av2-host-crm .crm-claude-dashboard .refdash-team-row > b { width:96px; flex:none; overflow-wrap:anywhere; }
.av2-host-crm .crm-claude-dashboard .refdash-team-stack { display:flex; height:26px; border-radius:6px; overflow:hidden; min-width:0; max-width:calc(100% - 125px); }
.av2-host-crm .crm-claude-dashboard .refdash-team-stack span { display:grid; place-items:center; color:white; font-size:10px; min-width:0; }
.av2-host-crm .crm-claude-dashboard #attnList { max-height:390px; overflow-y:auto; }
.av2-host-crm .crm-claude-dashboard .crm-dash-v1-events { max-height:390px; overflow-y:auto; }
.av2-host-crm .crm-claude-dashboard .refdash-expanded { grid-column:1 / -1; }
.av2-host-crm .crm-claude-dashboard .refdash-expanded .won-trend-chart { max-height:550px; }
.av2-host-crm .crm-claude-dashboard .refdash-footnote { color:var(--text-soft); font-size:11px; margin-top:16px; }
.av2-host-crm .crm-claude-dashboard :is(button,select,input):focus-visible { outline:2px solid var(--purple); outline-offset:2px; }
@media(max-width:1100px) {
 .av2-host-crm .crm-claude-dashboard #dashTopGrid { grid-template-columns:minmax(0,1fr); }
 .av2-host-crm .crm-claude-dashboard .dash-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:640px) {
 .av2-host-crm .crm-claude-dashboard .dash-stats-wrap { grid-template-columns:minmax(0,1fr); }
 .av2-host-crm .crm-claude-dashboard .th-actions { width:100%; gap:8px; }
 .av2-host-crm .crm-claude-dashboard .th-actions > :is(button,select) { flex:1 1 auto; justify-content:center; min-height:44px; }
 .av2-host-crm .crm-claude-dashboard :is(.vt-btn,.wt-btn,.attn-cta,.form-select-sm) { min-height:44px; }
 .av2-host-crm .crm-claude-dashboard .panel-head { gap:8px; padding:12px; }
 .av2-host-crm .crm-claude-dashboard .panel-head > div:first-child { flex:1 1 100%; }
 .av2-host-crm .crm-claude-dashboard .dr-tools { width:100%; justify-content:space-between; gap:6px; }
 .av2-host-crm .crm-claude-dashboard .ffun-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; }
 .av2-host-crm .crm-claude-dashboard .ffun-svg { grid-column:1 / -1; grid-row:1; width:100%; margin:auto; }
 .av2-host-crm .crm-claude-dashboard .ffun-lbl-col { grid-column:1; grid-row:2; }
 .av2-host-crm .crm-claude-dashboard .ffun-drp-col { grid-column:2; grid-row:2; }
 .av2-host-crm .crm-claude-dashboard .ffun-item { margin:0; }
 .av2-host-crm .crm-claude-dashboard .view-toggle { flex-wrap:wrap; }
 .av2-host-crm .crm-claude-dashboard .view-toggle .vt-btn { padding:5px 7px; }
 .av2-host-crm .crm-claude-dashboard .refdash-forecast-columns { gap:4px; }
 .av2-host-crm .crm-claude-dashboard .refdash-forecast-value { font-size:8px; }
 .av2-host-crm .crm-claude-dashboard .won-trend-chart { min-height:140px; }
 .av2-host-crm .crm-claude-dashboard .tg-grid { grid-template-columns:minmax(0,1fr); }
 .av2-host-crm .crm-claude-dashboard .refdash-lb-top { flex-wrap:wrap; }
 .av2-host-crm .crm-claude-dashboard .refdash-team-row > b { width:75px; }
 .av2-host-crm .crm-claude-dashboard .refdash-team-stack { max-width:calc(100% - 103px); }
 .av2-host-crm .crm-claude-dashboard .attn { flex-wrap:wrap; }
 .av2-host-crm .crm-claude-dashboard .loss-stats { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .av2-host-crm .crm-claude-dashboard * { animation:none; transition:none; } }

/* Dashboard shell geometry: the approved dashboard has no secondary tab strip. */
.av2-host-crm:has(.crm-claude-dashboard) .crm-ref-secondary { display:none; }
.av2-host-crm .crm-claude-dashboard .refdash-pipeline { margin:12px 16px 0; max-width:calc(100% - 32px); }

/* Exact reference customer form styles, scoped to the native dialog. */
.crm-reference-customer-form{
    --navy:#173454; --navy-2:#1f4468; --navy-dark:#0e2236; --heading:#0e2236; --accent-text:#1f4468;
    --purple:#9759E7; --purple-dark:#7440BE; --purple-tint:#F3ECFC;
    --turquoise:#96CDCD; --turquoise-dark:#4F9B9B; --turquoise-tint:#EAF6F6;
    --light-blue:#AAD2F1; --light-blue-dark:#5B96C9; --light-blue-tint:#EBF5FD;
    --pale-blue:#ECF4FA; --pale-green:#DBFCFC;
    --navy-tint:#EAEFF4; --bg:#F5F7FA; --card:#FFFFFF; --border:#E7ECF1;
    --text:#182B3D; --text-soft:#5B6B7C; --text-faint:#93A2B1;
    --success:#1E9E5A; --success-tint:#E9F7EF; --danger:#E64545; --danger-tint:#FCEBEB; --amber:#D98A16; --amber-tint:#FDF3E0;
    --radius-lg:16px; --radius-md:12px; --radius-sm:9px;
    --shadow:0 1px 2px rgba(15,35,60,.04), 0 6px 20px rgba(15,35,60,.05);
  }
.crm-reference-customer-form .btn-primary{padding:10px 18px;border-radius:10px;border:1px solid var(--navy);background:var(--navy);color:#fff;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:8px;}
.crm-reference-customer-form .btn-primary:hover{background:var(--navy-2);}
.crm-reference-customer-form .btn-ghost{padding:9px 14px;border-radius:10px;border:1px solid var(--border);background:var(--card);color:var(--text-soft);font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:7px;}
.crm-reference-customer-form .btn-ghost:hover{background:var(--bg);}
.crm-reference-customer-form .modal{background:var(--card);border-radius:var(--radius-lg);width:100%;max-width:640px;max-height:88vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(15,35,60,.25);}
.crm-reference-customer-form .modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--border);}
.crm-reference-customer-form .modal-head h3{margin:0;font-size:15px;color:var(--heading);}
.crm-reference-customer-form .modal-close{width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:var(--card);display:flex;align-items:center;justify-content:center;color:var(--text-soft);}
.crm-reference-customer-form .modal-close:hover{background:var(--bg);}
.crm-reference-customer-form .modal-body{padding:20px 22px;overflow-y:auto;}
.crm-reference-customer-form .modal-foot{padding:16px 22px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;}
.crm-reference-customer-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;}
.crm-reference-customer-form .form-group{display:flex;flex-direction:column;}
.crm-reference-customer-form .form-group.full{grid-column:1/-1;}
.crm-reference-customer-form .form-label{font-size:12.3px;font-weight:700;color:var(--text);margin-bottom:7px;}
.crm-reference-customer-form .form-input,.crm-reference-customer-form .form-select,.crm-reference-customer-form .form-textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);padding:10px 13px;font-family:inherit;font-size:12.8px;color:var(--text);outline:none;transition:border-color .15s;}
.crm-reference-customer-form .form-input:focus,.crm-reference-customer-form .form-select:focus,.crm-reference-customer-form .form-textarea:focus{border-color:var(--accent-text);}
.crm-reference-customer-form .form-textarea{resize:vertical;min-height:64px;}
.crm-reference-customer-form .switch-row{display:flex;align-items:center;gap:9px;font-size:12.4px;font-weight:600;color:var(--text);}
.crm-reference-customer-form .switch-row input{accent-color:var(--accent-text);width:16px;height:16px;}

.crm-reference-customer-form{position:fixed;inset:0;background:rgba(14,34,54,.45);display:flex;align-items:center;justify-content:center;padding:20px;z-index:11020;direction:rtl;font-family:Vazirmatn,Tahoma,sans-serif}.crm-reference-customer-form *{box-sizing:border-box}.crm-reference-customer-form .modal{min-height:0;margin:0}.crm-reference-customer-form .modal-body{min-height:0}.crm-reference-customer-form .form-error{grid-column:1/-1;color:var(--danger);font-size:12px}.crm-reference-customer-form [hidden]{display:none!important}.crm-reference-customer-form button:disabled{opacity:.55;cursor:default}
@media(max-width:640px){.crm-reference-customer-form{padding:12px}.crm-reference-customer-form .modal{max-height:94dvh}.crm-reference-customer-form .form-grid{grid-template-columns:minmax(0,1fr)}.crm-reference-customer-form .modal-body{padding:16px}.crm-reference-customer-form .modal-head,.crm-reference-customer-form .modal-foot{padding:14px 16px}}


/* Supplied reference customer 360: native data and operations. */
.crm-reference-customer-dossier{
    --navy:#173454; --navy-2:#1f4468; --navy-dark:#0e2236; --heading:#0e2236; --accent-text:#1f4468;
    --purple:#9759E7; --purple-dark:#7440BE; --purple-tint:#F3ECFC;
    --turquoise:#96CDCD; --turquoise-dark:#4F9B9B; --turquoise-tint:#EAF6F6;
    --light-blue:#AAD2F1; --light-blue-dark:#5B96C9; --light-blue-tint:#EBF5FD;
    --pale-blue:#ECF4FA; --pale-green:#DBFCFC;
    --navy-tint:#EAEFF4; --bg:#F5F7FA; --card:#FFFFFF; --border:#E7ECF1;
    --text:#182B3D; --text-soft:#5B6B7C; --text-faint:#93A2B1;
    --success:#1E9E5A; --success-tint:#E9F7EF; --danger:#E64545; --danger-tint:#FCEBEB; --amber:#D98A16; --amber-tint:#FDF3E0;
    --radius-lg:16px; --radius-md:12px; --radius-sm:9px;
    --shadow:0 1px 2px rgba(15,35,60,.04), 0 6px 20px rgba(15,35,60,.05);}
.crm-reference-customer-dossier .form-section-h{grid-column:1/-1;font-size:12.3px;font-weight:800;color:var(--heading);border-top:1px solid var(--border);padding-top:14px;margin-top:2px;}
.crm-reference-customer-form .form-section-h{grid-column:1/-1;font-size:12.3px;font-weight:800;color:var(--heading);border-top:1px solid var(--border);padding-top:14px;margin-top:2px;}
.crm-reference-customer-dossier .c360-hero{display:flex;gap:14px;align-items:flex-start;background:linear-gradient(135deg,var(--navy-tint),#fff 70%);border:1px solid var(--border);border-radius:var(--radius-md);padding:15px 16px;margin-bottom:14px;}
.crm-reference-customer-dossier .c360-av{width:52px;height:52px;border-radius:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;color:#fff;background:linear-gradient(135deg,var(--purple),var(--light-blue-dark));box-shadow:0 6px 16px rgba(151,89,231,.22);}
.crm-reference-customer-dossier .c360-hi{flex:1;min-width:0;}
.crm-reference-customer-dossier .c360-name{font-size:15.5px;font-weight:800;color:var(--heading);display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:3px;}
.crm-reference-customer-dossier .c360-sub{font-size:12.2px;color:var(--text-soft);font-weight:600;margin-bottom:8px;}
.crm-reference-customer-dossier .c360-badges{display:flex;gap:6px;flex-wrap:wrap;}
.crm-reference-customer-dossier .c360-badge{font-size:10.6px;font-weight:800;padding:3px 9px;border-radius:20px;background:var(--navy-tint);color:var(--accent-text);border:1px solid transparent;}
.crm-reference-customer-dossier .c360-badge.p{background:var(--purple-tint);color:var(--purple-dark);}
.crm-reference-customer-dossier .c360-badge.t{background:var(--turquoise-tint);color:var(--turquoise-dark);}
.crm-reference-customer-dossier .c360-badge.a{background:var(--amber-tint);color:var(--amber);}
.crm-reference-customer-dossier .c360-badge.g{background:var(--success-tint);color:var(--success);}
.crm-reference-customer-dossier .c360-badge.d{background:var(--danger-tint);color:var(--danger);}
.crm-reference-customer-dossier .c360-hero-side{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex-shrink:0;}
.crm-reference-customer-dossier .c360-hero-amount{font-size:17px;font-weight:800;color:var(--heading);white-space:nowrap;}
.crm-reference-customer-dossier .c360-hero-amount small{font-size:11px;font-weight:700;color:var(--text-faint);}
.crm-reference-customer-dossier .c360-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:14px;}
.crm-reference-customer-dossier .c360-tile{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;}
.crm-reference-customer-dossier .c360-tile b{display:block;font-size:15px;font-weight:800;color:var(--heading);line-height:1.5;}
.crm-reference-customer-dossier .c360-tile span{font-size:10.8px;color:var(--text-soft);font-weight:700;}
.crm-reference-customer-dossier .c360-tile.ok b{color:var(--success);}
.crm-reference-customer-dossier .c360-tile.warn b{color:var(--danger);}
.crm-reference-customer-dossier .c360-block{border:1px solid var(--border);border-radius:var(--radius-md);margin-bottom:12px;overflow:hidden;background:var(--card);}
.crm-reference-customer-dossier .c360-block-h{display:flex;align-items:center;gap:7px;padding:10px 13px;background:var(--bg);border-bottom:1px solid var(--border);font-size:12.3px;font-weight:800;color:var(--heading);}
.crm-reference-customer-dossier .c360-block-h .icon{width:14px;height:14px;color:var(--accent-text);}
.crm-reference-customer-dossier .c360-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding:4px 13px 8px;}
.crm-reference-customer-dossier .c360-grid.one{grid-template-columns:1fr;}
.crm-reference-customer-dossier .c360-f{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px dashed var(--border);font-size:12.4px;}
.crm-reference-customer-dossier .c360-f:last-child{border-bottom:none;}
.crm-reference-customer-dossier .c360-f > span:first-child{color:var(--text-soft);flex-shrink:0;}
.crm-reference-customer-dossier .c360-f > span:last-child{font-weight:700;color:var(--text);text-align:left;word-break:break-word;}
.crm-reference-customer-dossier .c360-f a{color:var(--light-blue-dark);font-weight:700;}
.crm-reference-customer-dossier .c360-f a:hover{text-decoration:underline;}
.crm-reference-customer-dossier .c360-f.empty > span:last-child{color:var(--text-faint);font-weight:600;}
.crm-reference-customer-dossier .c360-qbar{display:flex;align-items:center;gap:6px;justify-content:flex-start;flex-wrap:wrap;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:8px 10px;margin-bottom:16px;box-shadow:var(--shadow);}
.crm-reference-customer-dossier .c360-qbtn{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:9px;border:1px solid transparent;background:none;font-family:inherit;font-size:12.4px;font-weight:700;color:var(--accent-text);}
.crm-reference-customer-dossier .c360-qbtn .icon{width:15px;height:15px;}
.crm-reference-customer-dossier .c360-qbtn:hover{background:var(--navy-tint);border-color:var(--border);}
.crm-reference-customer-dossier .c360-qbtn + .c360-qbtn{border-right:1px solid var(--border);border-radius:9px;}
.crm-reference-customer-dossier .c360-addbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:2px 0 12px;}
.crm-reference-customer-dossier .c360-addbar:empty{display:none;}
.crm-reference-customer-dossier .c360-chip{display:block;width:fit-content;margin:4px auto 14px;background:var(--navy-dark);color:#fff;font-size:12px;font-weight:700;padding:6px 20px;border-radius:8px;}
.crm-reference-customer-dossier .c360-empty{display:flex;align-items:center;justify-content:center;gap:22px;padding:18px 10px 24px;flex-wrap:wrap;}
.crm-reference-customer-dossier .c360-empty-txt{text-align:center;font-size:12.6px;color:var(--text-soft);line-height:2.1;}
.crm-reference-customer-dossier .c360-empty-txt a{color:var(--light-blue-dark);font-weight:700;text-decoration:underline;cursor:pointer;display:block;}
.crm-reference-customer-dossier .c360-empty-txt a.q{text-decoration:none;color:var(--light-blue-dark);}
.crm-reference-customer-dossier .c360-empty-txt a:hover{color:var(--accent-text);}
.crm-reference-customer-dossier .c360-empty svg{flex-shrink:0;}
@media (max-width:760px){.crm-reference-customer-dossier .c360-tiles{grid-template-columns:repeat(2,1fr);}
.crm-reference-customer-dossier .c360-grid{grid-template-columns:1fr;}
.crm-reference-customer-dossier .c360-hero{flex-direction:column;}}
.crm-reference-customer-dossier .mf-group{display:flex;flex-direction:column;gap:8px;}
.crm-reference-customer-form .mf-group{display:flex;flex-direction:column;gap:8px;}
.crm-reference-customer-dossier .mf-row{display:flex;align-items:center;gap:8px;}
.crm-reference-customer-form .mf-row{display:flex;align-items:center;gap:8px;}
.crm-reference-customer-dossier .mf-row .form-input{flex:1;min-width:0;}
.crm-reference-customer-form .mf-row .form-input{flex:1;min-width:0;}
.crm-reference-customer-dossier .mf-remove{flex:0 0 auto;width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--text-faint);display:flex;align-items:center;justify-content:center;cursor:pointer;}
.crm-reference-customer-form .mf-remove{flex:0 0 auto;width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--text-faint);display:flex;align-items:center;justify-content:center;cursor:pointer;}
.crm-reference-customer-dossier .mf-remove:hover{color:var(--danger);border-color:var(--danger);background:var(--danger-tint);}
.crm-reference-customer-form .mf-remove:hover{color:var(--danger);border-color:var(--danger);background:var(--danger-tint);}
.crm-reference-customer-dossier .mf-remove .icon{width:14px;height:14px;}
.crm-reference-customer-form .mf-remove .icon{width:14px;height:14px;}
.crm-reference-customer-dossier .mf-add{display:inline-flex;align-items:center;gap:5px;background:none;border:none;padding:0;margin-top:2px;font-family:inherit;font-size:11.8px;font-weight:700;color:var(--turquoise-dark);cursor:pointer;align-self:flex-start;}
.crm-reference-customer-form .mf-add{display:inline-flex;align-items:center;gap:5px;background:none;border:none;padding:0;margin-top:2px;font-family:inherit;font-size:11.8px;font-weight:700;color:var(--turquoise-dark);cursor:pointer;align-self:flex-start;}
.crm-reference-customer-dossier .mf-add:hover{color:var(--accent-text);}
.crm-reference-customer-form .mf-add:hover{color:var(--accent-text);}
.crm-reference-customer-dossier .mf-add .icon{width:14px;height:14px;}
.crm-reference-customer-form .mf-add .icon{width:14px;height:14px;}
.crm-reference-customer-dossier .c360-qbtn + .qb-drop{border-right:1px solid var(--border);}
@media (max-width:640px){.crm-reference-customer-dossier .c360-tiles{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px;
  }
.crm-reference-customer-dossier .c360-grid{
    grid-template-columns:minmax(0,1fr) !important;
  }
.crm-reference-customer-dossier .c360-hero{flex-direction:column;}
.crm-reference-customer-dossier .c360-qbar{padding:8px;}}
.crm-reference-customer-dossier{direction:rtl;font-family:Vazirmatn,Tahoma,sans-serif;position:fixed;inset:0;z-index:11010;padding:0;background:var(--card);display:flex;align-items:stretch;justify-content:stretch}
.crm-reference-customer-dossier *{box-sizing:border-box}
.crm-reference-customer-dossier .crm-customer-modal-panel{width:100%;max-width:none;height:100%;max-height:none;min-height:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;overflow:hidden;border:0;background:var(--card)}
.crm-reference-customer-dossier .crm-customer-modal-header{flex-shrink:0;padding:16px 22px;border-bottom:1px solid var(--border);background:var(--card);color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:0}
.crm-reference-customer-dossier .crm-customer-modal-heading h2{margin:0;font-size:15.5px;color:var(--heading)}
.crm-reference-customer-dossier .crm-customer-modal-heading p{margin:4px 0 0;font-size:12px;color:var(--text-soft)}
.crm-reference-customer-dossier .crm-customer-modal-close{width:32px;height:32px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text-soft)}
.crm-reference-dossier-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,40%) minmax(0,60%);overflow:hidden}
.crm-reference-dossier-overview{min-width:0;overflow-y:auto;padding:18px 22px 24px;background:var(--bg);border-left:1px solid var(--border)}
.crm-reference-dossier-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.crm-reference-customer-dossier .crm-customer-modal-tabs{display:flex;flex-shrink:0;gap:4px;overflow-x:auto;max-width:100%;padding:10px 22px 0;border-bottom:1px solid var(--border);background:var(--card);scrollbar-width:none}
.crm-reference-customer-dossier .crm-customer-modal-tab{flex:0 0 auto;padding:9px 4px;margin-left:16px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:12.6px;font-weight:700;color:var(--text-faint);white-space:nowrap}
.crm-reference-customer-dossier .crm-customer-modal-tab.is-active{color:var(--accent-text);border-color:var(--accent-text);background:none;box-shadow:none}
.crm-reference-customer-dossier .crm-customer-modal-content{flex:1;min-height:0;overflow:auto;padding:18px 22px 24px;background:var(--card)}
.crm-reference-customer-dossier .c360-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.crm-reference-customer-dossier .c360-hero{flex-wrap:wrap}.crm-reference-customer-dossier .c360-hero-side{max-width:100%}.crm-reference-customer-dossier .c360-f>span:last-child{min-width:0;overflow-wrap:anywhere}
.crm-reference-customer-dossier .crm-customer-modal-overview-v3501{padding:0;background:none;border:0;display:block}
.crm-reference-customer-form .crm-reference-customer-form-content .modal-foot{margin:20px -22px -20px}
.crm-reference-customer-form .form-error{white-space:normal}.crm-reference-customer-form input,.crm-reference-customer-form select{min-width:0}
@media(max-width:1300px){.crm-reference-customer-dossier .c360-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.crm-reference-dossier-layout{display:block;overflow-y:auto}.crm-reference-dossier-overview{overflow:visible;border-left:0;border-bottom:1px solid var(--border)}.crm-reference-dossier-workspace{overflow:visible}.crm-reference-customer-dossier .crm-customer-modal-content{overflow:visible}.crm-reference-customer-dossier .crm-customer-modal-header{padding-top:max(12px,env(safe-area-inset-top));padding-right:14px;padding-left:14px}.crm-reference-dossier-overview,.crm-reference-customer-dossier .crm-customer-modal-content{padding:14px}.crm-reference-customer-dossier .crm-customer-modal-tabs{padding:10px 14px 0}.crm-reference-customer-dossier .c360-hero{flex-direction:column}}

/* ADATASK_CRM_DASHBOARD_PERIODS_V11 */
.av2-host-crm .crm-claude-dashboard .refdash-period-control{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;max-width:100%}
.av2-host-crm .crm-claude-dashboard .refdash-range-summary{font-size:11px;white-space:normal;max-width:100%}
.av2-host-crm .crm-claude-dashboard .panel-head>.dr-tools{flex-wrap:wrap;min-width:0;justify-content:flex-end}
.crm-refdash-range-shell .v3-overlay{position:fixed;inset:0;z-index:11000;display:flex;align-items:center;justify-content:center;background:rgba(16,31,49,.38);padding:16px}
.crm-refdash-range-shell .v3-modal{width:min(560px,100%);max-height:88dvh;overflow:visible;background:#fff;border:1px solid #dce4ec;border-radius:16px;box-shadow:0 18px 70px #10233130;display:flex;flex-direction:column;direction:rtl}
.crm-refdash-range-shell .v3-modal-head,.crm-refdash-range-shell .v3-modal-foot{display:flex;align-items:center;gap:10px;padding:16px;flex-shrink:0}
.crm-refdash-range-shell .v3-modal-head{justify-content:space-between;border-bottom:1px solid #e7edf3}
.crm-refdash-range-shell .v3-modal-foot{justify-content:flex-end;border-top:1px solid #e7edf3}
.crm-refdash-range-shell .v3-modal-body{padding:18px;overflow:visible}
.crm-refdash-range-shell .refdash-range-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.crm-refdash-range-shell .refdash-range-form>p{font-size:12px;color:#63748b;margin:0 0 16px}
.crm-refdash-range-shell .refdash-range-form>p[role=alert]{color:#ae3442;margin-top:14px}
.crm-refdash-range-shell button{min-height:44px;font-family:inherit}
@media(max-width:640px){
.av2-host-crm .crm-claude-dashboard .panel-head{align-items:flex-start;flex-wrap:wrap}
.av2-host-crm .crm-claude-dashboard .panel-head>.dr-tools{width:100%;justify-content:flex-start}
.crm-refdash-range-shell .refdash-range-fields{grid-template-columns:1fr}
.crm-refdash-range-shell .v3-overlay{padding:12px}
.crm-refdash-range-shell .crm-persian-date-v1-panel{max-width:calc(100vw - 64px)}
}

.crm-refdash-range-shell .crm-persian-date-v1-panel{position:fixed;inset:auto;left:50vw;top:50dvh;right:auto;bottom:auto;transform:translate(-50%,-50%);z-index:11020;width:304px;min-width:0;max-width:calc(100vw - 36px);max-height:calc(100dvh - 32px);overflow:auto}

.av2-host-crm .crm-claude-dashboard .refdash-loading-slot{min-height:200px;margin:12px;border-radius:12px;background:#f2f5f8}

.av2-host-crm .crm-claude-dashboard .refdash-forecast-columns{overflow-x:auto}
.av2-host-crm .crm-claude-dashboard .refdash-forecast-col{min-width:52px}
