#jevents_body {
    border: none;
    background-color: transparent;
    border-radius: 0;
}
#jevents_body .cal_table {
    border: 1px solid #000;
    background-color: #000;
}
.month_date {
  display:none;
}
.nav-items > div {
    border: 1px solid #000;
}
.nav-items > div:first-child {
    border-radius: 0;
    border-left: 1px solid #000;
}
.nav-items > div:first-child a:hover {
    border-radius: 0; 
    margin-left: -1px;
}
#jevents_body .nav-items > div a:hover {
    background-color: #000;
    border-left: 1px solid #000;
    color: #fff;
}

#jevents_body .nav-items div.active a{
    background-color: #000;
    color: #FFF;
}
#jevents_body .nav-items div.active a:hover{
    background-color: #000;
    border-left: 1px solid #000;
}
.nav-items > div:last-child {
    border-radius: 0;
    border-right: 1px solid #000;
}
.nav-items > div:last-child a:hover {
    border-radius: 0;
}

.jev_toprow div.currentmonth {
  border-top: 1px solid grey;
  border-bottom: 1px solid grey;
  color: #000 !important;
  width: 49.8%;
}

.jev_toprow div.previousmonth,
.jev_toprow div.nextmonth {
  background-color: darkgrey;
  border: 1px solid darkgrey;
  line-height: inherit;
  border-radius: 0 !important;
}

#jevents_body .cal_daysnames {
  color:#000;
}
#jevents_body .cal_daysnoevents {
  border: 1px solid #000;
}
#jevents_body #jev_maincal {
    background-color: transparent;
    border: 1px solid #000;
}
#jevents_body #jev_maincal.jev_listview .jev_daysnames {
  background-color: #000;
  color:#fff;
  width:100%;
}
.jev_listview .jev_listrow {
    border-color: #000;
  border-width: 1px;
    margin-bottom:0;
}

#jevents_body #jumpto form select {
    border: 1px solid #000;
    border-bottom-color: #000;
}
#jevents_body #jumpto form button {
    color: #fff;
    text-shadow: none;
    background-color: #000;
    background-image: none;
    border: 1px solid #000;
    border-radius: 0;
}

a.ev_link_row:link, a.ev_link_row:visited {
font-size: 16px;
  font-weight:700;
}
a.ev_link_row:hover {
  color:red;
}


/* 1. Alvo: O elemento que contém ambos os blocos */
#jevents_body, 
.jev_listview { /* Adapte a classe pai se necessário */
    display: flex;
    flex-direction: column;
}

/* 2. Controlar a ordem numérica (valores mais baixos sobem, mais altos descem) */
#jevents_body .event_legend_container,
#jevents_body .jev_legend {
    order: 1 !important; /* Fica em primeiro ou segundo conforme preferir */
}

#jevents_body .jev_pagination {
    order: 2 !important; /* Exemplo: joga a paginação para baixo da legenda */
}
#jevents_body #jev_maincal.jev_listview .jev_daysnames {
    border: none;
  width:100% !important;
}

#jevents_body .jev_daysnames.category select {
  background: white;
}

a.ev_link_row:link {font-size:34px;}

a.ev_link_row:hover {color: #fec411;}

.nav-items > div a {
    color: #fec411;
}

#nav-search a[href*="search_form"] {
    display: none !important;
}

div.event_legend_name a {color:white;}