/* ====================================================== */
/* CSS for control sap.m/SinglePlanningCalendarMonthGrid  */
/* Base theme                                             */
/* ====================================================== */

.sapMSPCMonthGrid > :not(.sapMSinglePCGridContent) {
	margin-left: 4rem;
}

.sapMSPCMonthGrid .sapMSinglePCGridContent {
	flex-direction: column;
}

.sapMSPCMonthWeek {
	display: flex;
}

.sapMSPCMonthWeek .sapMSPCMonthDays {
	display: flex;
	flex-direction: row;
	flex-grow: 1;
	position: relative;
}

.sapMSPCMonthGrid .sapMSPCMonthWeek .sapMSPCMonthDays > .sapMSinglePCBlockers {
	left: 0;
	right: 0;
}

.sapMSPCMonthWeek > .sapMSPCMonthWeekNumber {
	text-align: right;
	box-sizing: border-box;
	color: var(--sapTextColor);
	font-family: var(--sapFontFamily);
	font-size: @sapMFontMediumSize;
	background-color: lighten(@sapUiContentForegroundColor,7);

	&:hover {
		background-color: var(--sapList_Hover_Background);
		cursor: pointer;
	}
}

.sapMSPCMonthDay {
	flex: 1 1;
	display: flex;
	flex-direction: column;
	border: 0.0625rem solid transparent;
	border-left-color: var(--sapList_BorderColor);
	border-top-color: var(--sapList_BorderColor);
	box-sizing: border-box;
	background-color: var(--sapList_Background);
	position: relative;
	outline: none;
}

.specialDateIndicator {
	width: 1.75rem;
	height: 0.188rem;
	border-radius: 0.125rem;
	position: absolute;
	top: 0;
	right: 0;
	margin: 0.063rem;
}

.sapMSPCMonthGrid .sapMSPCMonthDayNames {
	display: flex;
}

.sapMSPCMonthGrid .sapMSPCMonthDayNames > .sapUiCalWH {
	flex: 1 1;
}

.sapMSPCMonthDay.nonWorkingTimeframe {
	background-color: var(--sapList_AlternatingBackground);
}

.sapMSPCMonthNowMarker {
	border: 0.125rem solid var(--sapLegend_CurrentDateTime);
	pointer-events: none;
	height: inherit;

	.sapMSPCMonthDayNumber {
		padding-top: 0.4rem;
	}
}

html.sap-desktop .sapMSPCMonthDay.sapMSPCMonthDayToday:focus .sapMSPCMonthNowMarker::after {
	content: '';
	position: absolute;
	top: 0.0625rem;
	left: 0.0625rem;
	right: 0.0625rem;
	bottom: 0.0625rem;
	border: 0.0625rem dotted var(--sapContent_FocusColor);
	pointer-events: none;
	z-index: 3;
}

.sapMSPCMonthDay.sapMSPCMonthDayToday .specialDateIndicator {
	top: 0.125rem;
	right: 0.125rem;
}

.sapMSPCMonthDayNumber {
	text-align: end;
	height: 1.75rem;
	padding-top: 0.5rem;
	padding-right: 0.375rem;
	box-sizing: border-box;
	color: var(--sapTextColor);
	font-family: var(--sapFontFamily);
	font-size: @sapMFontMediumSize;
}

.sapMSPCMonthGrid .sapMSPCMonthLnkMore {
	position: absolute;
	bottom: 0;
	right: 0;
	padding-right: 0.125rem;
	text-align: end;
	height: 2.125rem;
	line-height: 2.125rem;
	pointer-events: auto;
}

.sapMSPCMonthGrid .sapMSinglePCPlaceholder {
	height: 100%;
}

.sapMSPCMonthDay {
	height: 8.25rem;
	min-width: 2.3125rem;
}

.sapMSPCMonthWeek > .sapMSPCMonthWeekNumber {
	width: 4rem;
	max-width: 4rem;
	padding-top: 0.25rem;
	padding-right: 0.375rem;
}

.specialDateIndicator {
	width: 1.75rem;
	height: 0.188rem;
}

.sapMSPCMonthGrid .sapMSinglePCAppointmentWrap.sapUiCalendarRowApps .sapUiCalendarApp {
	height: 2rem;
}

.sapMSPCMonthGrid .sapMSinglePCBlockers .sapUiCalendarAppCont {
	display: flex;
	align-items: center;
}

.sapMSPCMonthGrid .sapUiCalendarAppIcon + .sapUiCalendarAppTitle,
.sapMSPCMonthGrid .sapUiCalendarAppIcon + .sapUiCalendarAppTitle + .sapUiCalendarAppText {
	padding-left: 0.375rem;
}

.sapMSPCMonthGrid .sapUiCalendarAppIcon {
	top: initial;
}

html.sap-desktop .sapMSPCMonthDay:not(.sapMSPCMonthDayToday):focus::after {
	content: '';
	position: absolute;
	top: 0.0625rem;
	left: 0.0625rem;
	right: 0.0625rem;
	bottom: 0.0625rem;
	border: 0.0625rem dotted var(--sapContent_FocusColor);
	pointer-events: none;
	z-index: 3;
}

.sapMSPCMonthDay.sapMSPCMonthDaySelected.sapMSPCMonthDayToday .sapMSPCMonthNowMarker::before {
	content: '';
	position: absolute;
	top: 0.165rem;
	left: 0.165rem;
	right: 0.165rem;
	bottom: 0.165rem;
	border: 0.0625rem solid var(--sapList_SelectionBorderColor);
	pointer-events: none;
	z-index: 3;
}

.sapMSPCMonthDay.sapMSPCMonthDaySelected:not(.sapMSPCMonthDayToday) {
	border: 0.0625rem solid var(--sapList_SelectionBorderColor);
}

.sapMSPCMonthDay.sapMSPCMonthDaySelected {
	background: var(--sapList_SelectionBackgroundColor);
}

.sapMSPCMonthDay.sapMSPCMonthDaySelected:hover {
	background: var(--sapList_Hover_SelectionBackground);
}

.sapUiSizeCompact {

	.sapMSPCMonthDay {
		height: 7.875rem;
		min-width: 2.3125rem;
	}

	.sapMSPCMonthDayNumber {
		height: 1.5rem;
		padding-top: 0.313rem;
	}

	.sapMSPCMonthGrid .sapMSinglePCAppointmentWrap.sapUiCalendarRowApps .sapUiCalendarApp {
		height: 1.438rem;
	}

	.sapMSPCMonthGrid .sapMSinglePCAppointmentWrap.sapUiCalendarRowApps .sapUiCalendarApp .sapUiCalendarAppTitle {
		padding-top: 0.1rem;
		padding-top: 0;
	}

	.sapMSPCMonthGrid {

		.sapUiCalendarAppCont {

			.sapUiCalendarAppArrowIcon {
				top: 0;
				left: 0;
				padding-left: 0.25rem;
			}
		}
	}

	.sapMSPCMonthGrid .sapUiCalendarAppIcon {
		top: initial;
	}

	.sapMSPCMonthGrid .sapMSPCMonthLnkMore {
		height: 1.563rem;
		line-height: 1.563rem;
	}
}

.sapMSPCMonthGrid {

	.sapUiCalendarAppCont {

		.sapUiCalendarAppArrowIcon {
			top: 0;
			left: 0;
			padding-left: 0.25rem;
		}
	}
}

html.sap-desktop .sapMSPCMonthDaysapMSPCMonthGrid .sapMSPCMonthLnkMore {
	right: 0.25rem;
}

html.sap-desktop .sapMSPCMonthDaysapMSPCMonthGrid .specialDateIndicator {
	top:  0.25rem;
	right:  0.25rem;
}

html.sap-phone {

	.sapMSPCMonthGrid > :not(.sapMSinglePCGridContent) {
		margin-left: 0;
	}

	.sapMSPCMonthGrid .sapMSPCMonthWeek > .sapMSPCMonthWeekNumber {
		width: 0;
		max-width: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.sapMSPCMonthDays.sapMSPCMonthDaysMax0,
	.sapMSPCMonthDays.sapMSPCMonthDaysMax1,
	.sapMSPCMonthDays.sapMSPCMonthDaysMax2 {
		height: 6.125rem;

		.sapMSPCMonthDay {
			height: 100%;
		}
	}

	.sapUiSizeCompact {

		.sapMSPCMonthDays.sapMSPCMonthDaysMax0,
		.sapMSPCMonthDays.sapMSPCMonthDaysMax1,
		.sapMSPCMonthDays.sapMSPCMonthDaysMax2 {
			height: 4.675rem;

			.sapMSPCMonthDay {
				height: 100%;
			}
		}

		.sapMSPCMonthDays.sapMSPCMonthDaysMax3 {
			height: 6.275rem;

			.sapMSPCMonthDay {
				height: 100%;
			}
		}
	}
}

@media (max-width: 42rem) {

	.sapMSPCMonthWeek > .sapMSPCMonthWeekNumber {
		width: 10%;
	}

	.sapMSPCMonthDay {
		width: 12.8571%;
		min-width: initial;
	}

	.sapMSPCMonthGrid .sapMSPCMonthDayNames > .sapUiCalWH {
		min-width: 12.8571%;
		width: 12.8571%;
	}

	.sapMSPCMonthGrid > :not(.sapMSinglePCGridContent) {
		margin-left: 10%;
	}

	.sapUiSizeCompact .sapMSPCMonthDay {
			min-width: initial;
	}
}

/* Disable text selection while dragging the cursor */
.sapMSinglePCGrid * {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}