:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --border: #e2e5ea;
    --text: #1d2330;
    --muted: #6b7385;
    --primary: #128c7e;
    --primary-dark: #0d6e63;
    --danger: #c0392b;
    --warning-bg: #fff6e0;
    --warning-border: #f0c36d;
    --radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--primary-dark); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
code { background: #eef1f4; padding: .1em .35em; border-radius: 4px; }
pre { background: #1f2430; color: #e6e6e6; padding: 12px; border-radius: var(--radius); overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: .85em; }
.nowrap { white-space: nowrap; }
.text-bad { color: var(--danger); }
.accent { color: var(--primary); }

/* Topo */
.topbar { display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; background: #1f2430; color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.topbar .brand span { color: #25d366; }
.topbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.topbar nav a { color: #c9cfdb; text-decoration: none; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a.active { background: #2e3545; color: #fff; }
.topbar .user { color: #c9cfdb; font-size: .9rem; white-space: nowrap; }
.topbar .user a { color: #fff; }

.container { max-width: 1280px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: .75rem; }
.page-head h1, .page-head h2 { margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.subpanel { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.danger-zone { border-color: #f1c8c3; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .container { padding: 16px; } }

/* Formulários */
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
label .muted { font-weight: normal; font-size: .85em; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: normal; }
label.compact { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: normal; margin: 0; }
label.danger { color: var(--danger); }
input, select, textarea { font: inherit; font-weight: normal; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 6px; background: #fff; width: 100%; color: var(--text); }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(18, 140, 126, .25); border-color: var(--primary); }
.w-xs { width: 80px; }
.w-sm { width: 140px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.inline input { width: auto; min-width: 240px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 200px; }
.days { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font-weight: normal; }
.radio-card span { color: var(--muted); font-size: .9em; }
.radio-card:has(input:checked) { border-color: var(--primary); background: #f0faf8; }

.btn { display: inline-block; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: 1px solid #cfd4dc; background: #fff; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #f1f3f6; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e6b3ad; }
.btn-danger:hover { background: #fdf0ee; }
.btn-small { padding: 4px 10px; font-size: .85rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 16px 0 8px; text-align: right; }

/* Tabelas */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table.kv th { width: 180px; text-transform: none; font-size: .9rem; letter-spacing: 0; }
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.pagination a, .pagination .current { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Alertas e selos */
.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid; }
.alert pre { margin: 8px 0 0; }
.alert-success { background: #eaf7ef; border-color: #a9dcbc; }
.alert-error { background: #fdeeee; border-color: #f0b4b4; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); }
.alert-info { background: #eaf2fd; border-color: #b0cbf2; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #e9ecf1; color: #4a5263; vertical-align: middle; }
.badge-active { background: #e1f5ee; color: #0d6e63; }
.badge-completed { background: #e6eefc; color: #2851a3; }
.badge-stopped { background: #f1ede4; color: #7a5b18; }
.badge-failed, .badge-ev-failed, .badge-delivery-failed { background: #fbe4e2; color: #a3281c; }
.badge-ev-sent, .badge-delivery-delivered, .badge-delivery-read { background: #e1f5ee; color: #0d6e63; }
.badge-ev-skipped, .badge-ev-stopped { background: #f1ede4; color: #7a5b18; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #e9ecf1; font-size: .85rem; margin: 0 6px 6px 0; }
.pill-ok { background: #e1f5ee; color: #0d6e63; }
.pill-off { background: #f6e9e7; color: #a3281c; }
.integrations { margin-bottom: 14px; }

/* Cards do painel */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.card strong { font-size: 1.6rem; }
.card span { color: var(--muted); font-size: .9rem; }
.card-alert { border-color: #f0b4b4; background: #fff7f6; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline.compact li { padding: 7px 0; font-size: .9rem; }
.timeline details pre { margin-top: 6px; }

/* Mensagens da régua */
.step { border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; background: #fcfdfd; }
.step-inactive { border-left-color: #b8bfca; opacity: .75; }
.step-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.step-head input[type=number] { width: 80px; }
.step-head select { width: auto; }
details.advanced, details.help { margin: 4px 0 10px; }
details summary { cursor: pointer; color: var(--primary-dark); font-weight: 600; }
.copy { cursor: pointer; word-break: break-all; }
.copy.big { font-size: 1rem; padding: 6px 10px; display: inline-block; }
.copy.copied { background: #d7f3e6; }
.checklist { list-style: none; padding: 0; }
.checklist .ok { color: #0d6e63; }
.checklist .bad { color: var(--danger); }
.preview { margin-top: 16px; }
.bubble { background: #dcf8c6; border-radius: 10px; padding: 10px 14px; max-width: 560px; white-space: normal; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }

/* Login / instalação */
.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; width: 100%; max-width: 380px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { margin-bottom: 1.25rem; }

/* Funis: mapeamento, etiquetas, etapas, cadência */
.badge-replied, .badge-ev-replied { background: #e3f0ff; color: #1d4f91; }
.badge-lost, .badge-ev-lost { background: #efe7f7; color: #5b2d86; }
.field-block { margin: 6px 0 14px; }
.field-label { display: block; font-size: .9rem; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chip { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; font-weight: normal; font-size: .88rem; cursor: pointer; background: #fff; }
.chip:has(input:checked) { border-color: var(--primary); background: #f0faf8; }
table.mapping th { width: 220px; text-transform: none; font-size: .9rem; letter-spacing: 0; color: var(--text); }
table.mapping thead th { text-transform: uppercase; font-size: .8rem; color: var(--muted); }
table.mapping td { vertical-align: middle; }
table.mapping .map-example { color: var(--muted); max-width: 320px; overflow-wrap: anywhere; }
.w-time { width: 120px; }
.step-lose { border-left-color: #8e5bc0; }
.step-head .day { font-weight: 700; font-size: 1rem; }
.lose-info { margin: 0 0 6px; }
h4 { margin: 14px 0 6px; font-size: .95rem; }
.tpl-preview { max-width: none; min-height: 62px; font-size: .92rem; line-height: 1.45; }
.tpl-preview mark { background: rgba(18, 140, 126, .18); color: inherit; border-radius: 3px; padding: 0 2px; }
.tpl-body-box { margin-top: 8px; }
.tpl-body-box textarea { margin-top: 6px; }
.tpl-meta { font-weight: normal; }

/* Abas do funil */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin: 6px 0 18px; position: sticky; top: 56px; background: var(--bg); z-index: 5; padding-top: 6px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 6px 6px 0 0; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: #eef1f4; }
.tabs a.active { color: var(--primary-dark); border-bottom-color: var(--primary); background: var(--surface); }
.align-end { align-self: end; margin-bottom: 18px; }
[hidden] { display: none !important; }
#extras td:nth-child(3) { min-width: 260px; }
#extras td:nth-child(2) input { min-width: 140px; }
table.mapping .map-example { display: table-cell; }
table.mapping .map-example { overflow: hidden; }
.badge-duplicate, .badge-ev-duplicate { background: #fff1d6; color: #8a5a00; }
.group-preview { max-width: none; font-size: .9rem; margin-top: 4px; }
#extras select.pd-target { min-width: 170px; }
.table-scroll { overflow-x: auto; }
#extras { min-width: 980px; }
#extras td:first-child input { min-width: 170px; }
#extras td.map-example { white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.email-step { border-top: 1px dashed var(--border); margin: 10px 0 6px; padding-top: 10px; }
.email-step > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.email-step[open] > summary { margin-bottom: 8px; }
.step-section { margin: 0 0 10px; font-size: .95rem; }
/* Cadência: um dia por aba */
.day-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; margin: 14px 0 12px; }
.day-tabs-list { display: contents; }
.day-tab { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 14px; min-width: 84px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.day-tab:hover { border-color: #cfd5de; }
.day-tab b { font-size: .95rem; }
.day-tab small { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.day-tab.active { border-color: var(--primary); background: #f2faf8; box-shadow: inset 0 -3px 0 var(--primary); }
.day-tab.is-off { opacity: .6; }
.day-tab.is-lose { border-left: 3px solid #8e5bc0; }
.day-tab.is-removed b { text-decoration: line-through; color: var(--danger); }
.day-tab-add { align-items: center; border-style: dashed; color: var(--primary-dark); font-weight: 600; }
.email-preview { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.email-preview-subject { font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #f7f8fa; }
.email-preview-body { padding: 12px; font-size: .92rem; line-height: 1.5; min-height: 80px; }
.note-preview { border: 1px solid var(--border); border-radius: var(--radius); background: #fffdf2; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; max-height: 420px; overflow: auto; }
.pd-cell { min-width: 230px; }
.pd-map-box { margin-top: 6px; }
.pd-map-box textarea { font-size: .8rem; }
.pd-hint { display: block; font-size: .78rem; margin-top: 4px; }
.pd-hint.ok { color: #0d6e63; }
.pd-hint.bad { color: #a3281c; }
.pd-options { display: block; margin-top: 3px; line-height: 1.3; }
#fixed-values { min-width: 700px; }
.pd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0 14px; }
@media (max-width: 900px) { .pd-steps { grid-template-columns: 1fr; } }
.pd-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: #fbfcfd; }
.pd-card h4 { margin: 0 0 8px; }
.fixed-cell select[multiple] { min-width: 280px; }
.fixed-cell { min-width: 300px; }
.pd-refresh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.email-frame { width: 100%; height: 560px; border: 1px solid var(--line, #e3e6eb); border-radius: 10px; background: #f3f5f8; }

/* Painel: relatório por semana / mês / ano */
.report-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.report-filters select { width: auto; max-width: 100%; }
.report-filters .check { margin: 0; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.segmented a { padding: 6px 14px; text-decoration: none; color: var(--text); font-size: .92rem; border-right: 1px solid var(--border); }
.segmented a:last-child { border-right: 0; }
.segmented a.on { background: var(--primary); color: #fff; }
.period-nav { display: inline-flex; align-items: center; gap: 8px; }
.report-title { font-size: 1.15rem; margin: 4px 0 12px; }
.kpis .card strong small { font-size: .9rem; color: var(--primary-dark); font-weight: 600; }
.kpi-good { border-color: #b7e0d9; background: #f3fbf9; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 6px 0 18px; }
.chart-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: #fff; min-height: 300px; display: flex; flex-direction: column; }
.chart-box.wide { grid-column: 1 / -1; min-height: 320px; }
.chart-box h3 { margin: 0 0 8px; font-size: .95rem; }
.chart-box canvas { flex: 1; min-height: 240px; max-height: 300px; }
.report-table { width: 100%; margin-bottom: 14px; }
.report-table tr.total td { font-weight: 600; border-top: 2px solid var(--border); }
.leads-table td { vertical-align: top; }
.badge-invalid { background: #fdecea; color: #a52714; }
.badge-invalid.badge, .badge.badge-invalid { white-space: nowrap; }
@media (max-width: 640px) { .chart-box.wide { min-height: 280px; } .period-nav strong { font-size: .92rem; } }
.w-md { width: 280px; max-width: 100%; }

.pd-now { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.pd-now-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.pd-now-head h3 { margin: 0; }
.report-table td.num, .report-table th.num { text-align: right; white-space: nowrap; }
.badge-pd-open { background: #e3f0ff; color: #1d4f91; }
.badge-pd-won { background: #dff5ef; color: #0d6e63; }
.badge-pd-lost { background: #efe7f7; color: #5b2d86; }
.badge-pd-deleted, .badge-pd-none { background: #eef1f4; color: #6b7385; }
.badge-spam { background: #f1f1f1; color: #8a8a8a; text-decoration: line-through; }
.text-good { color: #0d6e63; }

/* Lista de funis */
.flow-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 4px 0 16px; }
.flow-filters label { margin: 0; font-size: .82rem; color: var(--muted); }
.flow-filters select { min-width: 190px; }
.flow-filters [data-filter-count] { padding-bottom: 8px; }
.flow-list { display: flex; flex-direction: column; gap: 12px; }
.flow-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; transition: box-shadow .15s, border-color .15s; }
.flow-card:hover { border-color: #cfd5de; box-shadow: 0 2px 10px rgba(20, 30, 50, .06); }
.flow-card.is-off { background: #fafbfc; }
.flow-card.is-off .flow-name { color: var(--muted); }
.flow-card.dragging { opacity: .5; border-style: dashed; border-color: var(--primary); box-shadow: none; }
.flow-main { flex: 1; min-width: 0; }
.flow-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow-name { font-size: 1.18rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.flow-name:hover { color: var(--primary-dark); }
.flow-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 6px; color: var(--muted); font-size: .92rem; }
.flow-meta span + span::before { content: '·'; margin: 0 10px; color: #c3c9d3; }
.flow-meta em { font-style: normal; color: #b0b6c2; }
.flow-meta .meta-strong { color: var(--primary-dark); font-weight: 600; }
.flow-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Donos do funil (chave "Mostrar donos"): WhatsApp/Woot, e-mail e Pipedrive */
.flow-owners { display: none; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flow-list.show-owners .flow-owners { display: flex; }
.owner-item { display: flex; flex-direction: column; gap: 1px; min-width: 190px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; font-size: .88rem; }
.owner-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.owner-value { font-weight: 600; color: var(--text); }
.owner-extra { font-size: .8rem; color: var(--muted); }
.owner-item.is-diff, .owner-item.is-missing { background: var(--warning-bg); border-color: var(--warning-border); }
.owner-item.is-missing .owner-value { color: #8a5a00; font-weight: 500; font-style: italic; }
.badge-owner-warn { background: var(--warning-bg); color: #8a5a00; border: 1px solid var(--warning-border); }
.flow-filters .owners-toggle { align-self: center; margin-left: 4px; font-size: .88rem; }
.flow-filters .owners-toggle .switch-label { min-width: 0; }
.drag-handle { cursor: grab; color: #b9c0cb; font-weight: 700; letter-spacing: -2px; user-select: none; font-size: 1.1rem; padding: 4px 2px; }
.flow-card:hover .drag-handle { color: var(--muted); }
.sort-hint { margin: 14px 2px 0; }
.sort-status { color: var(--primary-dark); font-weight: 600; }
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; cursor: pointer; flex-shrink: 0; font-weight: 600; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 99px; background: #cfd5de; transition: background .15s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .6; }
.switch-label { min-width: 52px; color: var(--muted); }
.switch input:checked ~ .switch-label { color: var(--primary-dark); }
@media (max-width: 760px) {
  .flow-card { flex-wrap: wrap; padding: 16px; }
  .flow-actions { width: 100%; justify-content: flex-end; }
}

/* Origem dos leads */
.period-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ads-panel .page-head { margin-bottom: 8px; }
.ads-panel .page-head h2 { margin: 0; }
.ads-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.ads-cards .card strong { font-size: 1.35rem; margin: 2px 0; }
.ads-var { font-size: .8rem; color: var(--muted); }
.ads-var.good { color: #0d6e63; }
.ads-var.bad { color: var(--danger); }
.ads-form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ads-form input { min-width: 0; }
.report-table tr.row-best td { background: #f3fbf9; font-weight: 600; }
.report-table tr.muted td { color: var(--muted); }
details.panel > summary { cursor: pointer; font-weight: 600; }
.pulsinc-notas { margin: 6px 0 0; padding-left: 18px; color: var(--text); }
.pulsinc-notas li { margin: 4px 0; }

/* Topo: perfil */
.topbar .role-tag { background: #2e3545; color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.topbar .user-name { color: #c9cfdb !important; text-decoration: none; }
.w-auto { width: auto !important; min-width: 0 !important; }
.inline-details { display: inline-block; position: relative; }
.inline-details > summary { list-style: none; display: inline-block; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > form { position: absolute; right: 0; z-index: 10; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; width: 240px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
