.card {
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: bold;
}

.card-body {
    max-height: 25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.card-body:hover {
    overflow: visible;
    max-height: none;
    background: #f8f9fa;
    z-index: 1020;
}

.description {
    max-height: 10rem;
    overflow: auto;
}

.show-more {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    text-align: right;
    padding: 0.5rem;
}

.show-more a {
    text-decoration: none;
    font-size: 0.85rem;
}


/* Cabecera fija */
.table-responsive {
    max-height: calc(100vh - 200px); /* Ajusta el espacio visible de la tabla */
    overflow-y: auto; /* Agrega scroll vertical */
    position: relative;
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 1020; /* Asegura que se superponga sobre las filas */
    background-color: #343a40; /* Fondo oscuro para la cabecera */
    color: white;
}

/* Altura máxima de las filas y truncado de texto */
table tbody td {
    max-height: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 5rem;
}

#column-selector {
    max-height: 8rem;
    overflow-y: auto;
}

#count-header-info h4 {
    font-size: 1.25rem;
}