/* time app layout */

/* -----[ variables ]------------------------------------------ */

:root {
	/* top bar colors */
	--top-bar-bgcolor: #115629;
	--top-bar-color: #fff;
	--top-bar-hicolor: #029455;
}

/* use border-box for everything */
*,
*:before,
*:after {
	box-sizing: border-box;
}

/* responsive / non-responsive */
@media only screen and (min-width: 601px) { /* responsive-max-width+1 */
	.responsive { display: none !important; }
}
@media only screen and (max-width: 600px) { /* responsive-max-width */
	.non-responsive { display: none !important; }
}

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Open Sans', 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif;
	background-color: #777777;
	font-size: 16px;
}

div.main {
	max-width: 1200px;
	margin: 0 auto 0 auto;
}

div.content {
	background-color: #fff;
	margin: 0;
	padding: 20px;
	min-height: 500px;
}
@media only screen and (max-width: 600px) { /* responsive-max-width */
	div.content {
		padding: 20px 5px;
	}
}

.hide {
	display: none !important;
}

input[type=text].error, input[type=password].error {
	border: 1px solid #c88;
}
.selectize-control.single .selectize-input.error {
	border-color: #c88;
}

.selectize-control.single span.item-opdrachtgever {
	margin-left: 5px;
}

/* top bar ---------------------------------------------------------- */

.top-bar {
	width: 100%;
	background-color: var(--top-bar-bgcolor);
	color: var(--top-bar-color);

	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	flex-flow: flex-start;
	justify-content: flex-start;
	align-items: stretch;

	/* made at https://css3gen.com/box-shadow/ */
	-webkit-box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.75);
	-moz-box-shadow:    0px 3px 5px 0px rgba(50, 50, 50, 0.75);
	box-shadow:         0px 3px 5px 0px rgba(50, 50, 50, 0.75);

	/* this is needed for the shadow to fall on other elements */
	z-index: 1;

	height: 42px;
}
.top-bar .top-bar-menubutton {
	display: block;
	padding: 10px 10px 10px 10px;
	/*margin: 0 0 0 10px;*/
}
.top-bar .top-bar-menubutton:hover {
	background-color: var(--top-bar-hicolor);
}
.top-bar .top-bar-menubutton.expanded {
	background-color: var(--menu-bgcolor);
}
.top-bar .top-bar-menubutton.expanded:hover {
	background-color: var(--menu-hicolor);
}

.top-bar .top-bar-title {
	display: block;
	padding: 10px 50px 10px 20px;
}
/*
.top-bar .top-bar-title:hover {
	background-color: var(--top-bar-hicolor);
}
*/
.top-bar .top-bar-item {
	display: block;
	position: relative;
}
.top-bar .top-bar-item a {
	display: inline-block;
	padding: 10px 20px;
	color: var(--top-bar-color);
	text-decoration: none;
}
.top-bar .top-bar-item a:hover {
	background-color: var(--top-bar-hicolor);
}
.top-bar .top-bar-item a > i:first-child { margin-right: 5px; }
.top-bar .top-bar-item a > i:last-child { margin-left: 5px; }
.top-bar .top-bar-item.pull-right {
	/* justifies it to the right (along with everything that follows it) */
	/* see https://stackoverflow.com/questions/32551291/in-css-flexbox-why-are-there-no-justify-items-and-justify-self-properties#33856609 */
	margin-left: auto;
}

.top-bar .top-bar-divider {
	width: 0;
	/* justifies it to the right (along with everything that follows it) */
	/* see https://stackoverflow.com/questions/32551291/in-css-flexbox-why-are-there-no-justify-items-and-justify-self-properties#33856609 */
	margin-left: auto;
}

.top-bar .top-bar-item .dropdown-menu {
	display: none;
	position: absolute;
	list-style: none; /* may be an ul */
	padding: 0;
	margin: 0;
	background-color: var(--top-bar-bgcolor);
	right: 0;
	top: calc(100% + 1px);

	/* border radius needs hidden overflow to work constently with background color on child elements */
	border-radius: 3px;
	overflow: hidden;
	z-index: 1;
}
.top-bar .top-bar-item .dropdown-menu.expanded {
	display: block;
}
.top-bar .top-bar-item .dropdown-menu li {
	white-space: nowrap;
}
.top-bar .top-bar-item .dropdown-menu li a {
	width: 100%;
}
.top-bar .top-bar-item .dropdown-menu input[type=text],
.top-bar .top-bar-item .dropdown-menu input[type=password] {
	background-color: var(--top-bar-hicolor);
	color: #fff;
	margin: 0;
	width: 100%;
}
.top-bar .top-bar-item .dropdown-menu > ul {
	max-height: 250px;
	overflow-y: auto;
	list-style: none;
	padding: 0;
	margin: 0;
}
.top-bar .top-bar-item .dropdown-menu > ul a {
	padding: 10px;
}

/* forms ------------------------------------------------------------ */

form label {
	display: block;
	margin: 10px 0 0 0;
}

input[type=text], input[type=password] {
	min-width: 300px;
	height: 35px;

	border: 1px solid #115629;
	border-radius: 3px;

	padding: 0 10px;

	font-size: 1rem;
}

/* main app --------------------------------------------------------- */

div.date {
	text-align: center;

	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	flex-flow: flex-start;
	justify-content: space-between;
	align-items: stretch;
}
div.date span {
	padding: 0 5px;
}
div.date a.button {
	min-width: 100px;
	padding: 6px 20px;
}
div.date input[type=text] {
	padding: 5px 12px;
}

button, a.button, input[type=submit] {
	background-color: #115629;
	border: 1px solid #115629;
	height: 35px;
	font-size: 1rem;
	color: #fff;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	padding: 6px 20px;
	display: inline-block;
}
input[type=submit] {
	padding: 8px 20px;
	-webkit-appearance: none;
}

div.day-header {
	position: relative;
	border-bottom: 2px solid #000;
	padding: 0;
	margin: 0 0 5px 0;
}
div.day-header h3 {
	margin: 20px 0 0 0;
	padding: 4px 0 12px 0;
}
div.day-header button {
	position: absolute;
	top: 0;
	right: 0;
}
input[name=currentDate] {
	width: 125px;
	min-width: 0;
	text-align: center;
}

input[name=description] {
	width: 100%;
	box-sizing: border-box;
}

div.addTimeslot {
	width: 100%;
	box-sizing: border-box;
	padding: 5px;
	/*border: 1px solid #115629;*/
	margin: 5px 0 5px 0;
}
input[type=text][name=description] {
	padding: 0 5px;
}
div.addTimeslot .selectize-input,
div.addTimeslot .selectize-control.single .selectize-input {
	padding: 0 5px;
	border: 1px solid #115629;
	border-color: #115629;
	background-color: #fff;
	background-image: none;
}
div.addTimeslot .selectize-input > div {
	padding: 8px 5px;
}
@media only screen and (max-width: 600px) { /* responsive-max-width */
	button.addTimeslot {
		width: 60px;
	}
}
div.timechooser label {
	margin: 11px 5px 0 0;
	float: left;
	clear: left;
	width: 70px;
}
div.timechooser input {
	margin: 5px 5px 0 0;
	float: left;
	padding: 3px 0 0 0;
}
input[name=dateStart], input[name=dateEnd] {
	width: 95px;
	min-width: 0;
	text-align: center;
}
input[name=timeStart], input[name=timeEnd] {
	width: 50px;
	min-width: 0;
	text-align: center;
}
div.timechooser input[name=passedTime] {
	width: 50px;
	min-width: 0;
	margin: 5px 5px 0 100px;
	text-align: center;
}
div.timechooser button {
	float: left;
	margin: 5px 5px 0 0;
	min-width: 22px;
}
div.timechooser button.saveTimeslot {
	clear: left;
}

/* manage ----------------------------------------------------------- */

/*
input[type=file] {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

label.fileInput {
	background-color: #115629;
	font-size: 12px;
	color: #fff;
	border: 0;
	border-radius: 5px;
	text-decoration: none;
	cursor: pointer;
	padding: 2px 5px;
	display: inline-block;
}
*/

div.button {
	background-color: #115629;
	border: 1px solid #115629;
	height: 35px;
	font-size: 1rem;
	color: #fff;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	padding: 5px 20px;
	display: inline-block;
}
div.button input {
	cursor: pointer;
}
.uploadifive-queue {
	display: none;
}

.selectize-input span.item-id {
	font-weight: bold;
}

.selectize-dropdown div.span {
	display: inline-block;
	float: left;
}

.selectize-dropdown div.span.item-id {
	font-weight: bold;
	margin: 0 5px 0 0;
}
.selectize-dropdown div.span.item-projectnaam {
	clear: left;
	margin: 0 5px 0 0;
	font-style: italic;
	color: #888;
}
.selectize-dropdown div.span.item-plaats {
	font-style: italic;
	color: #888;
}

div.timeslot {
	border-bottom: 1px solid #888;
	margin: 0 0 5px 0;
}

span.timeslot-description {
	color: #888;
	font-style: italic;
}
span.timeSpan {
	font-weight: bold;
}
span.timeSpanLength {
	font-style: italic;
	color: #888;
	margin-left: 10px;
}

.timeslotButtons {
	float: right;
}
button.editTimeslot, button.deleteTimeslot {
	margin-left: 5px;
}
button.deleteTimeslot {
	background-color: #991129;
	border: 1px solid #991129;
}
@media only screen and (max-width: 600px) { /* responsive-max-width */
	button.editTimeslot, button.deleteTimeslot {
		display: block;
		width: 60px;
		margin-bottom: 5px;
	}
}

ul.account-options {
	position: absolute;
	list-style-type: none;
	top: 75px;
	right: 1px;
	background-color: #115629;
	padding: 0;
}

ul.account-options li {
	display: block;
	padding: 5px 10px;
	cursor: pointer;
}
ul.account-options li:hover {
	background-color: #029455;
}
ul.account-options li a {
	color: #fff;
	text-decoration: none;
}

span.delay {
	display: inline-block;
	background-color: #922;
	color: #fff;
	width: 15px;
	height: 15px;
	text-align: center;
	border-radius: 50%;
	cursor: pointer;
}

div.formButtons {
	margin: 15px 0 0 0;
}

div.instructions {
	background-color: #ffffea;
	border: 1px solid #ccc;
	margin: -10px 0 10px 0;
	padding: 0px 10px;
}
div.instructions a.close {
	float: right;
	clear: right;
	display: block;
	text-decoration: none;
	color: #444;
	font-size: 20px;
	margin: 10px 0 10px 0;
	width: 30px;
	height: 30px;
	text-align: center;
	border-radius: 15px;
	border: 1px solid #444;
}
div.instructions a.close:hover {
	background-color: #ffffce;
}
div.instructions h4 {
	margin: 10px 0 0 0;
}
div.clear {
	clear: both;
}
div.instructions.hidden ul {
	display: none;
}
div.instructions i.fa-eye { display: none; }
div.instructions i.fa-eye-slash { display: inline-block; }
div.instructions.hidden i.fa-eye { display: inline-block; }
div.instructions.hidden i.fa-eye-slash { display: none; }
