@charset "utf-8";
select.file_status { margin-top: -5px; color: #666; }
select.file_status.active { color: #333; }
select.file_status option { padding: 4px; color: #666; }
.active.option_class_-1, .active.option_class_-1, .active .option_class_-1, div.text .active.option_class_-1:focus { color: #333; background-color: #faa!important; }
.active.option_class_2, .active .option_class_2, div.text .active.option_class_2:focus { color: #333; background-color: #c2e39c!important; }
.active.option_class_3, .active .option_class_3, div.text .active.option_class_3:focus { color: #333; background-color: #a4d26d!important; }

input[type='file'].active, input[type='file'].active:focus {
	border-color: #000;
	/* blue */
	/*
	background-color: #def!important;
	box-shadow: 0px 0px 15px 5px rgba(221, 238, 255, .75);
	*/

	/* yellow */
	background-color: #fffccc!important;
	box-shadow: 0px 0px 15px 5px rgba(255, 252, 204, .75);
}

table.permissions td, table.permissions th {
	/* font-size: 100%;  */
	font-size: inherit;
	min-width: 100px;
	padding: 6px 3px 10px 5px;
	border-bottom: 1px solid #ccc;
}

table.permissions tr:nth-child(even) td { background-color: #f6f6f6; }

table.permissions th {
	border-bottom: 1px solid #999;
	font-style: italic;
	font-weight: bold;
}

table.permissions td.permission {
	width: 200px;
	text-align: center;
}

table.permissions td.permission input[type="checkbox"] {
	position: relative;
	top: 2px;
	left: -1px;
	margin-right: 5px;
	cursor: pointer;
}

table.permissions td.permission label {
	cursor: pointer;
}

td.permission span {
	display: inline-block;
	color: #333;
	padding: 4px 8px;
	width: 90%;
	box-sizing: border-box;
}

td.permission span.infobox {
	border: 1px solid #ccc;
	border-radius: 3px;
	background-color: #eee;
	margin-top: 5px;
	font-weight: normal;
}

td.permission.value_0 span { color: #960; border-color: #960; background-color: #ffa; }
td.permission.value_1 span { color: #282; border-color: #282; background-color: #eef2ee; }
td.permission.value_1 span.remove_permission { color: #333; border-color: #900; background-color: #fee; }
td.permission.value_0 span.confirm { color: #333; border-color: #009; background-color: #afa; }

table.contract_table { width: 100%; }
table.contract_table td, table.contract_table th {
	width: auto;
	text-align: left;
}

table.contract_table td.success { background-color: #a4d26d !important; }
table.contract_table td.failure { background-color: #faa !important; }

#tabs {
	border: 0;
}

#tabs .ui-state-active, #tabs .ui-widget-content .ui-state-active, #tabs .ui-widget-header .ui-state-active {
    border: 1px solid #999;
	border-bottom: 0;
    background: white;
    font-weight: normal;
    color: #333 !important;
}

#tabs.loading > * { display: none; }

#tabs .ui-state-active a, #tabs .ui-state-active a:link, #tabs .ui-state-active a:visited {
    color: #333 !important;
    text-decoration: none;
}

#tabs .ui-state-default a, #tabs .ui-state-default a:link, #tabs .ui-state-default a:visited {
    color: #454545 !important;
}

#tabs.ui-tabs .ui-tabs-panel {
	padding: 1em 9px;
}

div.text .force_status_box h3 {
	margin-top: 0;
	margin-bottom: 5px;
}

div.text .force_status_box input[type="submit"] {
	margin-top: 12px;
	margin-bottom: 4px;
}

.force_status_box input[type="radio"] {
	vertical-align: bottom;
	cursor: pointer;
	display: inline-block;
	margin: 5px 0px 1px 5px;
}

.force_status_box label {
	background-position: 16px center;
	background-repeat: no-repeat;
	padding-left: 36px;
	display: inline-block;
	margin: 6px 0px 0px 0px;
	cursor: pointer;
	vertical-align: bottom;
}

.force_status_box input[type="radio"]:hover + label { text-decoration: underline; }
.force_status_box input[type="radio"]:checked + label { font-weight: bold; }

.force_status_box label.label_forced_0 { background-image: url('../img/icons/tick.png');}
.force_status_box label.label_forced_1 { background-image: url('../img/icons/hourglass.png');}
.force_status_box label.label_forced_2 { background-image: url('../img/icons/accept.png');}
.force_status_box label.label_forced_3 { background-image: url('../img/icons/exclamation.png');}


table.contractual_power td, table.contractual_power th {
  padding: 3px;
  border: 1px solid #999;
  font-size: 12px;
  text-align: center;
}

table.contractual_power th {
  background-color: #ccc;

}

table.contractual_power td {
  padding: 0;
  background-color: #eee;
}

table.contractual_power tr.units th {
  background-color: #aaa;
}


table.contractual_power td.type_text {
  width: 35%;
}

table.contractual_power td input {
  width: 100%;
  margin: 0;
  text-align: center;
  border: 0;
  font-size: 16px;
  background-color: #eee;
  padding: 4px;
}

table.contractual_power td input[readonly] {
  background-color: #fff;
  color: #666;
}

table.contractual_power td input:focus {
  background-color: #fff;
}

table.edit_table tr.hide_row td {
	height: 0;
	line-height: 0;
	font-size: 0;
	padding: 0;
	transition: padding .2s, height .2s, line-height .2s, font-size .2s;
}
table.edit_table tr.hide_row td > * {
	display: none;
}

table.edit_table td.value .editable[name="turvallisuuskysymys"] { margin-left: 10px; }

table.edit_info td.value .editable.narrow_no_float {
	width: 50%;
	float: none;
}

.tab-hidden { display: none; }

@media screen and (max-width: 768px) {
	table.edit_table td, table.edit_table th { display: block; width: 100% !important; height: auto !important; }
	table.edit_table .editable[type="text"], table.edit_table .editable[type="email"], table.edit_table .editable[type="password"], table.edit_table select.editable { width: 100% !important; }
	table.edit_table.target_1 td.value table { width: 100% !important; }
	table.permissions th, table.permissions td { display: table-cell; width: auto !important; vertical-align: middle; }
	table.permissions td.permission label { width: 50%; }
	table.permissions td.permission input[type="checkbox"] { top: -9px; }
	tr.row_project_contractual_power { overflow: scroll; }
	table.contractual_power { width: 100%; font-size: 10px; line-height: 10px; }
	table.contractual_power tr { display: table-cell; width: auto !important; }
	table.contractual_power th, table.contractual_power td { display: block; width: auto !important; height: 36px !important; }
	tr.extra_pad td.row { padding: 12px 0 0; }
	.edit_table td button { margin-top: 0px; }
	table.edit_table input[type="file"].editable { width: 80% !important; }
	table.add_documents .selection_header { font-weight: bold; font-size: 14px; }
}