.gestor-filtros { flex-wrap: wrap; }
.gestor-filtros label.gestor-doc { flex: 0 0 9rem; max-width: 9rem; }
.gestor-filtros label.gestor-filtro { flex: 0 0 11rem; }
.gestor-filtros select {
  width: 100%;
  min-height: 36px;
  padding: 0 0.55rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
}
.gestor-filtros .gestor-lixeira { margin-bottom: 0; }
.gestor-filtros .gestor-lixeira[aria-pressed="true"],
.gestor-filtros .gestor-lixeira[aria-pressed="true"]:hover { background: var(--yellow); border-color: var(--yellow); }
.gestor-acoes button[data-restaurar-orcamento] {
  width: auto;
  min-width: 28px;
  height: 28px;
  gap: 0.3rem;
  padding: 0 0.5rem;
  color: #15803d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}
.gestor-acoes button[data-restaurar-orcamento]:hover,
.gestor-acoes button[data-restaurar-orcamento]:focus-visible { color: #166534; background: #f0fdf4; }
.gestor-tabela td.excluido-info { color: var(--gray-600, #4b5563); font-size: 0.8rem; }
.gestor-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
.gestor-status-badge.gestor-status-excluido {
  background: #f3f4f6;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.gestor-tabela select.gestor-status-excluido { background: #f3f4f6; color: #991b1b; }
/* Uma linha por registro: a tabela cresce na horizontal e o box rola, em vez de espremer o texto. */
.gestor-tabela-box {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gestor-tabela {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
body.gestor .gestor-tabela th,
body.gestor .gestor-tabela td {
  padding: 4px 12px;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.gestor-tabela th.acoes,
.gestor-tabela td.acoes,
.gestor-tabela td.meio { white-space: nowrap; }
.gestor-tabela th.status,
.gestor-tabela td.status,
.gestor-tabela th.vendedor,
.gestor-tabela td.vendedor {
  width: 8.75rem;
  white-space: nowrap;
  vertical-align: middle;
}
.gestor-tabela select.gestor-status,
.gestor-tabela select.gestor-vendedor {
  box-sizing: border-box;
  width: 8.4rem;
  height: 28px;
  min-height: 28px;
  padding: 2px 24px 2px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 0.4rem;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
body.gestor .gestor-tabela .gestor-acoes {
  align-items: center;
  gap: 0.2rem;
}
body.gestor .gestor-tabela .gestor-acoes button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
}
body.gestor .gestor-tabela .gestor-acoes button[data-restaurar-orcamento] {
  width: auto;
}
body.gestor .gestor-tabela .gestor-acoes svg {
  width: 14px;
  height: 14px;
}
.gestor-tabela select.gestor-status-pendente,
.gestor-tabela select.gestor-status-enviado,
.gestor-tabela select.gestor-status-recebido { background: #fef9c3; }
.gestor-tabela select.gestor-status-analisado { background: #dbeafe; }
.gestor-tabela select.gestor-status-respondido { background: #dcfce7; }
.gestor-login {
  position: relative;
  width: min(294px, calc(100% - 2rem));
  margin: 1.2rem auto;
}
.gestor-login-fechar {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #333;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.gestor-login-fechar:hover {
  background: rgba(0, 0, 0, 0.08);
}
.gestor-login-fechar:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}
body.gestor .brand img {
  width: calc(50px * 366 / 184 * 1.3 * 1.3 * 0.85);
  height: calc(50px * 1.05 * 0.85);
  max-width: none;
  max-height: calc(50px * 1.05 * 0.85);
  object-fit: fill;
  display: block;
}
.gestor-login h1 {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}
.gestor-login-destaque {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--yellow-100);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.gestor-login input[type="password"] {
  border: 1px solid #6b7280;
  background: var(--gray-50);
}
.gestor-login input[type="password"]:focus {
  border-color: var(--ink);
  background: var(--white);
}
.gestor-login [data-login-erro] {
  margin: 0;
  text-align: center;
}
/* Entrar fica apagado até haver algo digitado na senha. */
.gestor-login .btn:disabled,
.gestor-login .btn:disabled:hover {
  opacity: 0.45;
  background: #000;
  border-color: #000;
  cursor: not-allowed;
}
/* Sem botão de revelar senha, nem o nativo do Edge. */
.gestor-login input[type="password"]::-ms-reveal,
.gestor-login input[type="password"]::-ms-clear { display: none; }
body.gestor .gestor-topo-orc h1 {
  max-width: min(14em, 100%);
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
body.gestor .admin-page h1 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}
body.gestor .admin-page .admin-body {
  margin-top: 0;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem 0.5rem;
}
body.gestor .admin-page .admin-body > .muted {
  margin: 0;
  line-height: 1.3;
}
body.gestor .admin-page .mapa {
  gap: 0.28rem;
}
body.gestor .admin-page .mapa li {
  padding: 0.28rem 0.55rem;
}
body.gestor .admin-page .drop-cliente {
  min-height: 0;
  gap: 0.3rem;
  margin-top: 0;
  padding: 0.45rem 0.7rem;
}
body.gestor .admin-page .upload-badge {
  width: 52px;
  height: 52px;
}
body.gestor .admin-page .upload-badge svg {
  width: 26px;
  height: 26px;
}
body.gestor .admin-page .drop-texto {
  line-height: 1.25;
}
@media (min-width: 981px) {
  body.gestor .brand img {
    width: calc(32px * 366 / 184 * 1.3 * 1.3 * 0.85);
    height: calc(32px * 1.05 * 0.85);
    max-height: calc(32px * 1.05 * 0.85);
  }
}
@media (max-width: 640px) {
  .gestor-filtros label.gestor-doc,
  .gestor-filtros label.gestor-filtro { flex: 1 1 auto; max-width: none; }
}
@media (max-width: 767px) {
  body.gestor .gestor-tabela-box {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.gestor .gestor-tabela {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }
  body.gestor .gestor-tabela th,
  body.gestor .gestor-tabela td {
    padding: 4px 12px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
  }
}

/* Painel comercial */
body.gestor .dash {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}
.dash-cor-tradicional { background: var(--ink); }
.dash-cor-gigavoz { background: var(--yellow); }
.dash-cor-pf { background: var(--wa); }
.dash-cor-pj { background: #6366f1; }
.dash-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
}
body.gestor .dash-topo h1 { margin: 0; }
.dash-periodos { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dash-periodos button {
  min-height: 32px;
  padding: 0 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.dash-periodos button:hover { background: var(--gray-50); }
.dash-periodos button[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  transition: opacity 0.2s;
}
.dash-grid[aria-busy="true"] { opacity: 0.55; }
.dash-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
}
.dash-card h2 {
  max-width: none;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-volume { grid-column: 1 / -1; }
.dash-numero { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.dash-numero strong {
  margin-right: 0.25rem;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.dash-serie {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 170px;
  padding-top: 0.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.dash-coluna {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 18px;
}
.dash-pilha {
  display: flex;
  flex-direction: column;
  max-width: 42px;
  width: 100%;
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  transition: height 0.4s ease;
}
.dash-pilha span { flex: 1 1 0; min-height: 0; }
.dash-coluna:hover .dash-pilha { filter: brightness(0.9); }
.dash-coluna small {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}
.dash-legenda { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: 0.78rem; font-weight: 700; }
.dash-legenda li { display: flex; align-items: center; gap: 0.35rem; }
.dash-legenda i,
.dash-tabela i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dash-divisao {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--gray-200);
}
.dash-divisao span { height: 100%; transition: width 0.4s ease; }
.dash-tabela-caixa { margin-top: 0.75rem; overflow-x: auto; }
.dash-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.dash-tabela th,
.dash-tabela td {
  padding: 0.45rem 0.6rem;
  border: 1px solid #e5e7eb;
  text-align: right;
  white-space: nowrap;
}
.dash-tabela th:first-child { width: 100%; text-align: left; }
.dash-tabela thead th {
  background: var(--gray-50);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-tabela tbody th { font-weight: 700; }
.dash-tabela tbody th i { display: inline-block; margin-right: 0.45rem; vertical-align: -1px; }
.dash-tabela td { font-weight: 700; }
.dash-tabela tfoot th,
.dash-tabela tfoot td { background: var(--gray-50); font-weight: 800; }
.dash-nome-curto { display: none; }
.dash-vazio { margin: auto; color: var(--muted); font-size: 0.85rem; font-weight: 700; align-self: center; }
.dash-nota { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
/* Rastreamento de tráfego */
.trafego-resumo { flex: none; margin: 0.2rem 0 0.6rem; }
.gestor-pagina.trafego .gestor-tabela-box {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.trafego-tabela {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  border-collapse: collapse;
}
.trafego-tabela th,
.trafego-tabela td {
  padding: 8px 12px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trafego-tabela .trafego-col-horario { width: 14%; }
.trafego-tabela .trafego-col-cliente { width: 20%; font-weight: 700; }
.trafego-tabela .trafego-col-contato { width: 13%; }
.trafego-tabela .trafego-col-email { width: 22%; }
.trafego-tabela .trafego-col-cep { width: 10%; }
.trafego-tabela .trafego-col-dispositivo { width: 10%; }
.trafego-tabela .trafego-col-acao { width: 11%; }
.trafego-tabela td.trafego-acao { white-space: nowrap; }
.trafego-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.trafego-whatsapp:hover { background: #15803d; color: #fff; }
.trafego-whatsapp.is-contactado {
  background: #eef2f0;
  border: 1px solid #94a3a0;
  color: #3f5f4a;
}
.trafego-whatsapp.is-contactado:hover {
  background: #e2ebe5;
  color: #2f4a38;
}
.trafego-barra { flex: none; display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.trafego-filtro { display: grid; gap: 0.25rem; font-size: 0.78rem; font-weight: 800; }
.trafego-filtro select {
  min-height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}
.trafego-filtro-resultado { padding-bottom: 0.55rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.trafego-barra .trafego-limpar {
  width: auto;
  min-height: 36px;
  margin: 0 0 0 auto;
  padding: 0 0.9rem;
  border-color: #fca5a5;
  color: #b91c1c;
  font-size: 0.8rem;
}
.trafego-barra .trafego-limpar:hover { background: #fef2f2; }
.trafego-barra .trafego-limpar:disabled { opacity: 0.55; cursor: wait; }
.trafego-divisao { flex: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.6rem; }
.trafego-divisao[hidden] { display: none; }
.trafego-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.trafego-tag-externo { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.trafego-tag-interno { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.trafego-tag-desktop { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.trafego-tag-mobile { border-color: #e9d5ff; background: #faf5ff; color: #7e22ce; }
[data-admin-status].aviso-ok { color: #15803d; }
[data-admin-status].aviso-erro { color: #b91c1c; }

.gestor-kicker-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.gestor-operador {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 0.78rem;
  font-weight: 700;
}
.gestor-operador button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #0f766e;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.gestor-login #admin-funcionario-select {
  width: 100%;
  min-height: 42px;
  margin-top: 0.35rem;
  padding: 0 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.55rem;
  background: var(--white);
  font: inherit;
  font-weight: 700;
}
.gestor-pagina.equipe { padding-top: 0.15rem; }
.equipe-bloco {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 0.75rem;
  background: #fafbfa;
}
.equipe-bloco h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.equipe-cadastro-grupo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}
.equipe-cadastro {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0 0 0.55rem;
  width: fit-content;
  max-width: 100%;
}
.equipe-cadastro input[data-equipe-nome] {
  box-sizing: border-box;
  flex: 0 0 280px;
  width: 280px;
  max-width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 0.65rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}
.equipe-acoes-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.equipe-cadastro .equipe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 0.35rem;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.equipe-cadastro .equipe-btn svg { flex: none; }
.equipe-btn-novo {
  background: #111;
  border-color: #111;
  color: #fff;
}
.equipe-btn-novo:hover,
.equipe-btn-novo:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff;
}
.equipe-btn-excluir { border-color: #fca5a5; color: #b91c1c; }
.equipe-btn-excluir:hover:not(:disabled) { background: #fef2f2; }
.equipe-cadastro .equipe-btn:disabled,
.equipe-cadastro .equipe-btn:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}
.equipe-lista-box {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 0.55rem;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
body.gestor .equipe-lista-tabela {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: auto;
}
body.gestor .equipe-lista-tabela th,
body.gestor .equipe-lista-tabela td {
  padding: 1px 8px;
  line-height: 1.2;
}
body.gestor .equipe-lista-tabela th:nth-child(1),
body.gestor .equipe-lista-tabela td:nth-child(1) {
  width: auto;
  text-align: left;
}
body.gestor .equipe-lista-tabela th:nth-child(2),
body.gestor .equipe-lista-tabela td:nth-child(2) {
  width: 90px;
  text-align: center;
  white-space: nowrap;
}
.equipe-lista-tabela thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f5f4;
  box-shadow: 0 1px 0 var(--gray-200, #e2e8f0);
}
body.gestor .equipe-lista-tabela th.equipe-th-acao,
body.gestor .equipe-lista-tabela td.equipe-cel-acao {
  width: 100px;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap;
}
.equipe-lista-tabela tbody tr[data-equipe-linha] {
  cursor: pointer;
  transition: background 0.15s ease;
}
.equipe-lista-tabela tbody tr[data-equipe-linha]:hover { background: #f0f7f3; }
.equipe-lista-tabela tbody tr.is-selecionado {
  background: #e7f5ee;
  outline: 1px solid #86c5a5;
}
.equipe-tabela { font-size: 0.82rem; }
.equipe-nunca { color: #b45309; font-weight: 800; }
.equipe-acoes-cel { white-space: nowrap; }
.equipe-acoes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #86c5a5;
  border-radius: 999px;
  background: #eef8f2;
  color: #0f766e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.equipe-acoes-badge:hover,
.equipe-acoes-badge:focus-visible {
  background: #dcf5e7;
  outline: none;
}
.equipe-acoes-badge svg { flex: none; opacity: 0.85; }
.equipe-acoes-tooltip {
  position: fixed;
  z-index: 80;
  width: min(300px, calc(100vw - 16px));
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  color: #1f2937;
  font-size: 0.75rem;
  line-height: 1.35;
  pointer-events: none;
}
.equipe-acoes-tooltip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}
.equipe-acoes-tooltip ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.equipe-acoes-tooltip li {
  margin: 0;
  padding: 0.22rem 0;
  border-top: 1px solid #eef2f0;
}
.equipe-acoes-tooltip li:first-child { border-top: 0; padding-top: 0; }
.equipe-acoes-tooltip li span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}
.equipe-resumo-box {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.gestor .equipe-resumo-tabela {
  width: max-content;
  min-width: 100%;
}
body.gestor .equipe-resumo-tabela th,
body.gestor .equipe-resumo-tabela td {
  white-space: nowrap;
}
.equipe-acoes-modal:not([hidden]) {
  width: min(720px, calc(100% - 1.5rem));
  max-width: min(720px, 92vw);
  max-height: min(80vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.equipe-acoes-filtro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.45rem 0.55rem;
  padding: 0 1rem 0.65rem;
}
.equipe-acoes-filtro label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
}
.equipe-acoes-filtro input[type="date"] {
  box-sizing: border-box;
  min-height: 34px;
  padding: 0 0.45rem;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 0.45rem;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}
.equipe-acoes-filtro-btn {
  min-height: 34px;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.equipe-acoes-excluir-btn {
  margin-left: auto;
  border-color: #fca5a5;
  color: #b91c1c;
}
.equipe-acoes-excluir-btn:hover:not(:disabled) { background: #fef2f2; }
.equipe-acoes-excluir-btn:disabled,
.equipe-acoes-excluir-btn:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}
.equipe-acoes-modal-corpo { padding: 0.15rem 1rem 1rem; }
.equipe-acoes-modal-scroll {
  max-height: min(360px, 55vh);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 0.5rem;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
body.gestor .equipe-acoes-tabela th,
body.gestor .equipe-acoes-tabela td {
  padding: 4px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.equipe-acoes-vazio {
  margin: 0.4rem 0 0;
  color: var(--muted, #64748b);
  font-size: 0.88rem;
  font-weight: 700;
}
.equipe-acoes-overlay { z-index: 60; }
.equipe-acoes-modal { z-index: 61; }
@media (max-width: 767px) {
  .equipe-resumo-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .equipe-acoes-modal:not([hidden]) {
    width: 92vw;
    max-width: 92vw;
    max-height: min(85vh, 640px);
  }
  .equipe-acoes-modal .drawer-head h2 {
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .equipe-acoes-filtro {
    padding: 0 0.75rem 0.55rem;
  }
  .equipe-acoes-excluir-btn { margin-left: 0; }
  .equipe-acoes-modal-corpo { padding: 0.1rem 0.75rem 0.85rem; }
}
body.gestor .equipe-lista-tabela .equipe-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-height: 0;
  height: auto;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .equipe-cadastro { flex-wrap: wrap; }
  .equipe-cadastro input[data-equipe-nome] {
    flex: 1 1 100%;
    width: 100%;
  }
  .equipe-acoes-form { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-serie { height: 140px; }
}
@media (max-width: 480px) {
  .dash-card { padding: 0.9rem 0.75rem; }
  .dash-tabela { font-size: 0.8rem; }
  .dash-tabela th,
  .dash-tabela td { padding: 0.4rem 0.45rem; }
  .dash-nome-longo { display: none; }
  .dash-nome-curto { display: inline; }
}

/* Modal do olho: documento formal "PEDIDO DE ORÇAMENTO" (espelha o PDF). */
body.gestor .gestor-detalhe[hidden],
body.gestor .modal.gestor-detalhe[hidden],
.overlay[data-fechar-detalhe][hidden],
.equipe-acoes-overlay[hidden],
body.gestor .equipe-acoes-modal[hidden],
body.gestor .modal.equipe-acoes-modal[hidden] {
  display: none !important;
}
body.gestor .gestor-detalhe:not([hidden]) {
  width: 95%;
  max-width: 920px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0;
  background: #fff;
}
body.gestor .gestor-detalhe-topo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 12px 8px;
  border: 0;
  border-bottom: 1px solid var(--gray-200, #e2e8f0);
  background: #fff;
  box-sizing: border-box;
}
body.gestor .gestor-detalhe-topo h2 { display: none; }
body.gestor .gestor-detalhe-imprimir {
  min-height: 34px;
  margin: 0;
  margin-right: auto;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
}
body.gestor .gestor-detalhe-topo [data-fechar-detalhe] {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
body.gestor .gestor-detalhe-corpo {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 0;
  background: #525659;
}
.pedido-pdf-frame {
  display: block;
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  background: #525659;
}
.pedido-pdf-status {
  margin: 0;
  padding: 1.5rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}
.pedido-pdf-status.pedido-pdf-erro { color: #fecaca; }
@media (max-width: 700px) {
  body.gestor .gestor-detalhe:not([hidden]) {
    width: 95%;
    max-width: 95vw;
  }
  .pedido-pdf-frame { height: min(72vh, 640px); }
  body.gestor .gestor-detalhe-imprimir {
    font-size: 0.72rem;
    padding: 0 0.6rem;
  }
}
