/*!
 * Keystone JS
 *
 * Copyright 2016 Jed Watson
 * Licensed under the MIT License
 * http://opensource.org/licenses/MIT
 */

@font-face {
  font-family: "Open Sans", sans-serif;
  src: url('https://fonts.googleapis.com/css?family=PT+Serif|Open+Sans:300,400,600,700,800')
}

// Elemental
// ------------------------------

@import "@{elementalPath}/less/elemental.less";


// KEYSTONE VARIABLES
@import "variables.less";

// KEYSTONE AUTH
@import "auth.less";

// KEYSTONE SETUP
@import "keystone/animation.less";
@import "keystone/base.less";
@import "keystone/dashboard.less";
@import "keystone/forms.less";
@import "keystone/navigation.less";
@import "keystone/tables.less";
@import "keystone/utils.less";

@import "keystone/list.less";
@import "keystone/list-dropzone.less";
@import "keystone/item.less";
@import "keystone/toolbar.less";

// COMPONENTS
@import "keystone/wysiwyg.less";
@import "keystone/popout.less";


// REACT FIELDS
@import "react/react.less";

// CMS Layout
@import "adminMenu.less";
@import "contentWrap.less";

// DayPicker styles
// ------------------------------

.DayPicker {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	outline: none;
	padding: 1rem;
	position: relative;
	user-select: none;

	&:focus .DayPicker-Caption {
		text-decoration: underline;
	}
}

// wrap the calendar in chrome
.DayPicker--chrome {
	background-color: #fafafa;
	border-radius: @border-radius-base;
	border: 1px solid @input-border-color;
}

.DayPicker-Month {
	border-collapse: collapse;
	border-spacing: 0;
	display: inline-block;
	// margin: 0 1rem;
	table-layout: fixed;
	user-select: none;
	vertical-align: top;
	margin: 0 10px;
}

.DayPicker-NavBar {
	left: 0;
	padding: 0 .5rem;
	position: absolute;
	right: 0;
}

.DayPicker-NavButton {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	cursor: pointer;
	height: 1.5rem;
	position: absolute;
	width: 1.5rem;
}

.DayPicker-NavButton--prev {
	left: 1rem;
	background-image: url("../images/datepicker-prev.svg");
}

.DayPicker-NavButton--next {
	right: 1rem;
	background-image: url("../images/datepicker-next.svg");
}

.Selectable .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside) {
	background-color: #f0f8ff !important;
	color: #4a90e2;
}
.Selectable .DayPicker-Day {
	border-radius: 0 !important;
}
.Selectable .DayPicker-Day--start {
	border-top-left-radius: 50% !important;
	border-bottom-left-radius: 50% !important;
}
.Selectable .DayPicker-Day--end {
	border-top-right-radius: 50% !important;
	border-bottom-right-radius: 50% !important;
}

/*.CodeMirror-gutters {
	z-index: initial !important;
}
.CodeMirror-gutter-elt,
.CodeMirror-gutter-wrapper
.CodeMirror-code > div {
	z-index: 0 !important;
}
.CodeMirror-vscrollbar,
.CodeMirror-hscrollbar {
	z-index: 1 !important;
}*/

.CodeMirror-download-container {
	text-align: right;
	border-bottom: 1px solid #ccc;
}

.DayPicker-Caption {
	display: table-caption;
	height: 1.5rem;
	text-align: center;
}

.DayPicker-Weekdays {
	display: table-header-group;
}

.DayPicker-WeekdaysRow {
	display: table-row;
}

.DayPicker-Weekday {
	display: table-cell;
	font-size: .875em;
	font-weight: 500;
	padding: .5rem;
	text-align: center;
}

.DayPicker-Body {
	display: table-row-group;
}

.DayPicker-Week {
	display: table-row;
}

.DayPicker-Day {
	background-color: @dropdown-bg;
	border: 1px solid @input-border-color;
	cursor: pointer;
	display: table-cell;
	padding: .5rem 0;
	text-align: center;
	vertical-align: middle;

	&:hover,
	&:focus {
		background-color: mix(@link-color, @dropdown-bg, 10%);
		color: @link-color;
		outline: none;
	}
}

.DayPicker--interactionDisabled .DayPicker-Day {
	cursor: default;
}


// Modifiers

.DayPicker-Day--today {
	color: #FF4981; // pink
	font-weight: 500;
}

.DayPicker-Day--disabled {
	color: @gray;
	cursor: default;
	background-color: lighten(@gray, 7);
}

.DayPicker-Day--sunday {
	color: @gray;
	background-color: lighten(@gray, 10);
}

.DayPicker-Day--outside {
	background-color: rgba(0, 0, 0, 0.05);
	cursor: default;
	color: @gray;
}

.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
	color: white;
	background-color: @app-primary;
}

// Locales

.DayPicker--ar {
	direction: rtl;
}

// Custom

@daypicker-indicator-size: 7px;

.DayPicker-Indicator {
	left: 1rem;
	position: absolute;
	top: -(@daypicker-indicator-size - 1);
}
.DayPicker-Indicator__bg,
.DayPicker-Indicator__border {
	border: @daypicker-indicator-size solid transparent;
	border-top-width: 0;
	display: inline-block;
	left: 0;
	top: 0;
	height: 0;
	position: absolute;
	width: 0;
}

.DayPicker-Indicator__border {
	border-bottom-color: darken(@input-border-color, 10%);
	top: -1px;
}
.DayPicker-Indicator__bg {
	border-bottom-color: #fafafa;
}


/*!
 * https://github.com/YouCanBookMe/react-datetime
 */

 .rdt {
	position: relative;
	display: inline-block;
	width: 200px;
	}
	.rdt:not(:first-child) {
		margin-left: 15px;
	}
  .rdtPicker {
	display: none;
	position: absolute;
	width: 250px;
	padding: 4px;
	margin-top: 1px;
	z-index: 99999 !important;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.1);
	border: 1px solid #f9f9f9;
  }
  .rdtOpen .rdtPicker {
	display: block;
  }
  .rdtStatic .rdtPicker {
	box-shadow: none;
	position: static;
  }
  
  .rdtPicker .rdtTimeToggle {
	text-align: center;
  }
  
  .rdtPicker table {
	width: 100%;
	margin: 0;
  }
  .rdtPicker td,
  .rdtPicker th {
	text-align: center;
	height: 28px;
  }
  .rdtPicker td {
	cursor: pointer;
  }
  .rdtPicker td.rdtDay:hover,
  .rdtPicker td.rdtHour:hover,
  .rdtPicker td.rdtMinute:hover,
  .rdtPicker td.rdtSecond:hover,
  .rdtPicker .rdtTimeToggle:hover {
	background: #eeeeee;
	cursor: pointer;
  }
  .rdtPicker td.rdtOld,
  .rdtPicker td.rdtNew {
	color: #999999;
  }
  .rdtPicker td.rdtToday {
	position: relative;
  }
  .rdtPicker td.rdtToday:before {
	content: '';
	display: inline-block;
	border-left: 7px solid transparent;
	border-bottom: 7px solid #428bca;
	border-top-color: rgba(0, 0, 0, 0.2);
	position: absolute;
	bottom: 4px;
	right: 4px;
  }
  .rdtPicker td.rdtActive,
  .rdtPicker td.rdtActive:hover {
	background-color: #428bca;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  }
  .rdtPicker td.rdtActive.rdtToday:before {
	border-bottom-color: #fff;
  }
  .rdtPicker td.rdtDisabled,
  .rdtPicker td.rdtDisabled:hover {
	background: none;
	color: #999999;
	cursor: not-allowed;
  }
  
  .rdtPicker td span.rdtOld {
	color: #999999;
  }
  .rdtPicker td span.rdtDisabled,
  .rdtPicker td span.rdtDisabled:hover {
	background: none;
	color: #999999;
	cursor: not-allowed;
  }
  .rdtPicker th {
	border-bottom: 1px solid #f9f9f9;
  }
  .rdtPicker .dow {
	width: 14.2857%;
	border-bottom: none;
  }
  .rdtPicker th.rdtSwitch {
	width: 100px;
  }
  .rdtPicker th.rdtNext,
  .rdtPicker th.rdtPrev {
	font-size: 21px;
	vertical-align: top;
  }
  
  .rdtPrev span,
  .rdtNext span {
	display: block;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;
  }
  
  .rdtPicker th.rdtDisabled,
  .rdtPicker th.rdtDisabled:hover {
	background: none;
	color: #999999;
	cursor: not-allowed;
  }
  .rdtPicker thead tr:first-child th {
	cursor: pointer;
  }
  .rdtPicker thead tr:first-child th:hover {
	background: #eeeeee;
  }
  
  .rdtPicker tfoot {
	border-top: 1px solid #f9f9f9;
  }
  
  .rdtPicker button {
	border: none;
	background: none;
	cursor: pointer;
  }
  .rdtPicker button:hover {
	background-color: #eee;
  }
  
  .rdtPicker thead button {
	width: 100%;
	height: 100%;
  }
  
  td.rdtMonth,
  td.rdtYear {
	height: 50px;
	width: 25%;
	cursor: pointer;
  }
  td.rdtMonth:hover,
  td.rdtYear:hover {
	background: #eee;
  }
  
  .rdtCounters {
	display: inline-block;
  }
  
  .rdtCounters > div {
	float: left;
  }
  
  .rdtCounter {
	height: 100px;
  }
  
  .rdtCounter {
	width: 40px;
  }
  
  .rdtCounterSeparator {
	line-height: 100px;
  }
  
  .rdtCounter .rdtBtn {
	height: 40%;
	line-height: 40px;
	cursor: pointer;
	display: block;
  
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;
  }
  .rdtCounter .rdtBtn:hover {
	background: #eee;
  }
  .rdtCounter .rdtCount {
	height: 20%;
	font-size: 1.2em;
  }
  
  .rdtMilli {
	vertical-align: middle;
	padding-left: 8px;
	width: 48px;
  }
  
  .rdtMilli input {
	width: 100%;
	font-size: 1.2em;
	margin-top: 37px;
  }
  
  .rdtDay.in-selecting-range {
	background-color: rgba(66, 139, 202, 0.4);
  }
  
 ._base64_image_preview{
 	border: 1px solid #666666;
 	padding: 0;
 	background-color: white;
 	display: inline-block;
 }
  

// CUSTOM ADMIN APPLICATION STYLES
@import (optional) "@{customStylesPath}";