@charset "UTF-8";
/* ================================
   SEE NZ EVENTS CALENDAR
   ================================ */

.see-nz-events-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.see-nz-calendar {
  border: 1px solid #ddd;
  padding: 16px;
}

.see-nz-calendar.small {
  transform: scale(0.85);
  pointer-events: none;
 box-shadow: 0 4px 10px rgba(0,0,0,0.10)!important;
    border-radius: 8px!important;
    height: 310px;
}

.calendar-header h3 {
  margin: 0 0 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekday {
  font-weight: bold;
  text-align: center;
  font-size: 12px;
}

.calendar-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.month-link {
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.see-nz-calendar.small .event-dot {
  margin: 6px auto 0;
  display: block;
}

.day-number {
  display: block;
}

/* -----------------------------
   DAY CELL LAYOUT
----------------------------- */
.day {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 110px; /* desktop */
  border: 1px solid #eee;
  padding: 4px;
  position: relative;
}


/* Container for event blocks */
.day .event {
  flex: 1 1 auto;
  align-items: flex-start;
  background: #1d3557;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 6px;
  border-radius: 3px;
  display: flex;
  white-space: normal;
  word-break: break-word;
 word-wrap: break-word;
}

/* Event text */
.day .event a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HEIGHT RULES BASED ON COUNT */
.day.has-event {
  justify-content: stretch;
}

.day.has-event .event:nth-child(1):only-child {
  flex-basis: 100%;
}

.day.has-event .event:nth-child(1):nth-last-child(2),
.day.has-event .event:nth-child(2):nth-last-child(1) {
  flex-basis: 50%;
}

.day.has-event .event:nth-child(1):nth-last-child(3),
.day.has-event .event:nth-child(2):nth-last-child(2),
.day.has-event .event:nth-child(3):nth-last-child(1) {
  flex-basis: 33.33%;
}

.day.has-event .event:nth-child(1):nth-last-child(4),
.day.has-event .event:nth-child(2):nth-last-child(3),
.day.has-event .event:nth-child(3):nth-last-child(2),
.day.has-event .event:nth-child(4):nth-last-child(1) {
  flex-basis: 25%;
}

.see-nz-calendar.small .event {
  padding: 0;
  font-size: 0;
  line-height: 0;
  border-radius: 2px;
}

.see-nz-calendar.small .event a {
  display: none;
}

.calendar-back {
  margin-bottom: 10px;
}

.calendar-back {
  margin-bottom: 12px;
}

.back-to-current {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1d3557;
  text-decoration: none;
}

.back-to-current:hover {
  text-decoration: underline;
}

/* SMALL calendars: make the mini event fill the whole day */
.see-nz-calendar.small .day {
  position: relative;
}

.see-nz-calendar.small .day .event-mini {
  position: absolute;
  inset: 0;
  background: #1d3557 !important;
  border-radius: 2px;
  z-index: 1;
}

/* SMALL calendars override */
.see-nz-calendar.small .day {
  min-height: auto;
  padding: 2px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Keep day number above the mini event */
.see-nz-calendar.small .day > * {
  position: relative;
  z-index: 2;
}

.see-nz-calendar.small .day-number {
  width: 100%;
  text-align: center;
}

/* SMALL calendar: make day number white ONLY when event-mini exists */
.see-nz-calendar.small .day:has(.event-mini) {
  color: #fff;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.see-nz-calendar.small .day:has(.event-mini) .day-number {
  width: 100%;
  text-align: center;
}


/* ================================
   Small calendar horizontal strip
================================ */

.calendar-strip-shell {
  position: relative;
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  z-index: 1;
}

/* Scroll container */
.calendar-strip-scroll {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 48px;
}

.calendar-strip-scroll::-webkit-scrollbar {
  display: none;
}

/* Month cards */
.month-link {
  flex: 0 0 320px;
  text-decoration: none;
  color: inherit;
}

/* Arrows (Job Management style) */
.calendar-strip-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  user-select: none;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

.calendar-strip-arrow.left { left: 0; }
.calendar-strip-arrow.right { right: 0; }

.calendar-strip-arrow span {
  font-size: 28px;
  font-weight: 600;
}

.add-to-calendar-btn {
    background: #000;
    color:#fff!important;
    padding: 25px 35px;
    border-radius: 5px;
    width: 100%!important;
}

.add-to-calendar-btn a {
    color:#fff!important;
    font-weight: 700;
}

.see-nz-event-date {
  margin: 8px 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.see-nz-events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.see-nz-events-sidebar-month h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1d3557;
}

.see-nz-events-sidebar-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.see-nz-events-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 14px!important;
  margin: 0;
  padding: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e3e3;
}

.see-nz-events-sidebar-entry {
  margin: 0;
  color: #1d3557;
  line-height: 1.5!important;
}

.see-nz-events-sidebar-entry a {
  color: #111111;
  text-decoration: none;
}

.see-nz-events-sidebar-entry a:hover {
  text-decoration: underline;
}

.see-nz-events-search {
  margin: 0 0 16px;
}

.see-nz-events-search-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  font-size: 14px;
}

.see-nz-events-search-scope .see-nz-events-search-item {
  text-align: left;
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin 180ms ease, padding 180ms ease;
  max-height: 2000px;
  overflow: hidden;
}

.see-nz-events-search-item.snz-filter-hidden {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}




/* Tablet */
@media (max-width: 1024px) {
  .day {
    min-height: 110px;
  }
    
    .month-link {
    flex: 0 0 50vw;
    }
     
    .see-nz-calendar:not(.small) .day {
    min-height: 110px;
}

/* Mobile */
@media (max-width: 768px) {
  .day {
    min-height: 80px;
  }
     .see-nz-calendar:not(.small) .day {
    min-height: 100px;
}
     .month-link {
    flex: 0 0 100%;
  }
    
.calendar-strip-scroll {
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 50%;
}

.calendar-strip-scroll > a {
    scroll-snap-align: center;
    flex: 0 0 auto;
}
