/**
 * @author: Procurios
 * @about:  mmt-meeting-detail-page.css
 *          Layout and structure of the meeting detail page
 */

/**
 * Generic settings, resets, defaults
 */

/** Reset lists */
.mmt-mdp-nav ul,
.mmt-mdp-section-attendees ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mod-meeting2 h1 { /** Hide page title on meeting detail pages */
    position: absolute;
    left: -999em;
}

/**
 * Layout
 */
.mmt-mdp-content {
    margin-bottom: 50px;
}

@media screen and (min-width: 900px) {
    /** Columns */
    .mmt-mdp-main,
    .mmt-mdp-sidebar {
        display: inline-block;
        box-sizing: border-box;
        vertical-align: top;
    }

    .mmt-mdp-main {
        width: calc(66.6667% - 25px);
        margin-right: 50px;
    }

    .mmt-mdp-sidebar {
        width: calc(33.3334% - 25px);
    }
}

/** Tables */
.mmt-meeting-detail-page table {
    width: 100%;
    border-collapse: collapse;
}

.mmt-meeting-detail-page a {
    text-decoration: none;
}

.mmt-meeting-detail-page caption {
    padding: 2px 0;
    text-align: left;
}

.mmt-meeting-detail-page th,
.mmt-meeting-detail-page td {
    padding: .6em 1em;
    text-align: left;
}

.mmt-meeting-detail-page th {
    font-size: .8em;
}

.mmt-meeting-detail-page thead th {
    padding: .6em 1.4em;
    background: rgba(0,0,0,0.05);
}

.mmt-meeting-detail-page td {
    vertical-align: top;
    line-height: 1.2;
    word-break: break-word;
}

.mmt-meeting-detail-page td[itemprop="price"] {
    word-break: normal;
}

/**
 * Schedule table
 */
.mmt-mdp-full-schedule {
    display: block;
    padding-top: .5em;
    text-align: right;
    font-size: .8em;
    border-top: 1px solid #ccc;
}

.mmt-mdp-full-schedule:after {
    padding-left: .5em;
    font-family: "fjell";
    content: "\27f6";
}

.mmt-mdp-schedule-table td {
    border-top: 1px solid #ccc;
}

/** Day separators */
.mmt-mdp-schedule-separator td {
    padding: .6em 1.4em;
    font-weight: bolder;
    font-size: .8em;
    border-top: 0;
    background: rgba(0,0,0,0.05);
}

/** Extra white space in first and last row */
.mmt-mdp-schedule-separator + tr td {
    padding-top: 1em;
}

.mmt-mdp-schedule-table tr.mmt-mdp-last td {
    padding-bottom: 1em;
}

/** Activity with linked documents */
.mmt-activity-has-documents a:after {
    float: right;
    font-family: "fjell";
    content: "\1f4c1";
}

/** Reset "last" elements */
.mmt-mdp-last {
    margin: 0;
    padding: 0;
    border: 0;
}

/** Downloads */
.mmt-mdp-downloads {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-mdp-downloads a[href*="format=save_to_disk"]:before {
    margin-right: .3em;
    font-family: "fjell";
    font-size: 14px;
    font-weight: normal;
    content: "\2913";
}

/**
 * cta buttons
 */

.mmt-mdp-cta:after,
.mmt-mdp-new-account .mmt-mdp-call-to-action:after {
    margin-left: .4em;
    font-family: "fjell";
    font-size: 14px;
    font-weight: normal;
    content: "\27f6";
}

.mmt-mdp-link,
.mmt-mdp-call-to-action {
    display: block;
}

.mmt-mdp-link:before,
.mmt-mdp-call-to-action:before {
    padding-right: .5em;
    font-family: "fjell";
}

.mmt-mdp-cta--registration:before {
    content: "\1f4c4";
}

.mmt-mdp-cta--home:before {
    content: "\2302";
}

/**
 * .mmt-mdp-back
 * Contains back button (if present)
 */

.mmt-mdp-back {
    width: 100%;
    padding: 5px 0;
}

.mmt-mdp-back a {
    padding: 5px 0;
    text-decoration: none;
}

.mmt-mdp-back a:before {
    margin-right: .3em;
    font-family: "fjell";
    font-size: 16px;
    font-weight: normal;
    content: "\27f5";
}

/**
 * .mmt-mdp-header
 * Header of the page. Contains a summary of the meeting and it's cover image
 */

.mmt-mdp-header {
    position: relative;
    overflow: hidden;
}

.mmt-mdp-cover-image {
    position: absolute;
    top: 0;
    width: 100%;
    display: block;
}

.mmt-mdp-headerPhoto {
    padding-top: 40%;
    background-image: url(../../../img/snippets/no-cover.jpg);
    background-position: 50%;
    background-size: cover;
    background-color: #f1f1f1;
}

/** Meetings meta data */

.mmt-mdp-meta-data span {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    margin-right: 2em;
}

.mmt-mdp-meta-data span a:hover {
    text-decoration: underline;
}

.mmt-mdp-meta-data span:before {
    position: absolute;
    left: 0;
    font-family: "fjell";
    font-size: 16px;
    font-weight: normal;
}

.mmt-mdp-date:before {
    content: "\1f4c6";
}

.mmt-mdp-meta-data .mmt-mdp-location:before { /** .mmt-mdp-meta-data because detailpage wrapper div is also called .mmt-mdp-meta-data */
    content: "\1f4cd";
}

.mmt-mdp-labels:before {
    content: "\1f516";
}

.mmt-mdp-summary {
    padding: 20px;
    background: #f1f1f1;
}

/** Cover photo enabled */
.mmt-mdp-has-cover .mmt-mdp-summary h2 {
    margin-top: .8em;
}

@media screen and (min-width: 640px) {
    .mmt-mdp-has-cover .mmt-mdp-summary {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        padding: 0 20px;
        color: #fff;
        background: rgba(0,0,0,0.5);
    }

    .mmt-mdp-has-cover .mmt-mdp-summary h2,
    .mmt-mdp-has-cover .mmt-mdp-meta-data span {
        text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0px 1px rgba(0,0,0,1);
        color: #fff;
    }

    .mmt-mdp-has-cover .mmt-mdp-summary a {
        color: #fff;
    }
}

.mmt-meeting-detail-page:not(.mmt-mdp-has-cover) .mmt-mdp-meta-data {
    margin-bottom: 0;
}

/**
 * .mmt-mdp-nav
 * Detail page navigation
 */

.mmt-mdp-nav {
    margin: 0 0 20px 0;
}

.mmt-mdp-nav ul {
    white-space: nowrap;
    overflow: auto;
    /** background, shadows and shadow covers */
    background-image:   -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, white), color-stop(100%, rgba(255, 255, 255, 0))),
    -webkit-gradient(linear, 100% 50%, 0% 50%, color-stop(0%, white), color-stop(100%, rgba(255, 255, 255, 0))),
    -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, #e4edf4), color-stop(100%, rgba(195, 195, 197, 0))),
    -webkit-gradient(linear, 100% 50%, 0% 50%, color-stop(0%, #e4edf4), color-stop(100%, rgba(195, 195, 197, 0)));
    background-image:   -webkit-linear-gradient(left, white, rgba(255, 255, 255, 0)),
    -webkit-linear-gradient(right, white, rgba(255, 255, 255, 0)),
    -webkit-linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    -webkit-linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-image:   -moz-linear-gradient(left, white, rgba(255, 255, 255, 0)),
    -moz-linear-gradient(right, white, rgba(255, 255, 255, 0)),
    -moz-linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    -moz-linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-image:   -o-linear-gradient(left, white, rgba(255, 255, 255, 0)),
    -o-linear-gradient(right, white, rgba(255, 255, 255, 0)),
    -o-linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    -o-linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-image:   linear-gradient(left, white, rgba(255, 255, 255, 0)),
    linear-gradient(right, white, rgba(255, 255, 255, 0)),
    linear-gradient(left, #e4edf4, rgba(195, 195, 197, 0)),
    linear-gradient(right, #e4edf4, rgba(195, 195, 197, 0));
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 4em 100%, 4em 100%, 1em 100%, 1em 100%;
    background-attachment: local, local, scroll, scroll; /** Opera doesn't support this in the shorthand */
}

.mmt-mdp-nav li {
    display: inline-block;
    text-align: center;
}

.mmt-mdp-nav a {
    display: block;
    padding: 0 .5em;
    border-top-width: 4px;
    border-top-style: solid;
    text-decoration: none;
}

@media screen and (min-width: 720px) {
    .mmt-mdp-nav ul {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }

    .mmt-mdp-nav li {
        -webkit-box-flex: 1 1 10%;
        -webkit-flex: 1 1 10%;
        -ms-flex: 1 1 10%;
        flex: 1 1 10%;
    }

    .mmt-mdp-nav a {
        padding: 0 .5em;
    }
}

/**
 * .mmt-mdp-sidebar
 * Layout of content inside sidebar (same sidebar on every page, hence in generic file)
 */

.mmt-mdp-sidebar {
    margin: 50px 0;
}

@media screen and (min-width: 900px) {
    .mmt-mdp-sidebar {
        margin-top: 0;
    }
}

/** Ticket prices */

/** Block: List of tickets */
.mmt-mdp-ticketsTable td {
    border-top: 1px solid #ccc;
}

.mmt-mdp-ticket-description {
    padding-top: .5em;
    border-top: 1px solid #ccc;
    font-size: .8em;
}

.mmt-mdp-title-price,
td[itemprop='price'] {
    text-align: right !important;
}

/**
 * List of Attendees
 */

.mmt-mdp-section-attendees-list span,
.mmt-mdp-section-attendees-list a {
    display: block;
}