:root {
  /* laranja da marca (mantém os nomes --verde* por compatibilidade) */
  --verde: #d65f13;
  --verde-claro: #f0912f;
  --verde-escuro: #a8440a;
  --accent: #e2661a;
  --accent-hover: #c4550f;
  --accent-light: #fdeede;

  /* sidebar (gradiente laranja) */
  --sb-1: #f0912f;
  --sb-2: #d65f13;
  --sb-3: #a8440a;
  --sb-text: rgba(255,255,255,.85);
  --sb-text-active: #ffffff;
  --sb-ativo: rgba(255,255,255,.18);
  --sb-hover: rgba(255,255,255,.09);

  /* superfícies (neutros quentes) */
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #f8f4ef;

  /* texto */
  --text-primary: #241a13;
  --text-secondary: #5c4d43;
  --text-muted: #9a8b7e;

  /* status (semânticos — mantidos) */
  --status-green: #1a8c5e;  --status-green-bg: #e6f5ef;
  --status-amber: #b45309;  --status-amber-bg: #fef3cd;
  --status-red: #c0392b;    --status-red-bg: #fdecea;
  --status-blue: #1a6fd4;   --status-blue-bg: #e8f0fb;

  --border: #ece5dd;
  --border-strong: #d8ccbf;

  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --sombra-linha: 0 1px 2px rgba(60,35,15,.05), 0 2px 8px rgba(60,35,15,.04);
  --sombra-linha-hover: 0 3px 14px rgba(60,35,15,.10);
  --sombra-flut: 0 12px 40px rgba(60,35,15,.16);

  --font-sans: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.oculto { display: none !important; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }

.mi { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; }
.mi svg { width: 100%; height: 100%; }
.mono { font-family: var(--font-mono); }
.suave { color: var(--text-muted); font-size: 12px; }

/* ===== Telas de autenticação ===== */
.tela-auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1100px 560px at 50% -10%, rgba(240,145,47,.16), transparent 60%), var(--bg);
  padding: 24px;
}
.card-auth {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; width: 400px; max-width: 92vw;
  box-shadow: var(--sombra-flut);
}
.logo-auth { text-align: center; margin-bottom: 24px; }
.logo-auth h1 { font-size: 19px; font-weight: 800; margin-top: 16px; letter-spacing: -.02em; }
.subtitulo { color: var(--text-muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.logo-icone {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(150deg, var(--sb-1), var(--sb-2));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(214,95,19,.35);
}
.logo-icone .mi { width: 24px; height: 24px; }
.rodape-auth { text-align: center; color: var(--text-muted); font-size: 11px; margin-top: 18px; }
.rodape-auth a { color: var(--accent); text-decoration: none; font-weight: 600; }
.rodape-auth a:hover { text-decoration: underline; }
.info-2fa { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 4px; }
#cod-2fa { text-align: center; letter-spacing: 8px; font-family: var(--font-mono); font-size: 22px; font-weight: 600; }

/* ===== Login em dois painéis ===== */
.auth-split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  width: 980px; max-width: 96vw; min-height: 560px;
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--sombra-flut); overflow: hidden;
}
.auth-hero {
  position: relative; padding: 48px 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--sb-1) 0%, var(--sb-2) 52%, var(--sb-3) 100%);
}
.auth-logo-img {
  width: 80%; max-width: 320px; height: auto;
}

.auth-form { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-marca-txt { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--accent); margin-bottom: 30px; }
.auth-form-titulo { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth-form-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; margin-bottom: 8px; }

@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; width: 420px; min-height: 0; }
  .auth-hero { display: none; }
  .auth-form { padding: 40px 32px; }
}

/* ===== Formulários ===== */
label { display: block; font-weight: 600; font-size: 12px; color: var(--text-secondary); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: inherit; background: var(--surface); color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.linha-campos { display: flex; gap: 12px; }
.linha-campos > div { flex: 1; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 40px; }
.btn-olho { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; padding: 4px; }
.btn-olho:hover { color: var(--text-secondary); }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px;
  border: none; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primario { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(214,95,19,.28); }
.btn-primario:hover { background: var(--accent-hover); }
.btn-perigo { background: var(--status-red); color: #fff; }
.btn-perigo:hover { background: #a02e22; }
.btn-neutro { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-neutro:hover { background: var(--surface-2); }
.btn-largo { width: 100%; justify-content: center; margin-top: 20px; }

.btn-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: transparent; color: var(--text-muted);
  cursor: pointer; margin-left: 2px; transition: background .15s, color .15s;
}
.btn-ico:hover { background: var(--accent-light); color: var(--accent); }
.btn-ico.perigo:hover { background: var(--status-red-bg); color: var(--status-red); }
.btn-ico .mi { width: 15px; height: 15px; }

.btn-mini {
  padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; margin-right: 4px; font-family: inherit;
}
.btn-mini:hover { background: var(--surface-2); color: var(--text-primary); }
.btn-mini.perigo:hover { background: var(--status-red-bg); color: var(--status-red); border-color: var(--status-red-bg); }

.msg-erro { background: var(--status-red-bg); color: var(--status-red); border: 1px solid #f5c6c2; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 500; margin-top: 14px; }

/* ===== Layout do app ===== */
#app { display: flex; min-height: 100vh; }

/* ---- Sidebar verde ---- */
.sidebar {
  width: 246px; flex-shrink: 0;
  background: linear-gradient(168deg, var(--sb-1) 0%, var(--sb-2) 55%, var(--sb-3) 100%);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 26px 16px 18px;
  box-shadow: 0 10px 40px rgba(168,68,10,.18);
}
.sidebar-topo { padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 16px; }
.sidebar-badge {
  width: 68px; height: 68px; border-radius: 50%;
  background: #fff; color: var(--verde);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); margin-bottom: 16px;
}
.sidebar-badge .mi { width: 34px; height: 34px; }
.sidebar-titulo { color: #fff; font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.sidebar-sub { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 6px; }

#menu { flex: 1; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: none; }
#menu::-webkit-scrollbar { display: none; }
#menu a {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: var(--radius);
  color: var(--sb-text); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background .14s, color .14s;
}
#menu a .mi { width: 18px; height: 18px; opacity: .9; }
#menu a:hover { background: var(--sb-hover); color: #fff; }
#menu a.ativo { background: var(--sb-ativo); color: var(--sb-text-active); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px 4px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.14);
}
.sidebar-user .avatar { background: rgba(255,255,255,.18); color: #fff; }
.sidebar-user #topo-usuario-nome { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-sair {
  margin-left: auto; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; cursor: pointer;
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s;
}
.sidebar-sair:hover { background: rgba(255,255,255,.24); }
.sidebar-sair .mi { width: 16px; height: 16px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ---- Coluna principal ---- */
.coluna-principal { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#app.compacto .sidebar { display: none; }

/* ---- Topbar branca ---- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: transparent;
}
.hamburguer, .topbar-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s, box-shadow .14s;
}
.hamburguer:hover, .topbar-btn:hover { background: var(--surface-2); color: var(--verde); }
.topbar-btn { position: relative; }
.topbar-btn .mi, .hamburguer .mi { width: 18px; height: 18px; }

.busca-topo {
  flex: 1; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0 18px; height: 44px;
  box-shadow: var(--sombra-linha); transition: box-shadow .15s, border-color .15s;
}
.busca-topo:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.busca-topo .mi { width: 17px; height: 17px; color: var(--text-muted); }
.busca-topo input { border: none; background: none; padding: 0; height: 100%; box-shadow: none !important; font-size: 13.5px; }
.busca-topo input:focus { outline: none; }

.topbar-acoes { display: flex; align-items: center; gap: 10px; }
#sino-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--status-red); color: #fff; border-radius: var(--radius-pill);
  font-size: 9px; font-weight: 700; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

/* painel de notificações */
.painel-notif {
  position: absolute; right: 0; top: 50px; z-index: 60; width: 330px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--sombra-flut); overflow: hidden;
}
.painel-notif .pn-cabecalho { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.painel-notif .pn-cabecalho p { font-size: 12.5px; font-weight: 700; }
.pn-contador { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--status-red-bg); color: var(--status-red); font-size: 11px; font-weight: 600; }
.pn-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 12px; }
.pn-item:last-child { border-bottom: none; }
.pn-item:hover { background: var(--surface-2); }
.pn-item .mi { width: 14px; height: 14px; margin-top: 1px; }
.pn-item .pn-msg { color: var(--text-secondary); font-weight: 500; line-height: 1.4; }
.pn-item .pn-data { color: var(--text-muted); font-size: 10.5px; margin-top: 2px; font-family: var(--font-mono); }
.pn-vazio { padding: 20px 16px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* ---- Conteúdo ---- */
.conteudo { flex: 1; padding: 8px 28px 32px; overflow-y: auto; }
.conteudo-interno { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
/* espaça verticalmente os blocos dentro de cada tela (título, legenda, cards, tabelas…) */
#view { display: flex; flex-direction: column; gap: 22px; }
#view > .legenda { margin-top: -6px; }

/* ===== Cabeçalho de view ===== */
.view-cabecalho { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.view-cabecalho h1 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; color: var(--text-primary); line-height: 1.15; }
.view-cabecalho .view-sub { font-size: 13px; color: var(--text-muted); margin-top: 7px; }
.view-acoes { display: flex; gap: 10px; align-items: center; }
.busca { width: 260px; background: var(--surface); border-radius: var(--radius-pill); padding-left: 14px; }

/* ===== Cards / dashboard ===== */
.grade-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .grade-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grade-cards { grid-template-columns: 1fr; } }
.card-num {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra-linha);
  transition: box-shadow .15s, transform .15s;
}
.card-num:hover { box-shadow: var(--sombra-linha-hover); transform: translateY(-1px); }
.card-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-num .rotulo { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-mono); line-height: 1.45; }
.card-num .card-ico { background: var(--surface-2); color: var(--text-primary); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.card-num .card-ico .mi { width: 15px; height: 15px; }
.card-num .valor { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--text-primary); }
.card-num .sub { font-size: 12px; color: var(--text-muted); }
.card-num.verde    .valor { color: var(--status-green); } .card-num.verde    .card-ico { background: var(--status-green-bg); color: var(--status-green); }
.card-num.amarelo  .valor { color: var(--status-amber); } .card-num.amarelo  .card-ico { background: var(--status-amber-bg); color: var(--status-amber); }
.card-num.vermelho .valor { color: var(--status-red); }   .card-num.vermelho .card-ico { background: var(--status-red-bg); color: var(--status-red); }
.card-num.azul     .valor { color: var(--status-blue); }  .card-num.azul     .card-ico { background: var(--status-blue-bg); color: var(--status-blue); }

.painel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--sombra-linha); }
.painel h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.painel .painel-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; margin-bottom: 8px; }

/* ===== Tabelas — linhas em cartões ===== */
.tabela-wrap { overflow-x: auto; padding: 2px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 13px; }
th {
  text-align: left; padding: 4px 18px 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap;
}
tbody tr { background: var(--surface); box-shadow: var(--sombra-linha); transition: box-shadow .13s, transform .13s; }
tbody tr:hover { box-shadow: var(--sombra-linha-hover); transform: translateY(-1px); }
td { padding: 13px 18px; vertical-align: middle; color: var(--text-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
td:first-child { border-left: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
td:last-child  { border-right: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
td b, td .forte { color: var(--text-primary); font-weight: 600; }
.td-acoes { white-space: nowrap; text-align: right; }
.vazio { text-align: center; color: var(--text-muted); padding: 26px !important; border-radius: var(--radius) !important; }

/* célula com avatar (coluna principal) */
.cel-membro { display: inline-flex; align-items: center; gap: 11px; }
.avatar-cel { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* paginação */
.paginacao { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 8px 4px 2px; }
.paginacao button {
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  border-radius: var(--radius-pill); cursor: pointer; font-size: 12.5px; font-family: var(--font-mono);
  display: inline-flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
.paginacao button:hover:not(:disabled) { background: var(--surface-2); color: var(--verde); }
.paginacao button.ativa { background: var(--accent); border-color: var(--accent); color: #fff; }
.paginacao button:disabled { opacity: .4; cursor: default; }
.paginacao .reticencia { color: var(--text-muted); padding: 0 2px; }

/* ===== Badges de status (pílula com bolinha) ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; font-family: var(--font-mono); line-height: 1; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.verde    { background: var(--status-green-bg); color: var(--status-green); }
.badge.amarelo  { background: var(--status-amber-bg); color: var(--status-amber); }
.badge.vermelho { background: var(--status-red-bg);   color: var(--status-red); }
.badge.azul     { background: var(--status-blue-bg);  color: var(--status-blue); }
.badge.cinza    { background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); }

.legenda { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.legenda .lg-verde::before { background: var(--status-green); }
.legenda .lg-amarelo::before { background: var(--status-amber); }
.legenda .lg-vermelho::before { background: var(--status-red); }
.legenda .lg-azul::before { background: var(--status-blue); }

/* ===== Alertas (banners) ===== */
#barra-alertas { display: flex; flex-direction: column; gap: 8px; }
.alerta { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 500; }
.alerta .mi { width: 15px; height: 15px; }
.alerta span { flex: 1; }
.alerta.aviso { background: var(--status-amber-bg); border: 1px solid #f5dfa0; color: var(--status-amber); }
.alerta.erro  { background: var(--status-red-bg);   border: 1px solid #f5c6c2; color: var(--status-red); }
.alerta.info  { background: var(--status-blue-bg);  border: 1px solid #bcd6f5; color: var(--status-blue); }
.alerta-fechar { background: none; border: none; cursor: pointer; color: inherit; opacity: .5; font-size: 15px; line-height: 1; padding: 3px 5px; border-radius: 50%; flex-shrink: 0; }
.alerta-fechar:hover { opacity: 1; background: rgba(0,0,0,.06); }

/* ===== Modal ===== */
.modal-fundo { position: fixed; inset: 0; background: rgba(23,37,28,.34); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 44px 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 540px; max-width: 100%; box-shadow: var(--sombra-flut); overflow: hidden; }
.modal-cabecalho { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-cabecalho h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.modal-fechar { background: none; border: none; font-size: 14px; cursor: pointer; color: var(--text-muted); padding: 6px; border-radius: 50%; }
.modal-fechar:hover { background: var(--surface-2); color: var(--text-secondary); }
.modal-corpo { padding: 8px 24px 24px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ===== Toast ===== */
#toast-area { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.toast { background: var(--text-primary); color: #fff; padding: 13px 20px; border-radius: var(--radius); margin-top: 10px; box-shadow: var(--sombra-flut); animation: subir .25s ease; font-size: 13px; font-weight: 500; }
.toast.erro { background: var(--status-red); }
.toast.ok { background: var(--status-green); }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== Utilidades ===== */
.senha-celula { display: inline-flex; align-items: center; gap: 4px; }
.senha-valor { color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px; }
.chip-arquivo { display: inline-flex; align-items: center; gap: 6px; background: var(--status-blue-bg); color: var(--status-blue); padding: 5px 11px; border-radius: var(--radius-pill); font-size: 11.5px; cursor: pointer; border: none; font-weight: 600; font-family: inherit; }
.chip-arquivo:hover { background: #d8e6fb; }
.chip-tipo { display: inline-block; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-light); color: var(--accent); font-size: 11.5px; font-weight: 600; }

/* ===== Acordeão de Senhas (acessos por empresa) ===== */
.acordeon {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--sombra-linha);
  margin-bottom: 10px; overflow: hidden;
}
.acordeon-cab {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left; color: var(--text-primary);
  transition: background .14s;
}
.acordeon-cab:hover { background: var(--surface-2); }
.acordeon-seta {
  font-size: 22px; line-height: 1; color: var(--text-muted); font-weight: 700;
  transition: transform .18s; flex-shrink: 0; width: 14px; text-align: center;
}
.acordeon.aberto .acordeon-seta { transform: rotate(90deg); color: var(--accent); }
.acordeon-cab .cel-membro { flex: 1; min-width: 0; }
.acordeon-emp { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.acordeon-emp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acordeon-cnpj { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }
.acordeon-contagem {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.acordeon-corpo { border-top: 1px solid var(--border); padding: 6px 10px 10px; }
.acordeon-corpo table { width: 100%; border-collapse: collapse; }
.acordeon-corpo td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.acordeon-corpo tr:last-child td { border-bottom: none; }
.acordeon-vazio { padding: 26px; text-align: center; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

@media (max-width: 860px) {
  #app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-radius: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; }
  .sidebar-topo { border: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
  .sidebar-badge { width: 40px; height: 40px; margin: 0; }
  .sidebar-badge .mi { width: 20px; height: 20px; }
  .sidebar-titulo { font-size: 15px; } .sidebar-sub { display: none; }
  #menu { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .sidebar-user { border: none; margin: 0; }
  .conteudo { padding: 8px 14px 16px; }
  .busca-topo { max-width: none; }
}
