.unidades-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
  border-bottom: 1px solid var(--rest-borda);
  padding-bottom: 8px;
}

.unidades-titulo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-family: var(--font-destaque);
  font-weight: 700;
  color: var(--rest-texto);
}

.unidades-titulo .bi {
  color: var(--rest-primaria) !important;
  opacity: .9;
  font-size: 1.25rem;
}

.unidades-botao-novo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 10px;
  background: var(--rest-primaria);
  color: var(--rest-branco);
  font-family: var(--font-destaque);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--rest-sombra);
  transition: transform .3s ease, background .15s ease;
}

.unidades-botao-novo .bi {
  font-size: 1rem;
}

.unidades-botao-novo:hover {
  transform: scale(1.03);
}

.unidades-botao-novo:active {
  transform: scale(1.035);
}

.unidades-tabela-wrap {
  width: 100%;
  overflow-x: auto;
}

.unidades-tabela {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-texto);
  color: var(--rest-texto);
  border-radius: var(--rest-radius);
  overflow: hidden;
}

.unidades-tabela thead th {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-destaque);
  padding: 14px 16px;;
  border-bottom: 1px solid var(--rest-primaria);
  white-space: nowrap;
}

.unidades-tabela tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rest-borda);
  vertical-align: top;
}

.unidades-linha:hover {
  background: #fffdfa;
}

.unidades-cell-nome {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.unidades-cell-nome .bi {
  color: var(--rest-subtexto);
  opacity: .9;
  font-size: 1.05rem;
}

.unidades-nome {
  font-weight: 700;
  line-height: 1.25;
}

.unidades-th-acoes {
  text-align: right;
}

.unidades-acoes {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
}

.unidades-botao {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-destaque);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--rest-sombra);
  line-height: 1;
  color: #fff;
  transition: transform .12s ease, box-shadow .2s ease;
  font-size: .85rem;
  cursor: pointer;
}

.unidades-botao .bi {
  font-size: 1rem;
}

.unidades-botao.editar {
  background: var(--rest-principal);
}

.unidades-botao.remover {
  background: var(--rest-erro);
}

.unidades-botao:hover {
  transform: scale(1.03);
}

.unidades-botao:active {
  transform: scale(1.035);
}

.unidades-vazio {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 18px;
  color: var(--rest-subtexto);
  background: linear-gradient(to right, rgba(0, 0, 0, .02), transparent);
  border-radius: 12px;
}

.unidades-vazio .bi {
  opacity: .85;
}

.unidades-botao:focus-visible,
.unidades-botao-novo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(216, 67, 21, .18);
}

.painel__unidades__bnt {
  display: flex;
  gap: .5rem;
}

.painel__unidades__bnt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-destaque);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transform-origin: center center;
  transition: transform .3s ease, box-shadow .2s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.painel__unidades__bnt .bi {
  font-size: 1rem;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  transition: inherit;
}

.unidade__bnt__editar {
  background: var(--rest-principal);
  color: var(--rest-branco);
  border-color: var(--rest-principal);
  font-size: 0.85rem;
}

.unidade__bnt_excluir {
  background: var(--rest-erro);
  color: var(--rest-branco);
  border-color: var(--rest-erro);
  font-size: 0.85rem;
}

.unidade__bnt__editar:hover,
.unidade__bnt_excluir:hover {
  transform: scale(1.03);
}