input,
select,
textarea {
  font-size: 14px
}


/* CONTENEDOR GENERAL */
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination-controls {
  display: flex;
  align-items: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* COLORES */
:root {
  --green-main: #087021;
  /* verde oscuro */
  --green-light: #83b790;
  /* verde claro */
}

/* BOTONES ANTERIOR / SIGUIENTE */
.page-link {
  border: none;
  border-radius: 5px !important;
  background-color: var(--green-main) !important;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  height: 40px;
  color: #fff !important;
}

/* Anterior */
.pagination-prev {
  background: var(--green-light);
  color: #f5f5f5;
}

/* Siguiente */
.pagination-next {
  background: var(--green-main);
  color: #ffffff;
}

/* Estado deshabilitado */
.page-link.disabled,
.page-link:disabled {
  opacity: 0.5;
  cursor: default;
}

/* NÚMEROS DE PÁGINA */
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botón número */
.pagination-page {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--green-main);
  background: #ffffff;
  color: var(--green-main);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
}

/* Página activa */
.pagination-page.active {
  background: var(--green-main);
  color: #ffffff;
}

/* Hover */
.pagination-page:not(.active):hover {
  background: rgba(8, 112, 33, 0.06);
}

/* Puntos suspensivos */
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  color: var(--green-main);
}

/* Para asegurar alineación de los li */
.page-item,
.pager__item--next,
.btn-el {
  display: flex;
  align-items: center;
}

/* Botón Anterior deshabilitado */
.pagination-prev:disabled {
  background: #83b790 !important;
  /* verde claro */
  color: #e8f1ea !important;
  border: none;
  /* blanco suave */
  border-radius: 8px;
  height: 40px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default !important;
  opacity: 1 !important;
  /* no lo hace translúcido */
}

/* Icono izquierda para elementos deshabilitados (solo :disabled, sin clase .disabled) */
.pagination-prev:disabled::before {
  content: "‹";
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  font-weight: bold;
  color: inherit;
}

/* ❌ Desactivar completamente el hover en disabled */
.pagination-prev:disabled:hover {
  background: #83b790 !important;
  /* no cambia */
  cursor: default !important;
}


/* Icono de flecha hacia la izquierda */
.pagination-prev::before {
  content: "‹";
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  font-weight: bold;
  color: inherit;
}

/* Botón Siguiente activo */
.pagination-next {
  background: #087021;
  /* verde oscuro */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding-left: 13px;
  padding-right: 13px;
  height: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;

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

  cursor: pointer;
}

/* Flecha hacia la derecha */
.pagination-next::after {
  content: "›";
  font-size: 16px;
  margin-left: 8px;
  line-height: 0;
  font-weight: bold;
  color: inherit;
}

/* Hover opcional */
.pagination-next:hover {
  background: #065a19;
}

.form-row .form-item-text {
  width: 100%;
}

.form-row .js-form-type-textfield input.form-text {
  height: 40px;
  border: 1px solid #087021;
  border-radius: 6px;
  font-size: 15px;
  padding-right: 60px;
}

.form-row .js-form-type-textfield~.form-actions {
  position: absolute;
  top: 5px;
  right: 16px;
  width: auto;
  padding: 0;
  z-index: 1
}

.form-row .js-form-type-textfield~.form-actions button {
  border-radius: 0 5px 5px 0;
  padding: 13px 25px;
  line-height: 10px;
  text-indent: -9999px;
  position: relative;
  display: block
}

.form-row .js-form-type-textfield~.form-actions button::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-size: 16px;
  color: #fff;
  position: absolute;
  font-weight: 700;
  text-indent: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%)
}

.data-list-footer {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: end;
}

:root {
  --green-main: #087021;
  --green-light: #83b790;
  --border-gray: #e5e5e5;
  --text-main: #222;
  --text-muted: #666;
  --bg-white: #ffffff;
  --input-bg: #fdfdfd;
}

/* CONTENEDOR GENERAL */
.filters {
  width: 360px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--text-main);
}

/* BUSCADOR */
.filters__search {
  display: flex;
  margin-bottom: 18px;
}

.filters__search-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--green-main);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: var(--input-bg);
  font-size: 14px;
}

.filters__search-input::placeholder {
  color: var(--text-muted);
}

.filters__search-btn {
  width: 48px;
  border: 1px solid var(--green-main);
  border-radius: 0 4px 4px 0;
  background: var(--green-main);
  cursor: pointer;
}

/* Icono lupa */
.icon--search {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.icon--search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #fff;
  top: 10px;
  left: 11px;
  transform: rotate(45deg);
}

/* CABECERA "Filtrar por" */
.filters__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 18px;
}

.icon--filter {
  width: 14px;
  height: 14px;
  border-left: 8px solid #000;
  border-right: 4px solid transparent;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* GRUPOS */
.filter-group {
  border-top: 1px solid var(--border-gray);
  padding-top: 14px;
  margin-bottom: 18px;
}

.filter-group__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.filter-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ITEM */
.filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-gray);
}

.filter-item:last-child {
  border-bottom: none;
}

.filter-item__count {
  font-size: 13px;
  color: var(--text-muted);
}

/* CHECKBOX CUSTOM */
.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filter-checkbox input {
  display: none;
}

.filter-checkbox__box {
  width: 16px;
  height: 16px;
  border: 2px solid var(--green-main);
  border-radius: 2px;
  box-sizing: border-box;
  background: var(--bg-white);
}

.filter-checkbox input:checked+.filter-checkbox__box {
  background: var(--green-main);
  position: relative;
}

.filter-checkbox input:checked+.filter-checkbox__box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 7px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox__label {
  font-size: 14px;
}

/* "Más etiquetas" */
.filters__more {
  margin-top: 6px;
  padding: 6px 0 0;
  border: none;
  background: none;
  color: var(--green-main);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon--chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green-main);
  border-bottom: 2px solid var(--green-main);
  transform: rotate(45deg);
}

.wrapper-total {
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8d8d8;
}

.list-rows {
  padding: 0;
}

.list-row {
  padding: 15px 0;
  border-bottom: 1px solid #d8d8d8;
}

.list-cell[data-key="link"] a {
  padding: 0;
  color: var(--green-main);
  font-size: 17px;
  font-weight: 700;
}

.list-cell[data-key="created"] .cell-label {
  font-weight: 700;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  -webkit-transition: border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
  transition: border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
  -o-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-box-shadow .15s ease-in-out
}

@media (prefers-reduced-motion:reduce) {
  .form-control {
    -webkit-transition: none;
    -o-transition: none;
    transition: none
  }
}

.form-control::-ms-expand {
  background-color: transparent;
  border: 0
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #11e744;
  outline: 0;
  -webkit-box-shadow: 0 0 0 .2rem rgba(8, 112, 33, .25);
  box-shadow: 0 0 0 .2rem rgba(8, 112, 33, .25)
}

.form-control::-webkit-input-placeholder {
  color: #555;
  opacity: 1
}

.form-control::-moz-placeholder {
  color: #555;
  opacity: 1
}

.form-control::-ms-input-placeholder {
  color: #555;
  opacity: 1
}

.form-control::placeholder {
  color: #555;
  opacity: 1
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1
}

select.form-control:focus::-ms-value {
  color: #495057;
  background-color: #fff
}

.form-control-file,
.form-control-range {
  display: block;
  width: 100%
}

.rows-per-page .clr-content-low {
  margin-right: 5px;
}


.rows-per-page select.rows-per-page-select {
  color: #495057;
  height: 40px;
  width: auto;
  border-radius: 5px;
  font-weight: 300;
  padding: .375rem .75rem;
  font-size: 14px;
}


.rows-per-page select.rows-per-page-select:focus,
.rows-per-page select.rows-per-page-select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid var(--green-main) !important;
  /* mantener 1px si quieres */
  border-width: 1px !important;
}

.item-list__checkbox .facet-item--regular>[type=checkbox]:checked+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular>[type=checkbox]:checked+label:before {
  width: 8px;
  height: 16px;
  border-top: transparent;
  border-left: transparent;
  border-color: #087021;
  border-width: 2px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -2px;
  left: 4px;
}

/* Eliminar cualquier efecto de focus/hover/active en el checkmark (no tocar el estado checked) */
.item-list__checkbox .facet-item--regular>[type=checkbox]:focus+label:before,
.item-list__checkbox .facet-item--regular>[type=checkbox]:focus-visible+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular>[type=checkbox]:focus+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular>[type=checkbox]:focus-visible+label:before {
  outline: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.field--name-field-contenido-restringido {
  overflow-wrap: break-word !important;
}

table>thead>tr>th,
table.tabla-con-encabezado thead>tr>th {
  background-color: none !important;
}

/* Estilos de .block-facets y sus lists (aportados por el usuario) */
.block-facets .item-list__checkbox,
.block-facets .item-list__toggle_checkbox {
  list-style: none;
  padding: 0;
}

.block-facets .item-list__checkbox .facet-item,
.block-facets .item-list__toggle_checkbox .facet-item {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #ebebeb;
}

.block-facets .item-list__checkbox .facet-item:first-child,
.block-facets .item-list__toggle_checkbox .facet-item:first-child {
  border-top: 1px solid #ebebeb;
}

.block-facets .item-list__checkbox .facet-item label,
.block-facets .item-list__toggle_checkbox .facet-item label {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  color: #333;
}

.block-facets .item-list__checkbox .facet-item label .facet-item__count,
.block-facets .item-list__toggle_checkbox .facet-item label .facet-item__count {
  font-family: 'Noto Sans TC', sans-serif;
  color: #000;
  margin-left: auto;
  padding: 0 25px;
}

/* Reglas para mostrar/ocultar ULs hijos según clases manipuladas por JS */
/* Por defecto los UL anidados están ocultos */
.block-facets .item-list__checkbox .facet-item>ul {
  display: none;
}

/* Si el UL no tiene la clase .collapsed, mostrarlo */
.block-facets .item-list__checkbox .facet-item>ul:not(.collapsed) {
  display: block;
}

/* Si el LI padre tiene la clase children-collapsed, forzar ocultación de su UL hijo */
.block-facets .item-list__checkbox li.children-collapsed>ul {
  display: none !important;
}

/* Si el LI padre NO tiene children-collapsed, permitir mostrar su UL (si no tiene .collapsed) */
.block-facets .item-list__checkbox li:not(.children-collapsed)>ul:not(.collapsed) {
  display: block;
}

.block-facets .item-list__checkbox .facet-item ul {
  display: none;
}

.block-facets .item-list__checkbox .facet-item.collapsed>ul {
  display: block;
}

.block-facets .item-list__checkbox .facet-item--regular>[type=checkbox]+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular>[type=checkbox]+label:before {
  color: #777;
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-block;
  min-height: 15px;
  height: 15px;
  width: 15px;
  border: 1px solid #83b790;
  -webkit-box-shadow: 0 0 3px #83b790;
  box-shadow: 0 0 3px #83b790;
  font-size: 14px;
  vertical-align: top;
  text-align: center;
  -webkit-transition: all .2s ease-in;
  -o-transition: all .2s ease-in;
  transition: all .2s ease-in;
  content: '';
}

.block-facets .item-list__checkbox .facet-item--regular.radio-square>[type=checkbox]+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular.radio-square>[type=checkbox]+label:before {
  border-radius: 0;
}

.block-facets .item-list__checkbox .facet-item--regular.radio-rounded>[type=checkbox]+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular.radio-rounded>[type=checkbox]+label:before {
  border-radius: 25%;
}

.block-facets .item-list__checkbox .facet-item--regular.radio-blue>[type=checkbox]+label:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular.radio-blue>[type=checkbox]+label:before {
  border: 2px solid #ccc;
}

.block-facets .item-list__checkbox .facet-item--regular>[type=checkbox]+label:hover:before,
.block-facets .item-list__toggle_checkbox .facet-item--regular>[type=checkbox]+label:hover:before {
  border-color: #83b790;
}

.block-facets .item-list__checkbox .facet-item--toggle,
.block-facets .item-list__toggle_checkbox .facet-item--toggle {
  position: relative;
}

.block-facets .item-list__checkbox .facet-item--toggle .toggler,
.block-facets .item-list__toggle_checkbox .facet-item--toggle .toggler {
  position: absolute;
  display: block;
  width: 30px;
  height: 20px;
  left: 10px;
  top: 15px;
  z-index: -1;
}

.block-facets .item-list__checkbox .facet-item--toggle input,
.block-facets .item-list__toggle_checkbox .facet-item--toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.block-facets .item-list__checkbox .facet-item--toggle .toggler .slider,
.block-facets .item-list__toggle_checkbox .facet-item--toggle .toggler .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.block-facets .item-list__checkbox .facet-item--toggle .toggler .slider:before,
.block-facets .item-list__toggle_checkbox .facet-item--toggle .toggler .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  -webkit-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

.block-facets .item-list__checkbox .facet-item--toggle [type=checkbox]:checked~.toggler .slider,
.block-facets .item-list__toggle_checkbox .facet-item--toggle [type=checkbox]:checked~.toggler .slider {
  background-color: #087021;
  -webkit-box-shadow: 0 0 3px #83b790;
  box-shadow: 0 0 3px #83b790;
}

.block-facets .item-list__checkbox .facet-item--toggle input:focus~.toggler .slider,
.block-facets .item-list__toggle_checkbox .facet-item--toggle input:focus~.toggler .slider {
  -webkit-box-shadow: 0 0 1px #2196f3;
  box-shadow: 0 0 1px #2196f3;
}

.block-facets .item-list__checkbox .facet-item--toggle [type=checkbox]:checked~.toggler .slider:before,
.block-facets .item-list__toggle_checkbox .facet-item--toggle [type=checkbox]:checked~.toggler .slider:before {
  -webkit-transform: translateX(10px);
  -o-transform: translateX(10px);
  transform: translateX(10px);
}

.block-facets .facets-soft-limit-link {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  display: block;
  margin: 15px 0;
}

.block-facets .facets-soft-limit-link::after {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  padding-left: 10px;
}

.block-facets .facets-soft-limit-link.open::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f106";
}

/* Limitar visualmente listas largas: mostrar solo primeros 5 items cuando .collapsed */
.item-list__checkbox.collapsed>li:nth-child(n+6) {
  display: none;
}

/* Añadir transición suave opcional */
.item-list__checkbox>li {
  transition: opacity 0.15s ease;
}

/* Estilos del enlace "Más etiquetas" (ya existe .facets-soft-limit-link, ajustamos texto/estado) */
.facets-soft-limit-link {
  display: block;
  margin-top: 10px;
  color: var(--green-main);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* Estado abierto (muestra "Mostrar menos" con icono girado) */
.facets-soft-limit-link.open {
  color: var(--green-main);
}

/* Asegurar que cuando se expande, todos los li estén visibles */
.item-list__checkbox:not(.collapsed)>li {
  display: block;
}

.children-collapsed.collapsed {
  display: none;
}