@CHARSET "UTF-8";

/** Core 
	
	Use this file for things like form controls, repeating elements (like error/warning/confirmation 
	panels) and other non-page layout stuff and utility classes
	
*/

/* General */

h1:first-child, h2:first-child {
	margin-top: 0;
}

.wrapper h1:first-child {
  margin-top: 5px;
}

a {
	color: #719430;
	text-decoration: underline;
	transition: color 0.3s;
	-o-transition: color 0.3s;
	-ms-transition: color 0.3s;
	-moz-transition: color 0.3s;
	-webkit-transition: color 0.3s;	
}

a:hover {
	color: #92BF3E;
}

img {
	border: 0;
}

/* Utility */

.one-line {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

label.block {
	display: block;
	padding: 2px 0;
}

div.clear {
	clear: both;
}

.small {
	font-size: 80%;
}

.big {
	font-size: 120%;
}

.bold {
	font-weight: bold;
}

.hidden {
	display: none;
}

.padded {
	padding: 10px;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

.pull-right {
	float: right !important;
}

.pull-left {
	float: left !important;
}

.clearfix:before,
.clearfix:after {
	display: table;
	content: ' ';
	clear: both;
}

.rel {
	position: relative;
}

.full {
	width: 100%;
}

.inline-block {
	display: inline-block;
}

.unpadded {
	padding: 0 !important;
}

.hidden {
	display: none;
}

.summary {
  height: 200px;
}

.bars {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 50%;
}

.bar {
  height: 10px;
  background: #aaa;
}

.bar>div {
  height: 10px;
  background: #719430;
}

/** forms */

input[type="text"],input[type="password"],textarea,input[type="number"],select {
	border: 1px solid #aaa;
	font-size: 14pt;
	padding: 4px;
	background: #fff;
	border-radius: 2px;
}

input[type="text"]:focus,input[type="password"]:focus,textarea:focus,input[type="number"]:focus,select:focus {
	box-shadow: 0 0 3px #aaa;
}

textarea {
	height: 200px;
}

div.label {
	padding: 8px 0;
}

.well {
	border: 1px solid #888;
	border-radius: 5px;
	padding: 10px;
	margin-top: 10px;
}

.help {
	border: 1px solid #719430;
	border-radius: 2px;
	padding: 15px;
}

.help h2 {
	font-weight: normal;
	text-align: center;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid #719430;
}

.warning {
	border: 1px solid #94303D;
	border-radius: 2px;
	padding: 15px;
}

.help *:first-child, .warning *:first-child {
	margin-top: 0;
}

.help *:last-child, .warning *:last-child {
	margin-bottom: 0;
}

.progress {
  background: #666;
  color: #fff;
  text-shadow: 0 0 1px #000,0 0 1px #000,0 0 1px #000,0 0 1px #000,0 0 1px #000;
  text-align: center;
}

/*********************************************************** BUTTONS */

.button {
	display: inline-block;
	padding: 6px 16px;
	margin: 0 2px 0 0;
	background: #719430;
	border: none;
	font-family: arial, helvetica, sans-serif;
	text-decoration: none;
	color: #fff;
	transition: background 0.3s, color 0.3s, box-shadow 0.3s;
	border-radius: 2px;
	cursor: pointer;
	font-size: 150%;
}

.button.rounded {
	border-radius: 10px;
	box-shadow: 5px 5px 5px #ddd;
	padding: 4px 20px;
}

.button.rounded:hover {
	box-shadow: 2px 2px 2px #888;
}

a.button, span.button {
	padding-top: 5px;
	padding-bottom: 5px;
	text-decoration: none !important;
}

.button:hover {
	background: #92BF3E;
	color: #fff;
	text-decoration: none;
}

a.button:hover, a.button:hover:visited {
	color: #fff;
}

/** separator between horizontal buttons */
.button-sep {
	padding: 0;
	margin: 0px 10px;
	display: inline-block;
	vertical-align: bottom;
	content: '';
	height: 26px;
	border-left: 1px solid #aaa;
}

span.button.down {
	cursor: default;
}

.button.block {
	width: 90%;
}

.button.big {
	font-size: 22pt;
	padding: 8px 20px;
	margin: 0;
}

h1 .button {
	float: right;
	font-size: 80%;
	padding: 5px 8px;
} 

/** Tabs */

.button.tab {
	border-radius: 6px 6px 0 0;
	margin: 10px 0 0 0;
	float: left;
	transition: padding 0.3s, margin 0.3s, background 0.3s, width 0.3s;
}

.button.tab.selected {
	background-position: 0 -10px;
	margin: 0;
	padding: 9px 20px 9px;
	cursor: default;
}

.tabgroup {
	font-size: 0;
	vertical-align: bottom;
	padding-left: 10px;
}

.tabframe {
	border: 1px solid #888;
	padding: 0 10px;
	border-radius: 4px;
}

span.tab {
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 600px) {
	
	.tabframe {
		border: 0;
	}
	
	.button.tab {
		display: block;
		float: none;
		margin: 1px 0 0 8%;
		padding: 8px 0;
		border-radius: 4px;
		width: 90%;
	}
	
	.button.tab.selected {
		margin: 1px 0 0 0;
		width: 98%;
	}
}

/** Dialog */

#dialog {
	position: fixed;
	width: 500px;
	background: #fff;
	border: 1px solid #888;
	border-radius: 4px;
	height: 300;
	top: -500px;
	left: 45%;
	left: calc(50% - 251px);
	z-index: 3;	
}

#fader {
	position: fixed;
	top: 0;
	left: 0;
	background: none;
	background: rgba(255,255,255,0.5);
	width: 100%;
	height: 100%;
	display: none;
	z-index: 2;
}

#fader.noclick {
	background: #fff;
}

#dialog>h1 {
	text-align: center;
	margin: 0;
	font-size: 22pt;
}

#dialog div.loading {
	padding: 100px 20px;
	text-align: center;
	font-size: 22pt;
}

.dialog-only {
	display: none;
}

#dialog .dialog-only {
	display: block;
}

#dialog .bottomleft {
	position: absolute;
	bottom: 10px;
	left: 10px;
}

/* form controls */

input[type="text"], input[type="number"] {
	background: #fff;
	border: 1px solid #888;
	padding: 4px;
	border-radius: 2px;
}

input.full {
	width: 95%;
	width: calc(100% - 10px);	
}

@media (max-width: 640px), (max-height: 500px) {
	
	span.only-phone {
		display: inline-block;
	}
	
	body {
		height: 100%;
	}

	.pull-right, .pull-left {
		float: none;
		display: block;
	}
	
	#dialog {
		position: fixed !important;
		overflow-y: auto;
		width: auto;
		background: #fff;
		border: none;
		border-radius: 0;	
		top: -500px;
		left: 0;
		right: 0;
		height: 100%;
		z-index: 3;
		margin-top: -100px;
		top: -100%;
	}
	
}
