/* ================================
   TABLA BASE
   ================================ */
.pg-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 20px 0;
}

.pg-tabla th, .pg-tabla td {
    border: 1px solid #bdd7ee;
    padding: 8px;
    text-align: left;
}

.pg-tabla th {
    background-color: #0071b3;
    color: white;
}

.pg-tabla tr:nth-child(even) {
    background-color: #d9edf7;
}

.pg-tabla tr:nth-child(odd) {
    background-color: #eaf4fb;
}

.pg-tabla tr:hover {
    background-color: #b3d7f0;
}

.pg-tabla td.col-una-linea {
    white-space: nowrap;
}


/* ================================
   ACTIVO DESTACADO
   ================================ */
.pg-tabla tr.pg-activo td {
    font-weight: bold;
}

.pg-tabla tr.pg-activo {
    border-left: 4px solid #0071b3;
}

/* ================================
   ENLACE QUE CUBRE TODA LA FILA
   ================================ */

/* El <tr> debe ser posicionable para que el link pueda expandirse */
.pg-tabla tr {
    position: relative;
}

/* El <a> invisible cubre toda la fila */
.pg-rowlink {
    position: absolute;
    inset: 0;       /* top/right/bottom/left: 0 */
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

/* Asegura que el contenido esté encima del link */
.pg-tabla td,
.pg-tabla th {
    position: relative;
    z-index: 2;
}
    
/* Evita subrayado o colores en el enlace al hacer hover */
.pg-rowlink:hover,
.pg-rowlink:active,
.pg-rowlink:visited {
    text-decoration: none;
    color: inherit;
}

/* ================================
   OTROS ELEMENTOS
   ================================ */
.contador {
    font-style: italic;
    float: right;
}

.titulo-tipo-publicacion {
    margin-top: 2rem;
}
