#course_detail main {
    display: flex;
    flex-direction: row;
    align-items: initial;
    gap: 30px;
    max-width: var(--max-width);
    flex-wrap: wrap;
}
section#filter{
    width: calc(100% - var(--padding-horizontal)* 2);
    padding: var(--padding-vertical) var(--padding-horizontal);
    max-width: var(--max-width);
}
#course_list  main #list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--max-width);
    margin-top: 30px;
    width: 100%;
}
#course_detail main #sidebar #calendar-wrapper{
    min-height: 50px;
    margin-top: 60px;
}
#course_detail main section#sidebar {
    width: 25%;
}
#course_detail main section#content {
    margin-top: 55px;
    width:70%;
    margin-bottom: 25px;
}
#full_calendar > div.fc-header-toolbar > div:first-child{
    padding-left: 12px !important;
}
#course_detail main #content h2{
    margin-top: 0px;
    display: inline-block;
    text-transform: uppercase;
}
.resume {
    margin: 15px 0;
}

.resume table {
    width: 100%;
}
div.content:not(:has(.footer .curso-interes)) .resume table {
    margin-bottom: 10px;
    margin-top: 0px;
}
.content .resume table {
    width: 100%;
}
.resume tr td:first-child {
    font-size: var(--normal-xl);
    padding: 10px 11px;
    margin: 0;
    text-align: center;
    font-weight: 600;
}

.resume tr td:last-child {
    font-size: var(--small);
    padding: 5px;
    margin: 0;

}

.resume tr.estat td:first-child {
    color: var(--color-estat-icon);
    background: var(--background-estat-icon);
}

.resume tr.estat td:last-child {
    color: var(--color-modalitat-text);
    background: var(--background-estat-text);
}

.resume tr.modalitat td:first-child {
    color: var(--color-modalitat-icon);
    background: var(--background-modalitat-icon);
}

.resume tr.modalitat td:last-child {
    color: var(--color-modalitat-text);
    background: var(--background-modalitat-text);
}

.resume tr.horas td:first-child {
    color: var(--color-horas-icon);
    background: var(--background-horas-icon);
}

.resume tr.horas td:last-child {
    color: var(--color-modalitat-text);
    background: var(--background-horas-text);
}

.resume tr.data td:first-child {
    color: var(--color-data-icon);
    background: var(--background-data-icon);
}

.resume tr.data td:last-child {
    color: var(--color-modalitat-text);
    background: var(--background-data-text);
}

.resume tr.entitat.favorite  td:first-child {
    color: var(--color-entitat-icon);
    background: var(--background-entitat-icon);
    cursor: pointer;
}

.resume tr.entitat td:last-child {
    background: var(--background-entitat-text);
    position: relative;
}
.resume tr.entitat .titulo-entidad {
    color: var(--color-entitat-text);
}
.resume tr.entitat .texto-entidad {
    color: var(--color-modalitat-text);
}
.resume tr.entitat td:last-child strong{
    color: darkgray;

}
/* Estilo para entidad favorita */
.resume tr.entitat td:first-child {
    color: var(--color-entitat-icon);
    background: var(--background-entitat-icon);
    cursor: pointer;
}
#course_detail .resume tr.entitat {
    height: 58px;
}

#course_detail .resume tr.professional {
    height: 58px;
}
.resume tr.entitat .app-user-icon{
    background: var(--background-entitat-icon);
    color: var(--color-entitat-icon);
    padding: 17px 6px;
    margin-top: -5px;
    margin-bottom: -5px;
    /* float: right; */
    position: absolute;
    top: 5px;
    right: 0px;
}
.resume tr.entitat .app-user-icon a{
    color: var(--color-entitat-icon);
}
.resume tr.professional.favorite td:first-child {
    color: var(--color-professional-icon);
    background: var(--background-professional-icon);
    cursor: pointer;
}

.resume tr.professional td:last-child {
    background: var(--background-professional-text);
    position: relative;
}
.resume tr.professional .titulo-professional {
    color: var(--color-professional-text);

}
.resume tr.professional .texto-professional {
    color: var(--color-modalitat-text);

}
.titulo-professional,
.titulo-entidad{
    text-transform: uppercase;
}
/* Estilo para formador favorito */
.resume tr.professional td:first-child {
    color: var(--color-professional-icon);
    background: var(--background-professional-icon);
    cursor: pointer;
}
.resume tr.professional .app-user-icon{
    background: var(--background-professional-icon);
    color: var(--color-professional-icon);
    padding: 17px 6px;
    margin-top: -5px;
    margin-bottom: -5px;
    position: absolute;
    top: 5px;
    right: 0px;
}
.resume tr.professional .app-user-icon a{
    color: var(--color-professional-icon);
}

.resume tr.poblacio td:first-child {
    color: var(--color-poblacio-icon);
    background: var(--background-poblacio-icon);
}

.resume tr.poblacio td:last-child {
    color: var(--color-poblacio-text);
    background: var(--background-horas-text);
}

.resume tr.centro td:first-child {
    color: var(--background-centro-icon);
    background: var(--color-centro-text);
}

.resume tr.centro td:last-child {
    color: var(--color-centro-text);
    background: var(--background-centro-text);
}

.resume tr.web td:first-child {
    color: var(--color-web-icon);
    background: var(--background-web-icon);
}

.resume tr.web td:last-child {
    color: var(--color-web-text);
    background: var(--background-web-text);
}

.resume tr.email td:first-child {
    color: var(--color-email-icon);
    background: var(--background-email-icon);
}

.resume tr.email td:last-child {
    color: var(--color-email-text);
    background: var(--background-email-text);
}

.resume tr.telefono td:first-child {
    color: var(--color-telefono-icon);
    background: var(--background-telefono-icon);
}

.resume tr.telefono td:last-child {
    color: var(--color-telefono-text);
    background: var(--background-telefono-text);
}

#course_list  main {
    width: 100%;
    margin-bottom: 50px;
    max-width: var(--max-width);
}

#course_list  main #list .courses-item {
    width: calc((100% / 3) - 30px);
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#course_list main #list .courses-item .image{
    width: 45%;
    max-width: 215px;
}

#course_list main #list .courses-item .content{
    width: calc(100% - 215px);
}

#course_list .courses-item .nombre {
    background: #eafafa;
    height: 40px;
    text-transform: uppercase;
    padding: 5px 10px;
    width: calc(100% - 10px * 2);
    line-height: 16px;
}
#course_list .courses-item .nombre a {
    font-size: var(--xsmall);
    line-height: normal;
    height: 42px;
    position: relative;
    display: block;
    -webkit-line-clamp: 2;      /* Número máximo de líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#course_list  .courses-item .nombre a,
#course_list  .courses-item .nombre a:hover {
    color: black;

}

#course_list .resume {
    margin:0;
}

#course_list table {
    border-collapse: collapse;
}

#course_list .resume tr td:first-child {
    font-size: var(--normal);
    padding: 0px;
    height: 30px;
    width: 30px;
}
#course_list table tr td{
    height: 30px;
    padding: 0px;
    padding-left: 10px;
}
#course_list .resume tr td:last-child {
    font-size: var(--xxsmall);
}

#course_list .courses-item .footer{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 5px;
    gap: 5px;
}

#course_list .courses-item .footer button {
    color: white;
    background: var(--primary);
    border: 0;
    padding: 5px 10px;
    border-radius: 3px;
}
#course_detail .actions a.btn-success,
#course_detail .actions .curso-interes {
    color: white;
    background: var(--primary);
    border: 0;
    padding: 5px 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}
#course_list .courses-item .footer a {
    color: white;
    background: var(--primary);
    border: 0;
    padding: 5px 0px;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

#course_list .courses-item .footer span {
    color: white;
    border: 0;
    padding: 6px 0px 8px 0px;
}

#course_detail .actions span.btn-secondary.disabled
{
    color: white;
    background-color: var(--button-color-ok) !important;
    padding: 5px 20px !important;
    border: 0px;
    border-radius: 3px;
    text-align: center;
    font-weight: 700;
    font-size: var(--xxsmall);

}

#course_detail .actions button.mostrar-interes
{
    color: white;
    background: var(--primary);
    border: 0;
    padding: 5px 20px;
    border-radius: 3px;
}

#course_detail .actions button.mostrar-interes.btn-secondary
{
    background: darkgray !important;
}

#course_list .courses-item .footer span.btn.btn-secondary.disabled {
    background-color: var(--button-color-ok) !important;
    padding: 5px 0px !important;
    border-radius: 3px;
    text-align: center;
    font-weight: 700;
    font-size: var(--xxsmall);
}

#solicitud_accion_formativa_search {
    margin: 20px 0;
    max-width: var(--max-width);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

#solicitud_accion_formativa_search input,
#solicitud_accion_formativa_search select
{
    border: 0;
    border-bottom: darkgray 1px solid;
}

#solicitud_accion_formativa_search label {
    color: darkgray;
    font-size: var(--small);
}

#solicitud_accion_formativa_search input,
#solicitud_accion_formativa_search select {
    color: #444;
    font-size: var(--small);
}


#solicitud_accion_formativa_search > div.intereses,
#solicitud_accion_formativa_search > div.favoritos {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

#solicitud_accion_formativa_search > div.familia,
#solicitud_accion_formativa_search > div.area,
#solicitud_accion_formativa_search > div.poblacion,
#solicitud_accion_formativa_search > div.tipo,
#solicitud_accion_formativa_search > div.entidadColaboradora,
#solicitud_accion_formativa_search > div.horario {
    flex: 1 0 28%;
    max-width: 28%;
}
#solicitud_accion_formativa_search > div.fechaFin,
#solicitud_accion_formativa_search > div.fechaInicio{
    flex: 1 0 10%;
    max-width: 10%;

}

#solicitud_accion_formativa_search > div.cercador {
    flex: 1 0 calc(50% - 30px);
    max-width: calc(50% - 30px);

}

#solicitud_accion_formativa_search > div.intereses,
#solicitud_accion_formativa_search > div.favoritos {
    flex: 1 0 calc(10% - 30px);
    max-width: calc(10% - 30px);
    align-items: end;
}

#solicitud_accion_formativa_search .submit {
    flex: 1 0 calc(15% - 30px);
    max-width: calc(15% - 30px);

}

#course_detail #Map {
    width: 100%;
    height: 200px;
}

table {
    border-collapse: separate;
    text-indent: initial;
    border-spacing:0px;
}
#calendar-wrapper table{
    margin-top: 0px;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #aaa !important;
    border-radius: 0px;
}

#solicitud_accion_formativa_search > div.intereses,
#solicitud_accion_formativa_search > div.favoritos{
    font-weight: 600;
}
#solicitud_accion_formativa_search div.intereses input,
#solicitud_accion_formativa_search div.favoritos input{
    top: 2px;
    width: 25px;
    height: 22px;
    display: inline-block;
    position: relative;
}



/* Estilos para la visualización en el listado de cursos */
.courses-item .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.courses-item .footer .btn {
    flex: 0 1 50%;
}

/* Estilos para botones de favorito e interés en cursos */

.curso-interes {
    display: inline-block;
    width: 110px;
    cursor: pointer;
    margin-right: 0px;
    transition: transform 0.2s ease;
    background: var(--primary);
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
    font-size: 10px;
}
.curso-interes.active {
    background: darkgrey;

}


/* Estilos para botones de solicitud */
div.actions.mt-4{
    width: 100%;
    text-align: center;
}
div.actions.mt-4 button{
    margin-right: 10px;
    padding: 6px 40px;
    transition: all 0.3s ease;
}
div.actions.mt-4 button:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-apply, .btn_documentacio, .btn_questionaris {
    background-color: var(--primary);
    color: white;
}
.btn.btn-success.solicitar-curso-empresa{
    background-color: var(--primary);
    color: white;
}

.btn-apply:hover, .btn_documentacio:hover, .btn_questionaris:hover{
    background-color: #316388;
}
.btn-descarregar, .btn_formatiu, .btn_baixa, .btn_certificats {
    background-color: var(--primary);
    color: white;
}

.btn-descarregar:hover {
    background-color: #316388;
}
.btn-detail {
    margin-right: 10px;
}

/* Estilos para el formulario del modal */
.solicitudModal .form-group {
    margin-bottom: 1.5rem;
}

.solicitudModal label {
    font-weight: bold;
}

.solicitudModal .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.btn-secondary {
    background: darkgray!important;
}

.paginacion-container{
    text-align: center;
    width: 100%;
}


.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.sessions-container {
    width: 100%;
    max-width: 100%;
    margin: auto;
}

.session {
    overflow: hidden;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.session-toggle {
    width: 100%;
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 12px 15px;
    font-size: 17px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.session-toggle:hover {
    background: #eaeaea;
}

.session-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.session-content {
    padding: 0px 30px;
    background: #fff;
    border-left: 4px solid var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
}

.session.open .session-content {
    display: block;
    max-height: 100px;
    padding: 10px 30px;
}

.session.open .arrow {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Contenedor para los botones de favorito y compartir */
.course-actions {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

/* Estilo para el botón de compartir */
.curso-compartir {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('/images/share-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.3s;
    top: -11px;
}

/* Usar un icono con font-awesome si no hay SVG disponible */
.curso-compartir:not([style*='background-image']) {
    position: relative;
}


.curso-compartir:hover {
    opacity: 1;
}

/* Estilo para el popup de compartir */
.share-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.share-popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-close {
    color: #aaa;
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.share-close:hover,
.share-close:focus {
    color: black;
    text-decoration: none;
}

.share-popup h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-button:hover {
    transform: scale(1.1);
}

.share-whatsapp {
    background-color: #25D366;
}

.share-telegram {
    background-color: #0088cc;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-email {
    background-color: #848484;
}

.share-copy {
    background-color: #6c757d;
}

/* Estilos para el icono de chat */
.chat-toggle {
    margin-left: 10px;
    cursor: pointer;
    color: var(--primary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.chat-toggle:hover {
    transform: scale(1.2);
    color: var(--secondary);
}

/* Posicionamiento del icono junto al nombre de la entidad o formador */
.resume td strong {
    display: inline-block;
    margin-right: 5px;
}
.course-actions {
    display: inline-block;
    align-items: center;
    margin: 0px 0;
    float: right;
    height: 28px;
    top: 5px;
    position: relative;
}

#course_list .resume tr td.entitat-formacio{
    background-image: url(/img/icon-formacion_in.svg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-size: 30px;
}
#course_detail .resume tr.entitat td:first-child{
    background-image: url(/img/icon-formacion_in.svg);
    background-position: center;
    background-size: 50px;
    background-repeat: no-repeat;
}
#course_detail .resume tr.entitat.favorite td:first-child {
    background-image: url(/img/icon-formacion-favorito.svg);
}
#course_detail .resume tr.professional td:first-child{
    background-image: url(/img/icon-profesional_in.svg);
    background-position: center;
    background-size: 50px;
    background-repeat: no-repeat;
}
#course_detail .resume tr.professional.favorite td:first-child {
    background-image: url(/img/icon-profesional-favorito.svg);
}
@media (max-width: 1700px) {
    #course_list main #list .courses-item {
        width: calc((100% / 2) - 30px);
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 1200px) {
    #course_list main #list .courses-item {
        width: calc(100% - 30px);
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
}


#solicitud_accion_formativa_search > div.familia{
    order: 1;
}
#solicitud_accion_formativa_search > div.area{
    order: 2;
}
#solicitud_accion_formativa_search > div.poblacion{
    order: 3;
}
#solicitud_accion_formativa_search > div.fechaInicio{
    order: 4;
}
#solicitud_accion_formativa_search > div.tipo{
    order: 5;
}
#solicitud_accion_formativa_search > div.entidadColaboradora{
    order: 6;
}
#solicitud_accion_formativa_search > div.horario{
    order:7;
}
#solicitud_accion_formativa_search > div.fechaFin{
    order: 8;
}
#solicitud_accion_formativa_search > div.cercador{
    order: 9;
}

#solicitud_accion_formativa_search > div.intereses{
    order: 10;
}
#solicitud_accion_formativa_search > div.favoritos{
    order: 11;
}
#solicitud_accion_formativa_search > div.submit{
    order: 12;
}
#solicitud_accion_formativa_search > div.clear {
    order: 13;
    flex: 1 0 calc(15% - 30px);
}
/* Estilos para el distintivo de "Últimas plazas" */
.courses-item .image {
    position: relative;
}

.courses-item .image .badge.ultimas-plazas,
.courses-item .image .badge.inscripcion-cerrada{
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0px;
    background-color: rgb(0 123 255 / 20%);
    text-transform: uppercase;
    height: 100%;
    z-index: 10;
}
.text_badge{
    padding-top: 50%;
    text-shadow: 0px 0px 10px black;
}

.favorite > .favorite-toggle {
    color: red !important;
    text-align: right !important;
    vertical-align: top;
    padding: 0px 4px !important;
}