@import url(https://fonts.googleapis.com/css?family=Merriweather:400,700|Questrial:400,700|Signika:300,400,700);

html,
body {
	margin: 0;
	padding: 0;
	font-family: Signika, sans-serif;
	font-weight: 300;
}

.ui-dialog-title,
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget option,
.ui-widget textarea,
.ui-widget button,
label,
input,
button,
textarea,
select,
option,
.ui-button,
strong {
	font-family: Signika, sans-serif;
}
.ui-dialog-title,
.ui-widget button,
.ui-button,
strong {
	font-weight: 400;
}
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget option,
.ui-widget textarea,
label,
input,
button,
textarea,
select,
option {
	font-weight: 300;	
}

h2,
h3,
h4 {
	margin-bottom: 4px;
	color: #229600;
	font-weight: 400;
}

span.toggle-light {
	display: inline-block;
	vertical-align: text-bottom;
}

h2 > a,
h3 > a,
h4 > a {
	margin-left: 6px;
}

h2 + ul.fa-ul,
h3 + ul.fa-ul,
h4 + ul.fa-ul,
ul.fa-ul + ul.fa-ul {
	margin-top: 4px;
	margin-bottom: 8px;
}

#event-main-title > span {
	margin-top: 10px;
}

ul.details {
	float: left;
	min-width: 160px;
	max-width: 300px;
	margin-right: 24px;
	margin-top: 12px !important;
}
ul.details strong {
	color: #618558;
}

#toggle-minutes,
#toggle-minutes-finalised,
#toggle-notifications {
	position: relative;
	top: 3px;
	margin: 4px 6px 12px 0;
	vertical-align: middle;
}

#minutes {
	margin-top: 16px;
}

main {
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	padding: 20px 14px;
}

header {
	position: relative;
	background-color: #ecebe7;
	padding: 0;
}

header h1,
header .menu > ul {
	box-sizing: border-box;
	max-width: 900px;
	margin: 0 auto;
}

header h1 {
	height: 124px;
	padding: 24px 14px 18px 146px;
	line-height: 88px;
	color: #4f964a;
	background: url(logo.png) no-repeat left center;
}
header h1,
header h1 > strong {
	font-family: Merriweather, serif !important;
	font-size: 28px;
	font-weight: bold;
}
header h1 > strong {
	color: #e68a1e;
}

*:focus,
a.ui-button:focus {
	outline: none !important;
	box-shadow: 0 0 2px #17a697;
}
a:not(.ui-button):focus,
input[type=radio]:focus,
input[type=checkbox]:focus {
	outline: none !important;
	box-shadow: none;
}

div:not(.ui-dialog-buttonset):not(.ui-dialog-titlebar) > .ui-button {
	margin: 6px 0 12px 0;
}

div,
span,
li,
td,
form,
label,
input,
button,
textarea,
select,
option {
	font-size: 14px;
	font-weight: 300;
	line-height: 22px;
}
a:not(.expand) {
	font-size: 14px;
	font-weight: 300;
}

a.ui-button,
button {
	font-weight: 400 !important;
}

a {
	color: #407a3c;
}

a.delete {
	color: #dd4110 !important;
}
a:not(.ui-button) > .fa-pencil-square-o,
div > .fa-pencil-square-o {
	color: #162175;
}
a.ui-button > .fa-upload,
a.ui-button > .fa-times {
	margin-right: 3px;
}

span.error {
	display: inline-block;
	padding-top: 4px;
	color: #ce0202;
}
select + span.error {
	display: block;
}

.menu {
	background-color: #bdd8b5;
	border-bottom: solid 3px #aacaa1;
}
.menu ul {
	position: relative;
	margin: 0 auto;
	padding: 0;
	max-width: 900px;
	list-style: none;
}
.menu li {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
}
.menu a {
	display: block;
	min-width: 106px;
	text-decoration: none;
	font-size: 14px;
	padding: 6px 12px;
	color: #333;
	text-align: center;
}
.menu .fa {
	display: block;
	width: 48px;
	height: 48px;
	line-height: 48px;
	margin: 4px auto;
	font-size: 2em;
	background-color: #eaf7e6;
	border: solid 2px #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 3px #354032;	
}
.menu a:hover {
	color: #226511;
}
.menu a:hover .fa {
	background-color: #98b98f;
	color: #fff;
	box-shadow: 0 0 5px #354032;
}
.menu a:active .fa {
	box-shadow: 0 0 2px #354032;
}

ol.items,
ol.items > li,
ol.items > li > * {
	position: relative;
}
ol.items {
	padding: 0;
	counter-reset: section;
	list-style-type: none;
}
ol.items.meeting {
	margin-left: 2.14285714em;	
}
ol.items > li {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: solid 1px #e0e0e0;
}
ol.items > li.expanded {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: solid 1px #e0e0e0;
}
ol.items.meeting > li:before {
	position: absolute;
	left: -2.14285714em;
	width: 2.14285714em;
	text-align: center;
	color: #396d35;
	font-size: 1.17em;
	font-weight: 400;
	counter-increment: section;
	content: counters(section, ".") " ";
}
.draggable ol.items {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
.draggable ol.items > li {
	margin: 6px 0;
	padding: 6px;	
	border: solid 1px #c5c5c5;
	background-color: #f6f6f6;
}
.draggable ol.items > li.overlap {
	background-color: #e0e0e0;
	border-color: #bcbbb8;
}
.draggable ol.items > li:before {
	display: none;
}
ol.items > li.empty:not(.active) {
	display: none;
}
.draggable ol.items > li > .fa-bars {
	top: 1px;
	font-size: 14px;
}
.draggable ol.items > li > a.delete {
	float: right;
	right: 2px;
	font-size: 18px;
	text-decoration: none;
}
.draggable ol.items > li > h3,
.draggable ol.items > li > div {
	display: none;
}

ol.items > li > * {
	display: none;
}
ol.items > li > h3,
ol.items > li.expanded > div {
	display: block;
}
ol.items > li > h3 .start-time {
	display: inline-block;
	width: 40px;
	margin-right: 8px;
	text-align: center;
	font-size: inherit;
	font-weight: inherit;
}
.draggable ol.items > li > h3,
.draggable ol.items > li > div {
	display: none !important;
}
.draggable ol.items > li > :not(div) {
	display: initial;
}
.draggable ol.items > li > .fa {
	display: inline-block;
}
.draggable ol.items.training > li > a > .start-time {
	display: inline-block;
	width: 46px;
	padding-right: 6px;
	color: #666666;
	text-decoration: none;
	text-align: center;
}

.draggable ol.items.training li:not(.overlap) + li.overlap,
.draggable ol.items.training li.overlap + li:not(.overlap),
.draggable ol.items.training li.overlap + li.has-time {
	margin-top: 22px;
}

.toggable-buttons,
.toggable-button {
	display: none;
}
.draggable .toggable-buttons {
	display: initial;
}
.draggable div.toggable-buttons {
	display: block;
}
.draggable .toggable-button {
	display: inline-block;
}

ol.items > li > h3 a.expand {
	display: block;
	margin: 0;
	text-decoration: none;
}
ol.items.training > li > h3 a.expand {
	color: #e68c21;
}
ol.items > li > h3 a.expand + span {
	margin: 0;
	font-weight: 300;
	color: #000;
}
ol.items.training > li > h3 a.expand + span,
ol.items.training > li.expanded > div {
	margin-left: 48px;
}
ol.items > li.expanded > h3 a .fa-chevron-down,
ol.items > li:not(.expanded) > h3 a .fa-chevron-up,
ol.items > li.expanded > h3 span:not(.start-time) {
	display: none;
}
ol.items > li > h3 .fa {
	float: right;
	color: #a8a8a8;
}

ol.items > li > div > h4 {
	margin: 12px 0 0 0;
	font-size: 1.1em;
}
ol.items > li > div.edit {
	margin: 12px 0 0 0;
}

ol.items > li > h3 + div.edit {
	margin: 6px 0 0 0;
}

body:not(.draggable) ol.items.training li:not(.overlap) + li.overlap,
body:not(.draggable) ol.items.training li.overlap + li:not(.overlap),
body:not(.draggable) ol.items.training li.overlap + li.has-time {
	margin-top: 20px;
	border-top: solid 1px #e0e0e0;
}

form > label,
form > div,
form > a {
	position: relative;
	display: block;
	margin: 6px 0 12px 0;
}
form > div > label {
	display: block;
	margin: 6px 0;
}
label > span {
	display: block;
}
label > .date-time {
	display: inline-block;
	float: right;
}
label {
	position: relative;
}
label > input[type=checkbox],
label > input[type=radio] {
	position: absolute;
	top: -1px;
}
label > input[type=checkbox] + span,
label > input[type=radio] + span {
	margin-left: 22px;
}

label > input[type=text],
label > input[type=password],
label > input[type=email],
label > input[type=url] {
	box-sizing: border-box;
	width: 100%;
	margin: 4px 0 0 0;
}
label > input.date,
label > input.time {
	width: 140px;
}
label > input.number {
	width: 80px;
	text-align: right;
}

label > textarea {
  box-sizing: border-box;
	width: 100%;
	height: 60px;
	margin: 4px 0 0 0;
	overflow: hidden;
	resize: none;
}

#item-notes,
#item-minutes {
	height: 160px;
}

input[type=text],
input[type=password],
textarea,
select {
	position: relative;
	padding: 2px 4px;
	margin: 0;
	border: solid 1px #cfcfcf;
}

div.upload {
	position: relative;
	padding: 0 24px;
	max-width: 240px;
}
div.upload > .error {
	color: #dd7f10;
}
div.upload > .fa {
	position: absolute;
	left: 2px;
	top: 1px;
}
div.upload .filename {
	font-weight: 400;
	word-wrap: break-word;
}
div.upload a.delete {
	position: absolute;
	right: 0;
	top: 0;
	font-size: 18px;
	color: #dd7f10;
}

.progress-container {
	position: relative;
	width: 200px;
	height: 4px;
	margin-top: 10px;
	background: #f0f0f0;
}
.progress-container > * {
	position: absolute;
	top: 0;
	width: 0;
	height: 100%;
	background-color: #aaa;
}

main > form#create > table {
	position: relative;
	max-width: 600px;
}

form + .ui-dialog-buttonpane button:first-child {
	font-weight: 400;
}

table {
	position: relative;
	margin: 0;
	padding: 0;
	border: none;
	border-collapse: collapse;
}
td {
	margin: 0;
	padding: 2px 0 2px 16px;
	vertical-align: top;
	border: none;
}
thead > tr > td {
	font-weight: 400;
}
tr > td:first-child {
	padding-left: 0;
}

tr.user td:not(:first-child),
tr.action td:not(:first-child),
.table-list tbody td:not(:first-child),
thead td:not(:first-child) {
	padding-bottom: 6px;
	white-space: nowrap;
	min-width: 70px;
}
tr.user td:first-child,
.table-list.no-trash tbody td:nth-child(1),
.table-list:not(.no-trash) tbody td:nth-child(2) {
	width: 100%;
	white-space: normal;
}
tr.action td:nth-child(1),
tr.action td:nth-child(2) {
	width: 50%;
	white-space: normal;
}

tr.decree td:nth-child(1) {
	width: 100%;
}
tr.decree td:nth-child(2) {
	width: auto;
}

td a + a {
	margin-left: 6px;
}

tr.user td,
tr.event td {
	padding-bottom: 16px;
}
tr.user a.user {
	color: #000;
	text-decoration: none;
	cursor: text;
}
tr.user a.user:focus {
	outline: none;
}
.table-list td:nth-child(2) {
	padding-left: 0 !important;
}
.table-list td:first-child > a.delete {
	display: inline-block;
	width: 24px;
	text-align: center;
}
.table-list ul.fa-ul {
	margin-top: 6px;
	margin-bottom: 0;
}
.table-list ul.fa-ul > li {
	padding-bottom: 6px;
}

h2 + table.table-list {
	margin-top: 16px;
}

tr.datepicker-edit td {
	white-space: nowrap;
	padding-bottom: 8px;
}
tr.datepicker-edit input.date {
	width: 120px;
}
tr.datepicker-edit input.time {
	width: 90px;
}
tr.datepicker-edit:last-child a.delete {
	display: none;
}

tr.datepicker-availability td {
	width: 28%;
}
tr.datepicker-availability td:first-child {
	width: 16%;
	white-space: nowrap;
}

tr.datepicker-availability label + div {
	padding: 12px 0 4px 0;
}
tr.datepicker-availability ul,
tr.datepicker-availability li {
	margin: 0;
	padding: 0;
	list-style: none;
}
tr.datepicker-availability div,
tr.datepicker-availability ul {
	margin-left: 22px;
}

tr.attachment:first-child > td {
	padding-top: 0;
}
tr.attachment + tr:not(.attachment) > td {
	padding: 12px 24px;
}

a.edit-name {
	margin-left: 6px;
}
*[data-user] a.edit-name {
	display: none;
}

.ui-autocomplete {
	position: absolute;
}
.ui-autocomplete .ui-menu-item {
	border-top: solid 1px #f0f0f0;
}
.ui-autocomplete .ui-menu-item:first-child {
	border-top: none;
}
.ui-autocomplete .ui-menu-item > div {
	padding: 3px 6px;
}

ul.navigate-to-page {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}
ul.navigate-to-page li {
	display: inline-block;
	margin: 0;
	padding: 0 8px;
}

a.message,
a.message:hover,
a.message:visited,
a.message:active {
  text-decoration: none;
  border-bottom: 1px #333 dotted;
}

.toggle-light .toggle-on,
.toggle-light .toggle-select .toggle-inner .active {
	background-color: #e68a1e !important;
}

form[autocomplete="off"] input {
	background-position: 150% 50% !important;
}
