/* =====================================================================
   Comercial Grupo Amérik — mesma linguagem visual do Financeiro
   ===================================================================== */
:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --card-2: #f3f4f6;
    --border: #e6e8ec;
    --text: #111827;
    --muted: #6b7280;
    --primary: #001ded;
    --primary-hover: #0018c4;
    --primary-soft: #e6e9ff;
    --danger: #e5484d;
    --success: #16a34a;
    --warning: #d97706;
    --info: #2563eb;
    --violet: #7c3aed;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
    --radius: 12px;
    --radius-sm: 8px;
    color-scheme: light;

    /* nomes antigos, ainda usados em alguns pontos */
    --bg-primary: var(--bg); --bg-secondary: var(--card-2); --text-primary: var(--text);
    --text-secondary: var(--muted); --border-color: var(--border); --card-bg: var(--card);
    --color-new: var(--info); --color-completed: var(--success); --color-pending: var(--warning);
}
[data-theme="dark"] {
    --bg: #0e1117;
    --card: #191d24;
    --card-2: #222731;
    --border: #2a3040;
    --text: #e3e6ec;
    --muted: #9aa0ad;
    --primary: #001ded;
    --primary-hover: #1a35ff;
    --primary-soft: #0f1740;
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
    --info: #60a5fa;
    --violet: #a78bfa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }

/* ===== HEADER (horizontal, como no Front) ===== */
.header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-content { max-width: none; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: #001ded; color: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 600; }
.nav-tabs { display: flex; gap: 4px; margin-left: 8px; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.nav-btn:hover { background: var(--card-2); color: var(--text); }
.nav-btn.active { background: var(--primary); color: #fff; }
.nav-btn svg { flex: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { font-size: 12px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* login */
body.bloqueado > .header, body.bloqueado > .container { visibility: hidden; }
[hidden] { display: none !important; }
.login-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.login-card { width: min(380px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.login-brand { margin-bottom: 6px; }
.login-btn { width: 100%; justify-content: center; margin-top: 4px; }
.login-erro { font-size: 13px; color: #dc2626; background: rgba(220, 38, 38, .08); border-radius: 8px; padding: 8px 10px; }
/* CS + marca editável */
.tag-sim { background: #0f766e; } .tag-nao { background: #a1a1aa; }
button.cs-toggle { border: 0; cursor: pointer; font-family: inherit; }
button.cs-toggle:hover { filter: brightness(1.1); }
.marca-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; color: var(--text); font: inherit; cursor: pointer; max-width: 100%; }
.marca-btn svg { color: var(--muted); opacity: 0; transition: opacity .15s; }
.marca-btn:hover { border-color: var(--border); background: var(--card-2); }
.marca-btn:hover svg { opacity: 1; }
.marca-btn i { color: var(--muted); font-style: italic; font-weight: 400; }
.marca-input { width: 100%; min-width: 140px; padding: 4px 8px; border: 1px solid var(--primary); border-radius: 6px; background: var(--card); color: var(--text); font: inherit; outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1100; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; background: #374151; box-shadow: var(--shadow-lg); }
.toast.ok { background: #16a34a; } .toast.bad { background: #dc2626; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text);
    display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.theme-toggle:hover { background: var(--card-2); }

/* ===== LAYOUT ===== */
.container { max-width: none; margin: 0 auto; padding: 24px; }
.section { display: none; }
.section.active { display: block; }
.section-header, .dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-subtitle { color: var(--muted); font-size: 14px; margin-top: 2px; }
.contatos-actions { display: flex; gap: 8px; }

/* ===== CARDS DE MÉTRICA ===== */
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric-card {
    background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 18px;
}
.metric-card.pending-before { border-left-color: var(--muted); }
.metric-card.new { border-left-color: var(--success); }
.metric-card.completed { border-left-color: var(--info); }
.metric-card.pending-after { border-left-color: var(--violet); }
.metric-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metric-value { font-size: 26px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric-card.new .metric-value { color: var(--success); }
.metric-card.completed .metric-value { color: var(--info); }
.metric-card.pending-after .metric-value { color: var(--violet); }

/* ===== GRÁFICOS ===== */
.chart-section { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin-bottom: 20px; }
.chart-main, .chart-container, .kpi-sidebar {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px;
}
.chart-main h2, .chart-container h3, .kpi-sidebar h3 { margin-bottom: 12px; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kpi-item { padding: 12px 0; border-top: 1px solid var(--border); }
.kpi-item:first-of-type { border-top: 0; }
.kpi-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 12px; color: var(--muted); }

/* ===== BOTÕES / INPUTS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--primary);
    background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--card-2); }
.btn-sm { padding: 5px 9px; font-size: 12px; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-input, .filter-select, .form-group input, .form-group select, .form-group textarea {
    font: inherit; font-size: 14px; color: var(--text); background: var(--card-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 9px 12px; outline: none;
}
.search-input { flex: 1 1 260px; }
.search-input:focus, .filter-select:focus, .form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.filter-select { min-width: 150px; }

/* ===== TABELA ===== */
.table-container { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.col-tel, .col-tags, td:has(.faixa), td:has(.cs-toggle) { white-space: nowrap; }
.contatos-info { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }
.btn svg { vertical-align: -2px; margin-right: 4px; }
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]:hover { color: var(--text); }
th.sorted { color: var(--primary); }
.sort-ind { font-size: 12px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
th { text-align: left; padding: 12px 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--card); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
tr.lead-row { cursor: pointer; }
tr.lead-row:hover td { background: var(--card-2); }
td small { color: var(--muted); font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--border); }

/* ===== SCORE / TAGS ===== */
.faixa { display: inline-block; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 6px; font-weight: 700; font-size: 12px; color: #fff; }
.faixa-A { background: #16a34a; } .faixa-B { background: #2563eb; } .faixa-C { background: #d97706; } .faixa-D { background: #6b7280; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; line-height: 1.5; }
.tag-curso { background: #d97706; }
.tag-mentoria { background: #2563eb; }
.tag-consultoria { background: #7c3aed; }
.tag-agencia { background: #64748b; }
.tag-cliente { background: #16a34a; }
.tag-aluno { background: #0891b2; }
.tag-aplicacao { background: #db2777; }
.tag-prospeccao { background: #dc2626; } .tag-indicacao { background: #0d9488; }
.tags { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; }
td.col-tags { white-space: nowrap; }
.lead-sep { font-size: 12px; color: var(--muted); margin: 0 4px; }

/* ===== PAINEL DO LEAD ===== */
.lead-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 900; }
.lead-overlay.active { opacity: 1; pointer-events: auto; }
.lead-panel {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(580px, 100vw); background: var(--card); color: var(--text);
    border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; z-index: 901;
    overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.lead-panel.active { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .lead-panel, .lead-overlay { transition: none; } }
.lead-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lead-panel-head h2 { font-size: 20px; }
.lead-sub { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.modal-close { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 14px; }
.modal-close:hover { background: var(--card-2); }
.lead-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lead-stat { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.lead-stat .l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lead-stat .v { font-size: 18px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lead-stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lead-score { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.lead-score .n { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lead-score .n small { font-size: 12px; color: var(--muted); font-weight: 400; }
.lead-score .seg { color: var(--muted); font-size: 13px; margin-top: 2px; }
.lead-score ul { margin: 8px 0 0 18px; padding: 0; font-size: 13px; }
.lead-score .s { color: var(--muted); font-size: 13px; }
.lead-block h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lead-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-chip { background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.lead-chip b { color: var(--primary); }
.lead-timeline { display: flex; flex-direction: column; }
.lead-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.lead-item:last-child { border-bottom: none; }
.lead-item .d { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lead-item .p { font-weight: 600; }
.lead-item .m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.lead-item .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lead-item.cancelada .p { text-decoration: line-through; color: var(--muted); }
.lead-item details summary { cursor: pointer; color: var(--primary); }
.lead-item.ap { grid-template-columns: 150px 1fr; }
.lead-item.ap .d { font-weight: 600; color: var(--text); }

/* ===== KANBAN / PAINÉIS (placeholders) ===== */
.kanban-container, .panels-grid { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; color: var(--muted); }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: none; align-items: center; justify-content: center; z-index: 950; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(520px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); flex: none; }
.modal-form { padding: 20px; display: grid; gap: 14px; overflow-y: auto; flex: 1 1 auto; }
/* botões colam no rodapé enquanto o conteúdo rola */
.modal-form .modal-actions, .modal-form .form-actions { position: sticky; bottom: -20px; background: var(--card); margin: 6px -20px -20px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); z-index: 1; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.required { color: var(--danger); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ===== RESPONSIVO ===== */
/* telas médias (notebook): o menu ganhou os grupos Financeiro e Marketing — aperta os espaços pra caber sem cortar */
@media (max-width: 1600px) {
    .header-content { gap: 14px; padding: 12px 16px; }
    .nav-tabs { margin-left: 0; gap: 2px; }
    .nav-btn { padding: 8px 10px; }
    .user-chip { max-width: 140px; }
}
@media (max-width: 1440px) {
    .nav-btn { padding: 8px 8px; gap: 6px; font-size: 13px; }
    .user-chip { display: none; }
}
@media (max-width: 1300px) {
    .brand-text { display: none; }
    .nav-btn { padding: 8px 7px; }
    .btn-interno { padding: 8px 10px; }
}
@media (max-width: 1024px) {
    .metrics-row { grid-template-columns: 1fr 1fr; }
    .chart-section, .charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .header-content { flex-wrap: wrap; gap: 12px; }
    .nav-tabs { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
    .metrics-row { grid-template-columns: 1fr; }
    .lead-stats { grid-template-columns: 1fr 1fr; }
    .lead-item { grid-template-columns: 80px 1fr; }
    .lead-item .v { grid-column: 2; text-align: left; }
}

/* ===== WhatsApp ===== */
.wa-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 0; background: #001ded; color: #fff; cursor: pointer; vertical-align: middle; margin-left: 6px; }
.wa-btn:hover { filter: brightness(1.15); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.badge-abs { position: absolute; top: -5px; right: -5px; }
.theme-toggle { position: relative; }
.wa-layout { display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100vh - 120px); min-height: 520px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.wa-lista { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.wa-lista-head { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.wa-lista-head .search-input { width: 100%; flex: none; }
.wa-filtros { display: flex; gap: 6px; align-items: center; min-width: 0; }
/* busca ao lado dos chips: ocupa o espaço que sobra, sem estourar a lateral */
.wa-lista-head .wa-filtros .wa-busca { width: auto; flex: 1 1 80px; min-width: 60px; border-radius: var(--radius-sm); height: 28px; }
.wa-config { margin-left: auto; width: 30px; height: 30px; }
.wa-chip { white-space: nowrap; border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wa-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.wa-conversas { overflow-y: auto; flex: 1; }
.wa-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.wa-item:hover { background: var(--card-2); }
.wa-item.active { background: var(--primary-soft); }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--card-2); color: var(--muted); display: grid; place-items: center; font-weight: 700; flex: none; border: 1px solid var(--border); }
.wa-item-body { min-width: 0; flex: 1; }
.wa-item-top, .wa-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wa-item-top strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-hora { font-size: 11px; color: var(--muted); flex: none; }
.wa-preview { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-unread { background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; flex: none; }
.wa-vazio { padding: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.wa-chat { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.wa-vazio-chat { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.wa-vazio-chat svg { margin: 0 auto 10px; display: block; opacity: .5; }
.wa-thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.wa-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--card); }
.wa-thread-head h2 { font-size: 16px; margin: 0; }
.wa-thread-acoes { display: flex; gap: 8px; }
.wa-mensagens { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.wa-msg { display: flex; }
.wa-msg.minha { justify-content: flex-end; }
.wa-bolha { max-width: 70%; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 13px; line-height: 1.45; word-wrap: break-word; }
.wa-msg.minha .wa-bolha { background: var(--primary); color: #fff; border-color: var(--primary); }
.wa-msg.auto .wa-bolha { background: #0f766e; border-color: #0f766e; color: #fff; }
.wa-meta { font-size: 10px; opacity: .7; margin-top: 4px; text-align: right; }
.wa-erro { color: #fecaca; font-weight: 700; }
.wa-img { max-width: 260px; border-radius: 8px; display: block; }
.ci-de { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.wa-composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--card); align-items: flex-end; }
.wa-composer textarea { flex: 1; resize: none; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; max-height: 160px; outline: none; }
.wa-composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
/* horário */
.modal-wide { width: min(640px, 100%); }
.horario-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.horario-row { display: grid; grid-template-columns: 130px auto auto auto; align-items: center; gap: 8px; }
.horario-row input[type="time"] { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.form-inline { display: flex; align-items: center; gap: 8px; }
/* chat interno */
.chat-panel { display: flex; flex-direction: column; }
.chat-canais { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 0; min-height: 200px; }
.chat-composer { padding: 12px 0 0; border-top: 1px solid var(--border); background: transparent; position: relative; }
/* relacionamento */
.tag-vazio { background: #d4d4d8; color: #52525b; }
button.tm-toggle { border: 0; cursor: pointer; font-family: inherit; }
.rel-date { padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; }
.col-obs { min-width: 200px; }
.col-edit .marca-btn span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
@media (max-width: 900px) { .wa-layout { grid-template-columns: 1fr; height: auto; } .wa-lista { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--border); } .wa-thread { height: 60vh; } }

/* ===== WhatsApp v2 (estilo Front) ===== */
.wa-abas { display: flex; gap: 6px; align-items: center; }
.wa-aba { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.wa-aba:hover { background: var(--card-2); }
.wa-aba.active { background: var(--card-2); color: var(--text); }
.wa-aba:last-child { margin-left: auto; }
.wa-busca { flex: 1; min-width: 0; padding: 6px 10px !important; font-size: 12px; }
.wa-avatar { position: relative; }
.wa-avatar-wa { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.wa-avatar-wa svg { width: 9px; height: 9px; }
.wa-avatar-lg { width: 44px; height: 44px; font-size: 16px; }
.wa-dono { font-size: 11px; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 1px 6px; font-weight: 700; flex: none; }
.wa-tags { margin: 3px 0; flex-wrap: wrap; }
.wa-tags .tag { font-size: 10px; padding: 1px 6px; }
.wa-nova { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: center; }
.wa-ddi { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--muted); background: var(--bg); }
.wa-nova input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; }
.wa-head-esq { display: flex; gap: 12px; align-items: center; min-width: 0; }
.wa-head-esq .tags { margin-top: 4px; }
.wa-thread-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.wa-canal { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; background: var(--bg); }
.wa-status { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 12px; }
.wa-status.fechada { color: #15803d; background: rgba(22, 163, 74, .12); }
.wa-transferir { position: relative; }
.wa-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 220px; z-index: 50; padding: 6px; display: flex; flex-direction: column; }
.wa-menu-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; font-weight: 700; }
.wa-menu button { text-align: left; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 13px; padding: 8px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.wa-menu button:hover { background: var(--card-2); }
.wa-menu button small { color: var(--muted); }
.wa-dia { display: flex; justify-content: center; margin: 8px 0; }
.wa-dia span { font-size: 11px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.wa-quem { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.wa-msg.dele .wa-bolha { background: var(--card); }
.wa-msg.minha .wa-bolha { background: var(--primary-soft); color: var(--text); border-color: transparent; }
.wa-msg.auto .wa-bolha { background: rgba(15, 118, 110, .12); color: var(--text); border-color: transparent; }
.wa-erro { color: #dc2626; font-weight: 700; }
/* ajustes */
.ajustes-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 70vh; }
.ajustes-menu { border-right: 1px solid var(--border); padding: 20px 0; }
.ajustes-menu h1 { font-size: 22px; margin: 0 0 12px; padding: 0 20px; }
.ajustes-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: 0; border-left: 3px solid transparent; padding: 14px 20px; cursor: pointer; color: var(--text); font: inherit; }
.ajustes-item svg { flex: none; margin-top: 2px; color: var(--muted); }
.ajustes-item span { display: flex; flex-direction: column; gap: 2px; }
.ajustes-item small { color: var(--muted); font-size: 12px; }
.ajustes-item:hover { background: var(--card-2); }
.ajustes-item.active { background: var(--primary-soft); border-left-color: var(--primary); }
.ajustes-item.active strong, .ajustes-item.active svg { color: var(--primary); }
.ajustes-conteudo { padding: 24px 28px; min-width: 0; }
.ajustes-pane { display: none; } .ajustes-pane.active { display: block; }
.ajustes-pane h2 { margin: 0 0 4px; font-size: 18px; }
.horario-tabela { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 16px 0; overflow-x: auto; }
.horario-head, .horario-row { display: grid; grid-template-columns: 130px 70px repeat(4, 1fr); gap: 10px; align-items: center; min-width: 640px; }
.horario-head { font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.horario-row { padding: 5px 0; }
.horario-row input[type="time"] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }
.auto-box { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 16px 0; }
.auto-box-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.ajustes-pane .form-group select, .ajustes-pane .form-group textarea { width: 100%; }
.canais-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.canal-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--card); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.canal-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.canal-linha { font-size: 13px; }
.canal-badges { margin: 4px 0; }
.canal-fone { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 8px; }
.canal-fone svg, .canal-top svg { color: #25d366; }
.canal-novo { align-items: center; justify-content: center; font-size: 28px; color: var(--muted); border-style: dashed; cursor: default; min-height: 120px; }
@media (max-width: 900px) { .ajustes-layout { grid-template-columns: 1fr; } .ajustes-menu { border-right: 0; border-bottom: 1px solid var(--border); } }

/* iniciar conversa (modal) */
.nc-form { display: flex; flex-direction: column; gap: 14px; }
.nc-bloco { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.nc-bloco-titulo { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.nc-contato { display: flex; align-items: center; gap: 12px; }
.nc-contato > div:nth-child(2) { flex: 1; min-width: 0; }
.nc-contato .tags { margin-top: 4px; }
.nc-opcoes { display: flex; flex-direction: column; gap: 6px; }
.nc-opcao { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.nc-opcao.active { border-color: var(--primary); background: var(--primary-soft); }
.nc-opcao input, .modal-form .nc-opcao input[type="radio"] { flex: none; width: 18px; height: 18px; min-width: 18px; margin: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: none; accent-color: var(--primary); }
.nc-op-ico { flex: none; display: inline-flex; color: #25d366; }
.nc-op-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; text-align: left; }
.nc-op-txt strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-op-txt small { color: var(--muted); font-size: 12px; }
.nc-tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nc-tipo { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.nc-tipo small { color: var(--muted); font-size: 12px; }
.nc-tipo.active { border-color: var(--primary); background: var(--primary-soft); }
#ncAgendar { margin-top: 10px; }
#ncAgendar textarea { width: 100%; }
.wa-agendadas { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; background: rgba(217, 119, 6, .08); border-bottom: 1px solid var(--border); font-size: 12px; }
.wa-agendada { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wa-agendada .icon-btn { width: 24px; height: 24px; font-size: 11px; }

/* mídias */
.wa-tool { width: 36px; height: 36px; flex: none; }
.wa-video { max-width: 320px; border-radius: 8px; display: block; }
.wa-doc { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; }
.bib-upload { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.bib-upload input[type="text"], .bib-upload input[type="file"] { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; min-width: 0; }
.bib-lista { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.bib-item { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.bib-item .bib-tipo { font-size: 11px; color: var(--muted); }
.bib-item audio, .bib-item video { max-width: 220px; height: 32px; }
.bib-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.bib-item .icon-btn { width: 28px; height: 28px; font-size: 12px; }
.wa-avatar svg.wa-avatar-ico { width: 18px; height: 18px; color: var(--muted); }

/* correção: mídia alta não pode empurrar o layout (a caixa inteira rolava e escondia o topo) */
.wa-layout > * { min-height: 0; }
.wa-chat, .wa-thread, .wa-mensagens, .wa-lista, .wa-conversas { min-height: 0; }
.wa-thread { flex: 1; height: auto; }
.wa-img { max-height: 320px; width: auto; }
.wa-video { max-height: 320px; width: auto; }
.wa-bolha audio { max-width: 100%; }

/* gravação de áudio */
.wa-gravando { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid #dc2626; border-radius: 10px; background: rgba(220, 38, 38, .06); font-weight: 700; }
.wa-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; animation: pulsar 1s infinite; }
@keyframes pulsar { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.wa-gravando .btn { margin-left: auto; }
.wa-gravando .btn + .btn { margin-left: 0; }
#waMic.gravando { border-color: #dc2626; color: #dc2626; }

.wa-midia-acoes { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.wa-mini { font: inherit; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.wa-mini:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Emojis ---------- */
.emoji-pop { position: fixed; z-index: 400; width: min(340px, calc(100vw - 16px)); border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; background: var(--card); }
.emoji-pop emoji-picker { width: 100%; height: 400px; max-height: 60vh;
    --background: var(--card); --border-color: var(--border); --input-border-color: var(--border); --input-font-color: var(--text);
    --indicator-color: var(--primary); --button-hover-background: var(--card-2); --button-active-background: var(--card-2);
    --category-font-color: var(--muted); --input-placeholder-color: var(--muted); --outline-color: var(--primary); }
.chat-composer .emoji-btn { flex: 0 0 auto; }

/* ---------- Contagem de envio / editar / apagar ---------- */
.wa-msg.aguardando .wa-bolha { border: 1px dashed var(--border); }
.wa-contagem { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.wa-contagem-txt { display: block; padding: 8px 10px; border-radius: 8px; background: #fde68a; color: #7c2d12; font-size: 12px; font-weight: 600; }
[data-theme="dark"] .wa-contagem-txt { background: #713f12; color: #fef3c7; }
.wa-cancelar { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wa-cancelar:hover { background: var(--card-2); }
.wa-bolha { position: relative; }
.wa-msg-menu { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 6px; opacity: 0; transition: opacity .15s; }
.wa-msg:hover .wa-msg-menu, .wa-msg-menu:focus { opacity: 1; }
.wa-msg-menu:hover { background: rgba(0,0,0,.06); color: var(--text); }
.wa-msg.minha .wa-bolha { padding-right: 26px; }
.wa-menu-msg { position: absolute; right: 6px; top: 26px; z-index: 20; min-width: 190px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; display: flex; flex-direction: column; }
.wa-menu-msg button { text-align: left; border: 0; background: transparent; color: var(--text); padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.wa-menu-msg button:hover:not(:disabled) { background: var(--card-2); }
.wa-menu-msg button:disabled { color: var(--muted); cursor: not-allowed; }
.wa-editada { font-style: italic; color: var(--muted); margin-right: 4px; }
.wa-msg.apagada .wa-bolha { opacity: .7; }
.wa-apagada { font-style: italic; color: var(--muted); }
.wa-msg.editando .wa-bolha { outline: 2px solid var(--primary); }
.wa-editando { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--primary-soft); color: var(--text); font-size: 13px; font-weight: 600; }

/* ---------- Foto de perfil e reações ---------- */
.wa-avatar .wa-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; }
.wa-avatar .wa-avatar-wa { z-index: 2; }
.wa-msg:has(.wa-reacao-badge) { margin-bottom: 12px; }
.wa-msg.reacao { justify-content: center; }
.wa-reacao-linha { font-size: 12px; color: var(--muted); background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; max-width: 80%; }
.wa-reacao-hora { opacity: .7; margin-left: 4px; }
.wa-reacao-badge { position: absolute; right: 8px; bottom: -10px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 1px 6px; font-size: 13px; box-shadow: var(--shadow-lg); }
.wa-msg.minha .wa-reacao-badge { right: auto; left: 8px; }

/* ---------- Arrastar arquivo pra conversa ---------- */
.wa-thread { position: relative; }
.wa-thread.arrastando::after { content: 'Solte aqui para enviar o arquivo'; position: absolute; inset: 8px; z-index: 30; display: grid; place-items: center; border: 2px dashed var(--primary); border-radius: 14px; background: color-mix(in srgb, var(--primary) 8%, var(--card)); color: var(--primary); font-weight: 700; font-size: 15px; pointer-events: none; }

/* ---------- Score na conversa ---------- */
.wa-score { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 0; border-radius: 6px; background: var(--card-2); border: 1px solid var(--border); font-size: 12px; white-space: nowrap; }
.wa-score .faixa { border-radius: 5px 0 0 5px; min-width: 18px; padding: 2px 5px; }
.wa-score b { font-weight: 700; }

/* =====================================================================
   PAINÉIS (Kanban / Lista / Relatório)
   ===================================================================== */
.pn-grow { flex: 1; }
.pn-muted { color: var(--muted); }
.pn-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; min-width: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.pn-home-head h1 { margin: 0 0 4px; }
.pn-home-tools { display: flex; align-items: center; gap: 14px; margin: 16px 0 20px; flex-wrap: wrap; }
.pn-home-tools .pn-input { min-width: 280px; }
.pn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pn-card-painel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.pn-card-painel.excluido { opacity: .6; }
.pn-cp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px 6px; font-size: 16px; }
.pn-cat { font-size: 12px; background: var(--card-2); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.pn-cp-desc { padding: 0 20px 14px; color: var(--muted); font-size: 13px; min-height: 36px; }
.pn-cp-meta { padding: 12px 20px 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13px; }
.pn-cp-atraso { color: var(--muted); } .pn-cp-atraso.tem { color: #dc2626; font-weight: 600; }
.pn-cp-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--card-2); border-top: 2px solid var(--primary); }
.pn-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pn-titulo-sel { font: inherit; font-size: 18px; font-weight: 700; border: 0; background: transparent; color: var(--text); padding: 6px 4px; max-width: 320px; cursor: pointer; }
.pn-modos { display: inline-flex; background: var(--card-2); border-radius: 999px; padding: 4px; }
.pn-modo { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.pn-modo.active { background: var(--card); box-shadow: var(--shadow); }
.pn-modo-rel { border: 1px solid var(--border); background: var(--card); }
.pn-modo-rel.active { border-color: var(--primary); color: var(--primary); }
.pn-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-periodo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; background: var(--card); }
.pn-periodo input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
/* kanban */
.pn-section .section-header { display: none; }
.pn-kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; min-height: calc(100vh - 220px); align-items: flex-start; }
.pn-col { flex: 0 0 300px; background: var(--card-2); border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 220px); }
.pn-col.sobre { outline: 2px dashed var(--primary); }
.pn-col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-top: 4px solid #c7d2fe; border-radius: 12px 12px 0 0; font-weight: 700; font-size: 14px; }
.pn-col-nome small { color: var(--muted); font-weight: 600; }
.pn-col-atraso { font-size: 12px; background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.pn-col-body { padding: 0 10px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 80px; }
.pn-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); transition: transform .1s, box-shadow .1s; }
.pn-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.pn-card.arrastando { opacity: .5; }
.pn-card.atrasado { background: #fff5f5; } [data-theme="dark"] .pn-card.atrasado { background: #2a1d1f; }
.pn-card.sit-ganho { border-left: 4px solid #16a34a; } .pn-card.sit-perda { border-left: 4px solid #dc2626; opacity: .85; }
.pn-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.pn-cod { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.pn-resp { font-size: 11px; background: var(--card-2); border-radius: 999px; padding: 2px 8px; color: var(--text); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.pn-card-titulo { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.pn-tags { gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.pn-etq { font-size: 10px; text-transform: uppercase; letter-spacing: .02em; padding: 1px 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pn-card-bottom { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pn-atraso { color: #dc2626; font-weight: 700; }
.pn-valor { margin-left: auto; font-weight: 700; color: var(--text); }
.pn-chat { border: 1px solid var(--border); background: var(--card); border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 12px; }
.pn-chat:hover { border-color: var(--primary); }
.pn-novo-item { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; text-align: left; padding: 10px 6px; cursor: pointer; border-radius: 8px; }
.pn-novo-item:hover { background: var(--card); color: var(--text); }
.pn-sit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.pn-sit i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
/* lista */
.pn-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.pn-tabela th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.pn-tabela td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pn-tabela tbody tr:hover { background: var(--card-2); }
.pn-desc-col { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pn-etapa-cel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .pn-etapa-cel i { width: 4px; height: 18px; border-radius: 2px; display: inline-block; }
.pn-verde { color: #16a34a; font-weight: 700; } .pn-vermelho { color: #dc2626; font-weight: 700; } .pn-laranja { color: #d97706; font-weight: 700; }
/* relatório */
.pn-rel { display: grid; gap: 16px; }
.pn-rel-aviso { background: var(--primary-soft); color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.pn-rel-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pn-big { border-radius: 14px; padding: 18px 22px; color: #fff; }
.pn-big.ganho { background: #16a34a; } .pn-big.perda { background: #ef4444; } .pn-big.andamento { background: #f59e0b; }
.pn-big-l { font-weight: 700; opacity: .95; } .pn-big-v { font-size: 26px; font-weight: 800; margin: 6px 0 2px; } .pn-big-n { opacity: .9; font-size: 13px; }
.pn-rel-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pn-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.pn-kpi-l { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; } .pn-kpi-v { font-size: 20px; font-weight: 800; } .pn-kpi-txt { font-size: 14px; font-weight: 600; }
.pn-rel-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pn-rel-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; min-height: 120px; }
.pn-rel-box h3 { margin: 0 0 12px; font-size: 15px; } .pn-rel-box h3 small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.pn-rel-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .pn-rel-box-head h3 { margin: 0; } .pn-rel-box-head small { color: var(--muted); }
.pn-rel-box canvas { max-height: 240px; }
.pn-funil { display: grid; gap: 8px; }
.pn-funil-linha { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; }
.pn-funil-bar { background: #dfe0fb; color: #1e1b4b; border-radius: 6px; padding: 8px 10px; text-align: center; display: flex; flex-direction: column; font-size: 12px; min-width: 120px; }
[data-theme="dark"] .pn-funil-bar { background: #3730a3; color: #e0e7ff; }
.pn-funil-pct { position: absolute; right: 0; font-size: 11px; font-weight: 700; background: var(--card-2); border-radius: 6px; padding: 2px 6px; }
.pn-motivos { display: grid; gap: 10px; }
.pn-motivo { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pn-motivo-bar { height: 8px; background: var(--card-2); border-radius: 999px; overflow: hidden; } .pn-motivo-bar i { display: block; height: 100%; background: #ef4444; }
.pn-etapas-gp { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.pn-egp { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; font-size: 12px; gap: 6px; }
.pn-egp-l { color: var(--muted); } .pn-egp-nome { text-align: center; font-weight: 600; } .pn-egp-r { text-align: right; color: var(--muted); }
.pn-egp-bar { grid-column: 1 / -1; height: 6px; background: var(--card-2); border-radius: 999px; display: flex; justify-content: center; overflow: hidden; }
.pn-egp-bar i.p { background: #ef4444; height: 100%; } .pn-egp-bar i.g { background: #16a34a; height: 100%; }
/* card modal */
.pn-modal-card { padding: 12px; }
.pn-card-modal { position: relative; width: min(1180px, 100%); height: min(860px, 96vh); background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.pn-card-fechar { position: absolute; top: 12px; right: 12px; z-index: 5; }
.pn-card-esq { padding: 22px 24px; overflow-y: auto; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.pn-card-esq h4 { margin: 14px 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.pn-cd-cod { font-size: 12px; color: var(--muted); font-weight: 700; }
.pn-cd-top { display: flex; align-items: center; gap: 12px; }
.pn-cd-titulo { flex: 1; font: inherit; font-size: 20px; font-weight: 800; border: 1px solid transparent; background: transparent; color: var(--text); padding: 4px 6px; border-radius: 8px; min-width: 0; }
.pn-cd-titulo:hover, .pn-cd-titulo:focus { border-color: var(--border); background: var(--card-2); outline: none; }
.pn-cd-etapa { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pn-cd-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; position: relative; }
.pn-cd-campo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pn-cd-campo input, .pn-cd-campo select { font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 5px 8px; }
.pn-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.pn-cd-sit { margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--card-2); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pn-card-esq textarea, .pn-card-dir textarea { width: 100%; font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 8px 10px; resize: vertical; }
.pn-cd-contato { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.pn-cd-contato.vazio { justify-content: space-between; }
.pn-cd-foto { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.pn-cd-foto img { width: 100%; height: 100%; object-fit: cover; }
.pn-cd-contato-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .pn-cd-contato-info small { color: var(--muted); }
.pn-cd-contato-acoes { display: flex; gap: 6px; align-items: center; }
.pn-cd-valor { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pn-cd-valor input { font: inherit; font-size: 15px; font-weight: 700; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 6px 10px; width: 160px; }
.pn-cd-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); font-size: 12px; }
.pn-card-dir { display: flex; flex-direction: column; background: var(--card-2); min-height: 0; }
.pn-cd-abas { display: flex; gap: 6px; padding: 16px 20px 0 20px; }
.pn-aba { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.pn-aba.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.pn-cd-lateral { flex: 1; overflow-y: auto; padding: 14px 20px; min-height: 0; }
.pn-anot-form { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.pn-anot-form textarea { border: 0; padding: 4px; }
.pn-anot-tools { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pn-anots, .pn-hist { display: grid; gap: 10px; }
.pn-anot, .pn-hist-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pn-hist-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.pn-cd-acoes { border-top: 1px solid var(--border); padding: 14px 20px; background: var(--card); max-height: 46%; overflow-y: auto; }
.pn-cd-gp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pn-btn-ganho { background: #15803d !important; border-color: #15803d !important; color: #fff !important; }
.pn-btn-perda { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
.pn-cd-mover-l { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pn-cd-mover { display: grid; gap: 6px; }
.pn-fase { display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 8px; padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.pn-fase.atual { outline: 2px solid var(--text); outline-offset: -2px; } .pn-fase:disabled { opacity: .5; cursor: not-allowed; }
.pn-etq-pop { position: absolute; top: 100%; left: 0; z-index: 30; width: 300px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; margin-top: 6px; }
.pn-etq-pop .pn-input { width: 100%; margin-bottom: 8px; }
.pn-etq-lista { max-height: 260px; overflow-y: auto; display: grid; gap: 6px; } .pn-etq-lista label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pn-ncd-resultados { display: grid; gap: 4px; margin-top: 6px; }
.pn-ncd-item { text-align: left; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; }
.pn-ncd-item:hover { border-color: var(--primary); } .pn-ncd-item small { color: var(--muted); }
.pn-ncd-sel { font-size: 13px; color: #15803d; font-weight: 600; } .pn-ncd-sel small { color: var(--muted); margin-left: 6px; }
/* painel form */
.pn-modal-painel { width: min(920px, 100%); max-height: 94vh; display: flex; flex-direction: column; }
.pn-pf { overflow-y: auto; flex: 1; }
.pn-pf h4 { margin: 8px 0 0; font-size: 14px; }
.pn-pf-linha { display: flex; gap: 12px; flex-wrap: wrap; } .pn-pf-linha .grow { flex: 1; } .pn-pf-linha .curto { flex: 0 0 110px; min-width: 0; }
.pn-pf-campo { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); flex: 1; min-width: 160px; }
.pn-pf-campo input, .pn-pf-campo select, .pn-pf-campo textarea, .pn-pf-bloco input, .pn-pf-bloco select, .pn-pf-bloco textarea { font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 8px 10px; width: 100%; }
.pn-pf-vis { background: var(--card-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.pn-pf-vis-t { font-weight: 700; font-size: 13px; }
.pn-pf-radio { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; } .pn-pf-radio div { display: grid; } .pn-pf-radio small { color: var(--muted); }
.pn-pf-etapas { display: grid; gap: 8px; }
.pn-pf-etapa { display: grid; grid-template-columns: auto 44px 1fr 150px auto; gap: 8px; align-items: center; background: var(--card-2); border-radius: 10px; padding: 8px 10px; }
.pn-pf-etapa input[type=text], .pn-pf-etapa select { font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 7px 10px; }
.pn-pf-etapa input[type=color] { width: 44px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); padding: 2px; cursor: pointer; }
.pn-pf-ordem { display: grid; } .pn-pf-ordem button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; line-height: 1; padding: 2px; }
.pn-pf-bloco { background: var(--card-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: 13px; } .pn-pf-bloco small { color: var(--muted); }
.pn-pf-acoes { padding: 14px 20px; border-top: 1px solid var(--border); margin-top: 0; }
/* confete */
.pn-confete { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.pn-confete i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px; animation: pn-cai 2.6s ease-in forwards; }
@keyframes pn-cai { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .8; } }
@media (max-width: 900px) {
    .pn-card-modal { grid-template-columns: 1fr; height: 96vh; overflow-y: auto; } .pn-card-esq { border-right: 0; border-bottom: 1px solid var(--border); }
    .pn-rel-big, .pn-rel-kpis, .pn-rel-2 { grid-template-columns: 1fr; }
}
.switch-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.lead-unir { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lead-extras small { color: var(--muted); }

/* ---------- Diálogo padrão ---------- */
.dlg { z-index: 1200; }
.dlg-box { width: min(480px, 100%); }
.dlg-box.modal-wide { width: min(640px, 100%); }
.dlg-texto { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.modal-form input, .modal-form select, .modal-form textarea { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); width: 100%; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dlg-money { display: flex; align-items: center; gap: 8px; font-weight: 700; } .dlg-money input { flex: 1; }
.btn-perigo { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
.unir-resultados { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.unir-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13px; }
.unir-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.unir-item div { display: grid; gap: 2px; flex: 1; text-align: left; justify-items: start; } .unir-item small { color: var(--muted); }
.unir-aviso { font-size: 12px; color: var(--muted); background: var(--card-2); border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.lead-uniao { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; }

/* ---------- Menu com submenu (CRM) ---------- */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop.active > .nav-drop-btn { background: var(--primary); color: #fff; }
.nav-drop-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 200; }
.nav-drop.aberto > .nav-drop-menu { display: flex; }
.nav-sub { width: 100%; justify-content: flex-start; border-radius: 8px; }
.nav-sub.active { background: var(--primary-soft); color: var(--primary); }

/* ---------- Painéis v2 (modelo do Front) ---------- */
.pn-ico-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; padding: 0; }
.pn-ico-btn:hover { border-color: var(--primary); color: var(--primary); }
.pn-ico-btn.pn-ico-perigo:hover { border-color: #dc2626; color: #dc2626; }
.pn-ico-btn.pn-ico-primary { background: var(--primary); border-color: var(--primary); color: #fff; } .pn-ico-btn.pn-ico-primary:hover { background: var(--primary-hover); color: #fff; }
.pn-ico-btn svg { width: 18px; height: 18px; }
.pn-cp-foot .pn-ico-btn svg { width: 22px; height: 22px; }
.pn-cp-admin, .pn-cp-atraso { display: flex; align-items: center; gap: 8px; }
.pn-cp-admin svg { color: var(--muted); }
.pn-link { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; }
.pn-link:hover { background: var(--primary-soft); }
.pn-resp { display: inline-flex; align-items: center; gap: 6px; }
.pn-resp-av { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-size: 9px; font-weight: 800; display: inline-grid; place-items: center; flex: none; letter-spacing: .02em; }
/* kanban */
.pn-col-head { gap: 6px; }
.pn-col-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-col-nome small { background: var(--card); border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-left: 4px; }
.pn-col-hoje { font-size: 12px; background: #fef3c7; color: #b45309; border-radius: 999px; padding: 2px 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.pn-col-atraso { display: inline-flex; align-items: center; gap: 4px; }
.pn-col-total { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 14px 8px; }
.pn-col-menu { border: 0; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pn-col-menu:hover { background: var(--card); color: var(--text); }
.pn-col { position: relative; }
.pn-col-menu-pop { position: absolute; top: 44px; right: 8px; z-index: 40; min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.pn-col-menu-pop button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pn-col-menu-pop button:hover { background: var(--card-2); }
.pn-col-menu-pop button > i { width: 15px; height: 15px; display: inline-block; border-radius: 4px; }
.pn-col-menu-pop svg { width: 15px; height: 15px; color: var(--primary); }
.pn-pop-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px 4px; border-top: 1px solid var(--border); margin-top: 4px; }
.pn-col-vazia { border: 2px dashed var(--border); border-radius: 10px; padding: 22px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.pn-col.sobre .pn-col-vazia { border-color: var(--primary); color: var(--primary); }
.pn-novo-item { display: flex; align-items: center; gap: 6px; margin: 4px 10px 10px; }
.pn-card.vence-hoje { background: #fffbeb; border-color: #fcd34d; } [data-theme="dark"] .pn-card.vence-hoje { background: #2a2414; border-color: #92400e; }
.pn-card.atrasado { border-color: #fca5a5; } [data-theme="dark"] .pn-card.atrasado { border-color: #7f1d1d; }
.pn-prazo { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border-radius: 6px; padding: 2px 6px; background: var(--card-2); }
.pn-prazo.atrasado { background: #fee2e2; color: #b91c1c; } .pn-prazo.hoje { background: #fef3c7; color: #b45309; }
[data-theme="dark"] .pn-prazo.atrasado { background: #450a0a; color: #fca5a5; } [data-theme="dark"] .pn-prazo.hoje { background: #451a03; color: #fcd34d; }
.pn-chat { display: inline-grid; place-items: center; color: var(--muted); padding: 0; }
.pn-chat:hover { color: var(--primary); }
/* card aberto */
.pn-cd-cod { display: flex; align-items: center; gap: 10px; }
.pn-cd-titulo { width: 100%; flex: none; }
.pn-cd-data { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--card-2); margin-top: 6px; }
.pn-cd-data.atrasado { background: #fee2e2; } .pn-cd-data.hoje { background: #fef3c7; }
[data-theme="dark"] .pn-cd-data.atrasado { background: #450a0a; } [data-theme="dark"] .pn-cd-data.hoje { background: #451a03; }
.pn-cd-data .pn-cd-campo span { color: var(--muted); font-weight: 600; }
.pn-cd-data-tag { font-size: 12px; font-weight: 700; }
.pn-cd-data.atrasado .pn-cd-data-tag { color: #b91c1c; } .pn-cd-data.hoje .pn-cd-data-tag { color: #b45309; }
.pn-cd-resp select { min-width: 200px; }
.pn-cd-contato-info small { display: inline-flex; align-items: center; gap: 5px; }
.pn-cd-foot .pn-ico-btn { width: 34px; height: 34px; }
.pn-busca-wrap { position: relative; }
.pn-ncd-resultados { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 280px; overflow-y: auto; margin-top: 4px; }
.pn-ncd-item { border: 0; border-radius: 8px; } .pn-ncd-item:hover { background: var(--card-2); }
.pn-ncd-sel { display: flex; align-items: center; gap: 6px; margin-top: -6px; }
.pn-ncd-sel svg { color: #15803d; }
.pn-modal-novo { width: min(560px, 100%); }
/* termômetro */
.pn-rel-meta { display: grid; gap: 10px; }
.pn-rel-meta h3 { display: inline-flex; align-items: center; gap: 8px; }
.pn-termo { display: grid; gap: 8px; }
.pn-termo-head { display: flex; align-items: baseline; gap: 10px; font-size: 15px; } .pn-termo-head b:first-child { font-size: 22px; font-weight: 800; } .pn-termo-pct { margin-left: auto; font-size: 18px; }
.pn-termo-bar { height: 16px; border-radius: 999px; background: var(--card-2); overflow: hidden; border: 1px solid var(--border); }
.pn-termo-bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.pn-termo-mini { position: relative; height: 18px; border-radius: 999px; background: var(--card-2); overflow: hidden; min-width: 110px; border: 1px solid var(--border); }
.pn-termo-mini i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; } .pn-termo-mini span { position: relative; font-size: 11px; font-weight: 800; display: block; text-align: center; line-height: 16px; }
.pn-chart-wrap { position: relative; height: 240px; }
/* formulário do painel */
.pn-pf-2col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.pn-pf-col { display: grid; gap: 12px; }
.pn-pf-campo small { font-weight: 500; }
.pn-pf-usuarios { display: grid; gap: 4px; max-height: 190px; overflow-y: auto; background: var(--card-2); border-radius: 10px; padding: 8px; }
.pn-pf-check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer; } .pn-pf-check:hover { background: var(--card); } .pn-pf-check small { color: var(--muted); margin-left: auto; text-transform: uppercase; font-size: 10px; }
.pn-pf-bloco .pn-link { justify-self: start; }
.pn-pf-bloco b { display: inline-flex; align-items: center; gap: 6px; }
.pn-pf h4 small { font-weight: 500; font-size: 12px; margin-left: 6px; }
.pn-pf-etapa { grid-template-columns: 24px 40px 1fr 150px 36px; padding: 6px 8px; border: 1px solid transparent; }
.pn-pf-etapa.arrastando { opacity: .5; } .pn-pf-etapa.sobre { border-color: var(--primary); }
.pn-pf-grip { color: var(--muted); cursor: grab; display: grid; place-items: center; } .pn-pf-grip:active { cursor: grabbing; }
.pn-pf-cor { position: relative; width: 40px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pn-pf-cor i { width: 22px; height: 22px; border-radius: 6px; display: block; border: 1px solid rgba(0,0,0,.08); }
.pn-paleta { position: absolute; z-index: 50; top: 40px; left: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; display: grid; grid-template-columns: repeat(6, 28px); gap: 6px; }
.pn-paleta button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; } .pn-paleta button.sel, .pn-paleta button:hover { border-color: var(--text); }
.pn-paleta-custom { width: 28px; height: 28px; border-radius: 8px; border: 1px dashed var(--border); display: grid; place-items: center; cursor: pointer; font-weight: 800; color: var(--muted); position: relative; overflow: hidden; }
.pn-paleta-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pn-pf-add { border: 1px dashed var(--border); background: transparent; color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.pn-pf-add:hover { background: var(--primary-soft); border-color: var(--primary); }
.pn-pf-motivos { display: grid; gap: 6px; }
.pn-pf-motivo { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card-2); border-radius: 10px; padding: 6px 8px 6px 14px; font-size: 13px; }
.pn-pf-motivo .pn-ico-btn { width: 32px; height: 32px; }
.pn-pf-motivo-add { display: flex; gap: 8px; align-items: center; }
.pn-pf-motivo-add input { flex: 1; font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 8px 10px; }
.pn-pf-int { background: var(--card-2); border-radius: 12px; padding: 14px; display: grid; gap: 10px; font-size: 13px; border: 1px solid var(--border); }
.pn-pf-int b { display: inline-flex; align-items: center; gap: 6px; } .pn-pf-int small { color: var(--muted); }
.pn-pf-int-linha { display: grid; grid-template-columns: 130px 1fr auto auto; gap: 8px; align-items: center; }
.pn-pf-int-linha label { font-weight: 600; color: var(--muted); }
.pn-pf-int-linha code, .pn-pf-int-linha pre { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12px; overflow-x: auto; margin: 0; white-space: pre-wrap; word-break: break-all; }
#painelIntegracao.ativo { border-color: var(--primary); color: var(--primary); }
/* confete + mensagem */
.pn-confete-msg { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); background: var(--card); color: var(--text); border-radius: 18px; padding: 22px 36px; box-shadow: var(--shadow-lg); text-align: center; display: grid; gap: 4px; animation: pn-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.pn-confete-msg b { font-size: 32px; } .pn-confete-msg span { color: var(--muted); font-weight: 600; }
@keyframes pn-pop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
/* metas do time */
.pn-metas .pn-input { min-width: 120px; width: 100%; }
@media (max-width: 900px) { .pn-pf-2col { grid-template-columns: 1fr; } .pn-pf-int-linha { grid-template-columns: 1fr; } }
.pn-pf input[type=radio], .pn-pf input[type=checkbox], .pn-pf .switch input { width: auto; flex: none; }
.pn-pf-radio input { margin-top: 3px; }
.pn-pf-campo small { display: inline; margin-left: 4px; }

/* ---------- Painéis v2.1 — fidelidade ao Front ---------- */
.pn-pill { border: 1px solid var(--border); background: var(--card); color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pn-pill:hover { border-color: var(--primary); background: var(--primary-soft); }
.pn-pill-primary { background: var(--primary); border-color: var(--primary); color: #fff; } .pn-pill-primary:hover { background: var(--primary-hover); color: #fff; }
.pn-pill-primary:disabled { background: var(--card-2); border-color: var(--card-2); color: var(--muted); cursor: not-allowed; }
.pn-pill-perigo { background: #dc2626; border-color: #dc2626; color: #fff; } .pn-pill-perigo:hover { background: #b91c1c; color: #fff; }
.pn-pill-sm { padding: 5px 12px; font-size: 12px; }
.pn-pill.ativo { border-color: var(--primary); background: var(--primary-soft); }
.pn-acoes-pill { gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.pn-round { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; padding: 0; }
.pn-round:hover { background: var(--primary-soft); color: var(--primary); }
.pn-ico-flat { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.pn-ico-flat svg { width: 20px; height: 20px; } .pn-ico-flat:hover { background: var(--card-2); color: var(--text); } .pn-ico-flat.pn-ico-perigo { color: #dc2626; } .pn-ico-flat.pn-ico-perigo:hover { background: #fee2e2; }
.pn-req { color: #dc2626; font-weight: 700; }
.pn-cnt { font-size: 11px; color: var(--muted); }
.pn-inp-cnt { position: relative; } .pn-inp-cnt input { padding-right: 60px !important; } .pn-inp-cnt > .pn-cnt { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.pn-inp-cnt-ta > .pn-cnt { top: auto; bottom: -16px; right: 0; transform: none; }
.pn-anot-box { position: relative; } .pn-anot-box textarea { width: 100%; padding-bottom: 22px; } .pn-anot-box .pn-cnt { position: absolute; right: 12px; bottom: 10px; }
.pn-money { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; background: var(--card); }
.pn-money span { color: var(--muted); font-weight: 600; } .pn-money input { border: 0 !important; padding-left: 0 !important; box-shadow: none !important; }
.pn-inp-cinza { background: var(--card-2) !important; border-color: transparent !important; }
/* links do card (vencimento / responsável / etiquetas) */
.pn-cd-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pn-ncd-links { border-bottom: 0; padding: 0 0 10px; }
.pn-link-campo { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; background: transparent; padding: 4px 0; }
.pn-link-campo svg { width: 26px; height: 26px; padding: 6px; background: var(--primary-soft); border-radius: 50%; flex: none; }
.pn-link-campo input, .pn-link-campo select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pn-link-campo input:disabled { cursor: default; }
.pn-lc-x { border: 0; background: transparent; color: var(--primary); cursor: pointer; padding: 0; margin-left: -14px; display: grid; place-items: center; }
.pn-cd-links.atrasado .pn-lc-data { color: #dc2626; } .pn-cd-links.atrasado .pn-lc-data svg { background: #fee2e2; }
.pn-cd-links.hoje .pn-lc-data { color: #7c3aed; } .pn-cd-links.hoje .pn-lc-data svg { background: #ede9fe; }
.pn-cd-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pn-cd-ident { display: grid; gap: 4px; flex: 1; min-width: 0; }
.pn-cd-cod { font-size: 12px; color: var(--muted); font-weight: 600; }
.pn-cd-titulo { padding: 2px 4px; margin-left: -4px; }
.pn-cd-desc { border-color: transparent !important; background: transparent !important; padding: 4px 0 !important; resize: none; font-size: 14px !important; }
.pn-cd-desc:hover, .pn-cd-desc:focus { border-color: var(--border) !important; background: var(--card) !important; padding: 8px 10px !important; }
.pn-card-esq h4 { margin: 16px 0 6px; font-size: 15px; color: var(--text); font-weight: 600; }
.pn-cd-contato { border: 0; padding: 4px 0; gap: 14px; }
.pn-cd-foto { width: 56px; height: 56px; font-size: 20px; color: var(--muted); }
.pn-cd-contato-info strong { font-size: 15px; } .pn-cd-contato-info small { font-size: 13px; }
.pn-cd-contato-acoes { gap: 8px; }
.pn-cd-valor { font-size: 14px; } .pn-cd-valor span { color: var(--muted); font-weight: 600; }
.pn-cd-valor input { border-color: transparent !important; padding-left: 0 !important; font-weight: 500 !important; }
.pn-cd-valor input:hover, .pn-cd-valor input:focus { border-color: var(--border) !important; padding-left: 10px !important; }
.pn-cd-foot .pn-ico-flat { width: 36px; height: 36px; } .pn-cd-foot .pn-ico-flat svg { width: 22px; height: 22px; }
.pn-cd-abas { gap: 10px; padding: 18px 22px 10px; }
.pn-aba { font-size: 15px; padding: 10px 20px; } .pn-aba.active { background: #e5e7eb; color: var(--text); box-shadow: none; } [data-theme="dark"] .pn-aba.active { background: #2a3040; }
.pn-anot-form { background: transparent; border: 0; padding: 0; }
.pn-anot-form textarea { border: 1px solid var(--border) !important; border-radius: 12px !important; padding: 12px !important; font-size: 14px !important; }
.pn-anot-tools { margin-top: 10px; }
.pn-cd-gp .btn { border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; padding: 12px; }
.pn-fase { font-weight: 500; font-size: 14px; padding: 12px 16px; } .pn-fase b { display: grid; place-items: center; } .pn-fase.atual { outline: 0; }
/* kanban do Front */
.pn-kanban { gap: 16px; }
.pn-col { flex: 0 0 340px; background: transparent; max-height: none; }
.pn-col-head { padding: 6px 4px 10px; border: 0; background: transparent; font-size: 15px; font-weight: 600; }
.pn-col-nome small { background: transparent; color: var(--muted); font-weight: 500; padding: 0; margin-left: 2px; font-size: 14px; }
.pn-col-atraso { background: var(--card); color: var(--muted); padding: 3px 4px 3px 8px; gap: 6px; font-weight: 500; }
.pn-col-atraso b { background: #dc2626; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 11px; }
.pn-col-body { background: #e5e8ee; border-radius: 14px; padding: 12px; min-height: 260px; max-height: calc(100vh - 250px); overflow-y: auto; display: flex; flex-direction: column; border-top: 0; }
[data-theme="dark"] .pn-col-body { background: #1c212b; }
.pn-col.sobre .pn-col-body { outline: 2px dashed var(--primary); }
.pn-col-cards { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pn-novo-item { margin: 14px 0 0; padding: 6px 4px; font-size: 16px; font-weight: 600; color: #4b5563; }
[data-theme="dark"] .pn-novo-item { color: var(--muted); }
.pn-novo-item svg { width: 26px; height: 26px; }
.pn-card { border: 0; border-radius: 14px; padding: 14px 16px; box-shadow: none; }
.pn-card:hover { transform: none; box-shadow: var(--shadow); }
.pn-card.atrasado { background: #fdf0ef; border: 0; } [data-theme="dark"] .pn-card.atrasado { background: #2a1d1f; }
.pn-card.vence-hoje { background: #fdf6e7; border: 0; } [data-theme="dark"] .pn-card.vence-hoje { background: #2a2414; }
.pn-card-top { margin-bottom: 2px; align-items: flex-start; }
.pn-cod { font-size: 12px; font-weight: 500; }
.pn-resp { background: rgba(0,0,0,.05); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; gap: 6px; max-width: 60%; }
[data-theme="dark"] .pn-resp { background: rgba(255,255,255,.08); }
.pn-card-titulo { font-size: 17px; font-weight: 700; margin: 2px 0 8px; }
.pn-tags { margin-bottom: 10px; gap: 6px; }
.pn-etq { font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.pn-card-bottom { font-size: 14px; min-height: 30px; }
.pn-prazo { background: transparent; padding: 0; font-weight: 500; color: var(--text); gap: 6px; }
.pn-prazo.atrasado { background: transparent; color: #dc2626; } .pn-prazo.hoje { background: transparent; color: #7c3aed; }
.pn-prazo svg { width: 17px; height: 17px; }
.pn-chat { width: 30px; height: 30px; background: rgba(0,0,0,.05); border: 0; color: var(--muted); margin-left: auto; }
.pn-valor + .pn-chat { margin-left: 8px; }
[data-theme="dark"] .pn-chat { background: rgba(255,255,255,.08); }
.pn-col-menu-pop { top: 40px; }
/* editar painel do Front */
.pn-mh { align-items: center; gap: 12px; }
.pn-mh-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; color: var(--text); flex: none; }
.pn-modal-painel { width: min(1100px, 100%); }
.pn-pf { gap: 18px; padding: 20px 24px; }
.pn-pf-campo { color: var(--text); font-size: 14px; gap: 8px; }
.pn-pf-campo input, .pn-pf-campo select, .pn-pf-campo textarea { font-size: 14px; padding: 12px 14px; border-radius: 10px; }
.pn-pf-linha .curto { flex: 0 0 130px; }
.pn-pf-sep { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.pn-pf-vis-t { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pn-pf-vis { padding: 6px 16px; gap: 0; }
.pn-pf-radio { justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pn-pf-radio:last-child { border-bottom: 0; } .pn-pf-radio div { gap: 2px; } .pn-pf-radio b { font-size: 15px; }
.pn-pf-radio input[type=radio] { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; flex: none; }
.pn-pf-acesso { position: relative; }
.pn-sel-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); padding: 12px 14px; cursor: pointer; text-align: left; }
.pn-sel-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-sel-pop { position: absolute; z-index: 60; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.pn-sel-sec { font-weight: 700; font-size: 13px; color: var(--muted); padding: 10px 10px 4px; }
.pn-pf-check { font-size: 14px; padding: 9px 10px; } .pn-pf-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.pn-pf-check:has(input:checked) { color: var(--primary); background: var(--primary-soft); }
.pn-pf-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn-pf-cats:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.pn-pf-cat { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-2); color: var(--muted); font: inherit; font-size: 16px; font-weight: 600; padding: 10px; cursor: pointer; text-align: left; }
.pn-pf-cat-ico { width: 52px; height: 52px; border-radius: 10px; background: var(--card); display: grid; place-items: center; }
.pn-pf-cat.sel { border-color: var(--primary); color: var(--primary); background: var(--card); } .pn-pf-cat.sel .pn-pf-cat-ico { color: var(--primary); }
.pn-pf h4 { font-size: 16px; font-weight: 600; }
.pn-pf-etapas { gap: 10px; }
.pn-pf-etapa-wrap { background: var(--card-2); border-radius: 12px; padding: 8px; display: grid; gap: 8px; }
.pn-pf-etapa { grid-template-columns: 28px 76px 1fr 220px 40px; gap: 10px; background: transparent; padding: 0; }
.pn-pf-etapa input[type=text], .pn-pf-etapa select { font-size: 15px; padding: 12px 14px; border-radius: 10px; }
.pn-pf-cor { width: 76px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.pn-pf-cor i { width: 26px; height: 26px; border-radius: 50%; border: 0; }
.pn-pf-grip svg { width: 20px; height: 20px; }
.pn-pf-stepid { background: #fffbe6; color: #3f3f46; border-radius: 8px; padding: 8px 14px; font-size: 13px; } [data-theme="dark"] .pn-pf-stepid { background: #3b3410; color: #fde68a; }
.pn-pf-add { width: 100%; justify-content: flex-start; padding: 14px 18px; font-size: 15px; background: var(--card); border-radius: 12px; }
.pn-pf-bloco { padding: 18px 20px; gap: 10px; font-size: 14px; border-radius: 14px; }
.pn-pf-bloco b { font-size: 16px; } .pn-pf-bloco small { font-size: 13px; line-height: 1.5; }
.pn-pf-bloco .switch-label { font-size: 15px; gap: 12px; padding: 2px 0; }
.pn-pf-bloco select { font-size: 15px; padding: 12px 14px; border-radius: 10px; }
.pn-link-txt { padding: 2px 0; font-size: 14px; } .pn-link-txt:hover { background: transparent; text-decoration: underline; }
.pn-pf-acoes { gap: 10px; padding: 16px 24px; }
/* modal motivos (Front) */
.dlg-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #ef4444; color: #fff; margin-right: 12px; vertical-align: middle; }
.dlg-ico svg { width: 20px; height: 20px; }
.pn-dlg-motivos .modal-header h2 { display: flex; align-items: center; }
.pn-mt-box { background: var(--card-2); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.pn-mt-lista { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.pn-mt-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 8px 8px 16px; font-size: 15px; }
.pn-mt-add { background: transparent; border-color: #c7cbd4; }
.pn-mt-add-linha { display: flex; gap: 8px; } .pn-mt-add-linha input { flex: 1; }
.pn-mt-nota { background: #fffbe6; color: #3f3f46; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; } [data-theme="dark"] .pn-mt-nota { background: #3b3410; color: #fde68a; }
.dlg .modal-actions .btn { border-radius: 999px; padding: 9px 20px; align-self: center; height: auto; flex: 0 0 auto; }
.dlg .modal-form { align-content: start; }
.dlg .form-group { display: grid; gap: 6px; }
.dlg .form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pn-modal-novo { width: min(640px, 100%); }
.pn-modal-novo .modal-form label { font-size: 15px; color: var(--muted); font-weight: 500; }
.pn-modal-novo .modal-form input, .pn-modal-novo .modal-form textarea { padding: 14px; border-radius: 10px; }
@media (max-width: 900px) { .pn-pf-etapa { grid-template-columns: 24px 60px 1fr 40px; } .pn-pf-etapa select { grid-column: 2 / -1; } .pn-pf-cats { grid-template-columns: 1fr; } }
.pn-cd-contato { flex-wrap: wrap; } .pn-cd-contato-info { flex: 1 1 160px; } .pn-cd-contato-acoes { margin-left: auto; flex-wrap: wrap; }
.pn-pill-primary:disabled { background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af; } [data-theme="dark"] .pn-pill-primary:disabled { background: #2a3040; border-color: #2a3040; }
.pn-card-modal { width: min(1280px, 100%); }
.pn-mh > div { flex: 1; } .pn-pf-campo > span { font-weight: 600; }
.modal-form .pn-link-campo, .pn-link-campo { color: var(--primary) !important; font-weight: 600 !important; font-size: 14px !important; }

/* ---------- Painéis v2.2 — escala compacta (Front) ---------- */
.pn-head { gap: 10px; margin-bottom: 10px; }
.pn-titulo-sel { font-size: 16px; padding: 4px; }
.pn-modos { padding: 3px; } .pn-modo { font-size: 13px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }
.pn-modo svg { width: 15px; height: 15px; }
.pn-busca { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); padding: 0 12px; height: 36px; color: var(--muted); min-width: 220px; }
.pn-busca input { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); outline: none; width: 100%; }
.pn-filtro-wrap { position: relative; }
.pn-filtro-n { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: grid; place-items: center; }
.pn-filtro-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 280px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; display: grid; gap: 10px; }
.pn-filtro-pop label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pn-filtro-pop select { font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 8px 10px; }
.pn-tools .pn-ico-btn, .pn-head .pn-ico-btn { width: 36px; height: 36px; }
.pn-ico-btn.ativo { border-color: var(--primary); color: var(--primary); }
/* kanban compacto */
.pn-kanban { gap: 14px; }
.pn-col { flex: 0 0 272px; }
.pn-col-head { font-size: 13px; font-weight: 500; padding: 4px 4px 8px; gap: 6px; }
.pn-col-nome small { font-size: 12px; }
.pn-col-atraso { padding: 2px 3px 2px 6px; font-size: 11px; gap: 4px; } .pn-col-atraso b { width: 16px; height: 16px; font-size: 10px; } .pn-col-atraso svg { width: 13px; height: 13px; }
.pn-col-menu { width: 22px; height: 22px; } .pn-col-menu svg { width: 14px; height: 14px; }
.pn-col-body { padding: 8px; border-radius: 12px; min-height: 130px; }
.pn-col-cards { gap: 8px; }
.pn-card { border-radius: 10px; padding: 10px 12px; }
.pn-card-top { margin-bottom: 0; }
.pn-cod { font-size: 10px; }
.pn-resp { padding: 3px 7px; font-size: 11px; font-weight: 500; border-radius: 6px; gap: 4px; } .pn-resp svg { width: 12px; height: 12px; }
.pn-card-titulo { font-size: 13px; font-weight: 600; margin: 1px 0 6px; }
.pn-tags { margin-bottom: 6px; gap: 4px; }
.pn-etq { font-size: 9px; padding: 2px 6px; border-radius: 4px; max-width: 110px; }
.pn-card .tag { font-size: 10px; padding: 2px 7px; }
.pn-card-bottom { font-size: 12px; min-height: 24px; gap: 6px; }
.pn-prazo svg { width: 14px; height: 14px; }
.pn-valor { font-size: 12px; }
.pn-chat { width: 24px; height: 24px; } .pn-chat svg { width: 13px; height: 13px; }
.pn-novo-item { font-size: 13px; padding: 4px 2px; margin-top: 8px; gap: 5px; } .pn-novo-item svg { width: 20px; height: 20px; }
/* card aberto compacto */
.pn-card-modal { width: min(980px, 100%); height: min(720px, 94vh); }
.pn-card-esq { padding: 18px 22px; gap: 4px; }
.pn-cd-cod { font-size: 11px; }
.pn-cd-titulo { font-size: 16px; font-weight: 700; }
.pn-cd-etapa { font-size: 11px; padding: 4px 10px; }
.pn-cd-links { gap: 16px; padding: 8px 0; }
.pn-link-campo { font-size: 13px !important; gap: 6px; } .pn-link-campo svg { width: 22px; height: 22px; padding: 5px; }
.pn-card-esq h4 { margin: 12px 0 2px; font-size: 13px; }
.pn-cd-desc { font-size: 13px !important; resize: none !important; min-height: 24px; }
.pn-cd-desc::-webkit-resizer { display: none; }
.pn-cd-contato { gap: 10px; align-items: flex-start; flex-wrap: nowrap; }
.pn-cd-foto { width: 40px; height: 40px; font-size: 15px; }
.pn-cd-contato-info { gap: 6px; } .pn-cd-contato-info strong { font-size: 13px; } .pn-cd-contato-info small { font-size: 12px; }
.pn-cd-contato-acoes { margin-left: 0; gap: 6px; margin-top: 2px; }
.pn-cd-contato-acoes .pn-pill { padding: 5px 12px; font-size: 12px; background: var(--card-2); border-color: transparent; color: var(--text); }
.pn-round { width: 28px; height: 28px; } .pn-round svg { width: 13px; height: 13px; }
.pn-cd-valor { font-size: 13px; } .pn-cd-valor input { font-size: 13px !important; padding: 4px 0 !important; width: 140px; }
.pn-cd-foot { padding-top: 10px; } .pn-cd-foot .pn-ico-flat { width: 30px; height: 30px; } .pn-cd-foot .pn-ico-flat svg { width: 18px; height: 18px; }
.pn-cd-abas { padding: 14px 18px 8px; gap: 6px; } .pn-aba { font-size: 13px; padding: 7px 14px; }
.pn-cd-lateral { padding: 10px 18px; }
.pn-anot-form textarea { font-size: 13px !important; padding: 10px !important; } .pn-anot-tools { margin-top: 6px; }
.pn-anot, .pn-hist-item { font-size: 12px; padding: 8px 10px; }
.pn-cd-acoes { padding: 12px 18px; }
.pn-cd-gp { gap: 8px; margin-bottom: 10px; } .pn-cd-gp .btn { font-size: 13px; padding: 9px; border-radius: 8px; gap: 6px; }
.pn-cd-mover-l { font-size: 11px; margin-bottom: 6px; } .pn-cd-mover { gap: 5px; }
.pn-fase { font-size: 12px; padding: 8px 12px; border-radius: 6px; } .pn-fase svg { width: 14px; height: 14px; }
.pn-pill-primary#cdAnotSalvar { padding: 6px 14px; font-size: 12px; }
@media (max-width: 1100px) { .pn-cd-topo { flex-direction: column; align-items: flex-start; } .pn-cd-topo .pn-cd-etapa { order: 3; } }
/* novo item compacto */
.pn-modal-novo { width: min(560px, 100%); }
.pn-modal-novo .modal-form label { font-size: 13px; }
.pn-modal-novo .modal-form input, .pn-modal-novo .modal-form textarea { padding: 10px 12px; font-size: 13px; }
.pn-modal-novo .pn-pill { padding: 8px 16px; }
/* rodapé do cartão de painel: faixa azul + engrenagem menor */
.pn-cp-foot { background: var(--primary); border-top: 0; padding: 10px 16px; }
.pn-cp-foot .pn-ico-btn { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
.pn-cp-foot .pn-ico-btn svg { width: 16px; height: 16px; }
.pn-cp-foot .pn-ico-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.pn-cp-foot .btn { background: #fff; border-color: #fff; color: var(--primary); }
.pn-cp-foot .btn:hover { background: var(--primary-soft); }

/* ---------- Relacionamento (CS) ---------- */
.rel-table th:last-child, .rel-table td:last-child { width: 44px; }
.rel-inativo td:first-child strong { color: var(--muted); }
.cs-btn .tag { margin-right: 2px; }
.rel-uc { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 8px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.2; }
.rel-uc small { font-weight: 500; font-size: 11px; color: var(--muted); }
.rel-uc:hover { background: var(--card-2); }
.rel-uc-ok { color: #15803d; } .rel-uc-atencao { color: #b45309; } .rel-uc-ruim { color: #dc2626; } .rel-uc-nunca { color: var(--muted); }
.nps-estrelas { display: inline-flex; align-items: center; gap: 1px; font-size: 14px; }
.nps-estrelas i { font-style: normal; color: #d1d5db; } .nps-estrelas i.on { color: #f59e0b; }
.nps-estrelas b { margin-left: 6px; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--card-2); }
.nps-estrelas.promotor b { background: #dcfce7; color: #15803d; } .nps-estrelas.neutro b { background: #fef3c7; color: #b45309; } .nps-estrelas.detrator b { background: #fee2e2; color: #b91c1c; }
.nps-vazio { color: var(--muted); }
.marca-opcoes { display: grid; gap: 4px; background: var(--card-2); border-radius: 12px; padding: 4px 14px; }
.marca-opcoes .pn-pf-radio { border-bottom: 1px solid var(--border); } .marca-opcoes .pn-pf-radio:nth-child(3) { border-bottom: 0; }
.marca-opcoes .pn-pf-radio input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); }
.marca-opcoes .form-group { padding: 6px 0 10px; }
.lead-alt { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.lead-alt small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.setor-sel { min-width: 120px; }
.marca-opcoes small b { font-size: inherit; }

/* ---------- Automações + RFV ---------- */
.au-head-acoes { display: flex; gap: 10px; align-items: center; }
.au-h1 { margin: 0; font-size: 20px; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 18px; }
.au-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; }
.au-card h3 { margin: 0; font-size: 16px; }
.au-card-top { display: flex; justify-content: space-between; align-items: center; }
.au-tipo { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--muted); }
.au-card-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.au-prog { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; } .au-prog i { display: block; height: 100%; background: var(--primary); }
.au-nums { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); } .au-nums b { color: var(--text); }
.au-card-foot { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.au-vazio { background: var(--card-2); border-radius: 12px; padding: 22px; color: var(--muted); grid-column: 1 / -1; } .au-vazio p { margin: 6px 0 0; }
.au-editor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.au-col { display: grid; gap: 16px; }
.au-bloco { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; }
.au-bloco h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .au-bloco h3 small { font-weight: 500; font-size: 12px; }
.au-bloco h3 code { background: var(--card-2); border-radius: 4px; padding: 1px 5px; font-size: 11px; }
.au-bloco .form-group { margin: 0; } .au-bloco .form-row { gap: 12px; align-items: end; }
.au-bloco input, .au-bloco select, .au-bloco textarea { font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); padding: 8px 10px; width: 100%; }
.au-bloco label { font-size: 13px; }
.au-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; } .au-inline input, .au-inline select { width: auto; }
.au-cont { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.au-filtros { display: grid; gap: 10px; }
.au-f { display: grid; gap: 6px; font-size: 13px; padding: 10px 12px; background: var(--card-2); border-radius: 10px; }
.au-f > b { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.au-f-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .au-f-linha > b { margin-right: 4px; } .au-f-linha input[type=number], .au-f-linha select { width: auto; padding: 6px 8px; }
.au-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.au-chips-scroll { max-height: 120px; overflow-y: auto; }
.au-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; background: var(--card); --c: var(--primary); }
.au-chip:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--text); font-weight: 600; }
.au-chip input { width: 14px; height: 14px; margin: 0; accent-color: var(--c); } .au-chip small { color: var(--muted); }
.au-amostra { font-size: 12px; } .au-amostra i { color: var(--muted); }
.au-passos { display: grid; gap: 10px; }
.au-passo { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: var(--card-2); }
.au-passo-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.au-passo-n { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.au-passo .pn-ico-flat { width: 28px; height: 28px; } .au-passo .pn-ico-flat:disabled { opacity: .3; cursor: default; }
.au-txt { resize: vertical; min-height: 44px; }
.au-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.au-nps-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .au-nps-3 label { display: grid; gap: 4px; }
.au-fx { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; justify-self: start; }
.au-fx.promotor { background: #dcfce7; color: #15803d; } .au-fx.neutro { background: #fef3c7; color: #b45309; } .au-fx.detrator { background: #fee2e2; color: #b91c1c; }
.au-inp-inline { width: auto !important; display: inline-block; min-width: 260px; padding: 3px 6px !important; }
.au-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.au-rel-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.au-rel-tab { max-height: 50vh; overflow: auto; } .au-resp { font-size: 12px; max-width: 320px; }
.dlg-box.modal-wide:has(.au-rel-kpis) { width: min(960px, 100%); }
/* RFV */
.au-rfv-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.au-rfv { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.au-rfv-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; } .au-rfv-y small { font-weight: 500; }
.au-rfv-grid { display: grid; gap: 6px; }
.au-rfv-row { display: grid; grid-template-columns: 32px repeat(5, 1fr); gap: 6px; }
.au-rfv-lbl { font-size: 11px; font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.au-rfv-cel { border: 0; border-radius: 10px; background: color-mix(in srgb, var(--c) calc(var(--a) * 100%), var(--card-2)); color: var(--text); padding: 10px 6px; cursor: pointer; display: grid; gap: 2px; min-height: 62px; font: inherit; }
.au-rfv-cel b { font-size: 18px; } .au-rfv-cel small { font-size: 10px; opacity: .85; line-height: 1.1; }
.au-rfv-cel:hover { outline: 2px solid var(--text); }
.au-rfv-x { margin-top: 2px; }
.au-rfv-xl { grid-column: 2; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); } .au-rfv-xl small { font-weight: 500; }
.au-segs { display: grid; gap: 8px; }
.au-seg { background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; }
.au-seg-top { display: flex; align-items: center; gap: 8px; } .au-seg-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .au-seg-top span { margin-left: auto; font-weight: 800; }
.au-seg small { color: var(--muted); line-height: 1.4; } .au-seg-nums { font-size: 12px; color: var(--muted); }
.canal-acoes { margin-top: 8px; } .canal-novo { font-size: 32px; cursor: pointer; border: 2px dashed var(--border); background: transparent; color: var(--muted); font-family: inherit; }
@media (max-width: 1000px) { .au-editor, .au-rfv-wrap { grid-template-columns: 1fr; } .au-nps-3 { grid-template-columns: 1fr; } .au-rel-kpis { grid-template-columns: 1fr 1fr; } }
.au-f > label { display: inline-flex; align-items: center; gap: 6px; } .au-f input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.au-bloco .switch-label input { width: auto; }
.au-tb { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.au-tb button[data-tb] { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; } .au-tb button[data-tb]:hover { border-color: var(--primary); }
.au-html { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px !important; }
.au-preview { max-height: 70vh; overflow: auto; border-radius: 12px; }
.dlg-box.modal-wide:has(.au-preview) { width: min(720px, 100%); }

/* ===== Notificações (sino) ===== */
.notif-wrap { position: relative; }
.notif-painel { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 80; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.notif-head .pn-link { font-size: 12px; }
.notif-lista { max-height: 420px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.notif-item:hover { background: var(--card-2); }
.notif-item.nova { background: var(--primary-soft); }
.notif-item.nova strong::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: middle; }
.notif-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); }
.notif-ico.cobranca { background: #fee2e2; color: #b91c1c; }
.notif-ico.tarefa { background: #dcfce7; color: #15803d; }
.notif-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-txt strong { font-size: 13px; font-weight: 600; line-height: 1.3; }
.notif-txt small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.notif-txt em { font-style: normal; font-size: 11px; color: var(--muted); }
.nav-badge-inline { margin-left: 4px; }
[data-theme="dark"] .notif-ico.cobranca { background: #3b1414; color: #fca5a5; }
[data-theme="dark"] .notif-ico.tarefa { background: #0f2e1a; color: #86efac; }

/* ===== Tarefas ===== */
.tf-lista { display: flex; flex-direction: column; gap: 8px; }
.tf-item { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.tf-item.feita { opacity: .65; }
.tf-item.feita .tf-titulo { text-decoration: line-through; }
.tf-check { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; }
.tf-check input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tf-check span { position: absolute; inset: 0; border: 2px solid var(--border); border-radius: 7px; background: var(--card); transition: .12s; }
.tf-check input:checked + span { background: var(--success); border-color: var(--success); }
.tf-check input:checked + span::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tf-corpo { flex: 1; min-width: 0; }
.tf-titulo { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-tipo { font-size: 10px; padding: 1px 6px; background: var(--muted); }
.tf-tipo.cobranca { background: #dc2626; }
.tf-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tf-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tf-vence { font-weight: 600; }
.tf-vence.hoje { color: var(--warning); }
.tf-vence.atrasada { color: #dc2626; }
.tf-acoes { display: flex; gap: 6px; flex: none; }

/* ===== Cobranças ===== */
.cob-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cob-kpi { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cob-kpi small { font-size: 12px; color: var(--muted); font-weight: 600; }
.cob-kpi small em { font-style: normal; font-weight: 400; margin-left: 4px; }
.cob-kpi strong { font-size: 20px; letter-spacing: -.01em; }
.cob-kpi span { font-size: 12px; color: var(--muted); }
.cob-kpi.ruim { border-left-color: #dc2626; }
.cob-kpi.atencao { border-left-color: var(--warning); }
.cob-kpi.ok { border-left-color: var(--success); }
.cob-table td { vertical-align: middle; }
.cob-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.cob-semlead { color: var(--warning); }
.cob-atraso { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cob-atraso.ruim { background: #fee2e2; color: #b91c1c; }
.cob-atraso.atencao { background: #fef3c7; color: #b45309; }
.cob-atraso.prazo { background: #dcfce7; color: #15803d; }
.cob-atraso.pausa { background: var(--card-2); color: var(--muted); }
.cob-atraso.paga { background: #dcfce7; color: #15803d; }
[data-theme="dark"] .cob-atraso.ruim { background: #3b1414; color: #fca5a5; }
[data-theme="dark"] .cob-atraso.atencao { background: #3a2a0a; color: #fcd34d; }
[data-theme="dark"] .cob-atraso.prazo, [data-theme="dark"] .cob-atraso.paga { background: #0f2e1a; color: #86efac; }
.cob-st { background: var(--card-2); color: var(--text); font-weight: 600; }
.cob-uc { display: flex; flex-direction: column; line-height: 1.25; }
.cob-uc b { font-size: 13px; }
.cob-uc small { font-size: 11px; color: var(--muted); }
.cob-uc.vazio { color: var(--muted); font-size: 12px; }
.cob-acoes { white-space: nowrap; width: 110px; }
.cob-acoes .btn-icone { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; margin-left: 2px; }
.cob-acoes .btn-icone:hover { color: var(--primary); border-color: var(--primary); }
.cob-acoes .cob-wa:hover { color: #16a34a; border-color: #16a34a; }
tr.cob-foco td { background: var(--primary-soft) !important; transition: background .4s; }
.cob-det { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-bottom: 14px; }
.cob-det-l { display: flex; flex-direction: column; }
.cob-det-l small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.cob-det-l span { font-size: 13px; }
.cob-det-h { font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
@media (max-width: 640px) { .cob-det { grid-template-columns: 1fr; } .notif-painel { position: fixed; right: 12px; left: 12px; width: auto; top: 60px; } }

/* ===== Usuários ===== */
.switch-sm { width: 34px; height: 19px; }
.switch-sm span::before { width: 15px; height: 15px; }
.switch-sm input:checked + span::before { transform: translateX(15px); }
.cob-hist { display: flex; flex-direction: column; }
.cob-hist-l { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cob-hist-l small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.usr-inativo td { opacity: .55; }
.usr-acoes { white-space: nowrap; }
.dlg-azul .dlg-ico { background: var(--primary); }
.dlg-verde .dlg-ico { background: var(--success); }
.cob-agrupar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 4px; cursor: pointer; white-space: nowrap; }
.cob-agrupar input { width: auto; margin: 0; accent-color: var(--primary); }
tr.cob-grupo { cursor: pointer; }
.cob-exp { border: 0; background: transparent; color: var(--muted); padding: 0 6px 0 0; cursor: pointer; vertical-align: middle; display: inline-grid; place-items: center; transition: transform .15s; }
tr.cob-grupo.aberto .cob-exp { transform: rotate(90deg); }
tr.cob-filha td { background: var(--card-2); padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
tr.cob-filha td:first-child { padding-left: 40px; }
.cob-filha-nome { font-weight: 600; }
.cob-resp { display: flex; flex-direction: column; max-width: 240px; line-height: 1.3; }
.cob-resp small { font-size: 11px; color: var(--success); font-weight: 700; }
.cob-resp.antiga small { color: var(--muted); font-weight: 600; }
.cob-resp > span { font-size: 12px; color: var(--text); white-space: normal; }
.cob-nota { border: 1px dashed var(--border); background: transparent; color: var(--text); font: inherit; font-size: 12px; text-align: left; border-radius: 8px; padding: 5px 8px; cursor: pointer; max-width: 220px; line-height: 1.3; display: flex; flex-direction: column; }
.cob-nota.vazia { color: var(--muted); }
.cob-nota:hover { border-color: var(--primary); color: var(--primary); }
.cob-nota small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.cob-det-nota { background: var(--card-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.cob-det-h .pn-link { font-size: 12px; padding: 2px 6px; margin-left: 6px; }

/* ===== Lista própria dos <select> ===== */
select { cursor: pointer; }
select.cl-sel-aberto { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--primary-soft); }
.cl-sel-pop { position: fixed; z-index: 1200; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; animation: clSelIn .1s ease-out; }
.cl-sel-pop.acima { animation-name: clSelInAcima; }
@keyframes clSelIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes clSelInAcima { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cl-sel-op { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.cl-sel-op i { width: 14px; height: 14px; flex: none; display: inline-grid; place-items: center; color: var(--primary); }
.cl-sel-op span { overflow: hidden; text-overflow: ellipsis; }
.cl-sel-op.foco { background: var(--card-2); }
.cl-sel-op.ativo { font-weight: 700; color: var(--primary); }
.cl-sel-op.ativo.foco { background: var(--primary-soft); }
.cl-sel-op.off { opacity: .45; cursor: default; }
.cl-sel-grupo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 4px; }
.cl-sel-vazio { padding: 10px; font-size: 13px; color: var(--muted); }
.cob-table td:nth-child(2) { white-space: nowrap; }
.cob-atual { color: var(--danger); }
.cob-breakdown { color: var(--muted); font-weight: 400; }
.cob-resp-tag { color: var(--info); font-weight: 600; }
.cob-negociado { color: var(--success); }
.cob-det-acoes { margin: 4px 0 12px; }
.desc-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.desc-st.aguardando { background: #fef3c7; color: #b45309; }
.desc-st.ok { background: #dcfce7; color: #15803d; }
.desc-st.negado { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .desc-st.aguardando { background: #3a2a0a; color: #fcd34d; }
[data-theme="dark"] .desc-st.ok { background: #0f2e1a; color: #86efac; }
[data-theme="dark"] .desc-st.negado { background: #3b1414; color: #fca5a5; }
.desc-off { color: var(--danger); font-weight: 600; }
.desc-table td { vertical-align: middle; }
.cob-btn-ico { display: inline-flex; align-items: center; gap: 7px; }
.cob-btn-ico svg { flex: none; }
.desc-resumo { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.desc-resumo > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.desc-resumo > div:last-child { border-bottom: 0; }
.desc-resumo span { color: var(--muted); }
.desc-resumo b { font-weight: 700; }
.desc-resumo-total { background: var(--card-2); }
.desc-resumo-total span { color: var(--text); font-weight: 600; }
.desc-resumo-total b { font-size: 16px; color: var(--danger); }

/* sub-abas dentro de Cobranças */
.cob-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.cob-subtab { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 8px; }
.cob-subtab:hover { color: var(--text); }
.cob-subtab.active { color: var(--primary); }
.cob-subtab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }

/* Botão "Interno" no header — mesmo padrão do menu (quadrado, azul) */
.btn-interno { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn-interno:hover { background: var(--primary-hover); }

/* Painel Interno com abas Chat / Tarefas */
.int-subtabs { margin-bottom: 0; }
.int-view { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 12px; }
.int-tf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.int-tf-head .search-bar { margin-bottom: 10px; flex: 1; }
.int-view .tf-lista { flex: 1; overflow-y: auto; }
.int-view#intViewTarefas { overflow: hidden; }

/* Painel Interno — faixa azul + título */
.chat-panel { padding-top: 0; }
.int-faixa { height: 6px; background: var(--primary); margin: 0 -24px 0; border-radius: 0; flex: none; }
.int-head { padding-top: 20px; }
.int-head h2 { font-size: 19px; letter-spacing: -.01em; }

/* Botão GIF no compositor */
.gif-btn { font-weight: 800; font-size: 11px; letter-spacing: .03em; }

/* Reações */
.ci-bolha { position: relative; }
.ci-reagir-btn { position: absolute; top: -10px; right: -6px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 999px; cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: var(--shadow); }
.wa-msg:hover .ci-reagir-btn { opacity: 1; }
.wa-msg.minha .ci-reagir-btn { left: -6px; right: auto; }
.ci-reacoes { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.wa-msg.minha .ci-reacoes { justify-content: flex-end; }
.ci-reacao { border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 12px; padding: 1px 7px; border-radius: 999px; cursor: pointer; line-height: 1.5; }
.ci-reacao.minha { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.ci-reac-pop { position: fixed; z-index: 1300; display: flex; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px; box-shadow: var(--shadow-lg); }
.ci-reac-pop button { border: 0; background: transparent; font-size: 20px; cursor: pointer; padding: 2px 4px; border-radius: 8px; transition: transform .1s; }
.ci-reac-pop button:hover { transform: scale(1.3); background: var(--card-2); }

/* GIF na mensagem */
.ci-gif { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; }

/* Picker de GIF */
.ci-gif-pop { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; height: 340px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 1200; display: flex; flex-direction: column; overflow: hidden; }
.ci-gif-topo { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); }
.ci-gif-topo input { flex: 1; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); }
.ci-gif-fav-tab { border: 1px solid var(--border); background: var(--card); color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; padding: 0 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ci-gif-fav-tab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.ci-gif-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; align-content: start; }
.ci-gif-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.ci-gif-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.ci-gif-star { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.5); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; opacity: 0; transition: opacity .12s; }
.ci-gif-item:hover .ci-gif-star { opacity: 1; }
.ci-gif-star.on { opacity: 1; color: #fbbf24; }
/* No chat interno, reações ficam abaixo da bolha */
#chatMsgs .wa-msg { flex-direction: column; }
#chatMsgs .wa-msg.ci-msg { flex-direction: row; align-items: flex-end; }
#chatMsgs .wa-msg.ci-msg.minha { flex-direction: row-reverse; justify-content: flex-start; }
#chatMsgs .wa-msg.ci-msg .ci-col { display: flex; flex-direction: column; align-items: flex-start; }
#chatMsgs .wa-msg.ci-msg.minha .ci-col { align-items: flex-end; }
#chatMsgs .wa-msg.dele { align-items: flex-start; }
#chatMsgs .wa-msg.minha { align-items: flex-end; }

/* ===== v46 — menu do clips · notas da conversa · transferência (igual ao Front) ===== */
.wa-anexo-wrap { position: relative; }
.wa-menu-anexo { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); min-width: 236px; padding: 6px; }
.wa-menu-anexo button { justify-content: flex-start; align-items: center; gap: 10px; padding: 9px 10px; font-size: 13.5px; }
.wa-menu-anexo button svg { color: var(--muted); flex: none; }
.wa-menu-anexo button:hover svg { color: var(--primary); }
.wa-menu-sep { height: 1px; background: var(--border); margin: 4px 6px; }

/* painel de nota (acima do composer) */
.wa-nota-painel { border-top: 2px solid #f97316; background: #fff7ed; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.wa-nota-painel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: #7c2d12; }
.wa-nota-painel textarea { width: 100%; resize: vertical; min-height: 72px; padding: 10px 12px; border: 1px solid #fed7aa; border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 13px; outline: none; }
.wa-nota-painel textarea:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .15); }
.wa-nota-painel-acoes { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wa-nota-painel-acoes small { color: #9a3412; }
[data-theme="dark"] .wa-nota-painel { background: rgba(249, 115, 22, .10); }
[data-theme="dark"] .wa-nota-painel textarea { background: var(--card); border-color: rgba(249, 115, 22, .35); }
[data-theme="dark"] .wa-nota-painel-top, [data-theme="dark"] .wa-nota-painel-acoes small { color: #fdba74; }

/* card de nota no histórico */
.wa-nota { align-self: flex-start; max-width: min(560px, 85%); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px 8px; margin: 6px 0; font-size: 13px; }
.wa-nota-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.wa-nota-head b { font-size: 13px; }
.wa-nota-tools { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.wa-nota-info { cursor: help; font-size: 14px; }
.wa-nota-apagar { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.wa-nota-apagar:hover { background: rgba(0,0,0,.06); color: var(--text); }
.wa-nota-txt { white-space: pre-wrap; line-height: 1.45; }
.wa-nota-meta { text-align: right; font-size: 11px; color: var(--muted); margin-top: 6px; }
[data-theme="dark"] .wa-nota { background: rgba(249, 115, 22, .12); border-color: rgba(249, 115, 22, .35); }

/* linha de transferência no histórico */
.wa-evento { display: flex; align-items: center; gap: 12px; margin: 10px 0; width: 100%; }
.wa-evento-linha { flex: 1; height: 1px; background: var(--border); }
.wa-evento-txt { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wa-evento-txt svg { color: var(--primary); flex: none; }
.wa-evento-txt b { color: var(--text); font-weight: 700; }
@media (max-width: 720px) { .wa-evento-txt { white-space: normal; text-align: center; } }

/* modal Modelo de mensagem */
.dlg-modelos { width: min(760px, 100%); }
.mm-box { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mm-head { display: flex; align-items: center; gap: 12px; }
.mm-head > div { flex: 1; display: flex; flex-direction: column; }
.mm-head strong { font-size: 15px; }
.mm-head small { color: var(--muted); }
.mm-ico { width: 40px; height: 40px; border-radius: 10px; background: #fce7f3; color: #db2777; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mm-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-filtros input, .mm-filtros select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.mm-lista { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 8px; min-height: 90px; }
.mm-vazio { text-align: center; color: var(--muted); padding: 26px 0; font-size: 13px; }
.mm-item { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.mm-item:hover { border-color: var(--primary); }
.mm-item.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-soft); }
.mm-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mm-item-top strong { flex: 1; font-size: 13.5px; }
.mm-cat { font-size: 11px; color: var(--muted); background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.mm-del { border: 0; background: transparent; cursor: pointer; font-size: 13px; opacity: .6; }
.mm-del:hover { opacity: 1; }
.mm-item-txt { font-size: 12.5px; color: var(--muted); max-height: 60px; overflow: hidden; line-height: 1.4; }
.mm-item.sel .mm-item-txt { color: var(--text); }
@media (max-width: 640px) { .mm-filtros { grid-template-columns: 1fr; } }

/* modal Transferir */
.dlg-transferir { width: min(460px, 100%); }
.tr-box { display: flex; flex-direction: column; gap: 12px; }
.tr-abas { display: flex; background: var(--card-2); border-radius: 999px; padding: 4px; }
.tr-aba { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.tr-aba.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.tr-aba:disabled { cursor: not-allowed; opacity: .6; }
.tr-box input[type="search"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.tr-lista { max-height: 320px; overflow: auto; display: flex; flex-direction: column; }
.tr-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 8px; }
.tr-item:last-child { border-bottom: 0; }
.tr-item:hover { background: var(--card-2); }
.tr-item.sel { background: var(--primary-soft); }
.tr-avatar { width: 34px; height: 34px; font-size: 14px; flex: none; }
.tr-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tr-txt strong { font-size: 13.5px; }
.tr-txt small { color: var(--muted); font-size: 12px; }
.tr-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.tr-item.sel .tr-check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
.dlg-sucesso .modal-actions [data-dlg="cancel"] { display: none; }
.dlg-sucesso .dlg-ico { color: #16a34a; }

/* ===== v49 — reações igual WhatsApp ===== */
.wa-msg { position: relative; align-items: flex-end; gap: 6px; }
.wa-reacoes { position: absolute; bottom: -11px; right: 8px; display: inline-flex; gap: 3px; }
.wa-msg.minha .wa-reacoes { right: auto; left: 8px; }
.wa-reacao-badge { position: static; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 1px 6px; font-size: 13px; box-shadow: var(--shadow); line-height: 1.3; }
.wa-reacao-badge.minha { border-color: var(--primary); cursor: pointer; }
.wa-msg:has(.wa-reacoes) { margin-bottom: 12px; }
.wa-react-btn { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s; margin-bottom: 4px; }
.wa-msg:hover .wa-react-btn, .wa-msg:focus-within .wa-react-btn { opacity: 1; }
.wa-react-btn:hover { color: var(--primary); border-color: var(--primary); }
.wa-msg.minha .wa-react-btn { order: -1; }   /* nas minhas, o botão fica à esquerda da bolha */
.wa-msg-tools { display: inline-flex; gap: 4px; flex: none; margin-bottom: 4px; } .wa-msg-tools .wa-react-btn { margin-bottom: 0; } .wa-msg.minha .wa-msg-tools { order: -1; }
.wa-cit { margin-bottom: 6px; max-width: 100%; } .wa-msg.minha .wa-cit { background: rgba(255,255,255,.35); } [data-theme="dark"] .wa-msg.minha .wa-cit { background: rgba(0,0,0,.18); }
.wa-destaque .wa-bolha { box-shadow: 0 0 0 3px rgba(37,99,235,.45); transition: box-shadow .3s; }
#waRespondendo { margin: 0 12px 6px; }
.wa-audio { display: flex; align-items: center; gap: 8px; min-width: 220px; padding: 4px 0; }
.wa-audio-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; display: grid; place-items: center; }
.wa-audio-play:disabled { background: var(--muted); cursor: default; }
.wa-audio-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(0,0,0,.12); cursor: pointer; overflow: hidden; } .wa-audio-bar i { display: block; height: 100%; width: 0; background: var(--primary); }
[data-theme="dark"] .wa-audio-bar { background: rgba(255,255,255,.18); }
.wa-audio-t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.wa-audio-vel { font: inherit; font-size: 11px; font-weight: 700; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 2px 7px; cursor: pointer; }
.wa-react-pop { position: absolute; bottom: calc(100% + 4px); background: var(--card); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-lg); padding: 4px 6px; display: flex; gap: 2px; z-index: 30; }
.wa-msg.dele .wa-react-pop { left: 0; }
.wa-msg.minha .wa-react-pop { right: 0; }
.wa-react-pop button { border: 0; background: transparent; font-size: 20px; line-height: 1; padding: 4px 5px; border-radius: 50%; cursor: pointer; transition: transform .1s; }
.wa-react-pop button:hover { transform: scale(1.3); background: var(--card-2); }
.wa-react-pop button.sel { background: var(--primary-soft); }
/* v50 — botão "+" no picker de reação abre o painel completo de emojis */
.wa-react-pop button.mais { font-size: 18px; font-weight: 700; color: var(--muted); background: var(--card-2); width: 30px; height: 30px; padding: 0; display: grid; place-items: center; margin-left: 2px; }
.wa-react-pop button.mais:hover { transform: none; color: var(--text); background: var(--border); }

/* ===== v51 — Central de leads · Aplicações/Formulários · Agenda · painéis padrão ===== */
.cl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-head h1 { display: flex; align-items: center; gap: 10px; }
.cl-head-acoes { display: flex; gap: 8px; align-items: center; }
.cl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.cl-tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--border); min-width: 0; }
.cl-tile small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cl-tile b { font-size: 26px; line-height: 1.1; }
.cl-tile span { color: var(--muted); font-size: 12px; }
.cl-tile.azul { border-left-color: #2563eb; } .cl-tile.roxo { border-left-color: #7c3aed; } .cl-tile.laranja { border-left-color: #f59e0b; } .cl-tile.verde { border-left-color: #16a34a; } .cl-tile.vermelho { border-left-color: #dc2626; } .cl-tile.cinza { border-left-color: #64748b; } .cl-tile.escuro { border-left-color: #0f172a; }
.cl-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.cl-tools .pn-busca { flex: 1 1 260px; }
.cl-tools .cl-exportar { margin-left: auto; padding: 7px 14px; font-size: 13px; white-space: nowrap; }
.cl-tools .pn-busca input { width: 100%; border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.cl-cnt { font-size: 13px; white-space: nowrap; }
.cl-tabela-wrap { border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.cl-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.cl-tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cl-tabela td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cl-tabela tr[data-lead] { cursor: pointer; }
.cl-tabela tr[data-lead]:hover td { background: var(--card-2); }
.cl-st { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 2px 8px; border-radius: 6px; white-space: nowrap; line-height: 1.5; color: inherit; }
.cl-st-lead { background: #e5e7eb; color: #374151; }
.cl-st-pendente { background: #e0f2fe; color: #075985; }
.cl-st-sdr { background: #dbeafe; color: #1e40af; }
.cl-st-closer { background: #ede9fe; color: #5b21b6; }
.cl-st-cliente { background: #dcfce7; color: #166534; }
.cl-st-dormindo { background: #fef3c7; color: #92400e; }
.cl-st-hibernando { background: #e2e8f0; color: #1e293b; }
.cl-st-acordando { background: #ffedd5; color: #9a3412; }
.cl-st-invalido { background: #fee2e2; color: #991b1b; }
.cl-st-outro { background: #f1f5f9; color: #475569; }
.cl-estrela { color: #f59e0b; font-size: 15px; }
.cl-insta { color: var(--primary); font-weight: 600; text-decoration: none; }
.cl-insta:hover { text-decoration: underline; }
.tag.cl-tag-in { background: #dbeafe; color: #1e40af; } .tag.cl-tag-out { background: #ffedd5; color: #9a3412; }
.cl-wa { margin-left: 4px; }
/* olhinho */
.cl-dlg .dlg-box { max-width: 1040px; }
.cl-det-top { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cl-det-ident { flex: 1 1 320px; min-width: 0; }
.cl-det-nome { font-size: 20px; font-weight: 800; }
.cl-det-sub { color: var(--muted); font-size: 13px; margin: 2px 0 8px; word-break: break-word; }
.cl-det-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cl-det-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-resumo { margin: 14px 0 10px; background: var(--primary-soft); border: 1px solid var(--primary); border-radius: 12px; padding: 12px 14px; font-weight: 600; line-height: 1.5; }
.cl-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.cl-stat { background: var(--card-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.cl-stat small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.cl-stat b { font-size: 15px; }
.cl-det-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.cl-det-col h4 { margin: 10px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cl-apl { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: var(--card); }
.cl-apl summary { cursor: pointer; font-size: 13px; }
.cl-qa { margin-top: 8px; display: grid; gap: 6px; }
.cl-q small { color: var(--muted); font-size: 11px; display: block; }
.cl-q div { font-size: 14px; }
.cl-q em { color: #16a34a; font-style: normal; font-weight: 700; font-size: 12px; }
.cl-cards { display: grid; gap: 6px; }
.cl-card-linha { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.cl-card-linha > div { flex: 1; min-width: 0; }
.cl-card-tipo { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; color: #fff; background: #94a3b8; }
.cl-card-tipo.sdr { background: #2563eb; } .cl-card-tipo.closer { background: #7c3aed; }
.cl-hist { display: grid; gap: 6px; max-height: 520px; overflow: auto; padding-right: 4px; }
.cl-hist-item { border-left: 3px solid var(--border); padding: 4px 10px; font-size: 13px; }
.cl-hist-item.jornada { border-left-color: #f59e0b; background: var(--card-2); border-radius: 0 8px 8px 0; white-space: pre-line; }
.cl-abas { display: flex; gap: 4px; background: var(--card-2); border-radius: 999px; padding: 4px; }
.cl-aba { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.cl-aba.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* formulários */
.fe-lista { display: grid; gap: 10px; }
.fe-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; flex-wrap: wrap; }
.fe-item.inativo { opacity: .6; }
.fe-item-info { min-width: 0; line-height: 1.6; }
.fe-link { color: var(--primary); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.fe-item-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.fe-editor { display: grid; gap: 14px; }
.fe-bloco { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.fe-bloco h4 { margin: 0 0 10px; font-size: 15px; }
.fe-linha { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.fe-campo { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; font-size: 13px; margin-bottom: 8px; min-width: 0; }
.fe-campo.grow { flex: 2 1 320px; } .fe-campo.curto { flex: 0 1 180px; }
.fe-campo > span { color: var(--muted); font-weight: 600; font-size: 12px; }
.fe-campo input, .fe-campo select, .fe-campo textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card-2); color: var(--text); outline: none; width: 100%; }
.fe-campo input:focus, .fe-campo select:focus, .fe-campo textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.fe-campo.fe-check { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.fe-campo.fe-check input { width: auto; }
.fe-pag { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
.fe-pag-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fe-pag-head select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); }
/* agenda */
.ag-semana-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.ag-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ag-pessoa { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.ag-pessoa:first-child { cursor: default; border-left: 4px solid var(--primary); }
.ag-pessoa.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ag-pessoa-top { display: flex; align-items: center; gap: 8px; }
.ag-pct { margin-left: auto; font-weight: 800; }
.ag-bar { height: 8px; background: var(--card-2); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.ag-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #16a34a); }
.ag-pessoa small { color: var(--muted); font-size: 12px; }
.ag-grade-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.ag-grade-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.ag-grade { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; }
.ag-grade th { font-size: 12px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: center; }
.ag-grade th.hoje { color: var(--primary); }
.ag-grade tbody th { text-align: right; padding-right: 10px; width: 64px; font-weight: 700; }
.ag-grade tr.ag-almoco td, .ag-grade tr.ag-almoco th { border-top: 3px double var(--border); }
.ag-cel { height: 40px; border: 1px solid var(--border); text-align: center; cursor: pointer; font-size: 12px; transition: background .1s; padding: 2px 4px; }
.ag-cel.fechado:hover { background: var(--card-2); }
.ag-cel.livre { background: rgba(22,163,74,.12); }
.ag-cel.livre .ag-liv { color: #16a34a; font-weight: 700; }
.ag-cel.reservado { background: #2563eb; color: #fff; }
.ag-cel.reservado .ag-res { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ag-cel.passado { opacity: .45; cursor: default; }
.ag-cel.sabado { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.04) 6px 8px); }
/* painéis padrão */
.pn-meta-bar { display: flex; flex-direction: column; gap: 7px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 9px 14px; margin-bottom: 10px; }
.pn-meta-itens { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; width: 100%; }
.pn-meta-item { display: flex; flex-direction: row; align-items: baseline; gap: 6px; }
.pn-meta-item small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pn-meta-item b { font-size: 15px; font-weight: 800; }
.pn-meta-tipo { color: var(--muted); font-size: 12px; font-weight: 600; }
.pn-prazo.pn-call { background: var(--primary-soft); color: var(--primary); display: inline-flex; flex-direction: row; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; border: 0; white-space: nowrap; font-size: 12px; } .pn-prazo.pn-call svg { width: 13px; height: 13px; }
.pn-cd-call { display: flex; flex-direction: column; gap: 8px; background: var(--card-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.pn-cd-call > span { display: inline-flex; align-items: center; gap: 6px; }
.pn-cd-call-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.pn-pf-padrao { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.pn-pf-padrao-et { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pn-pf-padrao small { flex-basis: 100%; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .cl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cl-det-cols { grid-template-columns: 1fr; } }

/* v52 — usuários: menu ⋮, função só pro setor comercial, tabela com rolagem */
.usr-tabela-wrap { overflow-x: auto; }
.usr-tabela-wrap table { min-width: 860px; }
.usr-nome { white-space: nowrap; }
.usr-menu-wrap { position: relative; display: inline-block; }
.usr-menu-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; display: inline-grid; place-items: center; }
.usr-menu-btn:hover { background: var(--card-2); }
.usr-menu-pop { position: absolute; right: 0; top: 36px; z-index: 20; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 190px; padding: 6px; display: grid; }
.usr-menu-pop button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.usr-menu-pop button:hover { background: var(--card-2); }
.funcao-sel:disabled { opacity: .55; cursor: not-allowed; }
/* v53 — agenda com Google, horários padrão, validade do lead */
.ag-cel.bloqueado { background: repeating-linear-gradient(45deg, var(--card-2) 0 6px, var(--border) 6px 8px); color: var(--muted); cursor: not-allowed; }
.ag-cel.bloqueado .ag-bloq { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 600; }
.ag-cfg-grade { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.ag-cfg-grade th { font-size: 12px; color: var(--muted); padding: 6px; text-align: center; }
.ag-cfg-grade tbody th { text-align: right; white-space: nowrap; }
.ag-cfg-grade td { text-align: center; border: 1px solid var(--border); padding: 6px; }
.ag-cfg-grade input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.ag-cfg-grade tr.ag-almoco td, .ag-cfg-grade tr.ag-almoco th { border-top: 3px double var(--border); }
.ag-cfg .pn-link { font-size: 11px; }
.cl-valido-sel { min-width: 96px; font-size: 12px; }
.cl-valido-sel.invalido { border-color: #dc2626; color: #b91c1c; font-weight: 700; background: #fee2e2; }
.cl-row-invalido td { background: rgba(220, 38, 38, .05); }
.cl-invalido-motivo { color: #b91c1c; font-size: 11px; margin-top: 2px; max-width: 160px; }
.pn-cd-reserva { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }

/* v56 — CRM → Links (encurtador próprio) */
.lk-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lk-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 14px; }
.lk-tabela-wrap { overflow-x: auto; }
.lk-tabela th.lk-n, .lk-tabela td.lk-n { text-align: right; white-space: nowrap; }
.lk-tabela td.lk-n b { font-size: 15px; }
.lk-tabela tr.lk-inativo td { opacity: .55; }
.lk-curto { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lk-slug { color: var(--text); text-decoration: none; font-size: 13px; }
.lk-slug b { color: var(--primary); }
.lk-slug:hover b { text-decoration: underline; }
.lk-copy { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 6px; width: 26px; height: 26px; display: inline-grid; place-items: center; cursor: pointer; }
.lk-copy:hover { color: var(--primary); border-color: var(--primary); }
.lk-copy svg { width: 13px; height: 13px; }
.lk-titulo { max-width: 220px; }
.lk-utm { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.lk-utm span { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); }
.lk-destino a { color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
.lk-destino a:hover { color: var(--primary); }
.lk-destino svg { width: 11px; height: 11px; vertical-align: -1px; }
.lk-quando { white-space: nowrap; font-size: 12px; line-height: 1.3; }
.lk-acoes { white-space: nowrap; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.usr-menu-pop button.lk-perigo { color: #dc2626; }
.usr-menu-pop.lk-menu-pop { position: fixed; top: 0; left: 0; right: auto; z-index: 300; }
.lk-form .form-group { margin-bottom: 12px; }
.lk-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.lk-slug-in { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.lk-slug-in span { padding: 0 0 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.lk-slug-in input { border: 0 !important; background: transparent !important; box-shadow: none !important; flex: 1; min-width: 0; padding-left: 2px !important; }
.lk-form small { display: block; margin-top: 4px; font-size: 12px; }
.lk-utm-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: var(--card-2); }
.lk-utm-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.lk-utm-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lk-utm-grade .form-group { margin: 0; }
.lk-utm-grade label { font-size: 12px; }
.lk-utm-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 12px; }
.lk-preview { background: var(--card-2); border-radius: 10px; padding: 8px 12px; }
.lk-preview small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
#lk_final { font-size: 13px; word-break: break-all; color: var(--text); margin-top: 2px; }
.lk-criado { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--primary-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.lk-criado a { font-size: 17px; font-weight: 700; color: var(--primary); text-decoration: none; word-break: break-all; }
.lk-criado small { flex-basis: 100%; word-break: break-all; }
.lk-est h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lk-grafico { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.lk-barra { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.lk-barra i { display: block; width: 100%; min-height: 2px; background: var(--primary); border-radius: 3px 3px 0 0; opacity: .85; }
.lk-barra:hover i { opacity: 1; }
.lk-grafico-leg { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.lk-est-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lk-linha { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.lk-linha span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-linha small { color: var(--muted); width: 34px; text-align: right; }
.lk-ultimos { display: grid; gap: 2px; font-size: 12px; max-height: 180px; overflow: auto; }
.lk-ultimos > div { display: grid; grid-template-columns: 130px 110px 1fr; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.lk-ultimos > div:nth-child(odd) { background: var(--card-2); }
.dlg-box.modal-wide:has(.lk-est) { width: min(760px, 100%); }
@media (max-width: 720px) { .lk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lk-form-2, .lk-utm-grade, .lk-est-3 { grid-template-columns: 1fr; } .lk-ultimos > div { grid-template-columns: 1fr 1fr; } }

/* v57 — usuários: salvar alterações em lote */
.usr-barra { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--primary); background: var(--primary-soft); border-radius: 10px; font-size: 14px; font-weight: 600; }
.usr-barra[hidden] { display: none; }
tr.usr-alterado td { background: rgba(0, 29, 237, .05); }
tr.usr-alterado td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* v60 — kanban mais compacto: colunas mais estreitas, etiquetas menores */
.pn-col { flex: 0 0 236px; }
.pn-col-body { padding: 6px; }
.pn-col-cards { gap: 6px; }
.pn-card { padding: 8px 10px; border-radius: 9px; }
.pn-card-top { gap: 6px; }
.pn-card .pn-cod { font-size: 10px; }
.pn-card .pn-resp { font-size: 10px; padding: 2px 7px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-card .pn-resp svg { width: 11px; height: 11px; }
.pn-card-titulo { font-size: 13px; margin: 1px 0 5px; }
.pn-tags { gap: 3px; margin-bottom: 5px; }
.pn-card .tag { font-size: 8.5px; padding: 1px 5px; line-height: 1.5; font-weight: 600; border-radius: 4px; letter-spacing: .01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pn-card-bottom { font-size: 11px; min-height: 20px; gap: 5px; }
.pn-card .pn-chat { width: 24px; height: 24px; } .pn-card .pn-chat svg { width: 13px; height: 13px; }

/* v62 — kanban: rola só dentro da coluna, a página não cria barra vertical */
.pn-kanban { min-height: 0; padding-bottom: 8px; }
.pn-col-body { max-height: calc(100vh - var(--pn-body-top, 300px) - 44px); }

/* v64 — barra de busca/filtros sem sobrepor nem cortar (Central, Aplicações, Links) */
.cl-tools { align-items: center; row-gap: 8px; }
.cl-tools .pn-busca { flex: 1 1 240px; min-width: 200px; max-width: 100%; }
.cl-tools .filter-select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.cl-tools .cl-cnt { flex: none; white-space: nowrap; }
.cl-head { align-items: center; }
.cl-head-acoes { flex-wrap: wrap; }
@media (max-width: 900px) { .cl-tools .pn-busca { flex-basis: 100%; } }
.pn-cd-call-sdr { background: rgba(37, 99, 235, .08); border: 1px solid rgba(37, 99, 235, .25); }
.cl-valido-fixo { display: inline-block; font-size: 12px; font-weight: 700; color: #b91c1c; background: #fee2e2; border: 1px solid #fca5a5; border-radius: 8px; padding: 4px 10px; }

/* v68 — aprovação manual das aplicações */
.cl-aba-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #0ea5e9; color: #fff; font-size: 11px; margin-left: 4px; }
.apl-aprov-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; margin: 0 0 10px; font-size: 13px; border: 1px solid; }
.apl-aprov-bar.on { background: rgba(14, 165, 233, .08); border-color: rgba(14, 165, 233, .35); }
.apl-aprov-bar.off { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); }
.apl-aprov-bar span { flex: 1; }
.apl-aprov-acoes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.apl-aprov-td { white-space: nowrap; }
.tag.apl-tag-pendente { background: #0ea5e9; } .tag.apl-tag-semcontato { background: #f59e0b; color: #fff; cursor: help; } .apl-vincular { border-color: #f59e0b; color: #b45309; } .tag.apl-tag-aprovada { background: #16a34a; } .tag.apl-tag-recusada { background: #dc2626; }
tr.apl-row-pendente td { background: rgba(14, 165, 233, .06); }

/* v69 — menu ⋮ nas aplicações */
.apl-acoes-td { white-space: nowrap; }
.apl-acoes-td .icon-btn { margin-left: 2px; }
.apl-menu { font-size: 18px; line-height: 1; font-weight: 700; }

/* v71 — call agendada verde / no-show vermelho */
.pn-card.call-ok { background: #f0fdf4; border-color: #86efac; } [data-theme="dark"] .pn-card.call-ok { background: #14261b; border-color: #166534; }
.pn-card.call-noshow { background: #fef2f2; border-color: #fca5a5; } [data-theme="dark"] .pn-card.call-noshow { background: #2a1d1f; border-color: #991b1b; }
.pn-card.call-noshow .pn-call { color: #dc2626; }

/* v73 — login: convite, esqueci a senha, nova senha */
.login-titulo { margin: -4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.login-ok { font-size: 13px; color: #15803d; background: rgba(22, 163, 74, .1); border-radius: 8px; padding: 8px 10px; }
.login-esqueci { align-self: center; font-size: 13px; }

/* v76 — chat interno por canais + privado */
.chat-canais { align-items: center; }
.ci-sep { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }
.ci-time-btn { display: inline-flex; align-items: center; gap: 5px; }
.ci-priv-chip { font-size: 12px; font-weight: 600; color: var(--primary); background: rgba(0, 29, 237, .08); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.ci-time-pop { position: fixed; z-index: 1300; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; max-height: 60vh; overflow: auto; }
.ci-time-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px 4px; }
.ci-time-pop button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-family: inherit; color: var(--text); }
.ci-time-pop button:hover { background: var(--bg); }
.ci-time-pop button b { font-size: 13px; } .ci-time-pop button small { font-size: 11px; color: var(--muted); }

/* v77 — menções @ no chat interno */
.ci-mencao { color: var(--primary); font-weight: 700; background: rgba(0, 29, 237, .08); border-radius: 4px; padding: 0 3px; }
.wa-msg.ci-me-mencionou .ci-bolha { box-shadow: inset 3px 0 0 var(--primary); }
.chat-composer { position: relative; }
.ci-mencao-pop { position: absolute; bottom: calc(100% + 6px); left: 8px; }
.ci-mencao-pop button.sel { background: var(--bg); }

/* v80 — Ajustes → Time (pessoas, cargos, jornada) */
.tm-doc { font-variant-numeric: tabular-nums; }
.tag.tm-vinc-clt { background: #0ea5e9; } .tag.tm-vinc-pj { background: #8b5cf6; }
.tm-topo { margin-bottom: 12px; }
.tm-cabecalho { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.tm-avatar { width: 56px; height: 56px; border-radius: 50%; background: #001ded; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.tm-quem { flex: 1; min-width: 240px; } .tm-quem h2 { margin: 0 0 4px; font-size: 20px; } .tm-linha { font-size: 14px; margin-top: 2px; }
.tm-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-h3 { margin: 22px 0 10px; font-size: 15px; }
.tm-jornada { position: relative; padding-left: 18px; border-left: 2px solid var(--border); margin-left: 8px; }
.tm-oc { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 6px 0 14px; }
.tm-oc-ponto { position: absolute; left: -25px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--card); }
.tm-oc.atual .tm-oc-ponto { background: #16a34a; }
.tm-oc-corpo { flex: 1; } .tm-oc-editar { opacity: .5; } .tm-oc-editar:hover { opacity: 1; }
.tm-stat { border-left-color: #001ded; } .tm-stat span { font-size: 12px; color: var(--muted); }
.tm-anotar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; } .tm-input { flex: 1; }
.tm-notas { display: flex; flex-direction: column; gap: 8px; }
.tm-nota { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 14px; }
.tag.tm-nota-tipo { background: #64748b; flex: none; }
@media (max-width: 700px) { .tm-anotar { flex-wrap: wrap; } .tm-input { min-width: 100%; } }

/* v81 — telefonia (Nvoip) */
.tel-box { position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); min-width: 280px; }
.tel-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #16a34a; color: #fff; animation: telPulsa 1.2s infinite; }
.tel-ico.fim { background: #64748b; animation: none; } .tel-ico.erro { background: #dc2626; animation: none; }
.tel-txt { display: flex; flex-direction: column; flex: 1; } .tel-txt small { color: var(--muted); }
@keyframes telPulsa { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.pn-round-tel { color: #16a34a; }

/* v82 — ligações do card (gravação + feedback da IA) */
.tel-lista { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 16px; }
.tel-lig { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.tel-lig-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .tel-lig-cab b { font-size: 14px; }
.tel-meta { color: var(--muted); font-size: 12px; margin-left: auto; }
.tel-st { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; background: #e5e7eb; color: #374151; }
.tel-st-encerrada { background: #dcfce7; color: #166534; } .tel-st-atendida, .tel-st-discando { background: #dbeafe; color: #1e40af; } .tel-st-nao_atendida { background: #fef3c7; color: #92400e; } .tel-st-erro { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .tel-st { background: #2a3040; color: #cbd5e1; }
.tel-lig audio { width: 100%; height: 36px; }
.tel-erro { color: #b91c1c; font-size: 13px; }
.tel-ia { border-top: 1px dashed var(--border); padding-top: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.tel-ia p { margin: 0; } .tel-ia ul { margin: 4px 0 0; padding-left: 18px; } .tel-ia li { margin: 2px 0; }
.tel-ia-cab { display: flex; align-items: center; gap: 8px; } .tel-ia-cab b { font-size: 13px; }
.tel-nota { font-weight: 800; color: #4f46e5; background: #eef2ff; padding: 2px 8px; border-radius: 999px; font-size: 12px; } [data-theme="dark"] .tel-nota { background: #2a2f5a; color: #c7d2fe; }
.tel-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; text-transform: capitalize; } [data-theme="dark"] .tel-tag { background: #2a3040; color: #cbd5e1; }
.tel-ia-bloco b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.tel-ia-espera { color: var(--muted); } .tel-ia-erro { color: #b91c1c; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tel-trans summary { cursor: pointer; color: var(--muted); font-weight: 600; } .tel-trans pre { white-space: pre-wrap; font: inherit; font-size: 12.5px; background: var(--bg); border-radius: 8px; padding: 10px; margin: 6px 0 0; max-height: 320px; overflow: auto; }

/* v84 — link da call + mensagens prontas no card */
.pn-cd-callbox { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.pn-call-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-call-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; } .pn-call-link a { color: #4f46e5; word-break: break-all; }
.pn-call-semlink { color: var(--muted); font-size: 12px; }
.pn-call-msgs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; } .pn-call-msgs span { color: var(--muted); }
.pn-pill-ok { background: #dcfce7 !important; color: #166534 !important; }

/* v85 — atendimento travado pra quem não é o responsável */
.wa-travada { margin: 8px 12px; padding: 10px 14px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 13px; }
[data-theme="dark"] .wa-travada { background: #3a2f12; color: #fcd34d; }

/* v86 — botões verdes das mensagens prontas */
.pn-call-msgs { flex-direction: column; align-items: flex-start; gap: 6px; }
.pn-call-msgs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-msg-wa { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 14px 9px 9px; background: #25d366; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(37,211,102,.35); transition: transform .08s, background .15s; }
.pn-msg-wa:hover { background: #1fb959; transform: translateY(-1px); } .pn-msg-wa:active { transform: none; }
.pn-msg-wa b { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #128c4a; display: grid; place-items: center; font-size: 12px; }
.pn-msg-wa svg { width: 16px; height: 16px; } .pn-msg-wa span { color: #fff; }
.pn-msg-wa.pn-pill-ok { background: #128c4a !important; color: #fff !important; }

/* v87 — botão azul "Link da Call" */
.pn-link-call { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 14px; background: #2563eb; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(37,99,235,.35); transition: transform .08s, background .15s; }
.pn-link-call:hover { background: #1d4ed8; transform: translateY(-1px); } .pn-link-call.pn-pill-ok { background: #16a34a !important; }
.pn-call-link a { font-size: 12px; color: var(--muted); }

/* v88 — botão "Abrir Call" */
.pn-abrir-call { display: inline-flex; align-items: center; gap: 7px; border: 2px solid #2563eb; border-radius: 999px; padding: 7px 14px; background: #fff; color: #2563eb !important; font-size: 13px !important; font-weight: 700; text-decoration: none; transition: background .15s, transform .08s; }
.pn-abrir-call:hover { background: #eff6ff; transform: translateY(-1px); } [data-theme="dark"] .pn-abrir-call { background: transparent; }

/* v90 — lembretes automáticos no card */
.pn-msg-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pn-lemb { font-size: 11px; color: var(--muted); white-space: nowrap; } .pn-lemb-ok { color: #16a34a; font-weight: 600; } .pn-lemb-prog { color: #2563eb; } .pn-lemb-off { color: var(--muted); }
.pn-lembretes { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; cursor: pointer; }

/* v91 — chat interno v2 */
.ci-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; display: inline-block; background: #dfe5e7; vertical-align: middle; }
.ci-avatar img, .ci-avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-avatar.peq { width: 26px; height: 26px; } .ci-avatar.mini { width: 22px; height: 22px; }
.ci-msg { display: flex; align-items: flex-end; gap: 6px; }
.ci-msg.minha { flex-direction: row-reverse; }
.ci-av-col { width: 32px; flex: none; }
.ci-col { max-width: 78%; min-width: 0; }
.ci-msg.seguida { margin-top: -3px; }
.ci-msg.seguida .ci-bolha { border-top-left-radius: 8px; }
.wa-dia { display: flex; justify-content: center; margin: 10px 0 4px; } .wa-dia span { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--card-2); border-radius: 999px; padding: 3px 10px; }
.ci-bol { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #22c55e; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; vertical-align: middle; }
.ci-time-pop button { flex-direction: row; align-items: center; gap: 10px; } .ci-time-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.ci-mini-btn { width: 30px; height: 30px; } .ci-eu { border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; }
.ci-apagada { color: var(--muted); font-size: 12.5px; }
.ci-acoes { position: absolute; top: -12px; right: 6px; display: none; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.wa-msg.minha .ci-acoes { right: auto; left: 6px; }
.ci-bolha:hover .ci-acoes { display: flex; }
.ci-acoes button { border: 0; background: transparent; font-size: 13px; cursor: pointer; padding: 2px 5px; border-radius: 999px; line-height: 1; } .ci-acoes button:hover { background: var(--card-2); }
.ci-reagir-btn { display: none; }
.ci-cit { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--primary); background: rgba(0,0,0,.05); border-radius: 6px; padding: 5px 8px; margin-bottom: 6px; cursor: pointer; font: inherit; font-size: 12px; color: var(--text); }
[data-theme="dark"] .ci-cit { background: rgba(255,255,255,.07); }
.ci-cit b { display: block; color: var(--primary); font-size: 11px; } .ci-cit span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-fixada { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; align-items: center; background: #fef9c3; color: #713f12; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; margin-bottom: 6px; }
.ci-fixada span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } [data-theme="dark"] .ci-fixada { background: #3b3416; color: #fde68a; border-color: #5b4d1c; }
.ci-destaque .ci-bolha { box-shadow: 0 0 0 3px rgba(37,99,235,.45); transition: box-shadow .3s; }
.ci-barra { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 8px 10px; background: var(--card-2); border-left: 3px solid var(--primary); border-radius: 8px; font-size: 12.5px; }
.ci-barra span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ci-barra b { color: var(--primary); margin-right: 6px; }
.ci-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit; text-align: left; color: var(--text); min-width: 180px; }
.ci-card:hover { border-color: var(--primary); } .ci-card-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 800; } .ci-card b { font-size: 13.5px; } .ci-card small { color: var(--muted); font-size: 11.5px; }
.ci-card-txt { margin-top: 6px; }
.ci-img { max-width: 260px; max-height: 260px; border-radius: 10px; display: block; }
.ci-arquivo { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--card-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.ci-busca { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 8px; max-height: 50%; display: flex; flex-direction: column; }
.ci-busca-topo { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); } .ci-busca-topo input { flex: 1; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.ci-busca-lista { overflow-y: auto; padding: 4px; }
.ci-busca-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.ci-busca-item:hover { background: var(--card-2); } .ci-busca-item span { display: flex; flex-direction: column; min-width: 0; } .ci-busca-item small { color: var(--muted); font-size: 11px; } .ci-busca-item em { font-style: normal; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-avatar { position: relative; overflow: visible; } .tm-avatar-foto { background: #dfe5e7; } .tm-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tm-foto-btn { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--card); background: var(--primary); color: #fff; font-size: 11px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tm-mini { width: 28px; height: 28px; border-radius: 50%; background: #001ded; color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; margin-right: 8px; vertical-align: middle; overflow: hidden; } .tm-mini img { width: 100%; height: 100%; object-fit: cover; }
.ci-msg .wa-bolha { max-width: 100%; min-width: 120px; }
.ci-msg.minha .wa-bolha { padding-right: 12px; }
.ci-col { max-width: 82%; }
.ci-msg .ci-de { white-space: nowrap; }
/* ===== v93: alerta na tela + foto com rosto ===== */
.ci-alerta { position: fixed; inset: 0; z-index: 5000; background: rgba(120, 20, 20, .82); display: flex; align-items: center; justify-content: center; padding: 20px; animation: ci-alerta-in .25s ease-out; }
@keyframes ci-alerta-in { from { opacity: 0; } to { opacity: 1; } }
.ci-alerta-caixa { background: #fff; color: #111827; border-radius: 20px; padding: 34px 32px 28px; width: min(460px, 100%); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 4px solid #f59e0b; }
.ci-alerta-emoji { font-size: 72px; line-height: 1; animation: ci-alerta-pulso 1.1s ease-in-out infinite; }
@keyframes ci-alerta-pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.ci-alerta-caixa h2 { margin: 14px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.ci-alerta-caixa p { margin: 0 0 8px; font-size: 15px; color: #4b5563; }
.ci-alerta-btn { margin-top: 18px; width: 100%; justify-content: center; padding: 14px 18px; font-size: 16px; font-weight: 800; border-radius: 12px; background: #dc2626; border-color: #dc2626; } .ci-alerta-btn:hover { background: #b91c1c; border-color: #b91c1c; }
body.ci-alerta-on { overflow: hidden; }
.ci-alerta-disparar { font-size: 15px; }
.ci-alerta-pop { min-width: 280px; }
.ci-alerta-pop .ci-time-titulo { white-space: normal; }
.ci-alerta-txt { width: calc(100% - 12px); margin: 4px 6px 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 13px; background: var(--bg); color: var(--text); }
.ci-alerta-txt:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ci-alerta-todos { border-bottom: 1px solid var(--border) !important; border-radius: 8px 8px 0 0 !important; margin-bottom: 4px; }
.ci-foto-modal { z-index: 1400; }
.ci-foto-caixa { width: min(360px, 100%); padding: 24px; align-items: center; text-align: center; gap: 12px; }
.ci-foto-previa { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; border: 4px solid var(--primary-soft); box-shadow: var(--shadow-lg); }
.ci-foto-previa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-foto-caixa p { margin: 0; font-size: 14px; color: var(--muted); }
.ci-foto-caixa .modal-actions { margin-top: 4px; justify-content: center; }

/* ===== v95: call do Meet na aba Ligações ===== */
.tel-st-meet { background: #e8f0fe; color: #1a56db; }
.tel-meet-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 2px; }
.tel-meet-links a.pn-pill { text-decoration: none; }

/* ===== v97: áudio no chat interno ===== */
#chatMic.gravando { border-color: #dc2626; color: #dc2626; }
.ci-audio { display: block; max-width: 100%; min-width: 240px; height: 40px; }
/* v97: chave dos lembretes automáticos no card (a chave estava por cima do texto) */
.pn-lembretes { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); cursor: pointer; margin-top: 8px; line-height: 1.35; }
.pn-lembretes .switch { flex: none; width: 34px; height: 19px; margin-top: 1px; }
.pn-lembretes .switch span::before { width: 15px; height: 15px; }
.pn-lembretes .switch input:checked + span::before { transform: translateX(15px); }

/* ===== v98: aba Clientes — status, seleção em lote e envio pro SDR ===== */
.col-chk { width: 34px; text-align: center; }
.col-chk input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.cli-bloq { display: inline-block; width: 16px; color: var(--muted); cursor: help; font-weight: 700; }
.status-tag { white-space: nowrap; }
.st-ativo { background: #dcfce7; color: #166534; } .st-inativo { background: #fee2e2; color: #991b1b; } .st-lead { background: #e5e7eb; color: #374151; }
.st-sdr { background: #dbeafe; color: #1e40af; } .st-call { background: #ede9fe; color: #5b21b6; } .st-dormindo { background: #fef3c7; color: #92400e; }
.st-hibernando { background: #e0f2fe; color: #075985; } .st-acordando { background: #ffedd5; color: #9a3412; }
[data-theme="dark"] .status-tag { filter: brightness(.85); }
.status-btn .tag { margin-right: 4px; }
.cli-enviar-btn { background: #16a34a; border-color: #16a34a; } .cli-enviar-btn:hover { background: #15803d; border-color: #15803d; }
.cli-sel-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #16a34a; font-size: 12px; margin-left: 6px; }
.cli-modo { display: grid; gap: 6px; margin-bottom: 10px; }
.cli-sdrs { display: grid; gap: 6px; }
.cli-sdr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.cli-sdr input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.cli-sdr-nome { flex: 1; display: flex; flex-direction: column; } .cli-sdr-nome small { color: var(--muted); font-size: 11px; }
.cli-sdr .cli-sdr-qtd { width: 70px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--bg); color: var(--text); }
.cli-resumo { margin: 10px 0 0; font-size: 13px; }
.cli-pulados { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
/* v99: seleção em lote na Central de leads */
.cl-tabela .col-chk { width: 34px; text-align: center; }
.cl-tag-aplic { background: #ccfbf1; color: #115e59; display: inline-block; cursor: help; }
[data-theme="dark"] .cl-tag-aplic { background: #134e4a; color: #99f6e4; }

/* ===== v100: botão INTEGRAR no chat + busca de cadastro ===== */
.btn-integrar { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 700; letter-spacing: .02em; }
.btn-integrar:hover { background: #15803d; border-color: #15803d; color: #fff; }
.int-resultados { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.int-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.int-item:hover { border-color: #16a34a; }
.int-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.int-item-body strong { font-size: .95rem; }
.int-item-body small { color: var(--text-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-item-body .int-compras { color: #16a34a; font-weight: 600; }
.tag.cl-tag-front { background: #dbeafe; color: #1e40af; cursor: help; }
.tag.cl-tag-conferir { background: #ffedd5; color: #9a3412; cursor: help; }
.wa-canal-chip { background: rgba(37, 99, 235, .1); color: #2563eb; }

/* v100: etiquetas da Central e da aba Clientes com o mesmo peso visual */
.cl-tabela .col-tags .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-tabela td { vertical-align: middle; }
[data-theme="dark"] .cl-st, [data-theme="dark"] .tag.cl-tag-in, [data-theme="dark"] .tag.cl-tag-out,
[data-theme="dark"] .tag.cl-tag-front, [data-theme="dark"] .tag.cl-tag-conferir { filter: brightness(.85); }
.tag.cl-tag-invalido { background: #fee2e2; color: #991b1b; cursor: help; }
[data-theme="dark"] .tag.cl-tag-invalido { filter: brightness(.85); }

/* ===== v101: barra da meta do mês (vermelho → verde) ===== */
.pn-meta-progresso { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.pn-gauge-wrap { display: flex; align-items: center; gap: 0; width: 100%; }
.pn-gauge { position: relative; flex: 100; height: 16px; border-radius: 999px 0 0 999px; background: var(--card-2); border: 1px solid var(--border); border-right: 0; overflow: hidden; }
/* v102: o trecho 100→120% fica colado no primeiro, sem arredondar a emenda */
.pn-gauge-extra { flex: 20; background: var(--card-2); border-radius: 0 999px 999px 0; border: 1px dashed var(--border); border-left: 1px solid var(--border); opacity: .7; }
.pn-gauge-extra.on { border: 1px solid var(--border); opacity: 1; }
.pn-parabens { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; white-space: nowrap; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #7c3aed; background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3); border-radius: 999px; padding: 3px 10px; }
.pn-gauge i { position: absolute; inset: 0; border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 25%, #eab308 50%, #84cc16 75%, #22c55e 100%);
  clip-path: inset(0 calc(100% - var(--pct, 0%)) 0 0); transition: clip-path .6s ease; }
.pn-gauge-extra i { border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #22c55e 0%, #14b8a6 50%, #8b5cf6 100%); }
.pn-gauge-vazio i { display: none; }
.pn-gauge-legenda { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pn-gauge-legenda b { font-size: 16px; font-weight: 800; color: var(--text); }
.pn-gauge-legenda em { font-style: normal; font-weight: 700; color: var(--text); }
.pn-gauge-legenda span { margin-left: auto; font-size: 12px; }
.pn-sem-meta { display: none; }
.pn-gauge-linha { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.pn-gauge-linha .pn-gauge-wrap { gap: 4px; }
.pn-gauge-linha .pn-gauge { height: 12px; }
.pn-gauge-linha .pn-parabens { display: none; }
.pn-gauge-linha small { font-weight: 800; font-size: 11px; white-space: nowrap; }

/* ===== v103: data do follow up no card + relatório de tempo no kanban ===== */
.pn-prazo-edit { cursor: pointer; }
.pn-prazo-edit:hover { filter: brightness(.94); text-decoration: underline; }
.pn-prazo-vazio { color: var(--muted); border: 1px dashed var(--border); }
.pn-tempo-resumo { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.pn-tempo-resumo .pn-kpi { flex: 1 1 200px; }
.pn-tempo-nome { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.pn-tempo-nome i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pn-tempo-bar { margin-top: 5px; height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.pn-tempo-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #22c55e); }
.cl-tabela th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.cl-tabela th[data-sort]:hover { color: var(--text); }
.cl-tabela th.sorted { color: var(--primary); }
.cl-mais-wrap { display: flex; justify-content: center; padding: 12px 0 4px; }
.cl-mais-wrap small { font-weight: 500; opacity: .7; margin-left: 4px; }
.cl-tools { flex-wrap: wrap; row-gap: 8px; }

/* ===== v105: painel de segmentos da aba Clientes ===== */
.cli-painel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cli-seg { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.cli-seg:hover { border-color: var(--primary); }
.cli-seg.ativo { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cli-seg small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.cli-seg b { font-size: 22px; line-height: 1.1; }
.cli-seg span { font-size: 11px; color: var(--muted); }
.tag.cl-tag-low { background: #ede9fe; color: #5b21b6; cursor: help; }
.tag.cl-tag-evento { background: #fef3c7; color: #92400e; cursor: help; }
[data-theme="dark"] .tag.cl-tag-low, [data-theme="dark"] .tag.cl-tag-evento { filter: brightness(.85); }
.cl-tabela .apl-acoes-td { white-space: nowrap; }
.lk-menu-pop button[disabled] { opacity: .45; cursor: not-allowed; }

/* ===== v107: campos de busca iguais no sistema todo =====
   Antes tinha caixa dentro de caixa (a borda do wrapper mais a borda do input)
   e o X redondo que o navegador desenha sozinho ficava por cima da borda. */
input[type="search"] {
    -webkit-appearance: none; appearance: none; border-radius: var(--radius-sm);
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.pn-busca { border-radius: var(--radius-sm); }
.pn-busca input, .pn-busca input[type="search"] { border: 0; background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.pn-busca:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-input, .filter-select, .tr-box input[type="search"] { border-radius: var(--radius-sm); }

/* ===== v108: aba Eventos + histórico do Front na conversa ===== */
.tag.ev-tag-ingresso { background: #dcfce7; color: #166534; cursor: help; }
.tag.ev-tag-gravacao { background: #ede9fe; color: #5b21b6; cursor: help; }
.tag.ev-tag-pesquisa { background: #ffedd5; color: #9a3412; cursor: help; }
.tag.ev-tag-bruno    { background: #dbeafe; color: #1e40af; cursor: help; }
[data-theme="dark"] .tag.ev-tag-ingresso, [data-theme="dark"] .tag.ev-tag-gravacao,
[data-theme="dark"] .tag.ev-tag-pesquisa, [data-theme="dark"] .tag.ev-tag-bruno { filter: brightness(.85); }
.ev-pesquisa { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.ev-pesquisa-topo { display: flex; align-items: center; gap: 8px; }
.ev-resp { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.ev-resp small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.ev-resp span { font-size: 14px; }
.wa-front-aviso { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; width: fit-content; }
.wa-front-aviso b { color: var(--text); }
.wa-front-hist { display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow-y: auto; }
.wa-front-topo { color: var(--muted); font-size: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.wa-front-msg { max-width: 78%; border-radius: 10px; padding: 8px 10px; font-size: 14px; background: var(--card-2); }
.wa-front-msg small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.wa-front-msg.nossa { align-self: flex-end; background: var(--primary-soft); }
/* v109: histórico do Front dentro da própria conversa */
.wa-front-marca span { background: var(--card-2); color: var(--muted); font-weight: 700; }
.wa-front-fim span { border: 1px dashed var(--border); background: transparent; }
.wa-front-mais { display: flex; justify-content: center; margin: 2px 0 6px; }
.wa-front-mais button { font-size: 12px; }
.wa-msg.front .wa-bolha { opacity: .92; border-style: dashed; }
.wa-msg.front .wa-meta { opacity: .8; }
.tag.ev-tag-ativado { background: #cffafe; color: #155e75; cursor: help; }
[data-theme="dark"] .tag.ev-tag-ativado { filter: brightness(.85); }

/* ===== DM do Instagram (coluna "DM Jesué") ===== */
.col-dm { white-space: nowrap; text-align: center; }
th.col-dm { font-size: 11px; }
.dm-btn {
    font: inherit; font-size: 12px; font-weight: 600; line-height: 1;
    padding: 5px 10px; border-radius: 4px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-2, #f1f3f5); color: var(--muted, #6b7280);
    transition: background .12s, color .12s, border-color .12s;
}
.dm-btn:hover { background: var(--bg-3, #e6e9ee); color: var(--text, #111827); }
.dm-btn.dm-feito { background: #16a34a; border-color: #16a34a; color: #fff; }
.dm-btn.dm-feito:hover { background: #15803d; border-color: #15803d; color: #fff; }
.dm-dica { font-size: 12px; color: var(--muted, #6b7280); margin: 0 0 10px; }
.dm-aviso {
    font-size: 12px; margin: 0 0 10px; padding: 7px 10px; border-radius: 4px;
    background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: #92400e;
}

/* ===== Histórico da jornada: uma informação por linha ===== */
.cl-hist-tit { font-weight: 600; margin-bottom: 6px; }
.cl-hist-lin {
    display: flex; gap: 6px; align-items: baseline;
    padding: 2px 0; border-top: 1px solid var(--border);
    font-size: 13px; line-height: 1.35;
}
.cl-hist-lin:first-of-type { border-top: 0; }
.cl-hist-rot {
    flex: 0 0 auto; min-width: 0; font-size: 11px; text-transform: uppercase;
    letter-spacing: .02em; color: var(--muted, #6b7280); font-weight: 600;
}

/* ===== SDR que conversou no Front (aba Eventos) ===== */
.col-sdrfront { white-space: nowrap; }
.ev-sdr {
    display: inline-block; font-size: 11px; font-weight: 600; line-height: 1;
    padding: 4px 8px; border-radius: 4px;
    background: var(--bg-2, #f1f3f5); color: var(--muted, #6b7280); border: 1px solid var(--border);
}
.ev-sdr-sim { background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .35); color: #15803d; }
.ev-sdr-nao { background: var(--bg-2, #f1f3f5); border-color: var(--border); color: var(--muted, #6b7280); }

/* ===== Disparo automático (aba Eventos) ===== */
.col-disp { white-space: nowrap; }
th.col-disp { font-size: 11px; }
.ev-disp {
    display: inline-block; font-size: 11px; font-weight: 600; line-height: 1;
    padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border);
    background: var(--bg-2, #f1f3f5); color: var(--muted, #6b7280);
}
.ev-disp-ok   { background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .35); color: #15803d; }
.ev-disp-indo { background: rgba(37, 99, 235, .1); border-color: rgba(37, 99, 235, .35); color: #1d4ed8; }
.ev-disp-fila { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: #92400e; }
.ev-disp-erro { background: rgba(220, 38, 38, .1); border-color: rgba(220, 38, 38, .35); color: #b91c1c; }

/* ===== % no cantinho do quadro (aba Eventos) ===== */
.cl-tile-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cl-tile-topo small { min-width: 0; }
.cl-pct {
    flex: 0 0 auto; font-size: 11.5px; font-weight: 700; line-height: 1;
    padding: 4px 8px; border-radius: 999px; font-variant-numeric: tabular-nums;
    border: 1px solid var(--border); background: var(--bg-2, #f1f3f5); color: var(--muted);
    white-space: nowrap;
}
.cl-tile.azul     .cl-pct { background: rgba(37, 99, 235, .10);  border-color: rgba(37, 99, 235, .32);  color: #2563eb; }
.cl-tile.verde    .cl-pct { background: rgba(22, 163, 74, .10);  border-color: rgba(22, 163, 74, .32);  color: #16a34a; }
.cl-tile.laranja  .cl-pct { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .34); color: #92400e; }
.cl-tile.vermelho .cl-pct { background: rgba(220, 38, 38, .10);  border-color: rgba(220, 38, 38, .32);  color: #dc2626; }
.cl-tile.cinza    .cl-pct { background: rgba(100, 116, 139, .10);border-color: rgba(100, 116, 139, .32);color: #64748b; }
.cl-tile.roxo     .cl-pct { background: rgba(124, 58, 237, .10); border-color: rgba(124, 58, 237, .32); color: #7c3aed; }
.cl-tile.escuro   .cl-pct { background: rgba(15, 23, 42, .07);   border-color: rgba(15, 23, 42, .22);   color: var(--texto, #0f172a); }
@media (prefers-color-scheme: dark) {
    .cl-tile.laranja .cl-pct { color: #fbbf24; }
    .cl-tile.escuro  .cl-pct { background: rgba(203, 213, 225, .12); border-color: rgba(203, 213, 225, .3); }
}

/* ===== v109: ficha do lead com abas (Jornada · Compras · Conversas) ===== */
.cl-abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 16px; }
.cl-aba { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
.cl-aba:hover { background: var(--card-2); color: var(--text); }
.cl-aba.ativa { color: var(--primary); border-bottom-color: var(--primary); }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.cl-compras { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.cl-compra { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.cl-compra-d { color: var(--muted); font-size: 12.5px; }
.cl-compra-v { font-weight: 700; white-space: nowrap; }
.cl-compra.cancelada { opacity: .6; }
.cl-compra.cancelada .cl-compra-v { text-decoration: line-through; }
.cl-ficha-link { margin-top: 12px; font-size: 12.5px; }
.cl-conv-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.cl-conv { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; padding: 4px; }
.cl-conv-dia { display: flex; justify-content: center; margin: 8px 0 2px; }
.cl-conv-dia span { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--card-2); border-radius: 999px; padding: 3px 10px; }
.cl-conv-msg { max-width: 76%; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; line-height: 1.45;
  background: var(--card); align-self: flex-start; word-wrap: break-word; }
.cl-conv-msg.nossa { align-self: flex-end; background: var(--primary-soft); border-color: transparent; }
.cl-conv-msg.front { border-style: dashed; }
.cl-conv-quem { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.cl-conv-msg small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .cl-compra { grid-template-columns: 78px minmax(0, 1fr); } .cl-compra-v { grid-column: 2; } .cl-conv-msg { max-width: 92%; } }
.cl-stat span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }

/* ===== v110: chat interno — link e formatação estilo WhatsApp ===== */
.ci-bolha a, .ci-link { color: #1d6ff2; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.ci-bolha a:hover, .ci-link:hover { color: #0b57d0; }
[data-theme="dark"] .ci-bolha a, [data-theme="dark"] .ci-link { color: #7cb3ff; }
.wa-msg.minha .ci-bolha a, .wa-msg.minha .ci-link { color: #0b57d0; }
[data-theme="dark"] .wa-msg.minha .ci-bolha a { color: #9ec7ff; }
.ci-bolha u { text-underline-offset: 2px; }
.ci-bolha s { opacity: .75; }
.ci-cod { display: inline-block; max-width: 100%; overflow-x: auto; background: rgba(0,0,0,.06); border-radius: 6px;
  padding: 1px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; }
[data-theme="dark"] .ci-cod { background: rgba(255,255,255,.1); }
.ci-dica-formato { color: var(--muted); font-size: 11.5px; padding: 2px 4px 6px; }
.ci-dica-formato b, .ci-dica-formato i, .ci-dica-formato u, .ci-dica-formato s { color: var(--text); }
.ci-sino { font-size: 14px; line-height: 1; }
.ci-sino.ligado { background: rgba(37, 99, 235, .12); }
.ci-sino-pop { position: fixed; z-index: 1200; width: min(340px, 92vw); background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 14px; font-size: 13px; }
.ci-sino-pop b { font-size: 14px; }
.ci-sino-pop p { margin: 6px 0 10px; font-size: 12.5px; line-height: 1.45; }
.ci-sino-diag { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.ci-sino-diag li.ok { color: #15803d; } .ci-sino-diag li.nao { color: #b91c1c; }
[data-theme="dark"] .ci-sino-diag li.ok { color: #4ade80; } [data-theme="dark"] .ci-sino-diag li.nao { color: #f87171; }
.ci-sino-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-sino-acoes .btn { padding: 7px 12px; font-size: 13px; }
.ci-sino-nota { margin: 10px 0 0 !important; font-size: 11.5px !important; }

/* ===== v110: QR code do link ===== */
.lk-qr-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.lk-qr-img { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; line-height: 0; }
.lk-qr-img svg { display: block; width: 260px; height: 260px; }
.lk-qr-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; word-break: break-all; margin: 0 0 8px; }
.lk-qr-lado p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.lk-qr-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.lk-qr-dica { font-size: 12px !important; }
.lk-qr-btn { white-space: nowrap; }
@media (max-width: 680px) { .lk-qr-box { grid-template-columns: 1fr; } .lk-qr-img svg { width: 100%; height: auto; max-width: 300px; } }
.col-aplic { text-align: center; width: 70px; }
.ev-aplicou { color: #f59e0b; font-size: 17px; cursor: help; }
/* v119 — aba Eventos: blocos do dash, estrelas de sinal e de pagamento completo */
.ev-bloco-tit { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 2px 6px; }
.cl-tiles.ev-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cl-tiles.ev-tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cl-tiles.ev-tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-sinal { color: #2563eb; font-size: 17px; cursor: help; }
.ev-concluido { color: #16a34a; font-size: 17px; cursor: help; }
/* v120 — estrela do sinal da mentoria no card do kanban */
.pn-sinal { color: #2563eb; font-size: 15px; line-height: 1; cursor: help; align-self: center; }
.pn-sinal.pn-sinal-pago { color: #16a34a; }
/* v121 — coluna Status da aba Eventos */
.col-status { white-space: nowrap; }
.ev-status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; }
.ev-status-comprou { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.35); color: #15803d; }
.ev-status-closer  { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.35); color: #6d28d9; }
.ev-status-sdr     { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.35); color: #1d4ed8; }
/* v131 — Instagram na aba Clientes: mesmo botão da Marca (lápis só no hover); o @ continua clicável */
.insta-btn .cl-insta { pointer-events: auto; }
/* v133 — status manuais: Pendência (laranja) e Churning (roxo) */
.st-pendencia { background: #ffedd5; color: #c2410c; } .st-churning { background: #f3e8ff; color: #6b21a8; } .st-cancelado { background: #fee2e2; color: #b91c1c; }

.wa-bolha .wa-link { color: #0b57d0; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.wa-bolha .wa-link:hover { color: #003a9c; }
[data-theme="dark"] .wa-bolha .wa-link { color: #7cb3ff; }

.tags.prod-inativo .tag { opacity: .55; }

.usr-sist-td { white-space: nowrap; } .usr-sist { display:inline-flex; align-items:center; gap:3px; margin-right:8px; font-size:12px; } .usr-sist input { margin:0; }

/* ---------------- Financeiro ---------------- */
.fin-emp { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
.fin-emp-amerik { background: var(--primary-soft); color: var(--primary); }
.fin-emp-skate { background: #dcfce7; color: #15803d; }
.fin-emp-pf { background: var(--card-2); color: var(--muted); }
.fin-emp-mista { background: #fef3c7; color: #b45309; }
[data-theme="dark"] .fin-emp-skate { background: #14532d; color: #bbf7d0; }
[data-theme="dark"] .fin-emp-mista { background: #713f12; color: #fef3c7; }
.fin-fora { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.fin-table td { vertical-align: middle; }
.fin-table .cob-acoes { width: auto; text-align: right; }
.fin-table .cob-acoes small { margin-right: 6px; }
.fin-parcelas { padding: 6px 4px 10px 30px; }
.fin-parcelas small.pn-muted { display: block; margin-top: 8px; }
.fin-subtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-subtable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.fin-subtable td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.fin-subtable tr:last-child td { border-bottom: 0; }
.fin-subtable .cob-acoes { text-align: right; }
.fin-emp-sel, .fin-inline { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); }
.fin-inline:focus, .fin-emp-sel:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.fin-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--success); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.fin-card-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.fin-card-h span { font-size: 13px; color: var(--muted); }
.fin-linha-erro td { color: var(--danger); }
.fin-linha-erro em { font-style: normal; font-weight: 600; }
.fin-preview { max-height: 50vh; overflow: auto; }
.fin-picker { position: relative; }
.fin-picker-busca { width: 100%; }
.fin-picker-lista { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; margin-top: 4px; }
.fin-picker-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.fin-picker-item:hover { background: var(--card-2); }
.fin-picker-item small, .fin-picker-sel small { color: var(--muted); font-size: 12px; }
.fin-picker-item .tag { margin-left: 6px; font-size: 10px; padding: 0 6px; }
.fin-picker-vazio { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.fin-picker-sel { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary-soft); }
.fin-picker-sel b { flex: none; }
.fin-picker-sel small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-picker-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.fin-picker-x:hover { color: var(--danger); }
/* diálogos do Financeiro em duas colunas (cliente, texto, prévia e botões ocupam a linha toda) */
.fin-dlg .modal-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
.fin-dlg .modal-form > .dlg-texto, .fin-dlg .modal-form > .form-group:has(.fin-picker), .fin-dlg .modal-form > .form-group:has(textarea), .fin-dlg .modal-form > .modal-actions, .fin-dlg .modal-form > .fin-preview { grid-column: 1 / -1; }
@media (max-width: 640px) { .fin-dlg .modal-form { grid-template-columns: 1fr; } }

.fin-card-neutra { border-left-color: var(--border); }
.fin-conf { font-size: 12px; color: var(--muted); }
.fin-h3 { font-size: 15px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 10px; }
.fin-h3 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.search-bar input.fin-inline[type=date] { width: auto; }
#fpKpis select.fin-inline { margin-top: 2px; }

/* fluxo de caixa */
.fx-bloco { margin-bottom: 18px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fx-banco { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.fx-banco-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fx-campo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--border); }
.fx-campo.fx-principal { border-top: 0; padding-top: 0; }
.fx-campo small { color: var(--muted); font-size: 12px; }
.fx-campo.fx-principal b { font-size: 18px; }
.fx-pos { color: #15803d; } .fx-neg { color: #b91c1c; } .fx-liberar { color: #b45309; } .fx-bloq { color: var(--muted); }
[data-theme="dark"] .fx-pos { color: #4ade80; } [data-theme="dark"] .fx-neg { color: #f87171; } [data-theme="dark"] .fx-liberar { color: #fbbf24; }
.fx-pag { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.fx-pag span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.fv-legenda { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.fv-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.fv-wrap { overflow: auto; }
.fv-dre th, .fv-dre td { white-space: nowrap; }
.fv-num { text-align: right; font-variant-numeric: tabular-nums; }
.fv-grupo td { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); background: var(--card-2); padding-top: 10px; }
.fv-total td { font-weight: 700; border-top: 2px solid var(--border); }
.fv-res td { font-size: 14px; }

.pn-cd-contrato { margin-bottom: 10px; }
.aj-regras h3 { font-size: 14px; margin: 18px 0 6px; }
.aj-regras ul { margin: 0; padding-left: 18px; }
.aj-regras li { margin: 4px 0; font-size: 13.5px; line-height: 1.5; }

/* ===== MARKETING › PRODUÇÃO ===== */
.mp-fita { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.mp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mp-pill .pt { width: 7px; height: 7px; border-radius: 50%; background: var(--pcor, var(--primary)); flex: none; }
.mp-pill .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-pill .ab { font-size: 11px; color: var(--warning); font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-pill:hover { border-color: var(--muted); }
.mp-pill[aria-pressed="true"] { border-color: var(--pcor, var(--primary)); background: var(--primary-soft); }
.mp-table .mp-tit { cursor: pointer; max-width: 460px; }
.mp-table .mp-tit strong { font-weight: 600; }
.mp-link { display: block; font-size: 12px; color: var(--primary); text-decoration: none; margin-top: 2px; }
.mp-link:hover { text-decoration: underline; }
.mp-sub { font-size: 12px; color: var(--muted); }
.mp-sub-inline { font-size: 12.5px; color: var(--muted); }
.mp-quem { font-weight: 600; }
.mp-data { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-estado { font-weight: 600; }
.mp-parado { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; background: #fef3c7; color: #92400e; white-space: nowrap; vertical-align: middle; }
.mp-parado.grave { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .mp-parado { background: rgba(217, 119, 6, .2); color: #fbbf24; }
[data-theme="dark"] .mp-parado.grave { background: rgba(220, 38, 38, .2); color: #f87171; }
.cob-acoes .mp-lixo:hover { color: var(--danger); border-color: var(--danger); }
.mp-apagar-btn { margin-right: auto; color: var(--danger); }
.mp-centro { text-align: center; margin: 14px 0; }
.mp-eq-tr { cursor: pointer; }
.mp-fora { color: var(--danger); }
.mp-falta { font-size: 12.5px; color: var(--warning); }
/* quadro */
.mp-kb { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; align-items: start; }
.mp-kb-col { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 110px; }
.mp-kb-col.sobre { border-color: var(--primary); background: var(--primary-soft); }
.mp-kb-h { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.mp-kb-h .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--kcor); flex: none; }
.mp-kb-h .n { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mp-kb-c { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--pcor, var(--primary)); border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.mp-kb-c:hover { border-color: var(--muted); border-left-color: var(--pcor, var(--primary)); }
.mp-kb-c:active { cursor: grabbing; }
.mp-kb-c.arrastando { opacity: .35; }
.mp-kb-c b { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: block; }
.mp-kb-c .mp-parado { margin: 4px 0 0; }
.mp-kb-c .meta { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.mp-kb-c .meta .quem { font-weight: 600; }
.mp-kb-vazio { font-size: 11.5px; color: var(--muted); text-align: center; padding: 14px 4px; margin: 0; }
.mp-kb-mais { width: 100%; font: inherit; font-size: 11.5px; color: var(--muted); background: none; border: 1px dashed var(--border); border-radius: 8px; padding: 6px; cursor: pointer; }
.mp-kb-mais:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 1180px) { .mp-kb { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mp-kb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .mp-kb { grid-template-columns: 1fr; } }

/* ===== MARKETING › CONTEÚDO ===== */
.mk-rede-ico { display: inline-block; vertical-align: middle; border-radius: 50%; flex: none; }
.mk-cinza { color: var(--muted); }
.mk-mono { font-variant-numeric: tabular-nums; }
.mk-folder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 14px; font-size: 12.5px; }
.mk-folder .path { font-weight: 600; }
.mk-folder-ico { color: var(--muted); display: inline-flex; }
.mk-folder-sub { color: var(--muted); margin-left: auto; }
.mk-board { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.mk-col { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 120px; }
.mk-col-h { display: flex; align-items: center; gap: 8px; padding: 3px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); font-weight: 700; }
.mk-col-h i { width: 7px; height: 7px; border-radius: 50%; }
.mk-col-h b { margin-left: auto; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mk-col-vazio { font-size: 11.5px; color: var(--muted); padding: 14px 6px; text-align: center; line-height: 1.5; }
.mk-pcard { background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 11px; text-align: left; width: 100%; display: block; box-shadow: var(--shadow); cursor: pointer; }
.mk-pcard:hover { border-color: var(--muted); }
.mk-thumb { height: 62px; border-radius: 8px; margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; padding: 7px 8px; color: #fff; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.mk-pcard .fn { font-size: 12.5px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mk-pcard .pm { font-size: 11px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-chip { display: inline-flex; align-items: center; gap: 4px; }
.mk-chip-nome { font-size: 11px; color: var(--text); }
a.mk-link-post { color: var(--success); text-decoration: none; border-bottom: 1px dotted currentColor; }
.mk-ia-selo { color: var(--primary); font-weight: 600; margin-top: 7px; }
.mk-nota { margin-top: 16px; line-height: 1.5; }
.mk-tr { cursor: pointer; }
/* acervo */
.mk-acv-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mk-acv-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-fchip { font: inherit; font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: var(--card); cursor: pointer; }
.mk-fchip[aria-pressed="true"] { border-color: transparent; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.mk-acv-busca { flex: 1 1 200px; min-width: 190px; }
.mk-ordem { font-size: 11px; margin-left: auto; }
.mk-familia { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--primary-soft); border: 1px solid var(--border); border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.mk-familia .btn { margin-left: auto; }
.mk-acv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
.mk-acv { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mk-acv:hover { border-color: var(--muted); }
.mk-acv-capa { position: relative; aspect-ratio: 1 / 1; background: var(--card-2); display: block; overflow: hidden; }
.mk-acv-capa > img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.mk-acv-capa .fundo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; padding: 8px; }
.mk-acv-sel { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; color: #fff; letter-spacing: .03em; background: rgba(0, 0, 0, .62); display: inline-flex; align-items: center; gap: 5px; }
.mk-acv-dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .66); color: #fff; font-variant-numeric: tabular-nums; }
.mk-acv-corpo { padding: 11px 12px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mk-acv-tit { font-size: 12.5px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mk-acv-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-acv-meta .pt { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.mk-acv-nums { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.mk-acv-nums span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.mk-acv-nums b { font-size: 13px; font-weight: 700; }
.mk-acv-nums i { font-style: normal; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.mk-acv-nums.mk-acv-perf { margin-top: -2px; border-top: 0; padding-top: 0; }
.mk-acv-acoes { display: flex; gap: 6px; padding: 0 12px 12px; }
.mk-acv-acoes .btn { flex: 1; justify-content: center; text-decoration: none; }
.mk-perf { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.mk-perf.alto { color: #15803d; background: #dcfce7; } .mk-perf.baixo { color: #b91c1c; background: #fee2e2; }
[data-theme="dark"] .mk-perf.alto { color: #4ade80; background: rgba(22, 163, 74, .2); } [data-theme="dark"] .mk-perf.baixo { color: #f87171; background: rgba(220, 38, 38, .2); }
.mk-rep { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-2); color: var(--text); cursor: pointer; line-height: 1.25; text-align: left; align-self: flex-start; }
.mk-rep:hover, .mk-rep.orig { border-color: transparent; background: var(--primary-soft); color: var(--primary); }
/* gaveta */
.mk-drawer-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; justify-content: flex-end; }
.mk-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.mk-drawer { position: relative; width: min(1080px, 100%); height: 100%; overflow-y: auto; background: var(--card); border-left: 1px solid var(--border); padding: 22px 22px 32px; display: flex; flex-direction: column; gap: 16px; color: var(--text); }
.mk-drawer h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mk-dr-head { display: flex; align-items: flex-start; gap: 12px; }
.mk-dr-head .mk-hint a { color: var(--primary); }
.mk-fechar { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.mk-fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mk-fld label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); font-weight: 700; display: flex; align-items: center; }
.mk-fld input, .mk-fld textarea { width: 100%; font: inherit; font-size: 13.5px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2); color: var(--text); }
.mk-fld input:focus, .mk-fld textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.mk-fld textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.mk-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.mk-hint b { color: var(--text); }
.mk-lim { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-lim.perto { color: var(--warning); font-weight: 700; } .mk-lim.passou { color: var(--danger); font-weight: 700; }
.mk-ia-rasc { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; color: #b45309; background: #fef3c7; margin-left: 7px; }
[data-theme="dark"] .mk-ia-rasc { color: #fbbf24; background: rgba(217, 119, 6, .2); }
.mk-ia-btn { width: 100%; justify-content: center; gap: 7px; }
.mk-ia-linha { display: flex; gap: 8px; margin-top: 9px; align-items: stretch; flex-wrap: wrap; }
.mk-ia-linha .btn { flex: none; width: auto; white-space: nowrap; }
.mk-ia-linha input { flex: 1; min-width: 170px; }
.mk-tr-box { border: 1px solid var(--border); border-radius: 9px; background: var(--card-2); margin-bottom: 8px; }
.mk-tr-box summary { cursor: pointer; padding: 9px 11px; font-size: 12.5px; display: flex; align-items: center; gap: 7px; list-style: none; }
.mk-tr-box summary::-webkit-details-marker { display: none; }
.mk-tr-box summary span { margin-left: auto; font-size: 11px; color: var(--muted); }
.mk-tr-box[open] summary { border-bottom: 1px solid var(--border); }
.mk-tr-txt { padding: 10px 12px; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.mk-sug-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; }
.mk-sug { border: 1px solid var(--border); border-radius: 10px; background: var(--card-2); overflow: hidden; }
.mk-sug-txt { padding: 10px 12px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 80px; }
.mk-sug-txt.inteira { display: block; max-height: 260px; overflow-y: auto; }
.mk-sug-pe { display: flex; align-items: center; gap: 8px; padding: 0 12px 9px; font-size: 11px; color: var(--muted); }
.mk-sug-pe .btn { margin-left: auto; }
.mk-warn { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; border-radius: 9px; padding: 10px 12px; }
.mk-warn svg { flex: none; margin-top: 1px; }
[data-theme="dark"] .mk-warn { background: rgba(217, 119, 6, .15); color: #fde68a; border-color: rgba(217, 119, 6, .4); }
.mk-noar { display: flex; flex-direction: column; gap: 6px; }
.mk-dest { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dcor); background: color-mix(in srgb, var(--dcor) 10%, transparent); text-decoration: none; color: var(--text); }
.mk-dest b { font-size: 13px; font-weight: 600; display: block; } .mk-dest .sub { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.mk-dest .mk-ok { margin-left: auto; color: var(--success); }
.mk-dr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; align-items: start; }
.mk-dr-col { min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 900px) { .mk-dr-grid { grid-template-columns: 1fr; } }
.mk-pf-tabela { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mk-pf-linha { display: flex; align-items: center; gap: 8px; padding: 4px 8px; min-height: 38px; border-bottom: 1px solid var(--border); }
.mk-pf-linha:last-child { border-bottom: none; }
.mk-pf-linha.on { background: var(--card-2); }
.mk-pf-marca { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 4px 2px; min-width: 120px; flex: 1 1 auto; cursor: pointer; color: var(--muted); font: inherit; font-size: 12.5px; text-align: left; }
.mk-pf-marca:disabled { cursor: default; opacity: .7; }
.mk-pf-marca .box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border); flex: none; display: flex; align-items: center; justify-content: center; color: transparent; }
.mk-pf-linha.on .mk-pf-marca .box { background: var(--dcor); border-color: var(--dcor); color: #fff; }
.mk-pf-marca .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-pf-linha.on .mk-pf-marca .nome { color: var(--text); font-weight: 600; }
.mk-pf-marca .sig { font-size: 10px; letter-spacing: .06em; color: var(--muted); flex: none; }
.mk-pf-feito { font-size: 11px; color: var(--success); font-weight: 700; flex: none; }
.mk-pf-relogio { flex: none; width: 28px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mk-pf-relogio:hover { color: var(--text); border-color: var(--muted); }
.mk-pf-sub { display: flex; align-items: center; gap: 8px; padding: 0 10px 7px 32px; background: var(--card-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mk-pf-sub .rot { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; flex: none; }
.mk-pf-hora { font: inherit; font-size: 11.5px; padding: 4px 7px; flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); }
.mk-pf-aviso { font-size: 11.5px; color: var(--warning); padding: 2px 10px 6px; border-bottom: 1px solid var(--border); }
.mk-seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--border); border-radius: 7px; padding: 2px; gap: 2px; flex: none; }
.mk-seg button { font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 5px; border: none; background: none; color: var(--muted); white-space: nowrap; cursor: pointer; line-height: 1.5; }
.mk-seg button:hover:not(:disabled) { color: var(--text); }
.mk-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.mk-seg button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 620px) { .mk-pf-linha { flex-wrap: wrap; } .mk-pf-marca { flex: 1 0 100%; } }
.mk-travado { border: 1px solid #fca5a5; background: #fef2f2; border-radius: 9px; padding: 11px 13px; margin: 8px 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 9px; }
.mk-travado b { color: var(--danger); }
.mk-travado .linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mk-travado input { flex: 1; min-width: 150px; font: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); }
[data-theme="dark"] .mk-travado { background: rgba(220, 38, 38, .12); border-color: rgba(220, 38, 38, .4); }
.mk-dr-foot { margin-top: auto; display: flex; gap: 9px; padding-top: 6px; }
.mk-dr-foot .btn { flex: 1; justify-content: center; }
.mk-noar-desde { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--success); font-weight: 600; }
.mk-falta { text-align: right; margin-top: -8px; }
.mk-descartar { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mk-descartar .btn { color: var(--danger); }
@media (max-width: 1180px) { .mk-board { grid-template-columns: repeat(2, minmax(210px, 1fr)); } .mk-acv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mk-board { grid-template-columns: 1fr; } .mk-acv-kpis { grid-template-columns: 1fr 1fr; } }

/* ===== MARKETING › PROGRAMAÇÃO ===== */
.mg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mg-nav { display: flex; align-items: center; gap: 4px; }
.mg-nav .btn-icone { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; font-size: 18px; }
.mg-title { font-weight: 700; font-size: 15px; min-width: 170px; text-align: center; }
.mg-legenda { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.mg-legenda b { font-variant-numeric: tabular-nums; }
.mg-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mg-dow { background: var(--card); padding: 9px 10px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mg-day { background: var(--card); min-height: 104px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mg-day.out { background: var(--card-2); }
.mg-day.today .mg-dnum { background: var(--primary); color: #fff; border-radius: 6px; }
.mg-dtop { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.mg-dnum { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: flex-start; padding: 1px 5px; }
.mg-metr { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mg-metr .barra { font-style: normal; color: var(--muted); opacity: .55; margin: 0 3px; font-weight: 400; }
.mg-day.out .mg-metr { display: none; }
.mg-ev { font-size: 11px; padding: 4px 7px; border-radius: 6px; line-height: 1.3; border-left: 2px solid currentColor; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 11px; text-align: left; }
.mg-ev:hover { filter: brightness(1.1); }
.mg-ev.ja { display: flex; align-items: center; gap: 5px; color: var(--muted); background: var(--card-2); border-left-color: var(--border); text-decoration: none; }
.mg-ev.ja .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mg-ev.ja:hover { color: var(--text); }
.mg-ev.mais { color: var(--text); background: var(--card-2); border: 0; border-left: 2px solid var(--border); width: 100%; }
@media (max-width: 900px) { .mg-cal { grid-template-columns: repeat(7, minmax(80px, 1fr)); overflow-x: auto; } .mg-day { min-height: 80px; } }

/* ===== MARKETING › RESULTADOS ===== */
.mr-card { border-left-color: var(--border); }
.mr-card .fin-card-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mr-card .fin-card-h small { color: var(--muted); font-size: 12px; }
.mr-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.mr-grid2 .fin-card { margin-bottom: 16px; }
.mr-nota { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.mr-nota.mr-cab { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.mr-vazio { font-size: 12.5px; color: var(--muted); padding: 16px 2px; text-align: center; }
.mr-link { color: inherit; text-decoration: none; } .mr-link:hover { text-decoration: underline; }
.mr-lista { display: flex; flex-direction: column; gap: 8px; }
.mr-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.mr-item .pt { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; }
.mr-item .grow { flex: 1; }
.mr-item strong { font-variant-numeric: tabular-nums; }
.mr-item em { font-style: normal; font-weight: 600; }
.mr-barras { display: flex; align-items: flex-end; gap: 2px; height: 170px; margin-top: 6px; }
.mr-barras .gcol { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.mr-barras .gbar { width: 100%; max-width: 26px; background: var(--primary); border-radius: 4px 4px 0 0; }
.mr-barras .gcol:hover .gbar { filter: brightness(1.25); }
.mr-barras .gcol.vazio .gbar { background: var(--border); }
.mr-barras .gnum { font-size: 10.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.mr-barras .grot { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mr-barras .gcol.pico .gnum { color: var(--text); font-weight: 700; }
.mr-gente { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px 10px; align-items: center; margin-top: 2px; }
.mr-gente .gnome { font-size: 12.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mr-gente .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--pcor); flex: none; }
.mr-gente .trilho { height: 11px; background: var(--card-2); border-radius: 4px; }
.mr-gente .fill { height: 11px; background: var(--pcor); border-radius: 0 4px 4px 0; min-width: 2px; }
.mr-gente .v { font-size: 12px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.mr-gente .v i { font-style: normal; color: var(--warning); font-size: 11px; }
.mr-trilho { height: 8px; background: var(--card-2); border-radius: 4px; overflow: hidden; min-width: 60px; }
.mr-fill { height: 8px; background: var(--primary); border-radius: 4px; }
.mr-inp { width: 120px; text-align: right; }
.mr-ed td { background: var(--primary-soft); }
