html, body {
    font-family: "Source Sans Pro","Arial",sans-serif; 
    background-color: #fff;
}

 .pure-g [class*="pure-u"] {
	font-family: "Source Sans Pro","Arial",sans-serif; 
}

h1, h2, h3, h4 {
	font-family: "Roboto",Helvetica,"Liberation Sans",sans-serif;
	}

h3,h4 {
	margin-bottom: 0.2em;
	}
    h2 {
        font-size: 1.5em;
    }
p {
	margin-top: 0.5em;
	}

.underline {
	border-bottom: solid 1px;
}

a, a.visited {
	text-decoration: none;
	color: #062270;
	border-bottom: 1px solid #818181;
	border-bottom-style: dotted;
}

a:hover {
	background-color: #E7E7E7;
	color: #020B24;
}

a.plain {
	border-bottom: none;
	}
	
a.plain:hover {
	background-color: transparent;
	}

a.plain:hover .download {
	background-color: #E7E7E7;
	}

a.not_active {
    text-decoration: line-through;
    border-bottom: none;
    }

a.normal_user {
    text-decoration: wavy underline #818181;
    border-bottom: none;
}

a.correspondent {
    border: solid 1px #818181;
    border-radius: 5px;
    background-color: #eaedf0;
    padding-left: 0.2em;
    padding-right: 0.2em;
}

.clear {
	clear: both;
	}
	
	
#layout {
	background-color: #fff;
	padding: 0.5em 0;
	}

#header, #navbar, #footer {
	width: 100%;
	}

#header {
	background-color: #fff;
	}


/* --------------------------------------------------------------------- */
/* Ylävalikko käsikirjoituksille */

div#navbar {
	font-family: "Roboto",Helvetica,"Liberation Sans",sans-serif;
    margin: 0px;
	padding: 0px;
    vertical-align: middle;
	background: #eaedf0; 
}

div#navbar a {
		border: none;
	}

div#navbar .pure-menu-link {
	color: #000;
	font-size: 1em;
	
	}

/* Prevent bootstrap's settings */
div#navbar .pure-menu-link
{
    line-height: 1.15em;
}

div#navbar .pure-menu-link, .pure-menu-disabled, .pure-menu-heading {
    padding: 0.4em 1em;
}

.pure-menu-link:hover {
	text-decoration: none;
	}

div#navbar .pure-menu-link:hover, div#navbar .pure-menu-link:active,  div#navbar .pure-menu-link:focus {
	background-color: #cfd6dd;
	}

div#navbar .pure-menu-link.selected {
	background-color: #4d6380;
	color: #fff;
	}

div#navbar .pure-menu-link.selected:hover, div#navbar .pure-menu-link.selected:active,  div#navbar .pure-menu-link.selected:focus {
	background-color: #cfd6dd;
	color: #000;
	}



div#navbar .pure-menu-children {
    background-color: #eaedf0;
}
/* --------------------------------------------------------------------- */

/* --------------------------------------------------------------------- */
div#content {
    margin: 0 auto;
    max-width: 980px;
}


div#login, div#site_alert {
	margin: auto;
	padding: 8% 0 0;
	width: 30em;
	}

form.pure-form input.error {
	color: #eb7260;
    border-color: #e9322d;
	}

form span.error {
	color: #eb7260;
	font-weight: bold;
	}


div.error {
    background: url("img/x_alt_24x24.png") no-repeat 9px 7px #fad9d4; /* #ffe6e2; */
    color: #4b1710;
	border-top: 2px solid #eb7260;
	border-bottom: 2px solid #eb7260;
}
	
div.mixed {
    background: url("frown.png") no-repeat scroll 5px 1px #ffcc00;
}
div.success {
    background: url("img/check_24x20.png") no-repeat 9px 7px #e8f9d4;
    border-top: 2px solid #98bf21;
	border-bottom: 2px solid #98bf21;
}

div.information {
	border-top: 2px solid #cfd5dd;
	border-bottom: 2px solid #cfd5dd; 
	background-color: #e8f6f5; 
	}

div.check {
	background-color: #C9A1AA;
	color: #000000;
	border: thin solid #D0D0D9;
}

div.error, div.success, div.information, div.check {
	margin: 1em 0 0.5em;
	padding: 7px 0 10px 40px;
	width: 40em;
}

div.error p {
	margin-bottom: 0.5em;
	}

div.preformatted {
    font-family: 'Source Code Pro', monospace;
    white-space: pre;
}
 
.information a {
    border-bottom: 1px solid #545454;
    color: #00003c;
}


.decisions-info {
    background-color: #f9fafb;
    border-top: 2px solid #cfd5dd;
	border-bottom: 2px solid #cfd5dd;
    font-size: 90%;
    padding: 0.3em 0.5em;
	margin-bottom: 0.5em;
}

span.icon {
	margin-left: -2em;
	margin-right: 1em;
	}

span.icon.ok {
	color: #29aba4;
	font-size: 90%;
	}
	
	
.custom-restricted-width {
    /* To limit the menu width to the content of the menu: */
    display: inline-block;
    /* Or set the width explicitly: */
    /* width: 10em; */
}

.pure-g > div {
        box-sizing: border-box;
    }
.l-box {
        padding-right: 0.5em;
    }
    .r-box {
        padding-left: 0.5em
    }
/* --------------------------------------------------------------------- */

/* --------------------------------------------------------------------- */
/* Taulukot */

 
 .table-sjweh {
	font-size: 92%;
	line-height: 120%;
	color: #000;
   -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-collapse: collapse;
    border-color: #4d6380;
    border-image: none;
    border-style: solid;
    border-width: 2px 0;
	margin: 0.6em 0;
}

.table-sjweh thead {
	background-color: #cae4f5;
	}

.table-sjweh thead th {
    font-size: 1em;
    font-variant: normal;
    font-weight: bold;
	text-align: left;
	}

.table-sjweh tbody th {
    font-size: 1em;
    font-variant: normal;
    font-weight: normal;
	text-align: left;
}

.table-sjweh tfoot {
	font-weight: bold;
	border-top: double gray; 
}

.table-sjweh .pure-table-odd td {
	background-color: #f9fafb;
	}


.table-sjweh tr:hover, .table-sjweh tr.pure-table-odd:hover {
	}

.table-sjweh td, .table-sjweh  th {
	padding: 0.3em;
	vertical-align: top;
	}

table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after { 
    content: " \25B4\25BE" 
}

.table-wide {
	width: 100%;
}

.table-tight td {
	padding: 0.3em 0.5em;
	}

.table-decision tr td:not(:first-child) {
	text-align: center;
	}
	
tr.poistettu {
	background-color: #fdf0ee;
	}
	
tr.aktiivinen {
	background-color: #e8f6f5;
	}
/* --------------------------------------------------------------------- */


/* --------------------------------------------------------------------- */
/* forms */
fieldset.manuscript {
	margin: 0;
	border: 0 solid #FFFFFF;
	border-top: 1px solid #000000;
}

fieldset.manuscript legend {
    /* Prevent bootstrap to set this to left */
    float: none;
    font-size: 1em;
    line-height: 1.15em;
}

.pure-form label {
    display: inline;
}

form.pure-form textarea {
	width: 40em;
	height: 12em;
    line-height: 1.3em;
	}

form.pure-form textarea.short {
	height: 3em;
	}

form.pure-form textarea.medium {
	height: 7em;
	}

form.pure-form textarea.large {
	height: 18em;
	}

form.pure-form textarea.xlarge {
	height: 22em;
	}

form.pure-form textarea.xxlarge {
	height: 28em;
	}

form.sjweh-basic label {
	font-weight: bold;
	}

.pure-form-aligned .pure-controls span.label {
	float: left;
    display: inline-block;
    margin: 0 1em 0 -11em;
    vertical-align: middle;
    width: 10em;
	font-weight: bold;
	text-align: right;
}

.pure-form label.plain-text  {
	font-weight: normal;
	}

.sjweh-basic label:not(.plain-text) {
	padding-top: 0.9em;
	}

.form-tight label:not(.plain-text) {
	padding-top: 0.15em;
	}


form.sjweh-eo-form label.plain-text {
	font-weight: normal;
	padding-top: 1em;
	margin-left: 2em;
	}

form.sjweh-eo-form label.plain-text input[type="checkbox"] {
	padding-top: 1em;
	margin-left: -2em;
	margin-right: 1em;
	}

form.sjweh-eo-form textarea {
	margin-left: 2em;
	}

	

.pure-control-group span.info {
	margin: 0 1em 0 11em;
	font-style: italic;
	}
	
.button-xsmall {
	font-size: 70%;
	padding: 0.3em 0.6em;
}

.button-small {
	font-size: 85%;
	padding: 0.3em 0.6em;
}

.button-large {
	font-size: 110%;
}

.button-xlarge {
	font-size: 125%;
}

.pure-button.warning {
    background-color: #eeaf3b;
}

.pure-button.pure-button-primary {
	background-color: #3a9ad9;
	}

.button-next-action {
	background: #29aba4;
	color: #fff;
	margin: 0.5em 0em;
}
a.button-next-action {
	background: #29aba4;
	color: #fff;
	}


thead th .pure-button.plain-text {
	font-weight: normal;
	font-variant: normal;
	letter-spacing: normal;
	}

/* smaller input fields */
.pure-form.form-tight  input[type="text"], .pure-form.form-tight  input[type="password"], .pure-form.form-tight  input[type="email"], .pure-form.form-tight  input[type="url"], .pure-form.form-tight  input[type="date"], .pure-form.form-tight  input[type="month"], .pure-form.form-tight  input[type="time"], .pure-form.form-tight  input[type="datetime"], .pure-form.form-tight  input[type="datetime-local"], .pure-form.form-tight  input[type="week"], .pure-form.form-tight  input[type="number"], .pure-form.form-tight  input[type="search"], .pure-form.form-tight  input[type="tel"], .pure-form.form-tight  input[type="color"], .pure-form.form-tight  select, .pure-form.form-tight  textarea {
	padding: 0.15em 0.11em;
	font-size: 95%;
}

.pure-form.form-xtight  input[type="text"], .pure-form.form-tight  input[type="password"], .pure-form.form-tight  input[type="email"], .pure-form.form-tight  input[type="url"], .pure-form.form-tight  input[type="date"], .pure-form.form-tight  input[type="month"], .pure-form.form-tight  input[type="time"], .pure-form.form-tight  input[type="datetime"], .pure-form.form-tight  input[type="datetime-local"], .pure-form.form-tight  input[type="week"], .pure-form.form-tight  input[type="number"], .pure-form.form-tight  input[type="search"], .pure-form.form-tight  input[type="tel"], .pure-form.form-tight  input[type="color"], .pure-form.form-tight  select, .pure-form.form-tight  textarea {
	padding: 0.1em 0.11em;
	font-size: 90%;
}

.pure-form.form-tight  .pure-controls {
		margin-top: 0.5em;
	}

fieldset.list {
  margin: 0;
  padding: .35em 0 .75em;
  border: 0;
}

fieldset.list legend, fieldset.details legend {
  display: block;
  width: 100%;
  padding: .3em 0;
  margin-bottom: 0;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
}

#refereesInCartList ul {
    margin-top: 0px;
}

.to-right {
    float: right;
}

/* --------------------------------------------------------------------- */
/* Misc */
div.clear {
	height: 0.5em;
	}

#more {display: none;}

.toggle-more {display: none;}

/* --------------------------------------------------------------------- */


/* jquery widget - accordion */
.ui-accordion .ui-accordion-header {
    padding: 0.2em 0.5em 0.2em 2em;
}

.ui-accordion .ui-accordion-content {
    padding: 0em 1.5em 0.4em;
}

.ui-accordion .ui-accordion-content ul {
    margin: 0em;
	padding-left: 0em;
}

.ui-accordion .ui-accordion-content li {
    list-style-type: none;
	padding-left: 0em;
}


.ui-accordion .ui-accordion-content ul.filelist {
    margin-bottom: 0.4em;
}


/* font awesome */
.fa{
	color: inherit; 
	font-size: inherit; 
	padding: 0 0.3em 0 0;
	text-align: center;
	margin: 0 0.2em 0 0em;
	
}

.fa-sjweh {
    display: inline-block;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-toggle-off {
    color: #333;
    font-weight: bold;
}

.fa-toggle-on {
    color: #3794D1;
    font-weight: bold;
}

.fa-2x {
    font-size: 1.6em;
}

/** Shopping cart for referees */
.add-to-cart, .remove-from-cart, .to-cart {
    border: none;
    padding: 0.1em;
    margin: 0;
    background-color: #fff;
    color: #3a9ad9;
    border-radius: 3px;
    }

button.helper {
    border: none;
    padding: 0.1em;
    margin: 0;
    background-color: transparent;
    color: white;
    }

    button.helper:hover {
        transform: scale(1.5);
        font-weight: bold;
    }
    
.remove-from-cart-list, .use-as-referee {
   border: none;
    padding: 0.1em;
    margin: 0;
    background-color: transparent;
}

.add-to-cart::before {
	font: normal normal normal 18px/1 FontAwesome;
	content: '\f0fe';
}

.remove-from-cart::before {
	font: normal normal normal 18px/1 FontAwesome;
	content: '\f146';
}

.remove-from-cart-list::before {
    font: normal normal normal 16px/1 FontAwesome;
	content: '\f014'; 
	/* content: '\f1f8';  */
    /* content: '\f00d'; */
}

.use-as-referee::before {
    font: normal normal normal 18px/1 FontAwesome;
    content: '\f061';
}

#page-top {
    position: -webkit-sticky;
    position: sticky;    
	/* position: absolute; */
	right: 0;
	top: 0;
    background-color: transparent;
    padding: 0;
    margin: 0;
    margin-top: -8px;
    border: none;
}

#referee-basket {
    background-color: cadetblue;
/*    position: -webkit-sticky;
    position: sticky;    */
	 position: absolute; 
	right: 0;
	top: 0;
	left: auto;
	padding: 0.6em 1em;
	border-radius: 0 0 0 0.8em;
	color: white;
}

#referee-basket .normal {
    display: inline;
}
#referee-basket ul.hide {
    margin: 0;
    padding-left: 1em;
    display: none;
}

#referee-basket:hover  {
	transform: scale(1.2);
	transform-origin: top right;
    -webkit-transition: transform 0.2s;
	transition: transform 0.2s;
}

#referee-basket:hover .hide {
    display: block;
}
#referee-basket:hover .normal {
    display: none;
}

.list-group {
    padding-left: 0;
    margin-top: 0px;
    box-sizing: border-box;
    border-radius: 0.25em;
    display: flex;
    flex-direction: column;
}

.d-flex {
    display: flex;
}

.list-group-item {
    list-style: none;
    border: 1px solid rgba(0,0,0,.125);
    padding: .25em .5em;
}

.list-group-item:not(.active,.inactive,.ready):hover {
    background-color: whitesmoke;
}

.list-group-item.active:hover, .list-group-item.inactive:hover, .list-group-item.ready:hover, 
.list-group-item.warning:hover, .list-group-item.danger:hover{
    filter: brightness(90%);
}

.item-left {
    margin-right: auto !important;
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.justify-content-between {
    justify-content: space-between !important;
}

.waiting {
    background-color: lightyellow;
}

.active {
    background-color: #E8F6F5;
}

.inactive {
    /*background-color: #e3e3e3;*/
    background-color: #FDF0EE;
}

.ready {
    background-color: #E8F6F5;
}

.warning {
    background-color: #FFF3CD;
}

.danger {
    background-color: #F8D7DA;
}


/* --------------------------------------------------------------------- */
/* jquery elements */
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    background: #eaf4fb none repeat scroll 0 0;
    border: 1px solid #cae4f5;
    color: #000;
    font-weight: normal;
}

div#siteMessage {
    padding: 0 2em 0;
}
div#site_alert {
    padding: 0.5em;
    background-color: #ffbe1a;
    color: #000;
    width: 100%;
    font-size: 1.2em;
}
div#main div#site_alert {
    font-size: 0.9em;
}

.alert i {
    vertical-align: middle;
    font-size: 36px;
    padding-right: 15px;
    color: #fff;
}
div#main .alert i {
    font-size: 28px;
    padding-right: 15px;
}
