/* Ajuste 01 — padrão de ação em formato de tag e filtros pesquisáveis. */
:root {
  --soalhe-tag-radius: 999px;
}

:where(
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  [role="tab"],
  a.btn,
  a[class$="-btn"],
  a[class*="-btn "]
) {
  border-radius: var(--soalhe-tag-radius) !important;
}

:where(
  .btn,
  .tab-btn,
  .ag-nav-btn,
  .ag-subtab-btn,
  .ge-tab,
  [class$="-btn"],
  [class*="-btn "]
) {
  border-radius: var(--soalhe-tag-radius) !important;
}

.soalhe-filter-search {
  box-sizing: border-box;
  min-height: 36px;
  color: inherit;
  font: inherit;
}

.soalhe-filter-search::-webkit-search-cancel-button {
  cursor: pointer;
}

.soalhe-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* A sidebar é fixa e não participa do flex; limite o conteúdo à faixa restante. */
.main-content {
  flex: 0 1 auto;
  min-width: 0;
  width: calc(100% - 264px);
  max-width: calc(100% - 264px);
}

@media (max-width: 768px) {
  .main-content {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .soalhe-filter-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
