/* v704 (Ian: "nenhum clique pode piscar a tela"): troca de página e envio de formulário sem piscar. O navegador segura a
   tela atual até a próxima estar pronta e troca com um esmaecer curtinho (Chrome, Edge, Safari; nos outros fica como era). */
@view-transition { navigation: auto; }
/* v711 (Ian: "algumas telas piscam e balançam ao trocar"): o espaço da barra de rolagem fica sempre reservado, assim a tela
   não anda pro lado quando uma página tem rolagem e a outra não */
html { overflow-y: scroll; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
:root {
    --brand: #0a8f63;
    --brand-dark: #075e43;
    --brand-soft: #e3f6ee;
    --ink: #07130e;
    --muted: #64657d;
    --line: #e6e6f2;
    --bg: #f5f5fb;
    --card: #ffffff;
    --danger-bg: #fef2f2;
    --danger: #b91c1c;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(7, 94, 67, .04), 0 4px 16px rgba(7, 94, 67, .05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--ink);
    color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 18px; }
.brand span { color: var(--brand); font-weight: 500; }
.topbar nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.topbar .who { color: #cbd5e1; }
.topbar a.who:hover { color: #fff; }

.container { max-width: 960px; margin: 32px auto; padding: 0 16px; }

h1 { margin: 0 0 4px; font-size: 26px; }
h2 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); margin-top: 0; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
}
.card.narrow { max-width: 420px; margin: 48px auto; }

form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input {
    font: inherit;
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

button {
    /* v363: sem isso, o app no celular (WebView) às vezes põe o estilo nativo de botão por cima do nosso
       CSS — é por isso que bolinhas como ".pc-dot"/".act-dot" (border-radius: 50%) viravam uma "cápsula"
       ovalada lá, mesmo com width = height certinhos aqui. */
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    font-weight: 600;
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}
button:hover { background: var(--brand-dark); }

.alert {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

/* ---- Etapa 2: clientes ---- */
a { color: var(--brand-dark); }
.small { font-size: 13px; }
.page-head { display: flex; justify-content: flex-start; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head.card-head { justify-content: space-between; align-items: center; margin-bottom: 4px; }
.page-head.card-head h2 { margin: 0; }

.button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.button:hover { background: var(--brand-dark); }
button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); align-self: flex-start; padding: 10px 16px; }
button.secondary:hover { background: var(--bg); }
form button[type=submit]:not(.secondary) { align-self: flex-start; padding: 11px 24px; }
.card.narrow form button[type=submit] { align-self: stretch; }

select, textarea {
    font: inherit;
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.card.flush { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; text-decoration: none; }
.empty { padding: 24px; color: var(--muted); margin: 0; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e3f6ee; color: #075e43; font-size: 12px; font-weight: 600; white-space: nowrap; }
.notice { background: #ecfdf5; color: #14532d; padding: 10px 12px; border-radius: 8px; margin-top: 12px; font-size: 14px; }
.card.success { border-color: #6ee7b7; }
.card.success textarea { width: 100%; margin: 8px 0 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

.steps { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: step; }
.steps li { counter-increment: step; flex: 1 1 140px; padding: 10px 12px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 14px; }
.steps li::before { content: counter(step) ". "; font-weight: 700; }
.steps li.done { background: #e3f6ee; color: #075e43; }
.steps li.done::before { content: "✓ "; }
.steps li.current { background: var(--brand); color: #fff; font-weight: 600; }

@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
    .topbar { padding: 14px 16px; }
}

/* ---- Área de membros ---- */
.topbar nav a { color: #e2e8f0; }
.topbar nav a:hover { color: #fff; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
label.short { max-width: 260px; }
.kind-switch { display: flex; gap: 20px; flex-wrap: wrap; }
.kind-switch label { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.table-title { padding: 16px 16px 0; }
td.icon { width: 36px; font-size: 18px; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; margin: 0 0 0 12px; }
button.link { background: none; padding: 0; color: var(--brand-dark); font-weight: 600; font-size: 14px; }
button.link:hover { background: none; text-decoration: underline; }
.card-menu-box .link.danger:hover, .card-menu-box button.danger:hover { background: transparent !important; color: #b42318 !important; text-decoration: none; } /* v340/v706 (Ian): "Excluir" no hover só fica vermelho mais forte, sem a bolha rosa em volta */
button.link.danger { color: var(--danger); }

.section-title { margin: 32px 0 0; font-size: 20px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.content-grid .card { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.content-item h3 { margin: 0; font-size: 16px; }
.content-item p { margin: 0; }
.content-item .button { align-self: flex-start; margin-top: auto; }
.button .light { font-weight: 400; opacity: .85; font-size: 13px; }
.video { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
    .topbar { flex-wrap: wrap; gap: 8px; }
    .topbar nav { gap: 12px; flex-wrap: wrap; }
    td.actions form { display: block; margin: 6px 0 0; }
}

[hidden] { display: none !important; }

/* ---- Raio-X e brief ---- */
.progress { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.progress a { display: block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--muted); }
.progress li.current a { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.question { display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.question:last-of-type { border-bottom: 0; }
.qnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3f6ee; color: #075e43; font-size: 12px; margin-right: 4px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); font-size: 13px; cursor: pointer; }
.form-nav { display: flex; gap: 12px; justify-content: flex-end; }
.form-nav button { align-self: auto !important; }
.summary { margin: 8px 0 0; }
.summary dt { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 14px; }
.summary dd { margin: 4px 0 0; white-space: normal; }
.tag.warn { background: #fef2f2; color: var(--danger); }
.tag.pending { background: #fef3c7; color: #92400e; }
details summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); margin-top: 8px; }
.block-title { margin: 20px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.hidden-source { display: none; }
.steps-howto { background: var(--bg); border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.steps-howto p { margin: 0 0 4px; }
#brief form { margin-top: 20px; }
.question > label:first-child { flex-direction: row; align-items: flex-start; gap: 6px; }
.qnum { flex-shrink: 0; }

/* ---- Campanha ---- */
.delay { font-size: 12px; font-weight: 600; color: #075e43; background: #e3f6ee; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.sequence { padding-left: 0; list-style: none; counter-reset: seq; margin: 8px 0 0; }
.sequence li { counter-increment: seq; border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.sequence li p { margin: 6px 0 0; }
.seq-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seq-head strong::before { content: counter(seq) ". "; }
.flow { margin: 8px 0 0; }
.flow > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.flow > div:last-child { border-bottom: 0; }
.flow dt { font-weight: 600; font-size: 14px; }
.flow dd { margin: 4px 0 0; }
.changed { background: #fffbeb; border-radius: 6px; }
.sequence li.changed { border-left-color: #f59e0b; }
.flow > div.changed { padding-left: 10px; padding-right: 10px; }
.client-comment { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; margin: 12px 0; font-size: 14px; }
.rows { display: flex; flex-direction: column; gap: 14px; margin: 10px 0; }
.row-edit { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--bg); border-radius: 8px; }
.row-fields { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-fields input[type=text] { flex: 1 1 220px; }
label.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; }
label.inline input { width: 80px; }
.tag.status-rascunho { background: var(--bg); color: var(--muted); }
.tag.status-enviada { background: #e3f6ee; color: #075e43; }
.tag.status-aprovada { background: #ecfdf5; color: #14532d; }
.tag.status-ajustes_pedidos { background: #fef3c7; color: #92400e; }
.card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px #e3f6ee; }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ---- Métricas ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
table.metrics { font-size: 13px; }
table.metrics th { white-space: nowrap; font-size: 11px; }
table.metrics td.num { text-align: right; white-space: nowrap; }
table.metrics tr.total td { font-weight: 700; background: var(--bg); border-top: 2px solid var(--line); }
.rate { display: inline-block; padding: 1px 7px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.rate-ruim { background: #fef2f2; color: var(--danger); }
.rate-regular { background: #fef3c7; color: #92400e; }
.rate-bom { background: #e3f6ee; color: #075e43; }
.rate-ótimo { background: #ecfdf5; color: #14532d; }
.below { color: #b45309; margin-left: 4px; cursor: help; }
.legend .rate { margin-right: 4px; }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

button.armed { background: var(--danger) !important; color: #fff !important; }
button.link.armed { padding: 4px 10px !important; border-radius: 6px; }

/* ---- Parte 1: área do cliente ---- */
.menu-toggle { display: none; background: transparent !important; border: 0; color: #fff; font-size: 24px; padding: 0 4px !important; line-height: 1; }
.menu-toggle:hover { background: none; }
.topbar nav a.active { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.label { margin: 0 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); }

.welcome { display: flex; flex-direction: column; gap: 14px; }
.welcome .video { max-width: 720px; width: 100%; }
.welcome p { margin: 0; font-size: 16px; }

.meeting { display: flex; gap: 18px; align-items: center; border-left: 4px solid var(--brand); }
.meeting h2 { margin: 0; }
.meeting .muted { margin: 2px 0 0; }
.meeting-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 0; }
.meeting-date .day { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.meeting-date .month { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.card.now { background: #f3faf6; border-color: #c5ebdb; }
.card.now h2 { font-size: 22px; margin-bottom: 6px; }
.card.now p:not(.label) { margin: 0 0 14px; }

.timeline { list-style: none; padding: 0; margin: 12px 0; position: relative; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 7px 0; position: relative; color: var(--muted); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 36px; height: calc(100% - 22px); width: 2px; background: var(--line); }
.timeline li.done::after { background: #6fdcb3; }
.timeline .dot { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); font-size: 13px; font-weight: 700; z-index: 1; }
.timeline li.done { color: #075e43; }
.timeline li.done .dot { background: #e3f6ee; border-color: #6fdcb3; }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.current .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.home-cards .card { margin-top: 20px; }
.home-cards { gap: 0 16px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 12px 0; color: var(--ink); font-size: 16px; list-style-position: outside; }
.faq-answer { padding: 0 0 14px; color: #334155; }

fieldset.checks { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
fieldset.checks legend { font-size: 14px; font-weight: 600; padding: 0 6px; }

/* Botões fixos (WhatsApp / agenda) */
.action-bar { position: fixed; right: 20px; bottom: 20px; display: flex; gap: 10px; z-index: 50; }
.action-bar .action { padding: 12px 18px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); }
.action-bar .whatsapp { background: #166534; }
.action-bar .schedule { background: var(--ink); }
body:has(.action-bar) main { padding-bottom: 80px; }

@media (max-width: 600px) {
    .topbar { flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .main-nav { display: none !important; width: 100%; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding-top: 8px; }
    body.menu-open .main-nav { display: flex !important; }
    .main-nav a, .main-nav .who { padding: 12px 4px; border-top: 1px solid #1e293b; font-size: 16px; }
    .container { margin: 20px auto; }
    h1 { font-size: 23px; }
    .card { padding: 18px; }
    .home-cards { display: block; }
    .action-bar { left: 0; right: 0; bottom: 0; gap: 0; }
    .action-bar .action { flex: 1; text-align: center; border-radius: 0; box-shadow: none; padding: 15px 8px; }
    /* v327: "Agendar reunião" com várias agendas vem dentro de um <details>, que não é .action direto — por isso ficava torto e mais alto */
    .action-bar > .action-pick { flex: 1; display: flex; }
    .action-bar > .action-pick > summary.action { flex: 1; display: flex; align-items: center; justify-content: center; }
    .form-nav { flex-direction: column-reverse; }
    .form-nav button { width: 100%; }
    input, select, textarea { font-size: 16px; } /* evita zoom automático no iPhone */
}

/* ---- Parte 2: Playbook, Primeiros Passos, métricas do cliente ---- */
.topbar nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.pb-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pb-home { font-weight: 700; text-decoration: none; }
.pb-search { flex-direction: row; gap: 8px; margin: 0; flex: 1 1 320px; max-width: 520px; }
.pb-search input { flex: 1; }
.pb-search button { align-self: auto !important; padding: 10px 16px !important; }
.pb-label { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); }
.pb-manual h2 { font-size: 21px; }
.pb-index { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.pb-index li { padding: 3px 0; break-inside: avoid; }
.pb-result { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); margin-top: 12px; }
.pb-result:hover { border-color: var(--brand); }
mark { background: #fef08a; padding: 0 1px; border-radius: 2px; }

.pb-article { line-height: 1.65; font-size: 16px; }
.pb-article h1 { font-size: 28px; margin-bottom: 14px; }
.pb-article h2 { margin: 30px 0 8px; font-size: 20px; }
.pb-article h3 { margin: 24px 0 6px; font-size: 17px; }
.pb-lead { font-size: 18px; color: #334155; }
.pb-hint { font-size: 14px; color: var(--muted); font-style: italic; margin-top: -4px; }
.pb-note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 28px; }
.pb-label + h1 { margin-top: 0; }
p.pb-label { margin-top: 18px; }
.pb-table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; }
.pb-table table { font-size: 14px; }
.pb-table th { background: var(--ink); color: #fff; }
.pb-table td { line-height: 1.5; }
.pb-ul, .pb-ol { padding-left: 22px; }
.pb-ul li, .pb-ol li { margin: 6px 0; }
.pb-check { list-style: none; padding: 0; }
.pb-check li { padding: 6px 0 6px 30px; position: relative; }
.pb-check li::before { content: "☐"; position: absolute; left: 4px; color: var(--brand); font-size: 18px; line-height: 1.3; }
.pb-script { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 10px; margin: 14px 0; overflow: hidden; }
.pb-script-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: #e0e7ff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #075e43; }
.pb-script p { margin: 0; padding: 12px 14px; font-weight: 500; }
.pb-script .copy { align-self: auto !important; padding: 5px 12px !important; font-size: 12px; background: #087a54; text-transform: none; letter-spacing: 0; }
.ph { color: #087a54; font-weight: 700; }
.pb-example { border-left: 4px solid var(--brand); background: #f3faf6; padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; }
.pb-example p { margin: 4px 0; }
.pb-callout { display: flex; gap: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.pb-callout .pb-icon { font-size: 20px; line-height: 1.3; }
.pb-callout p { margin: 4px 0 0; }
.pb-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pb-pager a { font-weight: 600; text-decoration: none; }
.pb-pager .next { margin-left: auto; text-align: right; }
.secondary-link { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line); }

.issues li { margin: 8px 0; }
.export-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.export-form button { align-self: flex-end !important; }

@media (max-width: 760px) {
    .pb-index { columns: 1; }
    .pb-article { font-size: 15px; padding: 18px 16px; }
    .pb-article h1 { font-size: 23px; }
    .pb-search { flex-basis: 100%; }
}

/* Campos sempre cabem na coluna (evita a página ficar mais larga que o celular) */
.grid-2 > *, .grid-3 > * { min-width: 0; }
input:not([type=checkbox]):not([type=radio]), select, textarea { max-width: 100%; min-width: 0; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { width: 100%; }

/* ---- Minha conta ---- */
.account { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 8px 0 0; }
.account dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.account dd { margin: 0; }
.narrow-form { max-width: 420px; }
@media (max-width: 760px) { .account { grid-template-columns: 1fr; gap: 2px; } .account dd { margin-bottom: 10px; } }

/* ---- Boas-vindas (sem vídeo) ---- */
.welcome h2 { font-size: 21px; margin: 0; }
.welcome > p { margin: 0; }
.flow-strip { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: flow; }
.flow-strip li { position: relative; background: var(--bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.flow-strip li strong { color: var(--brand-dark); }
.flow-strip li span { font-size: 13px; color: var(--muted); }
.flow-strip li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--brand); font-weight: 700; z-index: 1; }
.welcome-points { margin: 0; padding-left: 20px; }
.welcome-points li { margin: 5px 0; }
@media (max-width: 760px) {
    .flow-strip { grid-template-columns: 1fr; }
    .flow-strip li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -15px; transform: none; }
}

/* ---- Parte 4: gestão de clientes ---- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-top: 18px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.tag.partner { background: #ede9fe; color: #5b21b6; }
.text-warn { color: #b45309; font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi strong { font-size: 19px; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi.warn { border-color: #fbbf24; background: #fffbeb; }
.kpi.danger { border-color: #fca5a5; background: var(--danger-bg); }
.bar { display: block; height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--brand); }
.kpi.warn .bar span { background: #f59e0b; }

.inline-form { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.inline-form input[type=text] { flex: 1 1 180px; width: auto; }
.inline-form input[type=date], .inline-form input[type=file] { width: auto; }
.inline-form button { align-self: auto !important; padding: 10px 16px !important; }
.contract-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.contract-file .inline-form { margin: 0; }
table.compact td { padding: 8px 10px; }
.followup-form { background: var(--bg); padding: 14px; border-radius: 10px; }
.history-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history-item p { margin: 0; }
.history-item:last-child { border-bottom: 0; }
.delete-form { display: inline; margin: 0; }
.task { display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.task form { margin: 0; }
.task.concluida .task-title { text-decoration: line-through; color: var(--muted); }
button.checkbox { width: 24px; height: 24px; padding: 0 !important; border: 2px solid var(--line); background: #fff; color: var(--brand); border-radius: 6px; font-size: 14px; line-height: 1; }
.task.concluida button.checkbox { background: #e3f6ee; border-color: #6fdcb3; }
fieldset.products { margin-top: 14px; }

@media (max-width: 760px) {
    .kpis { grid-template-columns: 1fr 1fr; }
    .task { grid-template-columns: 30px 1fr auto; }
    .task .tag, .task .muted { grid-column: 2; }
    .history-item { grid-template-columns: 1fr auto; }
    .history-item p { grid-column: 1 / -1; }
}
table.compact { table-layout: fixed; }
table.compact td { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .inline-form > * { flex: 1 1 100%; width: 100% !important; }
    .inline-form label.inline { flex-wrap: wrap; }
}

/* ---- Parte 5: funil ---- */
.container:has(.board) { max-width: 1400px; }
.board-filters select { width: auto; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; margin-top: 12px; align-items: start; }
.column { position: relative; background: #e9eef5; border-radius: 12px; padding: 10px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
/* v334: tentei a flecha por fora do card (2x) e o Ian não gostou de nenhuma (atrapalhou o número da etapa) —
   revertido por enquanto; voltar nisso só depois de ver a tela com ele ao vivo. */
.column.drop { border-color: var(--brand); background: #e3f6ee; }
/* v352: "espaço reservado" (placeholder) mostrando exatamente onde o card vai cair ao soltar */
.drop-placeholder { height: 64px; flex: 0 0 64px; border: 2px dashed var(--brand); border-radius: 8px; background: rgba(11, 154, 107, .08); box-sizing: border-box; }
.column header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 2px 4px 6px; }
.column header strong { font-size: 14px; flex: 1 1 auto; }
.column .count { background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.column .sum { width: 100%; font-size: 12px; color: var(--muted); }
.column.won { background: #ecfdf5; }
.column.lost { background: #fef2f2; }
.cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.deal { display: flex; flex-direction: column; gap: 3px; background: #fff; border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); border: 1px solid var(--line); cursor: grab; }
.deal:hover { border-color: var(--brand); }
.deal.dragging { opacity: .4; }
.deal strong { font-size: 14px; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.deal-meta .value { font-weight: 700; color: #14532d; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.fu { padding: 0 6px; border-radius: 999px; background: var(--bg); }
.fu-late { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.fu-today { background: #fef3c7; color: #92400e; font-weight: 700; }
.deal-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.deal-tags span { font-size: 11px; background: #ede9fe; color: #5b21b6; border-radius: 4px; padding: 0 6px; }
.more { font-size: 13px; font-weight: 600; text-decoration: none; padding: 4px; }
.drop-hint { margin: 0; padding: 4px; }

.closing-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.closing-row form { margin: 0; }
.won-btn { background: #166534 !important; }
.won-btn:hover { background: #14532d !important; }
.lost-form { margin: 0; }
.lost-form.highlight { outline: 3px solid #fca5a5; border-radius: 10px; padding: 6px; }
.reopen { margin-top: 10px; }
.span-2 { grid-column: span 2; }
.timeline-log { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline-log li { border-left: 3px solid var(--line); padding: 4px 0 10px 12px; }
.timeline-log li p { margin: 2px 0 0; }
.timeline-log .ev-followup { border-left-color: var(--brand); }
.timeline-log .ev-nota { border-left-color: #a78bfa; }
@media (max-width: 760px) { .span-2 { grid-column: auto; } .board { grid-auto-columns: 80%; } }

.contact-notes td { padding-top: 0; border-top: 0; }
.contact-notes details summary { margin: 0; }

/* ---- Parte 7: painel ---- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dash-grid > .card { margin-top: 20px; }
.kpis.compact { margin-top: 8px; }
.count-badge { display: inline-block; min-width: 24px; text-align: center; background: var(--bg); border-radius: 999px; font-size: 13px; padding: 0 8px; margin-left: 4px; vertical-align: middle; }
.todo { list-style: none; padding: 0; margin: 8px 0 0; }
.todo li { display: grid; grid-template-columns: 86px 1fr; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo li .muted { grid-column: 2; }
.todo li a { font-weight: 600; text-decoration: none; }
.when { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--muted); }
.when.late { color: var(--danger); }
.when.today { color: #b45309; }
.hbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; text-decoration: none; color: var(--ink); font-size: 13px; }
.hbar-track { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; min-width: 2px; }
.hbar-fill.lost { background: #f87171; }
.hbar-value { font-weight: 600; white-space: nowrap; }
th.num { text-align: right; }
@media (max-width: 760px) {
    .dash-grid { grid-template-columns: 1fr; }
    .hbar { grid-template-columns: 1fr auto; }
    .hbar-track { grid-column: 1 / -1; grid-row: 2; }
}

.task > *, .history-item > * { min-width: 0; }

/* Playbook: ilustrações, capas e falas sem botão de copiar */
.pb-figure { margin: 18px 0; text-align: center; }
.pb-figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pb-manual { display: flow-root; }
.pb-cover { float: right; width: 120px; max-height: 110px; object-fit: contain; margin: 0 0 8px 16px; }
.pb-script.quote { background: #f8fafc; border-color: var(--line); }
.pb-script.quote .pb-script-head { background: #f1f5f9; color: var(--muted); }
@media (max-width: 600px) { .pb-cover { width: 80px; } }

.read-online { border-color: #c5ebdb; background: #f3faf6; }

/* ---- Funil v2: quadro/lista e status ---- */
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.view-switch a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.view-switch a.active { background: var(--ink); color: #fff; }
.tag.status-aberta { background: #e3f6ee; color: #075e43; }
.tag.status-ganha { background: #ecfdf5; color: #14532d; }
.tag.status-perdida { background: #fef2f2; color: var(--danger); }
a.strong { font-weight: 700; color: var(--ink); }
.column header .sum { min-height: 1em; }

.danger-zone { border-color: #fecaca; }
button.danger-btn { color: var(--danger) !important; border-color: #fca5a5 !important; }

/* ---- Painel v2: cards e gráficos ---- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); transition: border-color .15s; min-width: 0; }
.stat:hover { border-color: var(--brand); }
.stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat-sub { font-size: 13px; color: var(--muted); }
.stat.warn { border-color: #fbbf24; background: #fffbeb; }
.stat.danger { border-color: #fca5a5; }
.late-count { color: var(--danger); }
.late-count small { color: var(--danger); }

.chart { width: 100%; height: 220px; display: block; margin-top: 8px; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { stroke: #cbd5e1; stroke-width: 1; }
.chart .bar { fill: var(--brand); }
.chart .hit { fill: transparent; }
.chart .col:hover .bar { fill: var(--brand-dark); }
.chart text { font-size: 11px; fill: var(--muted); text-anchor: middle; font-family: inherit; }
.chart-note { color: var(--muted); margin: 4px 0 0; }
.chart-empty { padding: 30px 0; text-align: center; }
.bars { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.bars .hbar { grid-template-columns: minmax(130px, 200px) 1fr minmax(80px, auto); }
.bars .hbar-track { height: 14px; border-radius: 4px; }
.bars .hbar-fill { border-radius: 0 4px 4px 0; }
.bars a.hbar:hover .hbar-fill { background: var(--brand-dark); }
.muted-bars .hbar-fill { background: #94a3b8; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 6px; }
.mini-stats > div { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.mini-stats strong { font-size: 20px; }
.small-switch a { padding: 5px 10px; font-size: 12px; }
.todo li.is-late a { color: var(--danger); }
.chart-tip { position: fixed; z-index: 100; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 6px; pointer-events: none; box-shadow: 0 4px 12px rgba(15,23,42,.2); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } .mini-stats { grid-template-columns: 1fr 1fr; } .stat-value { font-size: 22px; } }
.container.wide { max-width: 1240px; }
.chart { height: auto; }
.chart text { font-size: 13px; }

/* Contratos em lote */
table.bulk td { vertical-align: middle; }
table.bulk input { width: 100%; min-width: 120px; padding: 8px 10px; }
input.suggested { background: #fffbeb; border-color: #fbbf24; }

.stat-grid.five { grid-template-columns: repeat(5, 1fr); }
.chart .clickable { cursor: pointer; }
.chart a:hover .bar { fill: var(--brand-dark); }
@media (max-width: 1100px) { .stat-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .stat-grid.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stat-grid.five { grid-template-columns: 1fr; } }

tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #f8fafc; }
.small-btn { padding: 6px 12px; font-size: 13px; }

/* ---- v6: atividades, seleção em massa e campo de tags ---- */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.nowrap { white-space: nowrap; }

/* Reloginho de atividade (cards do funil e listas) */
.act-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--muted); border: 1px solid var(--line); line-height: 1.6; white-space: nowrap; }
.act-btn:hover { background: #e2e8f0; border-color: var(--brand); color: var(--ink); }
.act-btn.act-late { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.act-btn.act-today { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.act-btn.act-future { background: #ecfdf5; color: #14532d; border-color: #6ee7b7; }
.fu-future { background: #ecfdf5; color: #14532d; font-weight: 600; }
.deal-wrap { position: relative; cursor: grab; }
/* v337 (igual ao Odoo, sem "fantasma"): o original some de vez durante o arraste — quem aparece é o .drag-ghost
   (clone nosso, sempre com opacidade cheia, seguindo o mouse à mão — não dá pra confiar na "foto" do navegador,
   que em vários navegadores já sai meio transparente sozinha, sem a gente poder controlar) */
.deal-wrap.dragging { opacity: 0; }
/* v346: a rotação (-1.5deg) não vem mais daqui — vai junto com o translate3d() no JS (senão um sobrescreve o outro) */
.drag-ghost { position: fixed; margin: 0; pointer-events: none; z-index: 9999; opacity: 1 !important; box-shadow: 0 16px 30px rgba(15, 23, 42, .3); will-change: transform; }
.deal-wrap .deal { padding-bottom: 30px; }
.deal-wrap .act-btn { position: absolute; right: 8px; bottom: 7px; }

/* Painel de atividades (no card e na janelinha) */
.activity-list { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.act { border: 1px solid var(--line); border-left: 4px solid #6ee7b7; border-radius: 8px; padding: 10px 12px; background: #fff; }
.act.act-late { border-left-color: #ef4444; background: #fffafa; }
.act.act-today { border-left-color: #f59e0b; background: #fffdf5; }
/* v361/v362: bolinha de concluir (canto esquerdo) + ⋮ (canto direito), estilo Todoist igual ao cartão de
   Projeto. Sem o nome do tipo em destaque — o texto da tarefa é o principal; o tipo vira só o iconezinho
   pequeno do lado da data (v362). */
.act-main { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; }
.act-dot { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #c7c9d6; background: #fff; box-shadow: none; flex: none; cursor: pointer; padding: 0; }
.act-dot:hover { border-color: #0a8f63; background: #eaf7f1; }
.act-body { min-width: 0; }
.act-summary-text { cursor: pointer; border-radius: 4px; padding: 1px 3px; margin: 0 0 2px -3px; font-size: 14px; font-weight: 600; color: #0b1813; }
.act-summary-text:hover { background: #f1f2f6; }
/* v734: descrição em toda tarefa (igual ao cartão do quadro) */
.act-has-desc { color: #a3a6b4; font-size: 13px; font-weight: 400; }
.act-desc-toggle { margin: 6px 0 8px; }
.act-desc-toggle > summary { cursor: pointer; list-style: none; font-size: 13px; color: #6b7280; }
.act-desc-toggle > summary::-webkit-details-marker { display: none; }
.act-desc-toggle[open] > summary { margin-bottom: 6px; }
.act-desc-toggle textarea, .act-desc textarea { width: 100%; font: inherit; font-size: 14px; font-weight: 400; resize: vertical; }
.act-desc { display: block; margin: 8px 0; font-size: 13px; }
.act-meta-row { display: flex; align-items: center; gap: 6px; }
.act-meta-row .act-icon { font-size: 13px; line-height: 1; opacity: .8; }
.act-menu { flex: none; align-self: start; }
.act-menu > summary { list-style: none; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: #8b8da3; }
.act-menu > summary::-webkit-details-marker { display: none; }
.act-menu > summary:hover { background: #eef0f5; color: #344054; }
.act-menu .card-menu-box { right: 0; left: auto; top: 26px; bottom: auto; min-width: 110px; }
/* v362: Cancelar à esquerda, Salvar à direita — e os 2 botões ficam do lado direito da linha */
.act-edit-buttons { justify-content: flex-end; }
/* v334: a data inteira é o botão de trocar (não só um iconezinho) — clicável em qualquer lugar do texto */
.act-when { font: inherit; font-size: 12px; font-weight: 700; color: #14532d; margin-left: 6px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; background: none; padding: 2px 5px; border-radius: 5px; cursor: pointer; }
.act-when:hover { background: #e9ebf3; border-color: var(--line); }
.act-when span { opacity: .7; font-size: 11px; }
.act-late .act-when { color: var(--danger); }
.act-today .act-when { color: #b45309; }
.act-qdate-input { margin-left: 6px; font-size: 12px; padding: 2px 4px; height: auto; border-radius: 4px; }
.act-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); gap: 10px; }
.activity-new-toggle { margin-top: 4px; }
.activity-new-toggle summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand-dark); padding: 4px 0; }
.activity-new-toggle[open] summary { margin-bottom: 4px; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-buttons button { align-self: auto !important; }
.activity-form { margin-top: 6px; background: var(--bg); border-radius: 10px; padding: 12px; gap: 10px; }
.next-hint { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; background: #e9f9ef; color: #146c3a; font-weight: 600; font-size: 14px; }
.activity-fields { display: grid; grid-template-columns: minmax(150px, 190px) 160px 1fr; gap: 10px; align-items: start; }
.activity-fields.activity-fields-2 { grid-template-columns: minmax(150px, 220px) 1fr; }
.activity-fields label { font-size: 13px; }
.activity-fields input[name=type_new] { margin-top: 4px; }
.timeline-log .ev-atividade { border-left-color: #10b981; }
.history-details { margin-top: 14px; }
.history-details summary { font-weight: 600; font-size: 14px; }
@media (max-width: 760px) { .activity-fields { grid-template-columns: 1fr; } }
/* v339/v348: a janelinha é um popover (320-420px) grudado no reloginho — a media query acima só reage
   à largura da TELA, não à da janelinha, então o formulário de 3 colunas (Tipo/Data/O que fazer) ficava
   espremido lá dentro mesmo em telas grandes, virando uma bagunça enorme. Empilha sempre dentro dela. */
#activity-dialog .activity-fields { grid-template-columns: 1fr !important; }

/* Janelinha */
.activity-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.activity-dialog[open] { display: flex; flex-direction: column; } /* v338: "display:flex" sem [open] tirava o display:none padrão de TODOS os <dialog class="activity-dialog">, não só o das atividades — vazavam na tela (Scripts da etapa, Novo quadro...) mesmo fechados */
.activity-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.activity-dialog .dialog-body { overflow-y: auto; } /* v338: grudada no reloginho, não pode crescer pra fora da tela quando não tem tarefa (form de "Agendar" sozinho é mais alto) */
/* v340: a janelinha de atividades voltou a ser showModal() (exclusiva, sem deixar abrir 2 janelinhas juntas),
   mas com o fundo transparente — continua parecendo uma janelinha grudada no reloginho, não um modal escuro */
#activity-dialog::backdrop { background: transparent; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.dialog-body { padding: 14px 18px 18px; }

/* KPI clicável na ficha do cliente */
a.kpi { text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--brand); }

/* Seleção em massa */
.check-col { width: 36px; padding-right: 0 !important; }
.check-col input { width: 17px; height: 17px; margin: 2px 0 0; cursor: pointer; }
tr.selected td { background: #f3faf6 !important; }
.bulk-bar { position: sticky; bottom: 16px; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); }
.bulk-bar[hidden] { display: none; }
.bulk-bar select, .bulk-bar input[type=text], .bulk-bar input[type=date] { padding: 8px 10px; width: auto; }
.bulk-bar [data-op] { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulk-bar [data-op][hidden] { display: none; }
.bulk-bar button[type=submit] { padding: 9px 20px !important; align-self: auto !important; }
.bulk-bar button.link { color: #cbd5e1; }
.bulk-bar .all-matching { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; color: #e2e8f0; }
.bulk-bar .tag-field { color: var(--ink); min-width: 260px; }
.bulk-bar button.danger-btn { background: #fff; }

/* Campo de tags */
.tag-field { position: relative; }
.tag-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 44px; cursor: text; position: relative; }
.tag-box:focus-within { outline: 2px solid var(--brand); border-color: var(--brand); }
.tag-box input { border: 0; outline: 0; padding: 4px; flex: 1 1 140px; min-width: 120px; }
.tag-box input:focus { outline: 0; }
.chip { display: inline-flex; align-items: center; gap: 2px; background: #ede9fe; color: #5b21b6; border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 13px; font-weight: 600; }
.chip button { background: transparent; color: #5b21b6; padding: 0 4px; font-size: 15px; line-height: 1; }
.chip button:hover { background: #ddd6fe; }
.tag-menu { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 30; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); display: flex; flex-direction: column; }
.tag-menu button { background: #fff; color: var(--ink); text-align: left; font-weight: 500; padding: 8px 12px; border-radius: 0; font-size: 14px; }
.tag-menu button:hover { background: #f3faf6; }
.tag-menu button.new { color: var(--brand-dark); font-weight: 700; }

.period-switch { margin-top: 8px; flex-wrap: wrap; }
.note-form { margin-top: 8px; }

/* Kit e Início do cliente */
.kit-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.kit-card:hover { border-color: var(--brand); }
.kit-card .button { align-self: flex-start; margin-top: auto; }
.welcome.pb-article h2 { margin-top: 4px; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.preview-box { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-top: 10px; }
.bulk-bar .tag-menu { top: auto; bottom: 100%; border-radius: 8px 8px 0 0; }
td.num { white-space: nowrap; }

/* v7: funil (+ por etapa, idade, período) e painel */
.quick-add { padding: 0 9px; line-height: 22px; font-size: 16px; border-radius: 6px; background: #fff; color: var(--brand-dark); border: 1px solid var(--line); font-weight: 700; }
.quick-add:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.deal-age { font-size: 11px; color: var(--muted); }
.date-filter { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.date-filter input[type=date] { padding: 9px 10px; }
.date-filter label.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.mini-link { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.mini-link:hover { border-color: var(--brand); }
.mini-link strong { font-size: 20px; }
.column header strong { flex: 1 1 100%; }
.column header .quick-add { margin-left: auto; }

/* Ver como cliente */
.view-as-bar { background: #fef3c7; color: #78350f; padding: 10px 24px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; border-bottom: 1px solid #fcd34d; }
.view-as-bar a { font-weight: 700; color: #92400e; }
/* Nome comprido (ex.: e-mail) não sai do card do funil */
.deal strong, .deal .muted { overflow-wrap: anywhere; }
.deal-wrap, .deal { min-width: 0; }

/* Calculadora de fechamento e painel com 6 cards */
.calc { padding: 14px 20px; }
.calc summary { cursor: pointer; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.calc-headline { margin-left: auto; color: var(--brand-dark); }
.mini-stats.four { grid-template-columns: repeat(4, 1fr); }
.stat-grid.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1240px) { .stat-grid.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .stat-grid.six, .mini-stats.four { grid-template-columns: 1fr 1fr; } }
.quick-periods { display: inline-flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* ✓ / ✗ no card do funil */
.close-btns { position: absolute; left: 10px; bottom: 7px; display: flex; gap: 4px; }
.close-btns button { padding: 0 7px; line-height: 20px; font-size: 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.close-btns .win-btn:hover { background: #ecfdf5; color: #14532d; border-color: #6ee7b7; }
.close-btns .lose-btn:hover { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.small-dialog { width: min(440px, calc(100vw - 32px)); }
.calc-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.calc-funnel, .calc-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.calc-rates { grid-template-columns: repeat(3, 1fr); }
.calc-funnel > div, .calc-rates > div { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.calc-rates > div { background: #f3faf6; }
.calc-funnel strong, .calc-rates strong { font-size: 20px; }
@media (max-width: 760px) { .calc-funnel, .calc-rates { grid-template-columns: 1fr 1fr; } }

.sticky-save { position: sticky; bottom: 16px; }

.contact-hint { font-size: 12px; font-weight: 500; color: #14532d; }
.contact-hint.is-new { color: var(--brand-dark); }
/* Botão de excluir: texto sempre visível; no 2º clique fica vermelho cheio com "Confirmar exclusão" */
button.secondary.danger-btn { background: #fff; color: var(--danger) !important; border: 1px solid #fca5a5 !important; }
button.danger-btn.armed { background: var(--danger) !important; color: #fff !important; border-color: var(--danger) !important; }

.project-form { margin-top: 0; align-items: center; }
.project-form label.inline { flex-direction: row; align-items: center; gap: 8px; }

/* Visão geral (bloco :::fluxo) */
.pb-flow { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pb-flow li { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; background: #f3faf6; border: 1px solid #c5ebdb; border-radius: 14px; padding: 18px 14px; }
.pb-flow li + li::before { content: "→"; position: absolute; left: -24px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--brand); }
.pb-flow .flow-icon { font-size: 30px; line-height: 1; }
.pb-flow strong { font-size: 16px; color: var(--brand-dark); }
.pb-flow span:last-child { font-size: 14px; color: var(--ink); }
@media (max-width: 640px) { .pb-flow { grid-template-columns: 1fr; gap: 26px; } .pb-flow li + li::before { content: "↓"; left: 50%; top: -24px; transform: translateX(-50%); } }

.product-split { border: 0; border-top: 1px solid var(--line); margin: 28px 0 8px; }
.product-tabs { flex-wrap: wrap; margin: 6px 0 4px; }

/* Raio-X: resultado (síntese) pra imprimir / salvar PDF */
.form-head { align-items: center; margin-top: 10px; }
.result-doc h2 { margin-top: 26px; padding-bottom: 6px; border-bottom: 2px solid #c5ebdb; }
.result-item { margin: 12px 0; }
.result-q { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.result-a { margin: 4px 0 0; }
.checks-form { gap: 8px; }
@media print {
    .topbar, .no-print, .action-bar, .view-as-bar { display: none !important; }
    body { background: #fff; }
    .container { margin: 0; max-width: none; }
    .result-doc { border: 0; padding: 0; }
}

/* v15: calculadora compacta e colorida; quadro ocupando a largura toda; + Nova etapa */
.calc { padding: 12px 18px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.chip-stat { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid transparent; white-space: nowrap; }
.chip-stat b { font-size: 16px; }
.chip-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.c-blue { background: #f3faf6; border-color: #c5ebdb; color: #075e43; }
.c-green { background: #ecfdf5; border-color: #6ee7b7; color: #14532d; }
.c-yellow { background: #fefce8; border-color: #fde047; color: #854d0e; }
.c-orange { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.c-purple { background: #f5f3ff; border-color: #c4b5fd; color: #5b21b6; }
.container:has(.board) { max-width: none; padding: 0 24px; }
.board { grid-auto-columns: minmax(165px, 1fr); }
.column.add-stage { background: transparent; border: 2px dashed var(--line); margin: 0; gap: 8px; min-height: 120px; }
.column.add-stage input { padding: 7px 9px; }

/* Tag do contato (ex.: Contrato Ativo) no card do funil e na oportunidade */
.deal-tags .contact-tag, .tag.contact-tag { background: #ecfdf5; color: #14532d; }

.bulk-products { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.bulk-products label.check { color: #fff; font-weight: 500; flex-direction: row; gap: 6px; }

/* v21: WhatsApp, quadro do projeto */
.wa-btn { border-color: #86efac !important; color: #14532d !important; }
.head-right { order: 2; margin-left: auto; }
.project-board { margin-top: 0; }
.project-board .column { min-height: 140px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(15,23,42,.06); cursor: grab; }
.pcard[open] { cursor: default; }
.pcard.dragging { opacity: 0; } /* v340: mesmo esquema do Funil — o clone (.drag-ghost) é quem aparece, nítido */
.pcard summary { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; }
.pcard summary::-webkit-details-marker { display: none; }
.pcard-form { gap: 8px; margin-top: 8px; }
.pcard-form input, .pcard-form textarea { padding: 7px 9px; font-size: 13px; }
.pcard-add { gap: 6px; margin-top: 6px; }
.pcard-add input { padding: 7px 9px; font-size: 13px; }
.columns-edit summary { cursor: pointer; }
.columns-edit form { margin-top: 6px; }

.wa-btn.wa-empty { border-style: dashed !important; color: var(--muted) !important; border-color: var(--line) !important; }

/* v23: funil estilo Odoo — colunas largas, cards retangulares, barra Ganho/Perdido ao arrastar */
.board { display: flex; gap: 14px; overflow-x: auto; align-items: flex-start; padding-bottom: 90px; }
.board > .column { flex: 0 0 290px; min-height: 160px; }
.column header { cursor: default; }
.column header[data-drag-col] { cursor: grab; }
.column header strong { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.column header .quick-add { margin-left: 0; }
/* v337: mesma lógica do card — a coluna original some de vez, o .drag-ghost (clone nítido) é quem aparece */
.column.dragging { opacity: 0; }
.drag-ghost-column { width: 290px !important; }
.column.drop-before { box-shadow: inset 4px 0 0 var(--brand); }
.deal-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.deal-wrap:hover { border-color: var(--brand); }
.deal-wrap .deal { border: 0; box-shadow: none; background: transparent; padding: 9px 12px 4px; gap: 2px; }
.deal-title { display: flex; gap: 6px; align-items: baseline; justify-content: space-between; }
.deal-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-company { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .value { font-size: 13px; font-weight: 700; color: #14532d; }
.deal-tags { margin-top: 2px; }
.deal-foot { display: flex; align-items: center; gap: 6px; padding: 2px 10px 8px; min-height: 30px; }
.deal-foot button.win-btn, .deal-foot button.lose-btn { padding: 0 7px; line-height: 20px; font-size: 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.deal-foot .win-btn:hover { background: #ecfdf5; color: #14532d; border-color: #6ee7b7; }
.deal-foot .lose-btn:hover { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.deal-foot .deal-age { white-space: nowrap; }
.deal-links { display: inline-flex; gap: 5px; margin-left: auto; }
.icon-link { display: inline-flex; width: 20px; height: 20px; border-radius: 5px; }
.icon-link svg { width: 20px; height: 20px; }
.icon-link:hover { transform: scale(1.12); }
.deal-wrap .deal-foot .act-btn { position: static; }
.deal-links:empty + .act-btn { margin-left: auto; }
.add-stage-mini { flex: 0 0 auto; }
.add-stage-mini summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 10px; font-size: 20px; font-weight: 700; color: var(--muted); }
.add-stage-mini summary::-webkit-details-marker { display: none; }
.add-stage-mini summary:hover { border-color: var(--brand); color: var(--brand-dark); }
.add-stage-mini[open] { width: 220px; }
.add-stage-mini form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.drop-bar { position: fixed; left: 0; right: 0; bottom: 0; display: none; gap: 14px; padding: 12px 24px 16px; background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08); z-index: 50; }
body.dragging-card .drop-bar { display: flex; }
.drop-zone { flex: 1; text-align: center; padding: 18px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 2px dashed; }
.drop-won { color: #14532d; border-color: #6ee7b7; background: #ecfdf5; }
.drop-lost { color: var(--danger); border-color: #fca5a5; background: var(--danger-bg); }
.drop-zone.drop { border-style: solid; transform: scale(1.02); }
.lost-link b { color: var(--danger); }
@media (max-width: 760px) { .board > .column { flex-basis: 82%; } }
.board > .column { width: 290px; max-width: 290px; min-width: 0; }
.deal-title, .deal-title strong, .deal-company { min-width: 0; }
@media (max-width: 760px) { .board > .column { width: 82%; max-width: 82%; } }

/* v24: quadro do tamanho da tela — cada coluna rola por dentro, a barra de rolagem lateral fica sempre à vista */
.board { height: calc(100vh - 70px); min-height: 460px; padding-bottom: 10px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.board > .column { max-height: 100%; scroll-snap-align: start; }
.board > .column .cards { overflow-y: auto; flex: 1 1 auto; min-height: 40px; padding: 2px 2px 6px; margin: 0 -2px; }
.board.panning { cursor: grabbing; user-select: none; }
.board::-webkit-scrollbar { height: 12px; }
.board::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.board::-webkit-scrollbar-track { background: #e9eef5; border-radius: 999px; }
@media (max-width: 760px) { .board { height: calc(100vh - 40px); scroll-snap-type: x mandatory; } }

/* v24: contratos e documentos */
.doc-list { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.doc-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.doc-list form.inline { display: inline; margin: 0; }
.doc-status { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 7px; background: #f1f5f9; color: var(--muted); width: fit-content; }
.doc-enviado { background: #fef3c7; color: #92400e; }
.doc-assinado { background: #ecfdf5; color: #14532d; }
.doc-recusado, .doc-cancelado { background: var(--danger-bg); color: var(--danger); }
.doc-upload input[type=text] { max-width: 300px; }
.copy-box { display: inline-block; padding: 6px 10px; background: #f1f5f9; border-radius: 6px; user-select: all; word-break: break-all; }
.card-pad { padding: 16px 20px; }
select.suggested { background: #fffbeb; border-color: #fbbf24; }
.text-ok { color: #14532d; }

.topbar { flex-wrap: wrap; row-gap: 8px; }
.topbar nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }

/* v29: card do funil clica em qualquer lugar (dedinho); arrastar continua */
.deal-wrap, .deal-wrap .deal { cursor: pointer; }
.deal-wrap:active { cursor: grabbing; }

/* v30: renomear etapa no quadro; anexar PDF na lista de contratos */
.stage-name { cursor: text; border-radius: 4px; padding: 0 2px; }
.stage-name:hover { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.stage-input { flex: 1 1 auto; font-size: 14px; font-weight: 700; padding: 2px 6px; min-width: 0; }
.attach-btn { cursor: pointer; color: var(--brand-dark); }
.attach-btn:hover { text-decoration: underline; }
.contact-kind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 0; }
.with-deal { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 12px 14px; margin: 4px 0 14px; border: 1px dashed var(--line, #e2e8f0); border-radius: 10px; }
.with-deal .hint { flex-basis: 100%; }
.with-deal label.inline { display: flex; align-items: center; gap: 8px; white-space: nowrap; margin: 0; }
.with-deal label.inline select { width: auto; margin: 0; }
.form-divider { grid-column: 1 / -1; margin: 6px 0 -4px; border-top: 1px solid var(--line); padding-top: 10px; }

/* v31: trilhas da Planilha de Métricas; Kit com cards pequenos */
.tracks-choice { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.tracks-choice .check { margin: 0; }
.rate-neutro { background: #f1f5f9; color: var(--ink); }
.kit-card .button { margin-top: auto; }
.video-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.video-card:hover { border-color: var(--brand); }
form.tracks-choice { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; text-align: left; gap: 8px 18px; }
form.tracks-choice > * { width: auto; margin: 0; }

/* v32: CRM dos clientes */
.trial-bar { background: #fef3c7; color: #92400e; text-align: center; font-size: 13px; padding: 6px 12px; }
.crm-status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.crm-ok { background: #ecfdf5; color: #14532d; }
.crm-trial { background: #fef3c7; color: #92400e; }
.crm-off { background: var(--danger-bg); color: var(--danger); }
.crm-actions { flex-wrap: wrap; gap: 6px; align-items: center; }
.crm-actions form { margin: 0; }
pre.copy-box { white-space: pre-wrap; margin: 6px 0 0; font-size: 13px; }
.crm-access { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 4px 0 10px; }
.crm-login-info { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; }
.crm-login-info { word-break: normal; overflow-wrap: anywhere; line-height: 1.6; }
.preview-new { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }

/* v42 */
.back-link a { font-weight: 700; text-decoration: none; font-size: 15px; }
.back-link a:hover { text-decoration: underline; }
.mark-won { background: #166534; color: #fff; border: 2px solid #166534; font-weight: 700; }
.mark-won:hover { background: #166534; border-color: #166534; color: #fff; }
.mark-lost { background: #dc2626; color: #fff; border: 2px solid #dc2626; font-weight: 700; }
.mark-lost:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.closing-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.closing-row form { margin: 0; }
.field-link { font-size: 12px; font-weight: 600; margin-left: 6px; }
.card-menu { position: relative; }
.card-menu summary { list-style: none; cursor: pointer; padding: 0 6px; border-radius: 6px; font-weight: 700; color: var(--muted); line-height: 22px; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu summary:hover { background: #f1f5f9; color: var(--ink); }
.card-menu-box { position: absolute; right: 0; bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(15,23,42,.15); padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; z-index: 20; min-width: 110px; font-size: 13px; }
.card-menu-box form { margin: 0; }
.quick-odoo .dialog-body { gap: 10px; }
.stars-pick { display: flex; gap: 12px; border: 0; padding: 0; margin: 0; align-items: center; }
.stars-pick .check { margin: 0; color: #d97706; }
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-layer i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation-name: confetti-fall; animation-timing-function: ease-in; animation-fill-mode: forwards; }
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
.confetti-msg { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); background: #fff; color: #14532d; font-size: 28px; font-weight: 800; padding: 16px 28px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.18); animation: pop .4s ease-out; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

/* v46 */
.board-title { cursor: text; display: inline-block; border-radius: 6px; padding: 0 4px; }
.board-title:hover { background: #f1f5f9; }
.pcard-done summary strong { text-decoration: line-through; color: var(--muted); }
.pcard-form select, .pcard-form input[type=date] { padding: 6px 8px; font-size: 13px; }
.tags-cell { cursor: pointer; }
.tags-cell .tags-add { color: var(--muted); font-size: 11px; opacity: 0; }
.tags-cell:hover .tags-add { opacity: 1; }
.tags-input { width: 100%; min-width: 140px; padding: 4px 6px; font-size: 13px; }

/* v48: edição direto na lista de clientes */
.inline-edit { padding: 4px 6px; font-size: 13px; border-radius: 6px; max-width: 190px; background: #fff; }
.inline-edit.saved { border-color: #166534; box-shadow: 0 0 0 2px #bbf7d0; }
.inline-edit.save-error { border-color: var(--danger); }
.inline-status.is-active { color: #14532d; font-weight: 600; }
.inline-status.is-inactive { color: var(--danger); font-weight: 600; }
.bulk-warn { color: #fecaca; }

/* v52: início do contrato direto na lista */
.inline-date { max-width: 150px; }
.stage-auto { align-self: end; margin: 0 0 12px; }

.contract-text { width: 100%; font-family: inherit; font-size: 14px; line-height: 1.5; }

/* v57: equipe e funis */
.owner-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; background: #e0e7ff; color: #075e43; font-size: 11px; font-weight: 700; }
.deal .owner-badge { position: absolute; top: 8px; right: 8px; }
.deal { position: relative; }
.pipeline-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.pipeline-tabs a { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border, #e2e8f0); text-decoration: none; font-weight: 600; color: inherit; background: #fff; }
.pipeline-tabs a.active { background: #0f172a; color: #fff; border-color: #0f172a; }

/* v57: meus projetos */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.project-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; margin: 0; }
.project-card:hover { border-color: #0a8f63; }
.progress { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.progress span { display: block; height: 100%; background: #166534; }

/* v58: Perfil LinkedIn */
.li-diag h2 { margin-top: 28px; } .li-diag h3 { margin-top: 18px; }
.li-copy { position: relative; margin: 10px 0; }
.li-copy pre { white-space: pre-wrap; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 14px 40px; font-family: inherit; font-size: 14px; line-height: 1.5; margin: 0; max-height: 520px; overflow: auto; }
.li-copy [data-copy] { position: absolute; right: 8px; bottom: 8px; }
.li-prompt { max-height: 220px !important; }
.li-plan { list-style: none; padding-left: 0; } .li-plan li { margin: 8px 0; } .li-plan li label { display: flex; gap: 8px; align-items: flex-start; }
.li-plan input:checked + span { text-decoration: line-through; color: #64748b; }
.li-prints { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.li-prints figure { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.li-prints img { width: 140px; max-height: 260px; object-fit: cover; object-position: top; border: 1px solid #e2e8f0; border-radius: 8px; }
.li-about { white-space: pre-wrap; background: #f8fafc; padding: 12px; border-radius: 8px; font-family: inherit; }
.li-preview { border: 1px dashed #94a3b8; border-radius: 8px; padding: 12px 16px; }
.li-status.li-analise { background: #fef3c7; color: #92400e; } .li-status.li-publicado { background: #dbeafe; color: #1e40af; } .li-status.li-concluido { background: #dcfce7; color: #166534; }
.li-self { margin-top: 16px; }
.li-plan li label { font-size: 15px; color: inherit; }

/* v61 */
.crm-payments { margin: 12px 0; line-height: 1.7; }
.stage-del { display: inline; } .stage-del button { padding: 0 4px; color: #94a3b8; }

.access-links { background: #f3faf6; border: 1px solid #c5ebdb; border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; line-height: 1.7; }

/* v65 */
.crm-routine { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fefce8; border: 1px solid #fde68a; }
.crm-routine ol { margin: 6px 0 8px 18px; padding: 0; } .crm-routine li { margin: 2px 0; }
.offer-head { text-align: center; margin-bottom: 8px; } .offer-head h1 { margin-bottom: 4px; }
.offer-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.offer-features li::before { content: '✔ '; color: #166534; font-weight: 700; }
.offer-bonus { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.plan-options label.check { display: block; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; margin: 6px 0; }
.plan-price { font-size: 18px; font-weight: 700; }

/* v66: guia */
.guide details { border-top: 1px solid #e2e8f0; padding: 6px 0; } .guide details:first-child { border-top: 0; }
.guide summary { cursor: pointer; list-style: none; } .guide summary h2 { display: inline; font-size: 17px; }
.guide summary::before { content: '▸ '; color: #64748b; } .guide details[open] summary::before { content: '▾ '; }
.guide li { margin: 6px 0; line-height: 1.5; }

/* v67: visual mais firme (fonte Inter, títulos e botões marcados) e planos em caixas */
.lead { font-size: 18px; font-weight: 500; max-width: 720px; margin: 0 auto; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; background: #fff; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card:has(input:checked) { border-color: #0a8f63; box-shadow: 0 0 0 3px #c5ebdb; }
.plan-card.best { border-color: #166534; }
.plan-flag { position: absolute; top: -11px; right: 12px; background: #166534; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.plan-name { font-size: 18px; }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; } .plan-price small { font-size: 14px; font-weight: 500; color: #64748b; }
.plan-per { font-size: 13px; color: #64748b; }
.plan-off { align-self: flex-start; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.plan-bonus { font-size: 13px; font-weight: 600; color: #166534; }
.plan-note { font-size: 13px; color: #475569; }
.plan-all { text-align: center; margin: 4px 0 14px; }
.int-logo { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }

/* v71: menu do usuário (avatar) */
.user-menu { position: relative; margin-left: 6px; }
.user-menu summary { list-style: none; cursor: pointer; } .user-menu summary::-webkit-details-marker { display: none; }
.user-menu .avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0a8f63; color: #fff; font-size: 13px; font-weight: 700; }
.user-menu-box { position: absolute; right: 0; top: 44px; z-index: 50; min-width: 210px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.15); padding: 8px; display: flex; flex-direction: column; }
.user-menu-box strong { padding: 6px 10px; color: #0f172a; font-size: 14px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px; }
.user-menu-box a { color: #0f172a !important; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.user-menu-box a:hover { background: #f1f5f9; }
.gcal-connect { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; }
.gcal-connect svg { width: 44px; height: 44px; flex: none; }

.li-full { margin-top: 14px; border-top: 1px solid #e2e8f0; padding-top: 10px; } .li-full summary { cursor: pointer; }

/* v74 */
.li-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 24px; }
.li-guide h3 { font-size: 15px; margin: 14px 0 6px; } .li-guide li { margin: 4px 0; line-height: 1.5; }
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #0f172a; color: #fff !important; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 13px; box-shadow: 0 6px 18px rgba(15,23,42,.25); }
.help-fab:hover { background: #0a8f63; }

/* v80: Kit com cards do mesmo tamanho; links e rotina embaixo */
.kit-grid .kit-card { justify-content: flex-start; }
.kit-crm-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.kit-crm-extra .access-links, .kit-crm-extra .crm-routine { margin: 0; }

.client-search { width: 100%; max-width: 420px; margin: 0 0 12px; }

/* ---- Repaginação 10/10/2026: identidade visual B.Flow ---- */
.topbar { background: linear-gradient(100deg, #07130e 0%, #075e43 70%, #0a8f63 130%); padding: 12px 28px; box-shadow: 0 2px 20px rgba(7, 94, 67, .25); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand span { color: #6fdcb3; font-weight: 500; letter-spacing: 0; }
.topbar nav a { color: rgba(255, 255, 255, .78); font-weight: 500; padding: 6px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.topbar nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.topbar nav a.active { color: #fff; font-weight: 700; text-decoration: none; background: rgba(255, 255, 255, .16); }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-weight: 700; letter-spacing: -.015em; }
h3 { letter-spacing: -.01em; }
.card, .stat { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
button, .button { border-radius: 10px; transition: background .15s, box-shadow .15s, transform .15s; }
button:not(.link):not(.checkbox):not(.secondary):not(.secondary-link):hover, .button:hover { box-shadow: 0 6px 18px rgba(10, 143, 99, .28); }
input, select, textarea { border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(10, 143, 99, .18); border-color: var(--brand); }
a { color: var(--brand); }
.tag { background: var(--brand-soft); color: var(--brand-dark); }
.avatar { background: linear-gradient(135deg, #0a8f63, #34c08d) !important; color: #fff !important; }
.label, .pb-label { color: var(--brand); }
@media (max-width: 760px) { .topbar { padding: 12px 16px; } .main-nav a { border-radius: 0; } }
.stat-value { font-weight: 800; letter-spacing: -.02em; color: var(--brand-dark); }
.stat:hover { box-shadow: 0 8px 24px rgba(10, 143, 99, .12); }
body.guest { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, #0a8f63 0%, transparent 60%), linear-gradient(160deg, #07130e 0%, #075e43 100%); }
body.guest .topbar { background: transparent; box-shadow: none; justify-content: center; padding-top: 48px; }
body.guest .brand { font-size: 24px; }
body.guest .brand img { width: 40px; height: 40px; }
body.guest .card.narrow { margin-top: 24px; padding: 36px 32px; border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }

/* Motivos da perda: um clique já marca */
.lost-reasons { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.lost-reasons button { align-self: stretch !important; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 500; padding: 10px 14px; }
.lost-reasons button:hover { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; box-shadow: none !important; }
.lost-other summary { font-size: 14px; }
.lost-other .inline-form { margin-top: 8px; }
.lost-other button { background: var(--danger); }
.lost-other button:hover { background: #991b1b; box-shadow: none !important; }

/* Menu na barra lateral (computador). No celular continua a barra de cima com ☰ */
@media (min-width: 901px) {
    body.side { padding-left: 236px; }
    body.side .topbar { position: fixed; left: 0; top: 0; bottom: 0; width: 236px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 22px 14px 16px; background: linear-gradient(180deg, #07130e 0%, #075e43 78%, #0a8f63 140%); box-shadow: 2px 0 20px rgba(7, 94, 67, .18); overflow-y: auto; z-index: 60; }
    body.side .brand { padding: 0 8px 22px; }
    body.side .topbar nav.main-nav { flex: 1; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 2px; row-gap: 2px; }
    body.side .main-nav > a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
    body.side .main-nav > a.active { background: rgba(255, 255, 255, .16); box-shadow: inset 3px 0 0 #6fdcb3; }
    body.side .user-menu { margin: auto 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
    body.side .user-menu summary { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: #fff; }
    body.side .user-menu summary:hover { background: rgba(255, 255, 255, .1); }
    body.side .user-menu summary::after { content: attr(title); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.side .user-menu-box { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
    body.side .view-as-bar, body.side .trial-bar { position: relative; z-index: 1; }
}

.nav-icon { display: none; width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
@media (min-width: 901px) {
    body.side .nav-icon { display: inline-block; }
    body.side .main-nav > a { justify-content: flex-start; gap: 12px; }
    body.side .main-nav > a .nav-badge { margin-left: auto; }
}

/* Integrações: vitrine com logos originais */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.int-tile { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.int-tile:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(10, 143, 99, .12); transform: translateY(-1px); }
.int-tile img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.int-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.int-body strong { font-size: 15px; }
.int-body .small { line-height: 1.35; }
.int-status { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.int-status.on { background: #dcfce7; color: #14532d; }
.int-logo { width: 26px; height: 26px; object-fit: contain; vertical-align: -7px; margin-right: 8px; border-radius: 5px; }
.gcal-connect > img { flex-shrink: 0; }
.int-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.int-head .int-status { align-self: center; }

/* Minha conta: atalhos de configuração */
.settings-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.settings-links > a, .settings-ver { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.settings-links > a:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(10, 143, 99, .1); }

.plan-list { font-size: 13px; color: var(--muted); }
.plan-list s { color: var(--muted); }

/* Barra lateral recolhível (« / ») */
.side-toggle { display: none; }
@media (min-width: 901px) {
    body.side .side-toggle { display: grid; place-items: center; position: absolute; top: 66px; right: -13px; width: 26px; height: 26px; padding: 0 !important; border-radius: 50%; background: #fff !important; color: var(--brand-dark); border: 1px solid var(--line); font-size: 15px; line-height: 1; box-shadow: 0 2px 8px rgba(7, 94, 67, .2); z-index: 2; }
    body.side .topbar { overflow: visible; }
    body.side .main-nav { overflow-y: auto; }
    body.side { transition: padding-left .2s; }
    body.side .topbar { transition: width .2s; }
    body.side.side-mini { padding-left: 72px; }
    body.side.side-mini .topbar { width: 72px; padding-left: 10px; padding-right: 10px; }
    body.side.side-mini .side-toggle { transform: rotate(180deg); }
    body.side.side-mini .brand { justify-content: center; padding: 0 0 22px; font-size: 0; }
    body.side.side-mini .brand span { display: none; }
    body.side.side-mini .main-nav > a { justify-content: center; padding: 11px 0; }
    body.side.side-mini .nav-label { display: none; }
    body.side.side-mini .main-nav > a .nav-badge { position: absolute; margin: -18px 0 0 22px; font-size: 10px; }
    body.side.side-mini .user-menu summary { justify-content: center; padding: 6px 0; }
    body.side.side-mini .user-menu summary::after { display: none; }
}

/* Área de membros: índice e telas de edição */
.members-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.members-index a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.members-index a:hover { border-color: var(--brand); color: var(--brand); }
.edit-content { gap: 0; margin-top: 0; }
.edit-content .card { display: flex; flex-direction: column; gap: 12px; }
.edit-block-head { display: flex; gap: 16px; align-items: flex-end; }
.edit-block-head > label:first-child { flex: 1; }
.edit-row { display: flex; gap: 12px; align-items: flex-start; }
.edit-row textarea { flex: 1; }
.edit-row .check, .edit-block-head .check { white-space: nowrap; padding-bottom: 10px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); z-index: 5; }
.edit-section summary { cursor: pointer; }
.edit-section form { margin-top: 14px; }

/* Ações do topo: o botão principal (+ Novo…) vem primeiro, à esquerda */
.head-actions > .button:not(.secondary-link), .head-actions > a.button:not(.secondary-link) { order: -1; }
.pcard summary { position: relative; }
.pcard-quick { margin-left: auto; display: inline-flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.pcard:hover .pcard-quick, .pcard[open] .pcard-quick { opacity: 1; }
@media (hover: none) { .pcard-quick { opacity: 1; } }
.pcard-quick button { padding: 0 7px !important; line-height: 20px; font-size: 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); box-shadow: none !important; }
.pcard-quick .pq-done:hover { background: #dcfce7; color: #14532d; border-color: #86efac; }
.pcard-quick .pq-del:hover, .pcard-quick .pq-del.armed { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }

/* Painel: valores grandes não quebram ("R$" junto do número) */
.stat-value { white-space: nowrap; font-size: clamp(19px, 1.75vw, 28px); }
.pcard-quick { align-items: center; }
.pcard-quick .pq-del { order: 0; padding: 0 5px !important; line-height: 16px; font-size: 10px; color: var(--danger); border-color: #fecaca; }
.pcard-quick .pq-done { order: 1; padding: 0 9px !important; line-height: 24px; font-size: 14px; font-weight: 700; color: #14532d; border-color: #86efac; background: #f0fdf4; }

.see-as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 6px; }
.see-as-grid p { margin: 0 0 8px; }
.see-as-grid form { margin: 0; display: block; }
.see-as-grid .inline-form { margin: 0; }

/* Contato da oportunidade: lista da base + "Criar contato" */
label:has(> [data-contact-picker]), .contact-picker-wrap { position: relative; }
.contact-drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(7, 19, 14, .15); padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.contact-drop .cd-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px 4px; }
.contact-drop button { all: unset; box-sizing: border-box; display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; }
.contact-drop .cd-item:hover { background: var(--brand-soft); }
.contact-drop .cd-create { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--brand); font-weight: 600; }
.contact-drop .cd-create:hover { background: var(--brand-soft); }
.contact-hint.is-ok { color: #14532d; }
.contact-hint.is-warn { color: var(--danger); font-weight: 600; }
.contact-drop .cd-create { position: sticky; bottom: -6px; background: #fff; }

/* Funil: escolher o funil numa caixinha */
.pipeline-pick { position: relative; display: inline-block; }
.pipeline-pick summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); margin: 0; }
.pipeline-pick summary::-webkit-details-marker { display: none; }
.pipeline-pick summary h1 { margin: 0; }
.pp-caret { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; background: #fff; }
.pipeline-pick[open] .pp-caret { transform: rotate(180deg); }
.pp-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(7, 19, 14, .15); padding: 6px; display: flex; flex-direction: column; }
.pp-list a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.pp-list a:hover { background: var(--brand-soft); }
.pp-list a.active { color: var(--brand); font-weight: 700; }

/* Ficha do cliente: o seu processo, passo a passo */
.proc-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.proc-steps li { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.proc-steps li.done { background: #f0fdf4; border-color: #bbf7d0; }
.proc-steps li.now { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.proc-steps p { margin: 4px 0 6px; line-height: 1.35; }
.proc-dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--muted); }
.proc-steps li.done .proc-dot { background: #166534; color: #fff; }
.proc-steps li.now .proc-dot { background: var(--brand); color: #fff; }
.head-actions > button:not(.secondary):not(.link) { order: -1; }

.calc-head { align-items: center; }
.calc-report { margin-left: auto; }
.report-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.report-nums > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.report-nums b { font-size: 22px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.02em; }
.report-nums span { font-size: 13px; color: var(--muted); }
.report-nums.rates b { font-size: 18px; }
@media print {
    body.side { padding-left: 0 !important; }
    .help-fab, .side-toggle { display: none !important; }
    .card { box-shadow: none !important; break-inside: avoid; }
}
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .stat-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stat-grid.four { grid-template-columns: 1fr; } }

.pp-caret { font-size: 13px; font-weight: 600; color: var(--brand); border: 1px solid #b5ebd5; background: var(--brand-soft); border-radius: 999px; padding: 5px 12px; }
.pipeline-pick[open] .pp-caret { transform: none; }
.pipeline-pick summary:hover .pp-caret { background: #dedcff; }

/* Painel: coluna da direita com dois cartões; Resultados na largura toda */
.dash-col { display: flex; flex-direction: column; }
.dash-col > .card { margin-top: 20px; }
.dash-full > .card { margin-top: 20px; }

.camp-strategy { margin: 4px 0 14px; gap: 14px; align-items: flex-end; }
.camp-strategy label { min-width: 260px; }

/* Agendar reunião com 2 agendas: escolhe na hora */
.action-pick { position: relative; }
.action-pick summary { list-style: none; cursor: pointer; }
.action-pick summary::-webkit-details-marker { display: none; }
.action-pick-box { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(7, 19, 14, .18); padding: 6px; display: flex; flex-direction: column; }
.action-pick-box a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.action-pick-box a:hover { background: var(--brand-soft); }
/* Barra lateral: sem barra de rolagem lateral embaixo do nome */
@media (min-width: 901px) {
    body.side .topbar nav.main-nav { overflow-x: hidden; }
    body.side .user-menu-box { min-width: 0; width: 100%; }
}

/* Guia na janelinha (só o assunto da tela) */
.help-drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(460px, 100vw); border: 0; border-radius: 16px 0 0 16px; padding: 0; box-shadow: -10px 0 40px rgba(7, 19, 14, .2); }
.help-drawer::backdrop { background: rgba(7, 19, 14, .25); }
.help-drawer .dialog-body { padding: 0 20px; overflow-y: auto; max-height: calc(100vh - 120px); }
.help-drawer details > summary { list-style: none; pointer-events: none; }
.help-drawer details > summary::-webkit-details-marker { display: none; }
.help-more { padding: 12px 20px; margin: 0; border-top: 1px solid var(--line); }

/* Painel → Resultados: números à esquerda, motivos de perda à direita */
.results-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.results-cols .bars .hbar { grid-template-columns: minmax(120px, 170px) 1fr auto; }
@media (max-width: 900px) { .results-cols { grid-template-columns: 1fr; } }
.settings-links.big { margin-top: 20px; }
.settings-links.big > a, .settings-links.big .settings-ver { background: var(--card); padding: 18px 20px; box-shadow: var(--shadow); }
.email-pick { flex-direction: column; gap: 8px; }

/* Topo das telas (padrão): título · botões (principal primeiro) · resumo embaixo */
main > .page-head { flex-direction: column; align-items: flex-start; gap: 0; }
main > .page-head > div:first-child { display: contents; }
main > .page-head h1 { order: 0; margin-bottom: 10px; }
main > .page-head .pipeline-pick { order: 0; margin-bottom: 10px; }
main > .page-head > .head-actions { order: 1; margin: 2px 0 10px; }
main > .page-head > div:first-child > :not(h1):not(.pipeline-pick) { order: 2; margin: 0 0 4px; }

body.guest .offer-head h1, body.guest .offer-head .lead { color: #fff; }
body.guest .offer-head + .muted, body.guest main > p.muted { color: rgba(255, 255, 255, .78) !important; }
body.guest main > p.muted strong { color: #fff; }

/* App no celular: aviso de instalar (só aparece no celular) */
.install-bar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; box-shadow: var(--shadow); }
.install-bar[hidden] { display: none; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-bar > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.install-bar strong { font-size: 14px; }
.install-bar [data-install-go] { flex: none; padding: 9px 14px; }
.install-bar [data-install-close] { flex: none; font-size: 16px; padding: 4px; color: var(--muted, #64748b); }
/* Aberto como app (tela cheia): respeita o entalhe e a barra de gestos do celular */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

/* Contatos e clientes: nome numa linha só */
table.selectable td:nth-child(2) { white-space: nowrap; }

/* Caixa de conversas */
.chat-log { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #f5f5fb; border-radius: 12px; margin-bottom: 12px; }
.chat-log .msg { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.chat-log .msg span { padding: 9px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(7, 19, 14, .06); font-size: 14px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.chat-log .msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-log .msg.mine span { background: var(--brand, #0a8f63); color: #fff; }
.chat-log .msg time { font-size: 11px; color: var(--muted, #64748b); }
.chat-reply { display: flex; gap: 8px; align-items: flex-end; }
.chat-reply textarea { flex: 1; width: 100%; resize: vertical; }
.inbox-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.inbox-account { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.inbox-list { display: flex; flex-direction: column; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.inbox-item[href]:hover { background: var(--brand-soft, #e3f6ee); }
.inbox-item.unread strong { color: var(--brand, #0a8f63); }
.inbox-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox-body .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.inbox-chan { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; background: #64748b; }
.inbox-chan.ch-whatsapp { background: #166534; }
.inbox-chan.ch-linkedin { background: #0a66c2; }
.inbox-chan.ch-instagram { background: #d62976; }

/* Teste grátis do CRM (cadastro sozinho) */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 980px; margin: 24px auto 60px; }
.signup-pitch { color: #fff; padding-top: 12px; }
.signup-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5fe8b6; margin: 0 0 10px; }
.signup-pitch h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 18px; }
.signup-pitch ul { padding-left: 20px; display: grid; gap: 8px; color: rgba(255, 255, 255, .85); }
.signup-form { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.signup-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.signup-form button { margin-top: 6px; padding: 14px; font-size: 16px; }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) { .signup { grid-template-columns: 1fr; gap: 20px; } }

/* Painel no celular: as colunas não passam da largura da tela */
.dash-grid > *, .dash-col, .dash-col > .card { min-width: 0; }
.dash-col svg { max-width: 100%; }

/* Funil: cabeçalho das colunas sempre na mesma altura */
.column header { align-items: center; min-height: 34px; }
.column header strong { flex: 1 1 0; min-width: 0; }
.column header .stage-del { display: inline-flex; margin: 0; }
.column header .sum { flex-basis: 100%; }
.entry-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border: 1px solid var(--brand); }
.entry-card > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }

/* Começar aqui (implantação guiada) */
.start-banner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 18px; margin: 0 0 18px; border-radius: 14px; background: var(--brand-soft, #e3f6ee); color: var(--ink); text-decoration: none; border: 1px solid #c5ebdb; }
.start-banner .start-go { font-weight: 700; color: var(--brand, #0a8f63); white-space: nowrap; }
.start-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.start-progress .bar { height: 10px; border-radius: 999px; background: #e3f6ee; overflow: hidden; }
.start-progress .bar span { display: block; height: 100%; background: var(--brand, #0a8f63); border-radius: 999px; }
.start-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.start-list li { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.start-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #e3f6ee; color: var(--brand, #0a8f63); }
.start-list li.ok .start-num { background: #e8f8ef; color: #14532d; }
.start-list li.ok strong { color: var(--muted); }
.start-body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.start-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.start-app summary { list-style: none; cursor: pointer; }
.start-app p { max-width: 360px; }
/* Tour da primeira vez */
.tour-veil { position: fixed; inset: 0; z-index: 900; background: transparent; }
.tour-veil.dim { background: rgba(7, 19, 14, .45); }
.tour-focus { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--brand, #0a8f63), 0 0 0 9999px rgba(7, 19, 14, .45) !important; border-radius: 12px; }
.tour-box { position: fixed; z-index: 902; width: min(360px, calc(100vw - 24px)); background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px 14px; box-shadow: 0 24px 60px rgba(7, 19, 14, .35); }
.tour-box.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.tour-box h3 { margin: 0 0 6px; font-size: 18px; }
.tour-box .tour-text { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tour-box .tour-count { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--brand, #0a8f63); letter-spacing: .04em; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Assinatura do CRM (checkout) */
.checkout-head { text-align: center; color: #fff; max-width: 720px; margin: 8px auto 26px; }
.checkout-head h1 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); margin: 4px 0 10px; }
.checkout-head p { color: rgba(255, 255, 255, .8); margin: 0; }
.checkout-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5fe8b6 !important; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto 60px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout .card { margin: 0; }
.checkout h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 14px; flex-wrap: wrap; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand, #0a8f63); color: #fff; display: grid; place-items: center; font-size: 13px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:checked) { border-color: var(--brand, #0a8f63); box-shadow: 0 8px 24px rgba(10, 143, 99, .14); }
.plan-opt:has(input:focus-visible) { outline: 3px solid #5fe8b6; outline-offset: 2px; }
.plan-opt .plan-flag { position: absolute; top: -11px; right: 14px; background: var(--brand, #0a8f63); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-opt .plan-name { font-size: 17px; }
.plan-opt .plan-month { font-size: 14px; color: var(--muted); }
.plan-opt .plan-month b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -0.02em; }
.plan-opt .plan-bill { font-size: 14px; font-weight: 600; }
.plan-opt .plan-bill s { color: var(--muted); font-weight: 400; margin-left: 4px; }
.plan-opt .plan-note { font-size: 13px; color: var(--muted); }
.checkout-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; min-width: 0; }
.summary-card h2 { margin-bottom: 10px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); margin: 0 0 8px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; margin: 0 0 6px; }
.sum-total strong { font-size: 30px; letter-spacing: -0.02em; }
.checkout-go { width: 100%; padding: 15px; font-size: 16px; margin: 10px 0 8px; }
.included-card h3 { margin: 0 0 10px; font-size: 16px; }
.included-card ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.included-card li { display: flex; gap: 8px; }
.included-card li::before { content: "✓"; color: #14532d; font-weight: 800; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout-side { position: static; } }
@media (max-width: 560px) { .plan-pick { grid-template-columns: 1fr; } }
.nav-badge.onb-badge { background: #5fe8b6; color: #07130e; }

/* Guia: janelinha sem escurecer a tela (dá pra clicar no menu) */
.help-drawer[open] { position: fixed; inset: 0 0 0 auto; z-index: 800; }
/* Guia: itens mais espaçados (guia inteiro e janelinha) */
.guide details li, .guide > ul li, .help-drawer li { margin-bottom: 12px; line-height: 1.55; }
.guide details ul, .guide > ul, .help-drawer ul { padding-left: 20px; }
/* ✕ vermelho e ✓ verde vivo (funil, projetos e atividades) */
.deal-foot button.lose-btn, .pq-del, .row-acts .act-del { color: #dc2626; border: 1px solid #fecaca; background: #fff5f5; }
.deal-foot button.win-btn, .pq-done, .row-acts .act-ok { color: #166534; border: 1px solid #86efac; background: #f0fdf4; font-weight: 800; }
.deal-foot button.lose-btn:hover, .pq-del:hover, .row-acts .act-del:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.deal-foot button.win-btn:hover, .pq-done:hover, .row-acts .act-ok:hover { background: #166534; color: #fff; border-color: #166534; }
.row-acts { display: inline-flex; gap: 6px; align-items: center; }
.row-acts form { margin: 0; display: inline; }
.row-acts button { width: 32px; height: 32px; padding: 0; border-radius: 999px; font-size: 14px; line-height: 1; }
.row-acts .act-move { background: #f1f5f9; border: 1px solid var(--line); color: var(--ink); }
/* Teste grátis: título e lista mais respirados */
.signup-pitch h1 { margin-bottom: 26px; }
.signup-pitch ul { gap: 14px; font-size: 17px; }
.signup { align-items: center; }

/* Entrada = caixa de conversas novas (12/10/2026, estilo Kommo) */
.column.inbox-col { background: #f5f4ff; border: 2px dashed #b5ebd5; }
.inbox-col header strong { color: #0a8f63; }
.inbox-col header .sum { flex: 1 1 100%; font-size: 12px; color: #6b6a8a; }
.inbox-card { flex-shrink: 0; background: #fff; border-radius: 10px; border-left: 4px solid #0a8f63; box-shadow: 0 1px 3px rgba(11,10,31,.08); overflow: hidden; }
.inbox-card .deal { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 8px; box-shadow: none; border: 0; background: none; }
.inbox-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.inbox-ch { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef; color: #0a8f63; }
.inbox-ch.ch-whatsapp { background: #dcfce7; color: #14532d; }
.inbox-ch.ch-linkedin { background: #dbeafe; color: #0a66c2; }
.inbox-ch.ch-instagram { background: #fce7f3; color: #be185d; }
.inbox-msg { font-size: 13px; color: #5b5a78; line-height: 1.35; }
.inbox-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #eceaf6; }
.inbox-actions form { margin: 0; display: flex; }
.inbox-actions button.inbox-no, .inbox-actions button.inbox-yes { padding: 9px 0; margin: 0; min-height: 0; }
.inbox-actions button { width: 100%; border: 0; border-radius: 0; background: none; padding: 9px 0; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: none; }
.inbox-actions .inbox-no { color: #dc2626; }
.inbox-actions .inbox-yes { color: #fff; background: #166534; }
.inbox-actions .inbox-no:hover { background: #fef2f2; }
.inbox-actions .inbox-yes:hover { background: #14532d; }
.inbox-empty { padding: 8px 4px; }

/* Faixa "Primeiros passos" no Painel com botão Ocultar (12/10/2026) */
.start-banner .start-link { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; color: inherit; text-decoration: none; }
.start-banner .start-hide { margin: 0; }
.start-banner .start-hide button { color: #64748b; }

/* Lembrete rápido (mudou de etapa / concluiu atividade) */
.tip-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 14px 16px 14px 18px; border-radius: 14px; background: #07130e; color: #fff; font-size: 15px; line-height: 1.45; box-shadow: 0 16px 40px rgba(11,10,31,.35); transition: opacity .4s, transform .4s; }
.tip-toast button { background: none; border: 0; color: #5fe8b6; font-size: 16px; cursor: pointer; padding: 4px; box-shadow: none; }
.tip-toast.out { opacity: 0; transform: translate(-50%, 10px); }

/* Card "Aviso no celular" em Conversas */
.push-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.push-card > div:first-child { display: grid; gap: 4px; flex: 1 1 320px; }
.push-actions { display: flex; gap: 8px; }

/* Objetivo e metas do projeto */
.project-goal { display: grid; gap: 8px; margin-top: 14px; }
.project-goal label { display: grid; gap: 6px; font-weight: 700; }
.project-goal textarea { font: inherit; font-weight: 400; }
.project-goal button { justify-self: start; }
/* Mensagens prontas */
.tpl { border: 1px solid var(--line, #e5e7f0); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.tpl.kit { background: var(--bg); }
.tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tpl-actions { display: flex; gap: 8px; align-items: center; }
.tpl-body { margin-top: 6px; font-size: 14px; line-height: 1.5; white-space: normal; }
.tpl-form { display: grid; gap: 8px; margin-top: 8px; }
.tpl-form.inline { display: inline; margin: 0; }
.tpl-new, .tpl-kit { margin-top: 14px; }
.tpl-new summary, .tpl-kit summary { cursor: pointer; font-weight: 600; color: var(--brand, #0a8f63); }
.stage-menu { position: relative; }
.stage-menu summary { list-style: none; cursor: pointer; padding: 0 6px; border-radius: 6px; font-weight: 700; color: #64748b; }
.stage-menu summary::-webkit-details-marker { display: none; }
.stage-menu .card-menu-box { right: auto; left: 0; top: 26px; bottom: auto; min-width: 230px; }
.stage-menu .stage-note { display: block; padding: 6px 10px; font-size: 12px; color: #b91c1c; }
.stage-menu .card-menu-box button, .card-menu-box button[data-templates] { text-align: left; padding: 4px 0; }
.cards > :first-child .card-menu-box { bottom: auto; top: 26px; }
/* Meus links */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.link-list li:first-child { border-top: 0; }
.link-url { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); word-break: break-all; background: none; padding: 0; }
.link-actions { display: flex; gap: 8px; align-items: center; }
.link-form { display: grid !important; grid-template-columns: 1fr 1.3fr 2fr auto; gap: 10px; align-items: end; }
.link-form label { margin: 0; }
.link-form datalist { display: none; }
@media (max-width: 760px) { .link-form { grid-template-columns: 1fr; } }
.link-list li > div { flex: 1 1 0; min-width: 0; }
.wa-help { display: block; text-align: center; margin-top: 10px; }
.confirm-dialog .confirm-q { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
details.tpl > summary { list-style: none; cursor: pointer; }
details.tpl > summary::-webkit-details-marker { display: none; }
details.tpl > summary strong::before { content: '▸ '; color: var(--muted); }
details.tpl[open] > summary strong::before { content: '▾ '; }
.stage-scripts { border: 0; background: none; padding: 0 4px; cursor: pointer; font-size: 13px; color: var(--muted); border-radius: 6px; }
.stage-scripts:hover { background: #fff; color: var(--ink); }
.confirm-dialog [data-yes] { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }

/* Filtro em uso fica destacado (funil e listas): fundo colorido e negrito. Status com a cor dele. */
.board-filters select.on, .board-filters input.on { background-color: #e3f6ee; border-color: #0a8f63; color: #075e43; font-weight: 700; }
.board-filters select.on-aberta { background-color: #0a8f63; border-color: #0a8f63; color: #fff; font-weight: 700; }
.board-filters select.on-ganha { background-color: #14532d; border-color: #14532d; color: #fff; font-weight: 700; }
.board-filters select.on-perdida { background-color: #dc2626; border-color: #dc2626; color: #fff; font-weight: 700; }
.board-filters select[class*="on-"] option { background: #fff; color: #0f1f19; font-weight: 400; }
.board-filters select.on-todos { background-color: #0f1f19; border-color: #0f1f19; color: #fff; font-weight: 700; }
/* Lista de clientes: nome grande e numa linha só */
a.client-name { font-size: 18px; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
/* Apodrecendo: passou do prazo da etapa */
.deal-wrap.rotting .deal { border-left: 4px solid #ea580c; background: #fff7ed; }
.rot-badge { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #c2410c; }
.rot-limit { font-size: 11px; font-weight: 700; color: #c2410c; background: #fff7ed; border-radius: 999px; padding: 1px 6px; }
.rot-form { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e3e2f0; }
.rot-form label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rot-form input[type=number] { width: 70px; padding: 4px 6px; }
.msg-badge { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #fff; background: #0a8f63; border-radius: 999px; padding: 2px 9px; }
.menu-toggle { position: relative; }
.toggle-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.inbox-chan.ch-mail { background: #7c3aed; }
.inbox-ch.ch-mail { background: #ede9fe; color: #6d28d9; }
/* Checklist no cartão do quadro */
.checklist { display: grid; gap: 4px; margin: 6px 0; }
.check-item { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; line-height: 1.35; }
.check-item span { flex: 1; overflow-wrap: anywhere; }
.check-item input[type=checkbox] { margin-top: 2px; }
.check-del { flex: none; opacity: .5; }
.check-item input[type=checkbox] { width: auto; flex: none; }
.check-item input[type=text] { flex: 1; padding: 4px 6px; font-size: 13px; border-color: transparent; background: transparent; }
.check-item input[type=text]:focus { border-color: var(--line, #e3e2f0); background: #fff; }
.check-item.done span { text-decoration: line-through; color: #94a3b8; }
.check-count { font-size: 11px; font-weight: 700; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 1px 7px; }
.check-count.all { color: #14532d; background: #ecfdf5; }
.connect-guide summary { cursor: pointer; }
.connect-guide .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.connect-guide h3 { margin: 6px 0; font-size: 16px; }
.connect-guide ol { padding-left: 18px; margin: 0 0 6px; }
.connect-guide li { margin: 4px 0; font-size: 14px; }
.board-shortcut { margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line, #e2e8f0); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.board-shortcut:hover { border-color: var(--brand, #0a8f63); }
.board-filter { margin-top: 4px; }
.fu.fu-done { background: #ecfdf5; color: #14532d; }
.client-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.client-bar form { margin: 0; }
.client-bar .button.is-on { border-color: var(--brand, #0a8f63); color: var(--brand, #0a8f63); }
.status-pick { width: auto; font-weight: 700; border-radius: 10px; padding: 8px 12px; }
.status-pick.on-aberta { background-color: #0a8f63; border-color: #0a8f63; color: #fff; }
.status-pick.on-ganha { background-color: #14532d; border-color: #14532d; color: #fff; }
.status-pick.on-perdida { background-color: #dc2626; border-color: #dc2626; color: #fff; }
.status-pick.on-todos { background-color: #0f1f19; border-color: #0f1f19; color: #fff; }
.status-pick option { background: #fff; color: #0f1f19; font-weight: 400; }
.accounts-card summary { cursor: pointer; }

.where-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.where-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.where-pick label:has(input:checked) { border-color: var(--brand, #0a8f63); background: #e3f6ee; color: #075e43; }
.where-pick input[type=radio] { margin: 0; width: auto; display: inline-block; }
.where-pick label { flex-direction: row; }

.support-thread { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 10px; }
.support-thread li { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); max-width: 760px; }
.support-thread li.from-bflow { background: #e3f6ee; border-color: #b5ebd5; margin-left: auto; }
.support-thread p { margin: 4px 0; }
.support-form { display: grid; gap: 10px; }

/* Funil: título + funil numa linha; ações (nova, status, kanban/lista) noutra; tudo compacto no celular */
.funnel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.funnel-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.funnel-title h1 { margin: 0; }
.funnel-title .pp-caret { padding: 2px 9px; font-size: 13px; }
.funnel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.view-switch a { display: inline-flex; align-items: center; gap: 6px; }
.view-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-pick.on-aberta { background-color: #ea580c; border-color: #ea580c; color: #fff; }
.date-filter { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.date-filter input[type=date] { width: auto; }
@media (max-width: 700px) {
    .funnel-head { margin-bottom: 8px; }
    .funnel-title h1 { font-size: 24px; }
    .funnel-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .funnel-actions .view-switch { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .funnel-actions .view-switch a { justify-content: center; }
    .funnel-actions > .button, .funnel-actions > button { padding: 10px 12px; font-size: 14px; }
    .date-filter { width: 100%; }
    .date-filter select, .date-filter input[type=date] { flex: 1; min-width: 0; font-size: 13px; padding: 8px 6px; }
}

.act-buttons { display: flex; align-items: center; gap: 12px; }
.act-done-btn { background: #166534; border-color: #166534; color: #fff; }
.act-done-btn:hover { background: #166534; }

[data-href] { cursor: pointer; }

.client-status { max-width: 240px; }
@media (max-width: 700px) { .client-bar { display: grid; grid-template-columns: 1fr auto; } .client-status { max-width: none; width: 100%; } }

/* v181: barra lateral rola sem mostrar a barra cinza */
body.side .topbar, body.side .main-nav { scrollbar-width: none; }
body.side .topbar::-webkit-scrollbar, body.side .main-nav::-webkit-scrollbar { display: none; }
.user-menu-box .um-account { display: flex; align-items: center; gap: 8px; }
.user-menu-box .um-account span { display: flex; flex-direction: column; line-height: 1.2; }
.user-menu-box .um-account small { color: var(--muted); font-size: 12px; font-weight: 400; }
/* v181: cores padrão de status. Em andamento = azul claro (neutro); Ganho/Ativos = o mesmo verde em todo lugar */
select.on-aberta, .status-pick.on-aberta, .board-filters select.on-aberta { background-color: #0284c7; border-color: #0284c7; color: #fff; }
select.on-ganha, .status-pick.on-ganha, .board-filters select.on-ganha { background-color: #166534; border-color: #166534; color: #fff; }
select.on-aberta option, select.on-ganha option, select.on-perdida option, select.on-todos option { background: #fff; color: #0f1f19; }
/* v181: rodapé do card quebra linha em vez de vazar (card com muitos ícones) */
.deal-foot { flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.deal-foot .deal-links { flex-wrap: wrap; }
/* v181: Entrada: Recusar vermelho (esquerda), Aceitar verde (direita) */
.inbox-actions .inbox-no { color: #fff; background: #dc2626; }
.inbox-actions .inbox-no:hover { background: #b91c1c; }
.pp-list .pp-manage { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; color: var(--brand); font-weight: 600; }
/* v181: nova tarefa do quadro = um campo só (tarefa obrigatória + 📅 opcional dentro dele) */
.pcard-field { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; position: relative; }
.pcard-field input[type=text] { border: 0; flex: 1; min-width: 0; background: transparent; box-shadow: none; }
.pcard-field input[type=date] { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.pcard-field .pcard-date { background: transparent; border: 0; padding: 4px 8px; margin: 0; min-height: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pcard-field .pcard-date span:not(:empty) { margin-left: 4px; color: var(--brand); font-weight: 600; }
.cross-history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cross-history .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.cross-form details { margin-top: 8px; }
/* v182: Clientes com linhas finas (próxima atividade numa linha só, cortada com …) */
.clients-table td { vertical-align: middle; }
.clients-table .next-act-cell { min-width: 230px; white-space: nowrap; }
.next-act-text { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; margin-left: 6px; }
/* Integrações mais enxutas */
.int-grid.int-compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.int-compact .int-tile { padding: 10px 12px; gap: 10px; }
.int-compact .int-tile img { width: 28px; height: 28px; }
.int-compact .int-body strong { font-size: 14px; }
.int-compact .int-body .small { font-size: 12px; }
.int-compact > .card { padding: 14px 18px; font-size: 14px; }
.int-compact > .card h2 { font-size: 16px; margin-bottom: 6px; }
.int-compact > .card .int-logo { width: 20px; height: 20px; vertical-align: -4px; }
/* Chave liga/desliga */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; flex-shrink: 0; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: #166534; }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.cross-result { width: 100%; border-collapse: collapse; }
.cross-result td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.cross-result td.num { font-size: 20px; font-weight: 800; text-align: right; white-space: nowrap; width: 90px; }
.cross-result td:last-child { text-align: right; width: 110px; }
.more-cards { width: 100%; margin: 4px 0 2px; background: #fff; color: var(--brand); border: 1px dashed var(--line); font-weight: 600; font-size: 13px; padding: 8px; }
.more-cards:hover { border-color: var(--brand); background: #f5f5ff; }

/* ===== v184: tela mais enxuta (mais coisa por tela no computador) ===== */
@media (min-width: 901px) {
    body { font-size: 14.5px; }
    input, select, textarea { font-size: 14px; }
    .card { padding: 18px 20px; }
    h1 { font-size: 24px; }
    h2 { font-size: 16.5px; }
}

/* Oportunidade: conversa + atividades à esquerda, dados + contrato à direita */
@media (min-width: 1100px) {
    .container:has(.deal-layout) { max-width: 1320px; }
    .deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
    .deal-side .grid-3 { grid-template-columns: 1fr 1fr; }
    .deal-side .grid-3 .span-3 { grid-column: 1 / -1; }
}
.deal-layout .card { margin-bottom: 14px; }
.deal-side .card { padding: 16px 18px; }
.deal-side label { font-size: 13px; }
.deal-side .hint { font-size: 12px; }
.chat-card .chat-log { max-height: 340px; padding: 10px; }
.chat-card .msg span { font-size: 13.5px; padding: 7px 11px; }
.chat-card .msg time { font-size: 11px; }
.chat-card .chat-reply { display: flex; gap: 8px; align-items: flex-end; }
.chat-card .chat-reply textarea { flex: 1; min-height: 40px; font-size: 14px; padding: 8px 10px; }
.chat-card .chat-reply button { padding: 9px 16px; }
.closing { padding: 10px 16px; margin-bottom: 14px; }
.closing .closing-row button, .closing .closing-row .mark-won, .closing .closing-row .mark-lost { padding: 8px 18px; font-size: 14px; }
.entry-card { padding: 12px 16px; }

/* Funil: título + ações numa linha (à esquerda), filtros na outra; busca em destaque */
.funnel-head { justify-content: flex-start; gap: 10px 18px; }
.funnel-search { min-width: 300px; border: 2px solid #b5ebd5 !important; }
.funnel-search:focus { border-color: var(--brand) !important; }
@media (max-width: 700px) {
    .funnel-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; }
    .funnel-actions .view-switch { display: inline-flex; }
    .funnel-search { min-width: 0; width: 100%; }
    .calc { padding: 10px 12px; }
    .calc-chips { gap: 5px; }
    .chip-stat { font-size: 11.5px; padding: 4px 8px; gap: 3px; }
    .chip-stat b { font-size: 13.5px; }
    .chip-sep { display: none; }
}

/* Card do funil: ⋯ sempre no canto de cima à direita; o menu abre por cima de tudo (não corta no fim da coluna) */
.deal-wrap .deal-foot > .card-menu { position: absolute; top: 6px; right: 6px; }
.deal-wrap .deal-title { padding-right: 22px; }
.card-menu-box.floating { position: fixed !important; bottom: auto !important; right: auto !important; z-index: 1000; }

/* Projeto: ⋯ no lugar de Arquivar/Excluir */
.project-menu .card-menu-box { top: 28px; bottom: auto; min-width: 150px; }
.project-menu .card-menu-box button { text-align: left; padding: 4px 0; }

/* Clientes: produto com espaço */
.clients-table .product-cell { min-width: 170px; }

/* Kit Comercial: vídeos dentro do item Treinamentos */
.kit-videos { margin-top: 8px; grid-column: 2; }
.kit-add { grid-column: 2; margin-top: 6px; }
.kit-add form { margin-top: 8px; }

/* Segurança: item ocupa a largura toda (não espremido na coluna da data) */
.security-list li { display: block; }

/* Conversas no celular: blocos de contas e passo a passo bem menores */
@media (max-width: 700px) {
    .accounts-card, .connect-guide { padding: 10px 12px; margin-bottom: 8px; }
    .accounts-card summary, .connect-guide summary { font-size: 13px; }
    .inbox-item { padding: 10px 8px; }
}

/* Atividades: 🕓 junto da data (clicável); ✕ ✓ juntos na direita */
.act-when { border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 12px; }
.act-when:hover { border-color: var(--brand); }
.prefs .card { margin-bottom: 14px; }
.board-filters input.funnel-search { width: 320px; min-width: 320px; max-width: 100%; flex: 0 1 320px; }
@media (max-width: 700px) { .board-filters input.funnel-search { width: 100%; min-width: 0; flex: 1 1 100%; } }

/* ===== v185: card do funil num padrão só (estilo ActiveCampaign) =====
   Linha 1: nome + valor · Linha 2: negócio/empresa + tempo · Selos · Rodapé fixo: ✕ ✓ atividade | ícones | responsável · ⋯ no canto */
.board > .column { flex: 0 0 280px; width: 280px; max-width: 280px; }
@media (max-width: 760px) { .board > .column { flex-basis: 84%; width: 84%; max-width: 84%; } }
.deal-wrap { background: #fff; border: 1px solid #e6e8f0; border-radius: 10px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04); margin-bottom: 8px; }
.deal-wrap:hover { border-color: #b5ebd5; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.deal-wrap .deal.dc { padding: 10px 34px 6px 12px; gap: 3px; display: flex; flex-direction: column; background: transparent; border: 0; box-shadow: none; }
.dc-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dc-name { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 700; color: #101828; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-value { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #14532d; }
.dc-sub { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: #667085; min-width: 0; }
.dc-sub-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-age { flex: 0 0 auto; font-size: 11.5px; color: #98a2b3; }
.dc-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dc-badges .b { font-size: 10.5px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 999px; background: #f2f4f7; color: #475467; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.dc-badges .b-src { background: #eff8ff; color: #175cd3; }
.dc-badges .b-tag { background: #eef8f3; color: #5925dc; }
.dc-badges .b-ctag { background: #ecfdf3; color: #14532d; }
.dc-badges .b-msg { background: #0a8f63; color: #fff; }
.dc-badges .b-rot { background: #fef3f2; color: #b42318; }
.dc-badges .b-doc { background: #ecfdf3; color: #14532d; }
.dc-badges .b-star { background: #fffaeb; color: #b54708; }
.deal-wrap.rotting .deal { border-left: 0; background: transparent; }
.deal-wrap.rotting { border-left: 3px solid #f04438; }
.deal-foot.dc-foot { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 6px 10px 8px 12px; border-top: 1px solid #f2f4f7; min-height: 0; }
.dc-foot .lose-btn, .dc-foot .win-btn { flex: 0 0 auto; width: 24px; height: 24px; padding: 0 !important; line-height: 22px !important; text-align: center; font-size: 12px !important; }
.dc-foot .act-btn { flex: 0 1 auto; position: static; min-width: 0; padding: 1px 7px; font-size: 11.5px; }
.dc-foot .act-btn.act-none { background: #f2f4f7; color: #98a2b3; border-color: #e4e7ec; }
.dc-foot .act-btn.act-late { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.dc-foot .act-btn.act-today, .dc-foot .act-btn.act-future { background: #ecfdf3; color: #14532d; border-color: #abefc6; }
.dc-foot .deal-links { margin-left: auto; flex: 0 0 auto; display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.dc-foot .icon-link, .dc-foot .icon-link svg { width: 20px; height: 20px; }
.dc-foot .owner-badge { position: static; flex: 0 0 auto; width: 24px; height: 24px; min-width: 24px; font-size: 10px; }
.deal-wrap > .card-menu { position: absolute; top: 7px; right: 6px; }
.deal-wrap > .card-menu summary { padding: 0 5px; line-height: 20px; }

/* v185: Contatos cabem na tela (sem a barra de rolagem de lado); se ainda sobrar, a barra fica fininha */
.contacts-table { width: 100%; font-size: 13px; }
.contacts-table td, .contacts-table th { padding-left: 8px; padding-right: 8px; }
.contacts-table td { overflow-wrap: anywhere; }
/* v340: a tag (ex.: "WhatsApp cadastrado") cortava na coluna Tags enquanto Oport./Atividade sobravam espaço —
   dá mais lugar pra Tags e deixa a pill quebrar linha em vez de cortar */
/* v347: a coluna de Tags tava quebrando a palavra NO MEIO ("WhatsAp" / "p") por causa do overflow-wrap:anywhere
   genérico da tabela — troca só aqui pra break-word (só quebra no espaço entre as palavras, não no meio) */
.contacts-table td:nth-child(8) { min-width: 175px; overflow-wrap: break-word; }
.contacts-table td:nth-child(8) .tag { white-space: normal; overflow-wrap: break-word; }
.contacts-table td:nth-child(9), .contacts-table th:nth-child(9) { width: 56px; }
@media (max-width: 1500px) { .contacts-table th:nth-child(3), .contacts-table td:nth-child(3) { display: none; } }
.card.flush { scrollbar-width: thin; }
.card.flush::-webkit-scrollbar { height: 6px; }
.card.flush::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 999px; }

/* Meus links: título do grupo como faixa, links com peso normal */
.links-group { padding-top: 0; overflow: hidden; }
.links-group > h2 { margin: 0 -20px 10px; padding: 10px 20px; background: #eef8f3; color: #087a54; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e4e2ff; }
.links-group .link-list strong { font-weight: 600; color: #101828; }

/* Checklist do cartão */
.checklist .check-add { padding: 7px 9px; font-size: 13px; border: 1px dashed #d0d5dd; background: #fff; }
.checklist .check-add:focus { border-style: solid; border-color: var(--brand); }
.check-item { padding: 3px 4px; border-radius: 6px; align-items: center; }
.check-item:hover { background: #f9fafb; }
.check-item .check-del { opacity: 0; }
.check-item:hover .check-del { opacity: .6; }
@media (hover: none) { .check-item .check-del { opacity: .5; } }

/* v185: oportunidade mais limpa — ganho/perdido pequenos e juntos; sem textos de ajuda na coluna de dados */
.closing:has(.closing-row) { background: none; border: 0; box-shadow: none; padding: 0; margin: -4px 0 12px; }
.closing .closing-row { justify-content: flex-start; gap: 8px; }
.closing .closing-row form { margin: 0; }
.closing .closing-row .mark-won, .closing .closing-row .mark-lost { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.entry-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.entry-card > div { flex: 1 1 260px; }
.entry-card form { margin: 0; }
.entry-card .mark-won, .entry-card .mark-lost { padding: 6px 14px; font-size: 13px; }
.deal-layout .deal-side .hint, .deal-layout .deal-side .form-divider { display: none; }
.deal-layout .deal-side label { margin-bottom: 0; }
.deal-layout .deal-side .grid-3 { gap: 8px 10px; }
.side-box { padding: 12px 16px; }
.side-box > summary { cursor: pointer; list-style: none; }
.side-box > summary::-webkit-details-marker { display: none; }
.side-box[open] > summary { margin-bottom: 8px; }
.side-delete { text-align: right; margin: 4px 4px 16px; }
.deal-layout .deal-side .contact-hint { display: none; }

/* ===== v186: card do funil — todos do mesmo tamanho =====
   1: nome · 🕓 (direita) | 2: empresa/negócio · valor | 3: ⌛ tempo + selos (1 linha) | rodapé: ícones · ⋯ ✕ ✓ (✓ na ponta direita) */
.deal-wrap .deal.dc { padding: 10px 12px 6px; gap: 4px; }
.dc-top { padding-right: 78px; min-height: 20px; }
.dc-sub { min-height: 18px; }
.dc-sub .dc-value { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #14532d; }
.dc-badges { flex-wrap: wrap; overflow: visible; min-height: 20px; row-gap: 3px; align-items: center; margin-top: 2px; } /* v708 (Ian): com muita tag o card cresce em vez de cortar */
.dc-badges .dc-age { flex: 0 0 auto; font-size: 11.5px; color: #667085; margin-right: 2px; }
.dc-badges .b { flex: 0 0 auto; }
.dc-clock { position: absolute; top: 8px; right: 8px; }
.dc-clock .act-btn { position: static; padding: 1px 8px; font-size: 11.5px; }
.dc-clock .act-btn.act-none { background: #f2f4f7; color: #98a2b3; border-color: #e4e7ec; }
.dc-clock .act-btn.act-late { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.dc-clock .act-btn.act-today, .dc-clock .act-btn.act-future { background: #ecfdf3; color: #14532d; border-color: #abefc6; }
.deal-foot.dc-foot { height: 38px; padding: 0 8px 0 12px; gap: 6px; }
.dc-foot .deal-links { margin-left: 0; margin-right: auto; align-items: center; }
.dc-foot > .card-menu { position: static; }
.dc-foot > .card-menu summary { padding: 0 6px; line-height: 22px; }
.deal-wrap > .card-menu { display: none; }
.board-filters .row-break { flex-basis: 100%; height: 0; padding: 0; margin: 0; }


/* Oportunidade: ganho/perdido pequenos, no alto da coluna Dados (direita), um do lado do outro */
.deal-side .closing:has(.closing-row) { margin: 0 0 10px; }
.deal-side .closing .closing-row { justify-content: flex-end; }
.deal-side .closing:not(:has(.closing-row)) { padding: 12px 16px; margin-bottom: 14px; }


.types-form .type-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.types-form .type-row input[type=text] { flex: 1; }


.link-menu .card-menu-box { right: 0; left: auto; top: 30px; bottom: auto; min-width: 280px; padding: 10px 12px; }
.link-menu .link-edit { display: grid; gap: 6px; margin-bottom: 6px; }
.link-actions { display: flex; align-items: center; gap: 6px; }


.client-shortcuts { display: inline-flex; gap: 8px; margin-left: 8px; }
.client-shortcuts a { color: var(--muted); text-decoration: none; font-weight: 500; }
.client-shortcuts a:hover { color: var(--brand); }


/* Área de membros: blocos recolhidos, um embaixo do outro */
details.acc { padding: 0; margin-bottom: 10px; }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 20px; display: flex; align-items: center; gap: 8px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '›'; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .15s; }
details.acc[open] > summary::after { transform: rotate(90deg); }
details.acc > summary h2 { margin: 0; font-size: 15.5px; }
details.acc[open] { padding-bottom: 16px; }
details.acc > :not(summary) { margin-left: 20px; margin-right: 20px; }

.cross-hist-title { margin: 16px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.cross-history li { display: flex; gap: 8px; align-items: baseline; }
.cross-history li > a { margin-left: auto; white-space: nowrap; }
.board .deal-wrap { height: 126px; box-sizing: border-box; overflow: visible; } .dc-top, .dc-sub { height: 20px; }
.deal-wrap .deal-foot.dc-foot > .card-menu { position: static; top: auto; right: auto; }

/* v187: 🕓 fixo antes do nome (canto de cima à esquerda); ⋯ no canto de cima à direita; rodapé: ícones · ✕ ✓ */
.deal-wrap .deal.dc { padding-top: 10px; }
.dc-top { padding-left: 0; padding-right: 26px; }
.board .deal-wrap .dc-clock { top: 9px; left: 10px; right: auto; }
.board .deal-wrap:has(.dc-clock) .dc-top { padding-left: 0; }
.board .deal-wrap:has(.dc-clock) .deal.dc { padding-left: 12px; }
.board .deal-wrap:has(.dc-clock) .dc-top { margin-left: 0; text-indent: 0; }
.board .deal-wrap:has(.dc-clock) .dc-name { padding-left: var(--clock-w, 62px); }
.dc-clock .act-btn { min-width: 52px; justify-content: center; }
.deal-wrap > .card-menu.dc-menu { display: block; position: absolute; top: 8px; right: 6px; }
.deal-wrap > .card-menu.dc-menu summary { padding: 0 6px; line-height: 20px; }
/* Calculadora: relatório é um botão pequeno ao lado do título (sem espaço sobrando) */
.calc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.calc-report { padding: 3px 10px !important; font-size: 12px !important; margin-left: auto; }
@media (max-width: 700px) { .calc-head .muted { flex-basis: 100%; order: 3; } .calc-report { margin-left: auto; } }

.more-fields { margin: 4px 0 12px; }
.more-fields > summary { cursor: pointer; color: var(--brand); }
.acc-inner { padding: 0; }
#portal-cliente .inline-form label { flex: 1 1 320px; }
.dc-clock .act-btn { width: 62px; min-width: 62px; justify-content: center; padding: 1px 4px; }
.board .deal-wrap:has(.dc-clock) .dc-name { padding-left: 68px; }

.scope-form { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }

/* ===== v189: card estilo Odoo (altura livre, nada cortado) ===== */
.board .deal-wrap { height: auto; }
.deal-wrap .deal.dc { padding: 10px 30px 8px 12px; gap: 4px; }
.dc .dc-name { font-size: 14.5px; font-weight: 700; color: #101828; line-height: 1.3; padding-left: 0 !important; white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc .dc-value { font-size: 13.5px; font-weight: 700; color: #14532d; }
.dc .dc-sub { display: flex; align-items: center; gap: 6px; height: auto; min-height: 0; font-size: 13px; color: #475467; }
.dc-av { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; background: #eef4ff; color: #087a54; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dc .dc-sub-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .dc-badges { flex-wrap: wrap; height: auto; overflow: visible; mask-image: none; -webkit-mask-image: none; gap: 4px; margin-top: 2px; }
.dc .dc-badges .b { max-width: 100%; }
.deal-foot.dc-foot { height: auto; min-height: 36px; padding: 6px 8px 8px 12px; gap: 6px; }
.dc-foot .act-btn { position: static; padding: 1px 7px; font-size: 11.5px; }
.dc-foot .act-btn.act-none { background: #f2f4f7; color: #98a2b3; border-color: #e4e7ec; }
.dc-foot .act-btn.act-late { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.dc-foot .act-btn.act-today, .dc-foot .act-btn.act-future { background: #ecfdf3; color: #14532d; border-color: #abefc6; }
.dc-foot .dc-age { font-size: 11.5px; color: #667085; white-space: nowrap; }
.dc-foot .deal-links { margin-left: auto; margin-right: 0; }
.board .deal-wrap .dc-clock { display: none; }

/* v189: funil no celular enxuto (como o Odoo): título + 🔍 + Kanban/Lista numa linha; "+ Nova" e status pequenos;
   busca, filtros, datas e calculadora só aparecem ao tocar na 🔍 */
.m-only { display: none; }
@media (max-width: 700px) {
    .m-only { display: inline-flex; }
    .funnel-head { flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 8px; }
    .funnel-title h1 { font-size: 20px; }
    .funnel-actions { width: auto; display: flex !important; flex-wrap: nowrap; margin-left: auto; gap: 6px; }
    .funnel-actions .view-switch { display: inline-flex !important; }
    .funnel-actions .view-switch a { font-size: 0; padding: 7px 9px; gap: 0; }
    .funnel-actions .view-switch svg { width: 18px; height: 18px; }
    .filters-toggle { padding: 6px 10px; font-size: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
    body.show-filters .filters-toggle { background: #eef2ff; border-color: var(--brand); }
    .board-filters { gap: 6px; }
    .board-filters .new-opp { width: auto; padding: 7px 12px; font-size: 13px; }
    .board-filters .new-opp span { display: none; }
    .board-filters .status-pick { width: auto; flex: 0 0 auto; padding: 6px 28px 6px 10px; font-size: 13px; }
    body:not(.show-filters) .board-filters > :not(.keep-m):not(input[type=hidden]) { display: none !important; }
    body:not(.show-filters) .calc { display: none; }
}

/* v189: Conversas — a lista fica no alto; contas e passo a passo em linhas pequenas embaixo */
.conv-setup details.card { padding: 8px 14px; margin-bottom: 8px; font-size: 13px; }
.conv-setup details.card > summary { font-size: 13px; }
.push-card { padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.push-card strong { font-size: 13.5px; }
.push-card .push-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* v189: Atividades — colunas com largura mínima (o texto não empilha e a linha não fica gigante; no celular rola de lado) */
.acts-table { min-width: 560px; }
.acts-table td { vertical-align: middle; }
/* v350: redesenho estilo Todoist — bolinha pra concluir, nome em destaque, reloginho à direita, cor na borda
   por onde a tarefa é (Funil/Contato/Cliente/Projeto). Sem checkbox de seleção em massa (não fazia sentido). */
.acts-table .act-task { min-width: 260px; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-left: 4px solid transparent; }
.acts-table tr.act-row-deal .act-task { border-left-color: #0a8f63; }
.acts-table tr.act-row-contact .act-task { border-left-color: #3b82f6; }
.acts-table tr.act-row-client .act-task { border-left-color: #8b5cf6; }
.acts-table tr.act-row-project .act-task { border-left-color: #f59e0b; }
.acts-table tr[data-act-row]:hover { background: #f8fafb; }
.acts-table .act-task-main { flex: 1 1 auto; min-width: 0; }
.acts-table .act-task-main a { display: block; }
.acts-table td.act-task .act-when { flex: none; margin-left: auto; align-self: center; }
/* v363: no celular a letra ficava grande e colada na faixa colorida da esquerda ("já falei 1 milhão de
   vezes", nas palavras dele) — a tabela também tinha um min-width de 560px só liberado em telas GRANDES
   (bug: a media query estava ao contrário, "min-width: 901px" em vez de aplicar no celular). */
@media (max-width: 760px) {
    .acts-table { min-width: 0; }
    .acts-table .act-task { padding: 10px 10px 10px 14px; gap: 8px; }
    .acts-table .act-task-main strong { font-size: 13px; }
    .acts-table .act-task-main a { font-size: 11.5px; }
}

/* v189: celular — tabelas viram blocos (nada cortado), menu de link abre embaixo, segurança com letra menor */
.chart-tip { max-width: calc(100vw - 16px); }
@media (max-width: 700px) {
    .funis-table thead, .stack-m table thead { display: none; }
    .funis-table tr, .stack-m table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .funis-table td, .stack-m table td { display: block; border: 0 !important; padding: 0 !important; }
    .funis-table td:first-child, .stack-m table td:first-child { grid-column: 1 / -1; }
    .funis-table td:first-child .inline-form { display: flex; gap: 6px; }
    .funis-table td:first-child input[type=text] { flex: 1; min-width: 0; }
    .stack-m table td input[type=text] { width: 100%; min-width: 0; }
    .stack-m table td form.inline-form { display: flex; gap: 6px; }
    .link-list li { flex-wrap: wrap; }
    .link-list .link-url { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .link-menu { position: static; }
    .link-menu[open] { flex-basis: 100%; }
    .link-menu .card-menu-box { position: static; min-width: 0; margin-top: 8px; box-shadow: none; }
    .security-list li, .security-list .small { font-size: 13px; }
}
.security-list li { font-size: 14px; }
@media (max-width: 700px) { .link-actions { flex-wrap: wrap; } .link-menu[open] { width: 100%; } }
@media (max-width: 700px) {
    .board-filters { display: flex !important; flex-wrap: wrap; align-items: center; }
    .board-filters .new-opp, .board-filters .status-pick { flex: 0 0 auto !important; width: auto !important; min-width: 0; }
    .board-filters .new-opp { padding: 6px 14px !important; font-size: 18px !important; line-height: 1; }
    body.show-filters .board-filters > :not(.keep-m):not(.row-break) { flex: 1 1 100%; }
}

@media (max-width: 700px) { .board-filters [data-quick-new] { display: none !important; } }

/* v191 */
.project-goal { max-width: 760px; } .project-goal textarea { min-height: 54px; }
.support-form button { width: auto; align-self: flex-start; } .tag { white-space: nowrap; display: inline-block; }
@media (min-width: 901px) {
    body { font-size: 14px; }
    h1 { font-size: 22px; }
    h2 { font-size: 16px; }
    .muted, p.muted { font-size: 13.5px; }
    .small, .muted.small { font-size: 12.5px; }
    .card { padding: 16px 18px; }
    label { font-size: 13.5px; }
    .kpi strong { font-size: 17px; }
    .file-pick { cursor: pointer; }
}
.contract-main { margin-bottom: 4px; }

/* v193 */
.client-status { width: auto !important; max-width: 220px; }
.page-head > div > p.muted { margin-bottom: 6px; } .page-head { gap: 12px; }
#sbl table, #leads table, .webhook-log, #sbl .small, #leads .small { font-size: 12px; } #sbl td, #leads td { padding: 4px 8px; }
@media (min-width: 901px) {
    body { font-size: 13.5px; }
    h1 { font-size: 21px; }
    h2 { font-size: 15.5px; }
    input, select, textarea, button, .button { font-size: 13.5px; }
    table { font-size: 13px; }
    th { font-size: 11px; }
    .muted, p.muted { font-size: 13px; }
    .card { padding: 15px 17px; }
    .acts-table { min-width: 0; }
}
@media (max-width: 900px) {
    body { font-size: 14px; }
    h1 { font-size: 22px; }
    h2 { font-size: 16px; }
    .card { padding: 14px; }
    p.muted { font-size: 13.5px; }
}
.card.flush { overflow-x: auto; scrollbar-width: thin; padding-bottom: 0; }
.card.flush > table { margin-bottom: 0; }
.board { padding-bottom: 24px; }
.col-grip { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; } .col-grip:hover { background: rgba(10, 143, 99, .25); }

/* v194: card limpo (sem ✓ ✕), idade à esquerda, responsável + atividade à direita; foto do responsável; letra menor */
.uav { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e0e7ff center / cover no-repeat; color: #075e43; font-size: 9.5px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; }
.uav-big { width: 56px; height: 56px; font-size: 18px; }
.avatar[class*="uav-"] { background-position: center; background-size: cover; }
.photo-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.deal-foot.dc-foot { min-height: 32px; padding: 5px 8px 6px 12px; }
.dc-foot .dc-age { order: 0; }
.dc-foot .deal-links { margin-left: 4px; margin-right: auto; gap: 3px; }
.dc-foot .icon-link, .dc-foot .icon-link svg { width: 17px; height: 17px; }
.dc-right { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.dc-foot .deal-links:empty { display: none; }
.dc .dc-name { font-size: 13.5px; }
.dc .dc-sub { font-size: 12px; }
.dc .dc-value { font-size: 12.5px; }
.dc-av { width: 18px; height: 18px; font-size: 10px; }
.dc .dc-badges .b { font-size: 10.5px; }
.client-bar .client-search { margin: 0; flex: 1 1 240px; max-width: 360px; }
.client-bar .client-status { padding-top: 6px; padding-bottom: 6px; }
table.cols-fixed { table-layout: fixed; width: 100%; }
table.cols-fixed th.check-col { width: 36px !important; }
table.cols-fixed th, table.cols-fixed td { overflow: hidden; text-overflow: ellipsis; }
table.cols-fixed th { white-space: nowrap; }
body.col-resizing { cursor: col-resize; user-select: none; }
.card.flush:has(> table.cols-fixed) { overflow-x: hidden; }
@media (min-width: 901px) {
    body { font-size: 13px; }
    h1 { font-size: 20px; }
    h2 { font-size: 15px; }
    input, select, textarea, button, .button { font-size: 13px; }
    table { font-size: 12.5px; }
    th { font-size: 10.5px; }
    .muted, p.muted { font-size: 12.5px; }
    .small, .muted.small { font-size: 12px; }
    label { font-size: 13px; }
    .main-nav a { font-size: 13px; }
}
@media (max-width: 900px) {
    body { font-size: 13.5px; }
    h1 { font-size: 20px; }
    h2 { font-size: 15px; }
    p.muted { font-size: 13px; }
    .small, .muted.small { font-size: 12px; }
}

/* v195: card com rodapé fixo (idade · 🕓 · canais ... foto do responsável) e letra menor, como no Odoo */
.deal-wrap .deal.dc { padding: 8px 28px 6px 10px; gap: 3px; }
.dc .dc-name { font-size: 12.5px; line-height: 1.3; }
.dc .dc-value { font-size: 11.5px; }
.dc .dc-sub { font-size: 11px; gap: 5px; }
.dc-av { width: 16px; height: 16px; font-size: 9px; border-radius: 4px; }
.dc .dc-badges { gap: 3px; }
.dc .dc-badges .b { font-size: 9.5px; padding: 1px 6px; line-height: 1.5; }
.deal-foot.dc-foot { min-height: 28px; padding: 4px 8px 6px 10px; gap: 6px; }
.dc-foot .dc-age { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #667085; }
.dc-foot .dc-age svg { width: 11px; height: 11px; }
.dc-foot .act-btn { font-size: 10.5px; padding: 0 6px; min-height: 20px; border-radius: 999px; }
.dc-foot .act-btn.act-none { width: 20px; height: 20px; padding: 0; justify-content: center; }
.dc-foot .deal-links { margin: 0; gap: 3px; }
.dc-foot .icon-link, .dc-foot .icon-link svg { width: 15px; height: 15px; }
.dc-foot .dc-owner { margin-left: auto; width: 20px; height: 20px; font-size: 8.5px; }

/* Menu recolhido: o menu da conta abre inteiro ao lado; botão de recolher discreto, lá em cima */
@media (min-width: 901px) {
    body.side.side-mini .user-menu-box { min-width: 220px; width: auto; left: 0; }
    body.side .side-toggle { top: 30px; right: -9px; width: 18px; height: 18px; font-size: 10px; color: #98a2b3; box-shadow: none; border-color: #e4e7ec; opacity: .7; }
    body.side .side-toggle:hover { opacity: 1; color: var(--brand); border-color: var(--brand); }
}

/* v196: card um pouco menor ainda */
.dc .dc-name { font-size: 12px; }
.dc .dc-sub { font-size: 10.5px; }
.dc .dc-value { font-size: 11px; }
.dc .dc-badges .b { font-size: 9px; }
.dc-foot .dc-age, .dc-foot .act-btn { font-size: 10px; }

/* v198: estrelas de prioridade (Odoo), tags de origem x oportunidade, seletor de funil discreto, formulário enxuto, foto maior */
.stars-w { display: inline-flex; gap: 1px; align-items: center; }
.stars-w .star { background: none !important; border: 0 !important; padding: 0 1px !important; margin: 0; min-height: 0; width: auto; font-size: 18px; line-height: 1; color: #d0d5dd; cursor: pointer; box-shadow: none !important; }
.stars-w .star.on { color: #f5b301; }
.stars-w:hover .star { color: #fcd34d; }
.stars-w .star:hover ~ .star { color: #d0d5dd; }
.stars-field { display: flex; align-items: center; gap: 10px; }
.stars-field .stars-w .star { font-size: 22px; }
.dc-stars { padding: 0 10px 2px; line-height: 1; }
.dc-stars .stars-w .star { font-size: 14px; }
.dc-badges .b-src { background: #f2f4f7; color: #475467; border: 1px solid #e4e7ec; }
.dc-badges .b-tag { background: #eef8f3; color: #5925dc; }
.funnel-title .pp-caret, .pp-caret { font-size: 10px; padding: 0 4px; border: 0; background: none; color: #98a2b3; border-radius: 0; font-weight: 400; }
.pipeline-pick summary:hover .pp-caret { background: none; color: var(--brand); }
.quick-odoo .dialog-body { gap: 8px; font-size: 12.5px; }
.quick-odoo label { font-size: 12.5px; gap: 4px; }
.quick-odoo input, .quick-odoo select { font-size: 13px; padding: 7px 10px; }
.quick-odoo .grid-2 { gap: 8px 12px; }
.quick-odoo .dialog-head strong { font-size: 14px; }
.uav-big { width: 96px; height: 96px; font-size: 28px; }
.dc-foot .dc-owner { width: 22px; height: 22px; }

/* v199: calculadora do tamanho do conteúdo + olhinho pra ocultar; relatório lá em cima; seta do funil; novo funil rápido */
.card.calc { width: fit-content; max-width: 100%; }
body.calc-hidden .card.calc { display: none; }
.calc-eye { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0 !important; border-radius: 10px; background: #fff !important; border: 1px solid var(--line) !important; color: var(--brand) !important; }
.calc-eye svg { width: 18px; height: 18px; }
body.calc-hidden .calc-eye { color: #98a2b3 !important; }
.board-filters .calc-report { white-space: nowrap; }
.funnel-title .pp-caret, .pp-caret { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 6px; color: var(--brand); background: transparent; border: 0; }
.pp-caret svg { width: 13px; height: 13px; }
.pipeline-pick summary:hover .pp-caret, .pipeline-pick[open] .pp-caret { background: var(--brand-soft); color: var(--brand); }
.pp-new { margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.pp-new input { width: 100%; font-size: 12.5px; padding: 6px 8px; border: 1px dashed #b5ebd5; border-radius: 8px; background: #f8fcfa; }
.board-filters .calc-report { margin-left: 0 !important; height: 34px; display: inline-flex; align-items: center; }
.card.calc { width: max-content; }

/* v200: calculadora num bloco ao lado dos filtros (4 em cima, 3 embaixo); filtros mais estreitos; seletor de funil com + / ✏️ / 🗑 */
.funnel-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.funnel-top > .board-filters { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.funnel-top > .card.calc { flex: 0 0 auto; width: auto; margin: 0; padding: 10px 12px; }
.board-filters .funnel-search { width: 230px; flex: 0 1 230px; }
.board-filters select:not(.status-pick) { max-width: 170px; font-size: 12.5px; }
.board-filters input[type=search], .board-filters input[type=date] { font-size: 12.5px; }
.calc .calc-head { margin-bottom: 6px; gap: 2px 8px; }
.calc .calc-head strong { font-size: 12.5px; }
.calc-grid { display: grid; gap: 6px; }
.calc-row1 { grid-template-columns: repeat(4, auto); }
.calc-row2 { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.calc-grid .chip-stat { justify-content: center; text-align: center; font-size: 11.5px; padding: 4px 8px; white-space: nowrap; }
.calc-grid .chip-stat b { font-size: 12.5px; }
.pp-row { display: flex; align-items: center; gap: 2px; }
.pp-row > a { flex: 1 1 auto; }
.pp-row form { margin: 0; display: inline; }
.pp-ico { background: none !important; border: 0 !important; padding: 2px 4px !important; font-size: 12px; opacity: .45; cursor: pointer; min-height: 0; box-shadow: none !important; }
.pp-row:hover .pp-ico { opacity: .9; }
.pp-add { display: block; width: 100%; text-align: left; margin-top: 4px; padding: 6px 10px !important; font-size: 12.5px; background: none !important; color: var(--brand) !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0; box-shadow: none !important; }
.pp-new { border-top: 0; padding-top: 2px; }
.uav-big { width: 120px; height: 120px; font-size: 34px; }
@media (max-width: 1100px) { .funnel-top { flex-wrap: wrap; } .funnel-top > .card.calc { flex: 1 1 100%; } }

/* v201: calculadora colada nos filtros; relatório pequeno no canto da calculadora */
.funnel-top { justify-content: flex-start; }
.funnel-top > .board-filters { flex: 0 1 760px; }
.calc .calc-head { position: relative; padding-right: 74px; }
.calc-dl { position: absolute; right: 0; top: 0; font-size: 11px; font-weight: 600; color: #b42318; text-decoration: none; }
.calc-dl:hover { text-decoration: underline; }
.funnel-top { position: relative; }
.funnel-top > .card.calc.calc-glued { position: absolute; }
.funnel-top > .card.calc.calc-glued { padding: 7px 12px; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.calc-glued .calc-head { margin-bottom: 0; }
.calc-glued .calc-row2 { margin-top: 4px; }

/* v202: filtros numa linha só; calculadora da altura do título até a busca; barra lateral mais fina; celular compacto */
.funnel-top > .board-filters { flex: 1 1 100%; }
.funnel-top > .card.calc.calc-glued { padding: 10px 14px; }
.calc-glued .calc-grid .chip-stat { padding: 6px 10px; }
@media (min-width: 901px) {
    body.side { padding-left: 172px; }
    body.side .topbar { width: 172px; padding: 18px 10px 14px; }
    body.side .brand { padding: 0 4px 18px; font-size: 15px; gap: 7px; white-space: nowrap; }
    body.side .brand svg, body.side .brand img { width: 26px; height: 26px; }
    body.side .main-nav > a { font-size: 12.5px; padding: 8px 8px; gap: 9px; }
    body.side .main-nav > a svg { width: 16px; height: 16px; }
    body.side .user-menu summary::after { font-size: 12.5px; }
    body.side .user-menu .avatar { width: 28px; height: 28px; font-size: 11px; }
    body.side.side-mini { padding-left: 64px; }
    body.side.side-mini .topbar { width: 64px; }
}
@media (max-width: 900px) {
    .funnel-head { margin-bottom: 6px; }
    .funnel-head h1 { font-size: 18px; }
    .board-filters { gap: 6px; }
    .board-filters .status-pick { font-size: 12.5px; padding: 6px 28px 6px 10px; border-radius: 8px; }
    .board-filters .new-opp { font-size: 12.5px; padding: 6px 10px; }
    body.show-filters .board-filters > :not(.keep-m):not(.row-break) { flex: 1 1 auto; }
    body.show-filters .board-filters .funnel-search { flex: 1 1 100%; width: auto !important; }
    .board-filters input, .board-filters select { font-size: 12.5px !important; padding: 6px 8px !important; min-height: 0; height: 32px; }
    .board-filters select[name=origem], .board-filters select[name=tag] { flex: 1 1 calc(50% - 3px) !important; max-width: none; }
    .board-filters .date-filter { display: flex; flex: 1 1 100% !important; gap: 4px; align-items: center; }
    .board-filters .date-filter select { flex: 0 0 auto; width: auto; }
    .board-filters .date-filter input { flex: 1 1 0; min-width: 0; }
    .card.calc { width: auto; max-width: none; padding: 8px 10px; margin-bottom: 8px; }
    .calc .calc-head { flex-wrap: nowrap; margin-bottom: 5px; padding-right: 64px; }
    .calc .calc-head strong { font-size: 12px; }
    .calc .calc-head .muted { font-size: 10.5px; flex-basis: auto; order: 0; }
    .calc-dl { font-size: 10.5px; }
    .calc-grid { gap: 4px; }
    .calc-row1 { grid-template-columns: repeat(4, 1fr); }
    .calc-row2 { grid-template-columns: repeat(3, 1fr); margin-top: 4px; }
    .calc-grid .chip-stat { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 4px; font-size: 9.5px; line-height: 1.25; white-space: nowrap; border-radius: 8px; }
    .calc-grid .chip-stat b { font-size: 12px; order: 2; }
    .calc-row1 .chip-stat b { order: 0; }
    .calc-grid .chip-stat .cv { font-size: 9px; }
}
@media (max-width: 900px) {
    .board-filters .date-filter { flex: 1 1 0 !important; min-width: 0; }
    .board-filters > a[href*="funil.php"] { font-size: 12px; align-self: center; }
}

/* v203: ⓘ explicativo, funil principal ★, Limpar no topo, celular mais enxuto (oportunidade, Entrada, menu da etapa, lupa) */
.info-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #98a2b3; color: #667085; font: italic 700 10px/1 Georgia, serif; cursor: default; position: relative; vertical-align: middle; margin-left: 4px; outline: none; }
.info-i:hover, .info-i:focus { border-color: var(--brand); color: var(--brand); }
.info-i::after { content: attr(data-tip); display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(280px, 80vw); background: #101828; color: #fff; font: 400 12px/1.45 inherit; font-family: inherit; font-style: normal; letter-spacing: 0; text-transform: none; padding: 8px 10px; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .25); z-index: 90; white-space: normal; text-align: left; }
.info-i:hover::after, .info-i:focus::after { display: block; }
h1 .info-i, h2 .info-i { font-size: 10px; }
.h1-count { font-size: .6em; font-weight: 600; color: #667085; vertical-align: middle; }
.pp-main { color: #d0d5dd !important; opacity: 1 !important; font-size: 13px !important; }
.pp-main.on { color: #f5b301 !important; }
.limpar-top { font-size: 12px; align-self: center; color: var(--danger, #dc2626); text-decoration: none; white-space: nowrap; }
.filters-toggle .ft-close { display: none; font-size: 12px; font-weight: 700; }
body.show-filters .filters-toggle .ft-open { display: none; }
body.show-filters .filters-toggle .ft-close { display: inline; }
@media (max-width: 900px) {
    body.show-filters .filters-toggle { width: auto !important; padding: 0 10px !important; }
    /* Oportunidade: ganho/perdido pequenos lá em cima; conversa → atividades → dados → contrato → histórico no fim */
    .deal-layout { display: flex; flex-direction: column; gap: 12px; }
    .deal-layout > .deal-main, .deal-layout > .deal-side { display: contents; }
    .deal-layout .card { order: 5; margin: 0; }
    .deal-layout #fechar { order: 0; background: none; border: 0; box-shadow: none; padding: 0; }
    .deal-layout .entry-card { order: 1; }
    .deal-layout #conversa { order: 2; }
    .deal-layout #atividades { order: 3; }
    .deal-layout #historico { order: 9; }
    #fechar .closing-row { display: flex; gap: 8px; justify-content: flex-end; }
    #fechar .closing-row form { margin: 0; }
    #fechar .mark-lost, #fechar .mark-won { width: auto !important; padding: 6px 12px !important; font-size: 12.5px !important; min-height: 0; border-radius: 999px; }
    /* Entrada (caixa de conversas) menor no celular */
    .inbox-col .inbox-card .deal { padding: 8px 10px; gap: 2px; }
    .inbox-col .inbox-card strong { font-size: 13px; }
    .inbox-col .inbox-msg { font-size: 11.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .inbox-col .inbox-ch, .inbox-col .inbox-top .small { font-size: 10.5px; }
    .inbox-actions button { padding: 6px 8px !important; font-size: 12px !important; min-height: 0; }
    .inbox-col header strong { font-size: 13px; }
    /* Menu da etapa (⋯) pequeno */
    .stage-menu .card-menu-box { min-width: 0; width: 200px; padding: 8px; gap: 6px; font-size: 12px; }
    .stage-menu .card-menu-box .link { font-size: 12.5px; padding: 2px 0; }
    .stage-menu .rot-form label { font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .stage-menu .rot-form input { width: 64px !important; padding: 4px 6px !important; font-size: 12px !important; height: auto; }
    .stage-menu .rot-form .small-btn { padding: 4px 10px !important; font-size: 12px !important; width: auto; }
    .stage-menu .stage-note { font-size: 10.5px; line-height: 1.35; }
    /* Contatos: cabeçalho enxuto */
    .page-head .head-actions .button { padding: 6px 10px; font-size: 12.5px; }
    /* CRM: menu da conta abre à esquerda; "B.Flow CRM" mais junto */
    .user-menu-box { left: 0; right: auto; }
    .brand span { margin-left: -4px; }
}
@media (max-width: 900px) {
    .deal-layout .side-delete { order: 10; }
    .deal-layout #fechar .closing-row { justify-content: flex-start; }
}
@media (max-width: 900px) {
    .board-filters .limpar-top { flex: 0 0 auto !important; width: auto !important; }
    .stage-menu .card-menu-box { right: 0 !important; left: auto !important; }
    .stage-menu .rot-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
    body.show-filters .filters-toggle { color: var(--brand) !important; background: #fff !important; }
    body.show-filters .filters-toggle .ft-close { color: var(--brand); }
}
@media (max-width: 900px) {
    .stage-menu[open] .card-menu-box { position: fixed !important; left: 50% !important; right: auto !important; top: 30% !important; bottom: auto !important; transform: translateX(-50%); z-index: 200; }
}

/* v204: cores (atividade de hoje em azul; origem, tag do contato, tag da oportunidade e etapa diferentes), seletor de funil com bolinha e ✎, Limpar filtros, ⓘ branco */
.act-btn.act-today, .dc-foot .act-btn.act-today { background: #e9f6f0 !important; color: #0a8f63 !important; border-color: #8fe6c4 !important; }
.act-btn.act-future, .dc-foot .act-btn.act-future { background: #ecfdf3 !important; color: #14532d !important; border-color: #abefc6 !important; }
.act-btn.act-late, .dc-foot .act-btn.act-late { background: #fef3f2 !important; color: #b42318 !important; border-color: #fecdca !important; }
.tag.stage-tag { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.tag.contact-tag { background: #ecfdf3; color: #14532d; }
.dc-badges .b-ctag { background: #ecfdf3; color: #14532d; }
.pp-row { gap: 6px; }
.pp-row form { display: inline-flex; }
.pp-dot { width: 13px; height: 13px; min-height: 0; padding: 0 !important; border-radius: 50%; border: 2px solid #d0d5dd !important; background: #fff !important; cursor: pointer; box-shadow: none !important; flex: 0 0 auto; }
.pp-dot:hover { border-color: var(--brand) !important; }
.pp-dot.on { border-color: var(--brand) !important; background: radial-gradient(circle, var(--brand) 0 45%, #fff 50%) !important; }
.pp-row > a.active { font-weight: 700; }
.pp-here { font-weight: 400; font-size: 11px; color: #98a2b3; }
.pp-ico { font-size: 13px !important; opacity: .55 !important; color: #475467; }
.pp-edit { padding: 4px 0 8px 19px; display: flex; flex-direction: column; gap: 6px; }
.pp-edit-name { display: flex; gap: 6px; }
.pp-edit-name input { flex: 1 1 auto; min-width: 0; font-size: 12.5px; padding: 5px 8px; }
.pp-edit-name .small-btn { padding: 4px 10px; font-size: 12px; }
.pp-edit .link.danger { font-size: 12px; padding: 0; }
.limpar-f { font-size: 12px; color: #b42318; text-decoration: none; white-space: nowrap; align-self: center; }
.limpar-m { display: none; }
.info-i::after { background: #fff; color: #475467; font-weight: 400; font-size: 12px; font-family: Inter, system-ui, sans-serif; border: 1px solid #e4e7ec; left: -8px; transform: none; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.deal-wrap > .card-menu.dc-menu { top: 3px; right: 10px; }
@media (max-width: 900px) {
    .limpar-d { display: none; }
    body.show-filters .board-filters .funnel-search { flex: 1 1 0 !important; min-width: 0; }
    body.show-filters .board-filters .limpar-m { display: inline-block; flex: 0 0 auto !important; }
    .info-i::after { max-width: calc(100vw - 48px); }
}
.info-i::after { left: var(--tip-left, -8px); max-width: var(--tip-w, 280px); }
@media (max-width: 900px) {
    .funnel-title { min-width: 0; flex: 1 1 auto; }
    .funnel-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pipeline-pick summary { min-width: 0; max-width: 100%; }
    body.show-filters .filters-toggle .ft-close { font-size: 11px; white-space: nowrap; }
}
@media (max-width: 900px) {
    body.show-filters .board-filters .limpar-m { width: auto !important; max-width: max-content; }
}

/* v206: card de canto reto com relevo (Odoo), ⋮ em pé, cabeçalho da etapa (nome · número ... ⚙ +), barra de atividades */
.board .deal-wrap { border-radius: 3px !important; border: 1px solid #dfe3ea !important; box-shadow: 0 1px 1px rgba(16, 24, 40, .06), 0 3px 8px rgba(16, 24, 40, .08) !important; }
.board .deal-wrap .deal, .board .deal-wrap .deal-foot { border-radius: 0 !important; }
.deal-wrap > .card-menu.dc-menu { top: 2px; right: 4px; }
.deal-wrap > .card-menu.dc-menu summary { font-size: 16px; line-height: 18px; padding: 0 4px; color: #667085; }
.column header .count { margin-left: 2px; }
.column header .stage-menu { margin-left: auto; }
.column header .stage-menu summary { font-size: 14px; font-weight: 400; color: #667085; padding: 0 2px; }
.column header .quick-add { margin-left: 0 !important; background: none !important; border: 0 !important; color: #344054 !important; font-size: 20px; font-weight: 800; padding: 0 2px; line-height: 20px; }
.column header .quick-add:hover { color: var(--brand) !important; }
@media (hover: hover) and (min-width: 901px) {
    .column:not(.won) header .stage-menu:not([open]) { opacity: 0; transition: opacity .12s; }
    .column header:hover .stage-menu, .column header:focus-within .stage-menu { opacity: 1; }
}
.stage-scripts-item { display: block; text-align: left; padding: 2px 0 !important; font-size: 13px; }
.act-bar { display: flex; height: 6px; margin: 0 4px 8px; border-radius: 3px; background: #e4e7ec; }
.act-bar i { display: block; height: 100%; position: relative; cursor: default; }
.act-bar i:first-child { border-radius: 3px 0 0 3px; } .act-bar i:last-child { border-radius: 0 3px 3px 0; } .act-bar i:only-child { border-radius: 3px; }
/* v330 (pedido do Ian): atrasada = vermelho, hoje = verde clarinho, planejada = azul da B.Flow, sem atividade = cinza */
.ab-late { background: #f04438; } .ab-today { background: #2ee6a6; } .ab-future { background: #0a8f63; } .ab-none { background: #d0d5dd; } /* v541 (Ian): cores fixas em qualquer tema: atrasada vermelho, hoje verde claro, futura verde da marca, sem tarefa cinza */
.act-bar i:hover::after { content: attr(data-tip); position: absolute; top: 10px; left: 0; white-space: nowrap; background: #fff; color: #344054; border: 1px solid #e4e7ec; border-radius: 6px; padding: 3px 8px; font-size: 11px; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); z-index: 30; font-style: normal; }
.column header > strong { flex: 0 1 auto !important; min-width: 0; }

/* v208: cabeçalho da etapa em ordem fixa (nome · nº ... ⚙ + / valor embaixo / barra de atividades igual em todas) */
.column header { flex-wrap: wrap; row-gap: 2px; }
.column header .sum { order: 20; flex: 1 1 100%; margin: 0 !important; font-size: 11.5px; color: #667085; font-weight: 600; line-height: 1.3; min-height: 15px; position: static !important; text-decoration: none !important; }
.column .act-bar { height: 8px !important; min-height: 8px; flex: none; margin: 4px 10px 10px !important; border-radius: 4px; background: #e4e7ec; overflow: visible; }
.column .act-bar i { height: 8px !important; }
.column .act-bar i:first-child { border-radius: 4px 0 0 4px; } .column .act-bar i:last-child { border-radius: 0 4px 4px 0; } .column .act-bar i:only-child { border-radius: 4px; }
/* Menu da conta: letra menor, ícone e texto na mesma linha */
.user-menu-box { min-width: 210px; padding: 6px; }
.user-menu-box a { font-size: 13px !important; padding: 7px 10px !important; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.user-menu-box strong { font-size: 13px; }

/* v209: cabeçalho da etapa com altura fixa (a barra fica sempre no mesmo lugar), rolagem do funil fininha,
   menus pequenos (conta e ⋮ do card), seletor de funil: nome abre, ☆ marca o principal, ✎ edita */
.board > .column > header { flex: 0 0 auto !important; height: 50px; min-height: 0 !important; align-content: flex-start; align-items: center; row-gap: 0; padding-bottom: 0; }
.board > .column > header > :not(.sum) { height: 28px; display: inline-flex; align-items: center; }
.board > .column > header > strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 28px; max-width: 70%; }
.board > .column > header .stage-menu summary, .board > .column > header .quick-add { line-height: 28px; }
.board > .column > header .sum { height: 18px; line-height: 18px; }
.board > .column > .act-bar { flex: 0 0 8px !important; margin: 4px 10px 10px !important; }
.board { scrollbar-width: thin; scrollbar-color: #c5c9d3 transparent; }
.board::-webkit-scrollbar { height: 6px; } .board::-webkit-scrollbar-thumb { background: #c5c9d3; border-radius: 3px; } .board::-webkit-scrollbar-track { background: transparent; }
body.side .user-menu-box, .user-menu-box { width: auto !important; min-width: max-content !important; }
.user-menu-box a { font-size: 12.5px !important; padding: 6px 10px !important; }
.card-menu-box { min-width: 0 !important; padding: 4px 6px !important; gap: 2px !important; font-size: 12.5px; border-radius: 6px; }
.card-menu-box.floating .link, .card-menu-box.floating button { font-size: 12.5px !important; padding: 4px 8px !important; min-height: 0; width: auto; }
.pp-star { background: none !important; border: 0 !important; padding: 0 4px !important; min-height: 0; font-size: 15px; line-height: 1; color: #98a2b3; cursor: pointer; box-shadow: none !important; }
.pp-star.on { color: #f5b301; }
.pp-star:hover { color: #f5b301; }
.pp-row > a { flex: 1 1 auto; min-width: 0; }
.pp-edit { padding-left: 8px; }
@media (max-width: 900px) {
    .funnel-head { gap: 8px; }
    .funnel-title, .funnel-title .pipeline-pick, .funnel-title .pipeline-pick summary { min-width: 0; max-width: 100%; overflow: hidden; }
    .funnel-title .pipeline-pick[open] { overflow: visible; }
    .funnel-title .pipeline-pick summary { display: flex; align-items: center; }
    .funnel-title .pipeline-pick summary h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .funnel-actions { flex: 0 0 auto; }
}
@media (max-width: 900px) {
    .funnel-title, .funnel-title .pipeline-pick { overflow: visible !important; }
}

/* v210: Conversas com largura de leitura no computador; nome do funil comprido quebra em 2 linhas sem empurrar a calculadora */
@media (min-width: 901px) {
    .conv-card { max-width: 920px; }
    .funnel-head .funnel-title { flex: 0 1 auto; min-width: 0; }
    .funnel-head .funnel-title h1 { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .funnel-head .pipeline-pick summary { display: flex; align-items: center; min-width: 0; }
}

/* v212: menu da conta abre por cima (a barra lateral cortava); nome do funil pequeno; Entrada no mesmo tamanho dos outros cards */
@media (min-width: 901px) {
    body.side .user-menu-box { position: fixed !important; left: 12px !important; right: auto !important; bottom: 78px !important; top: auto !important; width: max-content !important; min-width: 190px !important; max-width: 260px; z-index: 300; }
}
.funnel-head .funnel-title h1, .funnel-title .pipeline-pick summary h1 { font-size: 16px !important; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.inbox-col .inbox-card .deal { padding: 8px 10px !important; gap: 2px !important; }
.inbox-col .inbox-card strong { font-size: 12px !important; }
.inbox-col .inbox-msg { font-size: 11px !important; line-height: 1.35; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.inbox-col .inbox-ch { font-size: 10px !important; padding: 1px 7px !important; }
.inbox-col .inbox-top .small { font-size: 10px !important; }
.inbox-col .inbox-actions button { padding: 5px 8px !important; font-size: 11.5px !important; min-height: 0 !important; }
.inbox-col header strong { font-size: 14px !important; }
.inbox-col header .sum { font-size: 11px !important; }
.inbox-col .inbox-card { border-radius: 3px !important; box-shadow: 0 1px 1px rgba(16, 24, 40, .06), 0 3px 8px rgba(16, 24, 40, .08) !important; }
@media (min-width: 901px) { .funnel-head { gap: 6px; } .funnel-head .funnel-title .pp-caret { width: 18px; } }

/* v216: barra de atividades clicável; menu da ⚙ maior com letra pequena; ⚙ aparece ao chegar perto da coluna; Clientes enxuto */
.act-bar i[data-act-filter] { cursor: pointer; }
.act-bar i.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #344054; z-index: 2; }
.column[data-act-on="late"] .deal-wrap:not([data-act="late"]),
.column[data-act-on="today"] .deal-wrap:not([data-act="today"]),
.column[data-act-on="future"] .deal-wrap:not([data-act="future"]),
.column[data-act-on="none"] .deal-wrap:not([data-act="none"]) { display: none !important; }
.column[data-act-on] .more-cards { display: none; }
.stage-menu .card-menu-box { width: 250px !important; min-width: 250px !important; padding: 8px 10px !important; gap: 4px !important; font-size: 12px !important; }
.stage-menu .card-menu-box .link, .stage-menu .card-menu-box button.link { font-size: 12px !important; padding: 3px 0 !important; text-align: left; white-space: nowrap; }
.stage-menu .rot-form { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 4px 6px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.stage-menu .rot-form label { font-size: 12px !important; display: flex !important; align-items: center; gap: 4px; flex-wrap: nowrap !important; margin: 0; white-space: nowrap; }
.stage-menu .rot-form input { width: 54px !important; padding: 3px 6px !important; font-size: 12px !important; height: 26px; }
.stage-menu .rot-form .small-btn { padding: 3px 10px !important; font-size: 12px !important; width: auto !important; min-height: 0; }
.stage-menu .stage-note { font-size: 10.5px !important; line-height: 1.35; flex-basis: 100%; color: #667085 !important; }
@media (max-width: 900px) { .stage-menu[open] .card-menu-box { width: 260px !important; } }
@media (hover: hover) and (min-width: 901px) {
    .board > .column:hover > header .stage-menu { opacity: 1 !important; }
    .column header .stage-menu summary { padding: 4px 6px !important; cursor: pointer; }
}
.clients-table .client-name { font-size: 13px; font-weight: 700; color: #101828; }
.client-bar .client-status { width: auto !important; max-width: 170px; height: 34px; padding: 4px 28px 4px 12px !important; font-size: 12.5px !important; }
.client-bar .client-search { height: 34px; }

/* v217: cabeçalho da etapa em 2 linhas fixas (linha de cima nunca quebra, mesmo com ⏳ prazo) */
.board > .column > header { display: block !important; height: 58px; }
.board > .column > header > .col-row { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 6px; height: 36px; min-width: 0; }
/* v354: nome + número agora dentro de um "chip" (setinha por fora, igual ao celular/oportunidade); o resto do
   .col-row (⚙, +) continua solto do lado de fora, sem entrar no recorte do chip */
.col-row > .col-chip { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; height: 28px; }
.col-chip > strong { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 36px; max-width: none !important; display: block; }
.col-chip > .count { flex: 0 0 auto; }
.col-row > .rot-limit, .col-row > .quick-add { flex: 0 0 auto; }
.col-row > .stage-menu { flex: 0 0 auto; margin-left: auto; }
.col-row > .quick-add { margin-left: 0 !important; }
.won .col-chip > .count { margin-right: auto; }
.col-row .rot-limit { font-size: 10px; padding: 1px 5px; border-radius: 999px; line-height: 1.5; }
.board > .column > header > .sum { display: block; height: 18px; line-height: 18px; margin-top: 2px !important; }
/* Menu da ⚙: prazo numa linha só, letra pequena */
.stage-menu .card-menu-box { width: 290px !important; min-width: 290px !important; }
.stage-menu .rot-form { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 4px 6px !important; }
.stage-menu .rot-form label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; flex-wrap: nowrap !important; font-size: 12px !important; font-weight: 600; }
.stage-menu .rot-form input { width: 48px !important; height: 24px !important; padding: 2px 5px !important; font-size: 12px !important; }
.stage-menu .rot-form .small-btn { padding: 2px 9px !important; font-size: 11.5px !important; height: 24px; }
.stage-menu .stage-note { flex-basis: 100%; font-size: 10.5px !important; }
@media (max-width: 900px) { .stage-menu[open] .card-menu-box { width: 290px !important; } }
/* Painel: barras do "Funil agora" cabem no cartão */
@media (max-width: 900px) { .hbar, .bars .hbar { grid-template-columns: minmax(0, 1fr) auto; } .hbar > * { min-width: 0; } .hbar-value { white-space: normal; text-align: right; font-size: 12px; } }
.dash-custom { position: relative; margin-left: auto; align-self: flex-start; }
.dash-custom summary { list-style: none; cursor: pointer; font-size: 12px; color: #667085; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dash-custom summary::-webkit-details-marker { display: none; }
.dash-custom-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 24, 40, .15); padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 230px; font-size: 12.5px; }
.dash-custom-box strong { font-size: 12.5px; margin-bottom: 2px; }
.dash-custom-box .check { font-size: 12.5px; font-weight: 400; }
.dash-custom-box .small-btn { align-self: flex-start; margin-top: 4px; }
.card.flush:has(> table.cols-wide) { overflow-x: auto !important; scrollbar-width: thin; }
table.cols-fixed.cols-wide { max-width: none; }
table.cols-fixed th { white-space: normal !important; overflow: visible; text-overflow: clip; line-height: 1.25; vertical-align: bottom; }
table.cols-fixed .client-name, table.cols-fixed td > a { white-space: normal; overflow-wrap: normal; }
table.cols-fixed td input[type=date] { max-width: 100%; }
.pp-radio { flex: 0 0 auto; width: 15px; height: 15px; min-height: 0; padding: 0 !important; border-radius: 50%; border: 2px solid #c0c5d0 !important; background: #fff !important; cursor: pointer; box-shadow: none !important; order: 2; margin-left: 6px; }
.pp-radio:hover { border-color: var(--brand) !important; }
.pp-radio.on { border-color: var(--brand) !important; background: radial-gradient(circle, var(--brand) 0 42%, #fff 47%) !important; }
.pp-row form:has(.pp-radio) { order: 2; }
.pp-row .pp-ico { order: 3; }
.stage-menu .stage-note { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px !important; color: #667085 !important; padding-top: 4px; border-top: 1px solid var(--line); width: 100%; }

/* v228: botão Mostrar nos campos de senha (vale também no login, fora do sistema) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 84px !important; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 4px 10px !important; border-radius: 7px !important; background: #f3f4f7 !important; color: #33364a !important; font-size: 12px !important; font-weight: 600; box-shadow: none !important; }
.login-where { margin-top: 10px; }

/* v273/v274: telas de fora (login, teste grátis, assinar) com a marca verde do sistema */
body.guest { background: radial-gradient(1200px 600px at 80% -10%, #0f6b4b 0%, transparent 60%), linear-gradient(160deg, #06130e 0%, #0b2a20 100%); }
body.guest .brand span, body.guest .signup-eyebrow { color: #5fe8b6; }
body.guest button:not(.link):not(.ghost-btn), body.guest .button:not(.ghost-btn) { background: #0a8f63; border-color: #0a8f63; }
body.guest button:not(.link):not(.ghost-btn):hover, body.guest .button:not(.ghost-btn):hover { background: #087a54; }
body.guest a:not(.button):not(.brand) { color: #0a8f63; }
body.guest input:focus, body.guest select:focus { border-color: #0fae78; box-shadow: 0 0 0 3px rgba(15, 174, 120, .18); }

/* v395: teste grátis (página pública usa só este CSS) — aceite dos termos à esquerda, os dois botões do mesmo
   tamanho com texto branco */
.signup-form label.check.terms-ok { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; font-size: 13.5px; font-weight: 500; }
.signup-form label.check.terms-ok input { width: 18px; height: 18px; margin: 0; flex: none; }
.signup-form button[data-always] { width: 100%; align-self: stretch; min-height: 52px; padding: 14px; font-size: 16px; margin-top: 6px; }
.signup-form button.signup-demo { color: #fff; }
/* v399: "ou" entre os dois caminhos e a explicação da demonstração */
.signup-or { text-align: center; margin: 2px 0 -4px; font-size: 13px; color: var(--muted, #6b7080); }
.signup-demo-hint { margin: 0; text-align: center; }
/* v424: grupos de Meus links abrem e fecham */
details.links-group > summary { list-style: none; cursor: pointer; }
details.links-group > summary::-webkit-details-marker { display: none; }
details.links-group > summary h2 { margin: 0 -20px; display: flex; align-items: center; gap: 8px; }
details.links-group[open] > summary h2 { margin-bottom: 10px; }
details.links-group:not([open]) > summary h2 { border-bottom: 0; }
details.links-group .links-caret { display: inline-block; transition: transform .15s; font-size: 12px; }
details.links-group[open] .links-caret { transform: rotate(90deg); }
details.links-group .links-count { margin-left: 4px; font-weight: 600; opacity: .7; }
.links-group > summary > h2 { padding: 12px 20px; background: #eef8f3; color: #087a54; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
/* v426: oportunidade ganha — o bloco "Virar cliente" fica dentro do cartão branco (no celular ficava solto) */
.closing:has(> h2) { background: #fff; border: 1px solid var(--line, #e8e8ee); box-shadow: var(--shadow, none); padding: 16px 18px; margin: 0 0 14px; border-radius: 16px; }
/* v426: Importar no celular sem nada passando da tela; Contatos com busca larga e nome comprido quebrando */
.table-scroll { max-width: 100%; overflow-x: auto; }
.board-filters .contacts-search { flex: 1 1 280px; min-width: 260px; }
@media (max-width: 700px) {
    .board-filters .contacts-search { min-width: 0; flex-basis: 100%; }
    .contacts-table td:nth-child(2), .contacts-table td:nth-child(2) a { overflow-wrap: anywhere; word-break: break-word; }
    .contacts-table { table-layout: auto; max-width: 100%; }
}
.drop-placeholder { border-radius: 0 !important; }

/* v568 (Ian: ícone preto gigante na página de assinar): páginas sem login não carregam o theme.css; o tamanho do ícone vem daqui também */
svg.ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.17em; flex: none; display: inline-block; }
/* v610 (Ian): Primeiros passos = faixa fina no topo do Painel */
.start-banner { padding: 8px 14px !important; margin: 0 0 14px !important; border-radius: 10px !important; font-size: 13.5px; }
.start-banner .start-link { gap: 6px 10px; }
.start-banner .ico { width: 15px; height: 15px; }
/* v612: versão boa guardada e voltar pra ela (Atualizar o sistema) */
.upd-stable { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f4; display: grid; gap: 8px; }
.upd-stable p, .upd-stable form { margin: 0; }
.upd-stable details summary { cursor: pointer; color: #64748b; }
.upd-stable details form { margin-top: 8px; }
/* v615: juntar oportunidades (fica discreto, em cima do Excluir) */
.side-merge { text-align: right; margin: 4px 4px 0; }
.side-merge > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: #64748b; }
.side-merge > summary::-webkit-details-marker { display: none; }
.side-merge form { display: flex; gap: 6px; justify-content: flex-end; margin: 8px 0 4px; }
.side-merge select { max-width: 240px; font-size: 12.5px; height: 32px; }
.side-merge p { margin: 0; }
@media (max-width: 760px) { .deal-layout .side-merge { order: 10; } }
/* v617: valor do contrato antes de marcar Ganho (oportunidade sem valor) */
.closing-row form:has(.won-value-inline) { display: flex; gap: 8px; align-items: center; }
.closing-row .won-value-inline { width: 170px; height: 38px; font-size: 13.5px; }
/* v619: troca de cor e claro/escuro na frente do título do Painel, pequeno */
.page-head h1 .dash-theme { display: inline-flex; vertical-align: middle; margin-left: 12px; }
.page-head h1 .dash-theme .theme-switch { margin: 0; }
.side-merge select { max-width: 100%; width: 100%; } /* v620: o nome da outra oportunidade não corta */
.side-merge form { flex-wrap: wrap; }
/* v661 (Ian: "os botões do grupo e do agendamento estão desalinhados e um maior que o outro"): mesma altura e alinhados */
.action-bar { align-items: center; }
.action-bar .action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; box-sizing: border-box; line-height: 1; margin: 0; }
.action-bar .action svg { width: 16px; height: 16px; flex: none; }
.action-bar > .action-pick { display: flex; }
@media (max-width: 600px) { .action-bar .action { height: 50px; } }
/* v662 (Ian: "uma faixa aleatória no Raio-X"): barra de salvar sem nenhum botão à vista não aparece */
.bulk-bar:not(:has(button:not([hidden]), select, input:not([type=hidden]))) { display: none; }
/* v662: Seu projeto do cliente (Raio-X como link, perfil otimizado, análise pela IA, campanhas anteriores) */
a.proj-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: inherit; }
.li-done { margin: 0 0 8px; }
.li-ai { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.li-analise { margin: 8px 0; }
.li-analise > summary, .camp-old > summary { cursor: pointer; }
.camp-old { margin-top: 10px; }
/* v665 (Ian): comando do LinkedIn numa caixa mais baixa, com o ícone pequeno de copiar no canto (sem o botão verde) */
.li-copy pre.li-prompt { max-height: 140px !important; padding: 12px 44px 12px 12px; font-size: 13px; color: var(--muted, #64748b); }
.li-copy .li-copy-ico { position: absolute; top: 8px; right: 8px; bottom: auto; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .85); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; cursor: pointer; }
.li-copy .li-copy-ico:hover { background: #fff; }
.li-copy .li-copy-ico svg { width: 15px; height: 15px; }
.li-done { margin: 10px 0 0; }
/* v667 (Ian): "Seu Raio-X" igual às outras linhas do Seu projeto; linha do tempo simples */
a.card.proj-link { padding: 18px 20px; align-items: center; }
a.card.proj-link .pl-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #0b6f4e; }
a.card.proj-link .pl-t svg { width: 16px; height: 16px; }
a.card.proj-fold.proj-link { display: flex !important; padding: 16px 20px !important; }
a.card.proj-fold.proj-link > * { margin: 0 !important; }
a.card.proj-fold.proj-link .pl-t { font-size: 16px; }

.timeline.tl-simple li { align-items: flex-start; }
.timeline.tl-simple .tl-body { padding-top: 5px; min-width: 0; }
.timeline.tl-simple li.later { color: #9aa5a0; }
.timeline.tl-simple .tl-todo { margin: 4px 0 8px; font-weight: 400; font-size: 14px; color: var(--ink); }
.timeline.tl-simple .tl-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.card.now .button + .button { margin-left: 8px; }
/* v672: Atualizar o sistema mais limpo (versão boa, voltar pra uma versão, guardar) */
.upd-simple { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0f4; }
.upd-simple form { margin: 0; }
.upd-simple form.inline { display: inline; }
.upd-simple .inline-form label { display: inline-flex; align-items: center; gap: 8px; }
.upd-simple .upd-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.upd-simple .upd-row form { display: inline-flex !important; margin: 0; }
.upd-simple .upd-row input[type=number] { margin: 0; padding: 6px 8px; }
.upd-simple .upd-row .link { padding: 0 !important; }
.camp-del { margin: 10px 0 0; } .camp-del .link { padding-left: 0 !important; }
/* v679: caixas 4 P's e Campanhas da ficha em lista; Fechar no painel dos 4 P's */
.offer-step .os-list { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 4px; }
.offer-step .os-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.offer-step .os-row .button { margin-top: 0 !important; flex: none; }
.offer-step .os-old > summary { cursor: pointer; font-size: 13px; list-style: none; }
.offer-step .os-old > summary::-webkit-details-marker { display: none; }
.offer-step .os-old pre { white-space: pre-wrap; font: inherit; font-size: 12.5px; max-height: 220px; overflow: auto; margin: 6px 0 0; }
.offer-step .os-new { margin: 6px 0 0; }
.offer-step .os-new .link, .offer-step a.os-new { padding-left: 0 !important; font-weight: 600; }
.offer-edit-body { position: relative; }
.offer-edit-body .fp-close { position: absolute; top: 0; right: 0; }
/* v681: 4 P's 2, 3... (caixa de texto simples) */
.ps-panel .ps-form textarea { width: 100%; min-height: 380px; }
.ps-panel .ps-form textarea.ps-notes { min-height: 140px; } /* v718: anotações do 4 P's 2, 3... do tamanho das do 4 P's 1 */
.ps-panel .ps-form label + label { display: block; margin-top: 14px; }
.ps-panel .ps-del { margin: 10px 0 0; }
.ps-panel .ps-del .link { padding-left: 0 !important; }
.camp-4ps > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; }
.camp-4ps > summary::-webkit-details-marker { display: none; }
.camp-4ps > summary h2 { margin: 0; font-size: 16px; }
.camp-4ps-text { margin-top: 10px; max-height: 320px; overflow: auto; font-size: 14px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
.gen-card .gen-alt { flex-basis: 100%; width: 100%; margin: 8px 0 0; }
.camp-version .camp-name { margin: 10px 0 4px; gap: 8px; }
.camp-version .camp-name input { max-width: 320px; }
.camp-editor .camp-name { margin: 10px 0 4px; gap: 8px; } .camp-editor .camp-name input { max-width: 320px; }
body.pg-campanha .gen-card .gen-alt { display: block !important; width: 100%; flex-basis: 100%; margin: 10px 0 0 !important; }
/* v689: campanha editável direto (sem bloco "Editar o texto"), nome sem botão, chavinha de liberado no portal, texto organizado */
.camp-version .camp-name { margin: 10px 0 8px; }
.camp-version .camp-name input { max-width: 360px; font-weight: 600; }
.camp-inline { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; }
.camp-inline label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.camp-inline textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.55; }
.camp-inline button { align-self: flex-start; }
.camp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.camp-foot form { margin: 0 !important; }
.camp-foot .camp-del .link { padding: 0 !important; }
.flow.camp-free-flow dd { margin: 4px 0 14px; }
.flow.camp-free-flow dt { margin-top: 4px; }
.sequence.camp-free-seq li p { white-space: normal; }
.camp-live label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--muted); }
/* v692 (Ian: "uma linhazinha, tipo planilha"; "materiais do cliente e da campanha"): materiais compactos em dois grupos */
.ct-materials .mat-group { margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.mat-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.mat-list { list-style: none; padding: 0; margin: 0; }
.ct-materials .mat-list li { display: flex; flex-wrap: nowrap; grid-template-columns: none; align-items: center; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line); min-height: 30px; }
.ct-materials .mat-list li:first-child { border-top: 0; }
.ct-materials form { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0 !important; }
.ct-materials label.file-pick { flex-direction: row; font-weight: 600; font-size: 13px; gap: 4px; }
.ct-materials input[type=text], .ct-materials input[type=url] { height: auto; }
.mat-open { display: inline-flex; color: var(--muted); flex-shrink: 0; }
.mat-open:hover { color: var(--accent, #0a7a55); }
.ct-materials .mat-list .mat-name { flex: 1 1 0; min-width: 0; }
.ct-materials .mat-name input[type=text] { width: 100%; border: 1px solid transparent; background: transparent; padding: 3px 6px; font-size: 14px; line-height: 1.4; min-height: 0; border-radius: 6px; box-shadow: none; }
.ct-materials .mat-name input[type=text]:hover { border-color: var(--line); }
.ct-materials .mat-name input[type=text]:focus { border-color: var(--accent, #0a7a55); background: var(--card, #fff); }
.ct-materials .mat-list .mat-meta { white-space: nowrap; flex: 0 0 auto; grid-column: auto; margin: 0; }
.mat-del .link { padding: 0 !important; }
.mat-empty { margin: 2px 0 6px; }
.mat-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.mat-add form { margin: 0 !important; }
.mat-add .mat-link { display: flex; gap: 6px; flex: 1; min-width: 260px; }
.mat-add .mat-link input { flex: 1; min-width: 0; padding: 5px 8px; font-size: 13px; }
.mat-add .file-pick { cursor: pointer; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
@media (max-width: 640px) { .ct-materials .mat-list .mat-meta { display: none; } .mat-add .mat-link { min-width: 100%; } }
/* v695 (Ian): anexos da campanha em dois espaços, pro cliente e interno */
.camp-att-head { margin: 12px 0 2px; }
.camp-internal { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.camp-internal form.doc-upload { margin-top: 4px !important; }
.mat-saved { color: var(--accent, #0a7a55); font-size: 12px; font-weight: 600; white-space: nowrap; }
.field-saved { display: block; margin-top: 4px; } .field-saved.ok { color: var(--accent, #0a7a55); font-weight: 600; } .fp-gen { margin-top: 6px; }
.camp-archived { margin-top: 14px; } .camp-arch-list { list-style: none; padding: 0; margin: 6px 0 0; } .camp-arch-list li { display: flex; gap: 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); } .camp-arch-list form.inline, .os-arch form.inline { display: inline; margin: 0; } .os-arch { margin-top: 6px; }
.camp-preview { margin: 10px 0 0; } .camp-preview > summary { cursor: pointer; color: var(--accent, #0a7a55); font-weight: 600; } .camp-preview-body { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); } .project-metrics-link { margin: 8px 0 0; } .project-metrics-link a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.own-camps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; } .own-camp { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--ink); background: var(--card, #fff); } .own-camp.on { background: var(--accent, #0a7a55); color: #fff; border-color: transparent; } .own-camp .own-kind { font-size: 11px; opacity: .7; margin-left: 4px; } .own-camp-new > summary { list-style: none; cursor: pointer; } .own-camp-new > summary::-webkit-details-marker { display: none; } .own-camp-new form { margin: 6px 0 0 !important; } .own-camp-name { margin: 0 0 10px !important; } .own-camp-name input { font-size: 18px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 6px; } .own-camp-name input:hover { border-color: var(--line); }
.camp-rule { font-weight: 400; }

/* v707/v708 (Ian): Reabrir do topo do card Perdido/Ganho como botãozinho cheio na cor do tema, texto branco (bom no claro e no escuro) */
.deal-reopen-top, button.link.deal-reopen-top, body.side main.container :is(.muted, .small) button.link.deal-reopen-top { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 12px !important; border: 0 !important; border-radius: 999px !important; background: var(--brand) !important; color: #fff !important; font-weight: 600 !important; text-decoration: none !important; min-height: 0 !important; line-height: 1.5; }
.deal-reopen-top:hover, button.link.deal-reopen-top:hover, body.side main.container :is(.muted, .small) button.link.deal-reopen-top:hover { background: var(--brand-dark) !important; color: #fff !important; }
/* v713: 4 P's de uma campanha (2º 4 P's) dentro dela, no portal do cliente */
.camp-4ps { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.camp-4ps > summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.camp-4ps .positioning-text { margin-top: 10px; line-height: 1.55; }
/* v722: Resumo do contrato na linha inteira, no fim do formulário do contrato */
.ct-summary { grid-column: 1 / -1; order: 99; }
.ct-summary textarea { width: 100%; min-height: 72px; }
/* v743: Conversas aceitas, uma linha por funil (nome do funil + etapa) */
.acc-stage-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.acc-stage-row .acc-stage-name { min-width: 180px; font-weight: 600; font-size: 14px; }
