/* color schema:
 * dark blue:  #00132B;
 * #7F9DB0;
 * #C5E2ED;
 * asbred: #ed1639;
 * asbgreen: #dee952;
*/

#callDialog {
	display: none;
}

#datatablePermissions legend {
	display: inline;
}

#datatablePermissions input {
	margin-right: 35px;
}

p {
    margin-bottom: 1em;
}

li {
    margin-left: 0.4em;
}

table.contacts {
	margin-right: 3em;
}

table.contacts th {
	font-weight: bold;
	font-size: 100%;
	border:0;
	padding-right: 10px;
	text-align: right;
}

table.contacts td {
	border: 0;
	padding-right: 0;
	min-width: 100px;
}

table.dataTable {
	clear: right;
}

table.dataTable .group {
	background-color: lightgray;
	border-bottom: 1px solid black;
	border-top: 1px solid black;
}


.dataTables_paginate {
	font-size: 110%;
	font-weight: bold;
	margin: 3px;
}

.dataTables_wrapper {
	clear: none !important;
}

.ColVis {b
	float: left;
}

.dataTables_info {
	font-size: 120%;
	font-weight: bold;
	margin-top: 5px;
}

.datatable th {
	background-color: white;
}

.ui-tabs-nav {
	height: 35px;
}

.ui-widget-content {
	/*border: 0;*/
}

.ui-accordion-header {
	padding: 5px;
	padding-left: 25px;
	
}

.current {
	font-weight: bold;
}

.paginator {
	font-size: 120%;
}

html {
	height: 100%;
}

body {
	height: 100%;
	font-family: Arial, Helvetica, sans-serif;
}

ul {
	margin-left: 10px;
}

#container {
	min-height: 100%;
	position: relative;
}

a, a:link, a:visited {
	color: #ed1639;
	text-decoration: none;
}

a {
	color: #ed1639;
	text-decoration: none;
}


header.main {
	background-color: white;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 5px;
	padding-bottom: 5px;
	border-bottom: 1px dashed #00132B;
	margin-bottom: 20px;
	height: 70px;
}

#logo {
	float: left;
	width: 80%;
}

header.main h1 {
	font-size: 30px;
	line-height: 64px;
}

header.main img {
	margin-right: 10px;
	float: left;
}

header.main nav {
	float: right;
	font-size: 15px;
	line-height: 21px;
	margin-top: 8px;
}

header.main img {
	margin-right: 5px;
}

header ul li {
	list-style: none;
	margin: 0;
	text-align: left;
	clear: both;
	margin-bottom: 5px;
}

nav.main {
	float: left;
	width: 200px;
	border: 1px solid #00132B;
	padding: 10px;
	margin: 10px;
}

nav.main > ul > li {
	font-weight: bold;
	font-size: 110%;
}

nav.main li { 
	margin-bottom: 2px;
}

nav.main li img {
	margin-right: 3px;
	vertical-align: bottom;
}

section.main {
	margin-left: 250px;
	margin-right: 15px;
	padding-bottom: 150px;
}

section.main h1 {
	font-size: 200%;
	margin-right: 40px;
	margin-bottom: 20px;
	display: inline-block;
}

h1 img {
	vertical-align: -7px;
	margin-right: 5px;
}

h1 a, h1 a:hover {
	color: black;
}


h2 {
	font-size: 160%;
	margin-top:12px;
	margin-bottom:5px;
}

h3 {
	font-size: 130%;
	margin-top:12px;
	margin-bottom:5px;
}

.tabs {
	float: none !important;
}

.ui-tabs-panel h2 {
	font-size: 130% !important;
}

.ui-autocomplete {
	border: 1px solid black;
	max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
	overflow-x: hidden;
}

.ui-autocomplete-category {
    font-weight: bold;
    padding: .2em .4em;
    margin: .8em 0 .2em;
    line-height: 1.5;
}

section.main nav {
	
	vertical-align: 7px;

	font-size: 105%;
	font-weight: bold;
	display: inline-block;
	
	border-bottom: 1px dotted black;
	
	
	padding-right: 5px;
	padding-top: 5px;
	padding-bottom: 5px;	
}

section.main nav img {
	vertical-align: -6px;
	margin-right: 4px;
}

table {
	
}

table th {
	font-size: 120%;
	border-bottom: 2px solid #00132B;
	text-align: left;
	padding-top: 6px;
	padding-right: 40px;
}

table tr {
	border-bottom: 1px dashed #7F9DB0;
}

table td {
	padding-top: 6px;
	padding-bottom: 6px;
	padding-right: 40px;
}

.earPlan th {
	padding-right: 20px;
	padding-left: 5px;
	border-right: 1px dashed #7F9DB0;
}

.earPlan td {
	padding-right: 20px;
	padding-left: 5px;
	border-right: 1px dashed #7F9DB0;
}

.earStats th {
	font-size: 110%;
}

.earStats td {
	border: 1px dashed #7F9DB0;
}


table.vertical th {
	font-size: 100%;
}

table.vertical th, table.vertical tr {
	border: 0;
}

.earLegend input {
	width: 6em;
	height: 25px;
	padding: 0;
	margin: 0;
	text-align: center;
	font-weight: bold;
	-webkit-print-color-adjust:exact;

}

.earPlan input {
	width: 6em;
	text-align: center;
	font-weight: bold;
	-webkit-print-color-adjust:exact;
}

input.earPlanWide {
	width: 16em;
}

.rounded {
	-webkit-border-bottom-left-radius: 20px;
	-webkit-border-top-right-radius: 20px;
	-moz-border-radius-bottomleft: 20px;
	-moz-border-radius-topright: 20px;
	border-bottom-left-radius: 20px;
	border-top-right-radius: 20px;
}

fieldset {
	padding: 10px;
	border: 1px solid #aaaaaa;
	-webkit-border-bottom-left-radius: 20px;
	-webkit-border-top-right-radius: 20px;
	-moz-border-radius-bottomleft: 20px;
	-moz-border-radius-topright: 20px;
	border-bottom-left-radius: 20px;
	border-top-right-radius: 20px;
}

fieldset legend {
	font-weight: bold;
	color: #e32;
}

section.login {
	width: 400px;
	
	padding: 20px;
	border: 1px solid black;
	
	margin: auto;
}

section.login input {
	width: auto;
}

footer.main {
	position: absolute;
	bottom: 0px;
	width: 100%;
	height: 35px;
	/*background-image: url(../img/footer.png);*/
	background-color: #454545;
	background-repeat:no-repeat;
	background-position: right bottom;
}



footer.main p {
	margin-top: 10px;
	margin-right: 110px;
	font-size: 90%;
	float:right;
        color: white;
}

div#footerdiv {
	clear: both;
}


table.left th {
	border-bottom: 1px dashed #7F9DB0;
	vertical-align: middle;
}

table.left td {
	vertical-align: middle;
}



/** Notices and Errors **/



.success,
.cake-error,
p.error,
.error-message {
	color: #fff;
	background: #3B8230;
	border: 1px solid rgba(0, 0, 0, 0.5);
	background-repeat: repeat-x;
	background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
	background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: linear-gradient(top, #ee5f5b, #c43c35);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.success {
	color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.5);
	background: #3B8230;
	background-repeat: repeat-x;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#76BF6B), to(#3B8230));
	background-image: -webkit-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -moz-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -ms-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -o-linear-gradient(top, #76BF6B, #3B8230);
	background-image: linear-gradient(top, #76BF6B, #3B8230);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}
p.error {
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 120%;
	padding: 0.8em;
	margin: 1em 0;
}
p.error em {
	font-weight: normal;
	line-height: 140%;
}
.notice {
	color: #000;
	display: block;
	font-size: 120%;
	padding: 0.8em;
	margin: 1em 0;
}
.success {
	color: #fff;
}

.message, .notice {
	color: #fff;
	font-size: 110%;
	font-weight: bold;
	margin: 0 0 1em 0;
	padding: 5px;
	border: 1px solid rgba(0, 0, 0, 0.5);
	background: #3B8230;
	background-repeat: repeat-x;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#76BF6B), to(#3B8230));
	background-image: -webkit-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -moz-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -ms-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -o-linear-gradient(top, #76BF6B, #3B8230);
	background-image: linear-gradient(top, #76BF6B, #3B8230);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(0, 0, 0, 0.2);
	margin-bottom: 18px;
	padding: 7px 14px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
	-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.errormsg {
	background: #c43c35;
	background-repeat: repeat-x;
	background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
	background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
	background-image: linear-gradient(top, #ee5f5b, #c43c35);
}

/**  Actions  **/
.actions ul {
	margin: 0;
	padding: 0;
}
.actions li {
	margin:0 0 0.5em 0;
	list-style-type: none;
	white-space: nowrap;
	padding: 0;
}
.actions ul li a {
	font-weight: normal;
	display: block;
	clear: both;
}

/* SQL log */
.cake-sql-log {
	background: #fff;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
	font-family: Monaco, Consolas, "Courier New", monospaced;
}
.cake-sql-log caption {
	color:#fff;
}


/** Forms **/

form div {
	padding: .5em;
	vertical-align: text-top;
}
form .input {
	color: #444;
}
form label{
    font-weight: bold;
}
form .required label:after {
	color: #e32;
	content: '*';
	display:inline;
}
form div.submit {
	border: 0;
	clear: both;
	margin-top: 10px;
}
label {
	display: block;
	font-size: 110%;
	margin-bottom:3px;
}
input, textarea {
	padding: 1%;
	width:85%;
}

input[type=checkbox] {
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}
div.checkbox label {
	display: inline;
}
input[type=radio] {
	float:left;
	width:auto;
	margin: 6px 0;
	padding: 0;
	line-height: 26px;
}

input.default {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.radio label {
	margin: 0 0 6px 20px;
	line-height: 26px;
}
input[type=submit] {
	display: inline;
	font-size: 110%;
	width: auto;
}
form .submit input[type=submit] {
	background:#62af56;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#76BF6B), to(#3B8230));
	background-image: -webkit-linear-gradient(top, #76BF6B, #3B8230);
	background-image: -moz-linear-gradient(top, #76BF6B, #3B8230);
	border-color: #2d6324;
	color: #fff;
	text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px;
	padding: 8px 10px;
}
form .submit input[type=submit]:hover {
	background: #5BA150;
}
/* Form errors */
form .error {
	background: #FFDACC;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	font-weight: normal;
}
form .error-message {
	-moz-border-radius: none;
	-webkit-border-radius: none;
	border-radius: none;
	border: none;
	background: none;
	margin: 0;
	padding-left: 4px;
	padding-right: 0;
}
form .error,
form .error-message {
	color: #9E2424;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	-ms-box-shadow: none;
	-o-box-shadow: none;
	box-shadow: none;
	text-shadow: none;
}


.columnform {

}

.rightcolumn {
	float: left;
	width: 300px;
}

.middlecolumn {
	width: 300px;
	float: left;
}

.leftcolumn {
	width: 300px;
	float: left;
}

.leftwidecolumn {
	width: 85%;
	float: left;
}

.rightsmallcolumn {
	width: 15%;
	float: right;
}

.leftalign{
	float: left;
	width:300px;
}
.rightalign{
	clear:none;
	float: right;
	width:300px;
}

.diagram {
	float: right;
}

/* Home page boxes */
div.box {
	border: 1px solid black;
	display: inline-block;
	border-radius: 8px;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	margin-right: 20px;
	margin-bottom: 20px;
}

div.box .title {
	font-size: 140%;
	font-weight: bold;
	background-image: url(smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png);
	height: 35px;
	line-height: 35px;
	padding-left: 10px;
	border-radius: 8px;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	
}

div.box table {
	margin: 10px;
}

div.box table th {
	font-size: 100%;
}

hgroup strong {
	font-size: 120%;
}


/*QuickTextBlock*/
.qtSlide {
	overflow: auto;
	height: 600px;
}

.qtBlock:hover {
	background-color: #dee952;
}

.qtBlock {
	margin-bottom: 1em;
	margin-left: 10px;
	margin-right: 2px;
	padding: 5px;
	border: 1px solid #aaaaaa;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}
.qtBlock .group {
	font-weight: bold;
	margin-left: 20px;
}


/* Articles */
.modeSelectors label {
	font-weight: bold;
	margin-left: 8px;
	margin-right: 20px;
	display: inline;
}

.modeSelectors {
	margin-top: 1em;
	margin-bottom: 1em;
}

input[type=text].default {
	width: 40px;
}

.inventory div.submit {
	clear: none;
}

#newstore {
	display: none;
}

/** Timetracking */
	
#timetable th {
	padding-right: 6px;
	border-bottom: none;
	text-align: right;
	vertical-align: middle;
}

.ongoing {
	background-image: url("../img/ongoing.gif");
	background-position: 97%;
	background-repeat: no-repeat;
	min-width: 80px;
}

.hourDiv{
	position: absolute;
	z-index: -100;
}

.hourDiv div {
	border-left: 1px dotted gray;
	position: absolute;
	height: 100%;
	padding-left: 5px;
}

.hourDiv .hourNow {
	border-left: 1px solid red;
}

.hourDiv .hour615 {
	left: 375px;
}
.hourDiv .hour700 {
	left: 420px;
}
.hourDiv .hour1400 {
	left: 840px;
}
.hourDiv .hour1700 {
	left: 1020px;
}
.hourDiv .hour1815 {
	left: 1095px;
}

.timetrack {
	border-radius: 5px;
	text-align: center;
	margin-bottom: 5px;
}

.timetrack_hb {
	background-color: lightgreen;
}

.timetrack_ea {
	background-color: lightblue;
}

.timetrack .user {
	font-weight: bold;
}	

a.timeLeft {
	font-weight: bold;
}

a.timeRight {
	float: right;
	font-weight: bold;	
}

/** Shiftplans */
table#shiftTable td, table#shiftTable th {
	border: 1px solid black;
}

table#shiftTable tr th:first-child {
	text-align: right;
	padding-right: 10px;
	padding-left: 10px;
	vertical-align: middle;
}

table#shiftTable td, table#shiftTable th {
	padding: 0;
	width: 120px;
}

table#shiftTable tr:first-child th {
	border-right: 1px solid black;
	text-align: center;
	padding-right: 5px;
}

table#shiftTable, table#shiftTable .sep, table#shiftTable .sep td {
	border: 0;
}

table#shiftTable .sep {
	height: 50px;
}

table#shiftTable tr {
	border-left: 1px solid black;
	border-right: 1px solid black;
}

#shiftTable tr:nth-child(even) {
	background-color: #efefef;
}

#shiftTable th .date {
	font-size: 80%;
}

.imageDiv {
	margin-bottom: 40px;
}

.imageDiv img {
	float: left;
	margin-right: 10px;
}

.shiftTableEditor {
	margin-top: 8px;
}

.shiftTableEditor .leftcolumn {
	width: 65%;	
	position: relative;
}

.shiftTableEditor .rightcolumn {
	width: 35%;
}

.shiftTableEditor #trash {
	position: absolute;
	left: 50%;
	top: -60px;
	display: none;
}

.shiftTableEditor #ajaxspinner {
	position: absolute;
	top: -22px;
	left: -5px;
	display: none;
}

#shiftTable .draggableAssignedUser {
	border: 1px solid #AAAAAA;
	border-radius: 5px;
	padding: 2px;
	text-overflow: ellipsis;
	width: 110px;
	white-space: nowrap;
	overflow: hidden;
	margin: 5px;
}

#shiftTable .duplicate {
	background-color: darkred;
	color: white;
}

#shiftTable .selected {
	background-color: lightblue;
}

#shiftTable .noDefaultShift {
	border-color: red;
}

#shiftTable .passive-selected {
	border: 1px solid blue;
}


form #userpic > div, form #userpic > div > div {
	padding: 0;
}

#userpic {
	width: 250px;
	height: 335px;
	border: 2px solid rgba(0,0,0,.3);
	display: inline-block;
	position: relative;
	background: url('icons/userpic.gif') no-repeat;
	background-size: cover;
}

.userpic__preview {
	position: absolute;
}

#userpic .btn {
	margin-top: 270px;
	margin-left: 70px;
	cursor: pointer;
	display: inline-block;
	position: relative;
	overflow: hidden;
	font-size: 20px;
	font-family: Arial;
	border-radius: 4px;
	vertical-align: middle;
}

#userpic .btn-success {
	border: 1px solid rgba(0,0,0,.2);
	padding: 5px 10px !important;
	background-color: #FFDC73;
	background: -moz-linear-gradient(top,#FFE599 0%,#FFDC73);
	background: -webkit-gradient(linear, left top, left bottom,from(#FFE599),to(#FFDC73));
	box-shadow: 0 1px 1px rgba(255,255,255,.5);
}

.btn-txt {
	position: relative;
}

#userpic .btn input {
	top: -10px;
	right: -5px;
	width: 90px;
	z-index: 2;
	position: absolute;
	cursor: pointer;
	opacity: 0;
	filter: alpha(opacity=0);
	font-size: 50px;
	cursor: pointer;
}

.btn_browse_small {
	padding: 5px 10px;
	font-size: 16px;
}

.btn_browse {
	border: 1px solid rgba(0,0,0,.2);
	padding: 8px 20px;
	background-color: #FFDC73;
	background: -moz-linear-gradient(top,#FFE599 0%,#FFDC73);
	background: -webkit-gradient(linear, left top, left bottom,from(#FFE599),to(#FFDC73));
	box-shadow: 0 1px 1px rgba(255,255,255,.5);
}

.btn .progress {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: .5;
	position: absolute;
}

.progress .bar {
	width: 0;
	top: 0;
	left: 0;
	bottom: 0;
	position: absolute;
	background-color: #f60;
}

.imgpopup {
	margin: 25px;
	float: left;
	display: inline-block;
	box-shadow: 0 0 5px #000;
	background-color: #fff;
}




/* jquery.Jcrop.min.css v0.9.12 (build:20130126) */
.jcrop-holder{direction:ltr;text-align:left;}
.jcrop-vline,.jcrop-hline{background:#FFF url(Jcrop.gif);font-size:0;position:absolute;}
.jcrop-vline{height:100%;width:1px!important;}
.jcrop-vline.right{right:0;}
.jcrop-hline{height:1px!important;width:100%;}
.jcrop-hline.bottom{bottom:0;}
.jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;height:100%;width:100%;}
.jcrop-handle{background-color:#333;border:1px #EEE solid;font-size:1px;height:7px;width:7px;}
.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px;}
.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%;}
.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%;}
.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0;}
.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0;}
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px;}
.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%;}
.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px;}
.jcrop-dragbar.ord-n{margin-top:-4px;}
.jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px;}
.jcrop-dragbar.ord-e{margin-right:-4px;right:0;}
.jcrop-dragbar.ord-w{margin-left:-4px;}
.jcrop-light .jcrop-vline,.jcrop-light .jcrop-hline{background:#FFF;filter:alpha(opacity=70)!important;opacity:.70!important;}
.jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#FFF;border-radius:3px;}
.jcrop-dark .jcrop-vline,.jcrop-dark .jcrop-hline{background:#000;filter:alpha(opacity=70)!important;opacity:.7!important;}
.jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#FFF;border-color:#000;border-radius:3px;}
.solid-line .jcrop-vline,.solid-line .jcrop-hline{background:#FFF;}
.jcrop-holder img,img.jcrop-preview{max-width:none;}


@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
	body {
		font: 16px Helmet, Freesans, sans-serif
	}
	
	footer {
		display: none;
	}
	
	section.login {
		width: auto;
		border: 0;
	}
	
	section.login img {
		display: none;
	}
	
	section.login input {
		width: 100%;
	}

}
	

