
.formulario {
  font-family:
    Open Sans,
    Arial;
  display: flex;
  flex-flow: row wrap;
  gap: 14px 16px; /* espaçamento moderno entre campos */
}

/* colunas */
.formulario .auto {
  flex: 1;
}
.formulario .auto-dinamico {
  flex-grow: 1;
  padding: 0;
}

/* cada “bloco” do campo */
.formulario .itemcampo {
  padding: 0;
  min-width: 220px;
}

/* labels */
.formulario .caption,
.formulario .captionV2 {
  float: left;
  width: 100%;
  font-size: 13px;
  color: #5b6b80;
  font-weight: 600;
  margin-bottom: 6px;
}

/* áreas do input */
.formulario .campo,
.formulario .campo-inativo,
.formulario .campoSemLinha {
  width: 100%;
  display: flex;
  margin-bottom: 8px; /* antes era 25px; agora fica mais “clean” */
}

/* remove linhas antigas (agora é estilo “caixa”) */
.formulario .campo {
  border-bottom: 0 !important;
}
.formulario .campo-inativo {
  border-bottom: 0 !important;
  opacity: 0.85;
}
.formulario .SoSemLinha {
  border-bottom: 0 !important;
}

.formulario .baixo-linha {
  margin-bottom: 10px;
}

/* =========================
   INPUT / SELECT / TEXTAREA
   ========================= */

.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  border: 1px solid #dbe7ff;
  border-radius: 8px;

  background: #f6f9ff;
  color: #2b3a4a;

  font-size: 16px;
  height: 44px;
  padding: 0 14px;

  margin-top: 0;
  text-indent: 0;

  outline: none;
  box-shadow: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* textarea */
.formulario textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

/* hover */
.formulario input:hover,
.formulario select:hover,
.formulario textarea:hover {
  border-color: #c6dbff;
  background-color: #f2f7ff;
}

/* focus */
.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
  border-color: #287dd1;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(40, 125, 209, 0.15);
}

/* placeholder */
.formulario input::placeholder,
.formulario textarea::placeholder {
  color: #8a98ad;
}

/* =========================
   SELECT (setinha moderna)
   ========================= */
.formulario select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  padding-right: 44px; /* espaço para a setinha */

  background-image:
    linear-gradient(45deg, transparent 50%, #7c8aa0 50%),
    linear-gradient(135deg, #7c8aa0 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

/* placeholder do select via option vazia */
.formulario select:invalid {
  color: #8a98ad;
}
.formulario select option[value=""] {
  color: #8a98ad;
}
select option:disabled {
  color: #dfdfdf;
}

/* remove setinha no IE antigo */
.formulario select::-ms-expand {
  display: none;
}

/* =========================
   Versão menor
   ========================= */
.formulario-menor input,
.formulario-menor select {
  height: 36px;
  font-size: 14px;
  padding: 0 12px;
}

/* =========================
   Calendário (seu caso antigo)
   ========================= */
.calendario select {
  width: 120px;
  border: 1px solid #dbe7ff;
  background: #f6f9ff;
}

/* =========================
   Autofill Chrome
   ========================= */
.formulario input:-webkit-autofill,
.formulario select:-webkit-autofill,
.formulario textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  -webkit-text-fill-color: #2b3a4a;
}

/* =========================
   Ícone lateral (mantido)
   ========================= */
.formulario .icone {
  float: right;
  width: 50px;
}

/* container flutuante */
.formulario .pontoflutuante {
  position: absolute;
  right: 20px;
  top: 328px;
  display: flex;
  gap: 4px;
  padding: 6px 8px;
}

/* caixas */
.formulario .box {
  width: 18px;
  height: 9px;
  border-radius: 3px;
  background: #d1d5db;
  transition: all 0.25s ease;
}

/* estado ativo */
.formulario .box.ativo {
  background: #3b82f6;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

/* hover opcional */
.formulario .box:hover {
  transform: scale(1.15);
}

/* =========================
   Botão padrão
   ========================= */
.formulario .botao {
  font-family:
    Open Sans,
    Arial;
  float: right;
  text-align: center;
  background-color: #287dd1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  max-width: 140px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 5px;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}
.formulario .botao:hover {
  background-color: #1c5da3;
}
.formulario .botao:active {
  transform: translateY(1px);
}
.formulario .botao:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(40, 125, 209, 0.15);
}

/* =========================
   Disabled
   ========================= */
input:disabled,
select:disabled,
textarea:disabled {
  transition: 0.2s ease;
  background-color: #f2f3f5;
  border-color: #e5e7eb;
  color: #9aa3af;
  cursor: not-allowed;
}

/* =========================
   Rodapé fixo (mantido)
   ========================= */
.rodapeFixo {
  background-color: #f5f8fa;
  height: 60px;
  width: 100%;
  position: fixed;
  bottom: 0px;
  left: 0px;
  -webkit-box-shadow: -1px -4px 7px -1px rgba(0, 0, 0, 0.17);
  -moz-box-shadow: -1px -4px 7px -1px rgba(0, 0, 0, 0.17);
  box-shadow: -1px -4px 7px -1px rgba(0, 0, 0, 0.17);
  z-index: 11;
}
.rodapeFixo .formulario input[type="submit"] {
  margin-right: 10px;
  margin-top: 8px;
}

/* =========================================================
   Select2 MULTI - forçar padrão allPost + altura controlada
   (Cole no FINAL do CSS)
   ========================================================= */

/* caixa do select2 (multi) */
.select2-container--default .select2-selection--multiple {
  background: #f6f9ff !important;
  border: 1px solid #dbe7ff !important;
  border-radius: 8px !important;

  min-height: 44px !important; /* altura inicial */
  height: auto !important; /* permite crescer */
  max-height: 120px !important; /* limite */

  overflow-y: auto !important; /* permite crescer */
  overflow-x: hidden !important;

  align-items: flex-start !important;
  padding: 6px 10px !important;
  line-height: 1 !important;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge antigo */
}

/* esconder scrollbar Chrome */
.select2-container--default .select2-selection--multiple::-webkit-scrollbar {
  display: none;
}

/* foco (mesmo azul do input) */
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #287dd1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(40, 125, 209, 0.15) !important;
}

/* área interna das tags */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
  gap: 6px 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;

  flex-wrap: wrap !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* chips (tag) */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background: #287dd1 !important;
  color: #fff !important;
  border: 0 !important;

  height: auto;
  line-height: 22px !important;
  border-radius: 10px !important;

  margin: 0 !important;
  padding: 0 10px 0 28px !important;

  display: inline-flex !important;
  align-items: center !important;
}

/* remover dentro do chip */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 18px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;

  position: relative !important;
  left: -20px !important;
  border-radius: 999px !important;
  height: 30px !important;
  width: 30px !important;
  max-width: 30px;
  max-height: 30px;
  min-width: 30px;
  min-height: 30px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  background: #1c5da3 !important;
}

/* campo de busca inline (não pode quebrar layout) */
.select2-container--default .select2-search--inline {
  flex: 1 1 auto !important;
  min-width: 120px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 28px !important; /* casa com o seu chip */
  display: inline-flex !important;
  align-items: center !important;
}
.select2-container--default .select2-search--inline .select2-search__field {
  width: 100% !important;
  min-width: 120px !important;

  margin: 0 !important;
  padding: 0 !important;

  max-height: 44px !important;

  font-size: 14px !important;
  font-family:
    Open Sans,
    Arial !important;
  color: #2b3a4a !important;
}
.select2-container--default
  .select2-search--inline
  .select2-search__field::placeholder {
  color: #8a98ad !important;
  opacity: 1 !important;
}

/* dropdown (lista) no padrão allPost */
.select2-container--default .select2-dropdown {
  border: 1px solid #dbe7ff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12) !important;
}
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(40, 125, 209, 0.12) !important;
  color: #1c5da3 !important;
}
.select2-container--default .select2-results__option--selected {
  background: rgba(40, 125, 209, 0.08) !important;
  color: #2b3a4a !important;
}

.btnPesquisar {
  float: right;
  cursor: pointer;
  background-color: #287dd1;
  width: 44px;
  height: 44px;
  border-radius: 5px;

  display: flex;
  align-items: center; /* centraliza vertical */
  justify-content: center; /* centraliza horizontal */
}

.btnPesquisar .material-icons {
  color: #fff;
  font-size: 22px; /* ajuste fino */
}

.iconeLadoInput {
  font-size: 26px;
  cursor: pointer;
  color: #287dd1;
  margin-left: 8px;
  margin-top: 8px;
}

.iconeLadoInput:hover {
  color: #1e63a8;
  transition:
    visibility 0.5s,
    opacity 0.5s linear;
}


/* =========================
   Botão Padrão V2 (.btnV2)
   Novo padrão de botão com ícone + texto.
   Usar em todas as telas novas.
   Variantes: --primary (azul), --danger (vermelho), --secondary (cinza)
   ========================= */
.btnV2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: #fff;
  font-family: Open Sans, Arial, sans-serif;
  text-decoration: none;
}

.btnV2 .material-icons {
  font-size: 22px;
}

.btnV2:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btnV2:active {
  transform: translateY(0);
  opacity: 1;
}

.btnV2:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Primary (azul — ação principal) */
.btnV2--primary {
  background: #287dd1;
}

.btnV2--primary:hover {
  background: #1c5da3;
}

/* Danger (vermelho — excluir, cancelar destrutivo) */
.btnV2--danger {
  background: #d14343;
}

.btnV2--danger:hover {
  background: #b42323;
}

/* Secondary (cinza — cancelar, voltar) */
.btnV2--secondary {
  background: #94a3b8;
}

.btnV2--secondary:hover {
  background: #64748b;
}

/* Success (verde — confirmar, salvar) */
.btnV2--success {
  background: #16a34a;
}

.btnV2--success:hover {
  background: #15803d;
}
