/* ===== Tabla de Documentos Pública (Verde Degradado Total) ===== */
.tabla-documentos-wrapper {
  max-width: 100%;
  margin: 1.5em 0;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* Campo de búsqueda con degradado */
.tabla-documentos-wrapper input#busqueda-documento {
  padding: 8px 12px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 320px;
  border: 1px solid #8bbf9f;
  border-radius: 6px;
  background: linear-gradient(135deg, #e9f5ee, #d0ebdd);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.tabla-documentos-wrapper input#busqueda-documento:focus {
  outline: none;
  border-color: #40916c;
  background: linear-gradient(135deg, #c7e8d6, #a3d9bd);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.25);
}

/* Tabla */
.tabla-documentos-publica {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tabla-documentos-publica th,
.tabla-documentos-publica td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
}

/* Cabecera con degradado verde elegante */
.tabla-documentos-publica th {
  background: linear-gradient(90deg, #2d6a4f, #52b788);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.tabla-documentos-publica tr:nth-child(even) td {
  background: #f8fdf9;
}

/* Enlaces con degradado en hover */
.tabla-documentos-publica a {
  color: #1b4332;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  padding: 3px 6px;
  border-radius: 4px;
}

.tabla-documentos-publica a:hover {
  color: #fff;
  background: linear-gradient(135deg, #52b788, #40916c);
  text-decoration: none;
}

/* ===== Paginador con degradado ===== */
.tpag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  justify-content: center;
}

.tpag li {
  display: inline-block;
}

.tpag li button {
  background: linear-gradient(135deg, #e9f5ee, #d0ebdd);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 50px;
  font-size: 14px;
  color: #1b4332;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.tpag li button:hover:not([disabled]) {
  background: linear-gradient(135deg, #52b788, #40916c);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.tpag li button[disabled],
.tpag li button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.tpag li .tpag-current {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Puntos suspensivos */
.tpag li span,
.tpag li:has(> span) {
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 16px;
  color: #555;
}

/* ===== Responsivo ===== */
@media (max-width: 480px) {
  .tpag li button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .tabla-documentos-wrapper input#busqueda-documento {
    max-width: 100%;
  }
}
th.tdm-sortable { cursor: pointer; position: relative; }
th.tdm-sortable.tdm-sort-asc::after,
th.tdm-sortable.tdm-sort-desc::after {
  content: '';
  border: 6px solid transparent;
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
}
th.tdm-sortable.tdm-sort-asc::after { border-bottom-color: currentColor; margin-top: -4px; }
th.tdm-sortable.tdm-sort-desc::after { border-top-color: currentColor; margin-top: 4px; }
