.panel-consulta {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 6px 6px 0 0;
  border: 1px solid #ddd;
}
.panel-resultados {
  background-color: #fff;
  padding: 20px;
  border-radius: 0 0 6px 6px;
  border: 1px solid #ddd;
  border-top: none;
  margin-bottom: 20px;
}

.no-results {
  padding: 30px;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}

.error-message {
  padding: 30px;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}

.btn-outline-primary {
  padding: 5px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-bottom: 20px;
  transition: 0.2s;
}

.btn-outline-primary:hover {
  padding: 5px 15px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  border-radius: 3px;
  margin-bottom: 20px;
  transition: 0.2s;
}

.btn-outline-primary:active {
  transform: translateY(1px);
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

.btn-tertiary {
  background-color: #f8f8f8;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  transition: 0.2s;
}

.btn-tertiary:hover {
  background-color: #fff;
}

.btn-tertiary:active {
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

.modal-title {
  font-family: "Gotham-Bold", sans-serif;
  font-size: 18px;
}

.modal-backdrop {
  background-color: transparent !important;
}

.btn-pdf {
  color: #333;
  background-color: #f8f8f8;
  border: 2px solid #ff0000;
  border-radius: 3px;
  transition: 0.2s;
}

.btn-pdf:hover {
  color: #333 !important;
  background-color: #fff !important;
  border-color: #ff0000;
}

.btn-pdf:active,
.btn-pdf.active,
.open > .dropdown-toggle.btn-pdf {
  color: #ff0000 !important;
  background-color: #fff;
  border-color: #ff0000;
}

.btn-excel {
  color: #333;
  background-color: #f8f8f8;
  border: 2px solid #008000;
  border-radius: 3px;
  transition: 0.2s;
}

.btn-excel:hover {
  color: #333 !important;
  background-color: #fff !important;
  border-color: #008000;
}

.btn-excel:active,
.btn-excel.active,
.open > .dropdown-toggle.btn-excel {
  color: #008000 !important;
  background-color: #fff;
  border-color: #008000;
}

.beneficiario {
  font-weight: bold;
  font-size: 22px;
  margin: 20px 0 10px 0;
}
.table > tbody > tr > td {
  vertical-align: middle;
  text-align: left;
}
.table > thead > tr > th {
  background-color: #f0f0f0;
}
.bank-logo {
  max-width: 40px;
  max-height: 32px;
  margin-right: 8px;
}

.btn-primary {
  color: #333;
  background-color: #f8f8f8;
  border: 2px solid #967d2d;
  border-radius: 3px;
  transition: 0.2s;
  text-transform: uppercase !important;
  font-size: 1.2rem !important;
}

.tabla-resultados {
  border-radius: 5px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#accountHolderName {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 4px;
  line-height: 1.2;
}

#associatedCount {
  margin: 0 0 12px;
  font-size: 14px;
  color: #565656;
}

#associatedCount .resultado {
  display: inline-block;
  min-width: 28px;
  padding: 2px 10px;
  margin-left: 6px;
  border: 1px solid #777;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(180deg, #f8f8f8, #eeeeee);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) inset;
}

.header-sep {
  border: 0;
  border-top: 1px solid #e3e3e3;
  margin: 8px 0 12px;
}

@keyframes pop-in {
  0% {
    transform: scale(0.96);
    opacity: 0.25;
  }
  60% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
#associatedCount.flash {
  animation: pop-in 0.35s ease-out;
}

.invisible {
  visibility: hidden;
}

#resultsPanel.is-loading {
  position: relative;
}
#resultsPanel.is-loading::after {
  content: "Cargando...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

#associatedCount {
  transition: opacity 0.25s ease;
}
#associatedCount.is-hidden {
  opacity: 0;
  pointer-events: none;
}
#associatedCount.is-visible {
  opacity: 1;
}

.pill-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  position: relative;
  padding: 6px 12px 6px 12px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  color: #444;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover {
  background: #f7f7f7;
}

.pill.active {
  border-color: #967d2d;
  font-weight: 600;
  padding-left: 22px;
  background-color: #f9f6ea;
}
.pill.active::before {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}

.doc-input {
  flex: 1 1 auto;
  max-width: 250px;
}

.b-filtros {
  display: block;
}
.f-doc-type,
.f-doc-number,
.f-account {
  margin-bottom: 10px;
}

.f-doc-number .form-control,
.f-account .form-control {
  width: 100%;
}

.pill-group {
  flex-wrap: wrap;
}

.filters-inline {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.f-doc-type {
  flex: 0 0 auto;
}
.pill-group {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.f-doc-number,
.f-account {
  flex: 1 1 320px;
  min-width: 280px;
}

.f-doc-number .form-control,
.f-account .form-control,
.doc-input,
.account-input {
  width: 100%;
  max-width: none;
}

.f-doc-type,
.f-doc-number,
.f-account {
  margin-bottom: 8px;
}

@media (min-width: 992px) {
  .filters-inline {
    flex-wrap: nowrap;
  }
}

@media (min-width: 992px) {
  .filters-inline {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .f-doc-type .control-label {
    display: block;
    margin-bottom: 6px;
    text-align: left;
  }
  .pill-group {
    display: inline-flex;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .instructivo-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: underline;
  }

  .instructivo-subtitle {
    font-size: 12px;
    font-family: "Gotham-Bold", sans-serif;
    margin: 0px;
  }

  .f-doc-type {
    flex: 0 0 auto;
  }
  .f-doc-number {
    flex: 0 0 360px;
  }
  .f-account {
    flex: 0 0 320px;
  }

  .f-doc-number .form-control,
  .f-account .form-control,
  .doc-input,
  .account-input {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 991px) {
  .filters-inline {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .f-doc-type,
  .f-doc-number,
  .f-account {
    flex: 1 1 100%;
  }

  .pill-group {
    flex-wrap: wrap;
    gap: 6px;
  }

  .f-doc-type .control-label {
    margin-bottom: 6px;
  }

  .form-control,
  .doc-input,
  .account-input {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .f-doc-type {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* opcional, para alinear a la izquierda */
  }

  .f-doc-type label {
    margin-bottom: 5px; /* separa el texto de los pills */
  }
}
