@import url("./components-controls.css");
@import url("./components-display.css");
@import url("./components-feedback.css");
@import url("./components-modals.css");
.sm-table thead th[data-ordenavel] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.sm-table thead th[data-ordenavel]:hover,
.sm-table thead th[data-ordenavel]:focus {
  background-color: #075985;
  color: var(--branco);
  outline: none;
}

.indicador-ordenacao {
  display: inline-block;
  min-width: 1em;
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75em;
}

.sm-table thead th[data-ordenavel][aria-sort="ascending"],
.sm-table thead th[data-ordenavel][aria-sort="descending"] {
  background-color: #0c4a6e;
  color: var(--branco);
}

.tabela-ordenar,
.tabela-filtro-abrir {
  border: 0;
  border-radius: 0.25rem;
  padding: 0.15rem 0.3rem;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.tabela-ordenar:focus-visible,
.tabela-filtro-abrir:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.tabela-filtros-ativos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.tabela-filtro-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: #0c4a6e;
  background: #f0f9ff;
  font-size: 0.85rem;
}

.tabela-filtro-chip button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.tabela-filtro-popover {
  position: fixed;
  z-index: 10000;
  display: grid;
  min-width: 15rem;
  gap: 0.65rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: var(--branco, #fff);
  box-shadow: 0 8px 24px #0f172a33;
}

.tabela-filtro-popover label {
  display: grid;
  gap: 0.25rem;
}

.tabela-filtro-popover input,
.tabela-filtro-popover select {
  width: 100%;
  min-width: 0;
}

.tabela-filtro-acoes {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.tabela-filtro-acoes button {
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  padding: 0.35rem 0.6rem;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
}
