/* Painel do Plugue Email — app shell no estilo do AIZapHub (Supabase), reskinado
   para a marca azul do Plugue Email. Fonte Inter, tokens de cor/sombra, topbar +
   sidebar recolhível, cards, badges, dropdown, modal, toast. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --accent: #0656e9;
  --accent-hover: #0a45c4;
  --accent-soft: #e7efff;
  --accent-2: #2bbffc;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --sidebar: #fcfdff;
  --border: #ecedf3;
  --border-strong: #e0e2ea;
  --text: #0b1220;
  --text-2: #425066;
  --text-3: #8893a7;
  --danger: #dc2626;
  --danger-soft: #fdeceb;
  --ok: #16a34a;
  --ok-soft: #e7f7ee;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --radius: 10px;
  --topbar-h: 56px;
  --sidebar-w: 244px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-pop: 0 14px 40px rgba(16,24,40,.16);
  --hov: #f2f4f8;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3f82ff; --accent-hover: #5a95ff; --accent-soft: #11213f; --accent-2: #46c6ff;
    --bg: #070b14; --panel: #0c1322; --sidebar: #0a1120; --border: #1b2336; --border-strong: #2a3350;
    --text: #eaf0fb; --text-2: #b4c0d8; --text-3: #7e8aa3;
    --danger: #f87171; --danger-soft: rgba(220,38,38,.16); --ok: #34d399; --ok-soft: rgba(22,163,74,.16);
    --warn: #fbbf24; --warn-soft: rgba(180,83,9,.2);
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-pop: 0 18px 50px rgba(0,0,0,.55); --hov: #121a2b;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 14px;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------------- Topbar ---------------- */
.topbar {
  height: var(--topbar-h); background: var(--panel); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0;
  position: sticky; top: 0; z-index: 30;
}
.topbar .esq { display: flex; align-items: center; gap: 0; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; width: var(--sidebar-w); height: var(--topbar-h); padding: 0 16px; box-sizing: border-box; border-right: 1px solid var(--border); flex: none; transition: width .18s ease; }
.brand .logo { width: 28px; height: 28px; display: grid; place-items: center; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .nome { font-weight: 800; font-size: 15px; letter-spacing: -.3px; }
.brand .nome span { color: var(--accent); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; min-width: 0; }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .atual { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .dir { display: flex; align-items: center; gap: 10px; padding-right: 16px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 9px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.user-chip:hover, .user-chip.aberto { background: var(--hov); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.user-chip .uname { font-size: 13px; color: var(--text-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .user-caret { font-size: 14px; color: var(--text-3); flex: none; transition: transform .15s; }
.user-chip.aberto .user-caret { transform: rotate(180deg); }

/* ---------------- Botões ---------------- */
.btn-primary { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border: none; font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 15px; border-radius: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(6,86,233,.25); transition: background .12s, transform .06s; white-space: nowrap; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { font-size: 16px; }
.btn-ghost { font-family: inherit; font-size: 13px; color: var(--text-2); background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 13px; cursor: pointer; transition: background .12s; display: inline-flex; align-items: center; gap: 7px; }
.btn-ghost:hover { background: var(--hov); color: var(--text); }
.btn-sec { font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; padding: 9px 15px; cursor: pointer; }
.btn-sec:hover { background: var(--hov); }
.btn-danger { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border)); font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 13px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-perigo-solido { font-family: inherit; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--danger); border: none; border-radius: 8px; padding: 9px 15px; cursor: pointer; }
.btn-perigo-solido:hover { filter: brightness(.94); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* ---------------- Layout corpo + sidebar ---------------- */
.corpo { display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: calc(100vh - var(--topbar-h)); overflow: hidden; transition: grid-template-columns .18s ease; }
.sidebar { overflow-y: auto; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; }
.side-toggle { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 12px 0 -14px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2); border-radius: 50%; cursor: pointer; flex: none; position: relative; z-index: 2; transition: background .12s, color .12s; }
.side-toggle:hover { background: var(--hov); color: var(--text); }
.side-toggle svg { font-size: 16px; }
.side-toggle .ic-exp { display: none; }
body.side-collapsed .side-toggle .ic-col { display: none; }
body.side-collapsed .side-toggle .ic-exp { display: block; }
body.side-collapsed { --sidebar-w: 66px; }
body.side-collapsed .brand { justify-content: center; padding: 0; gap: 0; }
body.side-collapsed .brand .nome { display: none; }
body.side-collapsed .sidebar { padding: 14px 10px; }
body.side-collapsed .sidebar .nav-sec { display: none; }
body.side-collapsed .nav-item { justify-content: center; gap: 0; padding: 9px; }
body.side-collapsed .nav-item .lbl, body.side-collapsed .nav-item .soon { display: none; }
.sidebar .nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); padding: 12px 10px 6px; font-weight: 600; }
/* Menu idêntico ao PlugueCRM (padrão Metronic): item 12px, ícone 16px neutro, ativo cinza com acento */
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 500; transition: background .12s, color .12s; }
.nav-item svg { font-size: 16px; flex: none; color: var(--text-3); }
.nav-item:hover { background: var(--hov); color: var(--text); }
.nav-item:hover svg { color: var(--text-2); }
.nav-item.ativo { background: var(--hov); color: var(--text); font-weight: 600; }
.nav-item.ativo svg { color: var(--accent); }
.nav-item .soon { margin-left: auto; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--text-3); background: var(--hov); padding: 2px 7px; border-radius: 999px; }
.nav-item.off { cursor: default; opacity: .72; }
.nav-item.off:hover { background: transparent; color: var(--text-2); }
.sidebar .espaco { flex: 1; }

/* ===== Menu lateral colapsável (padrão Metronic da família Pluguee) ===== */
/* Seção que vira acordeão: cabeçalho clicável com +/- à direita */
.sidebar .nav-sec.nav-sec-tgl { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; border-radius: 8px; margin-top: 12px; padding: 8px 10px; transition: color .12s, background .12s; }
.sidebar .nav-sec.nav-sec-tgl:hover { color: var(--text-2); background: var(--hov); }
/* +/- : + quando colapsado, - quando aberto */
.nav-chev { margin-left: auto; flex: none; display: inline-flex; align-items: center; color: var(--text-3); }
.nav-chev svg { font-size: 13px; }
.nav-chev .ic-minus { display: none; }
.sidebar .nav-sec.nav-sec-tgl:not(.col) .nav-chev .ic-plus { display: none; }
.sidebar .nav-sec.nav-sec-tgl:not(.col) .nav-chev .ic-minus { display: inline-block; }
/* Corpo da seção (submenu): linha-guia vertical + indentação, com animação */
.nav-grp-body { overflow: hidden; transition: max-height .24s ease; position: relative; }
.nav-grp-body::before { content: ''; position: absolute; left: 19px; top: 2px; bottom: 2px; width: 1px; background: var(--border); }
.sidebar .nav-grp-body .nav-item { padding-left: 30px; position: relative; }
/* Dot de acento do item selecionado, na linha-guia */
.sidebar .nav-grp-body .nav-item.ativo::before { content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Modo sidebar só-ícone: grupos sempre abertos, sem guia/indent/dot */
body.side-collapsed .nav-grp-body { max-height: none !important; overflow: visible; }
body.side-collapsed .nav-grp-body::before { display: none; }
body.side-collapsed .sidebar .nav-grp-body .nav-item { padding-left: 9px; }
body.side-collapsed .sidebar .nav-grp-body .nav-item.ativo::before { display: none; }

/* Barra do backoffice (shell próprio): item "Voltar ao painel" */
#nav-backoffice .nav-item.voltar { color: var(--text-3); margin-bottom: 4px; }
#nav-backoffice .nav-item.voltar:hover { color: var(--text); }

/* ---------------- Conteúdo ---------------- */
.conteudo { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; }
.page { display: none; }
.page.ativa { display: flex; flex-direction: column; flex: 1; min-height: 0; }
/* Páginas "bloco" (antigas): rolam por dentro, com o respiro de sempre. */
.page:not(.tela-tabela) { overflow: auto; padding: 30px 34px 60px; }
/* Páginas de tabela: cabeçalho fixo, tabela rola, paginação no rodapé. */
/* Tela cheia, fiel ao backoffice do AIZapHub: card preenche a altura, a lista
   rola DENTRO do card, e o rodapé (paginação) fica abaixo do card com uma linha
   separadora + respiro, tudo dentro do padding da página. */
.page.tela-tabela { overflow: hidden; padding: 30px 34px 18px; }
.page.tela-tabela > .page-head { flex: none; margin-bottom: 16px; }
.page.tela-tabela .barra-filtros { flex: none; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
/* Abas que preenchem a altura (Backoffice) */
.page.tela-tabela > .bo-cards, .page.tela-tabela > .tabs { flex: none; }
.bo-pane { display: none; }
.bo-pane.ativo { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.lista-card { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.lista-card > .lista-itens { flex: 1; min-height: 0; overflow-y: auto; }
.lista-card .linha-item { padding: 14px 18px; }
.lista-card .atv-tbl { width: 100%; }
.lista-card .atv-tbl thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.page.tela-tabela .page-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.lista-itens .vazio { border: none; background: transparent; box-shadow: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.page-head .desc { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }

/* ---------------- Cards de info ---------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.painel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.painel .ph { padding: 16px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.painel .pbody { padding: 16px 18px; }
.painel .linha { padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.painel .linha:last-child { border-bottom: none; }
.painel .linha .rot { color: var(--text-3); }
.painel .linha .val { color: var(--text); font-weight: 500; }

/* ---------------- Badges / pills ---------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.ok .dot { background: var(--ok); }
.badge.pend { color: var(--warn); background: var(--warn-soft); }
.badge.pend .dot { background: var(--warn); animation: pulsar 1.2s infinite; }
.badge.err { color: var(--danger); background: var(--danger-soft); }
.badge.err .dot { background: var(--danger); }
@keyframes pulsar { 50% { opacity: .35; } }

/* ---------------- Formulários ---------------- */
.f-campo { display: flex; flex-direction: column; margin-bottom: 14px; }
.f-lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.f-inp { width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--panel); border: 1.5px solid var(--border-strong); border-radius: 9px; outline: none; transition: border-color .12s, box-shadow .12s; }
.f-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.f-inp::placeholder { color: var(--text-3); }

/* ---------- Checkbox / radio modernos (marca) ---------- */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 18px; height: 18px; border: 1.5px solid var(--border-strong);
  border-radius: 5px; background: var(--panel); cursor: pointer;
  display: inline-grid; place-content: center; vertical-align: middle;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--accent); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after {
  content: ""; width: 5px; height: 9px; margin-top: -1px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="radio"]:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- Avisos ---------------- */
.aviso { padding: 10px 13px; border-radius: 9px; font-size: 13.5px; margin-bottom: 14px; display: none; }
.aviso.erro { display: block; background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.aviso.ok { display: block; background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }

/* ---------------- Estado vazio ---------------- */
.vazio { text-align: center; padding: 64px 20px; background: var(--panel); border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-3); }
.vazio .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 16px; }
.vazio .ico svg { font-size: 26px; color: var(--accent); }
.vazio h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.vazio p { margin-bottom: 18px; font-size: 13.5px; }

/* ---------------- Domínios ---------------- */
.dom { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.dom-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.dom-top .nome { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.dom-top .acts { margin-left: auto; display: flex; gap: 8px; }
.dom-dns { border-top: 1px solid var(--border); padding: 16px 18px; background: var(--bg); display: none; }
.dom-dns.open { display: block; }
.dns-hint { font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }
.dns-hint b { color: var(--text); }
.rec-head, .rec { display: grid; grid-template-columns: 70px 1fr 1fr 165px; gap: 10px; align-items: center; }
.rec-head { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.rec { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.rec:last-child { border-bottom: none; }
.rec .tag { font-weight: 700; font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; text-align: center; }
.rec .cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rec .val { font-family: var(--mono); font-size: 11.5px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cp { background: transparent; border: 1px solid var(--border-strong); border-radius: 6px; padding: 5px 7px; cursor: pointer; color: var(--text-3); flex: none; }
.cp:hover { color: var(--accent); border-color: var(--accent); }
.cp svg { font-size: 13px; }

/* ---------------- Dropdown ---------------- */
.dropdown { position: fixed; z-index: 50; min-width: 190px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; display: none; }
.dropdown.aberto { display: block; }
.dropdown button { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; color: var(--text-2); padding: 9px 10px; border-radius: 7px; display: flex; align-items: center; gap: 9px; }
.dropdown button svg { font-size: 16px; flex: none; }
.dropdown button:hover { background: var(--hov); color: var(--text); }
.dropdown button.perigo { color: var(--danger); }
.dropdown button.perigo:hover { background: var(--danger-soft); }

/* ---------------- Modal ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(8,14,26,.5); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 90; }
.overlay.aberto { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 440px; box-shadow: var(--shadow-pop); animation: subir .2s ease both; }
@keyframes subir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal .mh { padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 700; }
.modal .mb { padding: 20px; }
.modal .mb p.confirm-txt { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.modal .mf { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------------- Toast ---------------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 120; box-shadow: var(--shadow-pop); }
.toast.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Responsivo ---------------- */
@media (max-width: 820px) {
  html, body { height: auto; }
  .corpo { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .brand { width: auto; border-right: none; }
  .sidebar { flex-direction: row; overflow-x: auto; padding: 8px; border-right: none; border-bottom: 1px solid var(--border); gap: 6px; }
  .side-toggle { display: none; }
  .nav-item { white-space: nowrap; }
  .nav-item .soon { display: none; }
  .conteudo { overflow: visible; }
  .page:not(.tela-tabela) { padding: 22px 16px 50px; }
  .page.tela-tabela { overflow: visible; padding: 18px 16px 24px; }
  .page.tela-tabela > .page-head { margin-bottom: 12px; }
  .page.tela-tabela > .lista-card { overflow: visible; }
  .page.tela-tabela > .lista-card > .lista-itens { overflow: visible; }
  /* Versões/Changelog (molde): no mobile a página rola, não a lista interna */
  .cl-page { min-height: auto; }
  .cl-page .cl-painel { overflow: visible; }
  .cl-page .cl-painel > .lista-itens { overflow: visible; }
  .user-chip .uname { display: none; }
  .rec-head, .rec { grid-template-columns: 56px 1fr auto; }
  .rec .cell.nome { grid-column: 1 / -1; }
}

/* ===== Atividade / Logs de e-mail ===== */
.atv-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.atv-tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.atv-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.atv-tbl tbody tr { cursor: pointer; transition: background .1s; }
.atv-tbl tbody tr:hover { background: var(--hov); }
.atv-tbl tbody tr:last-child td { border-bottom: none; }
.atv-tbl .cel-assunto { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.atv-tbl .cel-dest { font-weight: 500; color: var(--text); }
.atv-tbl .cel-sec { color: var(--text-3); font-size: 12.5px; }
.atv-pag-btn { display: inline-flex; gap: 8px; }

/* Gaveta lateral de detalhe */
.drawer { position: fixed; inset: 0; background: rgba(8,14,26,.5); display: none; z-index: 70; }
.drawer.aberto { display: block; }
.drawer-painel { position: absolute; top: 0; right: 0; height: 100%; width: min(600px, 100%); background: var(--panel); border-left: 1px solid var(--border); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: deslizar .2s ease both; }
@keyframes deslizar { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h2 { font-size: 16px; font-weight: 700; }
.drawer-x { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: 7px; }
.drawer-x:hover { background: var(--hov); color: var(--text); }
.drawer-body { padding: 18px 20px; overflow: auto; }
.atv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 20px; }
.atv-meta .rot { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }
.atv-meta .val { font-size: 13.5px; color: var(--text); word-break: break-word; }
.atv-sub { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; margin: 18px 0 10px; }
.atv-evt { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 9px; }
.atv-evt .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.atv-evt .qd { color: var(--text-3); font-size: 12.5px; }
.atv-evt .vj { font-size: 12px; color: var(--accent); cursor: pointer; background: none; border: none; padding: 0; }
.atv-json { background: #0d1626; color: #cfe3ff; border-radius: 9px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 340px; margin-top: 10px; }
.modal.largo { max-width: 860px; }
.corpo-frame { width: 100%; height: 70vh; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

/* ===== Raio-X do E-mail ===== */
.rx-card { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.rx-score { width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 30px; line-height: 1; border: 2px solid; }
.rx-score small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; opacity: .8; }
.rx-valido { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.rx-arriscado { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.rx-invalido { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.rx-info { flex: 1; min-width: 220px; }
.rx-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0 10px; }
.rx-chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--hov); color: var(--text-2); border: 1px solid var(--border); }
.rx-chip.alerta { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.rx-motivos { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-2); }
.rx-motivos li { padding: 3px 0 3px 18px; position: relative; }
.rx-motivos li::before { content: "•"; position: absolute; left: 4px; color: var(--text-3); }
.rx-sug { font-size: 13px; margin-top: 8px; }
.rx-sug b { color: var(--accent); }
.rx-prog { height: 7px; background: var(--hov); border-radius: 20px; overflow: hidden; margin: 10px 0; }
.rx-prog i { display: block; height: 100%; background: var(--accent); border-radius: 20px; transition: width .3s; }
.rx-stat { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; margin-right: 14px; }
.rx-stat b { font-weight: 700; }
.rx-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.rx-tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.rx-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.rx-tbl tr:last-child td { border-bottom: none; }

/* ===== Backoffice ===== */
.bo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bo-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.bo-card .n { font-size: 22px; font-weight: 800; color: var(--text); }
.bo-card .l { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bo-tab.ativo { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bo-saude { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.saude-saudavel { color: var(--ok); }
.saude-atencao { color: var(--warn); }
.saude-risco { color: var(--danger); }
.saude-sem_dados { color: var(--text-3); font-weight: 500; }

/* ===== Assistente de IA (chat no rodapé) ===== */
/* FAB do assistente = mascote animado da família (pluguee-mascote). Só posiciona/dimensiona:
   o componente tem fundo transparente e se dimensiona por --pluguee-size. */
.ia-fab { position: fixed; left: 20px; bottom: 20px; --pluguee-size: 72px; cursor: pointer; z-index: 2147482000; border: none; background: none; padding: 0; transition: transform .15s; }
.ia-fab:hover { transform: scale(1.06); }
.ia-fab.oculto { display: none; }
.ia-chat { position: fixed; left: 22px; bottom: 22px; width: 390px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 44px); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); display: none; flex-direction: column; z-index: 81; overflow: hidden; animation: subir .2s ease both; }
.ia-chat.aberto { display: flex; }
.ia-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2, var(--panel)); }
.ia-ttl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.ia-ttl .ia-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.ia-acts { display: flex; gap: 2px; }
.ia-acts button { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.ia-acts button:hover { background: var(--hov); color: var(--text); }
.ia-acts svg { font-size: 18px; }
.ia-hist { border-bottom: 1px solid var(--border); max-height: 230px; overflow: auto; background: var(--bg); }
.ia-hist .item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.ia-hist .item:hover { background: var(--hov); }
.ia-hist .item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ia-hist .item .x { color: var(--text-3); padding: 2px 6px; border-radius: 6px; }
.ia-hist .item .x:hover { color: var(--danger); background: var(--danger-soft); }
.ia-hist .vazio-h { padding: 14px; font-size: 13px; color: var(--text-3); text-align: center; }
.ia-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ia-bolha { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ia-bolha.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.ia-bolha.bot { align-self: flex-start; background: var(--hov); color: var(--text); border-bottom-left-radius: 5px; }
.ia-bolha.bot.pensando { color: var(--text-3); font-style: italic; }
.ia-vazio { margin: auto; text-align: center; color: var(--text-3); font-size: 13.5px; padding: 20px; }
.ia-vazio svg { font-size: 40px; color: var(--accent); margin-bottom: 12px; opacity: .8; }
.ia-sugestoes { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.ia-sug { font-size: 12.5px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; color: var(--text-2); background: var(--panel); text-align: left; }
.ia-sug:hover { background: var(--hov); color: var(--text); }
.ia-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.ia-input textarea { flex: 1; resize: none; max-height: 120px; font-family: inherit; font-size: 13.5px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); line-height: 1.4; }
.ia-input textarea:focus { outline: none; border-color: var(--accent); }
.ia-input button { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ia-input button:disabled { opacity: .5; cursor: default; }
.ia-input svg { font-size: 18px; }
@media (max-width: 480px) { .ia-chat { right: 8px; bottom: 8px; height: calc(100vh - 16px); } .ia-fab { right: 16px; bottom: 16px; } }

/* Indicador "digitando" (3 pontinhos animados) */
.ia-bolha.pensando { padding: 12px 14px; }
.ia-typing { display: inline-flex; gap: 4px; align-items: center; }
.ia-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); display: inline-block; animation: iablink 1.2s infinite ease-in-out; }
.ia-typing i:nth-child(2) { animation-delay: .2s; }
.ia-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes iablink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Formatação Markdown nas respostas do assistente */
.ia-bolha.bot { white-space: normal; }
.ia-bolha.bot p { margin: 0 0 8px; }
.ia-bolha.bot p:last-child, .ia-bolha.bot > *:last-child { margin-bottom: 0; }
.ia-bolha.bot .md-h { font-weight: 700; margin: 10px 0 4px; line-height: 1.3; }
.ia-bolha.bot .md-h:first-child { margin-top: 0; }
.ia-bolha.bot .md-h1 { font-size: 15px; }
.ia-bolha.bot .md-h2 { font-size: 14.5px; }
.ia-bolha.bot .md-h3, .ia-bolha.bot .md-h4 { font-size: 13.5px; }
.ia-bolha.bot ul, .ia-bolha.bot ol { margin: 4px 0 8px; padding-left: 20px; }
.ia-bolha.bot li { margin: 3px 0; }
.ia-bolha.bot strong { font-weight: 700; }
.ia-bolha.bot em { font-style: italic; }
.ia-bolha.bot a { color: var(--accent); text-decoration: underline; }
.ia-bolha.bot code { background: color-mix(in srgb, var(--text) 12%, transparent); padding: 1px 5px; border-radius: 5px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* Botão de ação destrutiva (lixeira) — padrão em todas as telas */
.btn-lixeira { background: transparent; border: 1px solid var(--border-strong); color: var(--text-3); border-radius: 8px; padding: 6px; cursor: pointer; display: inline-grid; place-items: center; line-height: 0; transition: background .12s, color .12s, border-color .12s; }
.btn-lixeira:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.btn-lixeira:disabled { opacity: .5; cursor: default; }
.btn-lixeira svg { font-size: 15px; }
/* Botão de ação em ícone (tabelas) — texto via tooltip */
.btn-ico { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); border-radius: 8px; padding: 6px; cursor: pointer; display: inline-grid; place-items: center; line-height: 0; transition: background .12s, color .12s, border-color .12s; }
.btn-ico:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.btn-ico:disabled { opacity: .5; cursor: default; }
.btn-ico svg { font-size: 15px; }
.btn-ico.destaque { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.btn-ico.destaque:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
/* Linhas de tabela clicáveis (abrem detalhe/editar) */
.linhas-clicaveis tbody tr { cursor: pointer; }
.linhas-clicaveis tbody tr:hover { background: var(--hov); }

/* Lixeira no histórico de conversas do chat */
.ia-hist .item .x { display: inline-grid; place-items: center; line-height: 0; }
.ia-hist .item .x svg { font-size: 14px; }

/* Botões de ação dentro de linhas de tabela (alinhados à direita, com respiro) */
.tbl-acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.tbl-acts > * { flex: none; }
.atv-tbl td:last-child { white-space: nowrap; }
.atv-tbl td { vertical-align: middle; }

/* ===== Modal/Drawer genérico de formulário ===== */
.modal .mh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal.form { max-width: 560px; }
.modal .mbody { padding: 18px 20px; max-height: 72vh; overflow: auto; }
.modal .form-acts, .drawer .form-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.drawer-body .form-acts { position: sticky; bottom: 0; background: var(--panel); padding-top: 14px; margin-top: 18px; border-top: 1px solid var(--border); }
/* Estado vazio dentro da área de tabela */
.tabela-wrap .vazio { border: none; background: transparent; }

/* ===== Linhas de lista + paginação (padrão backoffice AIZapHub) ===== */
.linha-item { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--border); }
.linha-item:last-child { border-bottom: none; }
.li-corpo { flex: 1; min-width: 0; }
.li-titulo { font-weight: 600; font-size: 14px; line-height: 1.35; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.li-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.li-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Rodapé de paginação (dentro de .page-foot) */
.pg-info { font-size: 13px; color: var(--text-3); }
.pg-info b { color: var(--text-2); font-weight: 600; }
.pg-dir { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pg-lbl { font-size: 12.5px; color: var(--text-3); }
.pg-chips { display: inline-flex; gap: 5px; }
.pg-chip { font-size: 12.5px; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2); cursor: pointer; }
.pg-chip.ativo { background: var(--accent-soft); color: var(--accent-hover); border-color: transparent; font-weight: 600; }
.pg-nav { display: inline-flex; align-items: center; gap: 10px; }
.pg-btn { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2); cursor: pointer; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.pg-btn:disabled { opacity: .4; cursor: default; }
.pg-atual { font-size: 12.5px; color: var(--text-2); min-width: 52px; text-align: center; }

/* === Item 13: Versões + Changelog no molde (tela-cheia, linha-item, filtros) === */
.cl-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cl-page > .page-head, .cl-page > .filtros-bar { flex: none; }
.cl-painel { flex: 1; min-height: 0; }
.filtros-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filtros-bar .filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.filtros-bar .chip { font-size: 13px; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--panel); cursor: pointer; color: var(--text-2); }
.filtros-bar .chip.ativo { background: var(--accent-soft); color: var(--accent-hover); border-color: transparent; font-weight: 600; }
/* Combobox de versão (custom, com busca — nada de select nativo) */
.cbx { position: relative; display: inline-block; }
.cbx-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 200px; justify-content: space-between; font-size: 13px; font-family: inherit; padding: 9px 13px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.cbx-btn:hover { border-color: var(--text-3); }
.cbx-btn.aberto { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cbx-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbx-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.cbx-btn.aberto .cbx-chev { transform: rotate(180deg); }
.cbx-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; width: 268px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 11px; box-shadow: var(--shadow-pop, 0 18px 50px rgba(16,24,40,.18)); overflow: hidden; }
.cbx-busca-wrap { position: relative; padding: 9px; border-bottom: 1px solid var(--border); }
.cbx-lupa { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.cbx-busca { width: 100%; font-size: 13px; font-family: inherit; padding: 8px 10px 8px 31px; border: 1px solid var(--border-strong); border-radius: 8px; outline: none; background: var(--bg); color: var(--text); }
.cbx-busca:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cbx-lista { max-height: 244px; overflow-y: auto; padding: 5px; }
.cbx-opt { font-size: 13px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbx-opt:hover { background: rgba(0,0,0,.045); }
.cbx-opt.sel { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.cbx-vazio { font-size: 13px; color: var(--text-3); padding: 14px 10px; text-align: center; }
/* Linhas de Versões / Changelog (badges e colunas) */
.cl-painel .linha-item { align-items: flex-start; }
.cl-painel .li-tipo-col { width: 118px; flex: none; padding-top: 1px; }
.cl-painel .li-desc { font-size: 13px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.cl-painel .tipo { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.cl-painel .tipo.funcionalidade { color: #159a5c; background: #e7f7ef; }
.cl-painel .tipo.melhoria { color: #1d4ed8; background: #e7eefe; }
.cl-painel .tipo.correcao { color: #b88900; background: #fff4d6; }
.cl-painel .tipo.interno { color: #525252; background: #eee; }
.cl-painel .origem { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.cl-painel .origem.manual { color: #159a5c; background: #e7f7ef; }
.cl-painel .origem.auto { color: #6b5b16; background: #fbf4dd; }
.cl-painel .li-hash { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; color: var(--text-3); }
.cl-painel .vstatus { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.cl-painel .vstatus.rascunho { color: #b88900; background: #fff4d6; }
.cl-painel .vstatus.liberada { color: #1fa855; background: #e7f7ee; }
.cl-painel .pub-dot { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-hover); font-weight: 600; }

/* Registros DNS no drawer (campos empilhados) */
.dns-rec { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.dns-rec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dns-field { margin-top: 8px; }
.dns-lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.dns-rec .cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dns-field-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.dns-field-top .dns-lbl { margin-bottom: 0; }
.dns-rec .val { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; word-break: break-all; line-height: 1.4; }

/* Filtros da Atividade (empilhados, fixos no topo da tela-tabela) */
.page.tela-tabela .barra-filtros.atv-filtros { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 14px; }

/* Select estilizado (seta própria, não o nativo do SO) */
select.f-inp { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238893a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; }
select.f-inp::-ms-expand { display: none; }
input[type="date"].f-inp { cursor: pointer; }
/* Ícones dentro de botões ghost/sec não ficam gigantes e o texto não quebra */
.btn-ghost, .btn-sec, .btn-primary { white-space: nowrap; }
.btn-ghost svg, .btn-sec svg { font-size: 16px; flex: none; }

/* ===== Dropdown custom (substitui a lista nativa do <select>) ===== */
.sel { position: relative; display: inline-block; }
.sel-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.sel-btn .sel-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-chev { font-size: 16px; flex: none; color: var(--text-3); transition: transform .15s; }
.sel.aberto .sel-btn { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sel.aberto .sel-chev { transform: rotate(180deg); }
.sel-pop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; max-width: 320px; z-index: 60; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 11px; box-shadow: var(--shadow-pop); overflow: hidden; display: none; padding: 5px; max-height: 280px; overflow-y: auto; }
.sel.aberto .sel-pop { display: block; }
.sel-opt { font-size: 13.5px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-opt:hover { background: var(--hov); color: var(--text); }
.sel-opt.sel { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.sel-opt.hl { background: var(--hov); color: var(--text); }
/* Variante com busca (5+ opções): campo fixo no topo + lista rolável */
.sel-pop.com-busca { padding: 0; overflow: hidden; max-height: none; }
.sel-busca { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--border); border-radius: 11px 11px 0 0; background: var(--panel); color: var(--text); font-family: inherit; font-size: 13.5px; padding: 10px 12px; outline: none; }
.sel-busca::placeholder { color: var(--text-3); }
.sel-busca:focus { border-bottom-color: var(--accent); }
.sel-pop.com-busca .sel-lista { max-height: 240px; overflow-y: auto; padding: 5px; }
.sel-vazio { font-size: 13px; color: var(--text-3); text-align: center; padding: 12px 10px; }

/* Abas (ex.: Usuários/Grupos) — padrão de tabs do painel */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.abas .aba { font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px; cursor: pointer; }
.abas .aba:hover { color: var(--text); }
.abas .aba.on { color: var(--accent); border-bottom-color: var(--accent); }

/* Card branco em volta das tabelas de Usuários/Grupos/Logs (padrão do painel) */
.ug-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ug-card .atv-tbl { width: 100%; }
.ug-card .atv-tbl th, .ug-card .atv-tbl td { padding-left: 18px; padding-right: 18px; }
.ug-card > p, .ug-card > .vazio { padding: 18px; margin: 0; }

/* ===== Auditoria: filtros + diff expansível (Padrão Pluguee) ===== */
.aud-filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.aud-lista { display: flex; flex-direction: column; }
.aud-linha { border-bottom: 1px solid var(--border); }
.aud-linha:last-child { border-bottom: none; }
.aud-linha-head { display: grid; grid-template-columns: 18px 150px 160px 1fr 120px; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13.5px; }
.aud-linha-head[role="button"] { cursor: pointer; }
.aud-linha-head[role="button"]:hover { background: var(--hov); }
.aud-chevron { color: var(--text-3); font-size: 17px; line-height: 1; transition: transform .14s; display: inline-block; text-align: center; }
.aud-linha-head.aberto .aud-chevron { transform: rotate(90deg); }
.aud-chevron-vazio { display: inline-block; width: 18px; }
.aud-quando { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.aud-user { color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-desc { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-alvo { color: var(--text-3); }
.aud-ip { color: var(--text-3); font-size: 12px; font-family: var(--mono); white-space: nowrap; text-align: right; }
.aud-linha-corpo { padding: 4px 14px 16px 42px; }
.lg-diff{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:4px 2px 6px}
.lg-diff.lg-diff-um{grid-template-columns:1fr;max-width:520px}
.lg-col{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--panel)}
.lg-col-h{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-3);padding:8px 12px;border-bottom:1px solid var(--border);background:var(--hov,#f3f4f6)}
.lg-field{display:flex;justify-content:space-between;gap:12px;padding:7px 12px;border-bottom:1px solid var(--border)}
.lg-field:last-child{border-bottom:none}
.lg-f-k{color:var(--text-3);font-size:12px;flex:none}
.lg-f-v{color:var(--text);text-align:right;word-break:break-word}
.lg-field.lg-rem{background:var(--danger-soft,#fee2e2)}
.lg-field.lg-rem .lg-f-v{color:var(--danger,#dc2626);font-weight:600;text-decoration:line-through}
.lg-field.lg-add{background:var(--ok-soft,#dcfce7)}
.lg-field.lg-add .lg-f-v{color:var(--ok,#16a34a);font-weight:600}
@media (max-width:640px){.lg-diff{grid-template-columns:1fr}}
.dif-sem { color: var(--text-3); font-size: 13px; padding: 4px 0; }
/* No backoffice, a linha de log também tem chevron à esquerda */
#bo-logs .linha-item[role="button"] { cursor: pointer; }
#bo-logs .linha-item .aud-chevron, #bo-logs .linha-item .aud-chevron-vazio { margin-right: 8px; }
@media (max-width: 720px) {
  .aud-linha-head { grid-template-columns: 16px 1fr auto; }
  .aud-user, .aud-ip { display: none; }
  .aud-linha-corpo { padding-left: 16px; }
}

/* Auditoria dentro da tabela padrão (tela-tabela) */
.aud-tbl .aud-row.tem-diff { cursor: pointer; }
.aud-tbl .aud-row.tem-diff:hover > td { background: var(--hov); }
.aud-td-seta { text-align: center; color: var(--text-3); padding-right: 0 !important; }
.aud-row .aud-chevron { display: inline-block; transition: transform .14s; font-size: 16px; line-height: 1; }
.aud-row.aberto .aud-chevron { transform: rotate(90deg); }
.aud-det > td { background: var(--bg); }
.aud-det-cel { padding: 10px 16px 16px !important; }

/* ===== Launcher Pluguee (grade de apps) — inline, igual ao PlugueCRM/Fiscal ===== */
.lnch-btn { background: transparent; border: none; cursor: pointer; color: var(--text-2); padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.lnch-btn:hover { background: var(--hov); color: var(--text); }
.lnch-btn svg { font-size: 20px; }
.lnch-pop { position: fixed; z-index: 3000; width: min(92vw, 396px); padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop, 0 18px 50px rgba(0,0,0,.18)); display: none; }
.lnch-pop.aberto { display: block; }
.lnch-head { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); padding: 0 2px 10px; }
.lnch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
/* Estilo Google: logo solto, sem caixa; círculo cinza claro só no hover. */
.lnch-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 12px; text-decoration: none; color: var(--text-2); position: relative; cursor: pointer; }
.lnch-ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; position: relative; }
.lnch-ico::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--hov); opacity: 0; transition: opacity .12s; z-index: 0; }
.lnch-app.on:hover .lnch-ico::before { opacity: 1; }
.lnch-ico img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.lnch-ico.lnch-ini { font-size: 19px; font-weight: 800; color: #fff; background: var(--c, var(--accent)); border-radius: 12px; }
.lnch-nm { font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--text-2); max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
/* "Você está aqui": anel fino na cor da marca + nome em negrito colorido + pontinho. */
.lnch-app.aqui .lnch-ico { box-shadow: 0 0 0 2px var(--c, var(--accent)); }
.lnch-app.aqui .lnch-nm { color: var(--c, var(--accent)); font-weight: 700; }
.lnch-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--accent)); display: inline-block; }
/* Sem acesso: estados pelo próprio logo, não por caixa. */
.lnch-app.lock, .lnch-app.off { cursor: default; }
.lnch-app.lock .lnch-ico img { filter: grayscale(1); opacity: .5; }
.lnch-app.off .lnch-ico img { filter: grayscale(1); opacity: .3; }
.lnch-app.lock .lnch-ico.lnch-ini, .lnch-app.off .lnch-ico.lnch-ini { filter: grayscale(1); opacity: .5; background: var(--border-strong); color: var(--text-3); }
.lnch-lock { position: absolute; top: 8px; right: calc(50% - 30px); width: 16px; height: 16px; background: var(--panel); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2; }
.lnch-lock svg { font-size: 10px; color: var(--text-3); }

/* Campo de senha com botão de revelar (olho) nos modais */
.f-pwd { position: relative; }
.f-pwd input { padding-right: 40px; }
.f-olho { position: absolute; top: 0; bottom: 0; right: 0; width: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.f-olho:hover { color: var(--text); }
.f-olho svg { font-size: 16px; }

/* ---------------- Backoffice: Planos & Add-ons (molde CRM, duas tabelas) ---------------- */
.plano-sec { margin: 0 0 26px; }
.plano-sec:last-of-type { margin-bottom: 0; }
.plano-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.plano-sec-tit { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.tabela-planos { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tp-head, .tp-row { display: grid; grid-template-columns: 1fr 128px 150px 104px 78px; align-items: center; gap: 14px; padding: 13px 18px; }
.tp-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--border); }
.tp-row { border-top: 1px solid var(--border); background: var(--panel); transition: background .12s; }
.tp-row:first-child { border-top: none; }
.tp-row:hover { background: var(--hov); }
.tp-row.arrastando { opacity: .45; }
.tp-row.alvo { box-shadow: inset 0 2px 0 var(--accent); }
.tp-nome { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.tp-drag { cursor: grab; color: var(--text-3); font-size: 13px; line-height: 1; padding-top: 3px; flex-shrink: 0; opacity: .5; transition: opacity .12s, color .12s; }
.tp-drag:active { cursor: grabbing; }
.tp-row:hover .tp-drag { opacity: 1; color: var(--text-2); }
.tp-nome-txt { min-width: 0; }
.tp-nome-txt b { font-weight: 650; font-size: 14px; color: var(--text); }
.tp-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cota { font-size: 13.5px; color: var(--text-2); }
.tp-tipo { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.tp-preco { font-size: 13.5px; font-weight: 600; color: var(--text); }
.tp-ciclo { font-weight: 400; color: var(--text-3); font-size: 12.5px; }
.tp-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tp-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tp-vazio { padding: 26px 18px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.badge.pop { color: var(--accent-hover); background: var(--accent-soft); }
.badge.off { color: var(--text-3); background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.badge.sm { font-size: 10.5px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 760px) {
  .tabela-planos { overflow-x: auto; }
  .tp-head, .tp-row { grid-template-columns: minmax(190px, 1fr) 96px 120px 88px 68px; }
}

/* ===== Tela /painel/plano (assinatura do cliente) — molde PlugueCRM, accent do Mail ===== */
.plano-wrap { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.plano-hero { position: relative; overflow: hidden; color: #fff; border-radius: 14px; background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #000) 100%); box-shadow: 0 18px 44px -16px color-mix(in srgb, var(--accent) 55%, transparent); padding: 26px 28px; }
.plano-hero::after { content: ''; position: absolute; top: -40%; right: -8%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 68%); pointer-events: none; }
.plano-hero > * { position: relative; z-index: 1; }
.plano-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plano-hero-lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); font-weight: 600; }
.plano-hero-nome { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 10px; }
.plano-hero-preco { font-size: 14px; color: rgba(255,255,255,.88); font-weight: 500; }
.plano-hero-preco b { font-size: 17px; font-weight: 800; color: #fff; }
.plano-hero-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(2px); }
.plano-hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #8ff0b8; box-shadow: 0 0 0 3px rgba(143,240,184,.25); }
.plano-hero-badge.warn .dot { background: #ffd27a; box-shadow: 0 0 0 3px rgba(255,210,122,.25); }
.plano-hero-badge.off .dot { background: rgba(255,255,255,.7); box-shadow: none; }
.plano-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.plano-hero .btn-glass { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: background .14s, border-color .14s, transform .06s; }
.plano-hero .btn-glass:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.45); }
.plano-hero .btn-glass:active { transform: translateY(1px); }
.plano-hero .tag-fim { font-size: 12px; color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 6px; }
.plano-meter { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.plano-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 34px; }
.pm { min-width: 0; }
.pm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.pm-top .pm-ic { font-size: 12.5px; color: rgba(255,255,255,.8); flex: none; width: 15px; text-align: center; }
.pm-top .pm-lbl { font-size: 12.5px; color: rgba(255,255,255,.82); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-top .pm-val { font-size: 12.5px; color: #fff; font-weight: 600; flex: none; }
.pm-top .pm-val b { font-size: 14px; font-weight: 800; }
.pm-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; }
.pm-fill { height: 100%; border-radius: 999px; background: #fff; min-width: 4px; transition: width .5s cubic-bezier(.22,1,.36,1); }
.pm-fill.cheio { background: #ffd27a; }
.pm-ilim { font-size: 11.5px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; padding-top: 1px; }
.pm-ilim.off { color: rgba(255,255,255,.6); }
.plano-faixa { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.plano-faixa .pf-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 17px; flex: none; }
.plano-faixa .pf-txt { display: flex; align-items: center; gap: 14px; min-width: 0; }
.plano-faixa .pf-nome { font-size: 15px; font-weight: 700; color: var(--text); }
.plano-faixa .pf-sub { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.plano-up-tit { font-size: 13px; font-weight: 700; color: var(--text); margin: 6px 2px 0; }
.plano-up-sub { font-size: 13px; color: var(--text-3); margin: 2px 2px 2px; }
.plano-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plano-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 22px 20px; transition: border-color .16s, box-shadow .16s, transform .12s; }
.plano-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-3px); }
.plano-card.pop { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--accent) 45%, transparent); }
.plano-card.atual { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.pc-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--accent); padding: 4px 11px; border-radius: 999px; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 50%, transparent); }
.pc-badge.atual { color: #fff; background: color-mix(in srgb, var(--accent) 72%, #000); box-shadow: none; }
.plano-card .pc-nome { font-size: 15px; font-weight: 700; color: var(--text); }
.plano-card .pc-preco { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 10px 0 0; }
.plano-card .pc-preco .ciclo { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.pc-meta { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pc-meta .m { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.pc-meta .m i { color: var(--text-3); font-size: 13px; width: 16px; text-align: center; flex: none; }
.pc-meta .m b { font-weight: 700; color: var(--text); }
.pc-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pc-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.pc-feats li i { font-size: 12px; margin-top: 2px; flex: none; width: 13px; text-align: center; }
.pc-feats li.on i { color: var(--ok, #16a34a); }
.pc-feats li.off { color: var(--text-3); }
.pc-feats li.off i { color: var(--danger, #dc2626); }
.plano-card .btn-primary, .plano-card .btn-atual { width: 100%; justify-content: center; margin-top: 18px; padding: 10px 15px; }
.plano-card .btn-atual { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 8px; cursor: default; }
.plano-aviso { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 11px 14px; display: flex; align-items: center; gap: 9px; }
.plano-aviso i { font-size: 15px; }
@media (max-width: 560px) { .plano-hero { padding: 22px 18px; } .plano-hero-nome { font-size: 25px; } .plano-faixa .pf-txt { gap: 12px; } }

/* ===================================================================
   Sino de notificações (item 7) — molde do PlugueCRM, accent do Mail.
   =================================================================== */
.sino { position: relative; background: transparent; border: none; cursor: pointer; color: var(--text-2); padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.sino svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sino:hover { background: var(--hov); color: var(--text); }
.sino i { font-size: 18px; line-height: 1; }
.sino-badge { position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--panel); }
.sino-pop { width: 350px; max-width: calc(100vw - 24px); padding: 0; max-height: 460px; flex-direction: column; overflow: hidden; }
.sino-pop.aberto { display: flex; }
.sino-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); flex: none; }
.sino-head b { font-size: 14px; }
.sino-head button { font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; padding: 0; }
.sino-head button:hover { text-decoration: underline; }
.sino-lista { overflow-y: auto; flex: 1; min-height: 0; }
.sino-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.sino-item:last-child { border-bottom: none; }
.sino-item:hover { background: var(--hov); }
.sino-item.nova { background: var(--accent-soft); }
.sino-item .si-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 5px; }
.sino-item.lida .si-dot { background: var(--border-strong); }
.sino-item .si-corpo { flex: 1; min-width: 0; }
.sino-item .si-tit { font-weight: 600; font-size: 13px; }
.sino-item .si-msg { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.sino-item .si-quando { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.sino-vazio { padding: 34px 14px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ====================== Visão geral (dashboard) ====================== */
.vg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vg-periodo { display: inline-flex; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.vg-periodo button { font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-3); background: none; border: none; padding: 6px 13px; border-radius: 7px; cursor: pointer; transition: background .12s, color .12s; }
.vg-periodo button:hover { color: var(--text-2); }
.vg-periodo button.on { background: var(--hov); color: var(--text); }

.vg-onb { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 13px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.vg-onb-ic { color: var(--ok); font-size: 20px; display: inline-flex; flex: none; }
.vg-onb-tit { font-weight: 700; font-size: 14.5px; color: var(--text); flex: none; }
.vg-onb-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.vg-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 20px; padding: 4px 11px; }
.vg-pill i { font-size: 11px; }
.vg-onb-x { margin-left: auto; background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 15px; padding: 6px; border-radius: 8px; flex: none; }
.vg-onb-x:hover { background: var(--hov); color: var(--text); }

.vg-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
.vg-metric { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px; box-shadow: var(--shadow); }
.vg-m-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: 13px; }
.vg-m-top i { color: var(--text-3); font-size: 14px; }
.vg-m-val { font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 9px 0 4px; }
.vg-m-sub { font-size: 12px; color: var(--text-3); }

.vg-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.vg-grid-72 { grid-template-columns: 1.9fr 1fr; }
.vg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vg-grid-dom { grid-template-columns: 1.5fr 1fr; }
.vg-grid-3b { grid-template-columns: 1.2fr 1fr 1.1fr; }

.vg-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 16px; box-shadow: var(--shadow); min-width: 0; }
.vg-card-h { font-size: 14.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.vg-card-h i { color: var(--accent); font-size: 15px; }
.vg-card-h-row { justify-content: space-between; }
.vg-card-h-row > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.vg-card-sub { font-size: 12.5px; color: var(--text-3); margin: 3px 0 14px; }

.vg-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.vg-badge.ok { color: var(--ok); background: var(--ok-soft); }
.vg-badge.info { color: var(--accent); background: var(--accent-soft); }
.vg-badge.warn { color: var(--warn); background: var(--warn-soft); }
.vg-badge.err { color: var(--danger); background: var(--danger-soft); }
.vg-badge.neutro { color: var(--text-3); background: var(--hov); }

.vg-vol { margin-top: 6px; }
.vg-vol svg, .vg-can svg { display: block; width: 100%; height: auto; }

.vg-gauge { margin-top: 15px; }
.vg-gauge-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.vg-gauge-top b { color: var(--text); }
.vg-gauge-bar { position: relative; height: 8px; border-radius: 6px; margin: 8px 0 6px; background: linear-gradient(90deg, #16a34a 0%, #22c55e 20%, #eab308 42%, #f59e0b 60%, #ef4444 82%, #dc2626 100%); }
.vg-gauge-mk { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--panel); transform: translateX(-50%); }
.vg-gauge-lbl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); }

.vg-tip { display: flex; gap: 9px; margin-top: 16px; background: var(--accent-soft); border-radius: 10px; padding: 12px 13px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.vg-tip i { color: var(--accent); font-size: 14px; margin-top: 1px; flex: none; }
.vg-tip b { color: var(--text); }

.vg-funil-row { margin-top: 15px; }
.vg-funil-row:first-child { margin-top: 4px; }
.vg-funil-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.vg-funil-top b { color: var(--text); font-weight: 700; }
.vg-fbar { height: 8px; background: var(--hov); border-radius: 6px; overflow: hidden; }
.vg-fbar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }

.vg-can-leg { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.vg-can-leg span { display: flex; align-items: center; font-size: 13px; color: var(--text-2); }
.vg-can-leg b { margin-left: auto; color: var(--text); font-weight: 700; }
.vg-can-leg i { width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; flex: none; }
.vg-can-leg .d1 { background: var(--accent); }
.vg-can-leg .d2 { background: var(--accent-2); }
.vg-can-leg .d3 { background: var(--ok); }

.vg-consumo-val { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.vg-consumo-val small { font-size: 15px; font-weight: 600; color: var(--text-3); }
.vg-pbar { height: 8px; background: var(--hov); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.vg-pbar.sm { height: 6px; }
.vg-pbar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.vg-pbar i.warn { background: var(--warn); }
.vg-consumo-note { font-size: 12px; color: var(--text-3); margin-top: 9px; }
.vg-sub-h { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 18px 0 10px; }
.vg-key { margin-top: 12px; }
.vg-key-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.vg-key-top i { color: var(--text-3); margin-right: 5px; font-size: 11px; }
.vg-key .vg-pbar { margin-top: 0; }

.vg-dom { width: 100%; border-collapse: collapse; font-size: 13px; }
.vg-dom th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 0 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.vg-dom td { padding: 13px 8px; border-bottom: 1px solid var(--border); }
.vg-dom tr:last-child td { border-bottom: none; }
.vg-dom-nome { font-weight: 600; color: var(--text); }
.vg-dom td.ok i { color: var(--ok); }
.vg-dom td.no i { color: var(--danger); }
.vg-auth { width: 90px; height: 7px; background: var(--hov); border-radius: 5px; overflow: hidden; }
.vg-auth i { display: block; height: 100%; border-radius: 5px; }
.vg-auth i.ok { background: var(--ok); }
.vg-auth i.warn { background: var(--warn); }
.vg-auth i.err { background: var(--danger); }

.vg-live { font-size: 12px; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.vg-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulsar 1.2s infinite; }
.vg-evt-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.vg-evt-row:last-child { border-bottom: none; }
.vg-evt-row .vg-badge { width: 94px; justify-content: center; flex: none; }
.vg-evt-em { flex: 1; min-width: 0; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-evt-t { margin-left: auto; font-size: 12px; color: var(--text-3); flex: none; }

.vg-camp-row { margin-top: 16px; }
.vg-camp-row:first-child { margin-top: 4px; }
.vg-camp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.vg-camp-top > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-camp-top .vg-badge { flex: none; }
.vg-camp-sub { font-size: 12px; color: var(--text-3); margin-top: 7px; }

.vg-sup-row { margin-top: 15px; }
.vg-sup-row:first-child { margin-top: 4px; }
.vg-sup-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.vg-sup-top b { color: var(--text); font-weight: 700; }
.vg-sbar { height: 8px; background: var(--hov); border-radius: 6px; overflow: hidden; }
.vg-sbar i { display: block; height: 100%; border-radius: 6px; }
.vg-sbar .s-desc { background: #64748b; }
.vg-sbar .s-bounce { background: var(--warn); }
.vg-sbar .s-recl { background: var(--danger); }
.vg-sbar .s-man { background: var(--text-3); }

.vg-wh-row { margin-top: 13px; }
.vg-wh-row:first-child { margin-top: 4px; }
.vg-wh-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.vg-wh-top span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.vg-wh-top b { color: var(--text); font-weight: 700; font-size: 13px; flex: none; }
.vg-teste { display: flex; gap: 8px; margin-top: 10px; }
.vg-teste .f-inp { flex: 1; min-width: 0; }
.vg-teste .btn-primary { flex: none; }

.vg-mini-vazio { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 18px 8px; }
.vg-pill.pend { color: var(--text-3); background: var(--hov); }

.vg-grid-2e { grid-template-columns: 1fr 1fr; }

/* ===== ENTREGABILIDADE ===== */
.ent-hero { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 26px; align-items: center; margin-bottom: 16px; }
.ent-indice { display: flex; align-items: center; gap: 20px; }
.ent-donut { width: 128px; height: 128px; flex: none; }
.ent-donut svg { display: block; width: 100%; height: 100%; }
.ent-indice-txt { min-width: 0; }
.ent-indice-lbl { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 9px; }
.ent-indice-txt .vg-badge { font-size: 12px; }
.ent-indice-note { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 11px; }
.ent-gauges { display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--border); padding-left: 26px; }
.ent-g-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.ent-g-top b { color: var(--text); font-weight: 700; margin-left: 4px; }
.ent-g-note { font-size: 11.5px; color: var(--text-3); }
.ent-g-bar { position: relative; height: 9px; border-radius: 6px; margin: 9px 0 5px; background: var(--hov); overflow: visible; }
.ent-g-bar i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 6px; background: var(--ok); transition: width .3s; }
.ent-g-bar i.warn { background: var(--warn); }
.ent-g-bar i.err { background: var(--danger); }
.ent-tick { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--border-strong); border-radius: 2px; transform: translateX(-50%); }
.ent-g-lbl { position: relative; height: 13px; font-size: 10px; color: var(--text-3); }
.ent-g-lbl span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

.ent-serie svg, .ent-taxas svg, .ent-horario svg { display: block; width: 100%; height: auto; }
.ent-chart-leg { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.ent-chart-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ent-chart-leg i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.ent-tabs button { padding: 5px 11px; }

.ent-split { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--hov); margin-bottom: 4px; }
.ent-split i { display: block; height: 100%; }
.ent-split .perm { background: var(--danger); }
.ent-split .temp { background: var(--warn); }
.ent-split-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin: 6px 0 14px; }
.ent-split-lbl b { color: var(--text); }
.ent-mot { padding: 11px 0; border-top: 1px solid var(--border); }
.ent-mot:first-child { border-top: none; }
.ent-mot-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 7px; }
.ent-mot-top b { margin-left: auto; font-weight: 700; }
.ent-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; flex: none; }
.ent-tag.perm { color: var(--danger); background: var(--danger-soft); }
.ent-tag.temp { color: var(--warn); background: var(--warn-soft); }
.ent-mbar { height: 6px; background: var(--hov); border-radius: 4px; overflow: hidden; }
.ent-mbar i { display: block; height: 100%; border-radius: 4px; }
.ent-mbar i.perm { background: var(--danger); }
.ent-mbar i.temp { background: var(--warn); }
.ent-nota { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

.ent-rec-row { position: relative; padding: 12px 0 12px 12px; border-top: 1px solid var(--border); }
.ent-rec-row:first-child { border-top: none; }
.ent-rec-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 12px; width: 3px; border-radius: 3px; }
.ent-rec-row.alta::before { background: var(--danger); }
.ent-rec-row.media::before { background: var(--warn); }
.ent-rec-row.baixa::before { background: var(--accent); }
.ent-rec-niv { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; margin-bottom: 5px; }
.ent-rec-row.alta .ent-rec-niv { color: var(--danger); }
.ent-rec-row.media .ent-rec-niv { color: var(--warn); }
.ent-rec-row.baixa .ent-rec-niv { color: var(--accent); }
.ent-rec-txt { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

.ent-inbox { display: flex; align-items: center; gap: 9px; }
.ent-inbox-bar { flex: 1; min-width: 46px; height: 7px; background: var(--hov); border-radius: 5px; overflow: hidden; }
.ent-inbox-bar i { display: block; height: 100%; border-radius: 5px; background: var(--ok); }
.ent-inbox-bar i.warn { background: var(--warn); }
.ent-inbox b { font-size: 12.5px; color: var(--text); flex: none; width: 38px; text-align: right; }
.ent-authchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ent-authchips .n { font-weight: 700; color: var(--text); font-size: 12.5px; }
.ent-chip { font-size: 10px; font-weight: 700; color: var(--danger); background: var(--danger-soft); border-radius: 5px; padding: 2px 6px; }

.ent-hr { margin-top: 6px; }
.ent-hr-best { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); margin-top: 12px; }
.ent-hr-best b { color: var(--text); }
.ent-hr-best i { color: var(--accent); }

@media (max-width: 1200px) {
  .vg-metrics { grid-template-columns: repeat(3, 1fr); }
  .vg-grid-72, .vg-grid-dom, .vg-grid-2e { grid-template-columns: 1fr; }
  .vg-grid-3, .vg-grid-3b { grid-template-columns: 1fr 1fr; }
  .ent-hero { grid-template-columns: 1fr; gap: 20px; }
  .ent-gauges { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
}
@media (max-width: 760px) {
  .vg-head { flex-direction: column; }
  .vg-metrics { grid-template-columns: repeat(2, 1fr); }
  .vg-grid-3, .vg-grid-3b { grid-template-columns: 1fr; }
  .vg-onb { flex-wrap: wrap; }
  .ent-indice { flex-direction: column; align-items: flex-start; }
}


/* ===== Menu mobile (hamburguer + gaveta) — padrao da familia Pluguee ===== */
.menu-ham { display: none; width: 38px; height: 38px; margin-left: 2px; border: none; background: transparent; border-radius: 9px; color: var(--text-2); place-items: center; cursor: pointer; font-size: 18px; transition: background .12s, color .12s; }
.menu-ham:hover { background: var(--hov); color: var(--text); }
.menu-backdrop { display: none; }
@media (max-width: 820px) {
  .menu-ham { display: grid; }
  .breadcrumb { display: none; }
  .side-toggle, .side-toggle-top, .side-fab { display: none !important; }
  .brand .nome, .brand-box .nome { display: none; }
  .brand-box { width: auto; border-right: none; padding: 0; }
  .corpo { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: var(--topbar-h, 56px); left: 0; z-index: 41; width: min(82vw, 300px); max-width: 300px; height: calc(100vh - var(--topbar-h, 56px)); transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 10px 40px rgba(0,0,0,.18); overflow-y: auto; overflow-x: hidden; flex-direction: column; gap: 0; border-right: none; padding: 10px; }
  body.menu-aberto .sidebar { transform: translateX(0); }
  body.side-collapsed .sidebar { width: min(82vw, 300px); padding: 10px; }
  body.side-collapsed .nav-item { justify-content: flex-start; gap: 10px; padding: 8px 10px; }
  body.side-collapsed .nav-item .lbl, body.side-collapsed .nav-item .soon { display: inline; }
  .sidebar .nav-sec, .sidebar .espaco, .sidebar .voltar { display: block; }
  .sidebar .espaco { flex: 1; }
  .sidebar .nav-sec.nav-sec-tgl { display: flex; }
  .nav-item { white-space: normal; }
  body.menu-aberto .menu-backdrop { display: block; position: fixed; inset: var(--topbar-h, 56px) 0 0 0; z-index: 40; background: rgba(0,0,0,.38); }
}

/* ===== RODAPÉ MOBILE (barra de atalhos estilo app, com entalhe em onda) ===== */
.rodape-mobile { display: none; }
@media (max-width: 820px) {
  /* hambúrguer sai do topo e vira o "Menu" da barra de baixo */
  .menu-ham { display: none !important; }
  .rodape-mobile {
    display: flex; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: transparent;   /* o visual da barra vai no ::before, pra poder recortar o entalhe do "+" */
  }
  /* a barra em si (fica no ::before). O topo tem uma ONDA suave no centro (ombros que sobem em S + vale),
     onde o losango se encaixa. A barra é a UNIÃO de: onda central (SVG) + laterais retas + base cheia. */
  .rodape-mobile::before {
    content: ''; position: absolute; left: 0; right: 0; top: -28px; bottom: 0; z-index: -1;
    background: var(--panel);
    --wv: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='150'%20height='62'%3E%3Cpath%20d='M0,28%20H26%20C42,28%2042,11%2056,11%20C66,11%2068,51%2075,51%20C82,51%2084,11%2094,11%20C108,11%20108,28%20124,28%20H150%20V62%20H0%20Z'%20fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask:
      var(--wv) 50% 0 / 150px 62px no-repeat,
      linear-gradient(#000, #000) left bottom / calc(50% - 74px) calc(100% - 28px) no-repeat,
      linear-gradient(#000, #000) right bottom / calc(50% - 74px) calc(100% - 28px) no-repeat,
      linear-gradient(#000, #000) center bottom / 100% calc(100% - 51px) no-repeat;
    mask:
      var(--wv) 50% 0 / 150px 62px no-repeat,
      linear-gradient(#000, #000) left bottom / calc(50% - 74px) calc(100% - 28px) no-repeat,
      linear-gradient(#000, #000) right bottom / calc(50% - 74px) calc(100% - 28px) no-repeat,
      linear-gradient(#000, #000) center bottom / 100% calc(100% - 51px) no-repeat;
    filter: drop-shadow(0 -2px 9px rgba(0, 0, 0, .10));
  }
  .rodape-mobile .rb-item {
    flex: 1 1 0; min-width: 0; border: none; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 6px 2px; color: var(--text-3); font: 600 10px/1 inherit;
    transition: color .12s;
  }
  .rodape-mobile .rb-item i { font-size: 19px; line-height: 1; }
  .rodape-mobile .rb-item span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rodape-mobile .rb-item:active { color: var(--text-2); }
  .rodape-mobile .rb-item.ativo { color: var(--accent); }
  /* botão "+" central em LOSANGO (quadrado arredondado girado 45°); encaixa no entalhe e sobe acima do texto */
  .rodape-mobile .rb-mais {
    flex: 0 0 auto; align-self: flex-start; position: relative; top: -24px;
    width: 44px; height: 44px; border-radius: 14px; border: none;
    background: var(--accent); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 40%, transparent);
    transition: transform .1s;
  }
  /* o conteúdo do botão (ícone) volta à posição normal */
  .rodape-mobile .rb-mais i, .rodape-mobile .rb-mais svg { transform: rotate(-45deg); }
  .rodape-mobile .rb-mais i { font-size: 22px; line-height: 1; }
  .rodape-mobile .rb-mais:active { transform: rotate(45deg) scale(.92); }
  /* conteúdo não fica escondido atrás da barra */
  .conteudo { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
