/* ==========================================
   VISUAL NOVO (v2) — COMPONENTES DAS TELAS RECONSTRUÍDAS
   Usados por assets/js/ui-v2-screens.js (Visão geral, ...).
   Tudo sob .v2s para não colidir com Tailwind/main.css.
   ========================================== */
html[data-ui="v2"] .v2s { display: flex; flex-direction: column; gap: 16px; width: 100%; color: var(--v2-ink); font-family: inherit; }
html[data-ui="v2"] .v2s * { box-sizing: border-box; }
html[data-ui="v2"] .v2s :is(h2, h3, h4) { color: var(--v2-ink) !important; margin: 0; letter-spacing: -.01em; text-transform: none; }
html[data-ui="v2"] .v2s p { margin: 0; }
html[data-ui="v2"] .v2s button { font-family: inherit; }
html[data-ui="v2"] .v2s svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
html[data-ui="v2"] .v2s .muted { color: var(--v2-gray); }

/* cartões */
html[data-ui="v2"] .v2s .v2-card { background: var(--v2-card); border-radius: 24px; padding: 22px; box-shadow: var(--v2-shadow); min-width: 0; }
html[data-ui="v2"] .v2s .v2-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
html[data-ui="v2"] .v2s .v2-ch h3 { font-size: 16px; font-weight: 800; }
html[data-ui="v2"] .v2s .v2-ch small { color: var(--v2-gray); font-size: 12px; font-weight: 500; display: block; margin-top: 1px; }
html[data-ui="v2"] .v2s .v2-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
html[data-ui="v2"] .v2s .v2-row.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-ui="v2"] .v2s .v2-row.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* barra de filtros */
html[data-ui="v2"] .v2s .v2-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 20; }
html[data-ui="v2"] .v2s .v2-seg { display: flex; background: var(--v2-card); border-radius: 999px; padding: 4px; box-shadow: var(--v2-shadow); flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-seg.flat { background: var(--v2-bg); box-shadow: none; padding: 3px; }
html[data-ui="v2"] .v2s .v2-seg button {
  border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--v2-ink-2);
  display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
html[data-ui="v2"] .v2s .v2-seg.flat button { padding: 6px 12px; font-size: 12px; color: var(--v2-gray); }
html[data-ui="v2"] .v2s .v2-seg button.on { background: var(--v2-blue); color: #fff; }
html[data-ui="v2"] .v2s .v2-seg.flat button.on { background: var(--v2-card); color: var(--v2-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
html[data-ui="v2"] .v2s .v2-seg button svg { width: 15px; height: 15px; }
html[data-ui="v2"] .v2s .v2-pill {
  height: 40px; border: 0; background: var(--v2-card); box-shadow: var(--v2-shadow); border-radius: 999px; padding: 0 14px;
  font-size: 13px; font-weight: 700; color: var(--v2-ink-2); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
}
html[data-ui="v2"] .v2s .v2-pill.on { background: var(--v2-blue-50); color: var(--v2-blue-text); }
html[data-ui="v2"] .v2s .v2-pill svg { width: 16px; height: 16px; }
html[data-ui="v2"] body #main-container select.v2-select {
  height: 40px !important; border: 0 !important; border-radius: 999px !important; padding: 0 34px 0 14px !important; font-size: 13px !important; font-weight: 700 !important;
  background-color: var(--v2-card) !important; box-shadow: var(--v2-shadow) !important; color: var(--v2-ink-2) !important; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23808284' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; text-transform: none !important; letter-spacing: 0 !important;
}
html[data-ui="v2"] body #main-container select.v2-select.on { color: var(--v2-blue-text) !important; box-shadow: 0 0 0 2px var(--v2-blue), var(--v2-shadow) !important; }
html[data-ui="v2"] .v2s .v2-grow { flex: 1; }
html[data-ui="v2"] .v2s .v2-ctx { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--v2-gray); }
html[data-ui="v2"] .v2s .v2-ctx b { color: var(--v2-ink); font-weight: 700; }
html[data-ui="v2"] .v2s .v2-ctx .x { border: 0; background: none; color: var(--v2-blue-text); font-weight: 700; cursor: pointer; font-size: 12px; padding: 0 4px; }
html[data-ui="v2"] .v2s .v2-picker {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: var(--v2-card); border-radius: 20px; box-shadow: var(--v2-shadow-pop);
  padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 240px;
}
html[data-ui="v2"] .v2s .v2-picker.hidden { display: none; }
html[data-ui="v2"] .v2s .v2-picker label { font-size: 12px; font-weight: 700; color: var(--v2-ink-2); display: flex; flex-direction: column; gap: 6px; }
html[data-ui="v2"] body #main-container .v2-picker input { height: 42px; padding: 0 12px; font-size: 14px; }

/* KPIs */
html[data-ui="v2"] .v2s .v2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html[data-ui="v2"] .v2s .v2-kpi { cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
html[data-ui="v2"] .v2s .v2-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15,27,38,.09); }
html[data-ui="v2"] .v2s .v2-kpi .h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
html[data-ui="v2"] .v2s .v2-kpi .h span { font-size: 13px; color: var(--v2-gray); font-weight: 600; }
html[data-ui="v2"] .v2s .v2-kpi .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
html[data-ui="v2"] .v2s .v2-kpi .foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--v2-gray); font-weight: 600; }
html[data-ui="v2"] .v2s .v2-delta { font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; border-radius: 999px; padding: 3px 9px; }
html[data-ui="v2"] .v2s .v2-delta svg { width: 13px !important; height: 13px !important; }
html[data-ui="v2"] .v2s .v2-delta.up { background: rgba(31,169,113,.12); color: #12764E; }
html[data-ui="v2"] .v2s .v2-delta.down { background: rgba(209,67,67,.12); color: #B42318; }
html[data-ui="v2"] .v2s .v2-delta.flat { background: var(--v2-bg); color: var(--v2-gray); }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-delta.up { color: #4FD49A; }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-delta.down { color: #F59A9A; }
html[data-ui="v2"] .v2s .v2-kpi.hero { background: var(--v2-blue); color: #fff; }
html[data-ui="v2"] .v2s .v2-kpi.hero .h span, html[data-ui="v2"] .v2s .v2-kpi.hero .foot { color: rgba(255,255,255,.88); }
html[data-ui="v2"] .v2s .v2-kpi.hero .ic { background: rgba(255,255,255,.18) !important; color: #fff !important; }
html[data-ui="v2"] .v2s .v2-kpi.hero .v2-delta { background: rgba(255,255,255,.18); color: #fff; }
html[data-ui="v2"] .v2s .v2-kpi.hero::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }

/* gráfico de barras */
html[data-ui="v2"] .v2s .v2-bars { display: flex; align-items: flex-end; gap: clamp(6px, 1.6vw, 20px); height: 230px; padding-top: 34px; }
html[data-ui="v2"] .v2s .v2-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
html[data-ui="v2"] .v2s .v2-bar .b { width: 100%; max-width: 56px; min-height: 4px; border-radius: 14px; background: rgba(0,143,212,.22); position: relative; transition: height .5s cubic-bezier(.2,.8,.2,1), background .15s; }
html[data-ui="v2"] .v2s .v2-bar:hover .b { background: rgba(0,143,212,.45); }
html[data-ui="v2"] .v2s .v2-bar.last .b { background: var(--v2-blue); }
html[data-ui="v2"] .v2s .v2-bar .b::before {
  content: attr(data-v); position: absolute; top: -32px; left: 50%; transform: translateX(-50%); background: var(--v2-ink); color: var(--v2-bg);
  font-size: 11px; font-weight: 700; border-radius: 8px; padding: 4px 8px; white-space: nowrap; opacity: 0; transition: .15s; pointer-events: none; z-index: 2;
}
html[data-ui="v2"] .v2s .v2-bar.last .b::before, html[data-ui="v2"] .v2s .v2-bar:hover .b::before { opacity: 1; }
html[data-ui="v2"] .v2s .v2-bar span { font-size: 12px; color: var(--v2-gray); font-weight: 600; text-transform: capitalize; }

/* funil */
html[data-ui="v2"] .v2s .v2-funnel { display: flex; flex-direction: column; gap: 14px; }
html[data-ui="v2"] .v2s .v2-fs .t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
html[data-ui="v2"] .v2s .v2-fs .t b { font-weight: 800; }
html[data-ui="v2"] .v2s .v2-fs .t em { font-style: normal; color: var(--v2-gray); font-weight: 600; margin-left: 6px; font-size: 12px; }
html[data-ui="v2"] .v2s .v2-track { height: 10px; border-radius: 999px; background: var(--v2-bg); overflow: hidden; }
html[data-ui="v2"] .v2s .v2-track div { height: 100%; border-radius: 999px; background: var(--v2-blue); transition: width .6s cubic-bezier(.2,.8,.2,1); }
html[data-ui="v2"] .v2s .v2-track.o div { background: var(--v2-orange); }
html[data-ui="v2"] .v2s .v2-track.g div { background: var(--v2-green); }
html[data-ui="v2"] .v2s .v2-note { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: var(--v2-orange-50); border-radius: 16px; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--v2-orange-text); }
html[data-ui="v2"] .v2s .v2-note b { color: var(--v2-ink); }

/* listas e tabelas */
html[data-ui="v2"] .v2s table.v2-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
html[data-ui="v2"] .v2s table.v2-table th { text-align: left; font-size: 12px; color: var(--v2-gray) !important; font-weight: 600; padding: 0 12px 2px; white-space: nowrap; background: none !important; border: 0 !important; text-transform: none; letter-spacing: 0; }
html[data-ui="v2"] .v2s table.v2-table td { padding: 12px; background: var(--v2-soft); white-space: nowrap; border: 0 !important; color: var(--v2-ink); }
html[data-ui="v2"] .v2s table.v2-table td:first-child { border-radius: 14px 0 0 14px; }
html[data-ui="v2"] .v2s table.v2-table td:last-child { border-radius: 0 14px 14px 0; }
html[data-ui="v2"] .v2s table.v2-table tbody tr { cursor: pointer; }
html[data-ui="v2"] .v2s table.v2-table tbody tr:hover td { background: var(--v2-blue-50); }
html[data-ui="v2"] .v2s .v2-tscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
html[data-ui="v2"] .v2s .v2-who { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
html[data-ui="v2"] .v2s .v2-who small { display: block; font-size: 12px; color: var(--v2-gray); font-weight: 500; }
html[data-ui="v2"] .v2s .v2-ini { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--v2-blue-50); color: var(--v2-blue-text); flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-ini.round { border-radius: 50%; }
html[data-ui="v2"] .v2s .v2-ini.o { background: var(--v2-orange-50); color: var(--v2-orange-text); }
html[data-ui="v2"] .v2s .v2-ini.g { background: var(--v2-bg); color: var(--v2-ink-2); }
html[data-ui="v2"] .v2s .v2-lst { display: flex; align-items: center; gap: 12px; padding: 11px 4px; }
html[data-ui="v2"] .v2s .v2-lst + .v2-lst { border-top: 1px solid var(--v2-line); }
html[data-ui="v2"] .v2s .v2-lst.click { cursor: pointer; border-radius: 14px; padding: 11px 8px; }
html[data-ui="v2"] .v2s .v2-lst.click:hover { background: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-lst.sel { background: var(--v2-blue-50); }
html[data-ui="v2"] .v2s .v2-lst .tx { flex: 1; min-width: 0; }
html[data-ui="v2"] .v2s .v2-lst b { font-size: 14px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2s .v2-lst small { font-size: 12px; color: var(--v2-gray); font-weight: 500; }
html[data-ui="v2"] .v2s .v2-lst .val { font-weight: 800; font-size: 14px; text-align: right; white-space: nowrap; }
html[data-ui="v2"] .v2s .v2-lst .pos { width: 22px; font-size: 13px; font-weight: 800; color: var(--v2-gray); text-align: center; }
html[data-ui="v2"] .v2s .v2-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
html[data-ui="v2"] .v2s .v2-chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html[data-ui="v2"] .v2s .t-blue { background: var(--v2-blue-50); color: var(--v2-blue-text); }
html[data-ui="v2"] .v2s .t-orange { background: var(--v2-orange-50); color: var(--v2-orange-text); }
html[data-ui="v2"] .v2s .t-green { background: rgba(31,169,113,.12); color: #12764E; }
html[data-ui="v2"] .v2s .t-red { background: rgba(209,67,67,.12); color: #B42318; }
html[data-ui="v2"] .v2s .t-gray { background: var(--v2-bg); color: var(--v2-ink-2); }
html[data-ui="v2"][data-theme="dark"] .v2s .t-green { color: #4FD49A; }
html[data-ui="v2"][data-theme="dark"] .v2s .t-red { color: #F59A9A; }
html[data-ui="v2"] .v2s .v2-empty { text-align: center; padding: 28px 12px; color: var(--v2-gray); font-size: 14px; font-weight: 500; }

/* botões */
html[data-ui="v2"] .v2s .v2-btn2 { height: 38px; border: 1.5px solid var(--v2-line-strong); border-radius: 12px; background: var(--v2-card); font-weight: 700; font-size: 13px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; color: var(--v2-ink); }
html[data-ui="v2"] .v2s .v2-btn2:hover { border-color: var(--v2-blue); color: var(--v2-blue-text); }
html[data-ui="v2"] .v2s .v2-btn2 svg { width: 16px !important; height: 16px !important; }
html[data-ui="v2"] .v2s .v2-btno { height: 48px; border: 0; border-radius: 14px; background: var(--v2-orange); color: var(--v2-orange-ink); font-weight: 800; font-size: 14px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; width: 100%; box-shadow: 0 6px 16px rgba(250,165,25,.3); }
html[data-ui="v2"] .v2s .v2-btno:hover { filter: brightness(1.04); }
html[data-ui="v2"] .v2s .v2-btnp { height: 42px; border: 0; border-radius: 12px; background: var(--v2-blue); color: #fff; font-weight: 800; font-size: 13px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
html[data-ui="v2"] .v2s .v2-btnp:hover { background: var(--v2-blue-hover); }
html[data-ui="v2"] .v2s .v2-ghost { width: 36px; height: 36px; border-radius: 12px; border: 0; background: transparent; color: var(--v2-ink-2); display: grid; place-items: center; cursor: pointer; }
html[data-ui="v2"] .v2s .v2-ghost:hover { background: var(--v2-bg); color: var(--v2-ink); }
html[data-ui="v2"] .v2s .v2-ghost:disabled { opacity: .35; cursor: default; }

/* ação rápida + comunicados */
/* card "Para hoje" do dashboard (fila do crm-fila.js) */
html[data-ui="v2"] .v2s .v2-hoje .v2-ch { margin-bottom: 12px; align-items: flex-start; }
html[data-ui="v2"] .v2s .v2-hjnova { height: 36px; border: 0; border-radius: 999px !important; background: var(--v2-orange); color: var(--v2-orange-ink); font-weight: 800; font-size: 13px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-hjnova:hover { filter: brightness(1.04); }
html[data-ui="v2"] .v2s .v2-hjnova svg { width: 16px; height: 16px; }
html[data-ui="v2"] .v2s .v2-hjseg { margin-bottom: 8px; }
html[data-ui="v2"] .v2s .v2-hjseg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
html[data-ui="v2"] .v2s .v2-hjseg button svg { width: 13px; height: 13px; }
html[data-ui="v2"] .v2s .v2-hj { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-radius: 14px; cursor: pointer; }
html[data-ui="v2"] .v2s .v2-hj:hover { background: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-hj + .v2-hj { margin-top: 2px; }
html[data-ui="v2"] .v2s .v2-hjic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-hjic svg { width: 17px; height: 17px; }
html[data-ui="v2"] .v2s .v2-hj .tx { flex: 1; min-width: 0; }
html[data-ui="v2"] .v2s .v2-hj .tx b { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; color: var(--v2-ink); min-width: 0; }
html[data-ui="v2"] .v2s .v2-hj .tx b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2s .v2-hj .tx b em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #12764E; white-space: nowrap; }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-hj .tx b em { color: #4FD49A; }
html[data-ui="v2"] .v2s .v2-hj .tx small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: 12px; line-height: 1.55; font-weight: 500; color: var(--v2-gray); }
html[data-ui="v2"] .v2s .v2-hj .tx small .v2-chip { font-size: 11px; padding: 2px 8px; margin-right: 6px; }
html[data-ui="v2"] .v2s .v2-hj .ac { display: flex; gap: 4px; flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-hj .ac :is(a, button) { width: 34px; height: 34px; border-radius: 11px !important; border: 1.5px solid var(--v2-line-strong); background: var(--v2-card); color: var(--v2-ink-2); display: grid; place-items: center; padding: 0; cursor: pointer; }
html[data-ui="v2"] .v2s .v2-hj .ac a:hover { border-color: #25D366; color: #128C4A; }
html[data-ui="v2"] .v2s .v2-hj .ac button:hover { border-color: var(--v2-blue); color: var(--v2-blue-text); }
html[data-ui="v2"] .v2s .v2-hj .ac svg { width: 16px; height: 16px; }
html[data-ui="v2"] .v2s .v2-hjmais { width: 100%; margin-top: 8px; height: 38px; border: 0; border-radius: 12px !important; background: var(--v2-bg); color: var(--v2-ink-2); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
html[data-ui="v2"] .v2s .v2-hjmais:hover { color: var(--v2-ink); }
html[data-ui="v2"] .v2s .v2-hjmais svg { width: 15px; height: 15px; }
html[data-ui="v2"] .v2s .v2-hjvazio { display: flex; align-items: center; gap: 12px; padding: 14px 6px 6px; color: var(--v2-gray); font-size: 13.5px; font-weight: 500; }
html[data-ui="v2"] .v2s .v2-hjvazio svg { box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border-radius: 12px; background: rgba(31,169,113,.12); color: #12764E; flex-shrink: 0; }
@media (max-width: 760px) { html[data-ui="v2"] .v2s .v2-hj .tx small .v2-chip { display: none; } }
html[data-ui="v2"] .v2s .v2-com { display: flex; gap: 12px; padding: 10px; border-radius: 16px; cursor: pointer; align-items: flex-start; }
html[data-ui="v2"] .v2s .v2-com:hover { background: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-com img { width: 72px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-com .tx { flex: 1; min-width: 0; }
html[data-ui="v2"] .v2s .v2-com b { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="v2"] .v2s .v2-com small { font-size: 12px; color: var(--v2-gray); display: block; margin-top: 2px; }

/* blocos antigos incluídos (metas) ganham moldura de cartão */
html[data-ui="v2"] .v2s .v2-legacy > * { border-radius: 24px !important; }

/* responsivo */
@media (max-width: 1180px) {
  html[data-ui="v2"] .v2s .v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ui="v2"] .v2s .v2-row.r3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  html[data-ui="v2"] .v2s :is(.v2-row, .v2-row.r2, .v2-row.r3) { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html[data-ui="v2"] .v2s { gap: 12px; }
  html[data-ui="v2"] .v2s .v2-kpis { gap: 10px; }
  html[data-ui="v2"] .v2s .v2-card { padding: 18px; border-radius: 22px; }
  html[data-ui="v2"] .v2s .v2-kpi .v { font-size: 21px; }
  html[data-ui="v2"] .v2s .v2-kpi .h span { font-size: 12px; }
  html[data-ui="v2"] .v2s .v2-kpi .ic { width: 36px; height: 36px; border-radius: 12px; }
  html[data-ui="v2"] .v2s .v2-bars { height: 190px; }
  html[data-ui="v2"] .v2s .hide-m { display: none !important; }
  html[data-ui="v2"] .v2s table.v2-table td { padding: 10px 8px; }
  /* celular: a coluna do nome ocupa o que sobra e quebra linha; os botões ficam sempre à vista */
  html[data-ui="v2"] .v2s table.v2-table td:has(> .v2-who) { white-space: normal; width: 100%; max-width: 0; }
  html[data-ui="v2"] .v2s table.v2-table td:has(> .v2-who) .v2-who > div { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
  html[data-ui="v2"] .v2s table.v2-table td:has(> .v2-acts) { width: 1%; }
  html[data-ui="v2"] .v2s .v2-filters { gap: 8px; }
  html[data-ui="v2"] .v2s .v2-filters .v2-seg { overflow-x: auto; max-width: 100%; }
}

/* ==========================================
   CLIENTES e FUNIL
   ========================================== */
html[data-ui="v2"] body[data-v2screen] #main-toolbar,
html[data-ui="v2"] body[data-v2screen] #empty-state { display: none !important; }
html[data-ui="v2"] .v2s .v2-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html[data-ui="v2"] .v2s .v2-sbox { display: flex; align-items: center; gap: 8px; background: var(--v2-card); border-radius: 14px; padding: 0 14px; height: 44px; min-width: 260px; color: var(--v2-gray); box-shadow: var(--v2-shadow); }
html[data-ui="v2"] .v2s .v2-sbox svg { width: 17px; height: 17px; }
html[data-ui="v2"] body #main-container .v2-sbox input { border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; flex: 1; font-size: 14px; color: var(--v2-ink) !important; min-width: 0; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500; }
html[data-ui="v2"] .v2s .v2-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
html[data-ui="v2"] .v2s .v2-pills::-webkit-scrollbar { display: none; }
html[data-ui="v2"] .v2s .v2-pills button { border: 0; background: var(--v2-card); box-shadow: var(--v2-shadow); height: 38px; border-radius: 999px; padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--v2-ink-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; }
html[data-ui="v2"] .v2s .v2-pills button em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--v2-bg); border-radius: 999px; padding: 2px 7px; color: var(--v2-gray); }
html[data-ui="v2"] .v2s .v2-pills button.on { background: var(--v2-ink); color: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-pills button.on em { background: color-mix(in srgb, var(--v2-bg) 20%, transparent); color: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-pills button.warn { background: var(--v2-orange-50); color: var(--v2-orange-text); box-shadow: none; }
html[data-ui="v2"] .v2s .v2-stbtn { border: 0; cursor: pointer; font-family: inherit; }
html[data-ui="v2"] .v2s .v2-stbtn:hover { filter: brightness(.95); }
html[data-ui="v2"] .v2s .v2-sq { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--v2-bg); display: inline-grid; place-items: center; color: var(--v2-ink-2); cursor: pointer; text-decoration: none; }
html[data-ui="v2"] .v2s .v2-sq:hover { background: var(--v2-blue-50); color: var(--v2-blue-text); }
html[data-ui="v2"] .v2s .v2-sq.wa:hover { background: rgba(31,169,113,.14); color: #12764E; }
html[data-ui="v2"] .v2s .v2-sq svg { width: 16px !important; height: 16px !important; }
html[data-ui="v2"] .v2s .v2-acts { display: flex; gap: 6px; justify-content: flex-end; }
html[data-ui="v2"] .v2s .v2-more { display: flex; justify-content: center; }
html[data-ui="v2"] .v2s .v2-alarm { color: #D14343; display: inline-flex; }
html[data-ui="v2"] .v2s .v2-alarm svg { width: 14px !important; height: 14px !important; }

/* quadro (funil) */
html[data-ui="v2"] .v2s .v2-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
html[data-ui="v2"] .v2s .v2-col { background: color-mix(in srgb, var(--v2-ink) 5%, var(--v2-bg)); border-radius: 24px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; transition: background .15s, box-shadow .15s; }
html[data-ui="v2"] .v2s .v2-col.ring-1 { background: var(--v2-blue-50); box-shadow: inset 0 0 0 2px var(--v2-blue); }
html[data-ui="v2"] .v2s .v2-colh { display: flex; align-items: center; gap: 8px; padding: 6px 8px 2px; }
html[data-ui="v2"] .v2s .v2-colh i.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-colh b { font-size: 14px; font-weight: 800; white-space: nowrap; }
html[data-ui="v2"] .v2s .v2-colh em { font-style: normal; font-size: 12px; font-weight: 800; background: var(--v2-card); border-radius: 999px; padding: 1px 8px; color: var(--v2-ink-2); }
html[data-ui="v2"] .v2s .v2-colh small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--v2-gray); white-space: nowrap; }
html[data-ui="v2"] .v2s .v2-kcard { background: var(--v2-card); border-radius: 18px; padding: 14px; box-shadow: 0 1px 2px rgba(15,27,38,.06); cursor: grab; transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; gap: 10px; }
html[data-ui="v2"] .v2s .v2-kcard:hover { box-shadow: 0 8px 20px rgba(15,27,38,.1); transform: translateY(-1px); }
html[data-ui="v2"] .v2s .v2-kcard:active { cursor: grabbing; }
html[data-ui="v2"] .v2s .v2-kcard .t { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
html[data-ui="v2"] .v2s .v2-kcard .t b { font-size: 14px; font-weight: 800; line-height: 1.3; display: flex; gap: 6px; align-items: center; }
html[data-ui="v2"] .v2s .v2-kcard .t small { display: block; font-size: 12px; color: var(--v2-gray); font-weight: 500; margin-top: 2px; }
html[data-ui="v2"] .v2s .v2-kcard .meta { display: flex; gap: 6px; flex-wrap: wrap; }
html[data-ui="v2"] .v2s .v2-kcard .meta span { font-size: 11.5px; font-weight: 700; background: var(--v2-bg); border-radius: 8px; padding: 3px 8px; color: var(--v2-ink-2); display: inline-flex; gap: 4px; align-items: center; }
html[data-ui="v2"] .v2s .v2-kcard .meta svg { width: 12px !important; height: 12px !important; }
html[data-ui="v2"] .v2s .v2-kcard .f { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--v2-line-strong); padding-top: 10px; }
html[data-ui="v2"] .v2s .v2-kcard .f b { font-size: 15px; font-weight: 800; }
html[data-ui="v2"] .v2s .v2-kcard .f .none { font-size: 12.5px; font-weight: 700; color: var(--v2-gray); }
html[data-ui="v2"] .v2s .v2-drop { border: 1.5px dashed var(--v2-line-strong); border-radius: 16px; padding: 26px 10px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--v2-gray); }
html[data-ui="v2"] .v2s .v2-colmore { border: 0; background: var(--v2-card); border-radius: 14px; height: 38px; font-size: 13px; font-weight: 700; color: var(--v2-blue-text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* menu de status (crm.js cria #crm-status-menu no body) */
html[data-ui="v2"] body #crm-status-menu { background: var(--v2-card) !important; border: 0 !important; border-radius: 18px !important; box-shadow: var(--v2-shadow-pop) !important; padding: 6px; overflow: hidden; min-width: 210px !important; }
html[data-ui="v2"] body #crm-status-menu button { border: 0 !important; border-radius: 12px; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 700 !important; color: var(--v2-ink-2) !important; background: none !important; }
html[data-ui="v2"] body #crm-status-menu button:hover { background: var(--v2-bg) !important; color: var(--v2-ink) !important; }
html[data-ui="v2"] body #crm-status-menu button[class*="/10"] { background: var(--v2-blue-50) !important; color: var(--v2-blue-text) !important; }
html[data-ui="v2"] body #crm-status-menu button span::first-letter { text-transform: uppercase; }
html[data-ui="v2"] body #crm-status-menu button span { text-transform: lowercase; display: inline-block; }

html[data-ui="v2"] .v2s .show-m, html[data-ui="v2"] .v2s .v2-filtbtn { display: none; }
@media (max-width: 760px) {
  html[data-ui="v2"] .v2s .show-m { display: block; }
  html[data-ui="v2"] .v2s .v2-filtbtn { display: inline-flex; align-self: flex-start; }
  html[data-ui="v2"] .v2s .v2-admfilters:not(.open) { display: none; }
  html[data-ui="v2"] .v2s .v2-sbox { flex: 1 1 100%; min-width: 0; }
  html[data-ui="v2"] .v2s .v2-toolbar .v2-grow { display: none; }
  html[data-ui="v2"] .v2s .v2-kanban { grid-auto-columns: minmax(260px, 86vw); }
}

/* ==========================================
   PROPOSTAS
   ========================================== */
html[data-ui="v2"] .v2s .v2-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
html[data-ui="v2"] .v2s .v2-pcard { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
html[data-ui="v2"] .v2s .v2-pcard:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15,27,38,.09); }
html[data-ui="v2"] .v2s .v2-pcard .hd { display: flex; gap: 12px; align-items: center; }
html[data-ui="v2"] .v2s .v2-pcard .hd .tx { flex: 1; min-width: 0; }
html[data-ui="v2"] .v2s .v2-pcard .hd b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2s .v2-pcard .hd small { font-size: 12px; color: var(--v2-gray); font-weight: 500; }
html[data-ui="v2"] .v2s .v2-pcard .v2-ini.gr { background: rgba(31,169,113,.14); color: #12764E; }
html[data-ui="v2"] .v2s .v2-pcard .kit { font-size: 13px; color: var(--v2-ink-2); font-weight: 600; display: flex; gap: 8px; align-items: center; min-width: 0; }
html[data-ui="v2"] .v2s .v2-pcard .kit span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2s .v2-pcard .kit svg { color: var(--v2-blue); width: 16px !important; height: 16px !important; }
html[data-ui="v2"] .v2s .v2-pcard .specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-ui="v2"] .v2s .v2-pcard .specs div { background: var(--v2-soft); border-radius: 14px; padding: 10px 12px; min-width: 0; }
html[data-ui="v2"] .v2s .v2-pcard .specs small { display: block; font-size: 11px; color: var(--v2-gray); font-weight: 600; }
html[data-ui="v2"] .v2s .v2-pcard .specs b { font-size: 14px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2s .v2-pcard .info { font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; border-radius: 12px; padding: 8px 10px; }
html[data-ui="v2"] .v2s .v2-pcard .info svg { width: 15px !important; height: 15px !important; }
html[data-ui="v2"] .v2s .v2-pcard .info.o { background: var(--v2-orange-50); color: var(--v2-orange-text); }
html[data-ui="v2"] .v2s .v2-pcard .info.b { background: var(--v2-blue-50); color: var(--v2-blue-text); }
html[data-ui="v2"] .v2s .v2-pcard .info.gr { background: rgba(31,169,113,.12); color: #12764E; }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-pcard .info.gr, html[data-ui="v2"][data-theme="dark"] .v2s .v2-pcard .v2-ini.gr { color: #4FD49A; }
html[data-ui="v2"] .v2s .v2-pcard .info.g { background: var(--v2-bg); color: var(--v2-ink-2); }
html[data-ui="v2"] .v2s .v2-pcard .ft { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--v2-line); padding-top: 14px; margin-top: auto; }
html[data-ui="v2"] .v2s .v2-pcard .ft .price { font-size: 20px; font-weight: 800; letter-spacing: -.01em; flex: 1; min-width: 0; }
html[data-ui="v2"] .v2s .v2-pcard .ft .price small { display: block; font-size: 11px; color: var(--v2-gray); font-weight: 600; letter-spacing: 0; }
@media (max-width: 760px) { html[data-ui="v2"] .v2s .v2-pgrid { grid-template-columns: 1fr; } }

/* ==========================================
   ANÁLISE (conteúdo de analise.js com blocos novos)
   ========================================== */
html[data-ui="v2"] .v2s .v2-mini { padding: 18px; display: flex; flex-direction: column; gap: 2px; }
html[data-ui="v2"] .v2s .v2-mini span { font-size: 13px; color: var(--v2-gray); font-weight: 600; }
html[data-ui="v2"] .v2s .v2-mini b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
html[data-ui="v2"] .v2s .v2-mini small { font-size: 12px; color: var(--v2-gray); font-weight: 600; }
html[data-ui="v2"] .v2-analise > div > .grid, html[data-ui="v2"] .v2-analise .grid { gap: 16px !important; }
html[data-ui="v2"] .v2-analise :is([class*="text-[8px]"], [class*="text-[9px]"], [class*="text-[10px]"], [class*="text-[11px]"]) { font-size: 13px !important; letter-spacing: 0 !important; }
html[data-ui="v2"] .v2-analise p[class*="text-[9px]"], html[data-ui="v2"] .v2-analise p[class*="text-[10px]"] { font-size: 12.5px !important; color: var(--v2-gray) !important; }
html[data-ui="v2"] .v2-analise :is(.h-2, [class*="h-1.5"])[class*="bg-neutral-900"] { height: 10px !important; border: 0 !important; border-radius: 999px !important; background: var(--v2-bg) !important; }
html[data-ui="v2"] .v2-analise :is(.h-2, [class*="h-1.5"])[class*="bg-neutral-900"] > div { border-radius: 999px; }
html[data-ui="v2"] .v2-analise .flex.items-center.justify-between.border { border: 0 !important; background: var(--v2-soft); border-radius: 14px !important; padding: 12px 14px !important; }
html[data-ui="v2"] .v2-analise table { border-collapse: separate; border-spacing: 0 6px; }
html[data-ui="v2"] .v2-analise table thead tr { border: 0 !important; }
html[data-ui="v2"] .v2-analise table th { background: none !important; border: 0 !important; font-size: 12px !important; color: var(--v2-gray) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; }
html[data-ui="v2"] .v2-analise table tbody tr { border: 0 !important; }
html[data-ui="v2"] .v2-analise table td { background: var(--v2-soft) !important; font-size: 14px !important; padding: 12px 10px !important; border: 0 !important; }
html[data-ui="v2"] .v2-analise table td:first-child { border-radius: 14px 0 0 14px; }
html[data-ui="v2"] .v2-analise table td:last-child { border-radius: 0 14px 14px 0; }
html[data-ui="v2"] .v2-analise .crm-chart-tip { border-radius: 14px !important; }
html[data-ui="v2"] .v2-analise [class*="border-red-900"] { border: 0 !important; border-radius: 16px !important; }

/* ==========================================
   VENDAS
   ========================================== */
html[data-ui="v2"] .v2s .v2-podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 6px 0 12px; }
html[data-ui="v2"] .v2s .v2-podium .pod { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; max-width: 150px; }
html[data-ui="v2"] .v2s .v2-podium .v2-ini { width: 56px; height: 56px; font-size: 16px; border: 3px solid var(--v2-card); box-shadow: var(--v2-shadow); }
html[data-ui="v2"] .v2s .v2-podium b { font-size: 13px; font-weight: 800; text-align: center; }
html[data-ui="v2"] .v2s .v2-podium small { font-size: 12px; color: var(--v2-gray); font-weight: 700; }
html[data-ui="v2"] .v2s .v2-podium .step { width: 100%; border-radius: 18px 18px 8px 8px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; margin-top: 4px; }
html[data-ui="v2"] body #main-container .v2-pill input.v2-money { width: 96px; height: 30px; border: 0 !important; background: var(--v2-bg) !important; border-radius: 10px !important; padding: 0 8px !important; font-size: 13px !important; box-shadow: none !important; color: var(--v2-ink) !important; }

/* ---------- Produtos: kits em card + equipamentos em lista ---------- */
html[data-ui="v2"] .v2s .v2-kit { position: relative; }
html[data-ui="v2"] .v2s .v2-kit .tags { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="v2"] .v2s .v2-kit .tags svg { width: 13px !important; height: 13px !important; }
html[data-ui="v2"] .v2s .v2-kit .kp { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--v2-ink); }
html[data-ui="v2"] .v2s .v2-kit .kp small { font-size: 15px; color: var(--v2-gray); font-weight: 700; letter-spacing: 0; }
html[data-ui="v2"] .v2s .v2-kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
html[data-ui="v2"] .v2s .v2-kit li { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--v2-ink-2); min-width: 0; }
html[data-ui="v2"] .v2s .v2-kit li svg { width: 16px !important; height: 16px !important; color: var(--v2-blue); flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-kit li b { margin-left: auto; color: var(--v2-ink); text-align: right; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2s .v2-kit .ft .price s { display: block; font-size: 12px; font-weight: 600; color: var(--v2-gray); text-decoration-color: #E5484D; }
html[data-ui="v2"] .v2s .v2-kit.off { opacity: .62; }
html[data-ui="v2"] .v2s .v2-kit.off:hover { opacity: .9; }
html[data-ui="v2"] .v2s .v2-sq.del:hover { background: rgba(229,72,77,.12); color: #D93A40; }
html[data-ui="v2"] .v2s .v2-btnrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
html[data-ui="v2"] .v2s .v2-eqtable tr.off td { opacity: .6; }
html[data-ui="v2"] .v2s .v2-eqn { display: flex; align-items: center; gap: 12px; min-width: 220px; }
html[data-ui="v2"] .v2s .v2-eqn b { display: block; font-weight: 700; white-space: normal; }
html[data-ui="v2"] .v2s .v2-eqn small { font-size: 12px; color: var(--v2-gray); font-weight: 500; }
html[data-ui="v2"] .v2s .v2-eqic { width: 38px; height: 38px; border-radius: 12px; background: var(--v2-card); color: var(--v2-blue); display: grid; place-items: center; flex-shrink: 0; }
html[data-ui="v2"] .v2s .v2-eqic svg { width: 18px !important; height: 18px !important; }
@media (max-width: 760px) {
  html[data-ui="v2"] .v2s .v2-eqtable .hide-sm { display: none; }
  html[data-ui="v2"] .v2s .v2-eqn { min-width: 0; }
  html[data-ui="v2"] .v2s .v2-kit .kp { font-size: 30px; }
}

/* ---------- seletor de visualização (kanban / cards / lista) ---------- */
html[data-ui="v2"] .v2s .v2-viewseg { padding: 3px; }
html[data-ui="v2"] .v2s .v2-viewseg button { padding: 7px 12px; font-size: 13px; }
html[data-ui="v2"] .v2s .v2-ch .v2-viewseg { margin-left: auto; box-shadow: none; background: var(--v2-bg); }
html[data-ui="v2"] .v2s .v2-kcard.ro { cursor: pointer; }
html[data-ui="v2"] .v2s .v2-kcard.ro:active { cursor: pointer; }
html[data-ui="v2"] .v2s .v2-kcard .f .v2-acts { gap: 4px; }
html[data-ui="v2"] .v2s .v2-kcard .f .v2-sq { width: 30px; height: 30px; border-radius: 10px; }
html[data-ui="v2"] .v2s .v2-kcard .f .v2-sq svg { width: 14px !important; height: 14px !important; }
html[data-ui="v2"] .v2s .v2-kinfo { font-size: 12px; font-weight: 700; color: var(--v2-orange-text); background: var(--v2-orange-50); border-radius: 10px; padding: 5px 8px; display: flex; gap: 6px; align-items: center; }
html[data-ui="v2"] .v2s .v2-kinfo svg { width: 13px !important; height: 13px !important; }
html[data-ui="v2"] .v2s .v2-kanban4 { grid-auto-columns: minmax(220px, 1fr); }
html[data-ui="v2"] .v2s .v2-kanban4 .v2-kcard { cursor: pointer; }
html[data-ui="v2"] .v2s .v2-pcard .hd .v2-eqic { color: var(--v2-blue-text); }
@media (max-width: 760px) {
  html[data-ui="v2"] .v2s .v2-viewseg button span { display: none; }
  html[data-ui="v2"] .v2s .v2-viewseg button { padding: 7px 10px; }
}

/* ---------- ícone no lugar das iniciais: pessoa x empresa ---------- */
html[data-ui="v2"] .v2s .v2-ini svg { width: 17px !important; height: 17px !important; }
html[data-ui="v2"] .v2s .v2-ini.pf { background: var(--v2-bg); color: var(--v2-ink-2); }
html[data-ui="v2"] .v2s .v2-ini.pj { background: rgba(124,92,230,.13); color: #5B3FC4; }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-ini.pj { color: #B9A8FF; }
html[data-ui="v2"] .v2s .v2-ini.sm { width: 26px; height: 26px; border-radius: 50%; }
html[data-ui="v2"] .v2s .v2-ini.sm svg { width: 14px !important; height: 14px !important; }
html[data-ui="v2"] .v2s .v2-podium .v2-ini svg { width: 24px !important; height: 24px !important; }

/* ---------- pílulas: vencem a regra geral de reskin.css que força 12px em todo <button> ---------- */
html[data-ui="v2"] body #main-container.v2s :is(.v2-seg button, .v2-pills button, button.v2-pill, button.v2-chip),
html[data-ui="v2"] body #crm360-overlay :is(.v2-seg button, .v2-pills button, button.v2-pill, button.v2-chip) { border-radius: 999px !important; }
html[data-ui="v2"] body #admin-overlay-content .v2a-nav button { border-radius: 14px !important; }

/* ---------- etiqueta de vistoria (card do funil e lista de clientes) ---------- */
html[data-ui="v2"] .v2s .v2-visline { display: block; margin-top: 6px; }
html[data-ui="v2"] .v2s .v2-kcard .v2-visline { margin-top: 0; }
html[data-ui="v2"] .v2s .v2-vischip { font-size: 11.5px; padding: 3px 9px; gap: 5px; }
html[data-ui="v2"] .v2s .v2-vischip svg { width: 13px !important; height: 13px !important; }

/* ---------- lista suspensa personalizada (ui-v2-select.js) ---------- */
html[data-ui="v2"] body #main-container select.v2-select.v2-dd-src { display: none !important; }
html[data-ui="v2"] .v2-dd {
  height: 40px; border: 0; border-radius: 999px !important; padding: 0 12px 0 14px; display: inline-flex; align-items: center; gap: 8px; max-width: 260px;
  background: var(--v2-card); box-shadow: var(--v2-shadow); color: var(--v2-ink-2); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  transition: box-shadow .12s, color .12s;
}
html[data-ui="v2"] .v2-dd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2-dd svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--v2-gray); transition: transform .15s; }
html[data-ui="v2"] .v2-dd:hover { color: var(--v2-ink); }
html[data-ui="v2"] .v2-dd.open svg { transform: rotate(180deg); }
html[data-ui="v2"] .v2-dd.on { color: var(--v2-blue-text); box-shadow: 0 0 0 2px var(--v2-blue), var(--v2-shadow); }
html[data-ui="v2"] .v2-dd.on svg { color: var(--v2-blue-text); }
html[data-ui="v2"] .v2-dd:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--v2-blue) 40%, transparent), var(--v2-shadow); }

html[data-ui="v2"] .v2-ddpop {
  position: fixed; z-index: 160; display: none; flex-direction: column; max-height: 340px; max-width: min(360px, calc(100vw - 16px));
  background: var(--v2-card); color: var(--v2-ink); border-radius: 18px; padding: 6px; box-shadow: var(--v2-shadow-pop); font-family: inherit;
}
html[data-ui="v2"] .v2-ddpop.on { display: flex; animation: v2-ddin .14s ease-out; }
@keyframes v2-ddin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
html[data-ui="v2"] .v2-ddpop .list { overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
html[data-ui="v2"] .v2-ddpop .s { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; margin-bottom: 4px; border-radius: 12px; background: var(--v2-bg); color: var(--v2-gray); flex-shrink: 0; }
html[data-ui="v2"] .v2-ddpop .s svg { width: 15px; height: 15px; flex-shrink: 0; }
html[data-ui="v2"] body .v2-ddpop .s input { flex: 1; min-width: 0; height: 36px !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; font-size: 14px !important; font-weight: 600 !important; color: var(--v2-ink) !important; outline: 0; font-family: inherit !important; }
html[data-ui="v2"] .v2-ddpop .g { font-size: 11.5px; font-weight: 700; color: var(--v2-gray); padding: 10px 10px 4px; }
html[data-ui="v2"] .v2-ddpop .o { display: flex; align-items: center; gap: 10px; border-radius: 11px; padding: 9px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
html[data-ui="v2"] .v2-ddpop .o span { overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2-ddpop .o svg { width: 15px; height: 15px; margin-left: auto; flex-shrink: 0; visibility: hidden; }
html[data-ui="v2"] .v2-ddpop .o.hl { background: var(--v2-bg); }
html[data-ui="v2"] .v2-ddpop .o.sel { background: var(--v2-blue-50); color: var(--v2-blue-text); font-weight: 700; }
html[data-ui="v2"] .v2-ddpop .o.sel svg { visibility: visible; }
html[data-ui="v2"] .v2-ddpop .o.dis { opacity: .45; cursor: default; }
html[data-ui="v2"] .v2-ddpop .vazio { padding: 14px 10px; font-size: 13px; color: var(--v2-gray); text-align: center; }
/* celular: gaveta de baixo */
html[data-ui="v2"] .v2-ddscrim { position: fixed; inset: 0; z-index: 159; background: var(--v2-scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
html[data-ui="v2"] .v2-ddscrim.on { opacity: 1; pointer-events: auto; }
html[data-ui="v2"] .v2-ddpop.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; max-width: none; min-width: 0 !important; max-height: 78vh; border-radius: 24px 24px 0 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); animation: v2-ddsheet .22s cubic-bezier(.2,.8,.2,1); }
@keyframes v2-ddsheet { from { transform: translateY(100%); } to { transform: none; } }
html[data-ui="v2"] .v2-ddpop.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--v2-line-strong); margin: 2px auto 10px; flex-shrink: 0; }
html[data-ui="v2"] .v2-ddpop.sheet h5 { margin: 0 6px 8px; font-size: 16px; font-weight: 800; flex-shrink: 0; }
html[data-ui="v2"] .v2-ddpop.sheet .o { padding: 13px 12px; font-size: 15px; border-radius: 14px; }
@media (max-width: 760px) { html[data-ui="v2"] .v2-dd { max-width: 100%; } }

/* quadros no escuro: coluna mais funda e card mais claro, com borda fina (antes o card sumia na coluna) */
html[data-ui="v2"][data-theme="dark"] .v2s .v2-col { background: var(--v2-bg2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-col.ring-1 { background: var(--v2-blue-50); box-shadow: inset 0 0 0 2px var(--v2-blue); }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-kcard { background: #182532; box-shadow: 0 1px 2px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.07); }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-kcard:hover { background: #1C2B3A; box-shadow: 0 10px 24px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.1); }
html[data-ui="v2"][data-theme="dark"] .v2s .v2-colh em { background: #182532; }
/* linha extra do celular: status + valor embaixo do nome */
html[data-ui="v2"] .v2s .v2-mline { margin-top: 6px; }
@media (max-width: 760px) { html[data-ui="v2"] .v2s .v2-mline { display: flex !important; align-items: center; gap: 8px; flex-wrap: wrap; } html[data-ui="v2"] .v2s .v2-mline b { font-size: 13px; font-weight: 800; } }

/* ==========================================
   FILTROS NO CELULAR (ui-v2-filtros.js): botão ao lado da busca + gaveta de baixo
   ========================================== */
html[data-ui="v2"] .v2-fscrim, html[data-ui="v2"] .v2-fsheet, html[data-ui="v2"] .v2s .v2-fbtn, html[data-ui="v2"] .v2s .v2-fchips { display: none; }
@media (max-width: 760px) {
  html[data-ui="v2"] .v2s:has(.v2-fbtn) :is(.v2-filtbtn, .v2-admfilters) { display: none !important; }
  html[data-ui="v2"] .v2s .v2-fhide { display: none !important; }

  /* barra: busca + filtros na 1ª linha; visualização e botão principal na 2ª */
  html[data-ui="v2"] .v2s .v2-temfbtn { gap: 8px; }
  html[data-ui="v2"] .v2s .v2-temfbtn > .v2-sbox { flex: 1 1 calc(100% - 60px); min-width: 0; }
  html[data-ui="v2"] .v2s .v2-temfbtn > :is(.v2-btnp, .v2-btno) { margin-left: auto; }
  html[data-ui="v2"] .v2s .v2-fbtn {
    display: inline-grid; place-items: center; position: relative; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 14px !important;
    background: var(--v2-card); box-shadow: var(--v2-shadow); color: var(--v2-ink); cursor: pointer; padding: 0;
  }
  html[data-ui="v2"] .v2s .v2-fbtn svg { width: 19px; height: 19px; }
  html[data-ui="v2"] .v2s .v2-fbtn.lbl { display: inline-flex; align-items: center; width: auto; gap: 8px; padding: 0 14px; height: 40px; border-radius: 999px !important; font-size: 13px; font-weight: 700; color: var(--v2-ink-2); font-family: inherit; }
  html[data-ui="v2"] .v2s .v2-fbtn.lbl svg { width: 16px; height: 16px; }
  html[data-ui="v2"] .v2s .v2-fbtn.on { color: var(--v2-blue-text); box-shadow: 0 0 0 2px var(--v2-blue), var(--v2-shadow); }
  html[data-ui="v2"] .v2s .v2-fbtn b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--v2-blue); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--v2-bg); }
  html[data-ui="v2"] .v2s .v2-fbtn.lbl b { position: static; box-shadow: none; }

  /* filtros ligados */
  html[data-ui="v2"] .v2s .v2-fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
  html[data-ui="v2"] .v2s .v2-fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 30px; border: 0; border-radius: 999px !important; padding: 0 8px 0 12px; background: var(--v2-blue-50); color: var(--v2-blue-text); font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
  html[data-ui="v2"] .v2s .v2-fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-ui="v2"] .v2s .v2-fchip svg { width: 14px; height: 14px; flex-shrink: 0; }
  html[data-ui="v2"] .v2s span.v2-fchip { padding-right: 12px; cursor: default; }

  /* linhas que rolam para o lado: a borda some aos poucos do lado que ainda tem conteúdo */
  html[data-ui="v2"] .v2s :is(.v2-pills, .v2-toolbar > .v2-seg).v2-fade-d { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  html[data-ui="v2"] .v2s :is(.v2-pills, .v2-toolbar > .v2-seg).v2-fade-e { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
  html[data-ui="v2"] .v2s :is(.v2-pills, .v2-toolbar > .v2-seg).v2-fade-d.v2-fade-e { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
  html[data-ui="v2"] .v2s .v2-toolbar > .v2-seg:not(.v2-viewseg) { overflow-x: auto; max-width: 100%; scrollbar-width: none; }

  /* gaveta */
  html[data-ui="v2"] .v2-fscrim { display: block; position: fixed; inset: 0; z-index: 150; background: var(--v2-scrim); opacity: 0; pointer-events: none; transition: opacity .22s; }
  html[data-ui="v2"] .v2-fscrim.on { opacity: 1; pointer-events: auto; }
  html[data-ui="v2"] body .v2-fsheet.v2s {
    display: flex; flex-direction: column; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 151; max-height: 86vh; width: auto;
    background: var(--v2-card); border-radius: 26px 26px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.18);
    transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s;
  }
  html[data-ui="v2"] body .v2-fsheet.v2s.on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  html[data-ui="v2"] body .v2-fsheet.v2s.sem-anim { transition: none; }
  html[data-ui="v2"] .v2-fsheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--v2-line-strong); margin: 2px auto 12px; flex-shrink: 0; }
  html[data-ui="v2"] .v2-fsheet .hd { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; flex-shrink: 0; }
  html[data-ui="v2"] .v2-fsheet .hd h5 { margin: 0; font-size: 18px; font-weight: 800; color: var(--v2-ink); }
  html[data-ui="v2"] body .v2-fsheet .hd .lp { border: 0; background: none; color: var(--v2-blue-text); font-size: 14px; font-weight: 700; padding: 6px 8px; border-radius: 10px !important; cursor: pointer; font-family: inherit; }
  html[data-ui="v2"] .v2-fsheet .bd { overflow-y: auto; min-height: 0; flex: 1; padding: 2px 2px 4px; }
  html[data-ui="v2"] .v2-fsheet .v2-ff { margin-top: 12px; }
  html[data-ui="v2"] .v2-fsheet .v2-ff > label { display: block; font-size: 12.5px; font-weight: 700; color: var(--v2-ink-2); margin: 0 2px 6px; }
  html[data-ui="v2"] .v2-fsheet .v2-ffpar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  html[data-ui="v2"] .v2-fsheet .v2-ffpar > .v2-ff { min-width: 0; }
  html[data-ui="v2"] .v2-fsheet .bd { overflow-x: hidden; }
  html[data-ui="v2"] body .v2-fsheet select.v2-select.v2-dd-src { display: none !important; }
  html[data-ui="v2"] body .v2-fsheet .v2-dd { display: flex; width: 100%; max-width: none; height: 46px; justify-content: space-between; border-radius: 14px !important; background: var(--v2-bg); box-shadow: none; font-size: 14px; color: var(--v2-ink); padding: 0 14px; }
  html[data-ui="v2"] body .v2-fsheet .v2-dd.on { box-shadow: inset 0 0 0 1.5px var(--v2-blue); color: var(--v2-blue-text); background: var(--v2-blue-50); }
  /* segmentos viram grade de botões */
  html[data-ui="v2"] body .v2-fsheet .v2-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: none; box-shadow: none; padding: 0; }
  html[data-ui="v2"] body .v2-fsheet .v2-seg button { height: 42px; justify-content: center; border: 0; border-radius: 12px !important; background: var(--v2-bg); color: var(--v2-ink-2); font-size: 13px; font-weight: 700; padding: 0 8px; box-shadow: none; font-family: inherit; cursor: pointer; display: flex; align-items: center; white-space: nowrap; }
  html[data-ui="v2"] body .v2-fsheet .v2-seg button.on { background: var(--v2-blue-50); color: var(--v2-blue-text); box-shadow: inset 0 0 0 1.5px var(--v2-blue); }
  /* valor mín./máx. */
  html[data-ui="v2"] body .v2-fsheet label.v2-pill { min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; width: 100%; border-radius: 14px; background: var(--v2-bg); box-shadow: none; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--v2-gray); }
  html[data-ui="v2"] body .v2-fsheet input.v2-money { flex: 1; min-width: 0; width: 0; height: 34px; border: 0 !important; background: none !important; font-size: 15px !important; font-weight: 700; color: var(--v2-ink) !important; padding: 0 !important; outline: 0; font-family: inherit; }
  /* período personalizado do dashboard */
  html[data-ui="v2"] body .v2-fsheet #dash-period-picker-wrap > .v2-pill { width: 100%; justify-content: center; height: 44px; border-radius: 12px !important; background: var(--v2-bg); box-shadow: none; }
  html[data-ui="v2"] body .v2-fsheet #dash-period-picker-wrap > .v2-pill.on { background: var(--v2-blue-50); color: var(--v2-blue-text); box-shadow: inset 0 0 0 1.5px var(--v2-blue); }
  html[data-ui="v2"] body .v2-fsheet .v2-picker { position: static; margin-top: 8px; box-shadow: none; background: var(--v2-bg); }
  html[data-ui="v2"] body .v2-fsheet .v2-picker input { height: 42px; padding: 0 12px; font-size: 14px; }
  html[data-ui="v2"] body .v2-fsheet .go { flex-shrink: 0; margin-top: 16px; height: 50px; border: 0; border-radius: 14px !important; background: var(--v2-blue); color: #fff; font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(0,143,212,.25); }
}

/* ---- lead do anúncio do Meta (selo na lista, no kanban e o filtro) ---- */
html[data-ui="v2"] .v2s .v2-leadmeta { font-size: 11.5px; padding: 3px 9px; gap: 5px; }
html[data-ui="v2"] .v2s .v2-mstline { margin-top: 6px; }
html[data-ui="v2"] .v2s .v2-mstline .v2-leadmeta { margin-left: 6px; }
html[data-ui="v2"] .v2s .v2-kcard .v2-kmeta { margin-bottom: -4px; }
html[data-ui="v2"] .v2s .v2-pills .v2-pmeta { margin-left: 6px; }
html[data-ui="v2"] .v2s .v2-pills .v2-pmeta svg { width: 15px !important; height: 15px !important; color: var(--v2-orange-text); }
html[data-ui="v2"] .v2s .v2-pills .v2-pmeta.on { background: var(--v2-orange); color: var(--v2-orange-ink); }
html[data-ui="v2"] .v2s .v2-pills .v2-pmeta.on svg { color: var(--v2-orange-ink); }
html[data-ui="v2"] .v2s .v2-pills .v2-pmeta.on em { background: rgba(61,38,0,.12); color: var(--v2-orange-ink); }
