/*
| Reusable month pager: previous/next arrows and a month select.
|
| The host sets data-month, data-year and the allowed min/max attributes;
| monthnav.js fills the select and dispatches "monthnav:change".
*/

.monthnav {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	align-items: center;
	width: 100%;
	padding: 4px;
	border-radius: 12px;
	background: #f1f4f8;
}

.monthnav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #7b8794;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.monthnav-btn:hover:not(:disabled),
.monthnav-btn:focus:not(:disabled) {
	background: #fff;
	color: #33424f;
	outline: 0;
}

.monthnav-btn:disabled {
	background: transparent;
	color: #7b8794;
	opacity: .35;
	cursor: default;
}

.monthnav-btn svg {
	display: block;
	width: 18px;
	height: 18px;
}

.monthnav-picker {
	position: relative;
	display: block;
	min-width: 0;
	height: 32px;
}

.monthnav-select {
	display: block;
	width: 100%;
	height: 32px;
	padding: 0 22px 0 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #33424f;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-align-last: center;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}

.monthnav-select:focus {
	outline: 0;
	box-shadow: inset 0 0 0 2px rgba(50, 118, 177, .2);
}

.monthnav-select option {
	color: #26333f;
	font-weight: 400;
	text-align: left;
}

.monthnav-caret {
	position: absolute;
	top: 50%;
	right: 4px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	color: #8b97a3;
	pointer-events: none;
}

@media (max-width: 767px) {
	.monthnav-select {
		font-size: 13.5px;
	}
}
