/* override fonts and margins set in main.css */
div.main-container[role="main"] {
    margin-bottom: 0;
}

.events-list-container,
.events-list-container table.dataTable,
.events-list-container table.dataTable a
{
    font-family: "Roboto Regular";
}

.events-list-container {
    background: #1C4167;
    color: white;
    padding: 4ex 0;
    width: 100%;
    position: relative;
}
@media (min-width: 768px) {
.events-list-container:before {
    background: #1C4167;
    background-size: 100%;
    content: "";
    position: absolute;
    margin: 0 auto;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translate(-50%, 0);
    background-position: top;
    z-index: -1;
    top: 0;
}
}

.event-list-background > h3 {
    background: #4D6A88;
    cursor: pointer;
    padding: 0ex 1em;
    margin-bottom: 2ex;
    color:inherit;
    font-size: 24px;
    font-family: "Roboto Regular", sans-serif !important;

}

.event-list-background-content {
    display: none;
}

.event-list-background-content iframe {
    float: left;
    margin-right: 2em;
}

.event-list-background-content::after {
    clear: both;
    content: "";
    display: table;
}

.event-legacy-link {
    display: block;
    font-size: larger;
    font-weight: bold;
    margin: 4ex 25% 2ex;
    padding-left: 1.5em;
}

.event-legacy-link,
.event-legacy-link:visited
{
    color: #32A1FE;
}

.event-list-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 4ex;
}

.event-list-filters,
.event-list-filters label,
.ui-multiselect-menu label {
    font-family: "Roboto Light";
    font-weight: lighter;
}

/* additional prefix classes are here to increase specificity,
 * otherwise inputs inherit outline from style.css */
.event-list-filters button,
.event-list-filters button:focus,
.event-list-filters input,
.event-list-filters input[type="checkbox"]:focus,
.ui-multiselect-menu input,
.ui-multiselect-menu input[type="checkbox"]:focus,
.event-list-filters select,
.event-list-filters select:focus {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-backface-visibility: hidden;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    outline: none;
}

.event-list-filters-left-column {
    margin-right: 2em;
    width: 25%;
    margin-bottom: -15px;
}

.event-list-filters-right-column {
    flex: 1 1 0px;
}

.event-list-filters-wrap {
    flex-basis: 100%;
}

.events-list-container .container 
.event-list-filters 
.event-list-filters-left-column h2 {              
    font-family: "Roboto Regular" , sans-serif !important;
}

.event-list-header h2 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0px;
    color:inherit;
    font-size: 30px;
    
}

.event-list-updated {
    color: #9B5B72;
    font-style: italic;
}

.event-selectors {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 1ex;
}

.event-selectors > * {
    flex: 1 1 180px;
    margin-right: 1em;
}

.event-selectors > *:last-child,
.event-search-bar > * {
    margin-right: 0;
}

.event-search-bar {
    font-size: large;
}

.event-search-bar input,
.event-search-bar input:focus {
    border: 2px solid white;
}

.event-search-bar input {
    background: #173758;
    flex-grow: 1;
    padding: 1ex 1em;
}

.event-search-bar input::placeholder {
    color: white;
}

.event-search-bar button {
    background: #32A1FF;
    border: 2px solid #32A1FF;
    flex: 0 0 auto;
    padding: 1ex 2em;
}

.event-list-filters input[type=checkbox],
.ui-multiselect-menu input[type=checkbox],
.event-list-filters input[type=checkbox]:focus,
.ui-multiselect-menu input[type=checkbox]:focus {
    border: 1px solid white;
    margin: 0 0.5em 0 0;
    position: relative;
    width: 1em;
    height: 1em;
}

.event-list-filters input[type="checkbox"]::before,
.ui-multiselect-menu input[type="checkbox"]::before {
    color: white;
    content: "\2713";
    position: absolute;
    font-size: 1.7em;
    top: -0.4em;
    visibility: hidden;
}

.event-list-filters input[type="checkbox"]:checked,
.ui-multiselect-menu input[type="checkbox"]:checked {
    background: #40A0E0;
    border: none;
}

.event-list-filters input[type="checkbox"]:checked::before,
.ui-multiselect-menu input[type="checkbox"]:checked::before {
    visibility: visible;
}

.event-selector,
button.ui-multiselect.event-filter {
    background-color: #405F7E;
    border: 2px solid white;
    cursor: pointer;
    padding: 0.5ex 0;
}

select.event-selector,
button.ui-multiselect.event-filter {
    background-image: url("/themes/custom/unfccc/images/selector.png");
    background-position: right 50%;
    background-repeat: no-repeat;
    background-size: auto 100%;
    padding-left: 1em;
    color: inherit;
}

.event-filter
.ui-multiselect-open
.ui-icon-triangle-1-s{
    display: inline;
}

.event-list-filters select option {
    border: none;
    padding: 4px auto;
}

input.event-internal-filter[type="checkbox"],
input.event-internal-filter[type="checkbox"]:focus {
    height: 1.5em;
    width: 1.5em;
}

input.event-internal-filter[type="checkbox"]::before {
    font-size: 2.5em;
    top: -0.5em;
}

.event-month-filter {
    text-align: center;
}

.event-month-filter > div {
    /* compensate pixels eaten by the parent div border,
     * to set up correct width for the child .event-month-filter-popup
     */
    margin-right: -4px;
    position: relative;
}

.event-month-filter .event-month-filter-popup {
    display: none;
    position: absolute;
    left: -2px;
    top: 1.5ex;
    width: 100%;
    z-index: 101;
}

.event-month-filter .event-year-scroller {
    background-color: #335377;
    cursor: default;
    display: flex;
    border: 2px solid white;
    margin-bottom: 1ex;
    padding: 0 1em;
}

.event-month-filter .event-prev-year,
.event-month-filter .event-next-year {
    cursor: pointer;
}

.event-month-filter .event-month-filter-year {
    flex: 1 1 0;
    text-align: center;
}

.event-month-filter .event-month-grid {
    display: grid;
    background-color: #335377;
    border: 1px solid white;
    grid-template-columns: 1fr 1fr 1fr;
    padding-left: 0;
}

.event-month-filter input[type="radio"] {
    display: none;
}

.event-month-filter label {
    box-shadow: 0 0 0 1px silver;
    padding: 0.5ex 1em;
}

.event-month-filter input[type="radio"]:checked + label {
    background-color: #32A1FF;
}

.event-checkbox-filters > label * {
    vertical-align: middle;
}

.event-mandated-filter ~ span {
    font-size: smaller;
}

.ui-multiselect-menu.event-filter {
    color: white;
    background: rgba(26, 65, 103, 0);
    padding: 1ex 0;
}

.event-filter .ui-multiselect-checkboxes {
    background-color: #405F7E;
    border: 2px solid white;
    padding: 1ex 1em;
}

.event-list-filters label,
.ui-multiselect-menu.event-filter label {
    cursor: pointer;
    margin: 0;
}

.event-refiners {
    flex: auto;
    margin: 0;
    padding: 0;
}

.event-refiners li {
    background-color: #24619A;
    border-radius: 10px;
    display: inline-block;
    margin-right: 1em;
    margin-bottom: 1ex;
    padding: 1px 1ch;
}

.event-refiners li span {
    margin-right: 1ch;
    vertical-align: middle;
    white-space: nowrap;
}

.event-refiners li img {
    cursor: pointer;
    margin-bottom: 1px;
}

div.event-reset-filters {
    flex: 0 0 auto;
}

div.event-reset-filters span {
    background-color: #32A1FF;
    cursor: pointer;
    padding: 0 1ch;
    white-space: nowrap;
}

.event-list-table table {
    table-layout: fixed;
    width: 100%;
}

.event-list-table tbody td:nth-child(1) {
    width: 25%;
    border-bottom: 2px solid white;
}

.event-list-table tbody td:nth-child(2) {
    width: 2em;
}
.event-list-table tbody td:nth-child(3) {
    border-bottom: 3px solid white;
    padding: 20px;
}

.event-list-table tbody td:nth-child(4) {
    padding: 0 0 0 0ch;
    width: 6em;
    border-bottom: 3px solid white;
}

tr.event-month-group.dtrg-group.dtrg-start > td {
    padding: 0;
}

tr + tr.event-month-group td div {
    margin-top: 4ex;
}

.event-month-group td div {
    background: #6FE3BE;
    color: white;
    font-weight: bold;
    margin-bottom: 1ex;
    padding: 1ex 1em;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
}

.event-details > * {
    margin-top: 1ex;
}

.event-internal-logo {
    height: 20px;
    margin-right: 1em;
}

.event-tag {
    border: 1px solid white;
    border-radius: 2ex;
    font-size: smaller;
    margin-right: 1em;
    padding: 0 1em;
    white-space: nowrap;
}

/* used for styling event location of the event in the description column index 3 */
/* change color for events location in the details table*/
.event-location {
    background-color: #E46B79;
    border-color: #E46B79;
    font-weight: bold;
}

/* used for style for theme list in the description column index 3 */
.event-theme {
    border-color: #07B76C;
}

 /* place divs in one line for pagination style */
.dataTables_paginate {
    float: right;
}

/* place divs in one line for pagination style, adjust text appearance "1 to 3 from 3" on the same line as buttons */
.dataTables_info {
    float: right;
    padding: 1ex 0;
}  

/* make pagination buttons and space between bigger and set text color*/
.dataTables_paginate > a {
    font-size: x-large;
    font-weight: bold;
    color: #1488FF;
    cursor: pointer;
    padding: 0px 5px;
}

/* this is overwrites definition for border from main CSS theme, if removed main CSS will have a priority to set border */
.table table tbody tr td, .table table tbody tr th {
    border: 0px solid #ebf0f2;
    padding: 18px 0px;
}

/* hide table headers, they are not needed here */
.dataTables_wrapper table thead{
    display:none;
}

/* explicitly sets border for no-border class (in this case empty column between date range and description ) */  
td.no-border {
    border: 0px;
    border-collapse: separate;
    border-spacing: 0px;
}

/* explicitly sets style for thin border on top of date range */
.table table tbody tr td.thin-top-border {
    border: 0px;
    border-top: 2px solid white;
    border-collapse: separate;
    border-spacing: 0px;
    padding: 18px 0px;
}

.table table tbody tr td.thin-top-border:empty {
    border: none;
}
  
/* explicitly sets style for bold thin border on top of description and links columns */
.table table tbody tr td.double-thin-top-border {
    border: 0px;
    border-top: 3px solid white;
    border-collapse: separate;
    border-spacing: 0px;
}

  /* used for header of the group aka JULY 2020 */
  .month-header {
      background: #6FE3BE;
      padding-left: 10px;
      padding-top: 10px;
      padding-bottom: 10px;
      color: white;
      float: left;
      width: 243px; /* should be the same size as first column + padding and border */
      font-weight: bold;
  }
   
 
  /* used for styling title of the event in the description column index 3 */
  .events-title {
      font-weight: bold;
  }
  
 
  /* used for styling of event link in column index 8 */
  .event-link {
      font-size: 12px;
      text-decoration: none;
      color: #32A1FF;
      font-weight: bold;
  }

@media (max-width: 749px) {

    .events-list-container {
        padding-top: 4ex;
    }

    .event-list-background-content iframe {
        margin-bottom: 2ex;
        width: 100%;
    }

    .event-legacy-link {
        margin-left: 0;
        margin-top: 4ex;
        padding-left: 0;
    }

    .event-list-filters-left-column {
        width: initial;
        margin-bottom: 2ex;
        margin-right: 0;
    }

    .event-selectors > * {
        margin-right: 0;
    }
    
    .event-search-bar input, .event-search-bar button {
        padding: 0.5ex 0.5em;
    }

    .event-selectors label {
        white-space: nowrap;
    }

    select.event-selector,
    button.ui-multiselect.event-filter {
        background-size: auto 24px;
        font-size: small;
    }

    .event-month-filter {
        padding: 2px 0;
    }

    .event-list-table table tbody tr td {
        white-space: initial;
    }

    .event-month-group td div {
        font-size: smaller;
        padding: 4px;
    }

    .event-list-table tbody td:nth-child(2) {
        width: 1ch;
    }

    .event-list-table tbody td:nth-child(4) {
        padding: 2ex 0;
        vertical-align: top;
        width: 3em;
    }
}

/* UNFCCCWEB-435 styles

.event-list-background h3 {
    font-size: 20pt;
}

.event-list-header h2 {
    font-size: 50pt;
}

.event-search-bar input,
.event-search-bar input::-webkit-input-placeholder,
.event-search-bar button {
    font-size: 30pt;
    padding: 2pt 1rem;
}

.event-selector, button.ui-multiselect.event-filter {
    font-size: 16pt;
}

.event-checkbox-filters {
    font-size: 18pt;
}

.event-reset-filters {
    font-size: 16pt;
}

.event-month-group td div {
    font-size: 35pt;
    padding: 2pt 1rem;
}

.dataTables_info,
.dataTables_paginate > a {
    font-size: 16pt;
    padding: 0 0.5ex;
}

*/
