/* Commonly required style definitions */

body {
	margin: 0;
	padding: 0;
}

a img {
	border: 0;
}

img.treemark {
	margin-left: 5px;
}

/* Text and pictures */

div.content-container table.contentImageArea td,
div.content-container table td {
	vertical-align: top;
}

div.content-container sub,
div.content-container sup {
    font-size: .83em
}

div.content-container sub { vertical-align: sub; }
div.content-container sup { vertical-align: super; }

/* Obsbox */

div.as_huomiolaatikko {
	background-color: #eee;
	border: 1px solid #ccc;
	color: #333;
	overflow: hidden;
	_overflow-y: visible;
	padding: 10px;
	margin-bottom: 4px;
}

div.as_tietolaatikko {
	background: url('/res/wiz1/fck-extra/info.png') no-repeat #eee;
	_background: url('/res/wiz1/fck-extra/info.gif') no-repeat #eee;
	background-position: 8px 8px;
	border: 1px solid #ccc;
	padding-left: 50px;
	min-height: 25px;
	height: auto !important;
	height: 25px;
}

div.as_halylaatikko {
	background: url('/res/wiz1/fck-extra/alarm.png') no-repeat #eee;
	_background: url('/res/wiz1/fck-extra/alarm.gif') no-repeat #eee;
	background-position: 11px 8px;
	border: 1px solid #ccc;
	padding-left: 50px;
	min-height: 25px;
	height: auto !important;
	height: 25px;
}

div.as_raquolaatikko {
	background: url('/res/wiz1/fck-extra/raquo.png') no-repeat #eee;
	_background: url('/res/wiz1/fck-extra/raquo.gif') no-repeat #eee;
	background-position: 18px 12px;
	border: 1px solid #ccc;
	padding-left: 50px;
	min-height: 18px;
	height: auto !important;
	height: 18px;
}

/* Obsbox: smaller versions to FCK-editor dropdown menu */

.SC_Panel div.as_huomiolaatikko {
	padding: 4px;
}

.SC_Panel div.as_tietolaatikko,
.SC_Panel div.as_halylaatikko,
.SC_Panel div.as_raquolaatikko {
	padding-left: 40px;
	background-position: 4px 4px;
}

/* Table styles in text and picture sections */

table.d4contentTable {
	border-collapse: collapse;
}

body.d4fck table {
	border-collapse: collapse !important;
}

table.d4border {
	empty-cells: show;
	border: 0;
}

table.d4contentTable th {
	background-color: #e9e9e9;
}

table.d4contentTable th,
table.d4contentTable td {
	padding: 4px 5px;
}

/* First line below fixes Firefox redraw bug (borders are not drawn) */
body.d4fck table.d4border,
table.d4border th,
table.d4border td {
	border: 1px solid #c4c4c4;
}

body.d4fck table.d4noborder,
body.d4fck table.d4noborder th,
body.d4fck table.d4noborder td {
	border: 1px dotted #d3d3d3;
}

@-moz-document url-prefix() {
	/* Firefox draws left border of a overflow: hidden div out of sight */
	div.content-container table.d4border {
		margin-left: 1px;
		margin-top: 1px;
	}
	/* Same problem occurs with right border of tables that have width set to 100% */
	div.content-container table.d4border[width='100%'] {
		width: 99%;
	}
}

/* Editmode */

body.d4fck td,
body.d4fck th {
	min-width: 10px !important;
}
