/**
  EventCalendar: 
  Written by (c) Petko Yotov 2021   www.pmwiki.org/Petko

  This text is written for PmWiki; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version. See pmwiki.php for full details
  and lack of warranty.
*/

#ecaldate {

}
#ecaldate:focus {
/*   border: none; */
}
#weekday {
  font-weight: bold;
}

aside.eventcal {
  box-sizing: border-box;
  border: 2px dotted var(--theme-color);
  padding: 4px 0;
  border-width: 2px 0;
}

aside.eventcal h5 {
  margin-top: 15px;
  margin-bottom: 9px;
}

.ecalmonth {
  border-collapse: separate;
/*   border-radius: 8px; */
  border-spacing: 0;
}
  

.ecalmonth tbody tr:last-child > td:first-child {
  border-radius: 0 0 0 7px;
}

.ecalmonth tbody tr:last-child > td:last-child {
  border-radius: 0 0 7px 0;
}

.ecalmonth .prevnext {
  cursor: pointer;
  color: var(--theme-color);
}





.ecalmonth thead td {
  font-size: 90%;
}


.ecalmonth th {
  background-color: #eee;
}

.ecalmonth thead th, .ecalmonth td {
  border-color: #ccc;
}

.ecalmonth thead th {
  border-style: solid;
  border-width: 1px 0 1px 0;
}


.ecalmonth td {
  width: 3em;
  text-align: center;
  border-style: solid;
  border-width: 0 0 1px 1px;
}


.ecalmonth tr > th:last-child,
.ecalmonth tr > td:last-child {
  border-right-width: 1px;
}


.ecalmonth tr > th:first-child {
  border-left-width: 1px;
}

.ecalmonth td.today {
  background-color: var(--theme-color-light);
}


.ecalmonth td.past {
  color: #888;
}

.eventcal a, .eventcal time  {
  color: var(--theme-color);
}
.ecalmonth td a {
  display: block;
}

.ecalmonth td.past a {
  color: inherit;
}

.ecalmonth {
  --active-color: var(--theme-color);
}

.ecalmonth td.past {
  --active-color: #888;
}

.ecalmonth td.single {
  background-image: linear-gradient(135deg, var(--active-color) 5px, transparent 1px);
  background-repeat: no-repeat;
}
.ecalmonth td.multiple {
  background-image: linear-gradient(135deg, var(--active-color) 4px, transparent 2px, var(--active-color) 2px, transparent 2px);
  background-repeat: no-repeat;
}

.ecalmonth td.multiple {
  background-image: linear-gradient(135deg, var(--active-color) 5px, transparent 5px 7px, var(--active-color) 8px 8px, transparent 9px);
  background-repeat: no-repeat;
}

.ecalwrap td.m1, .ecalwrap td.m2 {
  vertical-align: top;
}

.eventcal ul.days {
  padding: 0;
  list-style-type: none;
}

.eventcal ul.days > li:target {
  background-color: #ffa;
  opacity: 1;
}

ul.days .eventlocation, 
ul.days .eventdescription{
  display: block;
}

ul.days li.past {
  opacity: .7;
}

ul.days li.today h5 {
  color: red;
}

.wikieditevent #deleteevent {
  float: right;
  background-color: red;
  font-weight: bold;
  border-radius: 3em;
}

.wikieditevent .pastdate {
  display: none;
  color: #f40;
  font-style: italic;
}

.catname {
  display: inline-block;
  background-color: #ddd;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
  font-size: 90%;
}

.eventtitle {
  color: black;
  font-size: 105%;
}

.usedcategories .catname {
  cursor: pointer;
  user-select: none;
}

.usedcategories .catname.hidden {
  background-color: transparent;
  color: #888;
}

.endrepeating {
  display: none;
}

li.dayheader h5 a { font-weight: normal; font-size: 1rem; }


li.dayheader[data-categories="9999"] {
  display: none;
}

th.monthname span.prevnext {
  display: inline-block;
  width: 1.5em;
  text-align: center;
}
.wikieditevent #newcategory {
  display: none;
}
