/*
 * Schedule Calendar Manager - built-in calendar theme.
 * Loaded after the base calendar stylesheet to isolate the calendar from
 * WordPress and Elementor theme styles.
 */

/* ==================================================
   TOKENS AND OUTER FRAME
   ================================================== */

.schedule-calendar-app {
	--calendar-navy: #0d4f75;
	--calendar-navy-dark: #083a58;
	--calendar-blue-soft: #eef4f8;
	--calendar-blue-faint: #f8fafc;
	--calendar-line: #d8e2ea;
	--calendar-line-strong: #9eb3c3;
	--calendar-ink: #102a43;
	--calendar-muted: #71869a;
	--calendar-gold: #ffb000;
	--calendar-danger: #ff3d71;
	--fc-classic-primary: var(--calendar-navy);
	--fc-classic-primary-foreground: #fff;
	--fc-classic-button: #fff;
	--fc-classic-button-border: var(--calendar-line);
	--fc-classic-button-strong: var(--calendar-blue-soft);
	--fc-classic-button-strong-border: var(--calendar-navy);
	--fc-classic-background: #fff;
	--fc-classic-foreground: var(--calendar-ink);
	--fc-classic-muted-foreground: var(--calendar-muted);
	--fc-classic-border: var(--calendar-line);
	--fc-classic-strong-border: var(--calendar-line-strong);
	--fc-classic-today: transparent;
	color: var(--calendar-ink);
	margin-inline: auto;
	width: 100%;
}

.schedule-calendar-header,
.schedule-calendar-empty {
	display: none !important;
}

.schedule-calendar-canvas {
	background: #fff !important;
	border: 1px solid var(--calendar-line) !important;
	border-radius: 0 !important;
	border-top: 4px solid var(--calendar-navy) !important;
	box-shadow: 0 14px 36px rgba(13, 79, 117, 0.08);
	min-height: 0 !important;
	padding: 28px 32px 34px !important;
}

.schedule-calendar-canvas,
.schedule-calendar-canvas *,
.schedule-calendar-canvas *::before,
.schedule-calendar-canvas *::after {
	box-sizing: border-box;
}

.schedule-calendar-canvas table {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.schedule-calendar-canvas a {
	color: inherit;
	text-decoration: none !important;
}

/* ==================================================
   TOOLBAR
   ================================================== */

.schedule-calendar-toolbar {
	align-items: center !important;
	border-bottom: 1px solid var(--calendar-line-strong) !important;
	display: grid !important;
	gap: 12px !important;
	grid-template-columns: auto auto minmax(0, 1fr) !important;
	margin: 0 0 24px !important;
	padding: 0 0 18px !important;
	width: 100% !important;
}

.schedule-calendar-toolbar__section {
	align-items: center !important;
	display: flex !important;
	gap: 5px !important;
	margin: 0 !important;
}

.schedule-calendar-toolbar__section--center {
	grid-column: 1;
	grid-row: 1;
	justify-content: flex-start !important;
}

.schedule-calendar-toolbar__section--center::before {
	background: var(--calendar-blue-soft);
	border: 1px solid var(--calendar-line);
	content: "";
	display: block;
	flex: 0 0 auto;
	height: 34px;
	width: 34px;
}

.schedule-calendar-toolbar__section--start {
	grid-column: 2;
	grid-row: 1;
	justify-content: flex-start !important;
}

.schedule-calendar-toolbar__section--end {
	grid-column: 3;
	grid-row: 1;
	justify-content: flex-end !important;
}

.schedule-calendar-month-title {
	color: var(--calendar-ink) !important;
	font-family: inherit !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	white-space: nowrap;
}

/* ==================================================
   BUTTONS AND CSS CHEVRONS
   ================================================== */

.schedule-calendar-button {
	align-items: center !important;
	appearance: none !important;
	background: #fff !important;
	border: 1px solid var(--calendar-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #5c7185 !important;
	cursor: pointer;
	display: inline-flex !important;
	font-family: inherit !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	justify-content: center !important;
	line-height: 1 !important;
	min-height: 34px !important;
	padding: 9px 14px !important;
	text-transform: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

.schedule-calendar-button:not(:disabled):hover {
	background: var(--calendar-blue-soft) !important;
	border-color: var(--calendar-navy) !important;
	color: var(--calendar-navy) !important;
}

.schedule-calendar-button:focus-visible {
	outline: 2px solid var(--calendar-navy) !important;
	outline-offset: 2px !important;
}

.schedule-calendar-button--today {
	display: none !important;
}

.schedule-calendar-button--prev,
.schedule-calendar-button--next {
	color: transparent !important;
	font-size: 0 !important;
	height: 34px !important;
	min-height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	position: relative !important;
	width: 34px !important;
}

.schedule-calendar-button--prev::before,
.schedule-calendar-button--next::before {
	border-color: var(--calendar-navy);
	border-style: solid;
	border-width: 0 2px 2px 0;
	content: "" !important;
	display: block !important;
	height: 7px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 7px;
}

.schedule-calendar-button--prev::before {
	transform: translate(-35%, -50%) rotate(135deg);
}

.schedule-calendar-button--next::before {
	transform: translate(-65%, -50%) rotate(-45deg);
}

.schedule-calendar-button-group {
	display: flex !important;
	gap: 5px !important;
}

.schedule-calendar-button--dayGridMonth,
.schedule-calendar-button--timeGridWeek,
.schedule-calendar-button--timeGridDay,
.schedule-calendar-button--listMonth {
	min-width: 82px !important;
}

.schedule-calendar-button[role="tab"][aria-selected="true"],
.schedule-calendar-button[aria-pressed="true"] {
	background: var(--calendar-navy) !important;
	border-color: var(--calendar-navy) !important;
	color: #fff !important;
}

/* ==================================================
   SHARED VIEW ELEMENTS
   ================================================== */

.schedule-calendar-view {
	background: #fff !important;
	color: var(--calendar-ink);
}

.schedule-calendar-day-header-row {
	background: #fff !important;
	border-bottom: 1px solid var(--calendar-line-strong) !important;
}

.schedule-calendar-day-header {
	background: #fff !important;
	border-color: var(--calendar-line) !important;
	color: var(--calendar-muted) !important;
	font-family: inherit !important;
	font-size: 9px !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
}

.schedule-calendar-day-header a {
	color: inherit !important;
	display: block !important;
	padding: 11px 5px !important;
}

/* ==================================================
   MONTH VIEW
   ================================================== */

.schedule-calendar-view--dayGridMonth .schedule-calendar-day {
	background: #fff !important;
	border: 4px solid #fff !important;
	box-shadow: inset 0 0 0 1px var(--calendar-line) !important;
	color: var(--calendar-ink) !important;
	opacity: 1 !important;
	transition: background-color 160ms ease, box-shadow 160ms ease !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-day:hover {
	background: var(--calendar-blue-faint) !important;
	box-shadow: inset 0 0 0 1px var(--calendar-navy) !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-day.is-other-month {
	background: #fafcfd !important;
	color: #a4b1bc !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-day.is-today {
	background: var(--calendar-navy) !important;
	box-shadow: inset 0 0 0 1px var(--calendar-navy) !important;
	color: #fff !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-day a:not(.schedule-calendar-event) {
	color: inherit !important;
	font-size: 12px !important;
	font-weight: 700 !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-event {
	background: transparent !important;
	border: 0 !important;
	border-left: 4px solid var(--fc-event-color, var(--calendar-navy)) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--calendar-navy) !important;
	font-size: 8px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin: 2px 5px !important;
	min-height: 10px !important;
	padding: 1px 0 1px 5px !important;
	transform: none !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-event * {
	color: inherit !important;
}

.schedule-calendar-view--dayGridMonth .schedule-calendar-day.is-today .schedule-calendar-event {
	border-left-color: #fff !important;
	color: #fff !important;
}

/* ==================================================
   WEEK AND DAY TIME GRID
   ================================================== */

.schedule-calendar-view--timeGridWeek,
.schedule-calendar-view--timeGridDay {
	background: #fff !important;
}

/* Day cells are used for the all-day lane in time-grid. Remove month styling. */
.schedule-calendar-view--timeGridWeek .schedule-calendar-day,
.schedule-calendar-view--timeGridDay .schedule-calendar-day {
	background: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--calendar-ink) !important;
	opacity: 1 !important;
}

.schedule-calendar-view--timeGridWeek .schedule-calendar-day-header,
.schedule-calendar-view--timeGridDay .schedule-calendar-day-header {
	background: var(--calendar-blue-faint) !important;
	border-bottom: 1px solid var(--calendar-line) !important;
	min-height: 48px;
}

.schedule-calendar-view--timeGridWeek .schedule-calendar-day-header a,
.schedule-calendar-view--timeGridDay .schedule-calendar-day-header a {
	align-items: center;
	display: flex !important;
	font-size: 10px !important;
	justify-content: center;
	min-height: 48px;
	padding: 8px 5px !important;
}

.schedule-calendar-slot-label {
	background: #fff !important;
	border-top: 1px solid var(--calendar-line) !important;
	color: var(--calendar-muted) !important;
	font-family: inherit !important;
	font-size: 10px !important;
	font-variant-numeric: tabular-nums;
	font-weight: 600 !important;
	padding-right: 9px !important;
	text-align: right !important;
}

.schedule-calendar-slot-label.is-minor {
	border-top-color: #edf2f5 !important;
}

.schedule-calendar-slot-label__inner {
	color: inherit !important;
	padding-top: 3px !important;
}

.schedule-calendar-slot-lane {
	background: #fff !important;
	border-top: 1px solid var(--calendar-line) !important;
}

.schedule-calendar-slot-lane.is-minor {
	border-top-color: #edf2f5 !important;
}

.schedule-calendar-slot-lane:hover {
	background: var(--calendar-blue-faint) !important;
}

.schedule-calendar-all-day-label {
	align-items: center !important;
	background: var(--calendar-blue-faint) !important;
	color: var(--calendar-muted) !important;
	display: flex !important;
	font-family: inherit !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	justify-content: flex-end !important;
	line-height: 1.25 !important;
	padding: 8px 9px !important;
	white-space: normal !important;
}

.schedule-calendar-all-day-label__inner {
	white-space: normal !important;
}

.schedule-calendar-all-day-divider {
	background: var(--calendar-line) !important;
	height: 1px !important;
}

.schedule-calendar-view--timeGridWeek .schedule-calendar-event,
.schedule-calendar-view--timeGridDay .schedule-calendar-event {
	background: var(--fc-event-color, var(--calendar-navy)) !important;
	border: 0 !important;
	border-left: 3px solid var(--calendar-navy-dark) !important;
	border-radius: 0 !important;
	box-shadow: 0 4px 10px rgba(13, 79, 117, 0.16) !important;
	color: #fff !important;
	font-size: 10px !important;
	line-height: 1.35 !important;
	margin: 1px 2px !important;
	min-height: 24px !important;
	padding: 5px 7px !important;
	transform: none !important;
}

.schedule-calendar-view--timeGridWeek .schedule-calendar-event *,
.schedule-calendar-view--timeGridDay .schedule-calendar-event * {
	color: #fff !important;
}

.schedule-calendar-view--timeGridWeek .schedule-calendar-event:hover,
.schedule-calendar-view--timeGridDay .schedule-calendar-event:hover {
	box-shadow: 0 7px 16px rgba(13, 79, 117, 0.24) !important;
	filter: brightness(0.94) !important;
	transform: translateY(-1px) !important;
}

/* ==================================================
   AGENDA / LIST VIEW
   ================================================== */

.schedule-calendar-view--listMonth {
	min-height: 180px !important;
}

.schedule-calendar-list {
	background: #fff !important;
	border: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

.schedule-calendar-list-day {
	background: #fff !important;
	border: 1px solid var(--calendar-line) !important;
	margin: 0 !important;
	padding: 0 !important;
}

.schedule-calendar-list-day__header {
	align-items: center !important;
	background: var(--calendar-blue-soft) !important;
	border-bottom: 1px solid var(--calendar-line) !important;
	color: var(--calendar-navy) !important;
	display: flex !important;
	font-family: inherit !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	justify-content: space-between !important;
	letter-spacing: 0.06em !important;
	min-height: 40px !important;
	padding: 10px 14px !important;
	text-transform: uppercase !important;
}

.schedule-calendar-list-day__header-text {
	color: inherit !important;
}

.schedule-calendar-list-day__body {
	background: #fff !important;
}

.schedule-calendar-event--list {
	align-items: center !important;
	background: #fff !important;
	border: 0 !important;
	border-bottom: 1px solid #e8eef2 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--calendar-ink) !important;
	cursor: pointer;
	font-family: inherit !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	min-height: 54px !important;
	padding: 12px 14px !important;
	transform: none !important;
}

.schedule-calendar-event--list:last-child {
	border-bottom: 0 !important;
}

.schedule-calendar-event--list,
.schedule-calendar-event--list * {
	color: var(--calendar-ink) !important;
}

.schedule-calendar-event--list:hover,
.schedule-calendar-event--list:focus {
	background: var(--calendar-blue-soft) !important;
	color: var(--calendar-navy) !important;
	filter: none !important;
}

.schedule-calendar-no-events {
	align-items: center !important;
	background: var(--calendar-blue-faint) !important;
	border: 1px solid var(--calendar-line) !important;
	color: var(--calendar-muted) !important;
	display: flex !important;
	justify-content: center !important;
	min-height: 180px !important;
	padding: 32px !important;
	text-align: center !important;
}

.schedule-calendar-no-events__inner {
	color: inherit !important;
	font-family: inherit !important;
	font-size: 13px !important;
}

/* ==================================================
   MESSAGE, TOOLTIP, AND MODAL
   ================================================== */

.schedule-calendar-message {
	background: #fff8e8;
	border: 1px solid #ecd594;
	border-left: 4px solid var(--calendar-gold);
	border-radius: 0;
	color: #684c09;
	font-size: 13px;
	margin-top: 14px;
	padding: 12px 16px;
}

.schedule-calendar-tooltip {
	background: var(--calendar-navy-dark);
	border: 0;
	border-radius: 0;
	box-shadow: 0 16px 38px rgba(7, 49, 73, 0.24);
}

.schedule-calendar-tooltip__hint {
	background: rgba(255, 255, 255, 0.08);
}

.schedule-modal__backdrop {
	background: rgba(7, 31, 47, 0.76);
}

.schedule-modal__dialog {
	border-radius: 0;
	border-top: 5px solid var(--calendar-navy);
	box-shadow: 0 30px 90px rgba(7, 31, 47, 0.3);
}

.schedule-modal__eyebrow {
	color: var(--calendar-navy);
}

.schedule-modal__meeting {
	background: var(--calendar-navy);
	border-radius: 0;
}

.schedule-modal__meeting:hover {
	background: var(--calendar-navy-dark);
}

/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1024px) {
	.schedule-calendar-canvas {
		padding: 22px 20px 28px !important;
	}

	.schedule-calendar-toolbar {
		grid-template-columns: auto auto !important;
	}

	.schedule-calendar-toolbar__section--end {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: flex-start !important;
	}

	.schedule-calendar-toolbar__section--end .schedule-calendar-button-group {
		width: 100%;
	}

	.schedule-calendar-button--dayGridMonth,
	.schedule-calendar-button--timeGridWeek,
	.schedule-calendar-button--timeGridDay,
	.schedule-calendar-button--listMonth {
		flex: 1 1 0;
		min-width: 0 !important;
	}
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 640px) {
	.schedule-calendar-header {
		background: transparent;
		border: 0;
		border-radius: 0;
		display: flex !important;
		justify-content: flex-end;
		padding: 0 0 10px;
	}

	.schedule-calendar-header__copy {
		display: none !important;
	}

	.schedule-calendar-mobile-controls {
		display: flex !important;
		gap: 5px;
		width: min(100%, 220px);
	}

	.schedule-calendar-view-label {
		color: var(--calendar-muted);
		font-size: 9px;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.schedule-calendar-view-select {
		background: #fff;
		border: 1px solid var(--calendar-line);
		border-radius: 0;
		color: var(--calendar-ink);
		font-family: inherit;
		font-size: 12px;
		font-weight: 600;
		min-height: 40px;
		padding: 8px 32px 8px 10px;
		width: 100%;
	}

	.schedule-calendar-canvas {
		padding: 16px 10px 22px !important;
	}

	.schedule-calendar-toolbar {
		gap: 8px !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		margin-bottom: 16px !important;
		padding-bottom: 14px !important;
	}

	.schedule-calendar-toolbar__section--center {
		grid-column: 1;
		grid-row: 1;
	}

	.schedule-calendar-toolbar__section--start {
		grid-column: 2;
		grid-row: 1;
	}

	.schedule-calendar-toolbar__section--end {
		display: none !important;
	}

	.schedule-calendar-toolbar__section--center::before {
		height: 28px;
		width: 28px;
	}

	.schedule-calendar-month-title {
		font-size: 15px !important;
	}

	.schedule-calendar-button--prev,
	.schedule-calendar-button--next {
		height: 32px !important;
		min-height: 32px !important;
		min-width: 32px !important;
		width: 32px !important;
	}

	.schedule-calendar-view--dayGridMonth .schedule-calendar-day {
		border-width: 2px !important;
	}

	.schedule-calendar-day-header {
		font-size: 8px !important;
		letter-spacing: 0.04em !important;
	}

	.schedule-calendar-slot-label {
		font-size: 8px !important;
		padding-right: 4px !important;
	}

	.schedule-calendar-view--timeGridWeek .schedule-calendar-event,
	.schedule-calendar-view--timeGridDay .schedule-calendar-event {
		font-size: 8px !important;
		padding: 3px 4px !important;
	}

	.schedule-calendar-list-day__header {
		font-size: 10px !important;
		padding: 9px 10px !important;
	}

	.schedule-calendar-event--list {
		font-size: 11px !important;
		min-height: 48px !important;
		padding: 10px !important;
	}
}
