div,
div:before,
div:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.motce_calendar_container.motce_calendar_kiosk .motce_view_mode_toggle,
.motce_calendar_container.motce_calendar_kiosk .motce_today_btn,
.motce_calendar_container.motce_calendar_kiosk .motce_calendar_header_left_arrow,
.motce_calendar_container.motce_calendar_kiosk .motce_calendar_header_right_arrow {
  display: none !important;
}

.motce_calendar_container.motce_calendar_kiosk .motce_calendar_day {
  cursor: default;
}

.motce_calendar_container {
  overflow: hidden;
  font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #616161;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#motce_calendar,
.motce_calendar_embed_root {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  width: 100%;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
}

.motce_calendar_header {
  min-height: 50px;
  width: 100%;
  background: #fff;
  text-align: center;
  position: relative;
  z-index: 100;
  padding: 10px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.motce_calendar_header h1 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 100;
  letter-spacing: 1px;
  color: #000;
}

.motce_calendar_header_left_arrow,
.motce_calendar_header_right_arrow {
  position: absolute;
  width: 0px;
  height: 0px;
  border-style: solid;
  top: 20px;
  cursor: pointer;
}

.motce_calendar_header_left_arrow {
  border-width: 7.5px 10px 7.5px 0;
  border-color: transparent rgba(160, 159, 160, 1) transparent transparent;
  left: 20px;
}

.motce_calendar_header_right_arrow {
  border-width: 7.5px 0 7.5px 10px;
  border-color: transparent transparent transparent rgba(160, 159, 160, 1);
  right: 20px;
}

.motce_calendar_month {
  /*overflow: hidden;*/
  opacity: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.motce_calendar_month.new {
  -webkit-animation: fadeIn 1s ease-out;
  animation: fadeIn 1s ease-out;
  opacity: 1;
}

.motce_calendar_month.in.next {
  -webkit-animation: moveFromTopFadeMonth .4s ease-out;
  -moz-animation: moveFromTopFadeMonth .4s ease-out;
  animation: moveFromTopFadeMonth .4s ease-out;
  opacity: 1;
}

.motce_calendar_month.out.next {
  -webkit-animation: moveToTopFadeMonth .4s ease-in;
  -moz-animation: moveToTopFadeMonth .4s ease-in;
  animation: moveToTopFadeMonth .4s ease-in;
  opacity: 1;
}

.motce_calendar_month.in.prev {
  -webkit-animation: moveFromBottomFadeMonth .4s ease-out;
  -moz-animation: moveFromBottomFadeMonth .4s ease-out;
  animation: moveFromBottomFadeMonth .4s ease-out;
  opacity: 1;
}

.motce_calendar_month.out.prev {
  -webkit-animation: moveToBottomFadeMonth .4s ease-in;
  -moz-animation: moveToBottomFadeMonth .4s ease-in;
  animation: moveToBottomFadeMonth .4s ease-in;
  opacity: 1;
}

.motce_calendar_week {
  background: #fff;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
}

.motce_calendar_day {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  height: auto;
  padding: 6px;
  border: 1px solid #eee;
  text-align: left;
  cursor: pointer;
  background: #fff;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.motce_calendar_day.other {
  color: #ccc;
  background: #fafafa;
}

.motce_calendar_day.today {
  border-top: 3px solid #0078D4;
  background: #f5fafd;
}

.motce_calendar_day.active{
  background-color: #CFE4FA;
}

/* Day header with day name and number on top-left */
.motce_calendar_day-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.motce_calendar_day-name {
  font-size: 9px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: .5px;
  font-weight: 500;
}

.motce_calendar_day-number {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0;
}

.motce_calendar_day.today .motce_calendar_day-number {
  background: #0078D4;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.motce_calendar_day.other .motce_calendar_day-number,
.motce_calendar_day.other .motce_calendar_day-name {
  color: #bbb;
}

/* Events container in month view */
.motce_calendar_day .motce_calendar_day-events {
  list-style: none;
  text-align: left;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  min-height: auto;
}

/* Individual event in month view */
.motce_month_event {
  display: block;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  cursor: pointer;
  overflow: visible;
  transition: all 0.15s ease;
  color: #fff;
  width: 100%;
}

/* Time + title on one line where possible; wrap only when the cell is narrow */
.motce_month_event_line {
  font-size: 10px;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
}

.motce_month_event_sep {
  opacity: 0.75;
  font-weight: 400;
}

.motce_month_event:hover {
  transform: translateX(2px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.motce_month_event_time {
  font-size: 9px;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.motce_month_event_title {
  font-weight: 600;
  font-size: 10px;
  line-height: 1.3;
}

.motce_month_event_more {
  font-size: 10px;
  color: #0078D4;
  font-weight: 600;
  padding: 2px 5px;
  cursor: pointer;
  background: #e8f4fc;
  border-radius: 3px;
  text-align: center;
}

.motce_month_event_more:hover {
  background: #0078D4;
  color: #fff;
}

.motce_presetdefault {
  background: rgba(156, 202, 235, 1);
}

.motce_preset0 {
  background: #E74856;
}

.motce_preset1 {
  background: #FF8C00;
}

.motce_preset2 {
  background: #FFAB45;
}

.motce_preset3 {
  background: #FFF100;
}

.motce_preset4 {
  background: #47D041;
}

.motce_preset5 {
  background: #30C6CC;
}

.motce_preset6 {
  background: #73AA24;
}

.motce_preset7 {
  background: #00BCF2;
}

.motce_preset8 {
  background: #8764B8;
}

.motce_preset9 {
  background: #F495BF;
}

.motce_preset10 {
  background: #A0AEB2;
}

.motce_preset11 {
  background: #004B60;
}

.motce_preset12 {
  background: #B1ADAB;
}

.motce_preset13 {
  background: #5D5A58;
}

.motce_preset14 {
  background: #000000;
}

.motce_preset15 {
  background: #750B1C;
}

.motce_preset16 {
  background: #CA5010;
}

.motce_preset17 {
  background: #AB620D;
}

.motce_preset18 {
  background: #C19C00;
}

.motce_preset19 {
  background: #004B1C;
}

.motce_preset20 {
  background: #004B50;
}

.motce_preset21 {
  background: #0B6A0B;
}

.motce_preset22 {
  background: #002050;
}

.motce_preset23 {
  background: #32145A;
}

.motce_preset24 {
  background: #5C005C;
}

.motce_details {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  min-height: 75px;
  height: auto;
  max-height: 240px;
  background: #eee;
  margin: 0;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
}

.motce_details.in {
  -webkit-animation: moveFromTopFade .5s ease both;
  -moz-animation: moveFromTopFade .5s ease both;
  animation: moveFromTopFade .5s ease both;
}

.motce_details.out {
  -webkit-animation: moveToTopFade .5s ease both;
  -moz-animation: moveToTopFade .5s ease both;
  animation: moveToTopFade .5s ease both;
}

.motce_arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -2px;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 5px 5px 5px;
  border-color: transparent transparent #eee transparent;
  transition: all 0.7s ease;
}

.motce_events {
  min-height: 60px;
  max-height: 200px;
  height: auto;
  padding: 7px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.motce_events.in {
  -webkit-animation: fadeIn .3s ease both;
  -moz-animation: fadeIn .3s ease both;
  animation: fadeIn .3s ease both;
}

.motce_events.in {
  -webkit-animation-delay: .3s;
  -moz-animation-delay: .3s;
  animation-delay: .3s;
}

.motce_details.out .motce_events {
  -webkit-animation: fadeOutShrink .4s ease both;
  -moz-animation: fadeOutShink .4s ease both;
  animation: fadeOutShink .4s ease both;
}

.motce_events.out {
  -webkit-animation: fadeOut .3s ease both;
  -moz-animation: fadeOut .3s ease both;
  animation: fadeOut .3s ease both;
}

.motce_event {
  display: flex;
  gap:5px;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: .5px;
  padding: 2px 16px;
  vertical-align: top;
}

.motce_event.empty {
  color: #000;
}

.motce_event-category {
  height: 10px;
  width: 10px;
  display: inline-block;
  margin: 6px 0 0;
  vertical-align: top;
}

.motce_event-link {
  display: inline-block;
  padding: 0 0 0 7px;
  text-decoration: none;
}

.motce_event_duration {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: black;
  background: #f9f9f9;
  padding: 0px 8px;
  border-radius: 4px;
  border: 2px solid #ddd;
}

.motce_seperator{
  padding-bottom:3px;
  margin: 0px;
}

.motce_event-endDate, .motce_event-startDate, .motce_event_time-prefix{
  margin: 0px;
}

.motce_event span {
  display: inline-block;
  padding: 0 0 0 7px;
}

/* Event description styling */
.motce_event_description {
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-left: 3px solid #0078D4;
  border-radius: 4px;
  margin: 1px 5px 8px 5px;
}

.motce_description_text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #495057;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.motce_legend {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  min-height: 30px;
  padding: 6px 8px 8px;
  box-sizing: border-box;
  background: #0078D4;
  color: #fff;
  line-height: 1.4;
  margin-top: 8px;
  border-radius: 0 0 4px 4px;
  z-index: 2;
}

.motce_entry {
  position: relative;
  padding: 0 0 0 25px;
  margin-right: 12px;
  font-size: 13px;
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
  background: transparent;
}

.motce_entry:after {
  position: absolute;
  content: '';
  height: 5px;
  width: 5px;
  top: 12px;
  left: 14px;
}

.motce_entry.motce_presetdefault:after {
  background: rgba(156, 202, 235, 1);
}

.motce_entry.motce_preset0:after {
  background: #E74856;
}

.motce_entry.motce_preset1:after {
  background: #FF8C00;
}

.motce_entry.motce_preset2:after {
  background: #FFAB45;
}

.motce_entry.motce_preset3:after {
  background: #FFF100;
}

.motce_entry.motce_preset4:after {
  background: #47D041;
}

.motce_entry.motce_preset5:after {
  background: #30C6CC;
}

.motce_entry.motce_preset6:after {
  background: #73AA24;
}

.motce_entry.motce_preset7:after {
  background: #00BCF2;
}

.motce_entry.motce_preset8:after {
  background: #8764B8;
}

.motce_entry.motce_preset9:after {
  background: #F495BF;
}

.motce_entry.motce_preset10:after {
  background: #A0AEB2;
}

.motce_entry.motce_preset11:after {
  background: #004B60;
}

.motce_entry.motce_preset12:after {
  background: #B1ADAB;
}

.motce_entry.motce_preset13:after {
  background: #5D5A58;
}

.motce_entry.motce_preset14:after {
  background: #000000;
}

.motce_entry.motce_preset15:after {
  background: #750B1C;
}

.motce_entry.motce_preset16:after {
  background: #CA5010;
}

.motce_entry.motce_preset17:after {
  background: #AB620D;
}

.motce_entry.motce_preset18:after {
  background: #C19C00;
}

.motce_entry.motce_preset19:after {
  background: #004B1C;
}

.motce_entry.motce_preset20:after {
  background: #004B50;
}

.motce_entry.motce_preset21:after {
  background: #0B6A0B;
}

.motce_entry.motce_preset22:after {
  background: #002050;
}

.motce_entry.motce_preset23:after {
  background: #32145A;
}

.motce_entry.motce_preset24:after {
  background: #5C005C;
}

@-webkit-keyframes moveFromTopFade {
  from {
    opacity: .3;
    height: 0px;
    margin-top: 0px;
    -webkit-transform: translateY(-100%);
  }
}

@-moz-keyframes moveFromTopFade {
  from {
    height: 0px;
    margin-top: 0px;
    -moz-transform: translateY(-100%);
  }
}

@keyframes moveFromTopFade {
  from {
    height: 0px;
    margin-top: 0px;
    transform: translateY(-100%);
  }
}

@-webkit-keyframes moveToTopFade {
  to {
    opacity: .3;
    height: 0px;
    margin-top: 0px;
    opacity: 0.3;
    -webkit-transform: translateY(-100%);
  }
}

@-moz-keyframes moveToTopFade {
  to {
    height: 0px;
    -moz-transform: translateY(-100%);
  }
}

@keyframes moveToTopFade {
  to {
    height: 0px;
    transform: translateY(-100%);
  }
}

@-webkit-keyframes moveToTopFadeMonth {
  to {
    opacity: 0;
    -webkit-transform: translateY(-30%) scale(.95);
  }
}

@-moz-keyframes moveToTopFadeMonth {
  to {
    opacity: 0;
    -moz-transform: translateY(-30%);
  }
}

@keyframes moveToTopFadeMonth {
  to {
    opacity: 0;
    -moz-transform: translateY(-30%);
  }
}

@-webkit-keyframes moveFromTopFadeMonth {
  from {
    opacity: 0;
    -webkit-transform: translateY(30%) scale(.95);
  }
}

@-moz-keyframes moveFromTopFadeMonth {
  from {
    opacity: 0;
    -moz-transform: translateY(30%);
  }
}

@keyframes moveFromTopFadeMonth {
  from {
    opacity: 0;
    -moz-transform: translateY(30%);
  }
}

@-webkit-keyframes moveToBottomFadeMonth {
  to {
    opacity: 0;
    -webkit-transform: translateY(30%) scale(.95);
  }
}

@-moz-keyframes moveToBottomFadeMonth {
  to {
    opacity: 0;
    -webkit-transform: translateY(30%);
  }
}

@keyframes moveToBottomFadeMonth {
  to {
    opacity: 0;
    -webkit-transform: translateY(30%);
  }
}

@-webkit-keyframes moveFromBottomFadeMonth {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30%) scale(.95);
  }
}

@-moz-keyframes moveFromBottomFadeMonth {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30%);
  }
}

@keyframes moveFromBottomFadeMonth {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30%);
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@-moz-keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@-webkit-keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@-moz-keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@-webkit-keyframes fadeOutShink {
  to {
    opacity: 0;
    padding: 0px;
    height: 0px;
  }
}

@-moz-keyframes fadeOutShink {
  to {
    opacity: 0;
    padding: 0px;
    height: 0px;
  }
}

@keyframes fadeOutShink {
  to {
    opacity: 0;
    padding: 0px;
    height: 0px;
  }
}

/* Container for the user email and calendar type selection */
#motce_group_calendar_adv {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  width: 100%;
  max-width: 1500px;
  margin: 20px auto;
}

/* Styling for the user email section */
.user_email {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.user_email span {
  font-weight: bold;
  color: #333;
}

.user_email input {
  margin-left: -11%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #e9ecef;
  color: #555;
}

.email_label_input{
  width: 30%;
}

.email_label {
  padding: 2px 22px;
  font-size: 17px;
  font-family: inherit;
  width:30%
}

/* Dropdown menu css */
.dropdown-container {
  position: relative;
  width: 195px;}

.dropdown-toggle {
  color: #000000;
  background-color: #ffffff;
  font-size: 16px;
  padding: 18px 20px;
  box-shadow: 0px 0px 4px -2px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  transition: all ease-in-out 0.3s;
}

.dropdown-toggle:hover,
.dropdown-toggle:active,
.dropdown-toggle:focus {
   background-color: #0979ce;
   color: #ffffff;
}

.dropdown-menu {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 0px 4px -2px rgba(0, 0, 0, 0.5);
  margin-top: 17px;
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  background-color: #ffffff;
  z-index: 10;
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  z-index: 10;
}

.dropdown-menu a {
  text-decoration: none;
  display: block;
  color: #000000;
  font-size: 15px;
  padding: 16px 20px;
  font-weight: 600;
  box-shadow: 0px 0px 4px -2px rgba(0, 0, 0, 0.5);
  transition: all ease-in-out 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a:active,
.dropdown-menu a:focus {
   background-color: #0979ce;
   color: #ffffff;
}

.dropdown-menu,
.dropdown-toggle {
  position: relative;
}

.dropdown-menu::before,
.dropdown-toggle::before {
   content: "";
   position: absolute;
   right: 20px;
   top: 50%;
   transform: translateY(-50%) rotate(45deg);
   border: 5px solid;
   border-top-color: rgba(0, 0, 0, 0);
   border-left-color: rgba(0, 0, 0, 0);
   margin-top: -2.5px;
   background-color: rgba(0, 0, 0, 0);
   transition: all ease-in-out 0.2s;
}

.dropdown-menu {
  z-index: 10;
  position: relative;
}

.dropdown-menu::before {
   z-index: -1;
   transform: rotate(-135deg);
   top: -4px;
   border-color: #ffffff;
   box-shadow: 1px 1px 4px -2px rgba(0, 0, 0, 0.4);
}

.dropdown-menu li {
  margin-bottom: 0;
}

.dropdown-open .dropdown-menu.dropdown-active {
  display: block;
}

.dropdown-container.dropdown-open .dropdown-toggle {
  background-color: #a7abae;
  color: #ffffff;
}

.dropdown-container.dropdown-open .dropdown-toggle:before {
   transform: rotate(-135deg);
}

.crown-premium {
  height: 35px;
  width: 35px;
  margin-top: -17px;
  margin-bottom: -8px;
  margin-left: 2px;
}

/* Tooltip styling */
.premium-content {
  position: relative;
  display: inline-block;
  cursor: not-allowed; /* Indicating it's disabled */
}

.premium-content .tooltip-premium {
  visibility: hidden;
  width: 160px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 125%; /* Position the tooltip below the text */
  left: 50%;
  margin-left: -80px; /* Center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

.premium-content .tooltip-premium::after {
  content: "";
  position: absolute;
  bottom: 100%; /* Arrow above the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.premium-content:hover .tooltip-premium {
  visibility: visible;
  opacity: 1;
}

/* ======================================
   VIEW TOGGLE STYLES
   ====================================== */
.motce_view_toggle_container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.motce_view_toggle_btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #0078D4;
  background-color: #fff;
  color: #0078D4;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.motce_view_toggle_btn:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.motce_view_toggle_btn.motce_view_toggle_active {
  background-color: #0078D4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.motce_view_toggle_btn:active {
  transform: translateY(0);
}

/* Day embed: list view default — keep date nav header, hide timeline + legend */
#motce_calendar_view.motce_day_list_mode .motce_day_view,
#motce_calendar_view.motce_day_list_mode .motce_legend,
.motce_calendar_view.motce_day_list_mode .motce_day_view,
.motce_calendar_view.motce_day_list_mode .motce_legend {
  display: none !important;
}

/* Compact list for daily / kiosk embeds — no inner scroll box; page scrolls instead */
.motce_list_view_container.motce_list_compact {
  padding: 8px 10px;
  min-height: 0;
  max-height: none;
  overflow-y: visible;
}

.motce_list_compact .motce_list_event_card {
  margin-bottom: 8px;
  flex-direction: row;
  border-left-width: 4px;
}

.motce_list_compact .motce_list_event_card:last-child {
  margin-bottom: 0;
}

.motce_list_compact .motce_list_date_section {
  flex-direction: row;
  padding: 10px 14px;
  min-width: 110px;
  gap: 8px;
}

.motce_list_compact .motce_list_day_number {
  font-size: 28px;
  margin-bottom: 0;
}

.motce_list_compact .motce_list_month_year {
  font-size: 11px;
  margin-bottom: 0;
}

.motce_list_compact .motce_list_day_name {
  font-size: 10px;
}

.motce_list_compact .motce_list_content_section {
  padding: 12px 14px;
  gap: 6px;
}

.motce_list_compact .motce_list_event_title {
  font-size: 16px;
}

.motce_list_compact .motce_list_time_info {
  font-size: 13px;
}

.motce_list_compact .motce_list_event_description {
  max-height: 80px;
  padding: 8px 10px;
  margin-top: 4px;
  font-size: 13px;
}

/* ======================================
   LIST VIEW STYLES
   ====================================== */
.motce_list_view_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  min-height: 600px;
  max-height: 700px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar styling for better UX */
.motce_list_view_container::-webkit-scrollbar {
  width: 10px;
}

.motce_list_view_container::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.motce_list_view_container::-webkit-scrollbar-thumb {
  background: #0078D4;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.motce_list_view_container::-webkit-scrollbar-thumb:hover {
  background: #005a9e;
}

/* Firefox scrollbar */
.motce_list_view_container {
  scrollbar-width: thin;
  scrollbar-color: #0078D4 #e9ecef;
}

.motce_list_empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-size: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.motce_list_empty p {
  margin: 0;
  font-weight: 500;
}

/* Event Card Styles */
.motce_list_event_card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 5px solid #0078D4;
}

.motce_list_event_card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* Color variants for event cards based on category */
.motce_list_event_card.motce_preset0 {
  border-left-color: #E74856;
}

.motce_list_event_card.motce_preset1 {
  border-left-color: #FF8C00;
}

.motce_list_event_card.motce_preset2 {
  border-left-color: #FFAB45;
}

.motce_list_event_card.motce_preset3 {
  border-left-color: #FFF100;
}

.motce_list_event_card.motce_preset4 {
  border-left-color: #47D041;
}

.motce_list_event_card.motce_preset5 {
  border-left-color: #30C6CC;
}

.motce_list_event_card.motce_preset6 {
  border-left-color: #73AA24;
}

.motce_list_event_card.motce_preset7 {
  border-left-color: #00BCF2;
}

.motce_list_event_card.motce_preset8 {
  border-left-color: #8764B8;
}

.motce_list_event_card.motce_preset9 {
  border-left-color: #F495BF;
}

.motce_list_event_card.motce_presetdefault {
  border-left-color: #0078D4;
}

/* Date Section */
.motce_list_date_section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: linear-gradient(135deg, #0078D4 0%, #005a9e 100%);
  color: #fff;
  min-width: 140px;
  text-align: center;
}

.motce_list_day_number {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 5px;
}

.motce_list_month_year {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.motce_list_day_name {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.9;
}

/* Content Section */
.motce_list_content_section {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.motce_list_event_title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.motce_list_event_link {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.motce_list_event_link:hover {
  color: #0078D4;
  text-decoration: underline;
}

/* Time Info */
.motce_list_time_info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #495057;
  font-weight: 500;
}

.motce_list_time_icon {
  font-size: 18px;
}

/* Category Badge */
.motce_list_category_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #f1f3f5;
  border-radius: 20px;
  width: fit-content;
}

.motce_list_category_color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.motce_list_category_text {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  text-transform: capitalize;
}

/* Event Description */
.motce_list_event_description {
  margin-top: 8px;
  padding: 12px 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #0078D4;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.motce_list_event_description p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
  word-wrap: break-word;
}

.motce_list_event_description p:last-child {
  margin-bottom: 0;
}

/* Style links in description */
.motce_list_event_description a {
  color: #0078D4;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.motce_list_event_description a:hover {
  color: #005a9e;
  text-decoration: underline;
}

/* Style tables in description */
.motce_list_event_description table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}

.motce_list_event_description table td,
.motce_list_event_description table th {
  padding: 6px 8px;
  border: 1px solid #dee2e6;
  text-align: left;
}

.motce_list_event_description table th {
  background-color: #e9ecef;
  font-weight: 600;
}

/* Style other HTML elements in description */
.motce_list_event_description h1,
.motce_list_event_description h2,
.motce_list_event_description h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 15px 0 10px 0;
  color: #212529;
}

.motce_list_event_description ul,
.motce_list_event_description ol {
  margin: 10px 0;
  padding-left: 25px;
}

.motce_list_event_description li {
  margin: 5px 0;
  line-height: 1.6;
}

/* Custom scrollbar for description */
.motce_list_event_description::-webkit-scrollbar {
  width: 8px;
}

.motce_list_event_description::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 4px;
}

.motce_list_event_description::-webkit-scrollbar-thumb {
  background: #0078D4;
  border-radius: 4px;
}

.motce_list_event_description::-webkit-scrollbar-thumb:hover {
  background: #005a9e;
}

/* Smooth scrolling */
.motce_list_view_container {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
  .motce_list_view_container {
    max-height: 500px;
    padding: 15px;
  }

  .motce_list_event_card {
    flex-direction: column;
  }

  .motce_list_date_section {
    flex-direction: row;
    justify-content: flex-start;
    min-width: 100%;
    padding: 20px;
    gap: 15px;
  }

  .motce_list_day_number {
    font-size: 36px;
  }

  .motce_list_content_section {
    padding: 20px;
  }

  .motce_list_event_title {
    font-size: 18px;
  }

  .motce_view_toggle_container {
    flex-direction: column;
    gap: 8px;
  }

  .motce_view_toggle_btn {
    width: 100%;
    max-width: 300px;
  }

  /* Adjust scrollbar for mobile */
  .motce_list_view_container::-webkit-scrollbar {
    width: 6px;
  }

  /* Adjust description for mobile */
  .motce_list_event_description {
    max-height: 250px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .motce_list_event_description p {
    font-size: 13px;
  }
}

/* ======================================
   COMBINED VIEW STYLES (Calendar + List Side-by-Side)
   ====================================== */
.motce_combined_view_container {
  max-width: 100%;
  padding: 0;
}

.motce_combined_view_wrapper {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 20px;
  width: 100%;
  height: 720px;
}

.motce_combined_list_section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.motce_combined_calendar_section {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.motce_combined_section_title {
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #212529;
  border-bottom: 3px solid #0078D4;
  text-align: center;
}

/* Adjust calendar container for combined view */
.motce_combined_view_container #motce_calendar,
.motce_combined_view_container .motce_calendar_embed_root {
  min-height: 680px;
  height: auto;
  width: 100%;
}

/* Make calendar days more compact in combined view */
.motce_combined_calendar_section .motce_calendar_day {
  min-height: 85px;
  height: auto;
  padding: 10px;
}

.motce_combined_calendar_section .motce_calendar_day-number {
  font-size: 20px;
}

.motce_combined_calendar_section .motce_calendar_day-name {
  font-size: 8px;
  margin-bottom: 3px;
}

/* Adjust list view styling in combined mode */
.motce_combined_list_section #motce_calendar_list,
.motce_combined_list_section .motce_calendar_list_container {
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.motce_combined_list_section .motce_list_view_container {
  padding: 0;
  background: transparent;
  max-height: none;
  min-height: auto;
  width: 100%;
  box-sizing: border-box;
}

.motce_combined_list_section .motce_list_event_card {
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-direction: column;
  width: 100%;
  max-width: 95%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Compact list view date section for combined view */
.motce_combined_list_section .motce_list_date_section {
  flex-direction: row;
  padding: 12px 15px;
  width: 100%;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.motce_combined_list_section .motce_list_day_number {
  font-size: 32px;
  margin-bottom: 0;
}

.motce_combined_list_section .motce_list_month_year {
  font-size: 12px;
  margin-bottom: 2px;
}

.motce_combined_list_section .motce_list_day_name {
  font-size: 11px;
}

/* Compact content section for combined view */
.motce_combined_list_section .motce_list_content_section {
  padding: 15px;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.motce_combined_list_section .motce_list_event_title {
  font-size: 16px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.motce_combined_list_section .motce_list_time_info {
  font-size: 13px;
}

.motce_combined_list_section .motce_list_category_badge {
  padding: 4px 10px;
  font-size: 11px;
}

.motce_combined_list_section .motce_list_event_description {
  max-height: 150px;
  padding: 10px 12px;
  margin-top: 5px;
}

.motce_combined_list_section .motce_list_event_description p {
  font-size: 12px;
  line-height: 1.5;
}

/* Custom scrollbar for combined list section */
.motce_combined_list_section::-webkit-scrollbar {
  width: 8px;
}

.motce_combined_list_section::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.motce_combined_list_section::-webkit-scrollbar-thumb {
  background: #0078D4;
  border-radius: 10px;
}

.motce_combined_list_section::-webkit-scrollbar-thumb:hover {
  background: #005a9e;
}

/* Firefox scrollbar */
.motce_combined_list_section {
  scrollbar-width: thin;
  scrollbar-color: #0078D4 #e9ecef;
}

/* Responsive Design for Combined View */
@media (max-width: 1400px) {
  .motce_combined_view_wrapper {
    grid-template-columns: 60% 40%;
  }
}

@media (max-width: 1200px) {
  .motce_combined_view_wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
  }
  
  .motce_combined_calendar_section {
    order: 1;
    height: 700px;
  }
  
  .motce_combined_list_section {
    height: 500px;
    order: 2;
  }
  
  .motce_combined_view_container #motce_calendar,
  .motce_combined_view_container .motce_calendar_embed_root {
    height: 660px;
  }
  
  /* Reset compact styles for full-width view */
  .motce_combined_list_section .motce_list_event_card {
    flex-direction: row;
  }
  
  .motce_combined_list_section .motce_list_date_section {
    flex-direction: column;
    min-width: 140px;
    padding: 20px;
  }
  
  .motce_combined_list_section .motce_list_day_number {
    font-size: 48px;
  }
  
  .motce_combined_list_section .motce_list_month_year {
    font-size: 14px;
  }
  
  .motce_combined_list_section .motce_list_day_name {
    font-size: 13px;
  }
  
  .motce_combined_list_section .motce_list_event_title {
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  .motce_combined_list_section,
  .motce_combined_calendar_section {
    padding: 12px;
  }
  
  .motce_combined_section_title {
    font-size: 16px;
  }
  
  .motce_combined_calendar_section {
    height: 650px;
  }
  
  .motce_combined_view_container #motce_calendar,
  .motce_combined_view_container .motce_calendar_embed_root {
    height: 610px;
  }
}

@media (max-width: 768px) {
  .motce_combined_calendar_section {
    height: 600px;
  }
  
  .motce_combined_list_section {
    height: 400px;
    padding: 10px;
  }
  
  .motce_combined_calendar_section {
    padding: 10px;
  }
  
  .motce_combined_view_container #motce_calendar,
  .motce_combined_view_container .motce_calendar_embed_root {
    height: 560px;
  }
}

/* ============================================
   VIEW MODE TOGGLE STYLES
   ============================================ */
.motce_view_mode_toggle {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.motce_view_mode_btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.motce_view_mode_btn:hover {
  background: #f5f5f5;
  border-color: #0078D4;
  color: #0078D4;
}

.motce_view_mode_btn.active {
  background: #0078D4;
  color: #fff;
  border-color: #0078D4;
}

.motce_today_btn {
  padding: 6px 14px;
  border: 1px solid #0078D4;
  background: transparent;
  color: #0078D4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin-left: 10px;
}

.motce_today_btn:hover {
  background: #0078D4;
  color: #fff;
}

/* ============================================
   WEEK VIEW STYLES
   ============================================ */
.motce_week_view {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: visible;
}

.motce_week_header_row {
  display: flex;
  border-bottom: 2px solid #eee;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 8;
}

.motce_week_time_header {
  width: 70px;
  min-width: 70px;
  padding: 10px;
  border-right: 1px solid #eee;
}

.motce_week_day_header {
  flex: 1;
  text-align: center;
  padding: 12px 5px;
  border-right: 1px solid #eee;
}

.motce_week_day_header:last-child {
  border-right: none;
}

.motce_week_day_name {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
}

.motce_week_day_num {
  display: block;
  font-size: 20px;
  font-weight: 300;
  color: #333;
  margin-top: 4px;
}

.motce_week_day_num.today {
  background: #0078D4;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 4px auto 0;
}

.motce_week_today {
  background: #e8f4fc;
}

.motce_week_grid_wrapper {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.motce_week_grid {
  position: relative;
}

.motce_week_hour_row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid #eee;
  position: relative;
  overflow: visible;
}

.motce_week_time_label {
  width: 70px;
  min-width: 70px;
  padding: 5px 10px;
  font-size: 11px;
  color: #888;
  text-align: right;
  border-right: 1px solid #eee;
  background: #fafafa;
}

.motce_week_day_cell {
  flex: 1;
  min-height: 60px;
  padding: 2px;
  border-right: 1px solid #eee;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
  overflow: visible;
}

.motce_week_day_cell:last-child {
  border-right: none;
}

.motce_week_day_cell:hover {
  background: #f9f9f9;
}

.motce_week_today_col {
  background: #f5fafd;
}

.motce_week_today_col:hover {
  background: #e8f4fc;
}

/* All-day cell (reserved for future use) */
.motce_week_allday_cell {
  flex: 1;
  min-height: 50px;
  padding: 5px;
  border-right: 1px solid #eee;
  overflow: hidden;
}

.motce_week_allday_cell:last-child {
  border-right: none;
}

.motce_week_event {
  padding: 3px 6px;
  margin: 2px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  overflow: hidden;
  max-width: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.motce_week_event:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.motce_week_event_line {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  color: #fff;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.motce_week_event_time {
  display: inline;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.95;
  color: #fff;
}

.motce_week_event_title {
  display: inline;
  font-weight: 600;
  color: #fff;
}

/* Week event tooltip */
.motce_week_tooltip {
  position: fixed;
  background: #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  max-width: 300px;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  white-space: normal;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.motce_week_tooltip.visible {
  opacity: 1;
}

/* ============================================
   DAY VIEW STYLES
   ============================================ */
.motce_day_view {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.motce_day_header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 2px solid #eee;
}

.motce_day_header_name {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
}

.motce_day_header_date {
  display: block;
  font-size: 24px;
  font-weight: 300;
  color: #333;
  margin-top: 5px;
}

.motce_day_header_date.today {
  color: #0078D4;
  font-weight: 500;
}

/* Day view — pinned all-day events (always visible, not inside the time grid scroll) */
.motce_day_allday_section {
  padding: 10px 12px 12px;
  background: #fafafa;
  border-bottom: 2px solid #eee;
  flex-shrink: 0;
}

.motce_day_allday_header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 8px;
}

.motce_day_allday_list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 35vh;
  overflow-y: auto;
}

.motce_day_allday_list .motce_day_event {
  margin: 0;
}

.motce_day_events_cell_empty {
  background: transparent;
}

.motce_day_grid_wrapper {
  max-height: 50vh;
  overflow-y: auto;
  overflow-anchor: none;
}

.motce_day_grid {
  position: relative;
}

.motce_day_hour_row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid #eee;
}

.motce_day_time_label {
  width: 90px;
  min-width: 90px;
  padding: 10px;
  font-size: 12px;
  color: #888;
  text-align: right;
  border-right: 1px solid #eee;
  background: #fafafa;
}

.motce_day_events_cell {
  flex: 1;
  padding: 5px 10px;
}

.motce_day_event {
  padding: 10px 12px;
  margin: 3px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.motce_day_event:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.motce_day_event_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.motce_day_event_title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.motce_day_event_time {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

.motce_day_event_desc {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  line-height: 1.4;
}

/* ============================================
   EVENT POPUP STYLES
   ============================================ */
.motce_event_popup {
  position: absolute;
  z-index: 10000;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  width: 300px;
  overflow: hidden;
  animation: motce_popup_fade_in 0.2s ease-out;
}

@keyframes motce_popup_fade_in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.motce_popup_close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.motce_popup_close:hover {
  color: #fff;
}

.motce_popup_header {
  padding: 20px;
  padding-right: 40px;
}

.motce_popup_title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.motce_popup_body {
  padding: 15px 20px;
}

.motce_popup_date,
.motce_popup_time {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
}

.motce_popup_desc {
  margin: 15px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* ============================================
   RESPONSIVE STYLES FOR WEEK/DAY VIEWS
   ============================================ */
@media (max-width: 992px) {
  .motce_calendar_header {
    padding: 10px 40px;
  }
  
  .motce_week_time_header,
  .motce_week_time_label {
    width: 50px;
    min-width: 50px;
    font-size: 10px;
  }
  
  .motce_day_time_label {
    width: 60px;
    min-width: 60px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .motce_view_mode_btn,
  .motce_today_btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .motce_week_day_header {
    padding: 8px 2px;
  }
  
  .motce_week_day_name {
    font-size: 9px;
  }
  
  .motce_week_day_num {
    font-size: 16px;
  }
  
  .motce_week_event_line {
    font-size: 9px;
  }

  .motce_week_event_title {
    font-size: 9px;
  }
  
  .motce_week_event_time {
    font-size: 9px;
  }
  
  .motce_day_event_header {
    flex-direction: column;
    gap: 5px;
  }
  
  /* Month view responsive */
  .motce_calendar_day {
    min-height: 120px;
    height: auto;
    padding: 3px;
  }
  
  .motce_calendar_day-header {
    gap: 2px;
  }
  
  .motce_calendar_day-name {
    font-size: 8px;
  }
  
  .motce_calendar_day-number {
    font-size: 11px;
  }
  
  .motce_calendar_day.today .motce_calendar_day-number {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  
  .motce_month_event {
    padding: 2px 3px;
    font-size: 9px;
  }
  
  .motce_month_event_time {
    font-size: 8px;
  }
  
  .motce_month_event_title {
    font-size: 9px;
  }
  
  .motce_month_event_more {
    font-size: 9px;
    padding: 1px 3px;
  }

}

/* Extra small screens */
@media (max-width: 480px) {
  .motce_calendar_day {
    min-height: 100px;
    height: auto;
  }
  
  .motce_calendar_day-header {
    flex-direction: column;
    gap: 0;
  }
  
  .motce_calendar_day-name {
    display: none;
  }
  
  .motce_month_event {
    padding: 1px 2px;
  }
  
  .motce_month_event_time {
    font-size: 7px;
  }
  
  .motce_month_event_title {
    font-size: 8px;
  }
}

/* ======================================
   UPCOMING EVENTS VIEW  [MO_OUTLOOK_UPCOMING]
   ====================================== */
.motce_upc {
  --motce-upc-accent: #0f6cbd;
  --motce-upc-ink: #1b1f24;
  --motce-upc-muted: #5b6472;
  --motce-upc-line: #e3e6eb;
  --motce-upc-divider: #edf0f3;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  background: #f6f7f9;
  border-radius: 12px;
  font-family: 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  color: var(--motce-upc-ink);
  text-align: left;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.motce_upc *,
.motce_upc *::before,
.motce_upc *::after {
  box-sizing: border-box;
}

.motce_upc h2,
.motce_upc h3,
.motce_upc p {
  margin: 0;
  padding: 0;
  border: 0;
  letter-spacing: normal;
  text-transform: none;
}

.motce_upc svg {
  flex: none;
}

/* Header */
.motce_upc .motce_upc_header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.motce_upc .motce_upc_heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.motce_upc .motce_upc_eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--motce-upc-accent);
}

.motce_upc .motce_upc_title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--motce-upc-ink);
}

.motce_upc .motce_upc_range {
  font-size: 14px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--motce-upc-line);
  font-size: 13px;
  font-weight: 600;
  color: #3d4552;
}

/* Day groups */
.motce_upc .motce_upc_group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.motce_upc .motce_upc_group_head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.motce_upc .motce_upc_group_label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--motce-upc-ink);
}

.motce_upc .motce_upc_group_label.motce_upc_today {
  color: var(--motce-upc-accent);
}

.motce_upc .motce_upc_group_date {
  font-size: 14px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_group_count {
  margin-left: auto;
  font-size: 12px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_card {
  background: #fff;
  border: 1px solid var(--motce-upc-line);
  border-radius: 12px;
  overflow: hidden;
}

/* Event row */
.motce_upc .motce_upc_event {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 22px;
}

.motce_upc .motce_upc_event + .motce_upc_event {
  border-top: 1px solid var(--motce-upc-divider);
}

.motce_upc .motce_upc_time {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.motce_upc .motce_upc_time_main {
  font-size: 14px;
  font-weight: 600;
}

.motce_upc .motce_upc_time_sub {
  font-size: 12px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.motce_upc a.motce_upc_event_title,
.motce_upc .motce_upc_event_title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--motce-upc-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.motce_upc a.motce_upc_event_title:hover,
.motce_upc a.motce_upc_event_title:focus {
  color: var(--motce-upc-accent);
  text-decoration: underline;
}

.motce_upc .motce_upc_meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.motce_upc .motce_upc_chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #f1f3f6;
  color: #3d4552;
  font-size: 12px;
  font-weight: 600;
}

/* Category dot: color comes from the .motce_presetN class added alongside */
.motce_upc .motce_upc_dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.motce_upc .motce_upc_desc {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5260;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.motce_upc .motce_upc_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_more {
  font-weight: 600;
}

/* Empty state */
.motce_upc .motce_upc_empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--motce-upc-line);
  border-radius: 14px;
  text-align: center;
}

.motce_upc .motce_upc_empty_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef4fb;
  color: var(--motce-upc-accent);
}

.motce_upc .motce_upc_empty_title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
}

.motce_upc .motce_upc_empty_text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--motce-upc-muted);
}

/* Compact (sidebar / widget) layout */
.motce_upc.motce_upc_compact {
  padding: 0;
  gap: 0;
  background: transparent;
}

.motce_upc .motce_upc_panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--motce-upc-line);
  border-radius: 14px;
  overflow: hidden;
}

.motce_upc .motce_upc_panel_head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--motce-upc-divider);
}

.motce_upc .motce_upc_panel_head .motce_upc_title {
  font-size: 19px;
}

.motce_upc .motce_upc_panel_head .motce_upc_range {
  font-size: 13px;
}

.motce_upc .motce_upc_row,
.motce_upc a.motce_upc_row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  color: var(--motce-upc-ink);
  text-decoration: none;
}

.motce_upc .motce_upc_row + .motce_upc_row {
  border-top: 1px solid var(--motce-upc-divider);
}

.motce_upc a.motce_upc_row:hover,
.motce_upc a.motce_upc_row:focus {
  background: #f6f9fd;
}

.motce_upc .motce_upc_tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 10px;
  background: #f1f3f6;
  color: #3d4552;
}

.motce_upc .motce_upc_tile.motce_upc_tile_today {
  background: var(--motce-upc-accent);
  color: #fff;
}

.motce_upc .motce_upc_tile_dow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.motce_upc .motce_upc_tile_day {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.motce_upc .motce_upc_row_text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.motce_upc .motce_upc_row_title,
.motce_upc .motce_upc_row_when {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motce_upc .motce_upc_row_title {
  font-size: 14px;
  font-weight: 600;
}

.motce_upc .motce_upc_row_when {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--motce-upc-muted);
}

.motce_upc .motce_upc_row_when .motce_upc_dot {
  width: 7px;
  height: 7px;
}

.motce_upc .motce_upc_panel_foot {
  padding: 14px 20px;
  border-top: 1px solid var(--motce-upc-divider);
  background: #fafbfc;
  font-size: 13px;
  color: var(--motce-upc-muted);
}

@media (max-width: 600px) {
  .motce_upc {
    padding: 20px 16px;
    gap: 22px;
  }

  .motce_upc .motce_upc_title {
    font-size: 24px;
  }

  .motce_upc .motce_upc_event {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .motce_upc .motce_upc_time {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding-top: 0;
  }
}

.motce_upc .motce_upc_title_row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.motce_upc .motce_upc_now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e3f3e8;
  color: #0b5d2a;
  font-size: 12px;
  font-weight: 600;
}

.motce_upc .motce_upc_now_dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13a10e;
}

.motce_upc a.motce_upc_link {
  font-weight: 600;
  color: var(--motce-upc-accent);
  text-decoration: none;
}

.motce_upc a.motce_upc_link:hover,
.motce_upc a.motce_upc_link:focus {
  color: #0c4f8a;
  text-decoration: underline;
}

.motce_upc .motce_upc_empty_link {
  margin-top: 6px;
  font-size: 13px;
}

.motce_upc .motce_upc_panel_foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
