/**
 * Search form
 */

.mmt-meeting-list form {
    margin-bottom: 1em;
    overflow: hidden;
}

.mmt-meeting-list label {
    position: absolute;
    left: -999em;
    top: -999em;
}

/** Reset all margins */
.mmt-meeting-list div.field,
.mmt-meeting-list div.fieldinput {
    float: left;
    width: auto;
    clear: none;
}

/** Set dimensions for search bar */
.mmt-meeting-list div.field {
    width: 80%;
}

.mmt-meeting-list div.fieldinput {
    width: 100%;
    margin: 0;
}

.mmt-meeting-list div.fieldinput input {
    width: 90%;
    height: auto;
}

/** Reset dimensions for submit section */
.mmt-meeting-list div.submit {
    width: auto;
}

/**
 * Pager
 */

.pbuic-pager {
    clear: both;
    margin-bottom: 1em;
}

/**
 * .mmt-meeting-list
 * Parent element, acts as container of all snippet related elements
 */

.mmt-ml-meetings {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-ml-meeting {
    position: relative;
}

/**
 * .mmt-ml-title-pane
 * Contains title, registration status and labels
 */

.mmt-ml-title-pane h3 {
    width: 100%;
    margin: 0 0 0.5em;
    padding: 0;
    font-size: 1.3em;
}

.mmt-ml-meeting:hover .mmt-ml-title-pane h3 {
    color: #ed7004;
}

/** Date and location */
.mmt-ml-date-location {
    margin: 0 0 1em;
}

/**
 * .mmt-ml-desc-pane
 * Contains image and description
 */

.mmt-ml-meeting-image {
    margin-bottom: 1em;
}

.mmt-ml-has-image .mmt-ml-details {
    margin-left: 120px;
    overflow: hidden; /** Kills unnecessary whitespace */
}

/**
 * Changes when hovering on one meeting
 */

.mmt-meeting-list ol li:hover .mmt-ml-footer-pane,
.mmt-meeting-list ol li:hover .mmt-ml-title-pane {
    border-color: #ccc;
}

.mmt-ml-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@media screen and (min-width: 500px) {
    .mmt-ml-meetings {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .mmt-ml-meeting {
        -ms-flex-preferred-size: calc(50% - 1.5em);
        flex-basis: calc(50% - 1.5em);
        margin: 1em 2em 1em 0;
    }

    .mmt-ml-meeting:nth-child(2n + 2) {
        margin-right: 0;
    }
}

@media screen and (min-width: 850px) {
    .mmt-ml-meeting {
        -ms-flex-preferred-size: calc(25% - 1.5em);
        flex-basis: calc(25% - 1.5em);
    }

    .mmt-ml-meeting:nth-child(2n + 2) {
        margin-right: 2em;
    }

    .mmt-ml-meeting:nth-child(4n + 4) {
        margin-right: 0;
    }
}

/**
 * .mmt-meeting-list-simple
 */

.mmt-meeting-list-simple ol li {
    border: 0;
    border-top: 1px solid #ddd;
}

.mmt-meeting-list-simple ol li:hover {
    background: transparent;
    border-color: #ddd;
    box-shadow: none;
}

.mmt-meeting-list-simple .mmt-ml-first {
    border-top: 0;
}

/** Containing link to meeting */
.mmt-meeting-list-simple ol a {
    display: block;
    padding: 3px 0;
    text-decoration: none;
    color: #000;
}

/** Location and date */
.mmt-meeting-list-simple .mmt-ml-date-location {
    margin-bottom: 0;
    font-size: .9em;
}

/** Meeting title */
.mmt-meeting-list-simple .mmt-ml-title {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
