.progress-rects-table {
    width: 100%;
    border-collapse: collapse;
}
.progress-rects-table th,
.progress-rects-table td {
    padding: .5rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Contenedor de los rectángulos */
.progress-rects-rects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px; /* separación extra respecto al texto de arriba */
}

/* Cada rectángulo */
.progress-rects-rect {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 3px;
    display: inline-block;
}
.progress-rects-rect.green   { background: #73A839; }  /* Calificada sin nueva subida */
.progress-rects-rect.yellow  { background: #FFCC00; }  /* Entregada, sin feedback ni nota */
.progress-rects-rect.red     { background: #C71C22; }  /* No entregada */
.progress-rects-rect.purple  { background: #8000FF; }  /* Feedback, sin nueva entrega */
.progress-rects-rect.orange  { background: #FF8800; }  /* Feedback + nueva entrega */

/* Zona donde se muestra "Actividad: nombre (fecha)" */
.progress-rects-hover {
    font-size: .85rem;
    color: #555;
    /* Espacio para una o dos líneas de texto */
    min-height: 2.4rem;
    line-height: 1.2rem;
    margin-bottom: .35rem;
    overflow: visible;
    white-space: normal;    /* permite saltos de línea */
    word-wrap: break-word;  /* por si el nombre es muy largo */
}

/* Pestañas de cursos */
.bpr-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.bpr-tabs li {
    margin-right: 6px;
}
.bpr-tabs a {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}
.bpr-tabs li.bpr-tab-active a {
    background: #eee;
}

/* Contenido de cada pestaña */
.bpr-tab-content {
    display: none;
    margin-top: 8px;
}
.bpr-tab-content-active {
    display: block;
}


/* Indicador de último acceso al curso. */
.bpr-access-indicator {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 7px;
    flex-shrink: 0;
}
.bpr-access-green {
    background-color: #73A839;
}
.bpr-access-orange {
    background-color: #FF8800;
}
.bpr-access-red {
    background-color: #C71C22;
}


/* Acceso directo a mensajería junto al nombre del alumno. */
.bpr-message-envelope {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    font-size: 19px;
    line-height: 1;
    color: #007b83;
    text-decoration: none;
    vertical-align: middle;
}

.bpr-message-envelope:hover,
.bpr-message-envelope:focus {
    color: #005b61;
    text-decoration: none;
}


/* Sobre de mensajería más visible. */
.bpr-message-envelope {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #005b83;
    vertical-align: middle;
}

.bpr-message-envelope svg {
    display: block;
    width: 22px;
    height: 22px;
}

.bpr-message-envelope:hover,
.bpr-message-envelope:focus {
    color: #003d60;
}

/* BPR_HOVER_STABLE_V1
   Evita que el texto de actividad provoque
   reajustes continuos de la tabla.
*/

.progress-rects-table {
    table-layout: fixed;
    width: 100%;
}

.progress-rects-table th,
.progress-rects-table td {
    overflow-wrap: anywhere;
}

.progress-rects-table .progress-rects-hover {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 2.4rem;
    min-height: 2.4rem;
    max-height: 2.4rem;
    line-height: 1.2rem;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
    margin-bottom: .35rem;
}

.progress-rects-table .progress-rects-rects {
    width: 100%;
    min-width: 0;
}

