/* ===================== Tela de LOGIN ===================== */
#loginTela { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
#loginTela::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(233,30,122,.15), transparent 70%); top: -120px; right: -100px; pointer-events: none; }
#loginTela::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(233,30,122,.08), transparent 70%); bottom: -100px; left: -80px; pointer-events: none; }
.login-box { position: relative; width: min(400px, 90vw); padding: 40px 32px 30px; border-radius: 20px; background: #0a0a0a; border: 1px solid rgba(233,30,122,.15); box-shadow: 0 0 80px rgba(233,30,122,.06), 0 24px 60px rgba(0,0,0,.6); }
.login-marca { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 4px; }
.login-logo { width: 72px; height: 72px; filter: drop-shadow(0 4px 20px rgba(233,30,122,.3)); }
.login-nome { text-align: center; line-height: 1; }
.login-nome strong { display: block; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: .04em; }
.login-nome span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #e91e7a; margin-top: 3px; }
.login-sub { text-align: center; color: #555; font-size: 13px; margin: 10px 0 28px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-campo { display: flex; flex-direction: column; gap: 5px; }
.login-campo span { font-size: 12px; font-weight: 600; color: #777; letter-spacing: .02em; }
.login-campo input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #1a1a1a; background: #0f0f0f; color: #e4e4e7; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-campo input::placeholder { color: #3a3a3a; }
.login-campo input:focus { border-color: #e91e7a; box-shadow: 0 0 0 3px rgba(233,30,122,.12); }
.login-senha-wrap { position: relative; }
.login-senha-wrap input { width: 100%; padding-right: 42px; }
.login-ver { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #555; padding: 6px; display: grid; place-items: center; transition: color .15s; }
.login-ver:hover { color: #e91e7a; }
.login-ver .icone { width: 18px; height: 18px; }
.login-erro { color: #ff4d6a; font-size: 13px; min-height: 18px; text-align: center; margin: 0; }
.login-btn { width: 100%; padding: 13px; border-radius: 10px; border: none; background: #e91e7a; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 6px 24px rgba(233,30,122,.3); letter-spacing: .02em; }
.login-btn:hover { background: #d4186e; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(233,30,122,.4); }
.login-btn:disabled { opacity: .5; cursor: wait; transform: none; }
.login-rod { display: block; text-align: center; color: #2a2a2a; font-size: 11px; margin-top: 22px; letter-spacing: .04em; }

/* Ajustes só do PainelWeb (site), por cima do visual.css/perfil.css herdados do app.
   O app desktop tinha uma barra de título de 34px; aqui não existe, então zeramos. */
body.web { --titulo-h: 0px; padding-top: 0; }
body.web .lateral { top: 0 !important; height: 100vh !important; }
body.web .topo-celular { top: 0 !important; }

/* Pé da lateral: um selinho discreto no lugar do botão "Novo perfil" do app */
.pe-web { padding: 14px 16px 16px; border-top: 1px solid rgba(255,255,255,.06); }
.pe-user { display: flex; flex-direction: column; gap: 5px; }
.pe-nome {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -.01em; line-height: 1;
}
.pe-cargo {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cargo-cor, #e91e7a); line-height: 1;
}
.pe-cargo::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cargo-cor, #e91e7a);
  box-shadow: 0 0 5px var(--cargo-cor, #e91e7a);
  flex: none;
}

/* Mais largura de trabalho no site (o app era mais estreito) */
body.web .principal { max-width: 1680px; }

/* ===================== SITES RÁPIDOS ===================== */
.rs-wrap { max-width: 820px; }
.rs-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.rs-cab-txt h1 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: #fff; margin: 0; }
.rs-cab-txt h1 .icone { width: 20px; height: 20px; color: var(--acento, #9333ea); }
.rs-cab-txt p { font-size: 13px; color: var(--tinta-2); margin: 3px 0 0; }
.rs-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--linha); margin-bottom: 18px; }
.rs-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--tinta-2); cursor: pointer; margin-bottom: -1px; transition: color .15s, border-color .15s; display: flex; align-items: center; gap: 6px; }
.rs-tab.ativo { color: #fff; border-bottom-color: var(--acento, #9333ea); }
.rs-tab:not(.ativo):hover { color: var(--tinta); }
.rs-tab-ct { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(147,51,234,.18); color: var(--acento, #9333ea); font-size: 10px; font-weight: 800; }
/* busca */
.rs-busca-wrap { display: flex; align-items: center; gap: 10px; background: #141417; border: 1px solid var(--linha); border-radius: 11px; padding: 0 14px; margin-bottom: 16px; }
.rs-busca-ic .icone { width: 15px; height: 15px; color: var(--tinta-2); flex: none; }
.rs-busca { flex: 1; height: 42px; border: 0; background: none; color: var(--tinta); font: inherit; font-size: 14px; outline: none; }
.rs-busca::placeholder { color: var(--apagado); }
/* lista de sites */
.rs-lista { display: flex; flex-direction: column; gap: 8px; }
.rs-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 13px; background: #0e0e10; border: 1px solid var(--linha); transition: border-color .15s; }
.rs-item:hover { border-color: rgba(147,51,234,.25); }
.rs-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-item-nome { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-item-ativ { font-size: 12px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-item-url { font-size: 12px; color: var(--acento, #9333ea); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rs-item-url:hover { text-decoration: underline; }
.rs-item-acoes { display: flex; align-items: center; gap: 6px; flex: none; }
.rs-pil { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
/* domínios */
.rs-dom-add { display: flex; gap: 10px; margin-bottom: 16px; }
.rs-dom-add input { flex: 1; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--linha); background: #141417; color: var(--tinta); font: inherit; font-size: 14px; outline: none; transition: border-color .15s; }
.rs-dom-add input:focus { border-color: var(--acento, #9333ea); }
.rs-dom-lista { display: flex; flex-direction: column; gap: 8px; }
.rs-dom-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 13px; background: #0e0e10; border: 1px solid var(--linha); }
.rs-dom-globo .icone { width: 16px; height: 16px; color: var(--acento, #9333ea); flex: none; }
.rs-dom-info { flex: 1; min-width: 0; }
.rs-dom-info strong { display: block; font-size: 14px; color: #fff; }
.rs-dom-info small { font-size: 11px; color: var(--tinta-2); }
/* modal */
.rs-janela { width: min(620px, 95vw); }
.rs-corpo { display: flex; flex-direction: column; gap: 14px; }
.rs-cnpj-row { display: flex; gap: 10px; align-items: flex-end; }
.rs-cnpj-campo { flex: 1; }
.rs-cnpj-row .btn { height: 44px; white-space: nowrap; flex: none; }
.rs-erro { font-size: 13px; color: #f87171; margin: -6px 0 0; }
.rs-url-preview { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(147,51,234,.06); border: 1px solid rgba(147,51,234,.14); }
.rs-url-label { font-size: 12px; color: var(--tinta-2); white-space: nowrap; }
.rs-url-val { flex: 1; font-size: 13px; font-weight: 600; color: var(--acento, #9333ea); word-break: break-all; }
.rs-status-opts { display: flex; gap: 14px; flex-wrap: wrap; }
.rs-st-opt { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.rs-st-opt input { accent-color: var(--acento, #9333ea); width: 15px; height: 15px; cursor: pointer; }
@media (max-width: 600px) { .rs-item { flex-direction: column; align-items: flex-start; } .rs-item-acoes { width: 100%; justify-content: flex-end; } .rs-cnpj-row { flex-direction: column; } }

.bms-tela { max-width: none; }
.bms-cab { margin-bottom: 12px; }

/* ===================== BMs em modo PLANILHA ===================== */
/* Caixa única: barra de ferramentas + planilha, com uma borda só (parece uma folha). */
.bms-box { border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; background: var(--superficie); }

/* Barra de ferramentas embutida (busca + período + Lançar), colada em cima do cabeçalho */
.bms-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 10px; background: #202024; border-bottom: 1px solid var(--linha); }
.bms-tb-busca { flex: 1 1 220px; width: auto; max-width: 340px; height: 34px; }
.bms-tb-periodos { flex: none; }
.bms-tb-datas { height: 34px; padding: 3px 6px 3px 10px; }
.bms-tb-datas input { height: 28px; }
.bms-tb-lancar { height: 34px; padding: 0 14px; margin-left: auto; }
.bms-tb-lancar .icone { width: 15px; height: 15px; }
@media (max-width: 760px) { .bms-tb-lancar { margin-left: 0; } }
/* Lado direito da barra (Perfis: Novo grupo + Adicionar perfil) */
.bms-tb-dir { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bms-tb-dir .bms-tb-lancar { margin-left: 0; }
.bms-tb-grupo { height: 34px; padding: 0 12px; }
.bms-tb-dir .btn .icone { width: 15px; height: 15px; }

/* Células da planilha de Perfis (reaproveita o estilo das BMs) */
.bms-planilha .pf-c { text-align: center; }
.bms-planilha .pf-login .bmt-id, .bms-planilha .pf-senha .bmt-id { width: 100%; justify-content: space-between; font-size: 11.5px; padding: 3px 6px; }
.bms-planilha .pf-badge-2fa { font-size: 10px; padding: 2px 7px; }
.bms-planilha .pf-bms-n { min-width: 22px; height: 20px; font-size: 11.5px; }
.bms-planilha .pf-acoes-td { white-space: nowrap; text-align: right; }
.bms-planilha .pf-acoes-td .btn-icone { width: 28px; height: 28px; }
.bms-planilha .pf-acoes-td .btn-icone .icone { width: 15px; height: 15px; }

/* Planilha rolável por dentro da caixa; cabeçalho fixo logo abaixo da barra. */
.bms-box .tp { max-height: calc(100vh - 186px); overflow: auto; background: var(--superficie); }
.bms-box .tp::-webkit-scrollbar { width: 11px; height: 11px; }
.bms-box .tp::-webkit-scrollbar-thumb { background: #3a3a42; border-radius: 6px; border: 3px solid var(--superficie); }

.bms-planilha { table-layout: fixed; width: 100%; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
/* Colunas novas das BMs: data de verificação e ações */
.bms-planilha .bms-verif { text-align: center; font-variant-numeric: tabular-nums; color: var(--tinta-2); }
.bms-planilha .bms-acoes-td { white-space: nowrap; text-align: right; }
.bms-planilha .bms-acoes-td .btn-icone { width: 26px; height: 26px; }
.bms-planilha .bms-acoes-td .btn-icone .icone { width: 14px; height: 14px; }
/* Grade: borda à direita e embaixo de toda célula */
.bms-planilha th, .bms-planilha td { border-right: 1px solid var(--linha-suave); border-bottom: 1px solid var(--linha-suave); padding: 0 8px; height: 31px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: middle; }
.bms-planilha th:last-child, .bms-planilha td:last-child { border-right: 0; }
.bms-planilha tbody tr:last-child td { border-bottom: 0; }
/* Cabeçalho fixo */
.bms-planilha thead th { position: sticky; top: 0; z-index: 3; overflow: visible; background: #202024; color: var(--tinta-2); text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; border-bottom: 1px solid var(--linha); user-select: none; }
.bms-planilha .col-tit { display: block; overflow: hidden; text-overflow: ellipsis; }
.bms-planilha .tp-n { text-align: center; color: var(--apagado); padding: 0 4px; }
/* Pegador de redimensionar coluna (arrasta a borda direita do cabeçalho) */
.bms-planilha .col-rz { position: absolute; top: 0; right: -1px; width: 9px; height: 100%; cursor: col-resize; z-index: 4; }
.bms-planilha .col-rz:hover { background: linear-gradient(90deg, transparent, rgba(77, 134, 255, .55)); }
body.col-resizing { cursor: col-resize !important; user-select: none; }
body.col-resizing * { cursor: col-resize !important; }
/* Zebra + hover (feição de planilha) */
.bms-planilha tbody tr:nth-child(2n) td { background: rgba(255, 255, 255, .014); }
.bms-planilha tbody tr:hover td { background: rgba(77, 134, 255, .07); }

/* Conteúdo das células encolhido pra caber */
.bms-planilha .bmt-perfil { max-width: none; width: 100%; min-width: 0; gap: 7px; }
.bms-planilha .bmt-perfil .pf-av { width: 20px; height: 20px; font-size: 9.5px; flex: none; }
.bms-planilha .bmt-perfil strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bms-planilha .bmt-perfil small { flex: none; }
.bms-planilha .bms-perfil-nome { color: var(--tinta); font-weight: 600; }
.bms-quem, .bms-nome { color: var(--tinta-2); }
.bms-nome span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bms-planilha .bmt-id { width: 100%; justify-content: space-between; font-size: 11.5px; padding: 3px 6px; }
/* Status/Disparos/Situação preenchem a célula, viram "célula colorida" clicável */
.bms-planilha .bms-st-btn { width: 100%; justify-content: flex-start; padding: 0; }
.bms-planilha .bms-st { width: 100%; justify-content: flex-start; border-radius: 4px; font-size: 11px; padding: 3px 7px; }
.bms-planilha .bms-st-chev { display: none; }
.bms-planilha .bmi-btn, .bms-planilha .bmi-vazio { width: 100%; }
.bms-planilha .bmi-data { font-size: 11px; }
.bms-planilha .bmi-btn small { display: none; }  /* o "há X dias" sai pra economizar espaço */

/* Modal "Lançar BM" */
.lan-janela { width: min(700px, 94vw); max-width: 700px; }
.lan-corpo { display: flex; flex-direction: column; gap: 15px; max-height: 72vh; overflow: auto; }
.lan-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lan-grade .lan-largo { grid-column: 1 / -1; }
.lan-campo { display: flex; flex-direction: column; gap: 8px; }
.lan-rot { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--apagado); }
.lan-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lan-chip { padding: 0; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; opacity: .48; transition: opacity .12s, border-color .12s, background .12s; }
.lan-chip:hover { opacity: .82; }
.lan-chip.sel { opacity: 1; border-color: rgba(107, 155, 255, .5); background: rgba(77, 134, 255, .1); }
.lan-inicio input { color-scheme: dark; }
.lan-janela .janela-topo h2 { display: inline-flex; align-items: center; gap: 9px; }
.lan-janela .janela-topo .icone { width: 19px; height: 19px; color: var(--acento-forte); }

/* Dropdown customizado de perfil no Lançar BM */
.lan-perfil-wrap { position: relative; }
.lan-perfil-dd { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; max-height: 220px; overflow-y: auto; background: var(--superficie); border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.35); margin-top: 4px; padding: 4px; }
.lan-perfil-dd.open { display: block; }
.lan-perfil-op { padding: 9px 12px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--tinta-2); transition: background .1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lan-perfil-op:hover { background: rgba(139, 92, 246, .12); color: #fff; }

/* ===================== Aba PERFIS ===================== */
.pf-cab-acoes { display: flex; gap: 10px; align-items: center; }
.pf-grupos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 14px; }
.pf-gchip { display: inline-flex; align-items: center; gap: 7px; height: 34px; }
.pf-gchip .gp-emoji { font-size: 14px; }
.pf-gchip-n { font-size: 11px; font-weight: 700; color: var(--apagado); background: rgba(255, 255, 255, .06); padding: 1px 7px; border-radius: 999px; }
.pf-gchip.ativo .pf-gchip-n { color: #dbe6ff; background: rgba(77, 134, 255, .25); }
.pf-grupo-geren { display: inline-flex; align-items: center; margin-left: 2px; }
.pf-busca { max-width: 420px; height: 42px; margin-bottom: 14px; }

.pf-tabela td, .pf-tabela th { vertical-align: middle; }
.pf-tabela .pf-c { text-align: center; }
.pf-tabela .pf-nome-td { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tabela .pf-nome-td strong { color: var(--tinta); font-weight: 600; }
.pf-tabela .bmt-perfil { max-width: 260px; }
.pf-tabela .bmt-perfil strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-login .bmt-id { max-width: 260px; }
.pf-badge-2fa { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: #4ade80; background: rgba(55, 208, 122, .12); padding: 4px 10px 4px 7px; border-radius: 8px; border: 1px solid rgba(55, 208, 122, .22); cursor: pointer; transition: background .14s, border-color .14s, box-shadow .14s; }
.pf-badge-2fa:hover { background: rgba(55, 208, 122, .22); border-color: rgba(55, 208, 122, .45); box-shadow: 0 0 10px rgba(55, 208, 122, .12); }
.pf-badge-2fa.copiado { background: rgba(55, 208, 122, .35); border-color: #4ade80; }
.pf-2fa-ico { width: 12px; height: 12px; flex: none; }
.pf-grp { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tinta-2); }
.pf-grp .gp-emoji { font-size: 14px; }
.pf-bms-n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--tinta); background: rgba(255, 255, 255, .06); }
.pf-obs-flag { color: var(--apagado); }
.pf-obs-flag .icone { width: 16px; height: 16px; }
.pf-acoes-td { white-space: nowrap; }
.pf-acoes-td .btn-icone { width: 32px; height: 32px; }

/* Modal de perfil */
.pf-janela { width: min(560px, 94vw); max-width: 560px; }
.pf-janela .janela-topo { padding: 20px 24px 16px; flex-direction: column; align-items: stretch; gap: 14px; border-bottom: 1px solid var(--linha-suave); }
.pf-janela .janela-topo h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pf-janela .janela-topo h2 .icone { width: 20px; height: 20px; color: var(--acento-forte); }
.pf-corpo { display: flex; flex-direction: column; gap: 16px; max-height: 65vh; overflow-y: auto; padding: 20px 24px !important; }
.pf-dois { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-dica { font-size: 13px; color: var(--tinta-2); margin: 0; line-height: 1.55; padding: 10px 14px; border-radius: 10px; background: rgba(147,51,234,.06); border: 1px solid rgba(147,51,234,.12); }
.pf-dica code { background: rgba(255, 255, 255, .08); padding: 2px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.pf-lote { width: 100%; box-sizing: border-box; min-height: 180px; resize: vertical; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linha); background: #141417; color: var(--tinta); font: inherit; font-size: 13px; line-height: 1.65; outline: none; transition: border-color .15s, box-shadow .15s; }
.pf-lote:focus { border-color: #7c5cf0; box-shadow: 0 0 0 3px rgba(124,92,240,.15); }
.pf-select-nativo { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: #141417; color: var(--tinta); font: inherit; font-size: 14px; color-scheme: dark; outline: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pf-select-nativo:focus { border-color: #7c5cf0; box-shadow: 0 0 0 3px rgba(124,92,240,.15); }
.pf-janela .pf-modo { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #141417; border: 1px solid var(--linha); }
.pf-janela .pf-modo-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 18px; border: 0; border-radius: 9px; background: none; color: var(--tinta-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.pf-janela .pf-modo-btn .icone { width: 14px; height: 14px; opacity: .6; transition: opacity .18s; }
.pf-janela .pf-modo-btn.ativo { background: var(--acento); color: #fff; box-shadow: 0 2px 8px rgba(147,51,234,.35); }
.pf-janela .pf-modo-btn.ativo .icone { opacity: 1; }
.pf-janela .pf-modo-btn:not(.ativo):hover { background: rgba(255,255,255,.04); }
.pf-janela .janela-rodape { padding: 16px 24px 20px; }
.pf-janela .janela-rodape .btn { height: 40px; padding: 0 20px; font-weight: 600; }
.pf-sep { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--acento, #9333ea); margin: 18px 0 2px; padding: 10px 0 6px; border-top: 1px solid var(--linha); }
@media (max-width: 600px) { .pf-dois { grid-template-columns: 1fr; } .pf-corpo { padding: 16px !important; } .pf-janela .janela-topo { padding: 16px 16px 14px; } .pf-janela .janela-rodape { padding: 14px 16px 16px; } }

/* ============= Grupos colapsáveis na planilha ============= */
.pf-grupo-row { cursor: pointer; user-select: none; }
.pf-grupo-row > td { padding: 0 !important; }
.pf-grupo-row > td > * { display: inline; }
.pf-grupo-row td { background: #18171e; border-bottom: 1px solid var(--linha-suave); height: 42px; vertical-align: middle; padding: 0 12px !important; }
.pf-grupo-row:hover td { background: #1e1d26; }
.pf-grupo-seta { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 6px; }
.pf-grupo-seta .icone { width: 15px; height: 15px; color: var(--apagado); transition: transform .15s; }
.pf-grupo-ico { font-size: 15px; margin-right: 8px; vertical-align: middle; }
.pf-grupo-nome { font-size: 13.5px; font-weight: 650; color: var(--tinta); vertical-align: middle; }
.pf-grupo-qtd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; margin-left: 8px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 11.5px; font-weight: 600; color: var(--apagado); vertical-align: middle; }
.pf-grupo-acoes { float: right; margin-right: 4px; display: inline-flex; gap: 2px; }
.pf-grupo-acoes .btn-icone { opacity: 0; transition: opacity .15s; }
.pf-grupo-row:hover .pf-grupo-acoes .btn-icone { opacity: 1; }
/* grupos arquivados */
.pf-grupo-arq td { background: #141319; opacity: .62; }
.pf-grupo-arq:hover td { background: #1a1920; opacity: 1; }
.pf-grupo-tag-arq { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 9px; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--apagado); vertical-align: middle; }
.pf-arq-divisor td { background: #100f14 !important; height: 34px !important; color: var(--apagado); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pf-arq-divisor td > svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.bms-tb-arq.ativo { border-color: var(--acento); color: var(--tinta); background: var(--acento-suave); }
.pf-arq-ct { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 17px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 10.5px; font-weight: 700; }

/* ============= Seleção múltipla perfis ============= */
.pf-sel-td { text-align: center; width: 40px; }
.pf-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--acento); }
.pf-sel-row { background: rgba(147,51,234,.06) !important; }
.pf-sel-row:hover { background: rgba(147,51,234,.1) !important; }
.pf-nome-mark { cursor: pointer; }
.pf-nome-mark:hover { text-decoration: underline; }
/* Linha destacada (clique no nome) — cobre a linha toda em Perfis e BMs */
.pf-destacado td { background: rgba(245, 184, 76, .16) !important; }
.pf-destacado td:first-child { box-shadow: inset 3px 0 0 #f5b84c; }
.pf-destacado:hover td { background: rgba(245, 184, 76, .22) !important; }
.pf-sel-bar { display: flex; align-items: center; gap: 10px; flex: 1; padding: 2px 0; }
.pf-sel-bar > span { font-size: 13px; font-weight: 600; color: var(--acento-forte); margin-right: auto; }
.pf-sel-excluir { height: 32px; padding: 0 14px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.pf-sel-excluir .icone { width: 14px; height: 14px; }
.pf-sel-limpar { height: 32px; padding: 0 12px; font-size: 12.5px; }

/* ============= Extrator de perfis ============= */
.bms-tb-extrator { border-color: rgba(147,51,234,.3); color: var(--acento-forte); }
.bms-tb-extrator:hover { background: rgba(147,51,234,.1); border-color: var(--acento-forte); }
.bms-tb-extrator .icone { width: 15px; height: 15px; }

.ext-janela { width: min(880px, 95vw); max-width: 880px; }
.ext-janela .janela-topo { padding: 20px 24px 16px; border-bottom: 1px solid var(--linha-suave); }
.ext-janela .janela-topo h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ext-janela .janela-topo h2 .icone { width: 20px; height: 20px; color: var(--acento-forte); }
.ext-corpo { display: flex; flex-direction: column; gap: 16px; max-height: 78vh; overflow-y: auto; padding: 20px 24px 24px !important; }
.ext-dica { font-size: 13px; color: var(--tinta-2); margin: 0; line-height: 1.55; }
.ext-dica strong { color: var(--acento-forte); font-weight: 600; }
.ext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ext-col { display: flex; flex-direction: column; gap: 8px; }
.ext-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--tinta-2); }
.ext-label .icone { width: 15px; height: 15px; color: var(--acento-forte); }
.ext-area { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linha); background: #111114; color: var(--tinta); font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; font-size: 12px; line-height: 1.65; outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.ext-area:focus { border-color: #7c5cf0; box-shadow: 0 0 0 3px rgba(124,92,240,.15); }
.ext-area::placeholder { color: var(--apagado); font-family: inherit; font-size: 11.5px; }
.ext-btn-extrair { align-self: center; padding: 0 32px; height: 42px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ext-btn-extrair .icone { width: 16px; height: 16px; }
.ext-resultado { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--linha-suave); animation: surgir .2s ease; }
.ext-resultado-topo { display: flex; align-items: center; justify-content: space-between; }
.ext-btn-copiar { height: 34px; padding: 0 16px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; border-color: rgba(147,51,234,.3); color: var(--acento-forte); }
.ext-btn-copiar:hover { background: rgba(147,51,234,.1); border-color: var(--acento-forte); }
.ext-btn-copiar .icone { width: 14px; height: 14px; }
.ext-output { background: #0a0a0c; border-color: rgba(147,51,234,.18); color: #c4f0c4; }
.ext-output:focus { border-color: rgba(147,51,234,.35); box-shadow: 0 0 0 3px rgba(147,51,234,.08); }
@media (max-width: 700px) {
  .ext-grid { grid-template-columns: 1fr; }
  .ext-corpo { padding: 16px !important; }
  .ext-janela .janela-topo { padding: 16px; }
}

/* Modal de novo grupo */
.gr-janela { width: min(460px, 94vw); max-width: 460px; }
.gr-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-emoji { width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; border: 1px solid var(--linha); border-radius: 10px; background: var(--superficie-2); cursor: pointer; transition: border-color .12s, background .12s; }
.gr-emoji:hover { border-color: var(--apagado); }
.gr-emoji.sel { border-color: var(--acento-forte); background: var(--acento-suave); }
.gp-emoji { font-size: 14px; }

/* ===================== Aba CLIENTES ===================== */
.cli-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 18px; }
@media (max-width: 760px) { .cli-kpis { grid-template-columns: 1fr; } }
.cli-kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--linha); border-radius: 16px; background: #000; }
.cli-kpi-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.cli-kpi-ico .icone { width: 22px; height: 22px; }
.cli-kpi-txt b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.cli-kpi-txt small { color: var(--tinta-2); font-size: 12.5px; }

.cli-barra-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cli-busca { flex: 1 1 auto; max-width: 420px; height: 42px; }
.cli-novo { height: 42px; margin-left: auto; }

.cli-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.cli-card { padding: 16px; border: 1px solid var(--linha); border-radius: 16px; background: #000; display: flex; flex-direction: column; gap: 12px; transition: border-color .14s; }
.cli-card:hover { border-color: var(--apagado); }
.cli-naoreg { border-style: dashed; background: rgba(255, 255, 255, .012); }
.cli-card-topo { display: flex; align-items: center; gap: 10px; }
.cli-pos { flex: none; width: 20px; text-align: center; font-size: 12px; font-weight: 800; color: var(--apagado); }
.cli-pos-1 { color: #f5c451; } .cli-pos-2 { color: #cfd4dc; } .cli-pos-3 { color: #e0965b; }
.cli-pos-vazio { color: var(--linha); }
.cli-av { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.cli-id { flex: 1; min-width: 0; }
.cli-id strong { display: block; font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-id small { display: block; font-size: 12px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-edit, .cli-add { flex: none; width: 30px; height: 30px; }
.cli-valor { display: flex; align-items: baseline; gap: 8px; }
.cli-valor b { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: #4ade80; }
.cli-valor span { font-size: 12.5px; color: var(--tinta-2); }
.cli-barra { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cli-barra i { display: block; height: 100%; border-radius: 999px; }
.cli-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--apagado); }
.cli-janela { width: min(480px, 94vw); max-width: 480px; }
.cli-del-btn { margin-right: auto; color: #f87171; }
.cli-del-btn .icone { width: 16px; height: 16px; }

/* ===================== Aba FUNCIONÁRIOS ===================== */
.fn-linhas { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--linha-suave); padding-top: 10px; }
.fn-linha { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tinta-2); }
.fn-linha b { color: var(--tinta); font-weight: 600; text-align: right; }
.fn-linha b small { color: var(--apagado); font-weight: 500; }
.fn-est { font-size: 10px; color: var(--apagado); background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; margin-left: 6px; }

/* Modal de funcionário */
.fn-nota-pag { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--tinta-2); margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--linha-suave); }
.fn-nota-pag .icone { width: 16px; height: 16px; flex: none; color: var(--acento-forte); margin-top: 1px; }
.fn-nota-pag b { color: var(--tinta); }
.fn-perms { display: flex; flex-wrap: wrap; gap: 7px; }
.fn-perm { padding: 0; border: 1px solid var(--linha); border-radius: 999px; background: var(--superficie-2); cursor: pointer; opacity: .65; transition: opacity .12s, border-color .12s, background .12s; }
.fn-perm .fn-perm-pill { display: block; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--tinta-2); }
.fn-perm:hover { opacity: .85; }
.fn-perm.sel { opacity: 1; border-color: rgba(107, 155, 255, .5); background: var(--acento-suave); }
.fn-perm.sel .fn-perm-pill { color: var(--acento-forte); }

/* Badge de cargo (estilo Discord: cor + emoji) */
.cg-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-badge-emo { font-size: 12px; }
.cg-badge-sem { color: var(--apagado); background: rgba(255, 255, 255, .05); border-color: var(--linha); }
.cli-id small.cli-cargo { overflow: visible; margin-top: 3px; }

/* Modal de cargos */
.cg-janela { width: min(540px, 94vw); max-width: 540px; }
.cg-form { display: flex; flex-direction: column; gap: 12px; }
.cg-form-topo { display: flex; align-items: center; gap: 10px; }
.cg-form-topo input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--superficie-2); color: var(--tinta); font: inherit; font-size: 14px; outline: none; }
.cg-form-topo input:focus { border-color: var(--acento-forte); }
.cg-preview { flex: none; }
.cg-cores { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-cor { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid transparent; cursor: pointer; transition: transform .1s, border-color .1s; }
.cg-cor:hover { transform: scale(1.12); }
.cg-cor.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }
.cg-emos { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-emo { width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; border: 1px solid var(--linha); border-radius: 9px; background: var(--superficie-2); cursor: pointer; transition: border-color .1s, background .1s; }
.cg-emo:hover { border-color: var(--apagado); }
.cg-emo.sel { border-color: var(--acento-forte); background: var(--acento-suave); }
.cg-form-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.cg-lista { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.cg-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--linha-suave); border-radius: 10px; background: var(--superficie-2); }
.cg-item.editando { border-color: var(--acento-forte); }
.cg-item-dir { display: inline-flex; gap: 2px; flex: none; }

/* ===================== Aba SITES ===================== */
.st-janela { width: min(680px, 94vw); max-width: 680px; }
.st-janela .janela-topo { padding: 20px 24px 16px; border-bottom: 1px solid var(--linha-suave); }
.st-janela .janela-topo h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.st-janela .janela-topo h2 .icone { width: 20px; height: 20px; color: var(--acento-forte); }
.st-form-corpo { display: flex; flex-direction: column; gap: 14px; max-height: 68vh; overflow-y: auto; padding: 20px 24px !important; }
.st-form-rodape { padding: 16px 24px 20px; display: flex; align-items: center; gap: 10px; }
.st-form-rodape .btn { height: 40px; padding: 0 20px; font-weight: 600; }
.st-form-rodape .cli-del-btn { margin-right: auto; }
.st-planilha .st-ativ-td { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .st-form-corpo { padding: 16px !important; } .st-janela .janela-topo { padding: 16px; } .st-form-rodape { padding: 14px 16px 16px; } }

/* Aviso de recurso que depende do backend */
.web-stub { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px;
  border: 1px dashed var(--linha); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--tinta-2); font-size: 13px; }
.web-stub .icone { width: 17px; height: 17px; flex: none; color: var(--acento-forte); margin-top: 1px; }
.web-stub b { color: var(--tinta); font-weight: 600; }

/* ===================== Financeiro — tabs de tipo de venda ===================== */
.fn-tipo-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linha-suave); width: fit-content; }
.fn-tipo-tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: none; color: var(--apagado); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .14s, color .14s; }
.fn-tipo-tab .icone { width: 15px; height: 15px; }
.fn-tipo-tab:hover { color: var(--tinta-2); background: rgba(255, 255, 255, .04); }
.fn-tipo-tab.ativo { color: var(--acento-forte); background: var(--acento-suave); }

/* Tags de tipo de venda no histórico */
.fn-tag-prod { background: rgba(245, 184, 76, .14); color: #f5b84c; }
.fn-tag-perfil { background: rgba(67, 128, 246, .14); color: #4380f6; }

/* ===================== Cliente — modal de detalhe ===================== */
.cli-det-janela { width: min(600px, 94vw); max-width: 600px; }
.cli-det-header { display: flex; align-items: center; gap: 12px; }
.cli-det-header h2 { display: flex; align-items: center; gap: 0; }
.cli-det-av { width: 38px; height: 38px; font-size: 14px; }
.cli-det-contato { display: block; font-size: 12.5px; color: var(--apagado); font-weight: 400; margin-top: 1px; }
.cli-det-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 6px; }
.cli-det-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--linha-suave); }
.cli-det-stat b { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #4ade80; }
.cli-det-stat:nth-child(2) b { color: var(--tinta); }
.cli-det-stat:nth-child(3) b { color: #f5b84c; }
.cli-det-stat small { font-size: 11.5px; color: var(--apagado); }
.cli-det-lista { margin-top: 8px; }
.cli-det-lista h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--apagado); margin-bottom: 8px; }
.cli-det-tab { font-size: 12.5px; }
.cli-det-tab .fn-tipo { font-size: 11px; padding: 2px 7px 2px 5px; }
.cli-det-tab .fn-tipo .icone { width: 11px; height: 11px; }
.cli-det-lista .tp { max-height: 260px; overflow: auto; border-radius: 10px; border: 1px solid var(--linha-suave); }
@media (max-width: 480px) { .cli-det-resumo { grid-template-columns: 1fr; } }

/* ===================== Link Financeiro → Métricas ===================== */
.fn-link-metricas { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; border: 1px dashed var(--linha); background: rgba(255, 255, 255, .02); color: var(--tinta-2); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .14s, border-color .14s, color .14s; }
.fn-link-metricas:hover { background: rgba(255, 255, 255, .04); border-color: var(--apagado); color: var(--tinta); }
.fn-link-metricas .icone { width: 16px; height: 16px; }

/* ===================== Aba MÉTRICAS ===================== */
.mt-tela { max-width: none; }

/* Resumo financeiro no topo */
.mt-resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mt-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #000; border: 1px solid var(--linha); position: relative; overflow: hidden; transition: border-color .14s; }
.mt-stat:hover { border-color: color-mix(in srgb, var(--c, var(--acento-forte)) 50%, transparent); }
.mt-stat::after { content: ""; position: absolute; right: -16px; top: -16px; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--acento-forte)) 10%, transparent), transparent 70%); pointer-events: none; }
.mt-stat-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.mt-stat-ico .icone { width: 20px; height: 20px; }
.mt-stat-body { display: flex; flex-direction: column; gap: 3px; }
.mt-stat-body small { font-size: 12px; color: var(--apagado); }
.mt-stat-body b { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1; }
.mt-stat-fat b { color: #4ade80; }
.mt-stat-gasto b { color: #f87171; }
@media (max-width: 860px) { .mt-resumo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mt-resumo { grid-template-columns: 1fr; } }

/* Grid de cards */
.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.mt-card { gap: 16px; }

/* Títulos de seção dentro dos cards */
.mt-sec-tit { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; color: var(--tinta); margin: 0; }
.mt-sec-tit .icone { width: 18px; height: 18px; color: var(--acento-forte); }

/* Mini KPIs (custo por BM, BMs/dia etc) */
.mt-custo-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.mt-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--linha-suave); }
.mt-mini-val { font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--tinta); }
.mt-mini-destaque { color: var(--acento-forte); }
.mt-mini-lab { font-size: 11px; color: var(--apagado); text-align: center; }

/* Linhas de breakdown / ranking */
.mt-rows { display: flex; flex-direction: column; gap: 6px; }
.mt-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mt-row-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--tinta-2); }
.mt-row-val { flex: none; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-row-per { flex: none; font-size: 12px; color: var(--apagado); font-variant-numeric: tabular-nums; }
.mt-row-pct { flex: none; min-width: 36px; text-align: right; font-size: 12px; font-weight: 700; color: var(--apagado); font-variant-numeric: tabular-nums; }
.mt-row-sit { border-top: 1px solid var(--linha-suave); padding-top: 8px; margin-top: 2px; }
.mt-status-rows .mt-row-nome { display: flex; align-items: center; }
.mt-status-rows .bms-st { font-size: 12px; }
.mt-breakdown { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linha-suave); }
.mt-breakdown h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--apagado); margin: 0 0 8px; }

/* Barras de proporção */
.mt-barra { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .04); overflow: hidden; margin-top: -2px; }
.mt-barra i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }

/* Top clientes */
.mt-card-clientes { }
.mt-cli-grid { display: flex; flex-direction: column; gap: 8px; }
.mt-cli { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--linha-suave); transition: background .12s; }
.mt-cli:hover { background: rgba(255, 255, 255, .04); }
.mt-cli .fn-rank-pos { width: 18px; text-align: center; font-size: 13px; font-weight: 800; }
.mt-cli .fn-rank-av { width: 32px; height: 32px; font-size: 12px; }
.mt-cli-info { flex: 1; min-width: 0; }
.mt-cli-info strong { display: block; font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-cli-info small { font-size: 11.5px; color: var(--apagado); }
.mt-cli b { flex: none; font-size: 14px; font-weight: 800; }

/* ===================== Lovable: seletor de template ===================== */
.st-temas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 8px; }
.st-temas-label { font-size: 12px; font-weight: 600; color: var(--apagado); text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.st-tema { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--linha); background: var(--superficie); cursor: pointer; transition: border-color .15s, box-shadow .15s; font-size: 13px; font-weight: 500; color: var(--tinta-2); }
.st-tema:hover { border-color: var(--destaque); }
.st-tema.sel { border-color: var(--destaque); box-shadow: 0 0 0 2px rgba(139, 92, 246, .25); }
.st-tema-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.st-tema-cores { display: flex; gap: 3px; }
.st-tema-cores i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.st-tema-ver { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 0; border-radius: 5px; border: 1px solid var(--linha); background: transparent; cursor: pointer; color: var(--apagado); font-size: 11px; transition: color .15s, border-color .15s; }
.st-tema-ver:hover { color: var(--destaque); border-color: var(--destaque); }
.st-tema-ver .icone { width: 13px; height: 13px; }

/* ===================== SMS / MEU NÚMERO VIRTUAL ===================== */
/* ---- SMS ---- */
.sms-wrap { max-width: 920px; }
.sms-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sms-cab-esq h1 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.sms-cab-esq h1 .icone { width: 20px; height: 20px; color: var(--acento, #9333ea); }
.sms-painel-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--destaque, #e91e7a); background: rgba(233,30,122,.1); border: 1px solid rgba(233,30,122,.25); border-radius: 20px; padding: 2px 10px; }
.sms-saldo-box { display: flex; align-items: center; gap: 10px; }
.sms-saldo-val { font-size: 13px; color: var(--tinta-2); }
.sms-saldo-val strong { color: #4ade80; font-size: 15px; }
.sms-erro-global { font-size: 13px; color: #f87171; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.sms-card { background: var(--superficie); border: 1px solid var(--linha); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.sms-ct { background: rgba(255,255,255,.08); border-radius: 20px; padding: 1px 7px; font-size: 10px; color: var(--tinta-2); font-weight: 600; }
.sms-pil { font-size: 11px; font-weight: 600; }
.sms-pil-ok   { color: #4ade80; }
.sms-pil-wait { color: #60a5fa; }
.sms-pil-err  { color: #f87171; }
.sms-pil-warn { color: #f5b84c; }
.sms-phone { font-size: 13px; font-weight: 700; color: #fff; font-family: monospace; letter-spacing: .03em; }
.sms-hist-data { font-size: 11px; color: var(--apagado); }
/* Serviços */
.sms-svc-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sms-svc-titulo { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sms-svc-sub { font-size: 12px; color: var(--apagado); }
.sms-svc-topo-dir { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sms-ddd-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--apagado); white-space: nowrap; }
.sms-ddd-label input { width: 52px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #fff; font-size: 13px; padding: 4px 8px; text-align: center; }
.sms-pais { font-size: 13px; color: var(--tinta-2); background: rgba(255,255,255,.07); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.sms-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sms-svc-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 16px 18px; transition: border-color .2s, background .2s; }
.sms-svc-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.sms-svc-card-dis { opacity: .4; }
.sms-svc-card-esq { display: flex; align-items: center; gap: 12px; }
.sms-svc-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sms-svc-logo svg { width: 22px; height: 22px; }
.sms-svc-fb { background: #1877f2; color: #fff; font-weight: 900; font-size: 22px; font-family: Georgia, serif; }
.sms-svc-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7); color: #fff; }
.sms-svc-nome { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.sms-svc-preco { font-size: 12px; color: var(--tinta-2); }
.sms-svc-preco span, .sms-svc-preco.indisponivel { color: var(--apagado); }
.sms-btn-comprar { white-space: nowrap; flex-shrink: 0; }
/* Tabela de ativações */
.sms-atv2-tit { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.sms-atv-tabs2 { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sms-atv-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--apagado); font-size: 13px; padding: 6px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: color .15s, border-color .15s; margin-bottom: -1px; }
.sms-atv-tab.sel { color: #fff; border-bottom-color: var(--destaque, #e91e7a); }
.sms-atv-tab:hover:not(.sel) { color: var(--tinta-2); }
.sms-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sms-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--apagado); padding: 0 14px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sms-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.sms-table tr:last-child td { border-bottom: none; }
.sms-table tr:hover td { background: rgba(255,255,255,.025); }
.sms-td-svc { display: flex; align-items: center; gap: 9px; }
.sms-td-svc > span { font-weight: 600; color: var(--tinta-1); }
.sms-codigo { font-size: 15px; font-weight: 800; color: #4ade80; letter-spacing: .1em; font-family: monospace; margin-right: 4px; }
.sms-td-acoes { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sms-btn-sm { padding: 4px 10px; font-size: 12px; }
.sms-loading-msg { text-align: center; color: var(--apagado); font-size: 13px; padding: 28px 0; }
.sms-vazio-msg { text-align: center; color: var(--apagado); font-size: 13px; padding: 28px 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .sms-svc-grid { grid-template-columns: 1fr; }
  .sms-svc-card { flex-direction: column; align-items: flex-start; }
  .sms-btn-comprar { width: 100%; justify-content: center; }
  .sms-svc-topo { flex-direction: column; }
  .sms-svc-topo-dir { width: 100%; justify-content: space-between; }
}
