/**
 * @package    JEM
 * @copyright  (C) 2013-2026 joomlaeventmanager.net
 * @copyright  (C) 2005-2009 Christoph Lukes
 * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
 */

.jem_calendar th,
.jem_calendar td {
    padding: 0;
    margin: 0;
}

table.month, table.week {
    background-color: #fff;
    width: 100%;
}

#jem .jem-calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.75rem 0 1rem;
}

#jem .jem-calendar-nav-title,
#jem .monthname {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

#jem .jem-calendar-nav-link,
#jem .monthnavigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
}

#jem .monthnavigation {
    text-align: center;
    vertical-align: middle;
    padding: 0.45rem 0.35rem;
}

#jem .monthname {
    padding: 0.45rem 0.35rem;
}

#jem .jem-calendar-nav-icon img,
#jem img.jem-calendar-nav-icon {
    width: 1rem;
    height: 1rem;
}

@media screen and (min-width: 801px)  {
table.month, table.week {
    border: 1px solid #000;
    }
}

table.month {
    table-layout: fixed;
}

.monthname {
    font-weight: bold;
    text-align: center;
}

.daynamesRow,
.daynamesRow td {
    background-color: #4C4C4C;
    text-align: center;
    vertical-align: middle;
}

.dayname {
    color: #FFF;
    font-weight: bold;
}

.daysRow {
    color: #433D27;
    height: 88px;
    text-align: left;
    vertical-align: top;
}

.daynum,
td.today div.daynum::before,
td.today div.daynum::after {
    background-color: #e0e0e0; /*#A2A3AE;*/
    color: #000; /*#FBFCEF;*/
    font-weight: bold;
    margin: 0px;
    text-align: left;
    vertical-align: top;
}

.daynum {
    padding: 2px;
}

.daynum a {
    color: #000; /*#FBFCEF;*/
    text-decoration: none;
    /*background-color: #e0e0e0; /*inherit !important;*/
}

.daynum a::after {
    font-size: 10px;
    padding-left: 5px;
    font-family:var(--fa-style-family,"Font Awesome 6 Free", "Font Awesome 5 Free");
    font-weight:var(--fa-style,900);
    content: "\f35d";
}


.selectedday .daynum {
    background-color: #31528E;
}

.nomonthday {
    background-color: #EEEEEE;
    height: 88px;
}

.eventcontent,
div[id^=catz],
div[id^='venuez'],
div[id^='scat'] {
    border: none;
    margin: 0;
    padding: 0;
}

.eventcontentinner {
    cursor: pointer;
    background-color: yellow;
    border-radius: .5rem;
    margin: 5px;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

.eventcontentinner .eventcontenttextbar {
    padding: 0;
}

.eventcontentinner .eventcontenttextbody {
    padding: 0 5px;
}

.eventcontentinner .eventcontenttextblock {
    padding: 5px;
}

.borderfeatured {
    border-width: 3px;
    border-style: solid;
}

div#jem .eventcontentinner a {
    color: inherit;
    /* text-decoration:none; */
}

div#jem .eventcontentinner a,
div#jem .eventcontentinner span,
div#jem .eventcontentinner .eventcontenttop,
div#jem .eventcontentinner .eventcontentbottom,
div#jem .eventcontentinner .eventtitle {
    color: inherit !important;
}

div#jem .jem-calendar-event-time,
div#jem .jem-calendar-event-title {
    display: block;
}

div#jem .jem-calendar-event-time {
    color: inherit !important;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 3px;
    opacity: .62;
    padding-top: 3px;
}

div#jem .jem-calendar-event-title {
    color: inherit !important;
    font-weight: 700;
    line-height: 1.25;
    opacity: 1;
}

/* *** CALENDAR WEEK ADDITIONS START *** */
div#jem a .eventcontenttop {
    text-decoration: none;
    color: black;
}

div#jem .eventcontenttop {
    height: 16px;
    min-height: 16px;
    text-align: left;    
    padding-top: 2px;
    top: 60px;
}

div#jem .eventcontentbottom {
    text-align: left;
    margin-bottom: -8px;
    margin-top: 5px;
    bottom: 0px;
}

div#jem .eventcontenttop.no-padding-top {
    padding: 0px 0px 5px 0px;
}

div#jem .eventtitle {
    min-height: 30px;
    margin: 2px 2px 0;
    text-align: left;
    word-wrap: break-word;
}

div#jem .rowcolor {
    height: 10px;
    text-align: right;
}

.jem-annual-calendar .jem-annual-nav {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0.75rem 0 1.25rem;
}

.jem-annual-calendar .jem-annual-nav .btn {
    align-items: center;
    border-color: #174ea6;
    color: #174ea6 !important;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    min-width: 3rem;
    opacity: 1 !important;
    text-indent: 0 !important;
}

.jem-annual-calendar .jem-annual-nav-prev::before,
.jem-annual-calendar .jem-annual-nav-next::before {
    content: none;
    display: none;
}

.jem-annual-calendar .jem-annual-nav-prev::before {
    content: none;
}

.jem-annual-calendar .jem-annual-nav-next::before {
    content: none;
}

.jem-annual-calendar .jem-annual-nav .btn:hover,
.jem-annual-calendar .jem-annual-nav .btn:focus {
    background: #174ea6;
    border-color: #174ea6;
    color: #ffffff !important;
}

.jem-annual-calendar .jem-annual-nav-text {
    color: #174ea6 !important;
    display: inline-flex !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    opacity: 1 !important;
    text-indent: 0 !important;
    visibility: visible !important;
}

.jem-annual-calendar .jem-annual-nav .btn:hover .jem-annual-nav-text,
.jem-annual-calendar .jem-annual-nav .btn:focus .jem-annual-nav-text {
    color: #ffffff !important;
}

.jem-annual-calendar .jem-annual-period {
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 12rem;
    text-align: center;
}

.jem-annual-calendar .jem-annual-period-title {
    font-size: 1.45rem;
    font-weight: 700;
}

.jem-annual-calendar .jem-annual-period-range {
    color: #5f6670;
    font-size: 0.9rem;
}

.jem-annual-calendar .jem-annual-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jem-annual-calendar .jem-annual-month {
    border: 1px solid #c8ccd2;
    border-radius: 6px;
    overflow: hidden;
}

.jem-annual-calendar .jem-annual-month-title {
    background: #f5f6f8;
    border-bottom: 1px solid #d9dce1;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 0.55rem 0.7rem;
    text-align: center;
}

.jem-annual-calendar .jem-annual-weekdays,
.jem-annual-calendar .jem-annual-days {
    display: grid;
    grid-template-columns: 2rem repeat(7, minmax(0, 1fr));
}

.jem-annual-calendar .jem-annual-weekdays span {
    background: #444444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0;
    text-align: center;
}

.jem-annual-calendar .jem-annual-week-heading {
    background: #303030 !important;
}

.jem-annual-calendar .jem-annual-day {
    align-items: flex-start;
    border-bottom: 1px solid #e4e6e8;
    border-right: 1px solid #e4e6e8;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 3.35rem;
    padding: 0.25rem;
    position: relative;
    text-decoration: none;
}

.jem-annual-calendar .jem-annual-week-number {
    align-items: center;
    background: #fafbfc;
    border-bottom: 1px solid #e4e6e8;
    border-right: 1px solid #d4d8dd;
    color: #647084;
    display: flex;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 400;
    justify-content: center;
    text-decoration: none;
}

.jem-annual-calendar .jem-annual-week-number-label {
    align-items: center;
    border: 1px solid #cbd2dc;
    border-radius: 3px;
    display: inline-flex;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.05rem 0.2rem;
}

.jem-annual-calendar .jem-annual-day.is-empty {
    background: #f6f6f6;
}

.jem-annual-calendar .jem-annual-day.has-events {
    background: #fffaf0;
}

.jem-annual-calendar .jem-annual-day.is-special-day {
    background: var(--jem-calendar-special-day-bg, #d1d5db);
    color: var(--jem-calendar-special-day-color, #111827);
}

.jem-annual-calendar .jem-annual-day:hover,
.jem-annual-calendar .jem-annual-day:focus {
    box-shadow: inset 0 0 0 2px #174ea6;
    outline: none;
}

.jem-annual-calendar .jem-annual-day-number {
    color: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.jem-annual-calendar .jem-annual-day-number::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.jem-annual-calendar .jem-annual-day.is-special-day .jem-annual-day-number {
    color: var(--jem-calendar-special-day-color, inherit) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.jem-annual-calendar .jem-annual-day-number:hover,
.jem-annual-calendar .jem-annual-day-number:focus {
    text-decoration: underline;
}

.jem-annual-calendar .jem-annual-day-popover {
    background: transparent;
    border: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0.22rem;
    top: 0.22rem;
    z-index: 2;
}

.jem-annual-calendar .jem-annual-day-count {
    align-items: center;
    background: #1f2933;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-width: 1.25rem;
    padding: 0.18rem 0.35rem;
}

.jem-annual-calendar.has-day-event-count .jem-annual-day.has-events {
    padding-right: 1.65rem;
}

.jem-annual-calendar.has-day-event-count .jem-annual-markers {
    padding-top: 0.45rem;
}

.jem-annual-calendar .jem-annual-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: auto;
    max-width: 2.35rem;
    padding-top: 0.25rem;
    pointer-events: none;
}

.jem-annual-calendar .jem-annual-marker {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    display: inline-block;
    height: 0.65rem;
    width: 0.65rem;
}

.jem-annual-calendar .jem-annual-marker-multiday {
    border-radius: 2px;
}

.jem-annual-calendar .jem-annual-marker-no-color {
    background-color: transparent !important;
    border: 2px solid #64748b;
    box-shadow: none;
}

.jem-annual-calendar .jem-annual-marker-more {
    align-items: center;
    background: #eef1f5;
    border: 1px solid #cbd2dc;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 700;
    height: 0.65rem;
    justify-content: center;
    line-height: 1;
    min-width: 0.65rem;
    padding: 0 0.18rem;
}

.jem-annual-calendar .jem-annual-agenda {
    display: grid;
    gap: 1rem;
}

.jem-annual-calendar .jem-annual-agenda-month {
    border: 1px solid #c8ccd2;
    border-radius: 6px;
    overflow: hidden;
}

.jem-annual-calendar .jem-annual-agenda-month-title {
    background: #f5f6f8;
    border-bottom: 1px solid #d9dce1;
    font-size: 1.05rem;
    margin: 0;
    padding: 0.6rem 0.8rem;
}

.jem-annual-calendar .jem-annual-agenda-days {
    display: grid;
}

.jem-annual-calendar .jem-annual-agenda-header {
    background: #fafbfc;
    border-bottom: 1px solid #e6e8eb;
    color: #4d5664;
    display: grid;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.75rem;
    grid-template-columns: 5rem 1fr;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
}

.jem-annual-calendar .jem-annual-agenda-header-columns {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 6.5rem minmax(10rem, 1fr) minmax(7rem, 0.55fr) minmax(5rem, 0.45fr) minmax(7rem, 0.65fr);
}

.jem-annual-calendar .jem-annual-agenda-day {
    border-bottom: 1px solid #e6e8eb;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 5rem 1fr;
    padding: 0.55rem 0.8rem;
}

.jem-annual-calendar .jem-annual-agenda-day.is-special-day {
    background: var(--jem-calendar-special-day-bg, #d1d5db);
}

.jem-annual-calendar .jem-annual-agenda-day:last-child {
    border-bottom: 0;
}

.jem-annual-calendar .jem-annual-agenda-date {
    align-items: baseline;
    color: #1f2933;
    display: flex;
    gap: 0.35rem;
    text-decoration: none;
}

.jem-annual-calendar .jem-annual-agenda-day-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.jem-annual-calendar .jem-annual-agenda-weekday {
    color: #687386;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.jem-annual-calendar .jem-annual-agenda-events {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jem-annual-calendar .jem-annual-agenda-event {
    align-items: baseline;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 6.5rem minmax(10rem, 1fr) minmax(7rem, 0.55fr) minmax(5rem, 0.45fr) minmax(7rem, 0.65fr);
}

.jem-annual-calendar .jem-annual-agenda-event-time {
    color: #5f6670;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
}

.jem-annual-calendar .jem-annual-agenda-event-title {
    font-weight: 700;
}

.jem-annual-calendar .jem-annual-agenda-event-venue,
.jem-annual-calendar .jem-annual-agenda-event-type,
.jem-annual-calendar .jem-annual-agenda-event-categories {
    color: #5f6670;
    font-size: 0.85rem;
}

.jem-annual-calendar .jem-annual-agenda-empty,
.jem-annual-calendar .jem-annual-agenda-empty-month {
    color: #687386;
    font-style: italic;
}

.jem-annual-calendar .jem-annual-agenda-empty-month {
    padding: 0.7rem 0.8rem;
}

.jem-annual-popover {
    pointer-events: auto;
}

.jem-annual-popover .popover-body {
    max-width: 18rem;
    text-align: left;
}

.jem-annual-popover-count {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.jem-annual-popover-events {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jem-annual-popover-events li + li {
    margin-top: 0.25rem;
}

.jem-annual-popover-events a {
    color: #174ea6;
    font-weight: 700;
    text-decoration: underline;
}

#jem .jem-annual-special-days-legend {
    margin: 1.4rem 0 1.25rem;
}

#jem .jem-annual-special-days-heading {
    color: #1d2733;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.45rem;
}

#jem .jem-annual-special-days-table-wrap {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

#jem .jem-annual-special-days-table {
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 44rem;
    width: 100%;
}

#jem .jem-annual-special-days-table th,
#jem .jem-annual-special-days-table td {
    border: 1px solid #d7dce2;
    padding: 0.45rem 0.55rem;
    text-align: left;
    vertical-align: middle;
}

#jem .jem-annual-special-days-table th {
    background: #f5f6f8;
    color: #3e4856;
    font-weight: 700;
}

#jem .jem-annual-special-days-color {
    text-align: center;
    width: 4.5rem;
}

#jem .jem-annual-special-days-table th:first-child {
    text-align: center;
}

#jem .jem-annual-special-days-swatch {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid #8f9aa8;
    border-radius: 0.25rem;
    vertical-align: middle;
}

#jem .jem-annual-special-days-label {
    color: #1d2733;
    font-weight: 700;
    white-space: nowrap;
    width: 12rem;
}

#jem .jem-annual-special-days-type {
    color: #1d2733;
    font-weight: 700;
    white-space: nowrap;
    width: 10rem;
}

#jem .jem-annual-special-days-description {
    color: #5f6670;
    line-height: 1.35;
    width: 100%;
}

@media (max-width: 75rem) {
    .jem-annual-calendar .jem-annual-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 56rem) {
    .jem-annual-calendar .jem-annual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 38rem) {
    .jem-annual-calendar .jem-annual-grid {
        grid-template-columns: 1fr;
    }

    .jem-annual-calendar .jem-annual-nav {
        justify-content: space-between;
    }

    .jem-annual-calendar .jem-annual-agenda-day {
        grid-template-columns: 1fr;
    }

    .jem-annual-calendar .jem-annual-agenda-header {
        display: none;
    }

    .jem-annual-calendar .jem-annual-agenda-event {
        grid-template-columns: 5.8rem minmax(0, 1fr);
    }

    .jem-annual-calendar .jem-annual-agenda-event-venue,
    .jem-annual-calendar .jem-annual-agenda-event-type,
    .jem-annual-calendar .jem-annual-agenda-event-categories {
        grid-column: 2;
    }
}

/* *** CALENDAR WEEK ADDITIONS END *** */

.eventandmore {
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
}

.eventandmore a::after {
    font-family: FontAwesome;
    content: "\f08e";
    margin-left: 5px;
}

/* for the tooltip */
.custom-tip {
    color: #000;
    width: 200px;
    z-index: 13000;
    border: 1px solid lightgrey;
}

.custom-title {
    font-weight: bold;
    font-size: 11px;
    margin: 10px;
    color: white;
    padding: 2px 5px 1px;
    background: #7598FF;
    text-align: left;
}

.custom-text {
    font-size: 11px;
    padding: 2px 2px 2px;
    background: white;
}

.custom-tip .eventName {
    text-align: left;
    background: lightgrey;
    margin: 5px 0px 5px;
}

.custom-tip .location {
    text-align: left;
}

.custom-tip .location .legend {
    font-weight: bold;
}


.colorpicblock {
    width: 6%;
    padding: 0 4px;
    margin: 0 2px;
}

.colorpicbartext {
    display: inline-block;
    align-items: center;
    justify-content: center;
    padding: 10px 14px 0;
}

.colorpicbar {
    display: block;
    width: 100%;
    height: 8px;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.colorpicbartext {
    padding: 10px 14px 0;
    display: inline-block;
    align-items: center;
    justify-content: center;
}

.colorpicbarbottom {
    display: block;
    width: 100%;
    height: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.colorpicbarbottom-leyend {
    display: block;
    width: 100%;
    height: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.colorpicblocktext {
    padding-left: 5px;
}
#jlcalendarlegend {
    clear: both;
    margin-top: 4px;
}

#jlcalendarlegend .calendarButtons, #jlcalendarlegend .calendarLegends {
    padding: 5px 0;
}

#jlcalendarlegend .legend-label {
    font-weight: 700;
}

#jlcalendarlegend #buttonshowall,
#jlcalendarlegend #buttonhideall {
    font-weight: 700;
    border-width: 2px;
    margin-right: 10px;
}

#jlcalendarlegend #buttonshowall.jem-calendar-global-active,
#jlcalendarlegend #buttonhideall.jem-calendar-global-active {
    background-color: #1f2933;
    border-color: #1f2933;
    color: #ffffff;
}

#jlcalendarlegend .eventCat {
    cursor: pointer;
    padding: 0px;
    border: 1px solid black;
    overflow: hidden;
    position: relative;
    margin-right: 5px;
    margin-bottom: 5px;
    line-height: 40px;
    font-weight: 400;
}

#jlcalendarlegend .eventCat.jem-calendar-legend-full {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1.2;
    min-height: 50px;
    padding: 0.55rem 0.95rem;
}

#jlcalendarlegend .eventCat.jem-calendar-legend-full .colorpicblocktext {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0;
}

#jlcalendarlegend .eventCat.jem-calendar-legend-full .jem-calendar-legend-name {
    font-weight: 700;
}

#jlcalendarlegend .eventCat.jem-calendar-legend-full .jem-calendar-legend-count {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1;
    opacity: 0.82;
    padding: 0.2rem 0.45rem;
}

#jlcalendarlegend .eventVenues {
    cursor: pointer;
    padding: 0px;
    padding-bottom: 5px;
    overflow: hidden;
    position: relative;
    bottom: 0;
    left: 0;
    border: 1px solid darkslategrey;
    margin-right: 5px;
    margin-bottom: 5px;
    line-height: 40px;
    font-weight: 400;
}

#jlcalendarlegend .legendb {
    display: inline-block;
    background-color: green;
    line-height: 10px;
    margin-right: 4px;
}

#jlcalendarlegend .eventVenues .colorpicbartext {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0 14px 10px;
}

#jlcalendarlegend .eventVenues .colorpicblocktext {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

#jlcalendarlegend .eventVenues .jem-calendar-legend-count {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1;
    opacity: 0.82;
    padding: 0.2rem 0.45rem;
}

#jlcalendarlegend .eventCat.catoff,
#jlcalendarlegend .eventVenues.catoff {
    color: lightgrey;
    font-style: italic;
    opacity: 0.55;
}

div#jem td {
    border: 1px solid #cacaca;
}

/* *** CALENDAR WEEK ADDITIONS START *** */

/* set week column to a minimal width */
#jem table.week .weeknumtitle,
#jem table.week .weeknum {
    padding-left: 4px;
    padding-right: 4px;
    width: 1%;
}

.weeknumtitle {
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #FFF; /* calendarweek: #667171 */
    border-style: none;
    border-width: 1px;
    padding: 2px 3px;
}

.weeknum {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 3px;
    color: #CD5C5C;
    background-color: #FAEBD7;
}

.week {
    border-style: none;
    background-color: #EEDFCC;
    text-align: center;
}

.monthweek {
    text-align: left;
    padding: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #667171;
    border-width: 1px;
}

.monthday {
    text-align: center;
    vertical-align: top;
    font-size: 11px;
    font-weight: bold;
    background-color: #FFF;
    color: #000;
    height: 90px;
    width: 90px;
}

div#jem .monthnavigation { /* delete complete construct */
    font-weight: bold;
    border: 0px;
    vertical-align: middle;
}

div#jem .monthnavigation a {text-decoration: none;}

div#jem .monthname { /*delete complete construct */
    border: 0px;
    vertical-align: middle;
}

.saturday, .sunday {
    background-color: #fcfcfc; /* background-color:#D4D4D4; */
    color: #667171;
}

.sunday a, .saturday a {
    color: #000;
}

.today {
    background-color: #fefff2;
    color: #000;
}

.today .daynum a {
    color: #FFF;
    /* calendarweek: vertical-align: top; */
}

.selectedday {
    border-width: 1px;
    border-style: outset;
    background-color: #FFF;
}

/* *** CALENDAR WEEK ADDITIONS END *** */


@media not print {
    @media only all and (max-width: 30rem) and (orientation: portrait), screen and (max-device-width: 30rem) and (orientation: portrait) {
        /* Force table to not be like tables anymore */
        div#jem table, div#jem thead, div#jem tbody, div#jem th, div#jem td, div#jem tr {
            display: inline;
        }

        /* Nobody needs the Row with the daynames anymore */
        div#jem tr.daynamesRow {
            display: none;
        }

        /* Save place for the important information */
        div#jem td.nomonthday {
            display: none;
        }

        div#jem .daynum {
            margin-top: 5px;
        }

        div#jem .eventcontentinner, .eventandmore {
            width: 90%;
            margin-left: auto;
            margin-right: auto;
        }

        /* Otherwhise there are some little borders */
        div#jem td {
            border: none;;
        }

        div#jem .daynum a::after {
            padding-left: 0px;
            content: "";
        }

        div#jem .newMonthRow, div#jem .weeknum {
            display: none;
        }

        div#jem td.monthday div.daynum::after {
            content: ". " attr(jem-monthname);
        }

        div#jem .today .daynum a {
            color: #000
        }

        div#jem td.today div.daynum::after {
            /*color: #FFF;*/
            background-color: transparent;
        }

        div#jem td.monthday div.daynum::before {
            margin-left: 5px;
            content: attr(jem-dayname) ", ";
            background-color: transparent;
        }
    }
}
