:root {
	--scale: 0;
	--tooltip-color: #333333;
	--arrow-size: 10px;
	--date-border: #666666;
}

#wbfx-hm-calendar {
	max-width: 900px;
	margin: 0 auto;
	font-size: 16px;
}

#wbfx-hm-calendar * {
	box-sizing: border-box;
}

.grid-box {
	display: grid;
	justify-content: space-between;
	align-content: center;
	gap: 20px;
}

.wbfx-heading {
	text-align: center;
	margin: 0;
	padding: 10px 0;
	color: #E7E7E7;
}

.wbfx-heading.wbfx-year {
	color: #333333;
}

.wbfx-month .wbfx-heading {
	background: #008DD2;
	border-left: 1px solid var(--date-border);
	border-right: 1px solid var(--date-border);
	border-top: 1px solid var(--date-border);
	font-size: 18px;
}

.wbfx-calendar.grid-box {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wbfx-month .grid-box {
	grid-template-columns: repeat(7, 1fr);
	border-top: 1px solid var(--date-border);
	border-left: 1px solid var(--date-border);
	gap: 0;
	margin-bottom: 10px;
}

.wbfx-date {
	border-bottom: 1px solid var(--date-border);
	border-right: 1px solid var(--date-border);
	text-align: center;
}

.wbfx-date-title {
	color: #008DD2;
}

.wbfx-date-empty {
	border-right: 0;
}

.wbfx-date span {
	display: block;
	width: 100%;
	height: 100%;
	padding: 5px 0;
	font-size: 16px;
	line-height: 18px;
}

.wbfx-weekend,
.wbfx-holiday,
.wbfx-transferred,
.wbfx-pre-holi {
	color: #E7E7E7;
}
.wbfx-weekend span {
	background: #858585;
}

.wbfx-transferred span {
	background: #008000;
}

.wbfx-holiday span {
	background: #FF0000;
}

.wbfx-pre-holi span {
	background: #ffa500;
}

.wxfx-today span {
	box-shadow: 2px 2px 15px -5px #888;
	font-weight: bold;
	border-radius: 50%;
}

/* tooltip */
.wbfx-tooltip { position: relative; }
.wbfx-tooltip::before,
.wbfx-tooltip::after {
	position: absolute;
	top: 0;
	left: 50%;
	color: #E7E7E7;
	transform: translateX(-50%) translateY(var(--translate-y, 0)) scale(var(--scale));
	transition: 500ms transform;
	z-index: 1;
}
.wbfx-tooltip::before {
	--translate-y: calc(-100% - var(--arrow-size));

	content: attr(data-tooltip);
	padding: 5px 10px;
	border-radius: 5px;
	text-align: center;
	width: max-content;
	max-width: 300px;
	background: var(--tooltip-color);
	transform-origin: bottom center;
}
.wbfx-tooltip:hover::before,
.wbfx-tooltip:hover::after {
	--scale: 1;
}
.wbfx-tooltip::after {
	--translate-y: calc(-1.1 * var(--arrow-size));

	content: '';
	border: var(--arrow-size) solid transparent;
	border-top-color: var(--tooltip-color);
	transform-origin: top center;
}
/* /tooltip */

.wbfx-month-data {
	font-size: 14px;
	font-weight: bold;
	margin: 0 !important;
}

.wbfx-month-data.wbfx-msl {
	font-weight: normal;
}

.wbfx-month-data.wbfx-msl span {
	color: #ffa500;
}
