/**
 * Calendar app stylesheet
 */

html,body {
	margin:0;
	padding:0;
	height:100%;
	width: 100%;
	overflow: hidden;

	background: rgb(181,189,200); /* Old browsers */
	/* IE9 SVG, needs conditional override of 'filter' to 'none' */
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPHJhZGlhbEdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzUlIj4KICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNiNWJkYzgiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIzNiUiIHN0b3AtY29sb3I9IiM4MjhjOTUiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMjgzNDNiIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L3JhZGlhbEdyYWRpZW50PgogIDxyZWN0IHg9Ii01MCIgeT0iLTUwIiB3aWR0aD0iMTAxIiBoZWlnaHQ9IjEwMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-radial-gradient(center, ellipse cover,  rgba(181,189,200,1) 0%, rgba(130,140,149,1) 36%, rgba(40,52,59,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(181,189,200,1)), color-stop(36%,rgba(130,140,149,1)), color-stop(100%,rgba(40,52,59,1))); /* Chrome,Safari4+ */
	background: -webkit-radial-gradient(center, ellipse cover,  rgba(181,189,200,1) 0%,rgba(130,140,149,1) 36%,rgba(40,52,59,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-radial-gradient(center, ellipse cover,  rgba(181,189,200,1) 0%,rgba(130,140,149,1) 36%,rgba(40,52,59,1) 100%); /* Opera 12+ */
	background: -ms-radial-gradient(center, ellipse cover,  rgba(181,189,200,1) 0%,rgba(130,140,149,1) 36%,rgba(40,52,59,1) 100%); /* IE10+ */
	background: radial-gradient(ellipse at center,  rgba(181,189,200,1) 0%,rgba(130,140,149,1) 36%,rgba(40,52,59,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b5bdc8', endColorstr='#28343b',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */

	font-family: monospace, Helvetica, sans-serif;
	font-size: 16px;
	color: #222;

}

div#login_error {
	display: none;
	text-align: center;
	width: 100%;
	color: red;
}

div#wrapper {
    display: table;
    height: 100%;
    width: 100%;
}

div#topbar {
	color: #2d2929;
	display: table-row;
}

div#topbar #logout {
	position: absolute;
	right: 16px;
	top: 12px;
}

div#content {
	 display: table-row;
	 height: 100%;
}

.inline_div{
	display: inline-block;
}

/* LOGIN PAGE */
.login_input {
	display: block;
	width: 100%;
	height: 38px;
	margin-top: 2px;
	font-weight: 500;
	background: none;
	border: 0;
	border-bottom: 1px solid #d8d8d8;
	outline: 0;
}

.login_input:focus {
	border-bottom: 1px solid #3072b3;
	outline: 0;
}

#login_container input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0px 1000px #fafafa   inset;
}

button#login {
	margin-top: 30px;
	width: 100%;
}

div#login_container {
	position: relative;
	margin: 28px 60px;
}

div#login_wrapper {
		background: #ffffff; /* Old browsers */
	/* IE9 SVG, needs conditional override of 'filter' to 'none' */
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2YzZjNmMyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2VkZWRlZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f3f3f3), color-stop(51%,#ededed), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */

	-moz-border-radius: 34px;
	-webkit-border-radius: 34px;
	border-radius: 34px;
	-webkit-box-shadow: 0 2px 2px 0 #C2C2C2;
	box-shadow: 0 0px 20px 0 #C2C2C2;

	width: 300px;
	height: 222px;
	top: 50%;
	left: 50%;
	margin: -111px 0 0 -150px;
	position: absolute;
}

/* CALENDAR VIEW */
div#target_wrap {
	position: absolute;
  height: 100%;
  max-width: 60px;
  min-width: 60px;
  padding-top: 2px;
}

div#calendar_wrap {
  height: 100%;
  padding-left: 120px;
  overflow: auto;
  position: relative;
}

div.row_label {
	position: absolute;
	width: 120px;
	top: 0;
	left: -122px;
	display: table;
}
.row_label span {
	width: 120px;
	font-size: 14px;
	display: table-cell;
 	vertical-align: middle;
}

table#calendar {
	width: 100%;
	height: 100%;
}

table#calendar th {
	height: 22px;
	min-height: 22px;
	width: 26px;
	min-width: 26px;
	background-color: #333;
	color: #c2575b;
	line-height: 26px;
	border-radius: 4px;
	position: relative;
}

table#calendar tr {
	width: 100%;
	min-height: 26px;
}

table#calendar td {
	width: 26px;
	min-height: 26px;
	min-width: 26px;
	border-radius: 2px;
	background: #39BE59;
	position: relative;
	padding: 0;
	transition: all 0.1s linear;
}

table#calendar td div.start,
table#calendar td div.taken{
	width: 100%;
	height: 100%;
	background-color: #DB4B4B;
}

table#calendar td div.start:before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0;
  border-top: 30px solid #39BE59;
  border-right: 30px solid rgba(0,0,0,0);
  width: 0;
}

table#calendar td div.end {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	border-top: 26px solid #DB4B4B;
	border-right: 26px solid transparent;
}

table#calendar td div.insert_start,
table#calendar td div.insert_taken{
	width: 100%;
	height: 100%;
	background-color: blue;
}

table#calendar td div.insert_start:before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    border-top: 30px solid #39BE59;
    border-right: 30px solid rgba(0,0,0,0);
    width: 0;
}


div#end_container{
	width: 26px;
	height: 26px;
	border-radius: 2px;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
	display: none;
}

div#insert_end {
	width: 0;
	height: 0;
	border-top: 26px solid blue;
	border-right: 26px solid transparent;
}

table#calendar div.color_container{
	width: 100%;
	height: 100%;
	border-radius: 2px;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
}
table#calendar td div.alert{
	width: 100%;
	height: 100%;
	border-radius: 2px;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.3;
	background-color: black;
	z-index: 100;
}

table#calendar th div.current_day {
	border-radius: 6px;
	border: solid 2px #f76f76;
}

div.cell_wrap {
    height: 100%;
    width: 100%;
}


div.day_number {
	width: 25px;
	height: 25px;
	line-height: 25px;
	text-align: center;
	display: inline-block;
	float: right;
}

div.week_number {
	width: 14px;
	height: 14px;
	text-align: center;
	display: inline-block;
	font-size:13px;
	float: left;
}

div.day_data{
	clear: both;
}

div.varaus{
	border-bottom: solid 1px #bbb;
	margin-top: 5px;
	margin-left: 2px;
	margin-right: 2px;
	padding-bottom: 5px;
	cursor: pointer;
}

div.varaaja{
	font-size: 10px;
	color: #188B00;
	font-weight: bold;
}

div.target{
	font-weight: bold;
	font-size: 12px;
	color: #0000ff;
}

div.light_day{
	opacity: 0.3;
}

/* MONTH SELECTOR */

div.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

div#year_selector {
    width: 115px;
    margin-bottom: 7px;
    margin-top: 8px;
    height: 30px;
}

div#year {
	border-radius: 8px;
	color: #f76f76;
    background-color: #333;
	font-size: 18px;
	font-family: 'Helvetica Neue', sans-serif;
    height: 30px;
    line-height: 30px;
    width: 55px;
	text-align: center;
	display: inline-block;
}

div.arrow {
	height: 20px;
	width: 20px;
	border-radius: 10px;
	color: #f76f76;
    background-color: #333;
	font-size: 18px;
	font-family: 'Helvetica Neue', sans-serif;
	text-align: center;
	display: inline-block;
}

div#month_selector {
    background: rgba(0,0,0,.1);
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.15), 0 2px 4px rgba(0,0,0,.2) inset, 0 0 12px rgba(255,255,255,.1);
    font-family: "Helvetica Neue", sans-serif;
    font-size: 13px;
    position: relative;
    height: 30px;
    width: 740px;
    margin-bottom: 6px;
}

ul#monthlist {
	padding: 0;
	margin: 0;
	width: 100%;
}

ul#monthlist li {
	border-radius: 8px;
	display:inline-block;
    text-align:center;
	list-style-type: none;
	padding: 0 5px;
	font-size: 18px;
	line-height: 30px;
    color: #333;
}

ul#monthlist li:hover {
    color: #c2575b;
    background-color: #333;
}

ul#monthlist li.active, ul#monthlist li.active:hover {
  color: #f76f76;
  background-color: #333;
  height: 34px;
	line-height: 34px;
	margin-top: -2px;
}

/* DIALOGS */

div#new_user_inputs, div#edit_users_inputs {
	width: 400px;
	float: left;
	height: 100%
}
div.select_rights {
	width: 270px;
	height: 325px;
	float: right;
	overflow-y: auto;
	border: solid 2px #333;
	border-radius: 8px;
}

div.select_rights ul {
	padding: 0;
	margin: 0;
	width: 100%;
}

div.select_rights ul li {
  text-align: left;
	list-style-type: none;
}

div.select_rights ul li input,
div.select_rights ul li label {
  float: none;
}

div#new_user_inputs label,
div#add_object_dialog label,
div#edit_object_dialog label,
div#edit_users_inputs label {
	float: left;
	line-height: 28px;
}

div#add_user_dialog input,
div#add_object_dialog input,
div#edit_object_dialog input,
div#edit_users_dialog input,
div#edit_users_inputs select {
	float: right;
}

div#edit_users_inputs input,
div#edit_users_inputs select {
	width: 210px;
}

div.form_input_container {
	width: 400px;
	height: 38px;
}

div.form_input_container .label {
	width: 150px;
	float: left;
}

input.hasDatepicker {
	text-align: center;
	width: 148px
}

input.timeInput {
	text-align: center;
	width: 81px
}

textarea#reservation_info,
textarea#reservation_info_edit {
	height: 114px;
	width: 382px;
	border-radius: 4px;
}

/* MENY */

a {
	color: #c2575b;
	text-decoration: none;

	-webkit-transition: 0.15s color ease;
	   -moz-transition: 0.15s color ease;
	    -ms-transition: 0.15s color ease;
	     -o-transition: 0.15s color ease;
	        transition: 0.15s color ease;
}

a:hover {
	color: #f76f76;
}

h1, h2 {
	font-size: 24px;
	margin: 0 0 5px 0;
	padding 0;
}

.meny {
	display: none;
	padding: 30px 0 30px 15px;
	overflow: auto;
	background: #333;
	color: #eee;
	overflow: hidden;

	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}

.meny ul {
	margin: 0;
	padding: 0;
	margin: 10px 0 20px 0;
}

.meny ul li {
	margin: 0 0 5px 10px;
	padding: 0;
	display: block;
	width: 210px;
	list-style: none;
	font-size: 20px;
}

.meny ul li.divider {
	height: 12px;
	margin: 0;
	padding: 0;
}

/**
 * Hint graphic that appears while menu is inactive
 */
.meny-arrow {
	position: absolute;
	z-index: 10;

	border: 10px solid transparent;

	-webkit-transition: opacity 0.4s ease 0.4s;
	   -moz-transition: opacity 0.4s ease 0.4s;
	    -ms-transition: opacity 0.4s ease 0.4s;
	     -o-transition: opacity 0.4s ease 0.4s;
	        transition: opacity 0.4s ease 0.4s;
}

.meny-left .meny-arrow {
	left: 14px;
	top: 50%;
	margin-top: -16px;
	border-left: 16px solid #333;
}
.meny-right .meny-arrow {
	right: 14px;
	top: 50%;
	margin-top: -16px;
	border-right: 16px solid #333;
}
.meny-top .meny-arrow {
	left: 50%;
	top: 14px;
	margin-left: -16px;
	border-top: 16px solid #333;
}
.meny-bottom .meny-arrow {
	left: 50%;
	bottom: 14px;
	margin-left: -16px;
	border-bottom: 16px solid #333;
}
.meny-active .meny-arrow {
	opacity: 0;

	-webkit-transition: opacity 0.2s ease;
	   -moz-transition: opacity 0.2s ease;
	    -ms-transition: opacity 0.2s ease;
	     -o-transition: opacity 0.2s ease;
	        transition: opacity 0.2s ease;
}

/**
 * Main contents area
 */
.contents {
	background: #ddd;
	padding: 0 40px 20px 40px;
	width: 100%;
	height: 100%;
	overflow: hidden;

	-webkit-overflow-scrolling: touch;
	-webkit-transform-style: preserve-3d;

	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}
	.contents>article {
		max-width: 400px;
	}
	.contents p {
		margin: 10px 0 10px 0;
		font-size: 16px;
		line-height: 1.32;
	}
	.contents small {
		display: block;
		margin-top: 10px;
		padding-top: 10px;
		color: #333;
		font-size: 0.85em;
		border-top: 1px dashed #ccc;

		-webkit-text-size-adjust: none;
	}
	.contents .sharing {
		position: absolute;
		bottom: 20px;
	}


/* BUTTONS */

.button {
    position: relative;
    overflow: visible;
    display: inline-block;
    padding: 0.5em 1em;
    border: 1px solid #d4d4d4;
    margin: 0;
    text-decoration: none;
    text-shadow: 1px 1px 0 #fff;
    font: 16px/normal sans-serif;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    background-color: #ececec;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
    background-image: -webkit-linear-gradient(#f4f4f4, #ececec);
    background-image: -moz-linear-gradient(#f4f4f4, #ececec);
    background-image: -o-linear-gradient(#f4f4f4, #ececec);
    background-image: -ms-linear-gradient(#f4f4f4, #ececec);
    background-image: linear-gradient(#f4f4f4, #ececec);
    -moz-background-clip: padding;
    background-clip: padding; /**/
    /* commented out due to Opera 11.10 bug */
    -webkit-border-radius: 0.2em;
    -moz-border-radius: 0.2em;
    border-radius: 0.2em; /* IE hacks */
    zoom: 1;
    *display: inline;
}

.button:hover,
.button:focus {
    border-color: #3072b3;
    border-bottom-color: #2a65a0;
    text-decoration: none;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    color: #fff;
    background-color: #3C8DDE;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#599bdc), to(#3072b3));
    background-image: -webkit-linear-gradient(#599bdc, #3072b3);
    background-image: -moz-linear-gradient(#599bdc, #3072b3);
    background-image: -o-linear-gradient(#599bdc, #3072b3);
    background-image: -ms-linear-gradient(#599bdc, #3072b3);
    background-image: linear-gradient(#599bdc, #3072b3);
}

.button:active,
.button.active {
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    color: #fff;
    border-color: #2a65a0;
    border-bottom-color: #3884CF;
    background-color: #3072b3;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3072b3), to(#599bdc));
    background-image: -webkit-linear-gradient(#3072b3, #599bdc);
    background-image: -moz-linear-gradient(#3072b3, #599bdc);
    background-image: -o-linear-gradient(#3072b3, #599bdc);
    background-image: -ms-linear-gradient(#3072b3, #599bdc);
    background-image: linear-gradient(#3072b3, #599bdc);
}

/* overrides extra padding on button elements in Firefox  */

.button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.button.primary { font-weight: bold }

/* ===[ Danger Button ]=== */

.button.danger { color: #900 }

.button.danger:hover,
.button.danger:focus,
.button.danger:active {
    border-color: #b53f3a;
    border-bottom-color: #a0302a;
    color: #fff;
    background-color: #dc5f59;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dc5f59), to(#b33630));
    background-image: -webkit-linear-gradient(#dc5f59, #b33630);
    background-image: -moz-linear-gradient(#dc5f59, #b33630);
    background-image: -o-linear-gradient(#dc5f59, #b33630);
    background-image: -ms-linear-gradient(#dc5f59, #b33630);
    background-image: linear-gradient(#dc5f59, #b33630);
}

.button.danger:active,
.button.danger.active {
    border-color: #a0302a;
    border-bottom-color: #bf4843;
    background-color: #b33630;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b33630), to(#dc5f59));
    background-image: -webkit-linear-gradient(#b33630, #dc5f59);
    background-image: -moz-linear-gradient(#b33630, #dc5f59);
    background-image: -o-linear-gradient(#b33630, #dc5f59);
    background-image: -ms-linear-gradient(#b33630, #dc5f59);
    background-image: linear-gradient(#b33630, #dc5f59);
}

/* ===[ Pill ]=== */

.button.pill {
    -webkit-border-radius: 50em;
    -moz-border-radius: 50em;
    border-radius: 50em;
}

/* ===[ Disable ]=== */

.button.disabled,
.button:disabled {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: alpha(opacity=50);
    opacity: 0.5;
}

/* ===[ Big ]=== */

.button.big { font-size: 14px }

/* ===[ Button Groups ]=== */

.button-group {
    list-style: none;
    padding: 0;
    margin: 10px; /* IE hacks */
    zoom: 1;
    display: block;
    overflow: hidden;
}

.button + .button,
.button + .button-group,
.button-group + .button,
.button-group + .button-group { margin-left: 15px }

.button-group li {
    float: left;
    padding: 0;
    margin: 0;
}

.button-group .button {
    float: left;
    margin-left: -1px;
}

.button-group > .button:not(:first-child):not(:last-child),
.button-group li:not(:first-child):not(:last-child) .button {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.button-group > .button:first-child,
.button-group li:first-child .button {
    margin-left: 0;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-topright: 0;
    -moz-border-radius-bottomright: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.button-group > .button:last-child,
.button-group li:last-child > .button {
    -webkit-border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-topleft: 0;
    -moz-border-radius-bottomleft: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ===[ Generic Unordered List ]=== */

ul.generic {
    list-style: none;
    display: block;
    overflow: hidden;
    margin: 10px;
    padding: 0;
}

ul.generic li {
    float: left;
    margin-left: 10px;
}

ul.generic li:first-child { margin-left: 0 }