/* ***************************************
	DATE PICKER
**************************************** */
.ui-datepicker {
	display: none;
	margin: 0;
	padding: 0;
	border-radius: 2px;
	overflow: hidden;
	min-width: 300px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
	border-top: 1px solid var(--elgg-border-color-soft);
	background: #fff;
}

.ui-datepicker-inline {
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.ui-datepicker-header {
	position: relative;
	background: transparent;
	padding: 0.25em;
	border: 0;
	
	a {
		padding: 0 0.5em;
	}
}

.ui-datepicker-prev,
.ui-datepicker-next {
	position: absolute;
	top: 0.5em;
	cursor: pointer;
	
	&.ui-state-hover {
		border: none;
		background: transparent;
		font-weight: bold;
	}
	
	&.ui-state-disabled {
		display: none;
	}
}

.ui-datepicker-prev {
	left: 0.5rem;
}

.ui-datepicker-next {
	right: 0.5rem;
}

.ui-datepicker-title {
	line-height: 2rem;
	margin: 0 2rem;
	text-align: center;
	font-weight: normal;
	
	select {
		max-width: 6.25rem;
		display: inline-block;
		margin: 2px;
		border: 1px solid var(--elgg-border-color-mild);
		padding: 4px;
		border-radius: 3px;
	}
}

.ui-datepicker-calendar {
	width: 90%;
	margin: 4% auto;
	font-size: 0.85rem;
	
	.ui-state-default {
		border: 1px solid var(--elgg-border-color-mild);
		color: var(--elgg-text-color-strong);
		background: #ffffff;
		border-radius: 2px;
	}
	
	.ui-state-hover,
	.ui-state-active,
	.ui-state-active.ui-state-hover {
		border: 1px solid var(--elgg-border-color-highlight);
		box-shadow: 0 0 0 0 var(--elgg-border-color-strong) inset;
		font-weight: normal;
		color: var(--elgg-text-color-highlight);
		background: var(--elgg-background-color-soft);
	}
	
	.ui-state-disabled .ui-state-default {
		border: none;
		color: var(--elgg-text-color-mild);
		cursor: not-allowed;
		background: none;
	}
}

.ui-datepicker {
	th {
		color: var(--elgg-text-color-strong);
		border: none;
		font-weight: bold;
		padding: 0.5rem 0.25rem;
		text-align: center;
	}
	
	td {
		padding: 1px;
		min-width: 2.5rem;
		
		span,
		a {
			display: block;
			padding: 0.25rem;
			text-align: center;
			text-decoration: none;
		}
	}
}
