/* ideamatic css */

/* login form */
.log-in-form {
  background-color: #F6F3E4;
  padding: 1rem;
  border-radius: 8px;
}
#loginModal.reveal {
  max-width: 400px; /* Controla l'amplada del modal */
  margin: auto; /* Centra el modal */
  background-color: white; /* Assegura't que el fons del modal sigui blanc */
  padding: 20px; /* Afegeix espaiat intern */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Afegeix una ombra per destacar el modal */  
}


/* Estil personalitzat per a la pujada d'arxius */
.file-upload input[type="file"] {
  display: none; /* Amaga l'input original */
}

#custom-file-upload {
  display: inline-block;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
}

#custom-file-upload:hover {
  background-color: #e1e1e1;
}

#new-testimonial-preview-img {
  object-fit: cover; /* Evita que la imatge s'estiri si es redimensiona */
  border: 1px solid #ccc;
}

/*estils personalitzats a resourcetaxonomies */
#resourcetaxonomies p.sidebar-title {
  padding: 0.5rem 0.625rem 0.625rem;
  font-weight: bold;
  text-align: left;
  margin: 0px;
  height: 49.60px;
}
#resourcetaxonomies a.sidebar-link.active {
  border-right: 4px solid #7d9b4b;
}
#resourcetaxonomies table.unstriped,
#resourcetaxonomies table.unstriped thead,
#resourcetaxonomies table.unstriped tbody,
#resourcetaxonomies table.unstriped tbody tr {
  border-bottom: 1px solid rgb(241.3, 241.3, 241.3);
  background-color: #f6f3e5;
}

#resourcetaxonomies .hidden-btn {
  visibility: hidden;
}
#resourcetaxonomies .new-taxonomy.button,
#resourcetaxonomies .content-section .controls .button {
  background-color: #f6f3e5;
  color: black;
  border-color: #66965A;
}
#resourcetaxonomies .new-taxonomy.button:hover,
#resourcetaxonomies .content-section .controls .button:hover {
  background-color: #28347B;
  color: #f6f3e5;
  padding-left: 13.500px;
  padding-right: 13.500px;
}


/* test */
label {
  display: inline-block;
} 
.question-label {
  position: relative;
  display: inline-block;
}

.question-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
  margin-left: 10px;
  cursor: pointer;
}

/* Més estil per millorar la visibilitat */
.question-icon:hover {
  background-color: #0056b3;
}

.secondary-links-container > div >div{
  display:inline-flex;
}
/*
#resources > form > div:nth-child(1) > div:nth-child(12) > div > div:nth-child(n+2) label{
  display:none;

}
*/
/* amagem botó a FrgResource 
input#frg_resource_imageFile {
  visibility: hidden;
  position: absolute;
}
*/
/*
#countrytable,
#countrytable_wrapper{
  width: 50%;
  margin: auto;
}
*/


a.sidebar-link.active {
  border-left: 4px solid #7d9b4b !important;
  border-right: 0 !important;
  font-weight: 600;
}
span.header-small {
  font-size: var(--text-size-300);
}

/* ico_ frontend */
.ico_publications p::before{
  position: absolute;
  content: url(img/ico_publications.svg);
  left: 0px;
  top: -4px;
}

.ico_stories p::before{
  position: absolute;
  content: url(img/ico_stories.svg);
  left: 0px;
  top: -4px;
}
.ico_publications p::before{
  position: absolute;
  content: url(img/ico_publications.svg);
  left: 0px;
  top: -4px;
}
.ico_tools-and-methods p::before{
  position: absolute;
  content: url(img/ico_tools-and-methods.svg);
  left: 0px;
  top: -4px;
}
.ico_good-practices p::before{
  position: absolute;
  content: url(img/ico_good-practices.svg);
  left: 0px;
  top: -4px;
}
.ico_educational-material p::before{
  position: absolute;
  content: url(img/ico_ducational-material.svg);
  left: 0px;
  top: -4px;
}
.ico_projects p::before{
  position: absolute;
  content: url(img/ico_projects.svg);
  left: 0px;
  top: -4px;
}
.ico_external-platforms p::before{
  position: absolute;
  content: url(img/ico_external-platforms.svg);
  left: 0px;
  top: -4px;
}

/* afegit segons html enviat isabel de topics */
.grid-subtopic{
  margin-bottom: 1.6667rem;
}
.grid-subtopic:hover{
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
}

.grid-subtopic-photo{
  overflow: hidden;
  height: 15rem;
  width: 15rem;
  -webkit-border-radius: .4444rem 0 0 .4444rem;
  -moz-border-radius: .4444rem 0 0 .4444rem;
  border-radius: .4444rem 0 0 .4444rem;
}
.grid-subtopic-photo img{
  width: 100%;
  height: auto;
}

.grid-subtopic-content:hover{
  background-size: 20px, 70px;
  background-position: 96% 93%, right top;
}
.grid-subtopic-content a{
  display: block;
  width: 100%;
  height: 100%;
}
.grid-subtopic-content h4{
  border-bottom: 1px solid #979797;
  padding-bottom: 15px;
}
.content_topic .grid-subtopic:last-child{
margin-bottom: 4.4444rem;
}
.content_topic .first-gsubtopic{
  margin-top: 4.4444rem;
}
/*Inside user journey topic*/
.menu_vertical_topic{
  background-color: #405842;
  border-radius: 0 0 2.7778rem 2.7778rem;
  -webkit-border-radius: 0 0 2.7778rem 2.7778rem;
  -moz-border-radius: 0 0 2.7778rem 2.7778rem;
  padding: 1rem 1.6667rem 3.6111rem 1.6667rem;
  position: relative;
}
.menu_vertical_topic a{
  color: #fff;
  padding-left: 5px;
  font-weight: 700;
}
.menu_vertical_topic a:hover{
  color: #EEE4B2;
}
.menu_vertical_topic li{
  border-bottom: 1px solid #9FABA0;
}
.menu_vertical_topic li li{
  border-bottom: 1px solid #637458;
}
.menu_vertical_topic li li:last-child, .menu_vertical_topic li:last-child{
  border-bottom: none;
}
.accordion-menu .nested.is-accordion-submenu {
  padding: 5px 0 !important;
}

.menu_vertical_topic .submenu-toggle {
  width: 24px;
}
.menu_bg_subtopic, .menu_bg_topic{
  position: relative;
}
.menu_bg_topic::after{
  position: absolute;
  content: url(img/bg_deer.svg);
  bottom: -584px;
  left: -133px;
  z-index: -1;
}
.menu_bg_subtopic::after{
  position: absolute;
  content: url(img/bg_tree_01.svg);
  bottom: -494px;
  left: -200px;
  z-index: -1;
  transform: scale(0.8);
}
.block_topic_header_photo{
  overflow: hidden;
  height: 280px;
  width: 100%;
  -webkit-border-radius: .4444rem;
  -moz-border-radius: .4444rem;
  border-radius: .4444rem;
  margin-bottom: 1.8889rem;
}
.grid-subtopic{
  margin-bottom: 1.6667rem;
}
.grid-subtopic:hover{
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
}

.grid-subtopic-photo{
  overflow: hidden;
  height: 16.6667rem;
  width: 15rem;
  -webkit-border-radius: .4444rem 0 0 .4444rem;
  -moz-border-radius: .4444rem 0 0 .4444rem;
  border-radius: .4444rem 0 0 .4444rem;
}


.grid-subtopic-content:hover{
  background-size: 20px, 70px;
  background-position: 96% 93%, right top;
}

.grid-subtopic-content h4{
  border-bottom: 1px solid #979797;
  padding-bottom: 15px;
}
.content_topic .grid-subtopic:last-child{
margin-bottom: 4.4444rem;
}
.content_topic .first-gsubtopic{
  margin-top: 4.4444rem;
}
.bg_leaf_02{
  position: absolute;
  top:123px;
  left: 0px;
}
.bg_deer{
  position: absolute;
  top: 756px;
  right: 73%;
}


.menu_vertical_topic .is-selected {
  color: #EEE4B2;
}

/*End Inside user journey topic*/


/* Resources */
.button {
  font-family: "the-seasons", sans-serif;
  font-weight: 700;
  font-size: 1.1111rem;
  color: #FFFFFF;
  letter-spacing: 0.52px;
  background-color: #66965A;
  border-radius: 8px;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.search_resource {
  margin-bottom: 50px;
}

.search_resource .input-group-label {
  background-color: #fff;
  border: solid 1px #fff;
  padding: 0 0.5rem;
  border-radius: .4444rem 0 0 .4444rem;
  -webkit-border-radius: .4444rem 0 0 .4444rem;
  -moz-border-radius: .4444rem 0 0 .4444rem;
}

.search_resource .input-group-field {
  border: solid 1px #fff;
  -webkit-box-shadow: inset 0 0px 0px rgba(10, 10, 10, 0.1);
  box-shadow: inset 0 0px 0px rgba(10, 10, 10, 0.1);
}

.search_resource .button {
  background-image: url(img/ico_arrow_04.svg);
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -2000px;
  border-radius: .4444rem !important;
}

.input-group-button {
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}
.block_resource {
  background-color: #fff;
  padding-bottom: 1.9444rem;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  margin-bottom: 1.9444rem;
}
.block_form_resources h4 {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1111rem;
  color: #405842;
  letter-spacing: -0.31px;
  padding-left: 34px;
}
.block_form_resources h4::before {
  position: absolute;
  content: url(img/ico_arrow_03.svg);
  left: 0;
  top: -2px;
}
ul {
  color: #66965A;
  font-weight: 600;
}
.block_form_resources li {
  list-style-type: none;
  display: flex;  /* JRM */
  margin: 0.4rem 0; /* JRM */
}

.block_form_resources [type=checkbox] {
  margin: 0 0 0rem;
}

.checkbox-list label {
  line-height: 1rem;
}

.block_form_resources {
  padding-bottom: 2px;
  border-bottom: 1px solid #979797;
  margin-bottom: 26px;
}

.block_form_resources select {
  border: 0;
}


/* PAGINACIÓ */
.block_pagination {
  margin: 0 auto;
}

.pagination .current {
  padding: 1px 11px 0px;
  background: #66965A;
  -webkit-border-radius: .4444rem;
  -moz-border-radius: .4444rem;
  border-radius: .4444rem;
}


.ico_good_practices p::before {
  position: absolute;
  content: url(img/ico_good_practices.svg);
  left: 0px;
  top: -4px;
}

.ico_tools p::before {
  position: absolute;
  content: url(img/ico_restoration_stories.svg);
  left: 0px;
  top: -4px;
}

.ico_restoration_stories p::before {
  position: absolute;
  content: url(img/ico_tools.svg);
  left: 0px;
  top: -4px;
}


/* tinyMCE, color de longitud correcta/incorrecta de carácteres */
span#char_count,
span.char_count {
    color: green!important;
}

span#char_count.invalid_length,
span.char_count.invalid_length {
  color: red!important;
}

/* classes afegides pàgina recursos */
.content_header_resources::before {
  content: url(img/bg_pine_02.svg);
  position: absolute;
  top: -6px;
  left: -178px;
}

.content_header_resources::after {
  content: url(img/bg_bird_01.svg);
  position: absolute;
  top: 15px;
  right: -137px;
}

.content_header_resources>.grid-x {
  background-color: #fff;
  -webkit-border-radius: 50px 50px 0 0;
  -moz-border-radius: 50px 50px 0 0;
  border-radius: 50px 50px 0 0;
  padding: 1.1111rem 6.6667rem 2.6667rem 6.6667rem;
  margin-bottom: 5rem;
  z-index: 1;
}
.content_header_resources {
  position: relative;
}

.content_block_resource {
  border: 2px #66965A dotted;
  padding: 3.3333rem 2.5rem;
  margin-top: 0;
  margin-bottom: 4.4444rem;
  -webkit-border-radius: .4444rem;
  -moz-border-radius: .4444rem;
  border-radius: .4444rem;
}
.content_block_resource {
  position: relative;
  padding: 2.2222rem 1.6667rem;
  z-index: 7;
}

.card_tag li {
  list-style-type: none;
  display: inline;
}

.card_tag li a {
  background-color: #F8F8F8;
  color: #28347B;
  font-size: .8889rem;
  font-weight: 400;
  padding: 5px 10px;
  margin-right: .2778rem;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -webkit-border-radius: .2222rem;
  -moz-border-radius: .2222rem;
  border-radius: .2222rem;
}


/* estils pre UserManagement */
span.show-prop {
  margin: 0;
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.8;
  color: #0a0a0a;
}

.show-button{
  content: url(img/icon-edit.svg);
  height: 35px;
  width: 35px;
  background-color: #66965A !important;
  border-color: #66965A !important;
  border-radius: 100%  !important;
  text-indent: -20000px;
  padding: 5px;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
.show-button:hover{
  padding: 6px !important;
  background-color: #28347B !important;
  border-color: #28347B !important;
}
.show-button {
  content: url(img/icon-edit.svg);
  height: 35px;
  width: 35px;
  background-color: #66965A !important;
  border-color: #66965A !important;
  border-radius: 100% !important;
  text-indent: -20000px;
  padding: 5px;
  margin-bottom: 0rem;
}

/* estils taula Subtopics */

.related-resources-table {
  content: url(img/table_arrow_down.svg);
  height: 35px;
  width: 35px;
  background-color: #F6F3E4 !important;
  border-radius: 100%;
  text-indent: -20000px;
  padding: 5px!important;
  background-image: url(img/table_arrow_down.svg);
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
    margin-top: 6px;
    margin-bottom: 4px;
    margin-left: 4px;
    transform: rotate(-90deg);
    transition: transform 0.2s ease-in-out;
}
.related-resources-table.show {
    transform: rotate(0deg);
}

div#resourceTableContainer table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

div#resourceTableContainer thead, 
div#resourceTableContainer tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed; /* Manté l'alineació */
}
div#resourceTableContainer table tr th,
div#resourceTableContainer table tr td {
  padding: 0 0.5rem;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div#resourceTableContainer table th:first-child,
div#resourceTableContainer table td:first-child {
  width: 2%; /* 34px en un context de ~680px d'ample total */
  text-overflow: unset!important;
}

div#resourceTableContainer table th:nth-child(2),
div#resourceTableContainer table td:nth-child(2),
div#resourceTableContainer table th:nth-child(3),
div#resourceTableContainer table td:nth-child(3) {
  width: 25%; /* 300px cadascun */
}

div#resourceTableContainer table th:nth-child(4),
div#resourceTableContainer table td:nth-child(4) {
  width: 10%; /* 125px */
}

div#resourceTableContainer table th:nth-child(5),
div#resourceTableContainer table td:nth-child(5) {
  width: 12%; /* 150px */
}

#resourcetaxonomies tr > th.title-index,
#resourcetaxonomies tr > td.resources-index,
#resourcetaxonomies tr > td.controls-index{
  width: 33%!important;
}

/* pagina de rcursos selectors de l'esquerra*/
.checkbox-list {
  display: flex;
  flex-direction: column; /* Manté els <li> en columnes */
  gap: 5px;
  list-style: none;
  padding: 0;
  width:95%;
}

.checkbox-list li {
  display: grid;
  grid-template-columns: 5% 85% 10%;
  align-items: center;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.checkbox-list li input {
  justify-self: center; /* Centra el checkbox */
}

.checkbox-list li label {
  word-break: break-word; /* Permet que el text es trenqui en dues línies */
  white-space: normal;
  line-height: 1.2; /* Redueix lleugerament l'espai entre línies */
}

.checkbox-list li span {
  text-align: center; /* Centra el text dins la columna */
  justify-self: center; /* Centra el span a la cel·la */
  font-weight: bold;
  font-size: small;
}

label.countries-select {
  width: 100%;
  padding-left: 18px;
}
label.countries-select div.ts-control {
  padding-top: 0px !important;
  padding-bottom: 0px!important;
}

/* resources, total counter */
.grid-x.content_block_resource.content_block_resource_header{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.large-12.medium-12.small-12.cell.block_resource.block_resource_header{
  padding-bottom: 0px;
  margin-bottom: 0px;
  background-color: unset;
}
#total-found-resources{
  color: #66965A;
}

div#add-results-before {
  margin: 0 auto!important;
  vertical-align: middle;
}
div#add-results-before[data-lastpage="true"]>a.button_more_resources {
  display: none!important;
}
div#add-results-before>a.button_more_resources {
  margin-top: 6px;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  content: url(img/table_arrow_down.svg);
  height: 35px;
  width: 35px;
  background-color: #F6F3E4 !important;
  border-color: #C8D6B9 !important;
  border-radius: 100%;
  text-indent: -20000px;
  padding: 5px;
  background-image: url(img/table_arrow_down.svg);
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

.loading {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.5) url('img/loading.gif') 50% 50% no-repeat;
}

/* admin/resource */
div.input.required-field[required],
.tox-tinymce.force-required,
input.required-field:invalid, 
textarea.required-field:invalid, 
select.required-field:invalid {
    border: 1px solid red!important;
}

textarea#frg_resource_briefDescription + div.tox-tinymce {
  height: 15em !important;
}
p.help-text {
  margin-top: unset;
}


/* admin/resource/  embedded videos */
.embeddedVideo-container > div > div,
.secondary-links-container > div >div {
  display: inline-flex;
}
.embedded-video-key div,
.embedded-video-value div,
.secondary-link div,
.secondary-value div {
  margin-right: 10px;
}

.embedded-video-key label,
.embedded-video-value label,
.secondary-link-key label,
.secondary-link-value label {
  margin-right: 10px;
  font-weight: 400;
}

.first-column .secondary_images_modal,
.first-column .secondary_documents_modal{
  border: solid 1px #66965A !important;
  background-color: #F6F3E4 !important;
  color: #66965A !important;
  font-size: 18px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.04rem;
  padding: 10px 15px;
  border-radius: 6px !important;
}

label.secondaryDocuments-key {
  margin-bottom: 1em;
}

span#files-choosen {
  margin-bottom: 1em;
  padding: 0 1em;
}

/* MOSTRAR IMATGES/ARXIUS EN 2 COMUMNES*/
.two-columns {
  column-count: 2;
  column-gap: 30px;
  column-rule: 2px solid #ccc; /* Línia de separació entre columnes */
}

.two-columns li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  break-inside: avoid; /* Evita trencar els elements li entre columnes */
  margin-bottom:1em;
}

.two-columns img {
  flex: 0 0 auto; /* Permet que la imatge ocupi l'espai necessari */
}

.two-columns .help-text {
  flex: 1; /* Permet que el text ocupi l'espai disponible */
  margin-right: auto; /* Ajusta el text a l'esquerra */
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-columns .remove_link {
  flex: 0 0 30px; /* Amplada fixa per al botó d'eliminació */
}

#preview-img-frg_resource_newImages>li>span.help-text {
    margin-left: 10px;
    line-height: initial;
    overflow: hidden;
    font-weight: 400;
}
ul#preview-img-frg_resource_newDocuments a {
  width: 100%;
}

/* inserción de vídeo ADMIN */
.embedded-video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Espai entre elements */
}

.embedded-video-key,
.embedded-video-value {
  flex: 1; /* Que ocupin tot l’espai disponible */
  min-width: 200px; /* Evita que es facin massa petits */
}

.embedded-video-value textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}



/* insercion de vídeo */

.video-container_resources_file.flex-video {
  max-width: 100%;  
  width: 100%; 
  padding-bottom: 56.25%;  /* Manté la relació d'aspecte 16:9 */
  position: relative; 
  height: 0; 
  overflow: hidden; 
}

.video-container_resources_file iframe {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
}

.resourcesMainCta-row {
  display: flex;
  align-items: center;
}
.resourcesMainCta-value {
  width: 100%;
  display: flex;
}
.resourcesMainCta-value label {
  flex: 0 0 3em; /* Ajusta este valor según tus necesidades */
}
.resourcesMainCta-value input {
  flex: 1; /* Ocupa el resto del espacio disponible */
}

/* preview banner */
#preview_banner {
  position: sticky;  /* Fixa el banner a la part superior de la pàgina */
  top: -24px;           /* Col·loca el banner a la part superior */
  left: 0;
  width: 100%;      /* Fa que el banner ocupi tota l'amplada de la pàgina */
  z-index: 9999;    /* Assegura que el banner estigui per sobre de la resta de contingut */
  text-align: center;
}

.preview_banner {
  background-color: rgba(255, 0, 0, 0.8); /* Color de fons vermell semitransparent */
  color: white;
  padding: 10px;
  font-size: 16px;
  margin: 0; /* Elimina qualsevol marge per assegurar que estigui just a dalt */
}


/* Desactivar els clics per a tot el cos */
.preview-mode * {
  pointer-events: none;
}


/* etiquetes a la vista de recursos */
.card_tag {
  display: flex;
  justify-content: space-between; /* Separar l'ul i el span */
  align-items: center; /* Alineació vertical */
  overflow: hidden; /* Evita que el contingut sobresurti */
  white-space: nowrap; /* Evita salts de línia */
}

.card_tag ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap; /* Evitar saltar a una nova línia */
  /*overflow-x: auto; /* Desplaçar horitzontalment si hi ha molts elements */
  overflow: hidden; /* Retalla el text que no hi càpiga */
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1; /* Permetre que ocupi tot l'espai disponible */
}

.card_tag ul li {
  margin-right: 10px; /* Espai entre els elements de la llista */
  white-space: nowrap; /* Evita que els elements es trenquin */
}
.card_tag li>a {
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
}
.card_tag .tag-counter {
  white-space: nowrap;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: #0a0a0a;
  margin-left: 10px; /* Espai entre els tags i el comptador */
}
span.tag-counter.manytags::before {
  content: '... ';
}

/** AMAGO GOOD PRACTICES */

.cell.large-3.medium-6.small-12.block_resource_home.bg_resource_06{
  display: none;
}

a.sidebar-link[data-id="12"] {
  display: none;
}
/* imatges al tiniMCE */
img.img-left {
  float: left;
  margin-top: 5px!important;
  margin-right: 5px!important;
  margin-bottom: 5px!important;
  margin-left: 0!important;
}
img.img-right {
  float: right;
  margin-top: 5px!important;
  margin-right: 0!important;
  margin-bottom: 5px!important;
  margin-left: 5px!important;
}

/* no access */
.not-allowed-action,
.not-allowed-user {
  opacity: 0.2; 
  pointer-events: none;
  cursor: not-allowed;
}

/* taula de recursos a subtopics*/
li.ellipsis:has(+ li.ellipsis) {
  display: none;
}

tr[id^='resourcerow-'] td>input {
  margin-top: 1em!important;
}

tr[id^='resourcerow-'] td {
  vertical-align: middle!important;
}
div#resourceTableContainer table th:first-child, div#resourceTableContainer table td:first-child {
  width: 3%;
  text-overflow: unset!important;
}



/* Joan */
div.card_tag > ul > li> a {
  padding: 0px!important;
}
.card_tag .tag-counter.manytags {
  cursor:pointer
}
.card_tag.expand-tags {
  display: block!important;
}
.card_tag.expand-tags ul {
  display: block;
}
.card_tag.expand-tags > ul > li:not(:first-child)::before {
  content: "|";
  margin-right: 5px;
}

.card_tag.expand-tags > ul > li a{
  white-space: break-spaces!important;
}

.card_tag.expand-tags ul li {
  margin: 0px!important;
}

.card_tag.expand-tags span.tag-counter.manytags {
  float: right;
}
.card_tag.expand-tags > span.tag-counter.manytags::before{
  content: '';
}

/* Joan crear a r4ecursos per contentipes */
ul.menu.vertical li a.button_create_txt {
  border-radius: 100%;
  width: 25px;
  padding: 13px;
  background-position: 2px !important;
  margin: 0px !important;
  height: 25px;
}

a.sidebar-link.active {
  white-space: nowrap;
}

/** imatge principal de topic **/ 
.block_resource_header_photo{
  overflow: hidden;
  height: auto!important;
  width: 100%;
  border-radius: .4444rem;
  margin-bottom: 1.8889rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.block_topic_header_photo {
  overflow: hidden;
  height: auto; /*280px;*/
  width: 100%;
  border-radius: .4444rem;
  margin-bottom: 1.8889rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* email 31_5_2025 */
.block_resource_header_photo+div>p:first-child,
.block_topic_header_photo+div>p:first-child {
    margin-bottom: 1.444rem;
    margin-top: -1.444rem;
    font-style: oblique;
    font-weight: lighter;
    color: darkgray;
}

.block_resource_header_photo img,
.block_topic_header_photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
/*
.block_resource_photo img.default-image,
.block_resource_header_photo img.default-image,
.block_topic_header_photo img.default-image {
 opacity: 0.8;
  filter: grayscale(100%);
}
*/
/** Isabel - admin/resource */

.embeddedVideo-container > div > div, .secondary-links-container > div >div {
  display: inline-flex;
  width: 45%!important;
}
.embedded-video-key label, .embedded-video-value label {
  margin-right: 10px;
  font-weight: 400;
  min-width: 25%!important;
  text-align: right;
  padding-right: 10px;
}
.secondary-link-key label, .secondary-link-value label {
  margin-right: 10px;
  font-weight: 400;
  min-width: 10%!important;
}


/** SORT PUBLICATIONDATE | TITLE */
.block_resource.block_resource_header {
  background-color: #f6f3e5;
}
.block_sort_header .order-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px; /* Espai entre el text i el select */
}

.block_sort_header .order-label {
  white-space: nowrap; /* Evita que es trenqui en pantalles petites */
}

.block_sort_header .order-select {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  width: auto;
}

/* aplica al hover de la imatge de subtopic en pàgina topics, mov de la fletxa */
.grid-subtopic-photo:hover ~ .grid-subtopic-content {
  background-size: 20px, 70px;
  background-position: 96% 93%, right top;
}

div[data-postid]{
  margin-bottom: 4.4444rem;
}

.locked-button {
  content: url(img/icon-edit.svg);
  height: 35px;
  width: 35px;
  background-color: #EA8555 !important;
  border-color: #EA8555 !important;
  border-radius: 100% !important;
  text-indent: -20000px;
  padding: 5px !important;
  margin-bottom: 0rem;
}

.ts-wrapper.input.multi.plugin-remove_button.has-items.force-required a {
  background-image: unset !important;
}

button.hidden-btn {
    visibility: hidden;
}


/* guidelines */
.content_header_guidelines{
  position: relative;
}
.content_header_guidelines>.grid-x{
  background-color: #fff;
  -webkit-border-radius: 50px 50px 0 0;
  -moz-border-radius: 50px 50px 0 0;
  border-radius: 50px 50px 0 0;
  padding: 1.1111rem 6.6667rem 2.6667rem 6.6667rem;
  margin-bottom: 2.2222rem;
  z-index: 1;
}

.submenu_guidelines, .content_guidelines{
  padding-bottom: 1rem;
}
.content_header_guidelines .orbit-next, .content_header_guidelines .orbit-previous {
  padding: 1rem;
  color: rgba(255,255,255,0.00);
  background-color: #F6F3E4;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  border-radius: 100px;
  height: 2.5rem;
  width: 2.5rem;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.content_header_guidelines .orbit-previous {
  background-image: url(../img/arrow_carousel_previos.svg);
  background-repeat: no-repeat;
  background-position: center;
  margin-left: -60px;
}
.content_header_guidelines .orbit-next {
  background-image: url(../img/arrow_carousel_next.svg);
  background-repeat: no-repeat;
  background-position: center;
  margin-right: -60px;
}
.content_header_guidelines .orbit-next:hover, .content_header_guidelines .orbit-previous:hover{
  cursor:pointer;
  background-color: #EEE4B2;
}




.content_description_guidelines .medium p{
line-height: 30px;
}

/* evitar textes massa llargs en les tergetes dels subtopics/topics */
.large-6.cell.grid-guideline-l1-content p {
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 23px;
    max-height: calc(23px * 5);
}
/* evitem mostrar a partir del tercer paràgraf */
.large-6.cell.grid-guideline-l1-content p:nth-of-type(n + 2) {
    display: none;
}

/* submenu */
ul#submenu ul:has(a.nested.is-selected) {
    display: block!important;
}

.block_journey_home p {
    font-size: .8889rem;
    line-height: 1rem;
    height: calc(1rem * 8)!important;
    margin-bottom: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 8!important;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
}

/*Dashboard  cppia ampliada a guidelines de app.css */
.bg_dashboard_01, .bg_dashboard_02, .bg_dashboard_03, .bg_dashboard_04 {
  background-color: #fff;
  border-radius: 50px 50px 0 0;
  padding: 1.6667rem;
  text-align: center;
  margin-bottom: 2.2222rem;
  padding-top: 175px !important;
}
.bg_dashboard_01{
  background-image: url(img/admin_bg_usejourney.svg), url(img/admin_bg_userjourney_02.svg) !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center 45px, -16px -18px;
}
.bg_dashboard_02{
  background-image: url(img/admin_bg_resources.svg), url(img/admin_bg_userjourney_03.svg) !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center 45px, 0px -20px;
}
.bg_dashboard_03{
  background-image: url(img/admin_bg_taxonommies.svg), url(img/admin_bg_userjourney_04.svg) !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center 45px, 146px 0px;
}
.bg_dashboard_04{
  background-image: url(img/admin_bg_resources.svg), url(img/admin_bg_userjourney_01.svg) !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center 45px, -16px -18px;
}

/*End Dashboard */


/* email 31_5_2025 */

.header-with-link {
    display: flex;
    align-items: center;   /* Alinea verticalment al centre */
    justify-content: center; /* Centra horitzontalment el contingut */
    gap: 10px; /* Espai entre el h2 i l'enllaç */
}

.header-with-link h2 {
    margin: 0; /* Elimina marges per evitar salts de línia inesperats */
}

.header-with-link a.button {
    display: flex;
    align-items: center;
    padding: 0; /* Opcional: elimina padding si cal */
    border: none; /* Opcional: si el botó té estil de botó */
    background: none; /* Evita fons si no en vols */
    width: 43px;
    height: 43px;
    padding-left: 12px;
    border-radius: 57%!important;
    margin-top: 23px!important;
}

/* End email 31_5_2025 */
/* Gallery */
.block_galery_header_photo {
    overflow: hidden;
    height: auto;
    width: 100%;
    border-radius: .4444rem;
    margin-bottom: 1.4444rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.block_galery_header_photo_caption>p {
    margin-bottom: 0rem;
    margin-top: -1.444rem;
    font-style: oblique;
    font-weight: lighter;
    color: darkgray;
}
.card-section :not(:nth-last-child(2)) {
  margin-bottom: 0rem!important;
  margin-top: 0rem!important;
}


/* fgestio usuaris amb datatables */
#user-table thead th {
    cursor: default !important;
    pointer-events: none!important;
}
#user-table thead th.sorting,
#user-table thead th.sorting_asc,
#user-table thead th.sorting_desc {
    background-image: none !important;
}

#user-table tbody .button {
    margin: 0!important;
}

#user-table tbody td{
  background-color: unset;
}
#user-table tbody tr.odd{
  background-color: #e3e7d2;
}


/* GL */
.topic-shortdescription-container, .description_resources_file {
    background: rgba(102,150,90,0.13);
    border-radius: 8px;
    padding: 1.4583rem;
    margin-bottom: 1.8889rem;
}
.description_resources_file p,
.topic-shortdescription-container p {
    padding: 0;
    margin: 0;
    font-weight: 600;
}


/* topics disposicio imatges */
.large-4.medium-4.small-12.grid-subtopic-photo {
    display: flex;
    align-items: center;      /* centra verticalment */
    justify-content: center;  /* opcional: centra horitzontalment */
    height: 300px;            /* posa-hi l'alçada que necessitis */
    overflow: hidden;         /* amaga l'excés de la imatge */
}

.large-4.medium-4.small-12.grid-subtopic-photo img {
    max-height: none;
}

/* 2025_05_31_Feedback ... 13 */
a.button.button_view_full {
  width: 100%;
  font-size: 25px !important;
  line-height: 25px;
  padding: 11px 11px 11px 43px;
}

/* 2025_05_31_Feedback ... 14  add div.card_tag before span (html) */
.taxonomies_tag {
    background-image: url(img/ico_tag.svg);
    background-repeat: no-repeat;
    background-position: 0px 7px;
}
.taxonomies_list .taxonomies_tag .title_taxonomy {
    margin-left: 1.25rem;
}

li.no-marker {
    list-style: none!important;
    text-align: right;
    font-style: italic;
}

.mainExternalLink{
  display: flex;
}
.mainExternalLink label{
  min-width: 3rem!important;
  font-weight: unset!important;
}
.small-12.medium-12.cell.frg_resource_newImages {
    margin-bottom: 2rem;
}

/* 2025_05_31_Feedback ... 26  add header on vertical menu (html) */
.menu_vertical_topic {
  padding-top: unset!important;
}
.menu_vertical_topic_title {
    background-color: #405842;
    color: #ffffff;
    padding: 1rem 0 0 0.5rem;
    font-weight: 900;
}
.menu_vertical_topic_title a {
    color: #ffffff;
}
.menu_vertical_topic_title a:hover,.menu_vertical_topic_title a:focus {
    color: #eee4b2;
}




/* datatable columns */
/* Columna 1: Name */
#user-table th:nth-child(1),
#user-table td:nth-child(1) {
  /* Estils aquí */
      width: 20%!important;
}

/* Columna 2: Surename */
#user-table th:nth-child(2),
#user-table td:nth-child(2) {
  /* Estils aquí */
      width: 20%!important;
}

/* Columna 3: Email */
#user-table th:nth-child(3),
#user-table td:nth-child(3) {
  /* Estils aquí */
      width: 20%!important;
}

/* Columna 4: Roles */
#user-table th:nth-child(4),
#user-table td:nth-child(4) {
  /* Estils aquí */
    width: 10%!important;
}

/* Columna 5: Active */
#user-table th:nth-child(5),
#user-table td:nth-child(5) {
  /* Estils aquí */
    width: 10%!important;
}

/* Columna 6: Actions */
#user-table th:nth-child(6),
#user-table td:nth-child(6) {
  /* Estils aquí */
  width: 16%!important;  
}


/* maincta - Main External link */
label.question-label.main-external-link{
  margin-top: 2rem;
}
div.main-external-link{
  display: flex;  
}
div.main-external-link label{
  flex: 0 0 3em;
}



.logo-cell {
  height: 150px; /* controla l’alçada total de cada cel·la */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
}

.logo-wrapper img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  transition: 0.3s ease;
}

/* Capa de hover */
.logo-wrapper .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* deixa passar clics a l'enllaç per sota */
}

.logo-wrapper:hover .overlay {
  opacity: 1;
  pointer-events: auto; /* permet fer clic a la icona si vols */
}

/* Icona centrada */
.overlay-icon {
  background: white;
  border-radius: 100%;
  font-size: 24px;
  color: #000;
  padding: 5px 15px;
}
/* userjourneys, topics, subtopics con top level */
.menu_bg_userjourney_page::after {
    position: absolute;
    content: url(img/bg_bear_02.svg) !important;
    z-index: -1 !important;
    animation: fade-left 1s ease-in;
}
li.menu_vertical_topic_title{
    padding-left: 0px;
}
li.menu_vertical_topic_title.is-selected,
li.menu_vertical_topic_title.is-selected a,
li.menu_vertical_topic_title.is-selected a:hover,
li.menu_vertical_topic_title.is-selected a:focus {
    color: #eee4b2;
}


#guidelines tbody th.title,
#guidelines tbody td.title {
    width: 300px;
}

#guidelines tbody th.sdesc, 
#guidelines tbody td.sdesc, 
#guidelines tbody th.sdesc p, 
#guidelines tbody td.sdesc p {
    max-height: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    margin: 0px;
}
#guidelines tbody th.controls,
#guidelines tbody td.controls {
    min-width: 230px;
}

#topic tbody th.title,
#topic tbody td.title {
    width: 300px;
}

#topic tbody th.sdesc, 
#topic tbody td.sdesc, 
#topic tbody th.sdesc p, 
#topic tbody td.sdesc p {
    max-height: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    margin: 0px;
}
#topic tbody th.controls,
#topic tbody td.controls {
    min-width: 230px;
}

a[href="#nogo"]{
  cursor:default!important
}

/* boto esborrar main image en topics/suptopics (GL i UJ) cal sobreescriure per topic el background :-( */
#topic .userjourney-second-column .delete-button, 
#topic .userjourney-first-column .delete-button {
    background-color: #EA8555!important;
    border-color: #EA8555!important;
}


/* excel 16/6  L20*/
.list_links_resources{
  background-color: #E5E2D3;
  padding: .8333rem;
  -webkit-border-radius: .3333rem;
  -moz-border-radius: .3333rem;
  border-radius: .3333rem;
}
/* excel 16/6  L20*/
.guidelines-description-container,
.userjourney-description-container{
    background: rgba(102, 150, 90, 0.13);
    border-radius: .4444rem;
    padding: 1.4583rem;
    margin-bottom: 1.8889rem;
    margin-top: 3.3333rem;
    font-size: 1.1667rem;
    line-height: 1.5556rem;
    font-weight: 600;
}
.guidelines-description-container,
.userjourney-description-container {
    background: rgba(102, 150, 90, 0.13);
    border-radius: 8px;
    padding: 1.4583rem;
    margin-bottom: 1.8889rem;
}
.content_description_user_journey .userjourney-description-container{
margin-top: 0;
}

/* Excel, borrar en llista de recursos */
#resources .delete.delete-button:hover {
    background-color: #EA8555 !important;
    border-color: #EA8555 !important;
}

/* Excel, en els recursos els links surten com a ">" i no els agrada */
.taxonomies_list ul li {
}

/* Afegim checkboxes per filtrar per rols a user management */
.roles-filter-container {
    float: left;
}
.role-checkboxes {
  display: flex;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-checkboxes label {
    margin-top: 0.3rem;
}

.role-checkboxes input[type="checkbox"] {
    margin-top: 0.5rem;
}

.block_resource_photo img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-fit: unset;
}

/* taules a Admin/Recursos */
table#resourcestable td.date-index {
    white-space: nowrap;
}

.pr-large {
    padding-right: 2rem;
}

.pt-medium {
    padding-top: 1rem;
}

label.text-left.question-label {
    white-space: normal;
    word-break: break-word;
    max-width: 90%;
}

.scale-area {
    padding: 1px .8333rem 1px .8333rem;
    background-color: #fff;
    -webkit-border-radius: .3333rem .3333rem 0 0;
    -moz-border-radius: .3333rem .3333rem 0 0;
    border-radius: .3333rem .3333rem 0 0;
}

div.licenses-block {
    background-color: #e2e5d0;
    padding: 1.4583rem;
    border-radius: 8px;
    margin-bottom: 1em;
}

div.licenses-block h6.license-kind {
  margin: 0px;
  font-family: "DM Sans", sans-serif !important;
}

div.licenses-block p.license-extra {
  margin: 0px;
}

/* nExcel 29/8 L57 */
.ListContainerWrapper ul.BulletListStyle1 {
    color: inherit;
    font-weight: 400;
}
a.Hyperlink, a.Hyperlink:visited, a.Hyperlink:hover, a.Hyperlink:focus {
    color: unset!important;
    text-decoration: none;
}
[data-ccp-charstyle]:hover {
    font-weight: bold;
    color: unset!important;
}
/* Afegim num EU */
.footer-eu {
    text-align: center;
}

.footer-eu__text {
    font-family: "DM Sans", sans-serif;
    margin-top: 0px;
    font-size: 0.64em;
    font-weight: 600;
    text-decoration: none;
    text-decoration-color: white;
}
/* Al footer també posem xarxes socials */
.footer_social {
    display: flex;
}
.footer_social>ul.no-bullet:not(:first-child) {
    margin-left: 1em;
}

span.second-line {
    font-size: 2.4rem;
}

#fkg-chat-trigger {
  position: fixed;
  right: 2rem;
  bottom: 4rem;
  z-index: 99999;
}