//	=================
//    	Imports
//	=================

@import '../../../assets/base/color_variables';   	// Color Variables
@import '../../../assets/base/fonticons';   			// Fonticons Variables
@import '../../../assets/base/urls';   				// URLS Variables
@import '../../../assets/base/utilities_variables';  // Utilities Variables

/*  Larger Screen Styling */
select {
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	border: $b-width-1 $solid $color_6;
}
.daterangepicker {
	position: $pos-abs;
	color: inherit;
	background-color: $white;
	border-radius: 4px;
	width: 278px;
	padding: 4px;
	margin-top: 1px;
	top: 100px;
	left: 20px;
	&:before {
		position: $pos-abs;
		display: inline-block;
		border-bottom-color: $color_243;
		content: '';
		top: -7px;
		border-right: $b-width-7 $solid $color_none;
		border-left: $b-width-7 $solid $color_none;
		border-bottom: $b-width-7 $solid $color_103;
	}
	&:after {
		position: $pos-abs;
		display: inline-block;
		border-bottom-color: $color_243;
		content: '';
		top: -6px;
		border-right: $b-width-6 $solid $color_none;
		border-bottom: $b-width-6 $solid $white;
		border-left: $b-width-6 $solid $color_none;
	}
	.calendar {
		display: none;
		max-width: 270px;
		margin: 4px;
		th {
			white-space: nowrap;
			text-align: $align-center;
			min-width: 32px;
			color: $additional-color-11;
			text-transform: $transform-upper;
			font-weight: 600;
		}
		td {
			white-space: nowrap;
			text-align: $align-center;
			min-width: 32px;
			color: $additional-color-11;
			text-transform: $transform-upper;
			font-weight: 600;
		}
	}
	.calendar.single {
		.calendar-table {
			border: none;
		}
	}
	.calendar-table {
		border: $b-width-1 $solid $white;
		padding: 4px;
		border-radius: 4px;
		background-color: $white;
	}
	table {
		width: 100%;
		margin: 0;
	}
	td {
		text-align: $align-center;
		width: 20px;
		height: 20px;
		border-radius: 4px;
		border: $b-width-1 $solid $color_none;
		white-space: nowrap;
		cursor: pointer;
	}
	th {
		text-align: $align-center;
		width: 20px;
		height: 20px;
		border-radius: 4px;
		border: $b-width-1 $solid $color_none;
		white-space: nowrap;
		cursor: pointer;
	}
	td.available {
		&:hover {
			background: $color_56;
			color: $white !important;
			border-color: $color_none;
			color: inherit;
		}
	}
	th.available {
		&:hover {
			background: $color_56;
			color: $white !important;
			border-color: $color_none;
			color: inherit;
		}
	}
	td.week {
		font-size: 80%;
		color: $color_103;
	}
	th.week {
		font-size: 80%;
		color: $color_103;
	}
	td.off {
		background-color: $white;
		border-color: $color_none;
		color: $color_299;
	}
	td.off.in-range {
		background-color: $white;
		border-color: $color_none;
		color: $color_299;
	}
	td.off.start-date {
		background-color: $white;
		border-color: $color_none;
		color: $color_299;
	}
	td.off.end-date {
		background-color: $white;
		border-color: $color_none;
		color: $color_299;
	}
	td.in-range {
		background-color: $color_137;
		border-color: $color_none;
		color: $black;
		border-radius: $br-0;
	}
	td.start-date {
		border-radius: $br-4 $br-0 $br-0 $br-4;
	}
	td.end-date {
		border-radius: $br-0 $br-4 $br-4 $br-0;
	}
	td.start-date.end-date {
		border-radius: $br-4;
	}
	td.active {
		background-color: $color_57;
		border-color: $color_none;
		color: $white;
		&:hover {
			background-color: $color_57;
			border-color: $color_none;
			color: $white;
		}
	}
	th.month {
		width: auto;
	}
	td.disabled {
		color: $color_299;
		cursor: not-allowed;
		text-decoration: line-through;
	}
	option.disabled {
		color: $color_299;
		cursor: not-allowed;
		text-decoration: line-through;
	}
	select.monthselect {
		font-size: 12px;
		padding: 1px;
		height: auto;
		margin: 0;
		cursor: default;
		margin-right: 0%;
		width: 50%;
		float: $align-left;
	}
	select.yearselect {
		font-size: 12px;
		padding: 1px;
		height: auto;
		margin: 0;
		cursor: default;
		width: 50%;
	}
	select.hourselect {
		width: 50px;
		margin-bottom: $m-0;
	}
	select.minuteselect {
		width: 50px;
		margin-bottom: $m-0;
	}
	select.secondselect {
		width: 50px;
		margin-bottom: $m-0;
	}
	select.ampmselect {
		width: 50px;
		margin-bottom: $m-0;
	}
	.input-mini {
		border: $b-width-1 $solid $color_103;
		border-radius: 4px;
		color: $color_9;
		height: 30px;
		line-height: 30px;
		display: block;
		vertical-align: $v-align-middle;
		margin: $m-0 $m-0 $m-5 $m-0;
		padding: 0 6px 0 28px;
		width: 100%;
	}
	.input-mini.active {
		border: $b-width-1 $solid $color_529;
		border-radius: 4px;
	}
	.daterangepicker_input {
		position: $pos-rel;
		i {
			position: $pos-abs;
			left: 8px;
			top: 8px;
		}
	}
	.calendar-time {
		text-align: $align-center;
		margin: 5px auto;
		line-height: 30px;
		position: $pos-rel;
		padding-left: 28px;
		select.disabled {
			color: $color_103;
			cursor: not-allowed;
		}
	}
}
.daterangepicker.opensleft {
	&:before {
		right: 9px;
	}
	&:after {
		right: 10px;
	}
}
.daterangepicker.openscenter {
	&:before {
		left: 0;
		right: 0;
		width: 0;
		margin-left: auto;
		margin-right: auto;
	}
	&:after {
		left: 0;
		right: 0;
		width: 0;
		margin-left: auto;
		margin-right: auto;
	}
}
.daterangepicker.opensright {
	&:before {
		left: 9px;
	}
	&:after {
		left: 10px;
	}
}
.daterangepicker.dropup {
	margin-top: -5px;
	&:before {
		top: initial;
		bottom: -7px;
		border-bottom: initial;
		border-top: 7px $solid $color_103;
	}
	&:after {
		top: initial;
		bottom: -6px;
		border-bottom: initial;
		border-top: $b-width-6 $solid $white;
	}
}
.daterangepicker.dropdown-menu {
	max-width: none;
	z-index: 999;
}
.daterangepicker.single {
	.ranges {
		float: none;
	}
	.calendar {
		float: none;
	}
}
.daterangepicker.show-calendar {
	.calendar {
		display: block;
	}
}
.daterangepicker.rtl {
	.input-mini {
		padding-right: 28px;
		padding-left: 6px;
	}
	.daterangepicker_input {
		i {
			left: auto;
			right: 8px;
		}
	}
}
.ranges {
	font-size: 11px;
	float: none;
	margin: 4px;
	text-align: left;
	ul {
		list-style: none;
		margin: 0 auto;
		padding: 0;
		width: 100%;
	}
	li {
		font-size: 13px;
		background-color: $light-default;
		border: $b-width-1 $solid $light-default;
		border-radius: 4px;
		color: $color_529;
		padding: 3px 12px;
		margin-bottom: 8px;
		cursor: pointer;
		&:hover {
			background-color: $color_529;
			border: $b-width-1 $solid $white;
			border-radius: 2px;
			color: $white;
		}
	}
	li.active {
		background-color: $color_529;
		border: $b-width-1 $solid $color_529;
		color: $white;
	}
}
@media (min-width: 564px) {
	.daterangepicker {
		width: auto;
		.ranges {
			ul {
				width: 160px;
			}
		}
	}
	.daterangepicker.single {
		.ranges {
			ul {
				width: 100%;
			}
		}
		.calendar.left {
			clear: none;
		}
	}
	.daterangepicker.single.ltr {
		.ranges {
			float: $align-left;
		}
		.calendar {
			float: $align-left;
		}
	}
	.daterangepicker.single.rtl {
		.ranges {
			float: $align-right;
		}
		.calendar {
			float: $align-right;
		}
	}
	.daterangepicker.ltr {
		direction: ltr;
		text-align: left;
		.calendar.left {
			clear: left;
			margin-right: 0;
			.calendar-table {
				border-right: none;
				border-top-right-radius: $br-0;
				border-bottom-right-radius: $br-0;
				padding-right: 12px;
			}
		}
		.calendar.right {
			margin-left: 0;
			.calendar-table {
				border-left: none;
				border-top-left-radius: $br-0;
				border-bottom-left-radius: $br-0;
			}
		}
		.left {
			.daterangepicker_input {
				padding-right: 12px;
			}
		}
		.ranges {
			float: $align-left;
		}
		.calendar {
			float: $align-left;
		}
	}
	.daterangepicker.rtl {
		direction: rtl;
		text-align: right;
		.calendar.left {
			clear: right;
			margin-left: 0;
			.calendar-table {
				border-left: none;
				border-top-left-radius: $br-0;
				border-bottom-left-radius: $br-0;
				padding-left: 12px;
			}
		}
		.calendar.right {
			margin-right: 0;
			.calendar-table {
				border-right: none;
				border-top-right-radius: $br-0;
				border-bottom-right-radius: $br-0;
			}
		}
		.left {
			.daterangepicker_input {
				padding-left: 12px;
			}
		}
		.ranges {
			text-align: right;
			float: $align-right;
		}
		.calendar {
			text-align: right;
			float: $align-right;
		}
	}
}
@media (min-width: 730px) {
	.daterangepicker {
		.ranges {
			width: auto;
		}
		.calendar.left {
			clear: none !important;
		}
	}
	.daterangepicker.ltr {
		.ranges {
			float: $align-left;
		}
	}
	.daterangepicker.rtl {
		.ranges {
			float: $align-right;
		}
	}
}
