/* Tamanho mínimo compartilhado, sem alterar as cores e variantes existentes. */
.btn,
.btn-close,
.app-menu-toggle,
.btnUpload,
.generate-qr-code,
.swal2-styled,
.page-link,
button.nav-link,
button.dropdown-item,
.ui-datepicker-buttonpane button,
.sp-container button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  min-height: 44px !important;
  min-width: 44px !important;
  /* Centraliza também links/labels em fluxo normal, sem transformar seus
     ícones e quebras de linha em itens flex separados. */
  align-content: center !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Itens de menu ficam alinhados à esquerda, como os links do mesmo menu. */
button.dropdown-item {
  justify-content: flex-start !important;
  text-align: left !important;
}

/* As utilidades fs-1 a fs-5 já expressam tamanhos maiores: preservá-las. */
.btn:where(:not(.fs-1):not(.fs-2):not(.fs-3):not(.fs-4):not(.fs-5)),
.cipa-public-site .btn,
.app-menu-toggle,
.btnUpload,
.generate-qr-code,
.swal2-styled,
.page-link,
button.nav-link,
button.dropdown-item,
.ui-datepicker-buttonpane button,
.sp-container button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-size: max(16px, 1em, var(--bs-btn-font-size, 1em)) !important;
}

.btn-sm,
.btn-xs,
.btn-md,
.btn-group-sm > .btn,
.input-group-sm > .btn {
  padding-block: .5rem !important;
}

/* O Bootstrap antigo do site público não define --bs-btn-font-size. */
.cipa-public-site .btn-lg,
.cipa-public-site .btn-group-lg > .btn {
  font-size: max(18px, 1.25em) !important;
}

.btn-close {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Permite títulos longos sem aumentar a largura da página no celular. */
.btn:not(.dropdown-toggle):not(.btn-icon) {
  white-space: normal;
}

.btn-group,
.btn-group-vertical {
  max-width: 100%;
}
