/* Padrão visual de tabela do EMME CRM: cabeçalho ordenável, busca e menu de ações.
   Carregado em todas as telas (ver base_auth.html e PWA_HEAD_TAGS no app.py). */

/* ----- Cabeçalho ordenável ----- */
.sort-head th.ordenavel { cursor: pointer; user-select: none; white-space: nowrap; }
.sort-head th.ordenavel:hover { background: #eef2f8; }
.sort-head th.ordenavel::after { content: '⇅'; font-size: 9px; margin-left: 6px; color: #c3cad6; }
.sort-head th.ordenavel[data-dir]::after { content: '▲'; color: #172B3A; }
.sort-head th.ordenavel[data-dir="desc"]::after { content: '▼'; }

/* ----- Linha de "nenhum resultado" ----- */
.tabela-vazia td { padding: 30px; text-align: center; color: #667085; }

/* ----- Campo de busca padrão ----- */
.busca-tabela {
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 16px 0;
}
.busca-tabela input[data-busca] { flex: 1; min-width: 240px; max-width: 520px; }

/* ----- Menu de ações (3 pontinhos) ----- */
.kebab {
  border: 1px solid #e4e7ec; background: #fff; color: #344054;
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  font-size: 17px; line-height: 1; padding: 0;
}
.kebab:hover { background: #f2f4f7; }
.kebab[aria-expanded="true"] { background: #eef4ff; border-color: #c7d7f5; }
.row-menu {
  position: fixed; z-index: 9999; min-width: 190px; background: #fff;
  border: 1px solid #e4e7ec; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,24,40,.18); padding: 6px; display: none;
}
.row-menu.open { display: block; }
.row-menu button, .row-menu a {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  color: #152033; font-size: 13.5px; font-weight: 600; padding: 11px 12px;
  border-radius: 9px; cursor: pointer; text-decoration: none;
}
.row-menu button:hover, .row-menu a:hover { background: #f2f4f7; }

@media (max-width: 850px) {
  .busca-tabela input[data-busca] { max-width: none; }
}
