/* Assessment Operations & Field Calendar Styles */
.calendar-view-container {
  width: 100%;
  box-sizing: border-box;
}

.calendar-tile {
  transition: all 0.2s ease-in-out;
}

.calendar-tile:hover {
  transform: translateY(-1px);
}

.calendar-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}


/* ==========================================================================
   GWiz Full-Canvas Calendar Architecture
   ========================================================================== */
.calendar-viewport-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  min-height: 650px;
  width: 100%;
}

.calendar-main-stage {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* Month Grid: Strict 7-column layout with equal row distribution */
.calendar-month-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(100px, 1fr) !important;
  width: 100% !important;
  height: 100% !important;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
}
.dark .calendar-month-grid,
[data-theme="dark"] .calendar-month-grid {
  border-color: #334155 !important;
}

/* Week Grid: Fixed time column + 7 equal flex columns */
.calendar-week-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.calendar-week-header {
  display: grid !important;
  grid-template-columns: 60px repeat(7, minmax(0, 1fr)) !important;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 10;
}
.dark .calendar-week-header,
[data-theme="dark"] .calendar-week-header {
  border-color: #334155 !important;
}

.calendar-week-body {
  display: grid !important;
  grid-template-columns: 60px repeat(7, minmax(0, 1fr)) !important;
  width: 100%;
  flex: 1;
}

/* Day Grid: Fixed time column + 100% full width day column */
.calendar-day-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.calendar-day-header {
  display: grid !important;
  grid-template-columns: 60px 1fr !important;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 10;
}
.dark .calendar-day-header,
[data-theme="dark"] .calendar-day-header {
  border-color: #334155 !important;
}

.calendar-day-body {
  display: grid !important;
  grid-template-columns: 60px 1fr !important;
  width: 100%;
  flex: 1;
}

/* Prevent uncontrolled SVG scaling */
svg:not([width]):not([class*='w-']) {
  max-width: 24px;
  max-height: 24px;
}
