/* ADATASK_CRM_DASHBOARD_V1 — isolated RTL dashboard styles */
.crm-dash-v1 {
  --crm-dash-bg: #f4f6f8;
  --crm-dash-surface: #fff;
  --crm-dash-surface-2: #f8fafb;
  --crm-dash-border: #e5e9ee;
  --crm-dash-border-soft: #eef1f4;
  --crm-dash-line: #f2f4f7;
  --crm-dash-text: #10151c;
  --crm-dash-muted: #5b6673;
  --crm-dash-faint: #8b95a1;
  --crm-dash-brand: #173454;
  --crm-dash-brand-dark: #0F2740;
  --crm-dash-brand-soft: #eef2fb;
  --crm-dash-ok: #0f8c8c;
  --crm-dash-ok-soft: #e7f7f7;
  --crm-dash-warn: #c2410c;
  --crm-dash-warn-soft: #fff4ed;
  --crm-dash-amber: #f59e0b;
  --crm-dash-purple: #9759E7;
  --crm-dash-purple-soft: #f3ebfd;
  --crm-dash-teal: #4E9999;
  --crm-dash-teal-soft: #e9f3f3;
  --crm-dash-info: #5FA3D6;
  --crm-dash-info-soft: #eaf3fb;
  --crm-dash-neutral: #f0f2f5;
  --crm-dash-radius: 12px;
  --crm-dash-shadow: 0 2px 10px rgba(23, 52, 84, .06);
  --crm-dash-shadow-lg: 0 12px 30px rgba(23, 52, 84, .13);
  --crm-dash-dur: 200ms;
  --crm-dash-ease: cubic-bezier(.16, 1, .3, 1);
  color: var(--crm-dash-text);
  direction: rtl;
  width: 100%;
  min-width: 0;
  container: crm-dashboard / inline-size;
}

.crm-dash-v1,
.crm-dash-v1 * {
  box-sizing: border-box;
}

/* The sidebar changes available width without changing the browser viewport. */
@container crm-dashboard (max-width: 960px) {
  .crm-dash-v1 .crm-dash-v1-grid.is-2-1,
  .crm-dash-v1 .crm-dash-v1-grid.is-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-dash-v1 .crm-dash-v1-grid.is-3 > :last-child { grid-column: auto; }
  .crm-dash-v1 .crm-dash-v1-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-dash-v1 .crm-dash-v1-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container crm-dashboard (max-width: 560px) {
  .crm-dash-v1 .crm-dash-v1-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-dash-v1 .crm-dash-v1-tools { width: 100%; flex-wrap: wrap; }
  .crm-dash-v1 .crm-dash-v1-pagehead { gap: 12px; padding: 14px; }
  .crm-dash-v1 .crm-dash-v1-workflow-head { flex-wrap: wrap; gap: 8px; }
}
@container crm-dashboard (max-width: 360px) {
  .crm-dash-v1 .crm-dash-v1-kpi-grid,
  .crm-dash-v1 .crm-dash-v1-quick-grid { grid-template-columns: minmax(0, 1fr); }
}

.crm-dash-v1 button {
  font: inherit;
}

.crm-dash-v1 button:focus-visible {
  outline: 2px solid var(--crm-dash-purple);
  outline-offset: 2px;
}

@keyframes crm-dash-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .crm-dash-v1 * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

.crm-dash-v1-pagehead {
  align-items: flex-end;
  background: linear-gradient(115deg, var(--crm-dash-purple-soft) 0%, var(--crm-dash-info-soft) 55%, transparent 100%);
  border-radius: var(--crm-dash-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.crm-dash-v1-pagehead h1 {
  color: var(--crm-dash-text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.35px;
  margin: 0 0 5px;
}

.crm-dash-v1-pagehead p {
  color: var(--crm-dash-muted);
  font-size: 12px;
  margin: 0;
}

.crm-dash-v1-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-dash-v1-segment {
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  display: flex;
  gap: 2px;
  padding: 3px;
}

.crm-dash-v1-segment button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--crm-dash-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 12px;
  transition: background var(--crm-dash-dur) var(--crm-dash-ease), color var(--crm-dash-dur) var(--crm-dash-ease), box-shadow var(--crm-dash-dur) var(--crm-dash-ease);
}

.crm-dash-v1-segment button.is-active {
  background: linear-gradient(135deg, var(--crm-dash-purple), var(--crm-dash-brand));
  color: #fff;
  box-shadow: 0 3px 10px rgba(151, 89, 231, .28);
}

.crm-dash-v1-btn {
  align-items: center;
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  color: var(--crm-dash-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  transition: background var(--crm-dash-dur) var(--crm-dash-ease), color var(--crm-dash-dur) var(--crm-dash-ease), border-color var(--crm-dash-dur) var(--crm-dash-ease), transform var(--crm-dash-dur) var(--crm-dash-ease), box-shadow var(--crm-dash-dur) var(--crm-dash-ease);
}

.crm-dash-v1-btn:hover {
  background: var(--crm-dash-surface-2);
  color: var(--crm-dash-text);
  border-color: var(--crm-dash-teal);
  transform: translateY(-1px);
}

.crm-dash-v1-btn.is-primary {
  background: linear-gradient(135deg, var(--crm-dash-purple), var(--crm-dash-brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(151, 89, 231, .3);
}

.crm-dash-v1-btn.is-primary:hover {
  background: linear-gradient(135deg, var(--crm-dash-brand), var(--crm-dash-purple));
  box-shadow: 0 6px 20px rgba(151, 89, 231, .38);
  transform: translateY(-1px);
}

.crm-dash-v1-btn:disabled {
  cursor: wait;
  opacity: .6;
  transform: none;
}

.crm-dash-v1-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.crm-dash-v1-workflow {
  background: #fff;
  border: 1px solid var(--crm-dash-line);
  border-radius: var(--crm-dash-radius);
  box-shadow: var(--crm-dash-shadow);
  margin-bottom: 14px;
  padding: 14px 16px 16px;
  animation: crm-dash-rise .5s var(--crm-dash-ease) both;
}

.crm-dash-v1-workflow-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.crm-dash-v1-workflow-head h2 {
  color: var(--crm-dash-text);
  font-size: 12px;
  margin: 0;
}

.crm-dash-v1-workflow-head p {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
  margin: 3px 0 0;
}

.crm-dash-v1-workflow-head > span {
  background: var(--crm-dash-ok-soft);
  border-radius: 999px;
  color: var(--crm-dash-ok);
  font-size: 9px;
  font-weight: 800;
  padding: 5px 9px;
}

.crm-dash-v1-workflow-steps {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

.crm-dash-v1-workflow-step {
  align-items: center;
  background: var(--crm-dash-surface-2);
  border: 1px solid var(--crm-dash-line);
  border-radius: 9px;
  color: var(--crm-dash-text);
  cursor: pointer;
  display: flex;
  gap: 7px;
  min-height: 52px;
  min-width: 0;
  padding: 7px 8px;
  position: relative;
  text-align: right;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.crm-dash-v1-workflow-step:hover {
  border-color: rgba(34, 57, 126, .34);
  box-shadow: 0 5px 14px rgba(34, 57, 126, .09);
  transform: translateY(-1px);
}

.crm-dash-v1-workflow-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--crm-dash-purple-soft), var(--crm-dash-brand-soft));
  border-radius: 8px;
  color: var(--crm-dash-brand);
  display: inline-flex;
  flex: 0 0 auto;
  height: 29px;
  justify-content: center;
  width: 29px;
  transition: transform var(--crm-dash-dur) cubic-bezier(.34, 1.56, .64, 1);
}

.crm-dash-v1-workflow-step:hover .crm-dash-v1-workflow-icon {
  transform: scale(1.12) rotate(-6deg);
  color: var(--crm-dash-purple);
}

.crm-dash-v1-workflow-label {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.crm-dash-v1-workflow-label small {
  color: var(--crm-dash-faint);
  font-size: 8px;
}

.crm-dash-v1-workflow-label b,
.crm-dash-v1-workflow-step > strong {
  font-size: 9.5px;
}

.crm-dash-v1-workflow-step > strong {
  color: var(--crm-dash-brand);
}

.crm-dash-v1-quick {
  align-items: flex-start;
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  box-shadow: var(--crm-dash-shadow);
  color: var(--crm-dash-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 82px;
  padding: 13px;
  text-align: right;
  transition: transform var(--crm-dash-dur) var(--crm-dash-ease), box-shadow var(--crm-dash-dur) var(--crm-dash-ease), border-color var(--crm-dash-dur) var(--crm-dash-ease);
  animation: crm-dash-rise .45s var(--crm-dash-ease) both;
}

.crm-dash-v1-quick-grid .crm-dash-v1-quick:nth-child(1) { animation-delay: .02s; }
.crm-dash-v1-quick-grid .crm-dash-v1-quick:nth-child(2) { animation-delay: .06s; }
.crm-dash-v1-quick-grid .crm-dash-v1-quick:nth-child(3) { animation-delay: .10s; }
.crm-dash-v1-quick-grid .crm-dash-v1-quick:nth-child(4) { animation-delay: .14s; }
.crm-dash-v1-quick-grid .crm-dash-v1-quick:nth-child(5) { animation-delay: .18s; }
.crm-dash-v1-quick-grid .crm-dash-v1-quick:nth-child(6) { animation-delay: .22s; }

.crm-dash-v1-quick:hover {
  border-color: transparent;
  box-shadow: var(--crm-dash-shadow-lg);
  transform: translateY(-3px);
}

.crm-dash-v1-quick-icon {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  transition: transform var(--crm-dash-dur) cubic-bezier(.34, 1.56, .64, 1);
}

.crm-dash-v1-quick:hover .crm-dash-v1-quick-icon {
  transform: scale(1.12) rotate(-6deg);
}

.crm-dash-v1-quick-icon.tone-brand { background: linear-gradient(135deg, #eef2fb, #dbe4f7); color: var(--crm-dash-brand); }
.crm-dash-v1-quick-icon.tone-ok { background: linear-gradient(135deg, #e7f7f7, #cdeeee); color: var(--crm-dash-ok); }
.crm-dash-v1-quick-icon.tone-warn { background: linear-gradient(135deg, #fff4ed, #ffe3d0); color: var(--crm-dash-warn); }
.crm-dash-v1-quick-icon.tone-purple { background: linear-gradient(135deg, #f3ebfd, #e3cffa); color: var(--crm-dash-purple); }
.crm-dash-v1-quick-icon.tone-info { background: linear-gradient(135deg, #eaf3fb, #d3e7f7); color: var(--crm-dash-info); }
.crm-dash-v1-quick-icon.tone-teal { background: linear-gradient(135deg, #e9f3f3, #cfe6e6); color: var(--crm-dash-teal); }

.crm-dash-v1-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.crm-dash-v1-kpi {
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  box-shadow: var(--crm-dash-shadow);
  color: var(--crm-dash-text);
  cursor: pointer;
  min-height: 172px;
  overflow: hidden;
  padding: 17px;
  position: relative;
  text-align: right;
  transition: transform var(--crm-dash-dur) var(--crm-dash-ease), box-shadow var(--crm-dash-dur) var(--crm-dash-ease), border-color var(--crm-dash-dur) var(--crm-dash-ease);
  animation: crm-dash-rise .5s var(--crm-dash-ease) both;
}

.crm-dash-v1-kpi-grid .crm-dash-v1-kpi:nth-child(1) { animation-delay: .05s; }
.crm-dash-v1-kpi-grid .crm-dash-v1-kpi:nth-child(2) { animation-delay: .10s; }
.crm-dash-v1-kpi-grid .crm-dash-v1-kpi:nth-child(3) { animation-delay: .15s; }
.crm-dash-v1-kpi-grid .crm-dash-v1-kpi:nth-child(4) { animation-delay: .20s; }

.crm-dash-v1-kpi::before {
  background: var(--crm-dash-brand);
  content: '';
  height: 4px;
  inset-inline: 0;
  opacity: .85;
  position: absolute;
  top: 0;
}

.crm-dash-v1-kpi.tone-ok::before { background: var(--crm-dash-ok); }
.crm-dash-v1-kpi.tone-warn::before { background: var(--crm-dash-warn); }
.crm-dash-v1-kpi.tone-purple::before { background: var(--crm-dash-purple); }
.crm-dash-v1-kpi.tone-info::before { background: var(--crm-dash-info); }
.crm-dash-v1-kpi.tone-teal::before { background: var(--crm-dash-teal); }

.crm-dash-v1-kpi:hover {
  border-color: transparent;
  box-shadow: var(--crm-dash-shadow-lg);
  transform: translateY(-3px);
}

.crm-dash-v1-kpi:hover .crm-dash-v1-kpi-icon {
  transform: scale(1.1) rotate(-5deg);
}

.crm-dash-v1-kpi-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.crm-dash-v1-kpi-label {
  color: var(--crm-dash-muted);
  font-size: 12px;
  font-weight: 700;
}

.crm-dash-v1-kpi-icon {
  align-items: center;
  background: var(--crm-dash-neutral);
  border-radius: 9px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: transform var(--crm-dash-dur) cubic-bezier(.34, 1.56, .64, 1);
  width: 34px;
}

.crm-dash-v1-kpi-icon.tone-brand {
  background: linear-gradient(135deg, #eef2fb, #dbe4f7);
  color: var(--crm-dash-brand);
}

.crm-dash-v1-kpi-icon.tone-ok {
  background: linear-gradient(135deg, #e7f7f7, #cdeeee);
  color: var(--crm-dash-ok);
}

.crm-dash-v1-kpi-icon.tone-warn {
  background: linear-gradient(135deg, #fff4ed, #ffe3d0);
  color: var(--crm-dash-warn);
}

.crm-dash-v1-kpi-icon.tone-purple {
  background: linear-gradient(135deg, #f3ebfd, #e3cffa);
  color: var(--crm-dash-purple);
}

.crm-dash-v1-kpi-icon.tone-info {
  background: linear-gradient(135deg, #eaf3fb, #d3e7f7);
  color: var(--crm-dash-info);
}

.crm-dash-v1-kpi-icon.tone-teal {
  background: linear-gradient(135deg, #e9f3f3, #cfe6e6);
  color: var(--crm-dash-teal);
}

.crm-dash-v1-kpi-value {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.45px;
  line-height: 1.35;
  margin-top: 11px;
  min-height: 32px;
}

.crm-dash-v1-kpi-delta {
  align-items: center;
  color: var(--crm-dash-faint);
  display: flex;
  font-size: 10.5px;
  gap: 7px;
  margin-top: 9px;
}

.crm-dash-v1-trend {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 800;
  gap: 3px;
  padding: 3px 6px;
}

.crm-dash-v1-trend.is-up {
  background: var(--crm-dash-ok-soft);
  color: var(--crm-dash-ok);
}

.crm-dash-v1-trend.is-down {
  background: var(--crm-dash-warn-soft);
  color: var(--crm-dash-warn);
}

.crm-dash-v1-trend.is-down svg {
  transform: rotate(90deg);
}

.crm-dash-v1-kpi-note {
  background: var(--crm-dash-neutral);
  border-radius: 5px;
  color: var(--crm-dash-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
}

.crm-dash-v1-kpi-foot {
  border-top: 1px solid var(--crm-dash-border-soft);
  color: var(--crm-dash-faint);
  font-size: 10.5px;
  line-height: 1.6;
  margin-top: 11px;
  padding-top: 9px;
}

.crm-dash-v1-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.crm-dash-v1-grid.is-2-1 {
  grid-template-columns: minmax(0, 2fr) minmax(285px, 1fr);
}

.crm-dash-v1-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-dash-v1-grid.is-last {
  margin-bottom: 0;
}

.crm-dash-v1-card {
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  box-shadow: var(--crm-dash-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow var(--crm-dash-dur) var(--crm-dash-ease), transform var(--crm-dash-dur) var(--crm-dash-ease);
  animation: crm-dash-rise .5s var(--crm-dash-ease) both;
}

.crm-dash-v1-card::before {
  background: linear-gradient(90deg, var(--crm-dash-purple), var(--crm-dash-teal) 55%, var(--crm-dash-info));
  content: '';
  display: block;
  flex: none;
  height: 3px;
  opacity: .9;
}

.crm-dash-v1-card:hover {
  box-shadow: var(--crm-dash-shadow-lg);
  transform: translateY(-2px);
}

.crm-dash-v1-card-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--crm-dash-border-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 62px;
  padding: 15px 18px;
}

.crm-dash-v1-card-head h2 {
  color: var(--crm-dash-text);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 3px;
}

.crm-dash-v1-card-head p {
  color: var(--crm-dash-faint);
  font-size: 10.5px;
  margin: 0;
}

.crm-dash-v1-card-body {
  flex: 1 1 auto;
  padding: 17px 18px;
}

.crm-dash-v1-link {
  background: transparent;
  border: 0;
  color: var(--crm-dash-brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 0;
}

.crm-dash-v1-iconbtn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--crm-dash-border);
  border-radius: 8px;
  color: var(--crm-dash-muted);
  cursor: pointer;
  display: inline-flex;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.crm-dash-v1-badge {
  border-radius: 5px;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
  white-space: nowrap;
}

.crm-dash-v1-badge.tone-brand {
  background: var(--crm-dash-brand-soft);
  color: var(--crm-dash-brand);
}

.crm-dash-v1-badge.tone-ok {
  background: var(--crm-dash-ok-soft);
  color: var(--crm-dash-ok);
}

.crm-dash-v1-badge.tone-warn {
  background: #fff6df;
  color: #a05a00;
}

.crm-dash-v1-badge.tone-danger {
  background: var(--crm-dash-warn-soft);
  color: var(--crm-dash-warn);
}

.crm-dash-v1-badge.tone-muted {
  background: var(--crm-dash-neutral);
  color: var(--crm-dash-muted);
}

.crm-dash-v1-empty {
  align-items: center;
  background: linear-gradient(180deg, var(--crm-dash-surface-2), transparent);
  border: 1.5px dashed var(--crm-dash-border);
  border-radius: 10px;
  color: var(--crm-dash-faint);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  font-size: 11px;
  gap: 10px;
  justify-content: center;
  line-height: 1.7;
  margin: 2px;
  min-height: 126px;
  padding: 22px;
  text-align: center;
}

.crm-dash-v1-empty-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--crm-dash-purple-soft), var(--crm-dash-info-soft));
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--crm-dash-surface-2);
  color: var(--crm-dash-purple);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.crm-dash-v1-empty-cta {
  align-items: center;
  background: linear-gradient(90deg, var(--crm-dash-purple), var(--crm-dash-brand));
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  margin-top: 2px;
  padding: 8px 16px;
  transition: transform var(--crm-dash-dur) var(--crm-dash-ease), box-shadow var(--crm-dash-dur) var(--crm-dash-ease);
}

.crm-dash-v1-empty-cta:hover {
  box-shadow: 0 6px 16px rgba(151, 89, 231, .3);
  transform: translateY(-1px);
}

.crm-dash-v1-spark {
  align-items: flex-end;
  display: flex;
  gap: 2px;
  height: 26px;
  margin-top: 9px;
}

.crm-dash-v1-spark i {
  background: linear-gradient(180deg, var(--crm-dash-purple), var(--crm-dash-purple-soft));
  border-radius: 2px 2px 0 0;
  display: block;
  flex: 1 1 0;
  min-height: 2px;
}

.crm-dash-v1-gauge {
  background: var(--crm-dash-neutral);
  border-radius: 999px;
  display: flex;
  height: 8px;
  margin-top: 11px;
  overflow: hidden;
}

.crm-dash-v1-gauge span {
  display: block;
  height: 100%;
  transition: width var(--crm-dash-dur) var(--crm-dash-ease);
}

.crm-dash-v1-gauge span.tone-warn { background: var(--crm-dash-warn); }
.crm-dash-v1-gauge span.tone-info { background: var(--crm-dash-info); }
.crm-dash-v1-gauge span.tone-teal { background: var(--crm-dash-teal); }

.crm-dash-v1-funnel-conv {
  align-items: center;
  color: var(--crm-dash-purple);
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 4px;
  margin-top: 5px;
}

.crm-dash-v1-funnel-conv svg {
  transform: rotate(-90deg);
}

/* رادار سلامت فروش و مشتریان */
.crm-dash-v1-radar {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 2px;
}

.crm-dash-v1-radar svg {
  height: auto;
  max-width: 300px;
  width: 100%;
}

.crm-dash-v1-radar-ring {
  fill: none;
  stroke: var(--crm-dash-border);
}

.crm-dash-v1-radar-ring.is-outer {
  fill: rgba(151, 89, 231, .035);
}

.crm-dash-v1-radar-tick {
  fill: var(--crm-dash-faint);
  font-size: 7px;
  font-weight: 600;
}

.crm-dash-v1-radar-spoke {
  stroke: var(--crm-dash-border-soft);
}

.crm-dash-v1-radar-shape {
  animation: crm-dash-rise var(--crm-dash-dur-slow, 420ms) var(--crm-dash-ease);
  fill: url(#crmDashRadarFill);
  filter: drop-shadow(0 6px 10px rgba(151, 89, 231, .25));
  stroke: var(--crm-dash-purple);
  stroke-linejoin: round;
  stroke-width: 2;
  transition: d var(--crm-dash-dur) var(--crm-dash-ease);
}

.crm-dash-v1-radar-dot {
  fill: var(--crm-dash-purple);
  stroke: #fff;
  stroke-width: 1.5;
}

.crm-dash-v1-radar-dot.tone-ok { fill: var(--crm-dash-ok); }
.crm-dash-v1-radar-dot.tone-warn { fill: var(--crm-dash-amber); }
.crm-dash-v1-radar-dot.tone-danger { fill: var(--crm-dash-warn); }

.crm-dash-v1-radar-label {
  fill: var(--crm-dash-muted);
  font-size: 8.5px;
  font-weight: 700;
}

.crm-dash-v1-radar-score {
  fill: var(--crm-dash-brand);
  font-size: 24px;
  font-weight: 850;
}

.crm-dash-v1-radar-score-label {
  fill: var(--crm-dash-faint);
  font-size: 8px;
  font-weight: 700;
}

.crm-dash-v1-radar-legend {
  display: flex;
  flex-wrap: wrap;
  font-size: 10.5px;
  gap: 6px 14px;
  justify-content: center;
}

.crm-dash-v1-radar-legend span {
  align-items: center;
  color: var(--crm-dash-muted);
  display: inline-flex;
  gap: 5px;
}

.crm-dash-v1-radar-legend b {
  color: var(--crm-dash-purple);
  font-size: 12px;
}

.crm-dash-v1-radar-legend span.tone-ok b { color: var(--crm-dash-ok); }
.crm-dash-v1-radar-legend span.tone-warn b { color: var(--crm-dash-amber); }
.crm-dash-v1-radar-legend span.tone-danger b { color: var(--crm-dash-warn); }

/* چشم‌انداز فروش: سرعت چرخه + پیش‌بینی */
.crm-dash-v1-outlook {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-dash-v1-velocity {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.crm-dash-v1-velocity svg {
  max-width: 200px;
  width: 100%;
}

.crm-dash-v1-velocity-track {
  fill: none;
  stroke: var(--crm-dash-neutral);
  stroke-linecap: round;
  stroke-width: 10;
}

.crm-dash-v1-velocity-fill {
  fill: none;
  stroke-linecap: round;
  stroke-width: 10;
  transition: stroke-dasharray var(--crm-dash-dur-slow, 420ms) var(--crm-dash-ease);
}

.crm-dash-v1-velocity-fill.tone-ok { stroke: var(--crm-dash-teal); }
.crm-dash-v1-velocity-fill.tone-warn { stroke: var(--crm-dash-amber); }
.crm-dash-v1-velocity-fill.tone-danger { stroke: var(--crm-dash-warn); }

.crm-dash-v1-velocity-needle {
  stroke: var(--crm-dash-brand);
  stroke-linecap: round;
  stroke-width: 2.5;
  transition: transform var(--crm-dash-dur-slow, 420ms) var(--crm-dash-ease);
}

.crm-dash-v1-velocity-pin {
  fill: var(--crm-dash-brand);
}

.crm-dash-v1-velocity-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: -6px;
  text-align: center;
}

.crm-dash-v1-velocity-value b {
  color: var(--crm-dash-text);
  font-size: 18px;
}

.crm-dash-v1-velocity-value span {
  color: var(--crm-dash-faint);
  font-size: 10.5px;
}

.crm-dash-v1-forecast {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-dash-v1-forecast-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 84px 1fr auto;
  font-size: 11px;
}

.crm-dash-v1-forecast-row span {
  color: var(--crm-dash-muted);
}

.crm-dash-v1-forecast-row b {
  color: var(--crm-dash-text);
  font-size: 11.5px;
  white-space: nowrap;
}

.crm-dash-v1-forecast-track {
  background: var(--crm-dash-neutral);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.crm-dash-v1-forecast-track i {
  border-radius: 999px;
  display: block;
  height: 100%;
  transition: width var(--crm-dash-dur-slow, 420ms) var(--crm-dash-ease);
}

.crm-dash-v1-forecast-track i.tone-purple { background: linear-gradient(90deg, var(--crm-dash-purple), var(--crm-dash-purple-soft)); }
.crm-dash-v1-forecast-track i.tone-info { background: linear-gradient(90deg, var(--crm-dash-info), var(--crm-dash-info-soft)); }

/* حلقه ریسک SLA */
.crm-dash-v1-slaring {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.crm-dash-v1-slaring svg {
  height: 30px;
  transform: rotate(-90deg);
  width: 30px;
}

.crm-dash-v1-slaring-track {
  fill: none;
  stroke: var(--crm-dash-neutral);
  stroke-width: 4;
}

.crm-dash-v1-slaring-fill {
  fill: none;
  stroke-linecap: round;
  stroke-width: 4;
  transition: stroke-dasharray var(--crm-dash-dur-slow, 420ms) var(--crm-dash-ease);
}

.crm-dash-v1-slaring.tone-ok .crm-dash-v1-slaring-fill { stroke: var(--crm-dash-teal); }
.crm-dash-v1-slaring.tone-warn .crm-dash-v1-slaring-fill { stroke: var(--crm-dash-amber); }
.crm-dash-v1-slaring.tone-danger .crm-dash-v1-slaring-fill { stroke: var(--crm-dash-warn); }

.crm-dash-v1-slaring span {
  color: var(--crm-dash-muted);
  font-size: 10.5px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .crm-dash-v1-forecast-row { grid-template-columns: 68px 1fr auto; }
}

.crm-dash-v1-chart {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, minmax(22px, 1fr));
  height: 230px;
  overflow-x: auto;
  padding-top: 25px;
}

.crm-dash-v1-chart-col {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 26px;
}

.crm-dash-v1-chart-value {
  color: var(--crm-dash-faint);
  font-size: 8px;
  height: 19px;
  max-width: 70px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-dash-v1-chart-track {
  align-items: flex-end;
  border-bottom: 1px solid var(--crm-dash-border-soft);
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  position: relative;
  width: 100%;
}

.crm-dash-v1-chart-track i {
  background: linear-gradient(180deg, var(--crm-dash-purple), var(--crm-dash-brand));
  border-radius: 4px 4px 0 0;
  display: block;
  min-height: 2px;
  transition: height .4s var(--crm-dash-ease);
  width: min(18px, 55%);
}

.crm-dash-v1-chart-col:hover .crm-dash-v1-chart-track i {
  background: linear-gradient(180deg, var(--crm-dash-teal), var(--crm-dash-purple));
}

.crm-dash-v1-chart-col > span {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
  margin-top: 7px;
}

.crm-dash-v1-stats {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.crm-dash-v1-stats > div {
  background: var(--crm-dash-surface-2);
  border: 1px solid var(--crm-dash-border-soft);
  border-radius: 8px;
  padding: 11px 12px;
}

.crm-dash-v1-stats small,
.crm-dash-v1-stats b {
  display: block;
}

.crm-dash-v1-stats small {
  color: var(--crm-dash-faint);
  font-size: 10px;
  margin-bottom: 4px;
}

.crm-dash-v1-stats b {
  font-size: 12px;
  line-height: 1.55;
}

.crm-dash-v1-funnel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 460px;
  overflow-y: auto;
  padding-inline-end: 2px;
}

.crm-dash-v1-funnel::-webkit-scrollbar { width: 6px; }
.crm-dash-v1-funnel::-webkit-scrollbar-thumb { background: var(--crm-dash-border); border-radius: 4px; }

.crm-dash-v1-funnel-row {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 8px 6px;
  text-align: right;
  transition: background var(--crm-dash-dur) var(--crm-dash-ease);
  width: 100%;
}

.crm-dash-v1-funnel-row:hover {
  background: var(--crm-dash-surface-2);
}

.crm-dash-v1-funnel-index {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  margin-top: 1px;
  width: 20px;
}

.crm-dash-v1-funnel-index.tone-purple { background: var(--crm-dash-purple); }
.crm-dash-v1-funnel-index.tone-info { background: var(--crm-dash-info); }
.crm-dash-v1-funnel-index.tone-teal { background: var(--crm-dash-teal); }
.crm-dash-v1-funnel-index.tone-brand { background: var(--crm-dash-brand); }
.crm-dash-v1-funnel-index.tone-amber { background: var(--crm-dash-amber); }
.crm-dash-v1-funnel-index.tone-won { background: var(--crm-dash-ok); }
.crm-dash-v1-funnel-index.tone-lost { background: #9ba5b1; }

.crm-dash-v1-funnel-body {
  flex: 1 1 auto;
  min-width: 0;
}

.crm-dash-v1-funnel-label {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.crm-dash-v1-funnel-label b {
  font-size: 11.5px;
}

.crm-dash-v1-funnel-label span {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
  white-space: nowrap;
}

.crm-dash-v1-funnel-track {
  background: var(--crm-dash-neutral);
  border-radius: 6px;
  height: 16px;
  overflow: hidden;
}

.crm-dash-v1-funnel-track i {
  border-radius: 6px;
  display: block;
  height: 100%;
  transition: width .5s var(--crm-dash-ease);
}

.crm-dash-v1-funnel-track i.tone-purple { background: linear-gradient(90deg, var(--crm-dash-purple), var(--crm-dash-purple-soft)); }
.crm-dash-v1-funnel-track i.tone-info { background: linear-gradient(90deg, var(--crm-dash-info), var(--crm-dash-info-soft)); }
.crm-dash-v1-funnel-track i.tone-teal { background: linear-gradient(90deg, var(--crm-dash-teal), var(--crm-dash-teal-soft)); }
.crm-dash-v1-funnel-track i.tone-brand { background: linear-gradient(90deg, var(--crm-dash-brand), var(--crm-dash-purple)); }
.crm-dash-v1-funnel-track i.tone-amber { background: linear-gradient(90deg, var(--crm-dash-amber), #fde3ab); }
.crm-dash-v1-funnel-track i.tone-won { background: linear-gradient(90deg, var(--crm-dash-teal), var(--crm-dash-ok)); }
.crm-dash-v1-funnel-track i.tone-lost { background: #9ba5b1; }

.crm-dash-v1-table-wrap {
  overflow: auto;
  width: 100%;
}

.crm-dash-v1-table {
  border-collapse: collapse;
  min-width: 620px;
  text-align: right;
  width: 100%;
}

.crm-dash-v1-table th {
  background: var(--crm-dash-surface-2);
  border-bottom: 1px solid var(--crm-dash-border-soft);
  color: var(--crm-dash-faint);
  font-size: 10px;
  font-weight: 700;
  padding: 10px 11px;
}

.crm-dash-v1-table td {
  border-bottom: 1px solid var(--crm-dash-line);
  color: var(--crm-dash-muted);
  font-size: 10.5px;
  padding: 10px 11px;
}

.crm-dash-v1-table tbody tr {
  cursor: pointer;
  transition: background var(--crm-dash-dur) var(--crm-dash-ease);
}

.crm-dash-v1-table tbody tr:hover {
  background: var(--crm-dash-teal-soft);
}

.crm-dash-v1-table tbody tr:last-child td {
  border-bottom: 0;
}

.crm-dash-v1-party {
  align-items: center;
  display: flex;
  gap: 8px;
}

.crm-dash-v1-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--crm-dash-teal), var(--crm-dash-brand));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.crm-dash-v1-party > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crm-dash-v1-party b {
  color: var(--crm-dash-text);
  font-size: 11px;
}

.crm-dash-v1-party small {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
}

.crm-dash-v1-agenda,
.crm-dash-v1-list,
.crm-dash-v1-rank,
.crm-dash-v1-events {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
}

.crm-dash-v1-agenda-item,
.crm-dash-v1-list-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--crm-dash-line);
  color: var(--crm-dash-text);
  cursor: pointer;
  display: flex;
  gap: 9px;
  min-height: 54px;
  padding: 9px 7px;
  text-align: right;
  width: 100%;
}

.crm-dash-v1-agenda-item:last-child,
.crm-dash-v1-list-item:last-child {
  border-bottom: 0;
}

.crm-dash-v1-agenda-item:hover,
.crm-dash-v1-list-item:hover {
  background: var(--crm-dash-surface-2);
}

.crm-dash-v1-agenda-check {
  align-items: center;
  background: var(--crm-dash-neutral);
  border-radius: 7px;
  color: var(--crm-dash-brand);
  display: inline-flex;
  flex: 0 0 auto;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.crm-dash-v1-agenda-item.is-overdue .crm-dash-v1-agenda-check {
  background: var(--crm-dash-warn-soft);
  color: var(--crm-dash-warn);
}

.crm-dash-v1-agenda-text,
.crm-dash-v1-list-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.crm-dash-v1-agenda-text b,
.crm-dash-v1-list-text b {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-dash-v1-agenda-text small,
.crm-dash-v1-list-text small {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-dash-v1-rail {
  align-self: stretch;
  background: #c3cad2;
  border-radius: 3px;
  flex: 0 0 3px;
}

.crm-dash-v1-rail.tone-danger {
  background: var(--crm-dash-warn);
}

.crm-dash-v1-rail.tone-warn {
  background: var(--crm-dash-amber);
}

.crm-dash-v1-rail.tone-brand {
  background: var(--crm-dash-brand);
}

.crm-dash-v1-cal-title {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 10px;
}

.crm-dash-v1-calendar-panel {
  min-height: 100%;
}

.crm-dash-v1-cal-title button {
  background: transparent;
  border: 0;
  color: var(--crm-dash-brand);
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 800;
}

.crm-dash-v1-cal-range {
  background: var(--crm-dash-brand-soft);
  border-radius: 999px;
  color: var(--crm-dash-brand);
  font-size: 8.5px;
  margin-inline-start: auto;
  padding: 4px 8px;
}

.crm-dash-v1-cal {
  background: #fbfcfe;
  border: 1px solid var(--crm-dash-line);
  border-radius: 9px;
  display: grid;
  gap: 3px 5px;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  padding: 8px 9px 10px;
}

.crm-dash-v1-cal-dow,
.crm-dash-v1-cal-day {
  font-size: 9.5px;
  min-height: 27px;
  padding: 6px 0;
  position: relative;
  text-align: center;
}

.crm-dash-v1-cal-dow {
  color: var(--crm-dash-faint);
}

.crm-dash-v1-cal-day {
  border-radius: 6px;
  color: var(--crm-dash-muted);
  font-weight: 700;
}

.crm-dash-v1-cal-day.is-out {
  color: #c3cad2;
  font-weight: 400;
}

.crm-dash-v1-cal-day.is-today {
  background: var(--crm-dash-brand);
  color: #fff;
}

.crm-dash-v1-cal-day i {
  background: var(--crm-dash-ok);
  border-radius: 50%;
  bottom: 1px;
  height: 3px;
  position: absolute;
  right: calc(50% - 1.5px);
  width: 3px;
}

.crm-dash-v1-cal-events {
  border-top: 1px solid var(--crm-dash-line);
  display: grid;
  gap: 7px;
  margin-top: 11px;
  padding-top: 10px;
}

.crm-dash-v1-cal-event {
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid var(--crm-dash-line);
  border-radius: 8px;
  color: var(--crm-dash-text);
  cursor: pointer;
  display: flex;
  min-height: 48px;
  overflow: hidden;
  padding: 0;
  text-align: right;
}

.crm-dash-v1-cal-event::before {
  background: var(--crm-dash-ok);
  content: '';
  flex: 0 0 3px;
}

.crm-dash-v1-cal-event.tone-brand::before {
  background: var(--crm-dash-brand);
}

.crm-dash-v1-cal-event.tone-danger::before {
  background: var(--crm-dash-warn);
}

.crm-dash-v1-cal-event:hover {
  background: #fff;
  border-color: rgba(34, 57, 126, .26);
}

.crm-dash-v1-cal-time {
  align-items: center;
  border-left: 1px solid var(--crm-dash-line);
  display: flex;
  flex: 0 0 64px;
  flex-direction: column;
  justify-content: center;
  padding: 7px 6px;
}

.crm-dash-v1-cal-time b {
  color: var(--crm-dash-brand);
  font-size: 10.5px;
}

.crm-dash-v1-cal-time small,
.crm-dash-v1-cal-event-text small {
  color: var(--crm-dash-faint);
  font-size: 8.5px;
  margin-top: 2px;
}

.crm-dash-v1-cal-event-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 7px 9px;
}

.crm-dash-v1-cal-event-text b {
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-dash-v1-cal-empty {
  align-items: center;
  background: linear-gradient(135deg, #f8fafc, #f3f6fb);
  border: 1px dashed #ccd5e2;
  border-radius: 8px;
  color: var(--crm-dash-muted);
  display: flex;
  font-size: 9.5px;
  gap: 9px;
  min-height: 58px;
  padding: 8px 10px;
}

.crm-dash-v1-cal-empty-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--crm-dash-line);
  border-radius: 8px;
  color: var(--crm-dash-brand);
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
}

.crm-dash-v1-cal-empty > span:nth-child(2) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.crm-dash-v1-cal-empty b {
  color: var(--crm-dash-text);
  font-size: 9.5px;
}

.crm-dash-v1-cal-empty small {
  color: var(--crm-dash-faint);
  font-size: 8.5px;
  margin-top: 2px;
}

.crm-dash-v1-cal-empty button {
  align-items: center;
  background: var(--crm-dash-brand);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8.5px;
  font-weight: 800;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
}

/* Operational CRM pages rendered inside the current production shell. */
.crm-operational-v1.adatask-v3 {
  --v3-navy: #22397e;
  --v3-navy-soft: #2d4998;
  --v3-navy-deep: #182a5e;
  --v3-purple: #22397e;
  background: transparent;
  color: var(--v3-text);
  direction: rtl;
  min-height: 0;
  padding: 4px 2px 24px;
  width: 100%;
}

.crm-operational-v1.adatask-v3,
.crm-operational-v1.adatask-v3 * {
  box-sizing: border-box;
}

.crm-operational-v1 .v3-page-head {
  align-items: center;
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  box-shadow: var(--v3-shadow-sm);
  margin-bottom: 14px;
  min-height: 76px;
  padding: 14px 16px;
}

.crm-operational-v1 .v3-page-title {
  font-size: 19px;
  line-height: 1.5;
}

.crm-operational-v1 .v3-page-sub {
  font-size: 11.5px;
  margin-top: 3px;
}

.crm-operational-v1 .v3-card {
  border-color: #dfe5ed;
  box-shadow: 0 2px 8px rgba(23, 52, 84, .045);
}

.crm-operational-v1 .v3-tab.is-active,
.crm-operational-v1 .v3-chip.tone-purple {
  background: rgba(34, 57, 126, .10);
}

.crm-operational-v1 .v3-input:focus,
.crm-operational-v1 .v3-select:focus,
.crm-operational-v1 .v3-textarea:focus {
  border-color: #22397e;
  box-shadow: 0 0 0 3px rgba(34, 57, 126, .11);
}

.crm-operational-v1 .v3-kan-col.is-drop {
  background: rgba(34, 57, 126, .05);
  border-color: #22397e;
}

.crm-operational-v1 .v3-card-head {
  min-height: 62px;
  padding: 14px 16px;
}

.crm-operational-v1 .v3-table-wrap {
  border-radius: 10px;
  overflow: auto;
}

.crm-operational-v1 .v3-table {
  min-width: 760px;
}

.crm-operational-v1 .v3-table th {
  background: #f7f9fc;
  position: sticky;
  top: 0;
  z-index: 2;
}

.crm-operational-v1 .v3-table td,
.crm-operational-v1 .v3-table th {
  padding-block: 11px;
}

.crm-operational-v1 .v3-input,
.crm-operational-v1 .v3-select {
  min-height: 42px;
}

.crm-operational-v1 .v3-textarea {
  min-height: 98px;
}

.crm-operational-v1 .v3-overlay {
  z-index: 20020;
}

.crm-operational-v1 .v3-modal {
  max-height: min(86vh, 820px);
  max-width: calc(100vw - 34px);
  overflow: hidden;
  width: min(760px, calc(100vw - 34px));
}

.crm-operational-v1 .v3-modal-body {
  overflow: auto;
}

.crm-operational-v1 .v3-kanban {
  align-items: stretch;
  overflow-x: auto;
  padding: 2px 2px 12px;
}

.crm-operational-v1 .v3-kan-col {
  min-width: 270px;
}

.crm-operational-v1 .v3-state {
  min-height: 180px;
}

.crm-operational-v1 .v3-btn-primary,
.crm-operational-v1 button.v3-btn-primary {
  background: var(--v3-navy) !important;
  border-color: var(--v3-navy) !important;
  color: #fff !important;
}

.crm-operational-v1 .v3-btn-primary:hover,
.crm-operational-v1 button.v3-btn-primary:hover {
  background: var(--v3-navy-deep) !important;
  border-color: var(--v3-navy-deep) !important;
}

.crm-operational-v1 .v3-tab.is-active,
.crm-operational-v1 .v3-chip.tone-purple {
  color: var(--v3-navy) !important;
}

.crm-operational-v1-stack {
  display: grid;
  gap: 14px;
}

.crm-merge-v1-body,
.crm-release-v1-actions,
.crm-campaign-control-v1-body,
.crm-campaign-control-v1-actions,
.crm-campaign-control-v1-kpis {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-merge-v1-body,
.crm-release-v1-actions,
.crm-campaign-control-v1-body {
  padding: 14px 16px 16px;
}

.crm-merge-v1-body .v3-field,
.crm-campaign-control-v1-body .v3-field {
  flex: 1 1 320px;
  margin: 0;
}

.crm-merge-v1-body > button,
.crm-release-v1-actions > button,
.crm-campaign-control-v1-actions > button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 40px;
}

.crm-campaign-control-v1-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.crm-persian-date-v1 {
  min-width: 0;
  position: relative;
}

.crm-persian-date-v1.is-bare {
  margin: 0;
  width: 100%;
}

.crm-persian-date-v1.is-bare > .v3-label {
  display: none;
}

.crm-persian-date-v1-trigger {
  align-items: center;
  background: #fff;
  color: var(--v3-text);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 8px;
  justify-content: flex-start;
  min-height: 42px;
  overflow: hidden;
  text-align: right;
  width: 100%;
}

.crm-persian-date-v1-trigger:hover {
  border-color: #aebce4;
}

.crm-persian-date-v1-trigger.is-open,
.crm-persian-date-v1-trigger:focus-visible {
  border-color: #22397e;
  box-shadow: 0 0 0 3px rgba(34, 57, 126, .11);
  outline: 0;
}

.crm-persian-date-v1-trigger > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-persian-date-v1-trigger .is-placeholder {
  color: #8794a6;
}

.crm-persian-date-v1-icon,
.crm-persian-date-v1-chevron {
  align-items: center;
  color: #22397e;
  display: inline-flex;
  flex: 0 0 auto;
}

.crm-persian-date-v1-chevron {
  transform: rotate(-90deg);
}

.crm-persian-date-v1-panel {
  background: #fff;
  border: 1px solid #dbe2eb;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 38, 70, .18);
  inset-inline-start: 0;
  margin-top: 6px;
  padding: 12px;
  position: absolute;
  top: 100%;
  width: min(372px, calc(100vw - 42px));
  z-index: 20060;
}

.crm-persian-date-v1-head {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  margin-bottom: 10px;
}

.crm-persian-date-v1-head > button {
  align-items: center;
  background: #f5f7fb;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  color: #22397e;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
}

.crm-persian-date-v1-head > button:first-child {
  transform: rotate(180deg);
}

.crm-persian-date-v1-selects {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 92px;
}

.crm-persian-date-v1-selects select,
.crm-persian-date-v1-time select {
  background: #fff;
  border: 1px solid #dbe2eb;
  border-radius: 8px;
  color: #22397e;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  outline: 0;
  padding: 0 7px;
}

.crm-persian-date-v1-selects select:focus,
.crm-persian-date-v1-time select:focus {
  border-color: #22397e;
  box-shadow: 0 0 0 2px rgba(34, 57, 126, .09);
}

.crm-persian-date-v1-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
}

.crm-persian-date-v1-week,
.crm-persian-date-v1-blank,
.crm-persian-date-v1-day {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 0;
}

.crm-persian-date-v1-week {
  color: #8794a6;
  font-size: 10px;
  font-weight: 700;
}

.crm-persian-date-v1-day {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #24364c;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  padding: 0;
}

.crm-persian-date-v1-day:hover {
  background: #eef2fb;
  color: #22397e;
}

.crm-persian-date-v1-day.is-today {
  border-color: #9aabd8;
  color: #22397e;
  font-weight: 900;
}

.crm-persian-date-v1-day.is-selected {
  background: #22397e;
  border-color: #22397e;
  color: #fff;
  font-weight: 900;
}

.crm-persian-date-v1-time {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e5eaf1;
  border-radius: 9px;
  display: flex;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 9px;
}

.crm-persian-date-v1-time > span {
  color: #66758a;
  font-size: 10.5px;
  font-weight: 700;
  margin-inline-end: auto;
}

.crm-persian-date-v1-time select {
  width: 62px;
}

.crm-persian-date-v1-time b {
  color: #22397e;
}

.crm-persian-date-v1-foot {
  align-items: center;
  border-top: 1px solid #edf0f5;
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
}

.crm-persian-date-v1-foot button {
  background: #f5f7fb;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  color: #22397e;
  cursor: pointer;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
  min-height: 31px;
  padding: 0 10px;
}

.crm-persian-date-v1-foot .is-clear {
  color: #b14343;
}

.crm-persian-date-v1-foot .is-done {
  background: #22397e;
  border-color: #22397e;
  color: #fff;
  margin-inline-start: auto;
}

.crm-import-v1-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
}

.crm-import-v1-card {
  overflow: hidden;
}

.crm-import-v1-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.crm-import-v1-drop {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #becada;
  border-radius: 11px;
  color: var(--v3-muted);
  cursor: pointer;
  display: flex;
  gap: 11px;
  min-height: 92px;
  padding: 16px;
  transition: background .16s ease, border-color .16s ease;
}

.crm-import-v1-drop:hover,
.crm-import-v1-drop.has-file {
  background: #eef2fb;
  border-color: var(--v3-navy);
}

.crm-import-v1-drop input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.crm-import-v1-drop-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: 10px;
  color: var(--v3-purple);
  display: inline-flex;
  flex: 0 0 43px;
  height: 43px;
  justify-content: center;
}

.crm-import-v1-drop > span:last-child {
  display: flex;
  flex-direction: column;
}

.crm-import-v1-drop b {
  color: var(--v3-text);
  font-size: 12.5px;
}

.crm-import-v1-drop small {
  font-size: 10.5px;
  margin-top: 4px;
}

.crm-import-v1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-import-v1-actions .v3-btn,
.crm-import-v1-actions .v3-btn-primary {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  text-decoration: none;
}

.crm-import-v1-result {
  align-items: center;
  background: #edf9f4;
  border: 1px solid #ccebdc;
  border-radius: 9px;
  color: #247953;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 12px;
  padding: 10px 12px;
}

.crm-import-v1-result small {
  flex-basis: 100%;
}

.crm-import-v1-export-list {
  display: grid;
  gap: 7px;
  padding: 12px 16px 16px;
}

.crm-import-v1-export-list > button {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--v3-border);
  border-radius: 9px;
  color: var(--v3-text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  text-align: right;
}

.crm-import-v1-export-list > button:hover {
  background: #eef2fb;
  border-color: #aebce4;
}

.crm-import-v1-export-icon {
  align-items: center;
  background: #edf2f9;
  border-radius: 8px;
  color: var(--v3-navy);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.crm-import-v1-export-list > button > span:nth-child(2) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.crm-import-v1-export-list b {
  font-size: 11.5px;
}

.crm-import-v1-export-list small {
  color: var(--v3-muted);
  font-size: 9.5px;
  margin-top: 2px;
}

.crm-dash-v1-rank-row {
  border-bottom: 1px solid var(--crm-dash-line);
  padding: 10px 5px;
}

.crm-dash-v1-rank-row:last-child {
  border-bottom: 0;
}

.crm-dash-v1-rank-main {
  align-items: center;
  display: flex;
  gap: 8px;
}

.crm-dash-v1-rank-pos {
  align-items: center;
  background: var(--crm-dash-neutral);
  border-radius: 6px;
  color: var(--crm-dash-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  height: 21px;
  justify-content: center;
  width: 21px;
}

.crm-dash-v1-rank-pos.is-first {
  background: linear-gradient(135deg, #f7c257, #e8940c);
  box-shadow: 0 2px 8px rgba(232, 148, 12, .35);
  color: #fff;
}

.crm-dash-v1-rank-name {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.crm-dash-v1-rank-name b {
  font-size: 10.5px;
}

.crm-dash-v1-rank-name small {
  color: var(--crm-dash-faint);
  font-size: 9px;
}

.crm-dash-v1-rank-value {
  color: var(--crm-dash-text);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
}

.crm-dash-v1-rank-perf {
  align-items: center;
  display: flex;
  gap: 7px;
  margin: 8px 62px 0 0;
}

.crm-dash-v1-rank-meter {
  background: var(--crm-dash-neutral);
  border-radius: 4px;
  flex: 1 1 auto;
  height: 4px;
  overflow: hidden;
}

.crm-dash-v1-rank-meter i {
  background: linear-gradient(90deg, var(--crm-dash-teal), var(--crm-dash-purple));
  border-radius: 4px;
  display: block;
  height: 100%;
  transition: width .4s var(--crm-dash-ease);
}

.crm-dash-v1-rank-perf b {
  color: var(--crm-dash-brand);
  flex: 0 0 auto;
  font-size: 9px;
}

.crm-targets-v1 {
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  box-shadow: var(--crm-dash-shadow);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow var(--crm-dash-dur) var(--crm-dash-ease);
  animation: crm-dash-rise .5s var(--crm-dash-ease) both;
}

.crm-targets-v1:hover {
  box-shadow: var(--crm-dash-shadow-lg);
}

.crm-targets-v1-summary {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 64px;
  padding: 11px 14px;
}

.crm-targets-v1-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--crm-dash-purple-soft), var(--crm-dash-brand-soft));
  border-radius: 10px;
  color: var(--crm-dash-purple);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.crm-targets-v1-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.crm-targets-v1-copy b {
  color: var(--crm-dash-text);
  font-size: 12px;
}

.crm-targets-v1-copy small,
.crm-targets-v1-name small {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
  margin-top: 3px;
}

.crm-targets-v1-meter {
  background: var(--crm-dash-neutral);
  display: block;
  height: 4px;
  overflow: hidden;
}

.crm-targets-v1-meter i {
  background: linear-gradient(90deg, var(--crm-dash-purple), var(--crm-dash-brand));
  display: block;
  height: 100%;
  transition: width .4s var(--crm-dash-ease);
}

.crm-targets-v1-editor {
  background: var(--crm-dash-surface-2);
  border-top: 1px solid var(--crm-dash-border);
  display: grid;
  gap: 7px;
  padding: 12px 14px 14px;
}

.crm-targets-v1-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--crm-dash-border-soft);
  border-radius: 9px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(150px, 1fr) minmax(180px, 240px) auto;
  padding: 8px 10px;
}

.crm-targets-v1-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crm-targets-v1-name b {
  font-size: 11px;
}

.crm-targets-v1-row label {
  align-items: center;
  display: flex;
  gap: 7px;
}

.crm-targets-v1-row label > span {
  color: var(--crm-dash-muted);
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
}

.crm-targets-v1-row input {
  background: #fff;
  border: 1px solid var(--crm-dash-border);
  border-radius: 8px;
  color: var(--crm-dash-text);
  direction: ltr;
  font: inherit;
  font-size: 11px;
  min-height: 36px;
  padding: 6px 9px;
  text-align: left;
  width: 100%;
}

.crm-targets-v1-row input:focus {
  border-color: var(--crm-dash-brand);
  box-shadow: 0 0 0 3px rgba(34,57,126,.1);
  outline: 0;
}

.crm-dash-v1-event {
  align-items: flex-start;
  border-bottom: 1px solid var(--crm-dash-line);
  display: flex;
  gap: 9px;
  min-height: 51px;
  padding: 10px 6px;
}

.crm-dash-v1-event:last-child {
  border-bottom: 0;
}

.crm-dash-v1-event > i {
  background: var(--crm-dash-ok);
  border-radius: 50%;
  flex: 0 0 7px;
  height: 7px;
  margin-top: 5px;
}

.crm-dash-v1-event > i.is-alert {
  background: var(--crm-dash-warn);
}

.crm-dash-v1-event > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crm-dash-v1-event b {
  font-size: 10.5px;
  line-height: 1.5;
}

.crm-dash-v1-event small {
  color: var(--crm-dash-faint);
  font-size: 9.5px;
  margin-top: 2px;
}

@media (max-width: 1320px) {
  .crm-dash-v1-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-dash-v1-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-dash-v1-grid.is-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-dash-v1-grid.is-3 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .crm-dash-v1-grid.is-2-1,
  .crm-dash-v1-grid.is-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-import-v1-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-dash-v1-grid.is-3 > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .crm-dash-v1-pagehead {
    align-items: stretch;
  }

  .crm-dash-v1-tools {
    width: 100%;
  }

  .crm-dash-v1-segment {
    order: -1;
    width: 100%;
  }

  .crm-dash-v1-segment button {
    flex: 1 1 0;
  }

  .crm-dash-v1-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .crm-targets-v1-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .crm-targets-v1-copy {
    min-width: calc(100% - 54px);
  }

  .crm-targets-v1-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .crm-targets-v1-row label,
  .crm-targets-v1-row > button {
    grid-column: 1 / -1;
  }

  .crm-merge-v1-body,
  .crm-release-v1-actions,
  .crm-campaign-control-v1-body {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-merge-v1-body > *,
  .crm-release-v1-actions > *,
  .crm-campaign-control-v1-body > * {
    flex: 1 1 auto;
    width: 100%;
  }

  .crm-operational-v1 .v3-page-head {
    align-items: stretch;
    min-height: 0;
    padding: 12px;
  }

  .crm-operational-v1 .v3-page-title {
    font-size: 17px;
  }

  .crm-operational-v1 .v3-table {
    min-width: 640px;
  }

  .crm-import-v1-actions > * {
    flex: 1 1 auto;
  }

  .crm-dash-v1-cal-empty {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .crm-dash-v1-cal-empty button {
    margin-inline-start: 41px;
  }

  .crm-dash-v1-quick-grid,
  .crm-dash-v1-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-dash-v1-kpi {
    min-height: 164px;
    padding: 14px;
  }

  .crm-dash-v1-kpi-value {
    font-size: 18px;
  }

  .crm-dash-v1-chart {
    gap: 6px;
    grid-template-columns: repeat(12, minmax(28px, 1fr));
  }

  .crm-dash-v1-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table {
    min-width: 0;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table thead {
    display: none;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table,
  .crm-dash-v1-card.is-flush .crm-dash-v1-table tbody,
  .crm-dash-v1-card.is-flush .crm-dash-v1-table tr,
  .crm-dash-v1-card.is-flush .crm-dash-v1-table td {
    display: block;
    width: 100%;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table tr {
    border-bottom: 1px solid var(--crm-dash-border);
    padding: 9px 12px;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table tr:last-child {
    border-bottom: 0;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table td {
    align-items: center;
    border: 0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 5px 0;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table td::before {
    color: var(--crm-dash-faint);
    content: attr(data-label);
    font-size: 9.5px;
    font-weight: 700;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table td:first-child {
    display: block;
    padding-bottom: 8px;
  }

  .crm-dash-v1-card.is-flush .crm-dash-v1-table td:first-child::before {
    display: none;
  }
}

@media (max-width: 420px) {
  .crm-dash-v1-quick-grid,
  .crm-dash-v1-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-dash-v1-quick {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crm-dash-v1 * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ADATASK_CRM_CUSTOMER_MODAL_V1 */
.crm-customer-ref {
  appearance: none;
  border: 0;
  background: transparent;
  color: #173454;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  padding: 0;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(25, 55, 115, .28);
  text-underline-offset: 3px;
}
.crm-customer-ref:hover,
.crm-customer-ref:focus-visible {
  color: #0f766e;
  text-decoration-color: currentColor;
}
.crm-customer-ref:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(78, 153, 153, .24);
  outline-offset: 2px;
}
.crm-customer-ref.is-compact {
  color: #526784;
  font-size: 11.5px;
  font-weight: 650;
}
.crm-customer-modal-overlay {
  align-items: center;
  backdrop-filter: blur(3px);
  background: rgba(13, 28, 52, .58);
  direction: rtl;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 25000;
}
.crm-customer-modal-panel {
  background: #f7f9fc;
  border: 1px solid rgba(216, 224, 236, .95);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(10, 28, 55, .3);
  display: flex;
  flex-direction: column;
  max-height: min(880px, calc(100vh - 44px));
  max-width: 1040px;
  overflow: hidden;
  width: 100%;
}
.crm-customer-modal-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 22px;
}
.crm-customer-modal-heading {
  min-width: 0;
}
.crm-customer-modal-heading h2 {
  color: #173454;
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
}
.crm-customer-modal-heading p {
  color: #6b7c93;
  font-size: 12px;
  margin: 3px 0 0;
}
.crm-customer-modal-close {
  align-items: center;
  appearance: none;
  background: #f5f7fb;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  color: #173454;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 27px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}
.crm-customer-modal-close:hover {
  background: #eef2f8;
}
.crm-customer-modal-tabs {
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 18px;
}
.crm-customer-modal-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #60718a;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 13px 12px 11px;
}
.crm-customer-modal-tab:hover {
  color: #173454;
}
.crm-customer-modal-tab.is-active {
  border-bottom-color: var(--crm-dash-purple, #9759E7);
  color: #173454;
}
.crm-customer-modal-content {
  min-height: 310px;
  overflow: auto;
  padding: 18px;
}
.crm-customer-modal-loading,
.crm-customer-modal-empty {
  align-items: center;
  color: #718198;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 260px;
  text-align: center;
}
.crm-customer-modal-empty span {
  color: #a3b0c2;
  font-size: 32px;
}
.crm-customer-modal-empty p {
  margin: 0 0 8px;
}
.crm-customer-modal-spinner {
  animation: crm-customer-spin .8s linear infinite;
  border: 3px solid #dde5f0;
  border-radius: 50%;
  border-top-color: var(--crm-dash-purple, #9759E7);
  height: 34px;
  width: 34px;
}
@keyframes crm-customer-spin {
  to { transform: rotate(360deg); }
}
/* ADATASK_CRM_PHASE1_5_SKELETON_V1: جایگزین اسپینر تمام‌صفحه با Skeleton، هم‌زبان با v3-skel */
.crm-customer-modal-skel-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
  width: 100%;
}
.crm-customer-modal-skel {
  background: linear-gradient(90deg, #EEF1F6 25%, #F7F9FC 50%, #EEF1F6 75%);
  background-size: 200% 100%;
  animation: crm-customer-shimmer 1.4s cubic-bezier(0,0,.2,1) infinite;
  border-radius: 10px;
  height: 46px;
}
.crm-customer-modal-skel:nth-child(2) { width: 88%; }
.crm-customer-modal-skel:nth-child(3) { width: 72%; }
@keyframes crm-customer-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .crm-customer-modal-skel { animation: none; background: #EEF1F6; }
}
.crm-customer-modal-section {
  display: grid;
  gap: 16px;
}
.crm-customer-modal-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.crm-customer-modal-metric {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  min-height: 76px;
  padding: 10px;
}
.crm-customer-modal-metric b {
  color: #173454;
  font-size: 20px;
}
.crm-customer-modal-metric span {
  color: #718198;
  font-size: 11.5px;
}
.crm-customer-modal-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.crm-customer-modal-field {
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 11px;
  min-width: 0;
  padding: 11px 12px;
}
.crm-customer-modal-field > span {
  color: #718198;
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}
.crm-customer-modal-field > b,
.crm-customer-modal-field > a {
  color: #173562;
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.crm-customer-modal-field > a:hover {
  color: #0f766e;
  text-decoration: underline;
}
.crm-customer-modal-list {
  display: grid;
  gap: 9px;
}
.crm-customer-modal-row {
  background: #fff;
  border: 1px solid #e0e7f0;
  border-right: 4px solid #9aacbf;
  border-radius: 12px;
  padding: 12px 14px;
}
.crm-customer-modal-row.tone-ok {
  border-right-color: #178b77;
}
.crm-customer-modal-row.tone-error {
  border-right-color: #d24c4c;
}
.crm-customer-modal-row-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.crm-customer-modal-row-head b {
  color: #173562;
  font-size: 13px;
}
.crm-customer-modal-row-head time {
  color: #74859b;
  flex: 0 0 auto;
  font-size: 11px;
}
.crm-customer-modal-row p {
  color: #52647c;
  font-size: 12px;
  line-height: 1.9;
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.crm-customer-modal-actions {
  display: grid;
  gap: 16px;
}
.crm-customer-modal-action-form {
  background: linear-gradient(180deg, #f8fbfd 0%, #f3f7fa 100%);
  border: 1px solid #d7e3ee;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 14px;
}
.crm-customer-modal-action-form.is-minimal {
  box-shadow: 0 8px 24px rgba(36, 70, 96, 0.05);
}
.crm-customer-modal-mode-bar {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
.crm-customer-modal-mode {
  background: #fff;
  border: 1px solid #c9d7e6;
  border-radius: 12px;
  color: #4d6178;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 12px;
}
.crm-customer-modal-mode.is-active {
  background: #2f7f8f;
  border-color: #2f7f8f;
  color: #fff;
}
.crm-customer-modal-action-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.crm-customer-modal-action-field.is-wide {
  grid-column: 1 / -1;
}
.crm-customer-modal-action-field > span,
.crm-customer-modal-due-head > span {
  color: #5b6f86;
  font-size: 12px;
  font-weight: 700;
}
.crm-customer-modal-action-input,
.crm-customer-modal-action-form select,
.crm-customer-modal-action-form textarea,
.crm-customer-modal-action-form input[type="text"] {
  background: #fff;
  border: 1px solid #c9d7e6;
  border-radius: 12px;
  color: #243447;
  font: inherit;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}
.crm-customer-modal-action-form textarea {
  min-height: 72px;
  resize: vertical;
}
.crm-customer-modal-due-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.crm-customer-modal-persian-host {
  min-width: 0;
}
.crm-customer-modal-persian-host .crm-persian-date-v1 {
  margin: 0;
}
.crm-customer-modal-persian-host .v3-label {
  display: none;
}
.crm-customer-modal-due-now,
.crm-customer-modal-file-btn,
.crm-customer-modal-submit {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.crm-customer-modal-due-now {
  background: #e7f3f6;
  color: #246978;
  min-height: 34px;
  padding: 0 12px;
}
.crm-customer-modal-due-now:hover { background: #d8ecf1; }
.crm-customer-modal-hint {
  color: #6a7f95;
  font-size: 11.5px;
  line-height: 1.7;
  margin: 0;
}
.crm-customer-modal-handoff {
  background: #fff;
  border: 1px solid #d5e4ee;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
}
.crm-customer-modal-handoff h3 {
  color: #173562;
  font-size: 14px;
  margin: 0;
}
.crm-sales-suggested-product {
  align-items: center;
  background: #f4fbfa;
  border: 1px solid #c9e8e3;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
}
.crm-sales-suggested-product span {
  color: #0f5f58;
  font-size: 12.5px;
  font-weight: 600;
}
.crm-customer-modal-portal {
  background: #f4fbfa;
  border: 1px solid #c9e8e3;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
}
.crm-customer-modal-portal h4 {
  color: #0f5f58;
  font-size: 13px;
  margin: 0;
}
.crm-customer-modal-portal-url {
  background: #fff;
  border: 1px solid #d5e4ee;
  border-radius: 10px;
  overflow: auto;
  padding: 8px 10px;
}
.crm-customer-modal-portal-url code {
  color: #173562;
  direction: ltr;
  display: block;
  font-size: 11.5px;
  word-break: break-all;
}
.crm-customer-modal-journey {
  display: grid;
  gap: 8px;
}
.crm-customer-modal-journey h4 {
  color: #173562;
  font-size: 13px;
  margin: 4px 0 0;
}
.crm-customer-modal-journey-row {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}
.crm-customer-modal-journey-row span {
  color: #33485f;
  font-size: 12.5px;
  font-weight: 600;
}
.crm-customer-modal-reminder {
  background: #fff;
  border: 1px dashed #c5d7e4;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.crm-customer-modal-check {
  align-items: flex-start;
  color: #33485f;
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.crm-customer-modal-check input {
  margin-top: 3px;
}
.crm-customer-modal-file-wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.crm-customer-modal-file-wrap input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.crm-customer-modal-file-btn {
  background: #edf4f8;
  color: #2f6072;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
}
.crm-customer-modal-file-name {
  color: #6a7f95;
  font-size: 12px;
}
.crm-customer-modal-action-error {
  background: #fff1f0;
  border: 1px solid #f5c2c0;
  border-radius: 12px;
  color: #b42318;
  font-size: 12.5px;
  padding: 8px 10px;
}
.crm-customer-modal-action-bar {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}
.crm-customer-modal-submit {
  background: linear-gradient(180deg, #3a93a3 0%, #2f7f8f 100%);
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  box-shadow: 0 8px 18px rgba(47, 127, 143, 0.22);
}
.crm-customer-modal-submit:hover { filter: brightness(1.03); }
.crm-customer-modal-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.crm-customer-modal-action-section {
  display: grid;
  gap: 8px;
}
.crm-customer-modal-action-section-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}
.crm-customer-modal-action-section-title {
  color: #2d4258;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}
.crm-customer-modal-action-section-count {
  background: #eef3f8;
  border-radius: 999px;
  color: #5b6f86;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  padding: 1px 7px;
  text-align: center;
}
.crm-customer-modal-row {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.crm-customer-modal-row:hover {
  box-shadow: 0 6px 18px rgba(23, 53, 98, 0.08);
  transform: translateY(-1px);
}
.crm-customer-modal-row-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.crm-customer-modal-row-dot {
  background: #9aacbf;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}
.crm-customer-modal-row[data-kind="call"] .crm-customer-modal-row-dot { background: #2f7f8f; }
.crm-customer-modal-row[data-kind="meeting"] .crm-customer-modal-row-dot { background: #7c5cd6; }
.crm-customer-modal-row[data-kind="email"] .crm-customer-modal-row-dot { background: #c98a2c; }
.crm-customer-modal-row[data-kind="followup"] .crm-customer-modal-row-dot { background: #d29a1f; }
.crm-customer-modal-row[data-kind="note"] .crm-customer-modal-row-dot { background: #74859b; }
.crm-customer-modal-row[data-kind="task"] .crm-customer-modal-row-dot { background: #178b77; }
.crm-customer-modal-row[data-kind="reminder"] .crm-customer-modal-row-dot { background: #d24c8f; }
.crm-customer-modal-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.crm-customer-modal-attach {
  background: #eef6f8;
  border: 1px solid #bfd5dd;
  border-radius: 999px;
  color: #2f6f7c;
  font-size: 11.5px;
  padding: 4px 10px;
  text-decoration: none;
}
.crm-customer-modal-attach:hover { background: #e1eef2; }
.crm-customer-modal-row.tone-warn {
  border-color: #f0d9a8;
  background: #fffaf0;
}
.crm-customer-modal-actions-list {
  display: grid;
  gap: 14px;
}
.crm-customer-modal-actions-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.crm-customer-modal-actions-toolbar-title {
  color: #2d4258;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}
.crm-customer-modal-print-btn {
  background: #fff;
  border: 1px solid #b7c9d8;
  border-radius: 12px;
  color: #2f6072;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}
.crm-customer-modal-print-btn:hover {
  background: #eef5f8;
}
.crm-customer-modal-persian-host .crm-persian-date-v1-panel {
  left: 0;
  max-width: min(360px, calc(100vw - 48px));
  right: auto;
  width: 100%;
  z-index: 5;
}
@media (max-width: 900px) {
  .crm-customer-modal-overlay { padding: 12px; }
  .crm-customer-modal-panel {
    max-height: calc(100vh - 24px);
    max-width: 100%;
  }
  .crm-customer-modal-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-customer-modal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-customer-modal-action-form { padding: 12px; }
  .crm-customer-modal-submit,
  .crm-customer-modal-print-btn,
  .crm-customer-modal-mode {
    width: 100%;
  }
  .crm-customer-modal-action-bar { width: 100%; }
  .crm-customer-modal-actions-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .crm-customer-modal-overlay {
    align-items: stretch;
    padding: 0;
  }
  .crm-customer-modal-panel {
    border-radius: 0;
    max-height: 100vh;
    min-height: 100vh;
  }
  .crm-customer-modal-header {
    gap: 10px;
    padding: 12px 14px;
  }
  .crm-customer-modal-heading h2 { font-size: 16px; }
  .crm-customer-modal-heading p {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .crm-customer-modal-tabs {
    gap: 2px;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
  }
  .crm-customer-modal-tab {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 10px 10px 8px;
    white-space: nowrap;
  }
  .crm-customer-modal-content { padding: 12px; }
  .crm-customer-modal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-customer-modal-fields { grid-template-columns: 1fr; }
  .crm-customer-modal-row {
    padding: 11px 12px;
  }
  .crm-customer-modal-row-head {
    display: grid;
    gap: 5px;
  }
  .crm-customer-modal-row-head time {
    font-size: 11px;
  }
  .crm-customer-modal-mode-bar { grid-template-columns: 1fr; }
  .crm-customer-modal-due-head {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-customer-modal-due-now { width: 100%; }
  .crm-customer-modal-file-wrap {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-customer-modal-file-btn {
    justify-content: center;
    width: 100%;
  }
  .crm-customer-modal-check {
    font-size: 12.5px;
  }
  .crm-customer-modal-persian-host .crm-persian-date-v1-panel {
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 380px) {
  .crm-customer-modal-metrics { grid-template-columns: 1fr 1fr; }
  .crm-customer-modal-metric { padding: 8px; }
  .crm-customer-modal-submit { min-height: 46px; }
}
@media print {
  .crm-customer-modal-overlay {
    background: #fff !important;
    inset: 0;
    padding: 0 !important;
    position: static !important;
  }
  .crm-customer-modal-panel {
    border: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
  }
  .crm-customer-modal-close,
  .crm-customer-modal-tabs,
  .crm-customer-modal-action-form,
  .crm-customer-modal-print-btn,
  .crm-customer-modal-attachments {
    display: none !important;
  }
  .crm-customer-modal-content { padding: 0 !important; }
  .crm-customer-modal-row {
    break-inside: avoid;
    box-shadow: none;
  }
}
/* /ADATASK_CRM_CUSTOMER_MODAL_V1 */

/* ADATASK_CRM_PHASE1_WORKSPACE_V1 — DashboardV3490 ("میز کار فروش") از قبل نوشته شده بود
   ولی هیچ‌وقت واقعاً رندر نمی‌شد، برای همین هیچ CSS ای هم برایش نوشته نشده بود.
   این بخش همان کلاس‌های اختصاصی خودش را با همان توکن‌های crm-dash-v1 استایل می‌دهد. */
.crm-ops-v3490-hero {
  align-items: flex-end;
  background: linear-gradient(115deg, var(--crm-dash-brand-soft) 0%, var(--crm-dash-info-soft) 60%, transparent 100%);
  border-radius: var(--crm-dash-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px 24px;
}
.crm-ops-v3490-title small {
  color: var(--crm-dash-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.crm-ops-v3490-title h1 {
  color: var(--crm-dash-brand);
  font-size: 22px;
  font-weight: 900;
  margin: 6px 0 4px;
}
.crm-ops-v3490-title p {
  color: var(--crm-dash-muted);
  font-size: 13px;
  margin: 0;
}
.crm-ops-v3490-badge {
  align-items: center;
  background: var(--crm-dash-purple-soft);
  border-radius: 999px;
  color: var(--crm-dash-purple);
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 12px;
  width: fit-content;
}

.crm-ops-v3490-attention {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.crm-ops-v3490-alert {
  align-items: center;
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 14px;
  text-align: right;
  transition: transform var(--crm-dash-dur) var(--crm-dash-ease), box-shadow var(--crm-dash-dur) var(--crm-dash-ease), border-color var(--crm-dash-dur) var(--crm-dash-ease);
}
.crm-ops-v3490-alert:hover {
  border-color: var(--crm-dash-brand-soft);
  box-shadow: var(--crm-dash-shadow);
  transform: translateY(-1px);
}
.crm-ops-v3490-alert > span:first-child {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.crm-ops-v3490-alert b { color: var(--crm-dash-text); font-size: 20px; font-weight: 900; }
.crm-ops-v3490-alert small { color: var(--crm-dash-muted); font-size: 11.5px; font-weight: 700; }
.crm-ops-v3490-alert em {
  color: var(--crm-dash-faint);
  flex: 1;
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-ops-v3490-alert i { color: var(--crm-dash-faint); font-style: normal; }
.crm-ops-v3490-alert.tone-danger b { color: var(--crm-dash-warn); }
.crm-ops-v3490-alert.tone-warn b { color: var(--crm-dash-amber); }
.crm-ops-v3490-alert.tone-ok b { color: var(--crm-dash-ok); }
.crm-ops-v3490-alert.tone-info b { color: var(--crm-dash-info); }

.crm-ops-v3490-actions {
  background: var(--crm-dash-surface);
  border: 1px solid var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  box-shadow: var(--crm-dash-shadow);
  margin-bottom: 16px;
  padding: 16px;
}
.crm-ops-v3490-actions > header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.crm-ops-v3490-actions > header h2 { color: var(--crm-dash-brand); font-size: 15px; font-weight: 900; margin: 0; }
.crm-ops-v3490-actions > header p { color: var(--crm-dash-muted); font-size: 12px; margin: 2px 0 0; }
.crm-ops-v3490-actions > header button {
  background: var(--crm-dash-neutral);
  border: 1px solid var(--crm-dash-border);
  border-radius: 999px;
  color: var(--crm-dash-brand);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
}

.crm-ops-v3490-core { margin-bottom: 16px; }

.crm-ops-v3490-more {
  align-items: center;
  background: var(--crm-dash-surface);
  border: 1px dashed var(--crm-dash-border);
  border-radius: var(--crm-dash-radius);
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
  width: 100%;
}
.crm-ops-v3490-more span { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.crm-ops-v3490-more b { color: var(--crm-dash-brand); font-size: 13px; font-weight: 900; }
.crm-ops-v3490-more small { color: var(--crm-dash-muted); font-size: 11.5px; }
.crm-ops-v3490-more i { color: var(--crm-dash-purple); font-size: 18px; font-style: normal; }
.crm-ops-v3490-more[aria-expanded="true"] { border-color: var(--crm-dash-purple); border-style: solid; }

.crm-ops-v3490-details > .crm-dash-v1-grid { margin-top: 16px; }

@container crm-dashboard (max-width: 900px) {
  .crm-ops-v3490-attention { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container crm-dashboard (max-width: 640px) {
  .crm-ops-v3490-hero { padding: 16px; }
  .crm-ops-v3490-title h1 { font-size: 18px; }
}
@container crm-dashboard (max-width: 480px) {
  .crm-ops-v3490-attention { grid-template-columns: minmax(0, 1fr); }
}
.crm-today-v1-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.crm-today-v1-stats .v3-btn,
.crm-today-v1-stats .v3-btn-primary { margin-inline-start: auto; }
.crm-today-v1-stats .v3-btn-primary ~ .v3-btn,
.crm-today-v1-stats .v3-btn ~ .v3-btn-primary { margin-inline-start: 0; }

.crm-today-v1-stack {
  display: grid;
  gap: 14px;
}
.crm-today-v1-list {
  display: grid;
  gap: 8px;
}
.crm-today-v1-item {
  align-items: center;
  background: var(--crm-dash-surface-2, #f8fafb);
  border: 1px solid var(--crm-dash-border, #e5e9ee);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}
.crm-today-v1-item.is-overdue {
  background: var(--crm-dash-warn-soft, #fff4ed);
  border-color: #f3c8a8;
}
.crm-today-v1-item-icon {
  align-items: center;
  background: var(--crm-dash-brand-soft, #eef2fb);
  border-radius: 999px;
  color: var(--crm-dash-brand, #173454);
  display: flex;
  flex-shrink: 0;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.crm-today-v1-item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.crm-today-v1-item-body b {
  color: var(--crm-dash-text, #10151c);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-today-v1-item-body small { color: var(--crm-dash-muted, #5b6673); font-size: 11.5px; }
.crm-today-v1-item-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}
@media (max-width: 640px) {
  .crm-today-v1-item { align-items: flex-start; flex-wrap: wrap; }
  .crm-today-v1-item-actions { flex-wrap: wrap; margin-inline-start: 40px; }
}
/* /ADATASK_CRM_PHASE1_WORKSPACE_V1 */

/* ADATASK_CRM_PHASE3_ACTIVITY_QUICK_MODAL_V1 */
.crm-aq-overlay{position:fixed;inset:0;z-index:9000;background:rgba(11,31,58,.46);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:16px}
.crm-aq-modal{width:100%;max-width:520px;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(11,31,58,.3);max-height:90vh;overflow:auto;font-family:inherit}
.crm-aq-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #EEF2F7}
.crm-aq-head b{font-size:15.5px;color:#0B1F3A}
.crm-aq-close{border:none;background:#F1F4F9;width:30px;height:30px;border-radius:9px;font-size:17px;cursor:pointer;color:#1C2A3A;line-height:1}
.crm-aq-body{padding:16px 20px;display:flex;flex-direction:column;gap:12px}
.crm-aq-row label{display:block;font-size:12.5px;font-weight:800;color:#0B1F3A;margin-bottom:5px}
.crm-aq-row label i{color:#C2372C;font-style:normal}
.crm-aq-row input,.crm-aq-row select,.crm-aq-row textarea{width:100%;box-sizing:border-box;font-family:inherit;font-size:14px;color:#1C2A3A;min-height:40px;border:1px solid #D8E0EB;border-radius:10px;padding:8px 12px;background:#fff}
.crm-aq-row textarea{min-height:74px;resize:vertical}
.crm-aq-row input:focus,.crm-aq-row select:focus,.crm-aq-row textarea:focus{outline:none;border-color:#10A8A0;box-shadow:0 0 0 3px rgba(16,168,160,.28)}
.crm-aq-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.crm-aq-error{background:#FBEDEB;color:#C2372C;border:1px solid #F1C8C3;border-radius:10px;padding:9px 12px;font-size:12.5px;font-weight:700}
.crm-aq-foot{display:flex;gap:8px;padding:14px 20px;border-top:1px solid #EEF2F7}
.crm-aq-save{border:1px solid #10A8A0;background:#10A8A0;color:#fff;border-radius:10px;min-height:38px;padding:0 16px;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}
.crm-aq-save:hover{background:#0B8A84}
.crm-aq-save:disabled{opacity:.6;cursor:not-allowed}
.crm-aq-cancel{border:1px solid #D8E0EB;background:#fff;color:#0B1F3A;border-radius:10px;min-height:38px;padding:0 16px;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}
@media (max-width:480px){.crm-aq-two{grid-template-columns:1fr}}
/* /ADATASK_CRM_PHASE3_ACTIVITY_QUICK_MODAL_V1 */

/* ADATASK_CRM_FORMAL_MINIBTN_V1 — دکمه‌های مینیمال نوار سند رسمی و مودال صدور (خواستهٔ کارفرما: دکمه‌های بزرگ نباشد) */
.crm-formal-minitools{display:flex;align-items:center;gap:6px;margin:0 0 10px;justify-content:flex-start}
.crm-formal-minibtn{font-family:inherit;border:1px solid #c8d6de;background:#fff;color:#28536b;border-radius:8px;padding:3px 10px;font-size:11px;font-weight:700;line-height:1.7;cursor:pointer}
.crm-formal-minibtn:hover{background:#f2f7fa}
.crm-formal-minibtn.is-primary{background:#14787e;border-color:#14787e;color:#fff}
.crm-formal-minibtn.is-primary:hover{background:#0f6166}
.crm-formal-minibtn:disabled{opacity:.55;cursor:default}

/* ADATASK_CRM_MODULE_CHECKS_V1 — انتخاب ماژول‌های محصول ماژولار داخل مودال صدور (فاز ۵) */
.crm-sales-item-modules{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:7px 10px;background:#f7fafc;border:1px dashed #d6e1ea;border-radius:10px;font-size:11px;color:#42526b}
.crm-sales-module-check{display:flex;align-items:center;gap:5px;cursor:pointer}
.crm-sales-module-check input{accent-color:#14787e}

/* ADATASK_NET_QUALITY_V1 - نشانگر کیفیت اینترنت در بالای داشبورد (مینیمال، هم‌خانواده با palette داشبورد) */
.crm-netpill-v1{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:600;line-height:1;background:#f0f2f5;color:#5b6673;border:1px solid #e5e9ee;white-space:nowrap;cursor:default;user-select:none}
.crm-netpill-v1-dot{width:8px;height:8px;border-radius:50%;background:#8b95a1;box-shadow:0 0 0 3px rgba(139,149,161,.16);flex:0 0 auto}
.crm-netpill-v1.tone-ok{background:#e7f7f7;color:#0f8c8c;border-color:#bfe3e3}
.crm-netpill-v1.tone-ok .crm-netpill-v1-dot{background:#0f8c8c;box-shadow:0 0 0 3px rgba(15,140,140,.14)}
.crm-netpill-v1.tone-warn{background:#fff4ed;color:#c2410c;border-color:#f5d5c3}
.crm-netpill-v1.tone-warn .crm-netpill-v1-dot{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.18)}
.crm-netpill-v1.tone-danger{background:#fdeeee;color:#b91c1c;border-color:#f6caca}
.crm-netpill-v1.tone-danger .crm-netpill-v1-dot{background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.16);animation:crm-netpill-pulse-v1 1.2s ease-in-out infinite}
@keyframes crm-netpill-pulse-v1{0%,100%{box-shadow:0 0 0 3px rgba(220,38,38,.16)}50%{box-shadow:0 0 0 6px rgba(220,38,38,.07)}}
@media (max-width:640px){.crm-netpill-v1{padding:6px 10px;font-size:11px;order:9}}

/* ADATASK_OFFLINE_MODE_V1 - کلید آنلاین/آفلاین + گیت اشتراک/حجم + نوار پیشرفت انتقال */
button.crm-netpill-v1{appearance:none;-webkit-appearance:none;font-family:inherit;cursor:pointer;transition:transform 200ms cubic-bezier(.16, 1, .3, 1),box-shadow 200ms cubic-bezier(.16, 1, .3, 1)}
button.crm-netpill-v1:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(23,52,84,.10)}
.crm-netpill-v1.is-offline{box-shadow:inset 0 0 0 1px rgba(245,158,11,.25)}
.crm-netpill-v1.is-syncing .crm-netpill-v1-dot{animation:crm-offsync-dot-v1 1s ease-in-out infinite}
@keyframes crm-offsync-dot-v1{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.75)}}
.crm-offgate-v1{max-width:260px;overflow:hidden;text-overflow:ellipsis}
.crm-offsync-v1{box-sizing:border-box;position:fixed;top:14px;left:50%;right:auto;z-index:2147483000;display:flex;flex-direction:column;gap:8px;margin:0;width:min(640px,calc(100vw - 32px));padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#102B49 0%,#124F67 100%);border:1px solid rgba(147,197,253,.34);color:#fff;font-size:12.5px;font-weight:650;box-shadow:0 20px 55px rgba(2,12,27,.38),inset 0 1px 0 rgba(255,255,255,.1);opacity:0;transform:translate(-50%,-24px) scale(.98);pointer-events:none;transition:opacity .25s ease,transform .25s ease;direction:rtl;backdrop-filter:blur(14px)}
.crm-offsync-v1.is-visible{opacity:1;transform:translate(-50%,0) scale(1);pointer-events:auto}
.crm-offsync-v1-head{display:flex;align-items:center;gap:8px}
.crm-offsync-v1-head{justify-content:space-between}.crm-offsync-v1-head b{font-weight:900;font-size:14px;letter-spacing:-.2px}
.crm-offsync-v1-spin{display:block;width:13px;height:13px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:crm-offsync-rotate-v2 .8s linear infinite;flex:0 0 auto}
.crm-offsync-v1.is-done .crm-offsync-v1-spin,.crm-offsync-v1.is-paused .crm-offsync-v1-spin{animation:none;border-color:transparent;visibility:hidden}
.crm-offsync-v1 small{display:block;font-size:11px;font-weight:500;opacity:.85;line-height:1.7}
.crm-offsync-v1 .crm-offsync-v1-bar{display:block;height:8px;border-radius:99px;background:#5FA3D6;width:18%;flex:0 0 auto;position:relative;overflow:hidden;transition:width .35s cubic-bezier(.16, 1, .3, 1),background .2s ease}
.crm-offsync-v1.is-active .crm-offsync-v1-bar{background:#5FA3D6}
.crm-offsync-v1.is-active .crm-offsync-v1-bar::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.45),rgba(255,255,255,0));transform:translateX(-100%);animation:crm-offsync-shimmer-v2 1.4s ease-in-out infinite}
@keyframes crm-offsync-shimmer-v2{to{transform:translateX(100%)}}
@keyframes crm-offsync-rotate-v2{to{transform:rotate(360deg)}}
.crm-offsync-v1.is-done{background:#0F766E}
.crm-offsync-v1.is-done .crm-offsync-v1-bar{background:#A7F3D0;width:100%;flex-basis:100%}
.crm-offsync-v1.is-paused{background:#92400E}
.crm-offsync-v1.is-paused .crm-offsync-v1-bar{background:#FDE68A}
@media (max-width:640px){.crm-offsync-v1{top:8px;width:calc(100vw - 16px);font-size:11.5px;padding:12px 13px;border-radius:15px}.crm-offgate-v1{max-width:180px}}

/* ADATASK_OFFLINE_TOAST_RESPONSIVE_V1 - toast مستقیم به body، مستقل از Drawer سایدبار موبایل */
.crm-offtoast-global-v1{box-sizing:border-box;position:fixed;left:50%;bottom:18px;right:auto;z-index:2147483000;max-width:min(480px,calc(100vw - 32px));padding:10px 16px;border-radius:99px;background:rgba(15,39,64,.94);color:#e2e8f0;font-size:12px;font-weight:700;border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 32px rgba(2,12,27,.32);opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:opacity .2s ease,transform .2s ease;direction:rtl;text-align:center;backdrop-filter:blur(10px)}
.crm-offtoast-global-v1.is-visible{opacity:1;transform:translate(-50%,0)}
@media (max-width:640px){.crm-offtoast-global-v1{bottom:14px;font-size:11.5px;padding:9px 14px;max-width:calc(100vw - 24px)}}


/* ADATASK_OFFLINE_GLOBAL_V4 - ردیف سایدبار بالای منوی دسکتور (in-flow، بدون fixed) */
.crm-offcluster-v1{position:static;display:flex;flex-direction:column;gap:6px;align-items:stretch;margin:2px 10px 8px;width:auto}
.crm-offrow-v1{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:11px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10)}
.crm-netsig-v1{display:inline-flex;align-items:center;justify-content:center;width:30px;height:24px;border-radius:8px;background:rgba(255,255,255,.08);cursor:default;flex:0 0 auto}
.crm-netsig-v1 svg{display:block}
.crm-offtoggle-v1{display:inline-flex;align-items:center;gap:6px;flex:1 1 auto;height:26px;padding:0 10px;border-radius:99px;border:1px solid rgba(52,211,153,.35);background:rgba(16,110,100,.35);color:#a7f3d0;font-size:11.5px;font-weight:700;cursor:pointer;font-family:inherit}
.crm-offtoggle-v1 .crm-offtoggle-v1-dot{width:7px;height:7px;border-radius:50%;background:#34d399;flex:0 0 auto}
.crm-offtoggle-v1.is-offline{border-color:rgba(251,191,36,.4);background:rgba(146,64,14,.4);color:#fde68a}
.crm-offtoggle-v1.is-offline .crm-offtoggle-v1-dot{background:#fbbf24;animation:crm-offsync-dot-v1 1.2s ease-in-out infinite}
.crm-offtoggle-v1.is-syncing{border-color:rgba(147,197,253,.4);background:rgba(30,64,175,.4);color:#bfdbfe;cursor:wait}
.crm-offtoggle-v1.is-syncing .crm-offtoggle-v1-dot{background:#93c5fd;animation:crm-offsync-dot-v1 1s ease-in-out infinite}
.crm-offtoggle-v1 b{display:inline-grid;place-items:center;min-width:16px;height:16px;border-radius:99px;background:#dc2626;color:#fff;font-size:10px;padding:0 4px}
.crm-offcluster-v1 .crm-offgate-v1{max-width:100%;font-size:10.5px;padding:5px 9px}
.crm-offtoast-v1{display:inline-block;padding:6px 10px;border-radius:8px;background:rgba(15,39,64,.92);color:#e2e8f0;font-size:10.5px;font-weight:600;border:1px solid rgba(255,255,255,.16)}

/* ADATASK_OFFLINE_SYNC_REPORT_V1 — دکمهٔ گزارش + یادداشت صادقانه + پنل گزارش انتقال */
.crm-offreportbtn-v1{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:24px;padding:0 10px;border-radius:99px;border:1px solid rgba(147,197,253,.35);background:rgba(30,58,138,.35);color:#bfdbfe;font-size:10.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:background 160ms ease,border-color 160ms ease}
.crm-offreportbtn-v1:hover{background:rgba(30,58,138,.6);border-color:rgba(147,197,253,.6)}
.crm-offhint-v1{font-size:9.8px;line-height:1.9;color:rgba(253,230,138,.92);background:rgba(146,64,14,.28);border:1px solid rgba(251,191,36,.28);border-radius:9px;padding:6px 8px;font-weight:600}
/* ADATASK_OFFLINE_SCOPE_V3 — آیتم‌های منو که در آفلاین از کار می‌افتند */
.v3-nav .crm-offitem-v1{opacity:.35;filter:grayscale(.85);cursor:not-allowed!important}
.v3-nav .crm-offitem-v1 .v3-nav-txt{pointer-events:none}
.v3-nav .crm-offitem-v1:hover{background:transparent}
.adatask-sidebar-nav-v1-r2 .crm-offitem-v1{opacity:.35;filter:grayscale(.85);cursor:not-allowed!important}
.adatask-sidebar-nav-v1-r2 .crm-offitem-v1:hover{background:transparent}
.crm-offreport-v1{position:fixed;inset:0;z-index:2147482990;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(8,18,34,.58);backdrop-filter:blur(9px);direction:rtl;font-family:inherit}
.crm-offreport-v1-card{width:min(980px,calc(100vw - 36px));max-height:min(86vh,820px);display:flex;flex-direction:column;background:#F8FAFC;border:1px solid rgba(255,255,255,.24);border-radius:24px;box-shadow:0 34px 90px rgba(2,12,27,.42);overflow:hidden}
.crm-offreport-v1-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 22px;background:linear-gradient(135deg,#102B49 0%,#153F67 58%,#12617A 100%);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.08) inset}
.crm-offreport-v2-titlewrap{display:flex;align-items:center;gap:12px;min-width:0}.crm-offreport-v2-titleicon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);font-size:23px;font-weight:900;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.crm-offreport-v2-titlecopy{display:flex;flex-direction:column;gap:3px;min-width:0}.crm-offreport-v2-titlecopy b{font-size:16px;font-weight:900;line-height:1.5}.crm-offreport-v2-titlecopy span{font-size:11.5px;font-weight:600;color:rgba(239,246,255,.75)}
.crm-offreport-v1-close{appearance:none;-webkit-appearance:none;width:36px;height:36px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:#fff;font-size:14px;cursor:pointer;font-family:inherit;flex:0 0 auto;transition:.18s ease}.crm-offreport-v1-close:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.crm-offreport-v1-body{padding:18px 20px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:16px;font-size:12px;color:#172033;background:#F8FAFC}
.crm-offreport-v2-summary{padding:16px;background:#fff;border:1px solid #E5ECF4;border-radius:18px;box-shadow:0 8px 24px rgba(24,39,75,.05)}
.crm-offreport-v2-summarytop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.crm-offreport-v2-summarycopy{display:flex;flex-direction:column;gap:3px}.crm-offreport-v2-summarycopy strong{font-size:13.5px;font-weight:900;color:#102A43}.crm-offreport-v2-summarycopy span{font-size:10.8px;color:#718096;font-weight:600}
.crm-offreport-v2-source{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:10.5px;font-weight:800;white-space:nowrap}.crm-offreport-v2-source:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px currentColor;opacity:.14}.crm-offreport-v2-source.is-live{color:#087F5B;background:#E9FBF4}.crm-offreport-v2-source.is-cached{color:#8A5B00;background:#FFF6DB}

.crm-offreport-v2-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.crm-offreport-v2-stat{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border-radius:14px;border:1px solid #E5ECF4;background:#F8FAFC}.crm-offreport-v2-stat span{font-size:10.5px;color:#64748B;font-weight:700}.crm-offreport-v2-stat b{font-size:22px;line-height:1.2;font-weight:900;color:#0F2744}.crm-offreport-v2-stat small{font-size:9.6px;color:#8090A3;font-weight:600;line-height:1.6}.crm-offreport-v2-stat.tone-green{background:#F2FBF7;border-color:#D5F2E5}.crm-offreport-v2-stat.tone-red{background:#FFF5F5;border-color:#FFD8D8}.crm-offreport-v2-stat.tone-blue{background:#F3F8FF;border-color:#DCEAFF}
.crm-offreport-v2-listhead{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:0 2px}.crm-offreport-v2-listhead>div{display:flex;flex-direction:column;gap:2px}.crm-offreport-v2-listhead b{font-size:13px;font-weight:900;color:#152536}.crm-offreport-v2-listhead span{font-size:10.5px;color:#7B8794;font-weight:600}.crm-offreport-v2-count{padding:5px 9px;border-radius:999px;background:#EAF1F8;color:#34506B!important;font-weight:800!important;white-space:nowrap}
.crm-offreport-v2-list{display:flex;flex-direction:column;gap:10px}.crm-offreport-v1-row.crm-offreport-v2-row{padding:14px 15px 13px;border:1px solid #E3EAF2;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(24,39,75,.04);gap:11px;transition:.18s ease}.crm-offreport-v1-row.crm-offreport-v2-row:hover{transform:translateY(-1px);box-shadow:0 11px 28px rgba(24,39,75,.07);border-color:#CED9E5}.crm-offreport-v1-row.crm-offreport-v2-row.has-failed{border-color:#F2CACA;background:#FFFDFD}
.crm-offreport-v2-rowtop{display:flex;align-items:center;justify-content:space-between;gap:12px}.crm-offreport-v2-user{display:flex;align-items:center;gap:10px;min-width:0}.crm-offreport-v2-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#DDEBFA,#EDF5FD);color:#173B62;font-size:14px;font-weight:900;flex:0 0 auto}.crm-offreport-v2-user>div{display:flex;flex-direction:column;gap:2px;min-width:0}.crm-offreport-v2-user b{font-size:12.4px;font-weight:900;color:#172B3F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-offreport-v2-user small{font-size:9.5px;color:#8A97A6;font-weight:600}
.crm-offreport-v2-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:9.8px;font-weight:900;white-space:nowrap}.crm-offreport-v2-status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.crm-offreport-v2-status.is-success{color:#087F5B;background:#EAF8F2}.crm-offreport-v2-status.is-failed{color:#B42318;background:#FFF0EF}

.crm-offreport-v2-meta{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:8px}.crm-offreport-v2-chip{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:11px;background:#F8FAFC;border:1px solid #EEF2F6;min-width:0}.crm-offreport-v2-chip span{font-size:9.2px;color:#8A97A6;font-weight:700}.crm-offreport-v2-chip b{font-size:10.7px;color:#334E68;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-offreport-v2-progress{height:6px;border-radius:999px;overflow:hidden;background:#EDF2F7}.crm-offreport-v2-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2E90FA,#12B76A);transition:width .25s ease}.crm-offreport-v2-row.has-failed .crm-offreport-v2-progress i{background:linear-gradient(90deg,#F79009,#D92D20)}
.crm-offreport-v2-detail{padding:9px 11px;border-radius:11px;background:#F7F9FC;color:#5B6B7C;font-size:10.2px;font-weight:600;line-height:1.8;border:1px dashed #DFE6EE}.crm-offreport-v2-foot{margin-top:0;padding:11px 13px;border:1px solid #E7EDF4;border-radius:13px;background:#F1F5F9;color:#607287;font-size:10.2px;line-height:1.8}
.crm-offreport-v2-message{min-height:160px;display:flex;align-items:center;justify-content:center;gap:14px;padding:28px;border-radius:18px;background:#fff;border:1px solid #E4EAF1;box-shadow:0 8px 24px rgba(24,39,75,.04)}.crm-offreport-v2-messageicon{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;font-size:20px;font-weight:900;background:#EDF5FF;color:#245E9A;flex:0 0 auto}.crm-offreport-v2-messagecopy{display:flex;flex-direction:column;gap:5px;max-width:560px}.crm-offreport-v2-messagecopy b{font-size:13px;font-weight:900;color:#172B3F}.crm-offreport-v2-messagecopy span{font-size:11px;line-height:1.9;color:#6C7C8C;font-weight:600}.crm-offreport-v2-message.tone-warning .crm-offreport-v2-messageicon{background:#FFF4E5;color:#B35B00}.crm-offreport-v2-message.tone-success .crm-offreport-v2-messageicon{background:#EAF8F2;color:#087F5B}
.crm-offreport-v1-l1{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}.crm-offreport-v1-l1 span{font-weight:600;color:#374151}.crm-offreport-v1-l2{display:flex;flex-direction:column;gap:2px;color:#4B5563;font-size:11.3px;line-height:1.8}.crm-offreport-v1-foot{color:#6B7280}
@media(max-width:760px){.crm-offreport-v1{padding:10px}.crm-offreport-v1-card{width:calc(100vw - 20px);max-height:92vh;border-radius:18px}.crm-offreport-v1-head{padding:15px}.crm-offreport-v1-body{padding:13px;gap:12px}.crm-offreport-v2-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-offreport-v2-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-offreport-v2-summary{padding:13px}.crm-offreport-v2-summarytop{align-items:flex-start}.crm-offreport-v2-titleicon{width:36px;height:36px;border-radius:11px}.crm-offreport-v2-rowtop{align-items:flex-start}.crm-offreport-v2-listhead{align-items:center}}
@media(max-width:460px){.crm-offreport-v2-stats{grid-template-columns:1fr 1fr}.crm-offreport-v2-meta{grid-template-columns:1fr}.crm-offreport-v2-source{display:none}.crm-offreport-v2-message{padding:20px;align-items:flex-start}.crm-offreport-v2-stat b{font-size:19px}}


/* ADATASK_OFFLINE_LOGIN_V1 — ورود آفلاین در صفحهٔ ورود (auth.html) */
.offlogin-v1{margin-top:14px}
.offlogin-v1-divider{display:flex;align-items:center;gap:8px;color:#94A3B8;font-size:11px;margin:4px 0 10px}
.offlogin-v1-divider::before,.offlogin-v1-divider::after{content:'';flex:1;height:1px;background:#E5E7EB}
.offlogin-v1-btn{appearance:none;-webkit-appearance:none;width:100%;padding:9px 12px;border-radius:9px;border:1px dashed #93C5FD;background:#EFF6FF;color:#1D4ED8;font-size:12.5px;font-weight:800;cursor:pointer;font-family:inherit;transition:background 160ms ease}
.offlogin-v1-btn:hover{background:#DBEAFE}
.offlogin-v1-panel{border:1px solid #BFDBFE;background:#F0F9FF;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.offlogin-v1-who{font-size:12px;font-weight:700;color:#173454;line-height:1.9}
.offlogin-v1-note{font-size:11px;color:#475569;line-height:1.9}
.offlogin-v1-row{display:flex;gap:8px}
.offlogin-v1-go{appearance:none;-webkit-appearance:none;flex:1;padding:8px 10px;border-radius:8px;border:none;background:#0F766E;color:#fff;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit}
.offlogin-v1-cancel{appearance:none;-webkit-appearance:none;padding:8px 12px;border-radius:8px;border:1px solid #E5E7EB;background:#fff;color:#64748B;font-size:12px;cursor:pointer;font-family:inherit}


/* Connectivity is the first React-owned slot in the application sidebar. */
.adatask-connectivity-slot-v1{position:sticky;top:0;z-index:2;flex:0 0 auto;background:#111827;padding:8px 0 0}
.adatask-connectivity-slot-v1 .crm-offcluster-v1{margin:0 8px 8px;min-width:0}
.adatask-connectivity-slot-v1 .crm-offrow-v1{flex-wrap:wrap;justify-content:space-between;gap:6px;padding:8px}
.adatask-connectivity-slot-v1 .crm-netsig-v1{display:inline-flex;align-items:center;gap:5px;min-width:0;width:auto;height:auto;padding:4px;flex:1 1 90px;color:#e5e7eb}
.adatask-connectivity-slot-v1 .crm-netlabel-v2{font-size:10px;line-height:1.6;white-space:normal}
.adatask-sidebar-is-mini-v318 .crm-netlabel-v2{display:none}
.adatask-sidebar-is-mini-v318 .crm-offrow-v1{justify-content:center;padding:5px 2px}
.adatask-sidebar-is-mini-v318 .crm-offpill-v1{padding:4px 2px;font-size:9px}
