.revenda { --surface: #1d1f20; --surface-2: #292c2d; --border: #2e3334; }
.revenda .sobretitulo { display: none; }
.revenda .resumo small { display:block; color:var(--muted); font-size:14px; margin-top:8px; }
.revenda #saldo { color:var(--accent); }
.revenda .acoes-painel { display:flex; gap:12px; flex-wrap:wrap; margin:0 0 28px; }
.revenda .principal { width:auto; }
.revenda .login .principal,.revenda form> .principal { width:100%; }
.revenda .revenda-filtros { grid-template-columns: minmax(220px,2fr) repeat(2,minmax(140px,1fr)) auto; }
.revenda .tv p,.revenda .tv .data-licenca { font-size:16px; }
.revenda dialog h2 { font-family:"Sentient", Georgia, serif; font-size:22px; overflow-wrap:anywhere; }
.revenda .dialog-topo>div { min-width:0; }
.revenda .dialog-topo>button { flex-shrink:0; }
.revenda .lista-item,.revenda .extrato-item,.revenda .pacote-item { border-top:1px solid var(--border); padding:18px 0; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.revenda .lista-item p,.revenda .extrato-item p { margin:6px 0 0; color:var(--muted); font-size:16px; overflow-wrap:anywhere; }
.revenda .lista-item>div,.revenda .extrato-item>div { min-width:0; }
.revenda .lista-item .botoes { flex-shrink:0; }
.revenda .extrato-item strong { white-space:nowrap; }
.revenda input,.revenda button,.revenda select,.revenda textarea { font-size:16px; }
.revenda form { margin-bottom:0; }.revenda label small { display:block; margin-top:8px; font-size:14px; color:var(--muted); }
.revenda #novo-pin-campo[hidden],.revenda #pin-lista-campo[hidden] { display:none; }
.revenda .contato-revenda { display:inline-block; color:var(--accent); padding:8px 0; }
.revenda #cotacao { font-weight:600; margin:20px 0; }
.revenda #pacotes-linhas { margin-bottom:24px; }
.revenda .rodape-painel { font-size:16px; }
.revenda .admin-lista { margin:28px 0; }
.revenda .admin-revendedor { display:grid; grid-template-columns:2fr 1fr 1fr auto; padding:20px; gap:20px; align-items:center; border-top:1px solid var(--border); }
.revenda .admin-revendedor p { margin:4px 0; color:var(--muted); overflow-wrap:anywhere; }
.revenda .topo a.painel-link { font-size:16px; color:var(--accent); }
@media(max-width:800px) { .revenda .revenda-filtros { grid-template-columns:1fr 1fr; }.revenda .campo-busca { grid-column:1/-1; }.revenda .admin-revendedor { grid-template-columns:1fr 1fr; }.revenda .admin-revendedor>div:first-child { grid-column:1/-1; } }
@media(max-width:640px) { .revenda .acoes-painel button { flex:1 1 160px; }.revenda .lista-item { align-items:flex-start; flex-direction:column; }.revenda .lista-item .botoes { width:100%; }.revenda .lista-item button { flex:1; }.revenda .titulo-painel { flex-wrap:wrap; }.revenda .resumo div:last-child { grid-column:1/-1; }.revenda .admin-revendedor { padding:18px; gap:12px; }.revenda .admin-revendedor .botoes { grid-column:1/-1; }.revenda .admin-revendedor .botoes button { flex:1; }.revenda .identidade { flex-wrap:wrap; } }

/* ===== Layout com menu lateral (Resumo / Aparelhos) ===== */
.revenda .app { display:flex; min-height:100vh; }
.revenda .app-corpo { flex:1 1 0; min-width:0; }
.revenda .menu { flex:0 0 248px; box-sizing:border-box; position:sticky; top:0; align-self:flex-start; height:100vh; display:flex; flex-direction:column; gap:8px; padding:24px 16px; background:#0b0c0d; border-right:1px solid #1f2324; overflow-y:auto; }
.revenda .menu[hidden] { display:none; }
.revenda .menu-topo { display:flex; align-items:center; justify-content:space-between; padding:0 6px 20px; }
.revenda .menu-marca { display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; min-height:44px; }
.revenda .menu-marca strong { display:block; font-size:19px; font-weight:700; letter-spacing:-.02em; line-height:1.15; white-space:nowrap; }
.revenda .menu-marca small { display:block; font-size:12px; color:var(--accent); }
.revenda .menu-marca svg,.revenda .menu-marca-mini svg { flex:none; }
.revenda .menu-nav { display:flex; flex-direction:column; gap:4px; }
.revenda .menu-nav a,.revenda .menu-nav button { display:flex; align-items:center; gap:12px; width:100%; box-sizing:border-box; min-height:46px; padding:0 14px; border:0; border-radius:10px; background:transparent; color:var(--muted); font:inherit; font-size:16px; text-align:left; text-decoration:none; cursor:pointer; }
.revenda .menu-nav a:hover,.revenda .menu-nav button:hover { background:#1d2021; color:var(--text); }
.revenda .menu-nav a.on { background:rgba(170,217,207,.12); color:var(--accent); }
.revenda .menu-nav svg { flex:none; }
.revenda .menu-rodape { margin-top:auto; padding:14px 6px 0; border-top:1px solid #1f2324; display:flex; flex-direction:column; gap:12px; font-size:14px; color:var(--muted); }
.revenda #menu-conta { overflow-wrap:anywhere; color:var(--text); }
.revenda .menu-rodape #sair { width:100%; }
.revenda .menu-icone { display:none; width:44px; height:44px; padding:0; align-items:center; justify-content:center; border-radius:10px; }
.revenda .barra-celular { display:none; }
.revenda.com-menu header.topo { display:none; }
.revenda.com-menu main.largo { max-width:1180px; padding:32px 36px 48px; }
.revenda .vista { display:none; }
.revenda #painel[data-vista="resumo"] [data-vista-conteudo="resumo"] { display:block; }
.revenda #painel[data-vista="aparelhos"] [data-vista-conteudo="aparelhos"] { display:block; }
.revenda #painel[data-vista="servidor"] [data-vista-conteudo="servidor"] { display:block; }
.revenda .alerta-creditos { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; padding:16px 20px; border-radius:14px; background:rgba(255,200,87,.1); border:1px solid rgba(255,200,87,.35); color:var(--warn); }
.revenda .alerta-creditos[hidden] { display:none; }
.revenda .alerta-creditos a { color:var(--text); text-decoration:underline; min-height:44px; display:inline-flex; align-items:center; }
.revenda .preco-cartao { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:22px; max-width:420px; }
.revenda .preco-cartao span { color:var(--muted); font-size:14px; }
.revenda .preco-cartao strong { display:block; font-family:"Sentient",Georgia,serif; font-weight:400; font-size:34px; margin:8px 0; }
.revenda .preco-cartao p { margin:0; color:var(--muted); font-size:15px; line-height:1.5; }
.revenda .chips { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.revenda .chip { width:auto; min-height:44px; padding:0 18px; border-radius:999px; background:transparent; border:1px solid var(--border); color:var(--muted); font-size:15px; }
.revenda .chip[aria-pressed="true"] { background:rgba(170,217,207,.14); border-color:var(--accent); color:var(--accent); }
.revenda label:has(> #status) { display:none; }
.revenda .revenda-filtros { grid-template-columns: minmax(220px,2fr) minmax(140px,1fr) auto; }
/* Celular: o menu vira gaveta e aparece uma barra no topo */
@media(max-width:900px) {
  .revenda .app { display:block; }
  .revenda .barra-celular { display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:5; padding:10px 16px; background:#0b0c0d; border-bottom:1px solid #1f2324; }
  .revenda .barra-celular[hidden] { display:none; }
  .revenda .menu-marca-mini { display:flex; align-items:center; gap:8px; font-size:17px; letter-spacing:-.02em; }
  .revenda .barra-saldo { padding:0 12px; min-height:44px; display:inline-flex; align-items:center; gap:6px; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:14px; }
  .revenda .barra-saldo strong { color:var(--accent); }
  .revenda .menu-icone { display:inline-flex; }
  .revenda .menu { position:fixed; inset:0 auto 0 0; width:min(300px,86vw); z-index:20; transform:translateX(-102%); transition:transform .2s; box-shadow:0 0 60px #000a; }
  .revenda .menu.aberto { transform:none; }
  .revenda.com-menu main.largo { padding:20px 16px 32px; }
}
.revenda .revenda-filtros { margin-bottom:20px; }
@media(max-width:900px) { .revenda .revenda-filtros { grid-template-columns:minmax(0,1fr) auto; }.revenda .revenda-filtros .campo-busca { grid-column:1/-1; }.revenda .revenda-filtros input { min-width:0; width:100%; box-sizing:border-box; } }

/* Tela de entrada: cartão centralizado, como as telas de acesso modernas */
.revenda.painel-index:not(.com-menu) { background:#0b0c0d; }
.revenda.painel-index header.topo { display:none; }
.revenda.painel-index main.largo { max-width:none; padding:0 16px; }
.revenda #login.login { max-width:440px; margin:max(32px,9vh) auto 32px; padding:36px 32px 0; border-radius:28px; background:var(--surface); border:1px solid var(--border); text-align:center; overflow:hidden; }
.revenda #login[hidden] { display:none; }
.revenda .login-marca { display:inline-flex; align-items:center; gap:10px; margin-bottom:22px; min-height:44px; color:var(--text); font-size:20px; font-weight:700; letter-spacing:-.02em; text-decoration:none; }
.revenda .login-marca img { width:40px; height:40px; }
.revenda #login h1 { font-size:26px; margin:0 0 8px; }
.revenda #login .muted { margin:0 0 26px; }
.revenda #login label { display:block; text-align:left; margin-bottom:16px; }
.revenda #login label span { display:block; margin-bottom:8px; color:var(--text); font-size:15px; font-weight:600; }
.revenda #login .principal { width:100%; margin-top:8px; min-height:52px; }
.revenda #login .esqueci { margin:18px 0 28px; font-size:15px; }
.revenda #login .esqueci a { color:var(--muted); }
.revenda .login-rodape { margin:0 -32px; padding:20px 32px 28px; border-top:1px solid var(--border); background:#181a1b; color:var(--muted); font-size:15px; }
.revenda .login-rodape { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 14px; }
.revenda .login-rodape p { margin:0; }
.revenda .login-rodape .criar-conta { display:inline-flex; padding:0 22px; align-items:center; justify-content:center; min-height:44px; border:1px solid #6b7475; border-radius:999px; color:var(--text); font-weight:600; font-size:16px; text-decoration:none; background:transparent; }
.revenda .login-rodape .criar-conta:hover { border-color:var(--accent); color:var(--accent); }
@media(max-width:480px) { .revenda #login.login { padding:28px 20px 0; border-radius:24px; } .revenda .login-rodape { margin:0 -20px; padding:20px 20px 24px; } }
/* Aviso de erro no login: suave, com ícone, e campos com borda vermelha */
.revenda #login .aviso.erro { display:flex; align-items:center; gap:10px; margin:0 0 20px; padding:12px 14px; border-radius:12px; text-align:left; font-size:15px; color:#ff8a8a; background:rgba(255,107,107,.1); border:1px solid rgba(255,107,107,.4); }
.revenda #login .aviso.erro[hidden] { display:none; }
.revenda #login .aviso.erro::before { content:""; flex:none; width:18px; height:18px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a8a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center/contain no-repeat; }
.revenda #login:has(.aviso.erro:not([hidden])) input { border-color:rgba(255,107,107,.6); }

/* Fonte Inter só na área de revenda e nas telas de acesso; títulos seguem em Sentient */
@font-face { font-family:"Inter"; src:url(/painel/inter.woff2) format("woff2"); font-weight:100 900; font-display:swap; }
body.revenda, .revenda button, .revenda input, .revenda select, .revenda textarea { font-family:"Inter","Satoshi",system-ui,sans-serif; letter-spacing:-0.011em; font-feature-settings:"cv11","ss03"; }
.revenda .menu a, .revenda .menu button { font-weight:500; }
.revenda input.codigo, .revenda .tv .codigo, .revenda code { font-family:ui-monospace,"SF Mono",Consolas,monospace; }
.revenda .alerta-creditos button { background:none; border:0; border-radius:0; padding:0 8px; min-height:44px; color:var(--text); font:inherit; text-decoration:underline; cursor:pointer; }

/* Troca em massa de servidor */
.revenda .troca-servidor { max-width:640px; }
.revenda .troca-servidor h2 { font-size:24px; margin:0 0 8px; }
.revenda .troca-servidor form { display:grid; gap:16px; margin-top:20px; }
.revenda .troca-servidor form button { justify-self:start; }
.revenda .dica-troca { font-size:14px; margin:0; }
.revenda .troca-previa { margin-top:20px; padding:18px 20px; border-radius:14px; background:var(--surface-2); border:1px solid var(--border); }
.revenda .troca-previa p { margin:0 0 10px; }
.revenda .troca-previa .botoes { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.revenda #troca-feita { margin-top:20px; }

/* Renovação em lote */
.revenda .lote { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin:0 0 16px; padding:12px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.revenda .lote[hidden] { display:none; }
.revenda .lote-todas, .revenda .sel-tv { display:inline-flex; align-items:center; gap:10px; margin:0; cursor:pointer; }
.revenda .lote-todas input, .revenda .sel-tv input { width:20px; height:20px; margin:0; accent-color:var(--accent); flex:none; }
.revenda .lote-todas span { font-size:15px; }
.revenda #lote-conta { font-size:15px; flex:1 1 auto; }
.revenda #lote-renovar { width:auto; }
.revenda .tv-identidade .sel-tv { display:flex; width:max-content; margin-bottom:8px; }
.revenda .tv-identidade .sel-tv span { font-size:14px; color:var(--muted); }
.revenda .tv.selecionada { background:rgba(170,217,207,.06); }
/* Alinhamento da seleção: anula o "label > span" em bloco do estilo geral */
.revenda .lote-todas > span, .revenda .sel-tv > span { display:inline; margin:0; line-height:20px; }
.revenda .lote-todas > span { color:var(--text); }
.revenda .lote-todas input, .revenda .sel-tv input { padding:0; border-radius:4px; }
.revenda .lote { min-height:68px; box-sizing:border-box; }
.revenda #lote-renovar { border-radius:999px; }
.revenda #lote-conta { line-height:20px; }

/* Tema claro do painel: só a área de conteúdo com o painel aberto; menu lateral e janelas seguem escuros */
.revenda.com-menu .app-corpo {
  --bg:#f3f4f4; --surface:#ffffff; --surface-2:#ffffff; --text:#15191a; --muted:#5d6667; --border:#d5dada;
  --accent:#1f7a68; --botao:#15191a; --botao-text:#ffffff; --linha:#ffffff; --cabeca:#f7f8f8; --marcada:#e7f3f0;
  color-scheme:light; color:var(--text);
  background-color:var(--bg);
  background-image:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,.09) 1px, transparent 1.4px);
  background-size:80px 80px, 80px 80px, 16px 16px;
  background-position:-1px -1px, -1px -1px, 0 0;
}
.revenda.com-menu .app-corpo :is(input:not([type=checkbox]),select) { background:#fff; color:var(--text); border-color:#cfd5d5; }
.revenda.com-menu .app-corpo input::placeholder { color:#8a9293; }
.revenda.com-menu .app-corpo .chip { background:#fff; color:#3c4546; }
.revenda.com-menu .app-corpo .chip[aria-pressed="true"] { background:var(--marcada); color:var(--accent); border-color:var(--accent); }
.revenda.com-menu .app-corpo main button:not(.principal):not(.chip):not(.ic) { background:#fff; }
.revenda.com-menu .app-corpo .aviso { background:#fff; border-color:var(--border); color:var(--text); }
.revenda.com-menu .app-corpo .aviso.erro { background:#fff1f1; border-color:#f3b4b4; color:#9b1c1c; }
.revenda.com-menu .app-corpo .alerta-creditos { background:#fff6e0; border-color:#f1d28a; }
.revenda.com-menu .app-corpo .alerta-creditos span { color:#7a5300; }
.revenda.com-menu .app-corpo .resumo strong { color:var(--text); }
.revenda.com-menu #barra-celular { --bg:#101213; --surface:#222526; --surface-2:#292c2d; --text:#f2f9f9; --muted:#bbbfc0; --border:#444b4c; --accent:#aad9cf; color-scheme:dark; color:var(--text); }

/* Painel em grade: cantos de 6px e alturas iguais */
.revenda.com-menu :is(button,.chip,input:not([type=checkbox]),select,textarea,.cartao,.lote,.lista-tvs,.troca-previa,.alerta-creditos,.preco-cartao,.resumo,.aviso,.menu-nav a,.menu-nav button,dialog) { border-radius:6px; }
.revenda.com-menu .app-corpo :is(input:not([type=checkbox]),select) { height:44px; min-height:44px; box-sizing:border-box; padding-top:0; padding-bottom:0; }
.revenda.com-menu .app-corpo :is(button,.chip) { min-height:44px; box-sizing:border-box; }
.revenda.com-menu .app-corpo :is(.revenda-filtros button,#atualizar,.paginacao button) { height:44px; padding-top:0; padding-bottom:0; }
.revenda.com-menu .revenda-filtros { align-items:end; grid-template-columns:minmax(0,1fr) 200px auto; }
.revenda.com-menu .revenda-filtros label > span { height:20px; line-height:20px; margin:0 0 6px; }

/* Caixa de seleção: pequena, com um X fino quando marcada */
.revenda.com-menu .app-corpo input[type=checkbox] { -webkit-appearance:none; appearance:none; width:14px; height:14px; min-height:14px; margin:0; padding:0; border:1.5px solid #9aa3a4; border-radius:3px; background:#fff; cursor:pointer; box-sizing:border-box; flex:none; }
.revenda.com-menu .app-corpo input[type=checkbox]:hover { border-color:var(--accent); }
.revenda.com-menu .app-corpo input[type=checkbox]:checked { border-color:var(--accent); background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 4l4 4M8 4l-4 4' fill='none' stroke='%231f7a68' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat; }
.revenda.com-menu .app-corpo input[type=checkbox]:indeterminate { border-color:var(--accent); background:#fff linear-gradient(var(--accent),var(--accent)) center / 6px 1.2px no-repeat; }
.revenda.com-menu .app-corpo input[type=checkbox]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* Barra de seleção: contagem e botão de renovar */
.revenda.com-menu .lote { display:flex; align-items:center; justify-content:flex-end; gap:16px; min-height:0; margin:0 0 10px; padding:0; border:0; background:transparent; }
.revenda.com-menu #lote-conta { font-size:14px; color:var(--muted); }
.revenda.com-menu #lote-renovar { min-height:40px; height:40px; padding:0 18px; border-radius:6px; }

/* Tabela de aparelhos: uma linha por TV, colunas com linhas verticais */
.revenda.com-menu .lista-tvs { background:var(--linha); border:1px solid var(--border); overflow:hidden; }
.revenda.com-menu .lista-tvs :is(.cabecalho-tvs,.tv) { display:grid; grid-template-columns:44px minmax(150px,1.6fr) minmax(110px,.9fr) minmax(170px,1.7fr) minmax(84px,.8fr) minmax(136px,1.3fr) 64px minmax(110px,1.3fr) 172px; gap:0; padding:0; align-items:stretch; height:auto; }
.revenda.com-menu .lista-tvs .cabecalho-tvs > *, .revenda.com-menu .lista-tvs .tv > .c { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; padding:0 8px; text-align:center; font-size:14px; line-height:20px; }
.revenda.com-menu .lista-tvs .cabecalho-tvs > * + *, .revenda.com-menu .lista-tvs .tv > .c + .c { border-left:1px solid var(--border); }
.revenda.com-menu .lista-tvs .cabecalho-tvs { height:40px; background:var(--cabeca); border-bottom:1px solid var(--border); color:var(--muted); font-size:13px; }
.revenda.com-menu .lista-tvs .cabecalho-tvs > * { font-size:13px; font-weight:500; }
.revenda.com-menu .lista-tvs .tv { min-height:44px; background:var(--linha); border-top:0; border-bottom:1px solid var(--border); }
.revenda.com-menu .lista-tvs .tv:last-child { border-bottom:0; }
.revenda.com-menu .lista-tvs .tv.selecionada { background:var(--marcada); }
.revenda.com-menu .lista-tvs .tv .rotulo-mobile { display:none; }
.revenda.com-menu .lista-tvs .c > span:not(.rotulo-mobile):not(.st):not(.pin-valor) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.revenda.com-menu .lista-tvs .tv-codigo { font:650 13px/20px ui-monospace,"SF Mono",Consolas,monospace; letter-spacing:.02em; white-space:nowrap; }
.revenda.com-menu .lista-tvs .pin-valor { font:600 14px/20px ui-monospace,"SF Mono",Consolas,monospace; color:var(--accent); letter-spacing:.08em; }
.revenda.com-menu .lista-tvs .pin-valor.oculto { color:var(--muted); letter-spacing:.06em; }
.revenda.com-menu .lista-tvs .c-apa, .revenda.com-menu .lista-tvs .c-ace { color:var(--muted); }
.revenda.com-menu .lista-tvs .st { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.revenda.com-menu .lista-tvs .dot { width:8px; height:8px; border-radius:50%; flex:none; }
.revenda.com-menu .lista-tvs .dot.ok { background:#2fa36b; } .revenda.com-menu .lista-tvs .dot.te { background:#e0a400; } .revenda.com-menu .lista-tvs .dot.ve { background:#d64545; }
.revenda.com-menu .lista-tvs .sel-tv { display:flex; margin:0; }
.revenda.com-menu .lista-tvs .sel-tv > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.revenda.com-menu .app-corpo button.ic { width:32px; height:32px; min-height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; background:#fff; border:1px solid var(--border); color:var(--text); flex:none; }
.revenda.com-menu .app-corpo button.ic:hover { border-color:var(--accent); color:var(--accent); }
.revenda.com-menu .app-corpo button.ic.ic-principal { background:var(--botao); border-color:var(--botao); color:var(--botao-text); }
.revenda.com-menu .app-corpo button.ic svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.revenda.com-menu .app-corpo button.ic.ic-olho { width:24px; height:24px; min-height:24px; border:0; background:transparent; color:var(--muted); }
.revenda.com-menu .app-corpo button.ic.ic-olho svg { width:15px; height:15px; }
.revenda.com-menu .paginacao { margin-top:14px; }

/* Celular e telas estreitas: cada TV vira um cartão */
@media (max-width:1080px) {
  .revenda.com-menu .lista-tvs { background:transparent; border:0; }
  .revenda.com-menu .lista-tvs .cabecalho-tvs { display:none; }
  .revenda.com-menu .lista-tvs .tv { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 16px; padding:14px 16px; margin-bottom:10px; border:1px solid var(--border) !important; border-radius:6px; }
  .revenda.com-menu .lista-tvs .tv > .c { border-left:0 !important; padding:0; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:2px; text-align:left; }
  .revenda.com-menu .lista-tvs .tv > .c-sel { grid-row:1; grid-column:1; z-index:1; justify-content:center; height:20px; }
  .revenda.com-menu .lista-tvs .tv > .c-cod { grid-row:1; grid-column:1 / -1; padding-left:26px; }
  .revenda.com-menu .lista-tvs .tv > .c-pin { display:grid; grid-template-columns:auto auto; justify-content:start; align-items:center; column-gap:6px; }
  .revenda.com-menu .lista-tvs .tv > .c-pin .rotulo-mobile { grid-column:1 / -1; }
  .revenda.com-menu .lista-tvs .tv > .c-acoes { grid-column:1 / -1; flex-direction:row; justify-content:flex-end; gap:8px; padding-top:10px; border-top:1px solid var(--border); }
  .revenda.com-menu .lista-tvs .tv .rotulo-mobile { display:block; font-size:12px; line-height:16px; color:var(--muted); }
  .revenda.com-menu .revenda-filtros { grid-template-columns:minmax(0,1fr) auto; }
}

/* Janelas claras no painel: mesmas cores da área de conteúdo, seções em blocos e menos peso visual */
.revenda.com-menu dialog {
  --bg:#f3f4f4; --surface:#ffffff; --surface-2:#ffffff; --text:#15191a; --muted:#5d6667; --border:#e1e5e5;
  --accent:#1f7a68; --botao:#15191a; --botao-text:#ffffff;
  color-scheme:light; color:var(--text); background:#fff; border:1px solid #d5dada; border-radius:10px;
  padding:0; width:min(620px, calc(100% - 32px)); box-shadow:0 24px 64px rgba(16,18,19,.28);
}
.revenda.com-menu dialog::backdrop { background:rgba(16,18,19,.42); backdrop-filter:blur(2px); }
.revenda.com-menu dialog > * { margin-left:24px; margin-right:24px; }
.revenda.com-menu dialog > :first-child { margin-top:0; }
.revenda.com-menu dialog .dialog-topo { margin:0; padding:20px 24px 16px; background:#f7f8f8; border-bottom:1px solid var(--border); align-items:center; }
.revenda.com-menu dialog h2 { font-size:20px; margin:0; }
.revenda.com-menu dialog h3 { font-size:16px; margin:0 0 4px; }
.revenda.com-menu dialog p { font-size:14px; line-height:20px; }
.revenda.com-menu dialog .muted, .revenda.com-menu dialog label > span { color:var(--muted); }
.revenda.com-menu dialog :is(input:not([type=checkbox]),select,textarea) { background:#fff; color:var(--text); border:1px solid #cfd5d5; border-radius:6px; }
.revenda.com-menu dialog :is(input:not([type=checkbox]),select) { height:40px; min-height:40px; padding-top:0; padding-bottom:0; box-sizing:border-box; }
.revenda.com-menu dialog button { min-height:40px; height:40px; padding:0 16px; border-radius:6px; font-size:14px; background:#fff; border:1px solid #cfd5d5; color:var(--text); width:auto; }
.revenda.com-menu dialog button.principal { background:var(--botao); border-color:var(--botao); color:var(--botao-text); }
.revenda.com-menu dialog button:hover:not(:disabled) { border-color:var(--accent); }
.revenda.com-menu dialog button.principal:hover:not(:disabled) { background:#2a3132; }
.revenda.com-menu dialog .aviso { margin-top:16px; }
/* Detalhes da TV */
.revenda.com-menu #detalhes #tv-titulo { font:650 18px/24px ui-monospace,"SF Mono",Consolas,monospace; letter-spacing:.02em; }
.revenda.com-menu #detalhes #tv-licenca { margin:4px 0 0; }
.revenda.com-menu #nota-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; margin-top:20px; margin-bottom:20px; }
.revenda.com-menu #nota-form label { margin:0; }
.revenda.com-menu #nota-form label > span { font-size:13px; margin-bottom:6px; }
.revenda.com-menu #detalhes .acoes-detalhes, .revenda.com-menu #detalhes .historico { margin-top:0; padding:18px 0; border-top:1px solid var(--border); }
.revenda.com-menu #detalhes .acoes-detalhes:first-of-type { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:16px; }
.revenda.com-menu #detalhes .acoes-detalhes:first-of-type h3 { grid-column:1; }
.revenda.com-menu #detalhes .acoes-detalhes:first-of-type p { grid-column:1; margin:0; color:var(--muted); }
.revenda.com-menu #detalhes .acoes-detalhes:first-of-type #ativar { grid-column:2; grid-row:1 / span 2; }
.revenda.com-menu #detalhes .lista-topo { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 4px; }
.revenda.com-menu #detalhes .lista-topo + p { margin:0 0 10px; font-size:13px; }
.revenda.com-menu #listas .lista-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin:0 0 8px; border:1px solid var(--border); border-radius:6px; background:#fafbfb; }
.revenda.com-menu #listas .lista-item p { margin:2px 0 0; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.revenda.com-menu #listas .lista-item strong { font-size:14px; }
.revenda.com-menu #listas .lista-item .botoes { display:flex; gap:8px; flex:none; }
.revenda.com-menu #listas .lista-item button { height:34px; min-height:34px; padding:0 12px; }
.revenda.com-menu #detalhes .historico { padding-bottom:20px; }
.revenda.com-menu #historico { list-style:none; margin:8px 0 0; padding:0; }
.revenda.com-menu #historico li { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); }
.revenda.com-menu #historico li:last-child { border-bottom:0; }
.revenda.com-menu #historico li p { margin:0; font-size:14px; }
.revenda.com-menu #historico li small { color:var(--muted); font-size:13px; white-space:nowrap; }
/* Demais janelas (confirmação, lista, extrato, pacotes, vínculo) */
.revenda.com-menu dialog form:not(#nota-form) { margin-top:20px; margin-bottom:24px; }
.revenda.com-menu dialog > form:first-child:not(#nota-form) { margin:0; padding:20px 24px 24px; }
.revenda.com-menu dialog > form:first-child .dialog-topo { margin:-20px -24px 20px; }
.revenda.com-menu dialog .botoes { display:flex; justify-content:flex-end; gap:10px; }
.revenda.com-menu dialog > :last-child:not(.dialog-topo):not(form) { margin-bottom:24px; }
@media (max-width:640px) {
  .revenda.com-menu dialog > * { margin-left:16px; margin-right:16px; }
  .revenda.com-menu dialog .dialog-topo { padding:16px; }
  .revenda.com-menu #nota-form, .revenda.com-menu #detalhes .acoes-detalhes:first-of-type { grid-template-columns:1fr; row-gap:10px; }
  .revenda.com-menu #detalhes .acoes-detalhes:first-of-type #ativar { grid-column:1; grid-row:auto; }
  .revenda.com-menu #detalhes .lista-topo { flex-direction:row; align-items:center; text-align:left; }
  .revenda.com-menu #listas .lista-item { flex-direction:column; align-items:stretch; text-align:left; }
  .revenda.com-menu #listas .lista-item .botoes { width:100%; }
  .revenda.com-menu #listas .lista-item .botoes button { flex:1 1 0; }
}

/* Ajustes da tela Aparelhos: sem título repetido, filtros sem rótulos soltos e seta do seletor recuada */
.revenda.com-menu #painel { position:relative; }
.revenda.com-menu #painel[data-vista="aparelhos"] { padding-top:24px; }
.revenda.com-menu #painel[data-vista="aparelhos"] .titulo-painel { position:absolute; top:24px; right:0; margin:0; z-index:1; }
.revenda.com-menu #painel[data-vista="aparelhos"] .titulo-painel > div { display:none; }
.revenda.com-menu #painel[data-vista="aparelhos"] .chips { padding-right:130px; min-height:44px; margin-bottom:16px; }
.revenda.com-menu .revenda-filtros label > span { position:absolute; width:1px; height:1px; margin:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.revenda.com-menu .revenda-filtros { margin-bottom:16px; }
.revenda.com-menu .app-corpo select { -webkit-appearance:none; appearance:none; padding-left:14px; padding-right:40px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2315191a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 12px no-repeat !important; }
.revenda.com-menu .rodape-painel { text-align:center; }
.revenda.com-menu .revenda-filtros { grid-template-columns:minmax(0,1fr) 230px auto; }
@media (max-width:1080px) { .revenda.com-menu .revenda-filtros { grid-template-columns:minmax(0,1fr) auto; } }

/* Ajustes da tela Trocar servidor: sem título repetido, cartão centralizado e espaços iguais */
.revenda.com-menu #painel[data-vista="servidor"] { padding-top:24px; }
.revenda.com-menu #painel[data-vista="servidor"] .titulo-painel { display:none; }
.revenda.com-menu .troca-servidor { max-width:640px; margin:0 auto; padding:24px; box-sizing:border-box; }
.revenda.com-menu .troca-servidor h2 { font-size:22px; margin:0 0 6px; }
.revenda.com-menu .troca-servidor > p.muted { margin:0; font-size:15px; line-height:22px; }
.revenda.com-menu .troca-servidor form { display:grid; gap:16px; margin:20px 0 0; }
.revenda.com-menu .troca-servidor form label { margin:0; }
.revenda.com-menu .troca-servidor form label > span { margin:0 0 6px; font-size:13px; line-height:18px; }
.revenda.com-menu .troca-servidor .dica-troca { margin:0; font-size:13px; line-height:19px; }
.revenda.com-menu .troca-servidor form button { justify-self:stretch; }
.revenda.com-menu .troca-servidor :is(.troca-previa,#troca-feita,#troca-erro) { margin:16px 0 0; }
.revenda.com-menu .troca-servidor .troca-previa { padding:16px; background:#fafbfb; }
.revenda.com-menu .troca-servidor .troca-previa p { font-size:14px; line-height:20px; margin:0 0 6px; }
.revenda.com-menu .troca-servidor .troca-previa .botoes { margin-top:12px; }
.revenda.com-menu .troca-servidor .troca-previa .botoes button { flex:1 1 0; }
.revenda.com-menu .troca-servidor #troca-feita { font-size:14px; line-height:20px; padding:12px 16px; }

/* Ajustes da tela Resumo: sem título e nome no topo, igual às outras telas */
.revenda.com-menu #painel[data-vista="resumo"] { padding-top:24px; }
.revenda.com-menu #painel[data-vista="resumo"] .titulo-painel { display:none; }

/* Janela de pacotes e extrato: espaços e margens iguais às outras janelas */
.revenda.com-menu #pacotes > p:first-of-type { margin-top:16px; margin-bottom:4px; font-size:13px; color:var(--muted); }
.revenda.com-menu #pacotes .pacote-item { padding:12px 0; font-size:14px; }
.revenda.com-menu #pacotes .pacote-item:first-child { border-top:0; }
.revenda.com-menu #pacotes #pacotes-linhas { border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.revenda.com-menu #pacotes > label { margin-top:16px; margin-bottom:0; }
.revenda.com-menu #pacotes > label > span { font-size:13px; margin-bottom:6px; }
.revenda.com-menu #pacotes #cotacao { margin:12px 24px 0; padding:12px 16px; border:1px solid var(--border); border-radius:6px; background:#fafbfb; font-size:14px; line-height:20px; }
.revenda.com-menu #pacotes #cotacao:empty { display:none; }
.revenda.com-menu #pacotes > p.muted { margin-top:12px; font-size:13px; }
.revenda.com-menu #pacotes .contato-revenda { padding:0; margin-bottom:24px; font-size:14px; }
.revenda.com-menu #extrato .extrato-item:first-child, .revenda.com-menu #extrato #extrato-linhas > :first-child { border-top:0; }
.revenda.com-menu #extrato #extrato-linhas { margin-top:4px; }
.revenda.com-menu #extrato .extrato-item { padding:12px 0; font-size:14px; }
.revenda.com-menu #extrato .paginacao { margin:12px 24px 24px; }
