/* go7.uz — CRM: распределение заявок, календарь поездок, план продаж, дубли клиентов (assets/js/crm3.js) */

.c3-sp { flex: 1; }
.c3-fwd .ico { transform: scaleX(-1); }
.c3-hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 6px 0 2px; }
.c3-hint .ico { flex: none; margin-top: 2px; }
.c3-hint.warn { color: var(--danger); }
.c3-nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; }

/* Части строки через «·»: каждая часть — свой элемент (так её переводит слой языка) */
.c3-dots > span + span::before, .c3-dots > span + a::before, .c3-dots > a + span::before { content: " · "; color: var(--ink-4); }
.c3-dots > a { margin-left: 0; }

/* ---------- Таймер ответа: метка на карточке, плашка в заявке, всплывающее «новая заявка» ---------- */
.crm-tag.c3-timer { color: #0E7490; background: rgba(14,165,233,.12); box-shadow: none; }
.crm-tag.c3-timer.soon { color: #B45309; background: #FEF3C7; }
.crm-tag.c3-timer.over { color: var(--danger); background: var(--danger-soft); }
html[data-theme="dark"] .crm-tag.c3-timer { color: #7DD3FC; }
html[data-theme="dark"] .crm-tag.c3-timer.soon { color: #F5C26B; background: rgba(245,165,36,.16); }
.c3-due { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin: 10px 0 2px; background: rgba(14,165,233,.09); box-shadow: inset 0 0 0 1.5px rgba(14,165,233,.28); }
.c3-due.soon { background: #FFF7E6; box-shadow: inset 0 0 0 1.5px #F5C26B; }
.c3-due.over { background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px rgba(217,45,32,.35); }
html[data-theme="dark"] .c3-due.soon { background: rgba(245,165,36,.12); }
.c3-due-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: #0E7490; }
.c3-due.soon .c3-due-ic { color: #B45309; } .c3-due.over .c3-due-ic { color: var(--danger); }
.c3-due b { display: block; font-size: 14px; }
.c3-due small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.c3-due .c3-tl { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.c3-due .btn { flex: none; }
.c3-pop { position: fixed; right: 20px; bottom: 20px; z-index: 1200; display: flex; align-items: center; gap: 12px; width: min(440px, calc(100vw - 32px)); padding: 12px 12px 12px 14px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--accent-soft-2); animation: c3up .25s cubic-bezier(.2,0,0,1); }
.c3-pop.out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.c3-pop-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.c3-pop b { display: block; font-size: 14px; }
.c3-pop small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c3-pop .grow { min-width: 0; }
@keyframes c3up { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .c3-pop { animation: none; } }

/* ---------- Окно «Распределение заявок» ---------- */
.modal.c3-rmodal { max-width: 660px; width: calc(100vw - 32px); }
.c3-rmodal .mb { display: grid; gap: 4px; }
.c3-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; }
.c3-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.c3-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: var(--ink); border: 0; cursor: pointer; padding: 12px; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, background .15s; }
.c3-mode .ico { color: var(--ink-3); }
.c3-mode b { font-size: 14px; }
.c3-mode small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.c3-mode:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.c3-mode.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.c3-mode.on .ico { color: var(--accent); }
.c3-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.c3-fs[disabled] { opacity: .45; }
.c3-fs h4 { margin: 12px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.c3-who { display: flex; flex-wrap: wrap; gap: 6px; }
.c3-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 700;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); user-select: none; }
.c3-chip input { position: absolute; opacity: 0; pointer-events: none; }
.c3-chip.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }
.c3-chip.lim { opacity: .5; }
.c3-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.c3-on { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 2px var(--surface); }
.c3-sw { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.c3-sw > input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.c3-sw b { display: block; font-size: 14px; }
.c3-sw small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
.c3-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.c3-row .field { flex: 1 1 150px; margin: 0; min-width: 0; }
.c3-row .field.c3-wide { flex: 2 1 240px; }
.c3-row.dim, .field.dim { opacity: .45; pointer-events: none; }
.c3-mail { padding-bottom: 12px; }
.c3-days { flex: 2 1 260px !important; }
.c3-days > div { display: flex; gap: 4px; flex-wrap: wrap; }
.c3-days button { font: inherit; font-size: 12.5px; font-weight: 700; border: 0; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; color: var(--ink-3); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.c3-days button.on { color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.c3-rstat { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: 12.5px; color: var(--ink-3); }
.c3-rstat b { color: var(--ink); }

/* ---------- Календарь поездок ---------- */
.c3-ckpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.c3-cbar { gap: 10px; }
.c3-nav { display: inline-flex; align-items: center; gap: 6px; }
.c3-nav b { font: 700 15px/1.2 var(--display); min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }
.c3-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.c3-legend i { width: 10px; height: 10px; border-radius: 3px; background: #0EA5E9; margin-left: 6px; }
.c3-legend i.back { background: #10B981; }
.c3-week { display: grid; gap: 4px; }
.c3-day { margin-bottom: 10px; }
.c3-day h4 { display: flex; align-items: center; gap: 8px; margin: 6px 4px 8px; font-size: 14px; color: var(--ink-2); }
.c3-day h4 em { font-style: normal; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--ink-3); padding: 2px 8px; border-radius: 6px; }
.c3-day.today h4 em { background: var(--accent); }
.c3-day h4 i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--bg-2); padding: 1px 8px; border-radius: 999px; }
.c3-day.past h4 span { color: var(--muted); }
.c3-none { margin: 0 4px 6px; font-size: 13px; color: var(--ink-4); }
.c3-evs { padding: 4px; border-radius: 16px; }
.c3-ev { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.c3-ev + .c3-ev { box-shadow: 0 -1px 0 var(--line); }
.c3-evi { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #0369A1; background: rgba(14,165,233,.12); }
.c3-ev.back .c3-evi { color: #047857; background: rgba(16,185,129,.13); }
.c3-ev.back .c3-evi .ico { transform: scaleX(-1); }
.c3-ev.in .c3-evi { color: #B45309; background: #FEF3C7; }
html[data-theme="dark"] .c3-evi { color: #7DD3FC; } html[data-theme="dark"] .c3-ev.back .c3-evi { color: #6EE7B7; } html[data-theme="dark"] .c3-ev.in .c3-evi { background: rgba(245,165,36,.16); color: #F5C26B; }
.c3-evb { flex: 1; min-width: 0; }
.c3-evh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c3-evh a { color: inherit; text-decoration: none; } .c3-evh a:hover b { color: var(--accent); }
.c3-evh b { font-size: 14.5px; }
.c3-evk { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #0369A1; }
.c3-ev.back .c3-evk { color: #047857; }
.c3-evb small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.c3-evb small .ico { display: inline-block; vertical-align: -2px; margin-right: 2px; }
.c3-evb small a { color: var(--ink-3); }
.c3-evdone { color: var(--teal-ink) !important; font-weight: 700; }
.c3-eva { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.c3-eva .crm-cb span { display: none; }
.c3-call { white-space: nowrap; }
.c3-ev.done .c3-call { color: var(--teal-ink); }
.c3-evsoon { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.c3-month { padding: 10px; border-radius: 18px; margin-bottom: 12px; }
.c3-wd, .c3-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.c3-wd span { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; }
.c3-cell { position: relative; min-height: 64px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; padding: 6px; border-radius: 10px; border: 0; font: inherit; text-align: left; cursor: pointer; background: var(--surface-2); color: var(--ink); }
.c3-cell.blank { background: none; cursor: default; }
.c3-cell.past { color: var(--ink-4); }
.c3-cell:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.c3-cell.today .c3-cn { background: var(--accent); color: #fff; }
.c3-cell.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.c3-cn { width: 100%; font-size: 12.5px; font-weight: 800; }
.c3-cell.today .c3-cn { width: auto; padding: 1px 7px; border-radius: 6px; margin-right: 100%; }
.c3-cell i { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fff; background: #0EA5E9; }
.c3-cell i.back { background: #10B981; }
.c3-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* ---------- План продаж ---------- */
.c3-phead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.c3-phead .c3-nav b { font-size: 17px; min-width: 170px; }
.c3-agency { display: grid; gap: 8px; padding: 16px 18px; border-radius: 20px; margin-bottom: 12px; }
.c3-agency header, .c3-plan header { display: flex; align-items: center; gap: 12px; }
.c3-agency header b, .c3-plan header b { display: block; font-size: 15px; }
.c3-agency header small, .c3-plan header small { display: block; font-size: 12.5px; color: var(--muted); }
.c3-agency.empty { display: flex; align-items: center; gap: 12px; }
.c3-agi { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.c3-pact { display: flex; gap: 2px; }
.c3-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.c3-plan { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 18px; }
.c3-plan.off { opacity: .7; }
.c3-plan.done, .c3-agency.done { box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.45), var(--shadow); }
.c3-pnum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.c3-pnum b { font: 800 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.c3-pnum span { font-size: 13px; color: var(--muted); }
.c3-pnum em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.c3-pnum em.ok { color: var(--teal-ink); }
.c3-pbar { position: relative; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.c3-pbar.big { height: 14px; }
.c3-pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #FF8A5B); }
.c3-pbar.done i { background: linear-gradient(90deg, #0E9F8E, #10B981); }
.c3-pbar u { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(255,90,54,.22) 0 5px, transparent 5px 9px); }
.c3-pbar s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink-2); text-decoration: none; }
.c3-pmeta { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-3); }
.c3-pmeta span { display: flex; align-items: center; gap: 5px; }
.c3-pmeta .ico { color: var(--ink-4); flex: none; }
.c3-pmeta b { color: var(--ink); }
.c3-bonus { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.c3-bonus .ico { color: #B45309; flex: none; }
.c3-bonus.ok { background: var(--teal-soft); box-shadow: none; color: var(--teal-ink); }
.c3-bonus.ok .ico { color: var(--teal-ink); }
.c3-pnone { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 6px 0 2px; }
.c3-pnone b { color: var(--ink); }
.c3-plan footer { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding-top: 8px; box-shadow: 0 -1px 0 var(--line); }
.c3-plan footer span { display: inline-flex; align-items: center; gap: 4px; }
.c3-plan footer b { color: var(--ink-2); }
.c3-pnote { display: flex; gap: 6px; align-items: flex-start; margin-top: 14px; }
.c3-mets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.c3-met { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: var(--ink); border: 0; cursor: pointer; padding: 10px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.c3-met .ico { color: var(--ink-4); margin-bottom: 2px; }
.c3-met b { font-size: 13.5px; } .c3-met small { font-size: 11.5px; color: var(--muted); }
.c3-met.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.c3-met.on .ico { color: var(--accent); }
.c3-basis { margin: 4px 0 10px; }

/* ---------- Дубли клиентов ---------- */
.c3-dupes { display: grid; gap: 12px; }
.c3-dg { padding: 12px; border-radius: 18px; }
.c3-dg header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 4px 8px; }
.c3-dgw { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--danger); margin-right: 4px; }
.c3-dg.weak .c3-dgw { color: #B45309; }
.c3-dml { display: grid; gap: 4px; }
.c3-dm { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.c3-dm > input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.c3-dm.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.c3-dm .grow { min-width: 0; }
.c3-dm b { display: block; font-size: 14px; }
.c3-dm small { display: block; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.c3-dm small.c3-dms { color: var(--muted); font-size: 12px; }
.c3-dmk { font-size: 11.5px; font-weight: 800; color: var(--accent); text-transform: uppercase; white-space: nowrap; }
.c3-dg footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.c3-mk { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.c3-mk small { display: block; font-size: 11.5px; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.c3-mk b { display: block; font-size: 15px; } .c3-mk span { display: block; font-size: 12.5px; color: var(--ink-3); }
.c3-mlist { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.c3-mlist li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.c3-mlist li span { color: var(--muted); font-size: 12.5px; }
.c3-mwhat { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.c3-mwhat span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Лист ожидания: находки расширения ---------- */
.c3-wext { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(139,92,246,.07); box-shadow: inset 0 0 0 1px rgba(139,92,246,.2); }
.c3-wext h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6D28D9; }
html[data-theme="dark"] .c3-wext h5 { color: #C4B5FD; }
.c3-wexr { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.c3-wexr > :first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.c3-wexr + .c3-wexr { box-shadow: 0 -1px 0 var(--line); }
.c3-wexr b { display: block; font-size: 13px; } .c3-wexr small { display: block; font-size: 12px; color: var(--muted); }
.c3-wexr em { font-style: normal; font-weight: 800; font-size: 13.5px; white-space: nowrap; }

/* ---------- Аналитика: столбец «Ответ на заявку» ---------- */
.crm-st-team.resp .crm-st-tr { grid-template-columns: minmax(160px, 2fr) repeat(6, minmax(70px, 1fr)); }
.crm-st-team.resp .crm-st-tr small { display: block; font-size: 11.5px; color: var(--muted); }
.crm-rule.x-route, .crm-rule.x-routex { color: #0E7490; }
.crm-rule.x-xwait, .crm-rule.x-drop { color: #6D28D9; }
html[data-theme="dark"] .crm-rule.x-route, html[data-theme="dark"] .crm-rule.x-routex { color: #7DD3FC; }
html[data-theme="dark"] .crm-rule.x-xwait, html[data-theme="dark"] .crm-rule.x-drop { color: #C4B5FD; }

/* ---------- Телефон ---------- */
@media (max-width: 1100px) { .c3-ckpi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .c3-modes, .c3-mets { grid-template-columns: 1fr; }
  .c3-mode { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .c3-mode small { width: 100%; }
  .c3-ckpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c3-ckpi .crm-k:last-child { grid-column: 1 / -1; }
  .c3-legend { display: none; }
  .c3-cbar .c3-nav b { min-width: 0; }
  .c3-ev { flex-wrap: wrap; align-items: flex-start; }
  .c3-eva { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .c3-cell { min-height: 48px; padding: 4px; }
  .c3-cell i { font-size: 10px; padding: 0 4px; }
  .c3-plans { grid-template-columns: 1fr; }
  .c3-agency.empty { flex-wrap: wrap; }
  .c3-due { flex-wrap: wrap; }
  .c3-due .btn { width: 100%; justify-content: center; }
  .c3-pop { right: 16px; left: 16px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .c3-cbar { flex-wrap: wrap; }
  .c3-cbar .seg { order: 1; } .c3-cbar #cToday { order: 2; } .c3-cbar .c3-nav { order: 3; width: 100%; justify-content: space-between; }
  .c3-wd span { font-size: 10px; }
  .c3-dm { flex-wrap: wrap; } .c3-dmk { order: 5; }
  .c3-phead .c3-nav { width: 100%; justify-content: space-between; }
}

/* ---------- «Зарплата»: бонус за план продаж ---------- */
.sl-nums small.sl-plan-ok { color: var(--teal-ink); font-weight: 700; }
