
.acme-events-list .h2 {
    color: #006341;
    font-size: 1.1em;
}

/**** FORM ****/

.acme-events-list form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin-bottom: 10px;
}

.acme-events-list form .field-container {
    display: inline-flex;
    flex-direction: column;
    text-transform: uppercase;
    font-size: 0.8em;
    margin: 20px;
    margin-top: 0;
}

.acme-events-list form .field-container.field-container-end {
    flex-grow: 2;
    align-items: end;
}

.acme-events-list form .view-container {
    display: flex;
    align-items: center;
    text-transform: capitalize;
}

.acme-events-list form label {
    margin: 0px;
    color: #212721;
}

.acme-events-list a.btn,
.acme-events-list form button {
    border: 1px solid #e1e1e1;
    border-radius: 5px;
	background-color: white;
    color: #212721;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: none;
    text-decoration: none;
}
.acme-events-list a.btn:hover,
.acme-events-list a.btn:focus,
.acme-events-list form button:hover,
.acme-events-list form button:focus {
    background-color: #eeeeee;    
    outline: 0;
}

.acme-events-list form .btn-icon {
    height: 42px;
    width: 42px;
    padding: 3px;
    margin-left: 5px;
}

.acme-events-list form .btn-icon .material-icons {
    font-size: 2.4em;
}

.acme-events-list form .btn-icon.active { 
    background-color: #eeeeee;
}

.acme-events-list form select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-size: 1.2em;
	padding: 12px;
    padding-left: 17px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
	background-color: white;
    color: #666666;
    background-image:
        linear-gradient(45deg, transparent 50%, black 50%),
        linear-gradient(135deg, black 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position:
        calc(100% - 20px) calc(20px - 0px),
        calc(100% - 15px) calc(20px - 0px),
        calc(100% - 2.5em) 0.5em;
    background-size:
        6px 5px,
        6px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
}

.acme-events-list.no-filter form {
    display: block;
    text-align: right;
}

.acme-events-list.no-filter hr {
    display: none;
}


/**** EVENTS LIST ****/

.acme-events-list .events-item-wrapper,
.acme-events-list .events-card-wrapper {
    display: flex;
    flex-wrap: wrap;
}  

.acme-events-list .events-wrapper .event-item {
    display: flex;
    position: relative;
    border: 1px solid #e1e1e1;
    width: 100%;
    margin: 10px;
    height: 80px;
    box-shadow: 1px 2px 2px 0px #f1f1f1;
    text-decoration: none;
}  
.acme-events-list .events-wrapper .event-item:after {
    content: "\f345";    
    font-family: "dashicons";
    font-size: 1.5em;
    color: #a1a1a1;
    position: absolute;
    top: 30px;
    right: 30px;
}  
.acme-events-list .events-wrapper .event-item:hover {
    background-color: #f6f6f6;
}

.acme-events-list .event-item .event-date {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.7em;
    font-weight: bold;
    text-transform: uppercase;
    width: 80px;
    color: white;
    background-color: #006341;    
}  

.acme-events-list .event-item .event-month {
    padding-top: 10px;
    padding-bottom: 5px;
}  

.acme-events-list .event-item .event-day {
    background-color: white;    
    color: #006341;    
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 5px;
} 

.acme-events-list .event-item .event-date.type-2 .event-day {
    font-size: 0.75em;
} 

.acme-events-list .event-item .event-date.type-3 .event-month {
    padding-top: 14px;
    font-size: 0.75em;
} 

.acme-events-list .event-item .event-body {
    padding: 15px;
    max-width: 260px;
}

.acme-events-list .event-body h3 { 
    color: #006341;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

.acme-events-list .event-item .event-body p { 
    color: #212721;
}

/**** EVENTS CARDS ****/

.acme-events-list .events-wrapper .event-card { 
        border: 3px solid #f6f6f6;
        margin: 15px;
        width: 100%;
        margin-bottom: 20px;
        text-decoration: none;
}
.acme-events-list .events-wrapper .event-card:hover { 
    border: 3px solid #e9e9e9;
}

.acme-events-list .events-wrapper .event-card .event-img {
    height: 180px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #e1e1e1;
    background-position: center;
}

.acme-events-list .events-wrapper .event-card .event-cat {
    display: inline-flex;
    align-items: center;
    background-color: #006341;
    color: white;
    font-size: 0.9em;
    margin-top: 5px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.acme-events-list .event-card .event-body { 
    padding: 20px;
}
    
.acme-events-list .event-card .event-body h3 { 
    font-size: 1.3em;
    margin: 0;
}

.acme-events-list .event-card .event-body .event-location { 
    color: #006341;
    margin-bottom: 10px;
}

.acme-events-list .event-card .event-body .event-date,
.acme-events-list .event-card .event-body .event-time { 
    font-weight: bold;
    color: #525252;
    margin: 0;
}

/**** EVENTS CALENDAR ****/

.events-calendar-wrapper {
    margin-bottom: 30px;
}

/* .events-calendar-wrapper .table-wrapper { */
    /* overflow-x: auto; */
/* } */

.events-calendar-wrapper table {
    width: 100%;
    /* border-collapse: collapse; */
    border-spacing: 0;
    table-layout: fixed;
}

.events-calendar-wrapper table th {
    padding: 10px;
}

.events-calendar-wrapper table tbody td {
    background-color: #f6f6f6;
    height: 120px;
    width: 200px;
    border: 5px solid white;
    cursor: pointer;
}

.events-calendar-wrapper table tbody td.date-0 {
    background-color: #fafafa;
}

.events-calendar-wrapper table tbody td.date-0 .tb-day-number {
    display: none;
}

.events-calendar-wrapper table tbody td > div {
    display: flex;
    padding: 7px;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.events-calendar-wrapper table tbody td .tb-day-number {
    text-align: right;
    font-weight: bold;
    margin: 0;
}

.events-calendar-wrapper table tbody td .tb-more-events,
.events-calendar-wrapper table tbody td .tb-event {
    display: inline-block;
    background-color: #006341;
    color: white;
    font-size: 0.9em;
    border-radius: 15px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    width: 100%;
    margin-top: 2px;
    text-decoration: none;
}
.events-calendar-wrapper table tbody td .tb-event:focus,
.events-calendar-wrapper table tbody td .tb-event:hover {
    background-color: #2f8267; 
}


.events-calendar-wrapper table tbody td .tb-more-events {
   background-color: #2f8267; 
   width: 70%;
}

.events-calendar-wrapper table tbody td .tb-event-time {
    font-weight: bold;
    margin-right: 5px;
    float: left;
}

.events-calendar-wrapper table tbody td .tb-event-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-calendar-wrapper .caption {
    background-color: #2f8267;
    color: white;
    text-align: center;
    padding: 5px;
    user-select: none;
}

.events-calendar-wrapper .caption h2 {
    display: inline-block;
    margin: 0;
    color: white;
    margin-left: 15px;
    margin-right: 15px;
    vertical-align: baseline;
    padding-bottom: 3px;
}

.events-calendar-wrapper .caption a {
    color: white;
}

.events-calendar-wrapper .caption a .material-icons {
    font-size: 2.4em;
    vertical-align: bottom;
}

.day-view {
    width: 865px;
    padding-right: 20px;
    padding-left: 20px;
}

.day-view .day-view-body {
    overflow: auto;
    max-height: calc(100vh - 300px);
    /* padding: 30px; */
    padding-left: 40px;
    padding-top: 16px;
}

.day-view .day-view-heading {
    /* height: 40px; */
    /* padding-left: 30px; */
}

.day-view .day-view-heading h2 {
    margin: 0;
    margin-bottom: 20px;
}

.day-view .day-view-heading .time-container {
    border-bottom: 2px solid lightgrey;
    border-top: 2px solid lightgrey;
    padding-top: 10px;
    /* padding-bottom: 5px; */
    margin-left: 55px;
    height: auto;
    min-height: 50px;
}

.day-view .day-view-heading .time-container .time-title { 
    left: -55px;
    top: calc(50% - 10px);
}

/* .day-view-body > div { */
.day-view .time-container {
    position: relative;
    /* width: 750px; */
    /* width: 100%;  */
    width: auto;
    height: 80px;
    /* padding: 20px; */
    margin-left: 30px;
    border-top: 1px solid lightgrey;
}

.day-view .time-container .time-title {
/* .day-view-body > div .time-title { */
    position: absolute;
    left: -45px;
    top: -10px;
    font-weight: bold;
}

.day-view .time-container .time-body {
/* .day-view-body > div .time-body { */
    position: relative;
    display: block;
}

.day-view .all-day.time-container .time-body {
    display: flex;
}

.day-view .time-body a {
/* .day-view-body > div .time-body a { */
    position: relative;
    float: left;
    /* display: inline-block; */
    border-radius: 20px;
    color: white;
    background: rgba(0, 99, 65);
    height: 79px;
    width: 170px;
    padding-top: 7px;
    padding-left: 15px;
    padding-right: 15px;
    z-index: 2;
    margin-left: 10px;
    text-decoration: none;
    font-size: 0.9em;
    outline: 0;
}

.day-view .day-view-heading .time-body a {
    float: none;
    display: inline-block;
    width: 90%;
    margin-bottom: 10px;
}

.day-view .time-body a .tb-event-title {
    font-weight: bold;
}

/* .day-view .time-body a .tb-event-location {
    
} */

/* .calendar-day-view .tb-event-time {
    display: none;
} */


/**** EVENTS FOOTER ****/

.acme-events-list .events-footer {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 30px;
}


/****** Larger screens ******/

@media (min-width: 768px) { 

    .acme-events-list .events-card-wrapper {
        justify-content: start;
    }
    
    .acme-events-list .events-wrapper .event-card { 
        width: 47%;
        margin-right: 10px;
        margin-left: 10px;
    }
}


/****** Wide screens ******/

@media (min-width: 992px) { 

    .acme-events-list form { 
        flex-direction: row;
        align-items: end;
    }

    .acme-events-list form select { 
        min-width: 180px;
    }
    
    .acme-events-list form .field-container {
        justify-content: flex-end;
        height: 60px;
        margin: 0;
        margin-right: 20px;
    }

    .acme-events-list .events-item-wrapper {
        justify-content: space-between;
    }
    
    .acme-events-list .events-wrapper .event-item {
        margin: 0;
        margin-bottom: 20px;
        width: 49%;
    }

    /* Contained templates */
    .acme-events-list.no-wide .events-wrapper .event-item {
        width: 99%;
    }

    .acme-events-list .events-wrapper .event-card { 
        width: 31%;
    }

    /* Contained templates */
    .acme-events-list.no-wide .events-wrapper .event-card { 
        width: 46%;
    }    
}