/* fullcalendar */
#calendar {
	max-width: 100%;
	margin: 0 auto;
}

.fc-theme-bootstrap button::before {
	display: inline-block;
	font-family: bootstrap-icons !important;
	font-style: normal;
	font-weight: normal !important;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	vertical-align: -0.125em;
	-webkit-font-smoothing: antialiased;
	color: #fff;
}

.fc-theme-bootstrap .fc-prev-button::before {
	content: "\f284";
}

.fc-theme-bootstrap .fc-next-button::before {
	content: "\f285";
}

/* toggleCalendar */
@media(max-width: 767px) {
	#toggleCalendar.collapse:not(.show) {
		display: block;
		opacity: 0;
		height: 0;
	}
}

/* .resv-calendar-box */
.resv-calendar-box {
	border: solid 1px #dee2e6;
	margin: 2rem auto;
	font-family: 'Noto Sans', 'NotoSansKR', sans-serif;
	letter-spacing: 0;
}

	.resv-calendar-box .row > div {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

		.resv-calendar-box .row > div:first-child {
			border-bottom: solid 1px #dee2e6;
		}

@media(max-width: 375px) {
	.resv-calendar-box .month-selector > [class*='col-']:nth-child(1) {
		order: 3;
	}

	.resv-calendar-box .month-selector > [class*='col-']:nth-child(2) {
		order: 1;
		/* flex: 1 0 50%; */
		flex-grow: 1;
		flex-shrink: 0;
		flex-basis: 50%;
		max-width: 50%;
	}

	.resv-calendar-box .month-selector > [class*='col-']:nth-child(3) {
		order: 2;
		/* flex: 1 0 50%; */
		flex-grow: 1;
		flex-shrink: 0;
		flex-basis: 50%;
		max-width: 50%;
	}

	.resv-calendar-box .month-selector > [class*='col-']:nth-child(4) {
		order: 4;
	}

	.resv-calendar-box .month-selector > [class*='col-']:nth-child(5) {
		order: 5;
	}

	.resv-calendar-box .month-selector > [class*='col-']:nth-child(6) {
		order: 6;
	}
}

/* row box spacing */
.resv-calendar-box .row > div {
	padding-left: 10px;
	padding-right: 10px;
}

	.resv-calendar-box .row > div > .form-row {
		justify-content: center;
		padding-left: 12px;
		padding-right: 12px;
	}

	.resv-calendar-box .row > div:last-child {
		padding-left: 20px;
		padding-right: 20px;
	}

@media(min-width: 576px) {
	.resv-calendar-box .row > div {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media(min-width: 992px) {
	.resv-calendar-box .row > div {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

		.resv-calendar-box .row > div:first-child {
			border-bottom: none;
			border-right: solid 1px #dee2e6;
		}
}

.resv-calendar-box #calendar {
	position: relative;
}

/* fc-header-toolbar  */
.resv-calendar-box .fc .fc-toolbar.fc-header-toolbar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
}

.resv-calendar-box .fc-toolbar-chunk > [class*='btn-'] {
	margin: 0 5px;
}

	.resv-calendar-box .fc-toolbar-chunk > [class*='btn-']:first-child {
		margin-left: 0;
	}

	.resv-calendar-box .fc-toolbar-chunk > [class*='btn-']:last-child {
		margin-right: 0;
	}

.resv-calendar-box .fc-toolbar-title {
	font-size: 1.25rem;
}

/* fc-view */
/* fc-dayGridMonth-view */
.resv-calendar-box .fc-dayGridMonth-view table[role="grid"] {
	margin-left: auto;
	margin-right: auto;
	border: none;
}

.resv-calendar-box .fc-dayGridMonth-view [role="presentation"] {
	border: none;
}

.resv-calendar-box [role="columnheader"] {
	font-size: 0.875rem;
	font-weight: 700;
	text-align: center;
	border: none;
}

@media(min-width: 768px) {
	.resv-calendar-box [role="columnheader"] {
		font-size: 1rem;
	}
}

/* cell spacing */
.resv-calendar-box .fc-daygrid-day-frame:before,
.resv-calendar-box .fc-daygrid-day-events:before,
.resv-calendar-box .fc-daygrid-event-harness:before,
.resv-calendar-box .fc-daygrid-day-frame:after,
.resv-calendar-box .fc-daygrid-day-events:after,
.resv-calendar-box .fc-daygrid-event-harness:after,
.resv-calendar-box .fc .fc-daygrid-day-bottom:before,
.resv-calendar-box .fc .fc-daygrid-day-bottom:after {
	border-spacing: 0;
}

.resv-calendar-box .fc-scroller > table[role="presentation"] {
	border-spacing: 10px 0;
}

.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
	border-spacing: 10px;
}

.resv-calendar-box .fc-scroller > table[role="presentation"],
.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
	max-width: 100%;
	border-collapse: inherit;
	margin: 0 auto;
}

.resv-calendar-box [role="gridcell"] {
	border: solid 1px #dee2e6;
	border-radius: 0.5rem;
	box-sizing: border-box;
}

	.resv-calendar-box [role="gridcell"]:hover {
		cursor: pointer;
	}

.resv-calendar-box .fc-daygrid-day-frame {
	height: 40px;
}

@media(min-width: 576px) {
	.resv-calendar-box .fc-scroller > table[role="presentation"],
	.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
		/* max-width: 380px; */
	}

	.resv-calendar-box .fc-daygrid-day-frame {
		min-height: 60px;
	}
}

@media(min-width: 768px) {
	.resv-calendar-box .fc-scroller > table[role="presentation"],
	.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
		/* max-width: 420px; */
	}

	.resv-calendar-box .fc-daygrid-day-frame {
		min-height: 56px;
	}

	.resv-calendar-box .fc-scroller > table[role="presentation"] {
		border-spacing: 20px 0;
	}

	.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
		border-spacing: 20px;
	}
}

@media(min-width: 992px) {
	.resv-calendar-box .fc-scroller > table[role="presentation"],
	.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
		/* max-width: 490px; */
	}

	.resv-calendar-box [role="gridcell"] {
		border-radius: 1rem;
		/* padding: 0 1rem; */
	}

	.resv-calendar-box .fc-daygrid-day-frame {
		min-height: 74px;
	}
}

@media(min-width: 1024px) {
	.resv-calendar-box .fc-scroller > table[role="presentation"],
	.resv-calendar-box .fc-daygrid-body > table[role="presentation"] {
		/* max-width: 500px; */
	}
}

/* font-size */
.resv-calendar-box .fc-daygrid-block-event {
	font-size: 10px;
	line-height: 1;
}

.resv-calendar-box .fc-daygrid-dot-event {
	font-size: 10px;
	line-height: 1;
}

.resv-calendar-box .fc-daygrid-day-top {
	font-size: 0.875rem;
	font-weight: 700;
}

@media(min-width: 768px) {
	.resv-calendar-box .fc-daygrid-day-top {
		font-size: 1.125rem;
	}
}

@media(min-width: 1024px) {
	.resv-calendar-box .fc-daygrid-day-top {
		font-size: 1.25rem;
	}
}

@media(min-width: 1200px) {
	.resv-calendar-box .fc-daygrid-day-top {
		font-size: 1.5rem;
	}
}

@media(min-width: 1400px) {
	.resv-calendar-box .fc-daygrid-day-top {
		font-size: 1.2rem;
	}
}

/* cell style */

.resv-calendar-box .fc-daygrid-day-frame {
	/* margin: 0 auto;
  display: flex;
  flex: 1 0 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center; */
}

.resv-calendar-box .fc-daygrid-day-top {
	/* flex: 1 0 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center; */

	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	opacity: 0.7 !important;
}

	.resv-calendar-box .fc-daygrid-day-top .fc-daygrid-day-number {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

/* hide events */
.resv-calendar-box .fc .fc-daygrid-body .fc-daygrid-day-events {
	opacity: 0;
	width: 0;
	height: 0;
	margin-bottom: 0;
	min-height: calc(100% - 1px);
	z-index: 2;
}

.resv-calendar-box .fc-daygrid-day-events .fc-daygrid-event-harness {
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 10px;
}

.resv-calendar-box .fc-daygrid-day-events .fc-daygrid-event {
	border-radius: 10px;
}

.resv-calendar-box .fc-day-other {
	opacity: 0.4;
}

.fc .fc-daygrid-day.fc-day-today {
	background-color: transparent !important;
	border: solid 2px #91e0e6;
}

	.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-top {
		color: #008f99;
	}

/* additional-class */
.resv-calendar-box [role="gridcell"].day-selected {
	border: none;
	background-color: #e4f3f3;
}

	.resv-calendar-box [role="gridcell"].day-selected .fc-daygrid-day-top {
		color: #009BA7;
	}

.resv-calendar-box [role="gridcell"].fully-booked {
	border: none;
	background-color: #fff;
}

	.resv-calendar-box [role="gridcell"].fully-booked .fc-daygrid-day-top {
		color: #b4b4b4;
	}

	.resv-calendar-box [role="gridcell"].fully-booked:hover {
		cursor: default;
	}
