html,body,table {
	font:11px verdana;
	margin:0px;
	padding:0px;
	border:none;
}

table {
	border-collapse: collapse;	
}

a, av:visited {
	text-decoration:none;
	color:blue;
	
}
a:hover {
	text-decoration:underline;
}

div.header_container {
	margin-top:0px;
	height:45px;
	clear:both;			
}

h2 {
	margin-top:4px;
	color:#686351;
	border-bottom:1px dotted #686351;
	/*background-image: URL('image/notset_icon_small.png');*/
	background-repeat: no-repeat;
	padding-top:2px;
	padding-left:2px;
	padding-bottom:8px;
	font-size:12pt;
	font-weight: bold;
}

h2.workstatus {
	background-image: URL('image/workstatus_icon_header.png');
}

h2.marking {
	background-image: URL('image/marking_icon_header.png');
}

h2.work {
	background-image: URL('image/work_icon_header.png');
}

h3 {
	font-size:10pt;	
}

div.header_container h2 {
	display:display;
	font-size:12pt;
	border-bottom:1px solid #e8e8e8;
	line-height:35px;
}

div.header_container img {
	float:left;
	display:inline;
	margin-right:8px;
	width:30px;
	
}


.moderate {
	font-size:0.85em;
}

select.groupedOptions option {
	margin-left:1em;
}

select.groupedOptions option.groupHeader {
	margin-left:0em;
	background-color:#EEE;
}

option.special {
	background-color: #FEE;
}

.form th {
	text-align:left;
	padding-right:10px;
}

.form tr.odd {
	background-color: #F2F2FF;
}

td.fieldOption {
	color:#777;
	padding-left:20px;
}

tr.controls td {
	padding-top:6px;
}

td.error {
	color:red;
	padding-left:4px;
}

input.date {
	width: 80px;
}

.date input {
	width: 80px;
}

div.date input {
	width: 80px;
}

td.price  {
	text-align: right;
	white-space: nowrap;
}

th.price  {
	text-align: right;
	white-space: nowrap;
}

/* table class list */
.list tr.odd {
	background-color: #f1f4f6;
}

.list tr.selection {
	background-color: LightSteelBlue;
}

.list td.commands {
	white-space:nowrap;
}

.infotable td {
	padding-left: 4px;
}

.list td,th {
	padding-left:8px;
}

/* table class moringslist */
.moringslist tr.odd {
	background-color: #f1f4f6;
}

.moringslist td,th {
	padding-left:8px;
	font-size: 11;
}

th.tabs {
	text-align:left;
	padding-left:8px;
}

td.tabs {
	text-align:left;
	padding-left:4px;
}

tr.total td {
	border-top : 1px solid red;
}

td.date {
	text-align: right;
	padding-left:8px;
}

td.time {
	text-align: right;
	padding-left:8px;
}

td.duration {
	text-align: right;
	padding-left:8px;
}

html, body {height:100%; margin:0; padding:0;}
#page-background {position:fixed; top:0; left:0; width:100%; height:100%;}
#content {position:relative; z-index:1; padding:10px;}

table#main_table {
	width:100%;
	height:100%;
}

td#main_left {
	background-color:#f1f0ed;
	background-image: URL('image/main_left_bg.png');
	background-position:right;
	background-repeat: repeat-y;
	height:100%;
}

td#main_center {
	width:1000px;
	vertical-align: top;
	height:100%;
}

td#main_right {
	background-color:#f1f0ed;
	background-image: URL('image/main_right_bg.png');
	background-position:left;
	background-repeat: repeat-y;
	height:100%;
}

table#layout_table 
{
	width:100%;
	height:100%;
	margin-left:auto;
	margin-right:auto;	
}

td.layout_top
{
	background: URL('image/header_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_MP
{
	background: URL('image/header_MP_bg.png');
	height:118px;
}

td.layout_top_ssa
{
	background: URL('image/header_ssa_bg.png');
	height:118px;
}

td.layout_top_vsm
{
	background: URL('image/header_vsmarin_bg.png');
	height:118px;
}

td.layout_top_apila
{
	background: URL('image/header_apila_bg.png');
	height:118px;
}

td.layout_top_kopola
{
	background: URL('image/header_kopola_bg.png');
	height:118px;
}

td.layout_top_pettersson
{
	background: URL('image/header_pettersson_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_varvilahti
{
	background: URL('image/header_varvilahti_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_valkama
{
	background: URL('image/header_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_vvk
{
	background: URL('image/header_vvk_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_mg
{
	background: URL('image/header_mg_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_vaaksy
{
	background: URL('image/header_vaaksy_bg.png');
	height:118px;
	vertical-align: top;
}

td.layout_top_test
{
	background: URL('image/header_bg_test.png');
	height:118px;
}

td.layout_menu
{
	width:173px;
	vertical-align:top;
	background-color:#f8f7f4;	
	height:100%;
}

td.layout_content
{
	padding-left:25px;
	padding-top:10px;
	vertical-align:top;
	background: URL('image/content_bg.png');
	background-position: bottom right;
	background-repeat: no-repeat;
}

td.layout_content_plain
{
	padding-left:25px;
	padding-top:10px;
	vertical-align:top;
}


.menu td,th {
	padding-left:2px;
	padding-right:2px;
}

div.menuitem
{
	width:173px;
	height:32px;	
	border-bottom:1px solid white;
	margin:0px;
	clear:both;
}

div.menuitem a
{
	margin:0px;
	padding:0px;
	display:block;
	width:100%;
	height:100%;
	padding-left:4px;
	line-height:30px;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
	color:black;
	text-decoration:none;
}

div.menuitem a:hover
{
	background: URL('image/menu_item_bg_hover.png');
	background-repeat: repeat-x;
	text-decoration:none;
}

div.menuitem img
{
	border:none;
	float:left;
	width:28px;
	margin-left:3px;
	margin-right:6px;
}


/* styles for sub menus */

.sub_menu ul {
	list-style:	none;
	margin: 0;
	padding: 0;
	padding-left:16px;
	line-height:20px;
	cursor: pointer;
}

.sub_menu li {
	list-style:	none;
	white-space: nowrap;
	line-height:20px;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
}

.sub_menu ul li {
	position: relative;
	float: left;
	display: block;
	line-height:20px;
}

.sub_menu li ul {
	display: none;
}


.sub_menu ul li a {
	display: block;
	margin:0px;
	padding-left:4px;
	line-height:20px;
}


.sub_menu ul li ul li a {
	display: block;
	margin:0px;
	padding-left:20px;
	line-height:20px;
}


.sub_menu ul li span {
	display: block;
	margin:0px;
	padding-left:4px;
	line-height:20px;
}

.sub_menu ul li a:hover { 
	background:  URL('image/menu_item_bg_hover.png');
}

.sub_menu ul li span:hover { 
	background:  URL('image/menu_item_bg_hover.png');
}

.sub_menu li:hover > ul {
	display: block;
	position: absolute;
	line-height:20px;
	z-index: 100;
}

.sub_menu li:hover li { 
	float: none; 
}

.sub_menu ul li:hover li { 
	float: left; 
}

.sub_menu ul li ul {
	left: 100%;
	top: 0;
	position: relative;
	float: left;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
	height:28px;
}

.sub_menu ul li ul li {
	top: 0;
	position: relative;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
	height:28px;
	width: 100%;
	padding-left: 0px;
}

.sub_menu ul li img {
	float: right;
	height: 14px;
	width: 6px;
	border: none;
}

.sub_menu a
{
	margin:1px;
	padding:4px;
	padding-left:4px;
	line-height:20px;
	color:black;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
}

.sub_menu span
{
	margin:1px;
	padding:4px;
	padding-left:4px;
	line-height:20px;
	color:black;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
	cursor: default;
}

.sub_menu a:hover
{
	background: URL('image/menu_item_bg_hover.png');
	background-repeat: repeat-x;
	text-decoration:none;
}

.sub_menu li:hover a:hover {
	background: URL('image/menu_item_bg_hover.png');
	background-repeat: repeat-x;
}
	
.sub_menu img
{
	border:none;
	float:left;
	width:28px;
	margin-left:3px;
	margin-right:6px;
}

ul:before, ul:after {
  content: " "; 
  display: table;
}

ul:after { clear: both; }


/* styles for tree selection control */

.tree_select ul {
	list-style:	none;
	margin: 0;
	padding: 0;
	padding-left:4px;
	line-height:15px;
	border-style: solid;
	border-width: thin; 
	border-color: white;
	border-radius: 4px 4px 4px 4px;
}

.tree_select li {
	list-style:	none;
	white-space: nowrap;
	line-height:15px;
	background-color: LightSteelBlue;
	float: right;
	border-style: solid;
	border-left: none;
	border-width: thin; 
	border-color: D8E2EE;
	border-radius: 4px 4px 4px 4px;
/*background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;*/
}

.tree_select ul li {
	position: relative;
	float: left;
	display: block;
	line-height:15px;
}

.tree_select li ul {
	display: none;
}


.tree_select ul li a {
	display: block;
	margin:0px;
	padding-right:4px;
	line-height:15px;
}


.tree_select ul li span {
	display: block;
	margin:0px;
	padding-left:4px;
	padding-right:4px;
	line-height:15px;
}

.tree_select ul li a:hover { 
	background-color: LightSteelBlue;
	/*background:  URL('image/menu_item_bg_hover.png');*/
}

.tree_select ul li span:hover { 
	background-color: LightSteelBlue;
	/*background:  URL('image/menu_item_bg_hover.png');*/
}

.tree_select li:hover > ul {
	display: block;
	position: absolute;
	line-height:15px;
	z-index: 100;
}

.tree_select li:hover li { 
	float: none; 
}

.tree_select ul li:hover li { 
	float: left; 
}

.tree_select ul li ul {
	left: 100%;
	top: 0;
	position: relative;
	float: left;
	background-color: LightSteelBlue;
/*	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;*/
	height:30px;
}

.tree_select ul li ul li {
	top: 0;
	position: relative;
	background-color: LightSteelBlue;
	/*background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;*/
	height:28px;
	width: 100%;
	padding-left: 0px;
}

.tree_select ul li img {
	float: right;
	height: 14px;
	width: 6px;
	border: none;
}

.tree_select ul li ul li span img {
	float: right;
	height: 14px;
	width: 6px;
	border: none;
}

.tree_select a
{
	padding-left:4px;
	line-height:15px;
	color:black;
	background-color: LightSteelBlue;
	/*background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;*/
}

.tree_select span
{
	margin:1px;
	padding:4px;
	padding-left:4px;
	line-height:15px;
	color:black;
	background-color: LightSteelBlue;
	/*background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;*/
}

.tree_select a:hover
{
	background-color: LightSteelBlue;
	/*background: URL('image/menu_item_bg_hover.png');
	background-repeat: repeat-x;*/
	text-decoration:none;
}

.tree_select li:hover a:hover {
	background: URL('image/menu_item_bg_hover.png');
	background-repeat: repeat-x;
}
	
.tree_select img
{
	border:none;
	float:left;
	width:28px;
	margin-left:3px;
	margin-right:6px;
}


/* styles for chromeless popup */
span.chromeless ul {
	list-style:	none;
	margin: 0;
	padding: 10px;
	line-height:15px;
	text-align: left;
	border-color:activeborder;
	border-style:solid;
	background: Cornsilk;
	z-index: 100;
}

span.chromeless li {
	list-style:	none;
	white-space: nowrap;
	text-align: left;
	padding-left: 4px;
}

span.chromeless ul li {
	position: relative;
}

span.chromeless li ul {
	position: absolute;
	display: none;
}

span.chromeless li:hover ul {
	display: block;
}

span.chromeless a
{
}

span.chromeless a:hover
{
}

table.chromeless {
	width: 100%;
}

td.chromeless {
	width: 30%;
}

tr.chromeless {
	width: 100%;
}



/* styles for context menus */
span.context_menu
{
}

span.context_menuitem
{
	height:40px;
	vertical-align:middle;	
	border-bottom:0px solid white;
	margin:1px;
	clear:both;
	cursor: pointer;
}

span.context_menuitem a
{
	margin:1px;
	padding:4px;
	padding-left:4px;
	line-height:30px;
	background: URL('image/menu_item_bg.png');
	background-repeat: repeat-x;
	color:black;
	text-decoration:none;
}

span.context_menuitem a:hover
{
	background: URL('image/menu_item_bg_hover.png');
	background-repeat: repeat-x;
	text-decoration:none;
}

span.context_menuitem img
{
	border:none;
	float:left;
	width:28px;
	margin-left:3px;
	margin-right:6px;
}


/* UI messages background */
div.uimessage {
	background: url(image/uimessage_bg_bottom_left.png) no-repeat left bottom;
	margin-left: -4px;
	margin-right: 10px;
	margin-bottom:6px;
}

div.uimessage_inner_1 {
	background: url(image/uimessage_bg_bottom_right.png) no-repeat right bottom;
	padding-bottom:16px;
}

div.uimessage_inner_2 {
	background: url(image/uimessage_bg_top_left.png) no-repeat left top;	
}

div.uimessage_inner_3 {
	background: url(image/uimessage_bg_top_right.png) no-repeat right top;
	padding:12px 12px 12px 28px;
}

div.uimessage_inner_3 div {
	clear:both;
}

div.uimessage_inner_3 div img {
	float:left;
	margin-right:10px;
}

div.pagingControl {
	margin-right:200px;
	margin-bottom:6px;
}

table.pagingControl {
	margin-left:auto;
	margin-right:auto;
}
	
table.pagingControl td {
	text-align:center;
}

table.pagingControl a {
	display:block;
	width:40px;
}

table.pagingControl a.current {
	color : gray;
	text-decoration:none;	
}

table.pagingControl a:hover {
	background-color: #EEF;
}

/* Paging control */
.searchResultCountInfo {
	margin-top:8px;	
	margin-bottom:10px;	
}

/* opaque modal layer */
.opaqueLayer  {
     display:none;
     position:absolute;
     top:0px;
     left:0px;
     opacity:0.6;
     filter:alpha(opacity=60);
     background-color: LightSlateGray;
     z-Index:1000;
 }
 

 .questionLayer {
     position:absolute;
     top:0px;
     left:0px;
     width:500px;
     /*height:300px;*/
     display:none;
     z-Index:1001;
     border:2px solid black;
     background-color:LightCyan;
     text-align:center;
     vertical-align:middle;
     padding:16px;
 }
 
 div.questionLayer input {
 	width: 60%;
 }
 
 /* harbour */
 .berth_statistics th {
 	text-align: left;
 	padding-right: 8px;
 }
 
 .berth_statistics td {
 	text-align: right;
 }
 
 /* pagingControl */
 table.pagingControl td {
 	padding:0px;
	border-style: none;
	border-color: blue;
	text-align: left;
	vertical-align: top;
 
 }
 

/* survey options */
span.surveyOption {
	background-color: LightGray ;
	border-style: solid;
	border-width: thin; 
	border-color: white;
	width: 20px; 
	height: 8px; 
	display: block;
	float: left;
	margin:1px;
}

span.surveySummary {
	background-color: Aquamarine;
	color: blue;
	border-style: solid;
	border-width: thin; 
	border-color: white;
	width: 30px; 
	margin:1px;
	float: left;
	text-align:center;
	position: relative;
}

span.surveySummaryTxt {
	color: blue;
}


span.surveyPrompt {
	width: 200px; 
	height: 8px; 
	display: block;
	float: left;
	padding-left: 6px;
	color: RoyalBlue;
}

span.surveyCancel {
	display: none;
}

/* address */
#address_fields  {
	background-color:#EBF0F7;
	border-style: solid;
	border-top: none;
	border-width: thin; 
	border-color: D8E2EE;
	border-radius: 0 4px 4px 4px;
	padding: 4px;
}

.address_fields span {
	font-size: 9;
	border-radius: 4px 0 0 0;
	border-top: solid thin;
	border-left: solid thin;
	border-right: solid thin;
	padding: 2px 4px 0 4px;
	border-color: #D8E2EE;
}

.address_fields span.active  {
	background-color:#EBF0F7;
	border-color: D8E2EE;
	font-weight: bold;
}

/* report formats */
td.slsr_f_code{
	text-align: left;
}

td.slsr_f_code_bold {
	text-align: left;
	font-weight: bold;
}

.invoice_edit td,th {
	padding-left:8px;
	padding-top: 2px;
}

.laituri_option select, option {
	font-size: 11;
	color: blue;
	background-color: LightCyan;
	border-style:inset;
	border-radius: 1em 1em 1em 1em;	
}

.ElementaryCourse td {
	vertical-align: top;
	white-space: normal;
}

.printable {
	font-size: 7pt;
}

table.printable {
	
}

#student_note.printable {
	width: 25%;
}

.boat_dimensions input {
	width: 45px;
	text-align: right;
}
.boat_dimensions span {
	padding-right: 16px;
}
.boat_dimensions td {
	white-space: nowrap;
}
.search_box input {
	height: 24px;
	width: 280px;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    overflow: hidden;
}

#RegisterBoatInfo {
	width: 200;
	padding-bottom: 20px;
	border-style: solid;
	border-width: thick; 
	border-color: Salmon;
	border-radius: 5px;
	background-color: AntiqueWhite;
	padding: 5px;
}

.RegisterBoatInfo div {
	padding-bottom: 8px;
}

.RegisterBoatInfo span {
	font-weight: bold;
}

.item_id {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_sort {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_internal_code {
	padding-left:8px;
	white-space:nowrap;
}

.item_code {
	padding-left:8px;
	white-space:nowrap;
}

.item_group {
	padding-left:8px;
	white-space:nowrap;
}

.item_title {
	padding-left:8px;
	white-space:nowrap;
}

.item_description {
	padding-left:8px;
	white-space:nowrap;
}

.item_price_no_vat {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_price {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_unit {
	padding-left:8px;
	white-space:nowrap;
}

.item_status {
	text-align:center;
	white-space:nowrap;
}

.item_balance  {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_reservations {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_sales {
	text-align: right;
	padding-right: 8px;
	white-space:nowrap;
}

.item_inventory {
	width: 60px; 
	text-align: right;
}


.item_inventory_supplement {
	width: 60px; 
	text-align: right;
}

.commissions_summary th {
	text-align: left;
}

.commissions_summary td {
	text-align: right;
	padding-right: 8px;
}

.commissions_summary tr.odd {
	background-color: #f1f4f6;
}

.commissions_summary tr.heading {
	background-color: AliceBlue;
}

table.commissions_summary  {
	border: 1px ridge;
	border-color: CadetBlue;
}

#ticket_actions  {
	width: 90%;
	margin-top: 16px;
	padding-left: 32px;
	padding-top: 20px;
	padding-bottom: 24px;
	overflow:hidden;
	border: 1px ;
	border-style: inset;
	border-color: blue;
	border-radius: 16px;
	background: rgba( 240,248,255, 0.6);
	
	
}

.ticket_actions span {
	white-space: normal;
	overflow:hidden;
	font-size:12px;
	vertical-align: middle;
	background-color: LightGray ;
	border-style: outset;
	border-width: medium;
	float: left;
	width: 100px;
	height: 30px; 
	margin-right: 6px;
	margin-top: 6px;
	padding: 4px;
	text-align: center;
	color: blue;
	border-radius: 8px;
	cursor: default;
}

.ticket_actions span:ACTIVE {
	border-style: inset;
}

/* boat history */
.boat-history {
	padding-left: 16px;
}

.boat-history-heading{
	padding-bottom: 16px;
}

.boat-history-heading span {
	font-weight: bold;
}

.boat-history-entry {
	padding-top: 8px;
}

.boat-history-date {
	
}

.boat-history-heading {
	font-size:16px;
}

.boat-history-parts {
	padding-left: 56px;
}

.boat-history-parts-entry {
	
}

.boat-history-parts-entry span {
	font-weight: bold;
}

/* inspection */
.inspection tr.odd {
	background-color: #f1f4f6;
}

.inspection td.selection {
	background-color: LightSteelBlue;
}

.inspection td,th {
	padding-left:8px;
}

.list-property td {
	padding-left: 16px;
}

.list-property th {
	text-align: left;
	padding-top: 16px;
	padding-bottom: 4px;
	font-size: 16px;
}

.family-list td {
	padding-top: 16px;
	text-align: right;
}

.family-list td + td {
	text-align:  left;
}


.moorings_camera_menu {
	padding-bottom: 16px;
}

.moorings_camera div {
    padding-bottom: 8px;
	aspect-ratio: 560/315;
	width:100%;
}

.moorings_camera iframe {
	width: 100%;
	height: 100%;
}