/* ============================================
   Painel Host - complemento do tema da casa
   (gráficos, rankings e filtros). Usa as mesmas
   variáveis de cor do style.css.
   ============================================ */

/* Cores das séries dos gráficos, em ordem fixa (validadas para daltonismo
   e contraste contra o fundo dos cards em cada tema). */
:root, [data-theme="dark"] {
  --serie-1: #29b868; --serie-2: #5b9cf5; --serie-3: #c99214;
  --serie-4: #a86ede; --serie-5: #df7c33; --serie-6: #1fae9d;
  --serie-outros: #6c7280;
}
[data-theme="light"] {
  --serie-1: #16a34a; --serie-2: #2563eb; --serie-3: #d97706;
  --serie-4: #7c3aed; --serie-5: #ea580c; --serie-6: #0d9488;
  --serie-outros: #94a3b8;
}

.header-logo span { font-family: 'Exo 2', 'Segoe UI', sans-serif; font-weight: 800; letter-spacing: .3px; }
.sidebar-versao { padding: 14px 20px 4px; font-size: 11px; color: var(--texto-muted); }
.sidebar.collapsed .sidebar-versao { display: none; }
.ico-menu { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grade-2, .grade-3 { grid-template-columns: 1fr; } }
.card { margin-bottom: 20px; }
.card-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-sub { font-size: 12px; color: var(--texto-sec); }

/* Barra de filtros (uma linha, acima dos gráficos) */
.filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filtros .form-group { margin-bottom: 0; min-width: 130px; }
.filtros .form-group.largo { min-width: 220px; flex: 1; }
.filtros .form-label { font-size: 11px; margin-bottom: 4px; }

/* Ranking: tabela com barra de proporção (uma cor só = grandeza) */
.rank td, .rank th { white-space: nowrap; }
.rank td.chave { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.rank td.num, .rank th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank td.barra { width: 34%; min-width: 120px; }
.rank .trilho { height: 10px; display: flex; align-items: center; }
.rank .fill { height: 10px; min-width: 2px; background: var(--serie-1); border-radius: 0 4px 4px 0; }
.rank a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--texto-muted); }
.rank a:hover { color: var(--verde); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.nota { font-size: 12px; color: var(--texto-sec); margin-top: 10px; line-height: 1.5; }

/* Gráfico de linhas (coletor.js) */
.grafico { position: relative; width: 100%; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .eixo text { fill: var(--texto-sec); font-size: 11px; font-variant-numeric: tabular-nums; }
.grafico .grade line { stroke: var(--borda); stroke-width: 1; }
.grafico .area { stroke: none; }
.grafico .linha { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .mira { stroke: var(--texto-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.grafico .ponto { stroke: var(--bg-card); stroke-width: 2; }
.grafico-dica {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px;
  background: var(--bg-header); border: 1px solid var(--borda); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: var(--texto); box-shadow: var(--shadow); display: none;
}
.grafico-dica .quando { color: var(--texto-sec); margin-bottom: 4px; }
.grafico-dica .lin { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.grafico-dica .lin b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 12px; color: var(--texto-sec); }
.legenda .it { display: inline-flex; align-items: center; gap: 6px; }
.legenda a.it-clique { color: var(--texto-principal); text-decoration: none; padding: 2px 8px; margin: -2px -8px; border-radius: 999px; border: 1px solid transparent; }
.legenda a.it-clique:hover, .legenda a.it-clique:focus-visible { border-color: var(--borda-input); background: rgba(127,127,127,.14); }
.sel-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sel-apps .form-control { width: 280px; }
.chip-app { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border: 1px solid var(--borda-input); border-radius: 999px; background: rgba(127,127,127,.12); }
.chip-app .chip-x { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 6px; border-radius: 50%; }
.chip-app .chip-x:hover { background: rgba(127,127,127,.3); }
.marca { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.grafico-vazio { padding: 40px 10px; text-align: center; color: var(--texto-sec); font-size: 13px; }
details.dados { margin-top: 10px; font-size: 12px; color: var(--texto-sec); }
details.dados summary { cursor: pointer; }
details.dados .rolagem { max-height: 260px; overflow: auto; margin-top: 8px; }

/* Estado (bolinha + texto: nunca só a cor) */
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--texto-muted); }
.estado.ok::before { background: var(--verde); }
.estado.ruim::before { background: var(--vermelho); }
.estado.atencao::before { background: var(--amarelo); }

.def { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13.5px; }
.def dt { color: var(--texto-sec); }
.def dd { margin: 0; color: var(--texto); }
.codigo { background: var(--bg-input); border: 1px solid var(--borda); border-radius: 8px; padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; color: var(--texto); }
.form-control.curto { max-width: 220px; }
.acoes-linha { display: flex; gap: 6px; justify-content: flex-end; }
.table td .btn-sm { padding: 4px 10px; }
.stat-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grade-3 .rank td.barra { min-width: 50px; width: auto; }
.grade-3 .rank td, .grade-3 .rank th { padding-left: 12px; padding-right: 12px; }

/* ── Cor de destaque x cores de estado ─────────────────────────────
   A cor de destaque (Personalizar) troca --verde e --dq e vale para tudo
   que é do sistema: menu, botões, abas, foco, cartões, barras, avisos de
   "salvo" e o ícone da aba. Só o que indica ESTADO fica verde fixo
   (bolinha "enviando"/"ativo", selo de sucesso e cartões de estado), para
   "tudo certo" não mudar de cor junto com o tema. */
:root, [data-theme="dark"] { --ok: #3ddc84; --ok-rgb: 61, 220, 132; }
[data-theme="light"] { --ok: #15803d; --ok-rgb: 22, 163, 74; }
.estado.ok::before { background: var(--ok); }
.badge-success { background: rgba(var(--ok-rgb), 0.16); color: var(--ok); }
.stat-card.ok { --vida-cor: var(--ok-rgb); }
.stat-card.ok::before { background: var(--ok); }
.stat-card.ok .stat-icon { background: rgba(var(--ok-rgb), 0.18); color: var(--ok); }
[data-theme="light"] .alert-success { color: var(--verde); }
input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--verde); }
.rank .fill { background: var(--verde); }

/* ── Tela Personalizar ── */
.tema-opcoes { display: flex; gap: 18px; flex-wrap: wrap; }
.tema-opcao { width: 230px; border: 2px solid var(--borda); border-radius: 12px; padding: 14px; cursor: pointer; display: block; background: var(--bg-input); }
.tema-opcao:has(input:checked) { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(var(--dq), 0.18); }
.tema-opcao input { accent-color: var(--verde); margin-bottom: 8px; }
.tema-previa { height: 110px; border-radius: 8px; overflow: hidden; display: flex; border: 1px solid var(--borda); }
.tema-previa i { display: block; }
.tema-previa.escuro { background: #202020; } .tema-previa.escuro i { width: 26%; background: #2a2a2a; }
.tema-previa.claro { background: #ededf0; } .tema-previa.claro i { width: 26%; background: #fff; }
.tema-previa.claro::after { content: ''; flex: 1; height: 18%; background: #fff; }
.tema-opcao b { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--texto); }
.cores { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.cor { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; position: relative; display: inline-block; border: 0; }
.cor input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.cor:has(input[type=radio]:checked) { box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--texto); }
.cor.livre { background: conic-gradient(#f472b6, #fb923c, #facc15, #3ddc84, #38bdf8, #a78bfa, #f472b6); }
.logo-previa { height: 110px; border-radius: 10px; border: 2px dashed var(--borda-input); display: flex; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 12px; padding: 12px; }
.logo-previa img { max-height: 80px; max-width: 90%; }
.logo-previa.escura { background: #1f1f1f; color: #9aa0aa; } .logo-previa.clara { background: #fff; color: #5b6472; }
[data-theme="dark"] .logo-tema-claro, [data-theme="light"] .logo-tema-escuro { display: none; }
.btn-tema { display: inline-flex; align-items: center; justify-content: center; width: 38px; padding-left: 0; padding-right: 0; }
[data-theme="dark"] .btn-tema .lua, [data-theme="light"] .btn-tema .sol { display: none; }

.card-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--texto); }
.sidebar-user.com-foto { display: flex; align-items: center; gap: 12px; }
.sidebar.collapsed .sidebar-user.com-foto > div { display: none; }
.foto-campo { display: flex; align-items: center; gap: 16px; }

/* Nome de DNS e ASN ao lado do endereço (preenchidos depois que a página aparece) */
.ip-info { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; color: var(--texto-sec); white-space: normal; line-height: 1.35; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.ip-info:empty { display: none; }
.ip-info .asn { color: var(--texto-muted); }

/* Pizza (rosca) com legenda: nome, volume e porcentagem */
.pizza { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pizza-area { flex: 0 0 220px; max-width: 220px; margin: 0 auto; }
.pizza svg { display: block; width: 100%; height: auto; }
.pizza .fatia path { stroke: var(--bg-card); stroke-width: 2; stroke-linejoin: round; transition: opacity .15s; cursor: pointer; }
.pizza .fatia.apagada { opacity: .35; }
.pizza .pct { fill: #fff; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 2.5px; }
.pizza .centro-v { fill: var(--texto); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pizza .centro-r { fill: var(--texto-sec); font-size: 11.5px; }
.pizza-leg { flex: 1 1 240px; border-collapse: collapse; font-size: 13px; min-width: 0; }
.pizza-leg td { padding: 6px 8px; border-bottom: 1px solid var(--borda); color: var(--texto); }
.pizza-leg tr:last-child td { border-bottom: 0; }
.pizza-leg td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pizza-leg .marca { margin-right: 8px; vertical-align: middle; }
.pizza-leg .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--texto-sec); }
.pizza-leg .num.forte { color: var(--texto); font-weight: 600; }
.pizza-leg tr { cursor: default; }
.pizza-leg tr.ativa td { background: rgba(var(--dq), 0.08); }

/* Atualizar sistema: quantas cópias manter */
.manter-copias { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--texto-sec); flex-wrap: wrap; }
.manter-copias + form { margin-left: 8px; }
.manter-copias .form-control { width: 76px; padding: 5px 8px; height: auto; text-align: center; }
.manter-copias label { margin: 0; }

/* Matriz operadora x ASN: quanto mais forte o fundo, maior a parte do ASN naquele link */
.table.matriz td.cel { background: rgba(var(--dq), calc(var(--f, 0) * 0.5)); font-variant-numeric: tabular-nums; border-left: 2px solid var(--bg-card); }
.table.matriz th.num { white-space: normal; max-width: 130px; line-height: 1.25; }
.table.matriz tr.total td { border-top: 2px solid var(--borda); }
.estado.alerta { color: #d9a514; }

/* ── Modo TV ─────────────────────────────── */
.tv-auto { width: auto; height: 34px; padding: 0 10px; font-size: 13px; }
#tv-barra, #tv-prog { display: none; }
html.modo-tv .header, html.modo-tv .sidebar, html.modo-tv .btn-menu-toggle, html.modo-tv .main-content > .nota { display: none !important; }
html.modo-tv .main-content { margin: 0 !important; width: 100% !important; padding: 20px 30px !important; min-height: 100vh; }
html.modo-tv #tv-prog { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--verde);
  transform-origin: left center; transform: scaleX(0); z-index: 3001; }
@keyframes tvprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.modo-tv #tv-barra { display: flex; align-items: center; gap: 6px; position: fixed; top: 74px; right: 18px; z-index: 3000;
  padding: 8px 10px; background: var(--bg-card); border: 1px solid var(--borda); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s; font-size: 13px; color: var(--texto-sec); }
html.modo-tv #tv-barra.visivel { opacity: 1; pointer-events: auto; }
html.modo-tv.sem-cursor, html.modo-tv.sem-cursor * { cursor: none !important; }

/* ── Painel de TV (admin/tv.php) ─────────── */
html.painel-tv body.tv-corpo { margin: 0; min-height: 100vh; background: var(--bg-body, var(--bg)); }
.tv-pagina, .tv-topo { font-size: 14px; }
/* O tamanho da letra acompanha a tela: cabem todas as linhas de cartões sem rolar. (Navegador de TV antigo, sem min(), fica nos 14 px.) */
.tv-pagina, .tv-topo { font-size: min(.74vw, calc(100vh / (var(--linhas, 3) * 31 + 9))); }
.tv-pagina { padding: 1.2em 1.6em 1.6em; }
.tv-topo { display: flex; align-items: center; gap: 1.4em; height: 4.6em; padding: 0 1.8em;
  background: var(--bg-header); border-bottom: 1px solid var(--borda); box-shadow: var(--shadow); }
.tv-logo { display: flex; align-items: center; text-decoration: none; color: var(--verde); font-weight: 700; font-size: 1.7em; }
.tv-hora { margin-left: auto; color: var(--texto-sec); font-size: 1.05em; }
.tv-x { display: inline-flex; align-items: center; justify-content: center; width: 2.4em; height: 2.4em; border-radius: 50%; font-size: 1.3em; line-height: 1;
  color: var(--texto-sec); text-decoration: none; background: var(--bg-hover); border: 1px solid var(--borda); }
.tv-x:hover { color: var(--texto); }
.tv-grade { display: grid; grid-template-columns: minmax(0, 1fr) 24em; gap: 1.3em; align-items: start; }
.tv-cards { display: grid; grid-template-columns: repeat(var(--colunas, 3), minmax(0, 1fr)); gap: 1.3em; }
.tv-card { position: relative; background: var(--bg-card); border: 1px solid var(--borda); border-top: 3px solid var(--cd); border-radius: 1em;
  padding: 1.3em 1.5em 1.4em; box-shadow: var(--shadow); overflow: hidden; }
.tv-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7em; background: linear-gradient(180deg, var(--cd), transparent); opacity: .16; pointer-events: none; }
.tv-card h2 { margin: 0; font-size: 1.55em; font-weight: 800; letter-spacing: .01em; color: var(--texto); position: relative; }
.tv-sub { color: var(--texto-sec); font-size: 1.05em; margin-top: .35em; position: relative; }
.tv-sla { display: inline-block; margin-top: .7em; padding: .15em .6em; border-radius: .4em; font-size: .85em; color: var(--texto-sec); background: var(--bg-hover); border: 1px solid var(--borda); position: relative; }
.tv-card .mini { height: 10em; margin: .9em 0 .8em; position: relative; }
.tv-card .mini svg { width: 100%; height: 100%; display: block; }
.mini .area { stroke: none; } .mini .linha { fill: none; stroke-width: 2; stroke-linejoin: round; }
.tv-valores { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; position: relative; }
.tv-rot { font-size: .9em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tv-v.down .tv-rot, .tv-v.down .tv-num { color: var(--cd); } .tv-v.up .tv-rot, .tv-v.up .tv-num { color: var(--cu); }
.tv-num { font-size: 2.35em; font-weight: 800; line-height: 1.15; margin: .12em 0 .3em; text-shadow: 0 0 .6em rgba(0,0,0,.25); }
.tv-barra, .tv-trilho { height: .5em; border-radius: 1em; background: var(--borda); overflow: hidden; display: flex; }
.tv-barra i { display: block; height: 100%; border-radius: 1em; background: var(--verde); }
.tv-barra.alerta i { background: #f59e0b; } .tv-barra.ruim i { background: #ef4444; }
.tv-pico { margin-top: .55em; font-size: .95em; color: var(--texto-sec); }
.tv-top { background: var(--bg-card); border: 1px solid var(--borda); border-top: 3px solid var(--azul, #38bdf8); border-radius: 1em; padding: 1.2em 1.3em; box-shadow: var(--shadow); }
.tv-top h2 { margin: 0 0 .8em; font-size: 1.3em; }
.tv-item { display: flex; gap: .9em; padding: .9em 0; border-top: 1px solid var(--borda); }
.tv-item:first-of-type { border-top: 0; padding-top: 0; }
.tv-n { color: var(--azul, #38bdf8); font-weight: 800; width: 1.2em; flex: none; }
.tv-t { flex: 1; min-width: 0; } .tv-t strong { display: block; font-size: 1.05em; }
.tv-t small { display: block; color: var(--texto-sec); font-size: .88em; margin: .2em 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-trilho { margin: .45em 0; } .tv-trilho i { display: block; height: 100%; } .tv-trilho .d { background: var(--cd); } .tv-trilho .u { background: var(--cu); }
.tv-nota { margin: 1em 0 0; font-size: .85em; color: var(--texto-sec); }
@media (max-width: 1100px) { .tv-grade { grid-template-columns: 1fr; } }

/* Janela de gráfico (ASN e bloco de IP) */
.modal.gm { position: relative; max-width: 980px; width: 94vw; padding: 22px 26px 24px; border-top: 3px solid var(--gm-topo, var(--serie-1)); }
.gm-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--borda, rgba(255,255,255,.25)); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.gm-t { margin: 0 44px 2px 0; font-size: 1.35rem; }
.gm-dono.ip-info { max-width: none; font-size: .95rem; margin: 0 44px 6px 0; }
.gm-s { opacity: .7; font-size: .9rem; margin-bottom: 12px; }
.gm-p { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gm-chip { border: 1px solid var(--borda, rgba(255,255,255,.2)); background: transparent; color: inherit; border-radius: 999px; padding: 5px 14px; font-size: .85rem; cursor: pointer; }
.gm-chip.on { border-color: var(--serie-2); background: rgba(91,156,245,.15); }
.gm-aviso { font-size: .78rem; opacity: .65; min-height: 1.1em; margin: 4px 0 6px; }
.gm-g { min-height: 240px; }
.gm-est { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.gm-rot { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gm-bloco.a .gm-rot, .gm-bloco.a .gm-val { color: var(--serie-1); }
.gm-bloco.b .gm-rot, .gm-bloco.b .gm-val { color: var(--serie-2); }
.gm-val { font-size: 1.9rem; font-weight: 700; margin: 2px 0; }
.gm-sub { font-size: .8rem; opacity: .7; }
.btn-grafico { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--borda, rgba(255,255,255,.25)); border-radius: 999px; font-size: .72rem; text-decoration: none; opacity: .85; white-space: nowrap; }
.btn-grafico:hover { opacity: 1; }
@media (max-width: 640px) { .gm-est { grid-template-columns: 1fr; } }

/* ── Painel Host ───────────────────────────────────────────────────── */
/* Atalhos do painel do cliente (estilo cPanel). */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 8px; background: var(--bg-section);
  border: 1px solid var(--borda); color: var(--texto); font-weight: 500; text-decoration: none; }
.tile svg { color: var(--verde); flex: none; }
.tile:hover { border-color: var(--verde); }
.tile.breve { opacity: .55; cursor: default; }
.tile.breve:hover { border-color: var(--borda); }
.tile small { margin-left: auto; font-size: 11px; color: var(--texto-muted); font-weight: 400; }
/* Barra de uso (disco, limites do plano). */
.uso { height: 8px; border-radius: 4px; background: var(--bg-section); margin-top: 6px; overflow: hidden; }
.uso i { display: block; height: 8px; border-radius: 4px; background: var(--verde); }
.uso.alto i { background: var(--amarelo); } .uso.cheio i { background: var(--vermelho); }
.uso-linha { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.uso-linha span { color: var(--texto-sec); }
/* Marca da empresa na lista (logo pequena ou iniciais na cor de destaque dela). */
.marca { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 150px; }
.marca i { flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-style: normal; font-weight: 700; }
.marca img { height: 30px; max-width: 110px; object-fit: contain; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .duas-colunas, .grade-2, .grade-3 { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13.5px; }
.dl dt { color: var(--texto-sec); } .dl dd { margin: 0; word-break: break-word; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.vazio { text-align: center; color: var(--texto-sec); padding: 26px 16px; }

.acoes-linha { flex-wrap: wrap; }
.table td .sub, .dl dd .sub { display: block; font-size: 12px; color: var(--texto-sec); font-weight: 400; }
.table td.quebra { word-break: break-all; min-width: 160px; }

/* ── Envio de e-mail: escolha do caminho de saída ── */
.opcoes-saida { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1100px) { .opcoes-saida { grid-template-columns: 1fr; } }
.opcao-saida { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--borda); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--bg-input); }
.opcao-saida:has(input:checked) { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(var(--dq), 0.18); }
.opcao-saida input { margin-top: 3px; }
.opcao-saida b { display: block; color: var(--texto); font-weight: 600; margin-bottom: 4px; }
.opcao-saida i { display: block; font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--texto-sec); }
.form-row.cols-4 { grid-template-columns: 2fr 90px 1.4fr 1.4fr; }
@media (max-width: 900px) { .form-row.cols-4 { grid-template-columns: 1fr 1fr; } }
