/* Custom button styles for resultados page and others */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  height: 38px; /* match typical bootstrap btn height */
  padding: 0 14px;
  border-radius: 6px; /* consistent rounding */
  white-space: nowrap;
}
.btn-action i[class^="ri-"] {
  font-size: 1rem;
  line-height: 1;
}

/* Active visual for date preset buttons */
.btnPreset.active {
  color: #fff !important;
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

/* Ensure size consistency when using btn-sm or other variants accidentally */
.btn-action.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 1rem;
}

/* Small spacing utility for inline forms next to button groups */
.inline-form {
  display: inline;
}

/* Historial admin: toolbar de acciones (eliminar) */
.hist-actions-toolbar { gap: .5rem; flex-wrap: nowrap; white-space: nowrap; }
.hist-actions-toolbar .input-group { width: auto; flex: 0 0 auto; }
.hist-actions-toolbar .input-group-text,
.hist-actions-toolbar .form-control,
.hist-actions-toolbar .btn {
  height: 42px;
  line-height: 1.25;
}
.hist-actions-toolbar .form-control {
  padding-top: .375rem;
  padding-bottom: .375rem;
}
@media (max-width: 575.98px) {
  .hist-actions-toolbar { flex-direction: column; align-items: stretch; }
  .hist-actions-toolbar .input-group { width: 100%; }
  .hist-actions-toolbar .btn { width: 100%; }
}

/* Selector de temas (DOCX): destacar etiquetas/grupos */
.select-topics optgroup { font-weight: 600; color: #495057; }
.select-topics option.group-header[disabled] {
  background: #eef4ff; /* suave azul */
  color: #0d6efd;      /* primary */
  font-weight: 700;
}

html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.nav,
.navbar,
.dropdown-menu,
.card,
.table,
h1, h2, h3, h4, h5, h6,
p, a, li, label, small, span, strong, em {
  font-family: inherit !important;
}
pre, code, kbd, samp {
  font-family: monospace, monospace !important;
}
