/* Estilos para filtros y tablas de datos adaptados a la paleta de colores existente */

.filter-form {
  background: var(--color-bg, #fff);
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px var(--color-border, #e0e0e0);
  padding: 1.2rem 2.5rem 1rem 2.5rem; /* menos padding vertical */
  margin: 0 auto 2rem auto;
  max-width: 800px; /* más ancho */
  
}

.filter-form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 4 columnas */
  gap: 1rem 1.5rem;
  align-items: center;

}

.filter-form .form-group {
  display: flex;
  flex-direction: column;
  
  margin-bottom: 0;
}

.filter-form label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--color-text, #7a7a7a);
}

.filter-form .input {
  padding: 0.5em 0.8em;
  border: 1.5px solid var(--color-border, #bbb);
  border-radius: 0.7em;
  font-size: 1em;
  background: var(--color-bg-light, #fafbfc);
  color: var(--color-text, #222);
  transition: border 0.2s;
}

.filter-form .input:focus {
  border: 1.5px solid var(--color-primary, #1976d2);
  outline: none;
}

.filter-form button {
  width: 50%;
  padding: 0.6em 1.5em;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border: none;
  border-radius: 0.7em;
  font-size: 1.1rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 var(--color-border);
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.filter-form button:hover {
  background: var(--color-secondary);
  color: var(--color-black);
  box-shadow: 0 4px 16px 0 var(--color-border);
}

.filter-form .btn-secondary {
  width: 50%;
  background: #f3f3f3;
  color: #444;
  border: none;
  border-radius: 0.7em;
  padding: 0.6em 1.5em;
  font-size: 1.1rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 var(--color-border, #f3f3f3);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.filter-form .btn-secondary:hover {
  background: #e0e0e0;
  color: #222;
  box-shadow: 0 4px 16px 0 var(--color-border, #e0e0e0);
  text-decoration: none;
}

/* Tabla moderna */
.table-data {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg, #fff);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--color-border, #e0e0e0);
}
.table-data th, .table-data td {
  padding: 0.8em 1em;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  text-align: left;
  color: var(--color-text, #222);
}
.table-data th {
  background: var(--color-primary, #1976d2);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.table-data tr:last-child td {
  border-bottom: none;
}

/* Ajuste de selects en formularios de filtros */
select.input {
  min-width: 250px !important;
  width: 100% !important;
  max-width: 400px !important;
  box-sizing: border-box;
}

select.input[multiple] {
  height: auto;
  min-height: 120px;
}

.form-group {
  width: 100%;
  min-width: 250px;
  box-sizing: border-box;
}

.filter-form-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

@media (max-width: 1100px) {
  .filter-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .filter-form {
    padding: 1rem 0.5rem 0.7rem 0.5rem;
    max-width: 98vw;
  }
  .filter-form-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .table-data th, .table-data td {
    padding: 0.7em 0.5em;
    font-size: 0.98em;
  }
} 
.select2-selection__choice__remove {
  background: #fff !important;
  color: #d32f2f !important;
  border: none !important;
  border-radius: 50% !important;
  font-weight: bold;
  margin-right: 4px;
  padding: 0 3px !important;
  font-size: 0.85em !important;
  line-height: 1 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.select2-selection__choice__remove:hover {
  background: #d32f2f !important;
  color: #fff !important;
} 

/* ========================================
   PAGINACIÓN - USANDO COLORES INSTITUCIONALES
======================================== */

/* Contenedor de paginación similar a la tabla */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 25px 0;
  padding: 12px 15px;
  background: var(--color-white, #fff);
  border-radius: 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid var(--color-border, #e0e0e0);
}

/* Enlaces de página similares a las celdas de tabla */
.pagina-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-text, #222);
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 0;
  font-weight: 500;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

/* Hover con color amarillo institucional */
.pagina-link:hover {
  background: var(--color-secondary, #FFB800);
  color: var(--color-black, #000);
  border-color: var(--color-secondary, #FFB800);
}

/* Página activa con color rojo institucional */
.pagina-link.active {
  background: var(--color-primary, #8B1B1B);
  color: var(--color-white, #fff);
  border-color: var(--color-primary, #8B1B1B);
  font-weight: 700;
}

.pagina-link.active:hover {
  background: var(--color-primary, #8B1B1B);
  color: var(--color-white, #fff);
  opacity: 0.9;
}

/* Puntos suspensivos */
.pagina-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  color: var(--color-text, #222);
  font-weight: 600;
  font-size: 1.2em;
  user-select: none;
}

/* Responsivo */
@media (max-width: 768px) {
  .pagination {
    padding: 0.5rem;
    gap: 0.3rem;
  }
  
  .pagina-link {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}