#agenda-filter-form > #edit-filter--wrapper .fieldset-legend{
  text-align: center;
  width: 100%;
  color: #2F4858;
  padding-bottom: 15px;
  padding-top: 35px;
  font: normal normal bold 36px/39px Noto Sans;
  letter-spacing: 0px;
  opacity: 1;
}

.agenda-block{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: #F4F5F6;
  padding: 0 !important;
}

.block-agenda-calendario-block{
  background-color: #F4F5F6;
  padding-top: 20px;
}

.block-agenda-navigation-form-block{
  height: 0;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.block-agenda-filter-form-block{
  background-color: #F4F5F6;
  margin-top: 50px !important;
  padding-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* Formulario */
.block-agenda-filter-form-block .content{
  width: 100%;
  max-width: 1320px;
}

.block-agenda-filter-form-block .content legend{
  display: flex;
  justify-content: center;
}

.form-radios,
.form-radios ul,
.form-radios li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.block-agenda-filter-form-block #edit-filter {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0px;
  justify-content: space-between;
}

.block-agenda-filter-form-block #edit-filter input[type="radio"] {
  display: none;
}

.block-agenda-filter-form-block #edit-filter label {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  font-size: 14px;
  user-select: none;
  color: #333;
  background-color: white;
  margin: 0;
  width:100%;
  text-align: center;
}

.block-agenda-filter-form-block #edit-filter label::before {
  content: '';
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background-color: yellow;
  margin-right: 2px;
}

.block-agenda-filter-form-block #edit-filter label[for="edit-filter-agenda-presidente"]::before {
  background-color: #c83d2d;
}
.block-agenda-filter-form-block #edit-filter label[for="edit-filter-agenda-sesiones"]::before {
  background-color: blue;
}
.block-agenda-filter-form-block #edit-filter label[for="edit-filter-agenda-internacional"]::before {
  background-color: green;
}

.block-agenda-filter-form-block #edit-filter label:hover {
  border-color: #2F4858;
}

.block-agenda-filter-form-block #edit-filter input[type="radio"]:checked + label {
  border-color: #2F4858;
  background-color: #2F4858;
  color: #fff;
}

.block-agenda-filter-form-block #edit-filter > div{
    padding: 0;
    margin: 0;
    width:20%;
}

.block-agenda-filter-form-block button{
  display: none;
}

/* Mes siguiente y anterior*/

.agenda-navigation-form{
  width: 100%;
  display: flex;
  justify-content: center;
}

.agenda-navigation-form > .content{
  max-width: 1320px;
  width: 100%;
}

.agenda-navigation-form #agenda-navigation-form{
  max-width: 1320px;
  width: 100%;
  position: relative;
  top: 12px;
}

#agenda-navigation-buttons{
  display: flex;
  justify-content: space-between;
  width: 33%;
  padding: 19px 3%;
  margin: 0%;
}

#agenda-navigation-buttons button{
  background-color: transparent !important;
  color: black !important;
  border: none !important;
  padding: 0 !important;
  font-size: 33px;
  z-index: 2;
  outline: none;
  background-image: url('/themes/custom/cnmc_barrio_bs/img/icon-forward.svg');
  background-repeat: no-repeat;
  width: 32px;
  height: 32px;
}

#agenda-navigation-buttons button[name='prev_button']{
  transform: scaleX(-1);
}

.region-featured-bottom-third .ajax-progress{
  display: none;
}

.region-featured-bottom-third .ajax-progress.ajax-progress-throbber {
  display: none;
 
}

/*Calendario*/

.agenda-block .left-side{
  width: 33%;
}

.calendario-nav{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  height: 34px;
}

.calendario-nav button {
  background-color: transparent;
  border: none;
}

.calendario-nav button a {
  font-size: 40px;
  position: relative;
  top: -21px;
}

.calendario {
  border: 1px solid #ccc;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  background-color: white;
  margin-bottom: 30px;
}

.calendario-row{
  display: flex;
  width: 100%;
}

.nav-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #2F4858;
  position: relative;
  top: -5px;
}
.calendario-header{
  display: flex;
  width: 100%;
}
.calendario-body {
  display: flex;
  width: 100%;
  height: 400px;

  overflow-y: auto;
  scroll-behavior: smooth;
  
  /* Para Firefox: */
  scrollbar-width: thin;
  scrollbar-color: #F4F5F6 #2F4858;  /* Color del thumb y del track */
  padding-right: 10px;
}

/* Para navegadores Webkit (Chrome, Safari, Edge) */

/* Estilo general de la barra de scroll */
.calendario-body::-webkit-scrollbar {
  width: 10px;
}

/* Estilo del track (fondo de la scrollbar) */
.calendario-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Estilo del thumb */
.calendario-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2F4858, white);
  border-radius: 10px;
}

/* Efecto hover para el thumb */
.calendario-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2F4858, white);
}


.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
}

.calendario-day {
  font-weight: bold;
  background-color: white;
  width: calc(100%/7);
  text-align: center;
}

.calendario-day abbr[title]{
  border: none;
  text-decoration: none;
}

.calendario-day-cell {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.weekend{
  color: #afb1b3
}

.calendario-day-cell.empty {
  background-color: #fafafa;
}

.event {
  display: inline-block;
  width: 49px;
  height: 20px;
  overflow: hidden;
  font-size: .85em;
  line-height: 1.4;
  color: white;
  border: 1px solid black;
  border-radius: 3px;
  margin: 1px 1px 0;
  padding: 0 1px;
}

.event-president {
  display: inline-block;
  background-color: #c83d2d;
}

.event-sessions {
  display: inline-block;
  background-color: blue;
}

.event-international {
  display: inline-block;
  background-color: green;
}

.event-vicepresidencia{
  display: inline-block;
  background-color: rgb(90, 0, 128);
}

/*Parte derecha*/
.agenda-block .right-side{
  width: 67%;
}

.right-side h3 {
  text-align: center;
}

.right-side > ul{
  padding: 0;
  margin: 0 0 0 5%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 6%;
}

.right-side > ul li { 
  width: 47%;
  height: 145px;
  margin-bottom: 30px;
  z-index: 2;
}

.right-side > ul li > a{ 
  background-color: white;
  border-radius: 8px;
  padding: 4%;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 100%;
  width: 100%;
}

.fecha-calendario{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fecha-celebracion{
  border: 1px solid #2F4858;
  border-radius: 100%;
  padding:1%;
  background-color: #2F4858;
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fecha-fin-celebracion{
  display: none;
  border: 1px solid #2F4858;
  border-radius: 100%;
  padding:1%;
  background-color: white;
  color: #2F4858;
  width: 60px;
  height: 60px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.texto-calendario{
  padding-left: 7%;
  width: 72%;
}

.title-nodo-calendario{
  font-size: clamp(14px, 1vw, 20px);
  color: #2F4858;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.type-nodo-calendario{
  font-size: clamp(12px, 1vw, 16px);
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flecha-calendario{
  width: 7%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.flecha-calendario span{
  font-size: 25px;
}

.right-side > ul li > a:hover {
  background-color: #2F4858;
  color: white;
}

.right-side > ul li > a:hover .title-nodo-calendario{
  color: white;
}

.right-side > ul li > a:hover .type-nodo-calendario{
  color: white;
}

.right-side > ul li > a:hover .fecha-celebracion{
  display: none;
}

.right-side > ul li > a:hover .fecha-fin-celebracion{
  display: flex;
}

.calendario_agenda_sesiones{
  width: 8px;
  height: 8px;
  border: 1px solid blue;
  border-radius: 100%;
  background-color: blue;
  margin-right: 3px;
}

.calendario_agenda_presidente{
  width: 8px;
  height: 8px;
  border: 1px solid #c83d2d;
  border-radius: 100%;
  background-color: #c83d2d;
  margin-right: 3px;
}

.calendario_agenda_internacional{
  width: 8px;
  height: 8px;
  border: 1px solid green;
  border-radius: 100%;
  background-color: green;
  margin-right: 3px;
}

.agenda_boton{
  width: 100%;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 10px;
}

.block-agenda-pagination-block {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #F4F5F6;
  width: 100%;
}

.block-agenda-pagination-block .content{
  max-width: 1320px;
  width: 100%;
}

.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form{
  margin-left: 33%;
  width: 67%;
  display: flex;
  justify-content: center;
}

.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form > #agenda-page-buttons{
 display: flex;
 justify-content: center;
 width: 30%;
 flex-direction: row;
 margin-top: 30px;
}
.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form > #agenda-page-buttons > div {
 display: flex;
 justify-content: center;
 flex-direction: row;
}

.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form button{
  background-color: white !important;
  color: #2F4858!important;
  padding: 0 !important;
  vertical-align: middle;
  text-align: center;
  font-size: 18px;
  width: 38px !important;
  height: 38px !important;
  border-color: #ddd !important;
  border-radius: 0 !important;
}

.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form button:focus{
  background-color: #2F4858 !important;
  color: white !important;
  outline: none !important;
}

.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form button:hover{
  background-color: #2F4858 !important;
  color: white !important;
  outline: none !important;
}

.block-agenda-pagination-block .content > #agenda-pagination-wrapper > form button:active{
  background-color: #2F4858 !important;
  color: white !important;
  outline: none !important;
}

.div-view-empty{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 32%;
  font-size: 22px;
  background-color: white;
  font-weight: bold;
  color: #2F4858;
  padding: 1%;
}


/* Responsive */
@media (max-width: 1200px) {
  .right-side > ul li {
    width: 100%;
    margin: 10px 0;
  }
  .event{
    width: 40px;
  }
}

@media (max-width: 1000px) {
  .agenda-block .right-side {
    width: 100%;
  }
  .agenda-block .left-side {
    width: 100%;
    padding-left: 3%;
    padding-right: 3%;
  }
  .calendario{
    max-width: none;
    width: 100%;
    margin-bottom: 20px;
  }
  .right-side ul{
    width: 100%;
    padding-left: 3%;
    padding-right: 3%;
    margin:0;
  }
  .block-agenda-filter-form-block{
    width: 100%;
  }
  .block-agenda-filter-form-block #edit-filter{
    width: 92%;
    margin: 0 4%;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .block-agenda-filter-form-block #edit-filter > div {
    margin-bottom: 10px;
    width: 100%;
  }

  #agenda-navigation-buttons{
    width: 100%;
    padding: 19px 6%;
  }

  .agenda-paginador {
    margin-bottom: 20px;
  }

  .block-agenda-pagination-block .content > #agenda-pagination-wrapper > form{
    margin-left: 0;
    width: 100%;
  }

  .block-agenda-pagination-block .content > #agenda-pagination-wrapper > form #agenda-page-buttons{
    width: 50%;
  }
  
}

@media (max-width: 600px) {
 .fecha-celebracion, .fecha-fin-celebracion{
  width: 50px;
  height: 50px;
  font-size: 12px;
 }
}