/* =========================================================
   SELECT2 + BOOTSTRAP 5
   Padrão: tamanho normal
   Pequeno: adicionar .select2-sm no <select>
   ========================================================= */


/* ---------------------------------------------------------
   SELECT2 - largura padrão
   --------------------------------------------------------- */

.select2-container {
  width: 100% !important;
}


/* ---------------------------------------------------------
   SELECT2 SINGLE - tamanho normal Bootstrap 5
   --------------------------------------------------------- */

.select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px); /* 38px */
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.5 !important;
  color: #212529;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0.75rem;
}


/* ---------------------------------------------------------
   SELECT2 MULTIPLE - tamanho normal Bootstrap 5
   --------------------------------------------------------- */

.select2-container--default .select2-selection--multiple {
  min-height: calc(1.5em + 0.75rem + 2px); /* 38px */
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding-left: 0 !important;
  line-height: 1.5 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 2px !important;
}


/* ---------------------------------------------------------
   SELECT2 SM - quando o <select> original tiver .select2-sm
   Exemplo:
   <select class="form-select select2 select2-sm">
   --------------------------------------------------------- */

select.select2-sm + .select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.5rem + 2px); /* 32px */
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

select.select2-sm + .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.5 !important;
}

select.select2-sm + .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0.5rem;
}

select.select2-sm + .select2-container--default .select2-selection--multiple {
  min-height: calc(1.5em + 0.5rem + 2px); /* 32px */
  padding: 0.125rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

select.select2-sm + .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding-left: 0 !important;
  line-height: 1.5 !important;
}

select.select2-sm + .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 2px !important;
}


/* ---------------------------------------------------------
   SELECT2 FOCUS - visual igual Bootstrap 5
   --------------------------------------------------------- */

.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


/* ---------------------------------------------------------
   SELECT2 disabled
   --------------------------------------------------------- */

.select2-container--default.select2-container--disabled .select2-selection {
  background-color: #e9ecef;
  opacity: 1;
}


/* =========================================================
   HTML / BASE
   ========================================================= */

html {
  height: 100%;
}


/* =========================================================
   TYPEAHEAD / TWITTER TYPEAHEAD
   ========================================================= */

.tt-query {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
  color: #999;
}

.tt-menu {
  width: 422px;
  margin-top: 4px;
  padding: 4px 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
     -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
          box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.tt-suggestion {
  padding: 3px 20px;
  line-height: 24px;
}

.tt-suggestion.tt-cursor,
.tt-suggestion:hover {
  color: #fff;
  background-color: #0097cf;
}

.tt-suggestion p {
  margin: 0;
}


/* =========================================================
   TOAST SUPERIOR
   ========================================================= */

.toast-cima {
  position: absolute;
  background-color: #198754;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(-10px);
  z-index: 9999;
}

.toast-cima.mostrar {
  opacity: 1;
  transform: translateY(-30px);
}


/* =========================================================
   FOOTER SELECT2 FIXO
   ========================================================= */

#footer-select2 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fafafd;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.07);
  border-top: 1px solid #e0e0e0;
  padding: 12px 24px 8px 24px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;
}

#footer-select2 .select2-container {
  min-width: 300px;
  flex: 1 1 350px;
}

#footer-select2 select.form-select {
  min-width: 250px;
  flex: 1 1 300px;
}