/* =UI
-------------------------------------------------------------- */
.ui-widget-header {
  background: #129341 !important;
  border: #129341 !important;
}
.ui-widget-content .ui-state-active {
  border-color: #129341 !important;
}
.ui-state-default {
  color: black !important;
}
.ui-state-hover .ui-icon {
background-image: url("img/events-manager/ui-icons_222222_256x240.png") !important;
}
.ui-state-highlight {
  background: #59b37a !important;
  border: #59b37a !important;
  color: #fff !important;
}
.ui-state-hover {
  background: #129341 !important;
  border: #129341 !important;
  color: #fff !important;
}
.ui-datepicker-prev-hover {
  color: #fff !important;
}
.ui-datepicker-month, .ui-datepicker-year {
  color: black;
}
div.time-picker li {
  height: auto;
}
div.time-picker li.selected {
  background: none;
  color: black;
}

/* =Calendar
-------------------------------------------------------------- */
.prev-next-month {
  text-align: center;
}
.prev-next-month h1 {
  font-size: 1.7em;
  display: inline;
  padding: 0 0.5em 0.5em;
}
.prev-next-month a {
  font-size: 1em;
  display: inline;
}

.calendar {
  width: 100%; font-size: 1em;
  line-height: 1.25em;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 1em;
}
.calendar h3 {
  font-size: 1em;
}
.calendar thead {
  background-color: #129341;
  color: #fff
}
.calendar th {
  text-align: left;
}
.calendar th span {
  display: none;
}
.calendar tr {
  display: block;
}
.calendar td,
.calendar th {
  display: none;
}
.calendar .day {
  margin: 1em 0 .5em 0;
  font-weight: bold;
}
.calendar .events {
  display: block;
}
.calendar ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  clear: both;
  text-align: left;
}
.calendar li {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #dbdbdb;
}
.calendar li a {
  word-wrap: break-word
}

table.em-calendar ul li:last-child  {
  border: 0;
}
table.em-calendar td.eventful a, table.em-calendar td.eventful-today a {
  color: inherit;
}
table.em-calendar td.eventful a:hover, table.em-calendar td.eventful-today a:hover {
  color: #009854;
}

.calendar tr td:nth-of-type(1n) .day:before { content: 'Monday '; }
.calendar tr td:nth-of-type(2n) .day:before { content: 'Tueday '; }
.calendar tr td:nth-of-type(3n) .day:before { content: 'Wednesday '; }
.calendar tr td:nth-of-type(4n) .day:before { content: 'Thursday '; }
.calendar tr td:nth-of-type(5n) .day:before { content: 'Friday '; }
.calendar tr td:nth-of-type(6n) .day:before { content: 'Saturday '; }
.calendar tr td:nth-of-type(7n) .day:before { content: 'Sunday '; }

.calendar .prev-month,
.calendar .next-month {
  display: none;
}

@media only screen and (min-width: 480px) {
  .calendar tr {
    display: table-row;
  }
  .calendar th, .calendar td {
    display: table-cell !important;
    margin: 0;
    width: 14.2857%;
    padding: 0.4166em;
    border: 1px solid #babcbf;
    vertical-align: top;
  }

  .calendar .prev-month .day,
  .calendar .next-month .day {
    color: #bbb;
  }

  .calendar td .day {
    display: block;
    float: right;
    margin: 0;
    font-weight:
    normal;
  }
  .calendar td .day:before {
    display: none;
  }
}

@media only screen and (min-width: 640px) and (min-height: 320px) {
  .calendar td { height: 2.5em;}
}

@media only screen and (min-width: 640px) and (min-height: 640px) {
  .calendar td { height: 6.25em; }
}

/* =Submission Form
-------------------------------------------------------------- */
#event-owner-name,
#event-owner-email,
#event-form #event-name {
  padding: 5px;
  width: 50%;
}

.em-date-start, .em-date-end {
  width: 7em;
}

#location-name,
#location-address,
#location-town,
#location-state,
#location-postcode,
#location-region {
  width: 100%;
}

#em-location-data table.em-location-data td {
  padding-bottom: 1em;
}

#em-location-data .em-location-map-container {
  width: 49%;
  height: 306.5px;
  float: right;
}

.event-attributes input {
  width: 35%;
}

.submit input {
  background-color: #6DAB3C;
  color: #fff;
  border: 0;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 3px;
  -webkit-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}
.submit input:hover {
  background-color: #629936;
}

@media (max-width: 640px) {
  #em-location-data .em-location-map-container {
    width: 100%;
  }
  .em-location-map-container {
    width: 100% !important;
  }
  .event-location-map {
    width: 100%;
    padding-bottom: 0.5em;
  }

  #event-owner-name,
  #event-owner-email,
  #event-form #event-name,
  #location-name,
  #location-address,
  #location-town,
  #location-state,
  #location-postcode,
  #location-region,
  #em-location-data table.em-location-data {
    width: 100%;
  }

  .event-attributes input {
    width: 100%;
  }

  .submit input {
    margin-bottom: 1.3em;
  }
}

/* =Event page
-------------------------------------------------------------- */
.event-image {
  padding-bottom: 1.7em;
}
.event-page-title {
  color: #129341;
}
.event-info {
  margin-bottom: 1.2em;
}
.event-notes {
  padding-bottom: 1.5em;
}
.event-location-map .em-location-map-container {
  width: 100% !important;
}

.event-page-date,
.event-page-time,
.event-page-categorie,
.event-page-location {
  font-weight: bold;
  font-size: 1em;
}

@media (max-width: 640px) {
  .event-location-map {
    margin-bottom: 3em;
  }
}
