/* TABLES */

table {
	margin-bottom: 10px;
	border-collapse: collapse;
	}

.fullwidth {
	width:100%
	}

.nearfullwidth {
	width: 97%
}

table.lined > tr, table.lined > tbody > tr {
	border-bottom: 1px solid #e6e6e6;
	}

table.rowstripe > tr:nth-child(odd), table.rowstripe > tbody > tr:nth-child(odd) {
	background-color: #f6f6f3;
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
	}

table.columnborder td, table.columnborder th {
	border-right: solid 1px #ccc; border-left: solid 1px #ccc;
}

table.columnborder td.icon {
	border-right: none; border-left: none;
}

table.columnborder td.icon:last-child {
	border-right: solid 1px #ccc;
}

td.border-left, th.border-left {
	border-left: solid 1px #ccc;
}

td.border-right, th.border-right {
	border-right: solid 1px #ccc;
}

td.border-all, table.border-all > tr > td, table.border-all > tr > th {
	border: solid 1px #ccc;
	padding: 0.5em 1.5em;
}

table.padded td {
	padding: 5px;
}

table.extrapadded td {
	padding: 10px;
}

td, th { padding: 3px;
	font-size: 0.9em;
	vertical-align: top;
	text-align: left;
	}

td.indent {
	padding-left: 18px;
}

tr.list-header, tr.repeated-header, .list-table th {
	font-weight: bold;
	color: #c3801a;
	background-color: transparent !IMPORTANT;
	}

tr.grey, tr.grey th, tr.grey td, tr.grey a {
	color: grey !IMPORTANT;
	}

tr.list-header.grey, tr.repeated-header.grey, .list-table tr.grey th {
	color: grey !IMPORTANT;
	}

tr.total {
	font-weight: bold;
	background-color: transparent !IMPORTANT;
}

tr.total > td {
	border-top: solid 2px #000 !IMPORTANT;
	border-bottom: solid 2px #000 !IMPORTANT;
}

tr.total.grey > td {
	border-color: grey !IMPORTANT;
}

tr.scriptrow.running > td {
	color: white;
	font-weight: bold;
	background-color: green;
}


tr.scriptrow.running > td a {
	color: white !IMPORTANT;
}

.shaded {
	background-color: #f6f6f3;
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
	}

.highlight {
	background-color: #fea;
}

tr.flagrow {
	background-color: #000 !IMPORTANT;
	color: #fff;
	font-weight: bold;
	}

tr.flagrow td:first-child {padding-left: 6px;}

tr.flagrow a, tr.flagrow a:visited {color: #fff;}

tr.flagrow a:hover {color: #c3801a;}

tr.selectrow {
	cursor:pointer;
}

tr.selectrow.shaded {
	background-color: #d9eefa;
}

tr.selectrow:hover, table.rowstripe > tr.selectrow:hover, 
table.rowstripe > tr.selectrow:nth-child(odd):hover, table.rowstripe > tbody > tr.selectrow:nth-child(odd):hover  {
	background-color: #fea;
}

tr.goldrow, tr.greenrow  {
	background-color: #f1da7f;
	color: #000;
	font-weight: bold;
	}

tr.goldrow td, tr.greenrow td {
	font-size: 1.1em;
	padding-left: 8px;
	}

tr.greenrow  {
	background-color: #b6dc85;
	}

td.overdue {
	color: red;
	font-weight: bold;
	}

.list-table {
	width:100%;
	text-align:left
	}

table.bordered td, table.bordered th {
	border: solid 1px black;
	padding: 0.3em
}

tr.no-border td, td.no-border, th.no-border {
	border: none;
}


/* FORM ELEMENTS */
.js-singleform {
	display: none;
	z-index: 10000;
	position: fixed;
	background: #ccc;
	margin: 0 auto;
	padding: 12px;
	padding-top: 5px;
	width: 40%;
	left: 30%;
	max-width: 700px;
	min-width: 400px;
	top: 100px;
	border-radius: 5px;
}

.js-singleform form, .js-singleform form > div {
	margin-bottom: 1em;
}

.js-singleform div.submit {
	text-align: center;
	margin-top: 2em;
	font-weight: 600;
}

.js-singleform h3 {
	margin-top: 0.4em;
	margin-bottom: 1em;
}

.form-nav {
	font-size: 0.9em;
	font-weight: bold;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	cursor: default;
	}

.form-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-block;
	}

.form-nav li {
	display: inline-block;
	margin: 0 2px;
	}

.form-nav a {
	display: block;
	padding: 2px 8px ;
	background-color: #c3801a;
	min-width: 1em;
	color: #fff;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	}
.form-nav a:hover {
	background-color: #000;
	color: #fff;
}
.form-nav a.active, .form-nav a.active:hover {
	color: #000;
	background-color: #efefef;
	}
.form-nav a.complete {
	color: #fff;
	background-color: green;
	}
.form-nav a.complete:hover {
	background-color: #000;
	}
.form-nav a.off {
	background-color: transparent;
	color: #ccc;
	cursor: default;
	padding: 2px 4px;
	}
.form-nav a.off:hover {
	color: #ccc;
	background-color: transparent;
	}


form.inline { margin: 0; position: relative; top: -0.4em; display: inline-block; padding-right: 12px; margin-bottom: 0.5em}

li form.inline { top: 0}

form.inline input, form.inline select { display: inline; font-size: 0.9em; margin:0}

form.orderview input, form.orderview select, form.orderview span { font-size: 1em; position: relative; top:3em }

input[type=submit], input[type=reset],input[type=button], button, a.button {
	background: #c3801a;
	color: #fff !IMPORTANT;
	border: none;
	cursor: pointer;
	padding: 2px 4px;
	text-decoration:none;
	display: inline-block;
	font-weight: bold;
	padding: 4px 8px;
	border-radius: 0;
	margin-top: 8px;
	margin-right: 4px;
	}

input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover, button:hover, a.button:hover {
	background: #7f5411;
	}

input.grey[type=submit], input.grey[type=reset], input.grey[type=button], button.grey, a.button.grey {
	background: #888; color: #ccc;
	}

button.disabled, button.disabled:hover, input[type=submit].disabled,  input.disabled[type=submit]:hover, a.button.disabled, a.button.disabled:hover {
	background: #ccc !IMPORTANT; 
	color: #eee !IMPORTANT; 
	cursor: default !IMPORTANT
	}

input.gobutton, form.inline input.gobutton, input.gobutton:hover, form.inline input.gobutton:hover {
	width:20px;
	height:20px;
	margin-left: 3px;
	top: 0em;
	color: transparent !IMPORTANT;
	background: url('../images/gobutton.gif?mod=2022-03-17') no-repeat;
	border: none;
	cursor:pointer;
}

input.gobutton:hover, form.inline input.gobutton:hover {
	background-position: -22px 0px;
}

input.gobutton:disabled, form.inline input.gobutton:disabled, input.gobutton:disabled:hover, form.inline input.gobutton:disabled:hover {
	background-position: -44px 0px;
}

form.inline input, form.inline select, form.inline label, form.inline input.gobutton, form.inline input.gobutton:hover {
	position: relative; top: 0.4em; margin: 0
}

.multiline > fieldset {
	position: relative;
	width:600px;
	margin: 0 0 1em 0;
	padding-top: 2.5em;
	padding-right: 2.5em;
	border:none;
	background-color: #efefef;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-khtml-border-radius: 10px;
	-webkit-border-radius: 10px;
	}

.multiline.narrow > fieldset {
	width: 400px;
	}

.fixed > fieldset {
	max-width:480px;
	}

.multiline > fieldset.submit, .multiline > fieldset.requirednote {
	border: 0 none #FFF;
	background-color: transparent;
	}

.multiline > fieldset.submit {
	padding-top: 0;
	text-align: center;
	}

.multiline > fieldset.submit > legend, .multiline > fieldset.requirednote > legend {
	display:none;
	}



 .multiline > fieldset.requirednote {
 	padding:0;
 	margin-top: -0.2em;
 	margin-bottom: -0.5em;
 	font-style: italic;
 	text-align: right;
 	}

.multiline > fieldset > ul {
	list-style:none;
	list-style-type: none;
	padding-left: 0;
	margin-top:0;
	}

.multiline > fieldset > ul > li {
	clear:both;
	position: relative;
	padding-left: 12.8em;
	margin-bottom: 1em;
	}

.multiline fieldset > legend {
	display:block;
	font-weight:bold;
	color:#c3801a;
	position:absolute;
	margin-top: -2.5em;
	padding-left: 0.8em;
	padding-top: 0.7em;
	}

.multiline > fieldset > ul > li > label {
	position: absolute;
	left:0.8em;
	width: 10em;
	text-align: left;
	padding: 0;
	font-weight: bold;
	}

.multiline > fieldset > ul > li > label em {
	position: absolute;
	left: 10.8em;
	top: 0.3em;
	}

.multiline p {
	padding-left: 0.8em;
	}

/* Wide label - all + 7em width and with min-height 80px to give space for long labels  */

.widelabel fieldset {
	max-width:530px;
	}

.widelabel > fieldset > ul > li > label {
	width: 17em;
	}

.widelabel  > fieldset > ul > li {
	padding-left: 19.8em;
	min-height:6em;
	}

.widelabel  > fieldset > ul > li > label em {
	left: 17.4em;
	}

/* Extrawide label - all + 14em width and with min-height 80px to give space for long labels  */

.extrawidelabel fieldset {
	max-width:530px;
	}

.extrawidelabel  > fieldset > ul > li > label {
	width: 24em;
	}

.extrawidelabel fieldset  > fieldset > ul > li {
	padding-left: 26.8em;
	min-height:3em;
	}

.extrawidelabel label  > fieldset > ul > li > em {
	left: 24.4em;
	}

/* Login label   */

.login > fieldset {
	width: 400px;
	float: left;
	clear: left;
	}

.login  > fieldset > ul > li > label {
	width: 7em;
	}

.login > fieldset > ul > li {
	padding-left: 7em;
	}

.login label  > fieldset > ul > li > em {
	left: 7em;
	}


.multiline input, .multiline select  {
	position: relative ;
	top: -0.3em;
	}

.multiline input.gobutton {
	top: -0.3em;
	}

p input.gobutton {
position: relative ;
	top: 0.4em;
	}

textarea.notes {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.9em;
	font-style: italic;
	color: #4F0163;
	background: #f9f9f9;
	padding: 6px;
	border-color: #dddddd;
}

.formtext {
	position: relative;
	top: -0.5em;
	}

form.inline span.formtext {top: 0.5em; }

li form.inline {top: -0.4em}

 .labelnote {
 	clear:both;
 	color: #000;
	font-size: 0.8em;
 	font-style: italic;
 	font-weight: normal;
 }

 .checkbox-header {
	font-size: 0.8em;
	font-weight: bold;
	margin: 0 0.3em;
	line-height: 3em;
	color: #c3801a;
	text-transform:uppercase;
}

.radiobox {
	min-width: 150px;
	background-color: #fff;
	border: solid 1px #aaa;
	padding: 6px;
	margin-bottom:0.5em;
}

.radio-option {
	padding-left: 30px;
	position:relative;
	padding-bottom: 8px;
	}

.radio-option-wide {
	padding-left: 60px;
	position:relative;
	padding-bottom: 8px;
	}

.radio-option input {
	position: absolute;
	left:0px; top: -2px;
	}
	
.radio-option.split-by-grey-line input {
	position: absolute;
	left:0px; top: 3px;
	}

.radio-option-wide input {
	position: absolute;
	left:0px; top: -2px;
	}

.radio-option table {
	position: relative;
	top: -2px;
	}

form.widelabel .radiobox {
	width: 250px;
	}

ul.errorlist li {
	color: red;
}

div.alert {
	font-size: 0.9em;
	color: red;
	font-weight: bold;
	text-decoration:underline;
 	margin-bottom: -10px;
 }

 .step-title {
	color: #8a2ea8;
	font-weight:bold;
	font-size: 1.3em;
	margin-top: -0.5em;
	margin-bottom: 1em;
	}

/* SETTINGS AND LOG-IN PANELS */

#settings, #login, #username-panel {
	position: fixed;
	display: none;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 15;
	}

#username-panel {
	display: block;
}
	
.mask {
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-color: #000;
	opacity: 0.9;
	}

.hiddenform  {
	position: relative;
	top: 40px;
	left: 50%;
	margin-left: -200px;
	width: 360px;
	display: block;
	background: #101;
	border: 5px solid #c3801a;
	border-radius: 20px;
	z-index: 10;
	box-shadow: 8px 12px 12px #000;
	padding: 10px;
	color: #fff;
	}

.hiddenform h2 {
	margin-left: 20px;
	margin-bottom: 20px;
	}


.hiddenform  fieldset {
	width: 320px;
	margin: 0 0 10px 0;
	padding-top: 20px;
	padding-right: 10px;
	border:none;
	border-radius: 10px;
	}

.hiddenform fieldset.submit, .multiline fieldset.requirednote {
	border: 0 none #FFF;
	background-color: transparent;
	}

.hiddenform  fieldset.submit {
	padding-top: 10px;
	text-align: center;
	}

.hiddenform fieldset ul {
	list-style:none;
	padding-left: 0;
	margin-top:0;
	}

.hiddenform ul li {
	clear:both;
	position: relative;
	padding: 0.6em 0 0.6em 200px;
	border-radius: 5px;
	}

.hiddenform legend {
	display:block;
	font-weight:bold;
	font-size: 1.4em;
	color:#c3801a;
	position:absolute;
	margin-top: -45px;
	padding-left: 5px;
	padding-top: 10px;
	}

.hiddenform fieldset.submit legend {
	display:none;
	}

.hiddenform label {
	position: absolute;
	left:5px;
	width: 180px;
	text-align: left;
	padding: 0;
	font-weight: bold;
	font-size: 1.1em;
	}


#login .hiddenform ul li {
	padding: 5px 0 12px 110px;
	}

#login .hiddenform label {
	width: 90px;
	}

.hiddenform .submit input {
	position: absolute;
	left: 50px;
	bottom: 20px;
	width: 100px;
	height: 40px;
	}

.hiddenform .submit input + input {
	left: auto;
	right: 50px;
	margin-left: 50px;
	}

/* ROTATED TABLE HEADERS */

.table-header-rotated th.row-header{
  width: auto;
}

.table-header-rotated.hasflagrows tbody tr:nth-child(even) {
	background-color: #eee;
}

.table-header-rotated td{
  border: 1px solid #dddddd;
  vertical-align: middle;
}

.table-header-rotated th {
  vertical-align:text-bottom;
}

.table-header-rotated th.rotate-45{
  height: 80px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: relative;
  vertical-align: bottom;
  padding: 0;
  font-size: 12px;
  line-height: 1em;
}

.table-header-rotated th.rotate-45 > div{
  position: relative;
  top: 0px;
  left: 40px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
  height: 100%;
   -ms-transform:skew(-45deg,0deg);
  -moz-transform:skew(-45deg,0deg);
  -webkit-transform:skew(-45deg,0deg);
  -o-transform:skew(-45deg,0deg);
  transform:skew(-45deg,0deg);
  overflow: hidden;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}

.table-header-rotated th.rotate-45 span {
  -ms-transform:skew(45deg,0deg) rotate(315deg);
  -moz-transform:skew(45deg,0deg) rotate(315deg);
  -webkit-transform:skew(45deg,0deg) rotate(315deg);
  -o-transform:skew(45deg,0deg) rotate(315deg);
  transform:skew(45deg,0deg) rotate(315deg);
  position: absolute;
  bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin*/
  left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/
  display: inline-block;
  /* width: 100%; */
  width: 85px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
  text-align: left;
  /* white-space: nowrap; whether to display in one line or not */
}

textarea, div.textarea {
	text-align : left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1em;
	background-color: #fff;
	padding: 0.5em;
	border: solid 1px #aaa;
}

.multiline div.textarea {
	margin: 1em;
}

h1.elearning {
	display: block;
	width: 323px;
	height: 40px;
	padding: 0;
	background: url('../images/elearning/kcaonline.png') no-repeat;
	}

div.elearning-small, a.elearning-small {
	display: block;
	width: 160px;
	height: 20px;
	padding: 0;
	background: url('../images/elearning/kcaonlinesmall.png') no-repeat;
	margin-bottom: 10px;
	}

span.elearning-tiny {
	display: inline-block;
	width: 115px;
	height: 15px;
	padding: 0;
	background: url('../images/elearning/kcaonlinetiny.png') no-repeat;
	position: relative;

	}

img.pdf {
	border: solid 1px black;
	-moz-box-shadow: 3px 3px 2px #ccc;
	-webkit-box-shadow: 3px 2px 2px #ccc;
	box-shadow: 3px 3px 2px #ccc;
	margin-right: 10px;
	margin-bottom: 10px;
	}

img.pdf:hover {
	border-color: #c3801a
	}


/* SORTABLE */

th.tablesorter-header {
	cursor:pointer;
}

.tablesorter-header-inner {
	display: inline;
}

th.tablesorter-header:hover {
	color: #7B5011;
}

th.tablesorter-headerDesc, th.tablesorter-headerAsc, th.tablesorter-headerDesc:hover, th.tablesorter-headerAsc:hover {
	color: #936014;
	text-decoration: underline;
}


th.tablesorter-headerAsc:after {
    display: inline;
    content: " (asc)";
}

th.tablesorter-headerDesc:after {
	display: inline;
    content: " (desc)";
}


/* GENERIC FORM FOR ASYNC WORKING */

.generic-form form {
	display: table;
	padding-bottom: 1em;
}

.generic-form p {
	font-size: 0.95em;
	max-width: 600px
}

.generic-form fieldset{
	padding: 0;
	border: solid 2px #4F0163;
	margin-bottom: 20px;
	position: relative;
}

.generic-form fieldset.submit {
	border: none;
}

.generic-form legend {
	display: block;
	width: 90%;
	padding: 0.2em 5%;
	margin-bottom: 1em;
	margin-left: -1px;
	border: solid 2px #4F0163;
	font-size: 1.1em;
	font-weight: bold;
	color: #fff;
	background-color: #4F0163;
}

.generic-form .formrow { 
	display: table-row;
	}

.generic-form label, .generic-form .input-area {
	display: table-cell;
	padding-left: 1em;
	padding-bottom: 1em;
	vertical-align: top;
	max-width: 600px;
}

.generic-form label{
	padding-right: 0.6em;
}

.generic-form input, .generic-form textarea {
	display: inline-block;
	padding: 0 4px;
	background-color: #f9f9f9;
	resize: none;
}


.generic-form textarea {
	margin-top: 0.15em;
	padding: 0.5em;
	width: 90%;
	max-width: 400px;
	}

.generic-form button, .generic-form input[type=submit], .generic-form input[type=reset] {
	width: auto;
	background-color: #c3801a;
	color: #fff;
	font-weight: bold;
	padding: 0.5em 1em;
	border: none;
}

.generic-form input[type=checkbox], .generic-form input[type=radio] {
	display: inline-block; margin-bottom: 0; width: auto
}

.generic-form .radiobox {
	display: inline-block;
	border: solid 1px #aaa;
	padding: 1-px 5px 0px;
	margin-bottom: 5px;
	background-color: #fff
	}

.generic-form .radiobox div {
	position: relative;
	padding: 0px 10px 5px 30px;
}

.generic-form .radiobox div input {
	display: inline-block;
	position: absolute;
	left: -1px;
	top: -1px;
}

.generic-form .radiobox div span {
	display: inline-block;
}

.generic-form .radiobox div input:checked+span {
	font-weight: bold;
}

.generic-form .formhelp {
    margin-top: 1em;
    font-style: italic;
    font-size: 0.9em;
    }

.generic-form .form-feedback {
	white-space: nowrap;
	margin-top: 0;
	font-size: 0.8em;
}

.generic-form label, .generic-form .form-feedback { color: #009fe3; font-weight: bold; }

.generic-form input, .generic-form textarea, .generic-form .radiobox { border: solid #555 1px}

.generic-form .required input, .generic-form .required textarea, .generic-form .required .radiobox { border: solid red 1px}

.generic-form .required label, .generic-form .required .form-feedback { color: red }

.generic-form .approved label, .generic-form .approved .form-feedback { color: green }

form.generic .approved input, .generic-form .approved textarea, .generic-form .approved .radiobox { border: solid green 1px}

.generic-form form.submitted {opacity: 0.3}

.generic-form .form-confirmation {
	font-weight: bold;
	color: green;
}

@media screen and (max-width: 450px) {
    .generic-form form, .generic-form .formrow, .generic-form label, .generic-form .input-area, .generic-form .radiobox {
    	display: block;
    }
    .generic-form label {
    	padding-bottom: 0.3em;
    }
}

/* SCREEN READER AND IMAGE REPLACEMENT */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}
