/*

	Järjestelmätason CSS-määritykset näytölle

*/

/* =======================================================================
	Debug-määritykset epävalidin XHTML:n paikantamiseen
	Jos teksti on punaista, tarkista että se on rajattu oikein
	p,h1,h2,jne. lohkoon!
   ======================================================================= */
body	{color: #f04}
h1,h2,h3,h4,h5,h6,p,td,th,li {color: black}


/* =======================================================================
	Peruselementtien määreet
   ======================================================================= */

html
{
	margin: 0em;
	padding: 0em
}

body
{
	margin: 0em;
	padding: 0em;
	overflow: none
}

/* Fontti */
body	{font-family: verdana, sans-serif; font-size: 12px;}

/* Fonttikoot ja marginaalit */
h1		{font-size: 18px; font-weight: bold; margin: 0px}
h2		{font-size: 16px; font-weight: bold; margin: 0px}
h3		{font-size: 14px; font-weight: bold}
h4		{font-size:	13px; font-weight: bold}
h5		{font-size: 12px; font-weight: normal}
h6		{font-size: 11px; font-weight: normal}
p		{font-size:	12px; font-weight: normal;
	     margin-top: 0.4em; margin-bottom: 0.4em}
h3, h4, h5, h6		{margin-top: 0em; margin-bottom: 0.3em}
th		{font-size: 13px; font-weight: bold}
td		{font-size: 12px; font-weight: normal}
.normal {font-size: 12px; font-weight: normal}
.small	{font-size: 11px; font-weight: normal}
td.menu-user-button	{font-size: 12px}
.mainmenu-flat-item	{font-size: 16px; font-weight: bold}
.mainmenu-item		{font-size: 16px; font-weight: bold}
.mainmenu-subclass-item	{font-size: 14px; font-weight: bold}
textarea			{font-family: verdana, sans-serif; font-size: 1.0em}

h2.directory,h3.directory,h4.directory,h5.directory,blockquote.directory
{
	margin-top: 0em;	
	margin-bottom: 0em;	
}

div#opintoverkko3-frontpage-ad
{

	width: 384px;
	padding: 2px;
	margin: 2px;
	border: 1px solid #ddd;
}

hr
{
	size: 2px;
	border-top: 1px solid black;
}

li
{
	margin-bottom: 0.5em;
}

tr
{
	text-align: left;
	vertical-align: top;
}

a
{
	text-decoration: none;
	color: #1452A6;
}

a:hover
{
	text-decoration: underline;
}

ul
{
	margin-top: 0em;
	margin-bottom: 0em;
	margin-right: 0em;
	list-style-type: disc;
}

.page
{
}

#selected-page
{
}

th
{
	background-color: #e0e0e0;
	border-left: 1px solid #d0d0d0;
	border-top: 1px solid #e8e8e8;
	border-right: 1px solid #c8c8c8;
	border-bottom: 1px solid #b8b8b8;
}

form
{
	margin: 0px;
	padding: 0px;
}

input
{
	font-family: "Verdana", sans-serif;
	margin-right: 4px;
}

input, textarea
{
	border-collapse: collapse;
	border: 1px solid #446;
	background: url('default/input-back.gif');
	background-repeat: repeat-x;
}

input[type="radio"]	{background: none; background-repeat: no-repeat;}

blockquote
{
	margin-left: 1.2em;
	margin-top: 0.6em;
}

.div
{
	background-color: transparent;
	overflow: visible;
}

img		{border: 0px}

/* =======================================================================
	Digiavain-tyylit
   ======================================================================= */

#digiavain-logo-small
{
	border: 1px solid #aaf;
	vertical-align: middle;
}

/* =======================================================================
	RTE
   ======================================================================= */
.rte-button
{
	color: black;
	width: 20px;
	height: 20px;
	background-color: #c8c8c8;
	border-bottom: 2px solid #000;
	border-right: 2px solid #222;
	border-top: 2px solid #ccc;
	border-left: 2px solid #999;
	margin: 0px;
	padding: 4px;
	text-align: center;
	vertical-align: top;
	font-weight: bold;
	font-size: 12px;	
	font-family: verdana, arial, sans-serif;
}

/* RTE:n sisältöikkuna (editori-ikkuna + helppi) */
.rte-content
{
	width: 100%;
}

/* RTE:n divi */
.rte-data
{
	width: 25%;
	float: left;
	z-index: -1;
}

/* RTE:n help-div */
.rte-help
{
	float: right;
	min-width: 5%;
	max-width: 25%;
	z-index: 1
}

/* =======================================================================
	Copyright jne. merkinnät
   ======================================================================= */
div#copyright	{	clear: both;
					margin: 0.3em 0em 0.3em 0em;
					padding: 0.3em 0.5em 0.3em 0.5em;
					border-top: 1px solid #888;
					border-bottom: 0px;
					}

div#copyright-left	{float:left}
div#copyright-right	{float:right; text-align:right; margin-bottom:8px}

p#feedback			{margin-left:4px; border:0px; font-weight:bold}

p#system-name,
p#system-released,
p#copyright,
p#web-production	{margin:0px; padding:0px; border:0px; font-size:10px;
                     color: #668}

/* =======================================================================
	Peruskäyttöliittymä
   ======================================================================= */
 
/* Käyttöehdot */
#terms
{
	font-family: monospace;
}
 
/* Tavallinen rajattu solu (erit. taulukon td) */  
td.basic, td.highlight
{
	border-top: none;
	border-left: none;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	white-space: normal;
}

td.basic, th
{
	margin: 2px;
	padding: 4px;
	vertical-align: top;
}

table.basic
{
	margin-bottom: 0.5em;
}

/* Reunustettu taulukko */
.frame
{
	border: 1px solid black;
	border-collapse: separate;
	margin-bottom: 0.5em;
}

/* Highlight-merkintä mm. uusille kohteille */
.highlight
{
	background-color: #c9e1fb;	
}

/* Korostus vanhoille, mutta muuten tärkeille kohteille */
.highlight-light
{
	background-color: #B0FFB1;
}
 
/* =======================================================================
	Virheet, ohjeet ja huomautukset
   ======================================================================= */

/* Kaikille viesteille yhteiset ominaisuudet */
.help, .note, .error
{
	padding: 0.4em;
	margin: 0.4em;
	vertical-align: top;
	min-height: 32px;
}

/* Ohje */
.help, #etusivu_welcome
{
 	//background: #d0f0d0;
 	//border: 1px #9e9 dashed;
	border: 1px solid #9ac;
	background-color: #cdf;
}

#etusivu_welcome
{
	//background: #d0f0d0;
	//border: 1px #9e9 dashed;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border: 1px solid black;
	background-color: #F5DEB3;
	padding-left: 5px;
}

/* Huomautus tms. viesti */
.note
{
	background-color: #C8DDF8;	
	border: 1px solid #9ac;
	padding-left: 38px;
	background-color: #cdf;
	background-image: url('../info/info.png');
	background-repeat: no-repeat;
}

.note:before
{
	content: 
	background-color: red;
}

/* Virhe */
.error
{
	border: 1px #e99 dashed;
	padding-left: 38px;
	background-color: #F8DDC8;
	background-image: url('../info/exclamation.png');
	background-repeat: no-repeat;
}


* =======================================================================
	Ulkoasusta riippumattomat määritykset
   ======================================================================= */

/* Ei reunoja, ei marginaaleja */
.nospacing
{
	border: 0px;
	padding: 0px;
	margin: 0px;
}

/* =======================================================================
	Ulkoasun luokat ja ID:t
   ======================================================================= */

/* Sivun sisältö työtilassa */
#content
{
	max-width: 98%;
	float: left;
	padding: 2px;
	vertical-align: top;
	margin-left: 0.5em;
	margin-top: 0.2em;
	margin-bottom: 0em;
	padding-bottom: 1.0em;
	clear: both;
	z-index: 1;
	overflow: visible;
}

/* Sivun sisältö aulassa */
#content-lobby
{
	overflow: visible;
	width: 79%;
	float: left;
	padding: 2px;
	vertical-align: top;
	margin-left: 0.5em;
	margin-top: 0.2em;
	margin-bottom: 0em;
	padding-bottom: 1.0em;
	border: 16px;
	z-index: 1;
}

/* Vaakavalikko ylhäällä */
#menu-top
{
}

/* Pystyvalikko oikealla */
#menu-right
{
	width: 19%;
	float: right;
	margin: 0.0em;
	padding: 0.3em;
	vertical-align: top;
	
	right: 0px;
	/*position: absolute;*/
}


/* =======================================================================
	Vaakamenu
   ======================================================================= */

/* Vaakamenu */
#mainmenu
{
}

/* Vaakamenun valinta */
.mainmenu-item
{
	font-size: 10pt;
	font-weight: bold;
	border: 1px solid Silver;
	background-color: #e0e2e0;
	text-align: center;
	vertical-align: middle;
	padding: 5px 10px 5px 5px;
}

/* Vaakamenun valittu valinta */
#mainmenu-item-selected
{
	border: 1px solid black;
	background-color: #F5DEB3;
}

/* Vaakamenun valinnan lisätietokenttä */
.mainmenu-item-details
{
}

/* Alaluokan taulukko (table) */
#mainmenu-subclass
{
}

/* Valittu solu */
#mainmenu-subclass-item-selected
{
	background-color: White;
	font-size: 10pt;
	vertical-align: middle;
	font-weight: bold;
	text-align: center;
	padding: 5px 10px 5px 5px;
}

/* Alaluokan solu (td) */
.mainmenu-subclass-item
{
	font-size: 10pt;
	font-weight: bold;
	border-right: 1px solid Black;
	border-bottom: 1px solid Black;
	border-top: 1px solid Black;
	background-color: #C8DDF8;
	border-left: 1px solid Black;
	padding: 5px 5px 5px 5px;
}

/* =======================================================================
	Pystymenu
   ======================================================================= */

/* Pystymenu */
#mainmenu-flat
{
	border: 0px;
	position: absolute;
	right: 0px;
	top: 112px;
	padding: 0px 4px 0px 0px;
	margin: 0px;
	width: 24%;
}

/* Pystymenun valinta */
.mainmenu-flat-item
{
	font-size: 10pt;
	font-weight: bold;
	border: 1px solid Silver;
	background-color: #e0e2e0;
	vertical-align: middle;
	text-align: left;
	padding: 5px 5px 5px 5px;
}

/* Pystymenun valittu valinta */
#mainmenu-flat-selected
{
	border: 1px solid black;
	background-color: #F5DEB3;
}

/* Pystymenun valinnan lisätietokenttä */
.mainmenu-flat-item-details
{
}


/* =======================================================================
	Kirjautuneen käyttäjän tiedot
   ======================================================================= */

div#menu-user-status
{
	margin-top: 8px;
	margin-right: 8px;
}

div#menu-user-buttons
{
	margin-bottom: 8px;
	margin-right: 8px;
}

div#menu-user-buttons, div#menu-user-status
{
	vertical-align: bottom;
	//width: 90%;	/* IE hack */
}

div.menu-user-button
{
	float: right;
	margin: 2px;
	padding: 4px;
	border: 1px solid black;
	background-color: #e8e8f0;
}

div#menu-user-name {float: right; margin-right: 0.5em;}
div#menu-user-select-workspace {float: right}
div#menu-user-button-exit-workspace	{}
div#menu-user-button-logout {}
div#menu-user-buttons {clear: right; float: right;}
div#menu-user-status {clear: right; float: right;}

/* =======================================================================
	Sijaintipalkki
   ======================================================================= */

#links
{
	clear: both;
	padding-top: 4px;
	padding-bottom: 4px;
}

#workspace-description
{
	clear: both;
}

/* Sijaintipalkin ID (table) */
#location-bar
{
	margin: 0px 0px 8px 0px;
	width: 100%;
	white-space: nowrap;
}

/* Sijaintihierarkkian yksi pykälä (td) */
/* Erotinmerkin solu (td) */
.location-bar-item, .location-bar-separator
{
	padding-right: 0.35em;
	vertical-align: middle;
	float: left;
	white-space: nowrap;
}

/* =======================================================================
    Portfolio
   ======================================================================= */

.portfolio-create, .quicklist-go
{
	height: 50px;
	padding: 2px;
}

#basic-quicklist
{
	inherit: basic;
	text-align: right;
}

a:hover.portfolio-create, a:hover.quicklist-go
{
	background-color: #aae;
	margin: 0px;
}

ul.quicklist
{
	margin-left: 1.2em;
	margin-bottom: 0.4em;
}

li.quicklist
{
	margin-bottom: 0.1em;
}

#portfolio-sidebar, #ohjeet-sidebar
{
	float: left;	
	padding-right: 4px;
	margin-right: 4px;
	display: block;
}

#portfolio-content, #ohjeet-content
{
	display: inline-block;
	max-width: 75%;
}

#portfolio-folders
{
}

#portfolio-attachments
{	
	clear: left;
}

#portfolio-space
{
	width: 100%;
	border: 1px solid black;
	margin: 0px;
	padding: 0px;
	border-collapse: collapse;
}
	
#portfolio-space-used
{
	background-color: #8af;
}

#portfolio-space-left
{
	background-color: #e0eaff;
}

.folder-selected
{
	background-color: #ccf;
	font-weight: bold;
	border: 1px solid black;
	margin: 2px;
	padding: 4px;
	vertical-align: top;
}

#portfolio-actions
{
	width: 50%;
	margin: 0px;
	padding: 0px;
}

#portfolio-object-main-content
{
	width: 95%;
	overflow: scroll;
	margin: 0.4em;
	padding: 0.0em;
	border: 1px solid black;
	background-color: white;
}

#portfolio-object-content
{
	width: 69%;
	margin: 0px;
	padding: 0px;
	float: left;
}

#portfolio-object-details
{
	width: 30%;
	vertical-align: top;
	margin: 0px;
	padding: 0px;
	float: right;
	display: block;
}

#portfolio-comments, #portfolio-evaluations, #portfolio-locations
{
	margin: 0px;
	padding: 0px;
}

#keskustelu-stats
{
	display: inline-block;
}

#keskustelu-messages
{
	float: left;
	width: 57%;
	margin-right: 16px;
}

#keskustelu-chain
{
	float: left;
	display: inline-block;
	width: 40%;
    border: 1px solid black;
    padding: 2px;
    margin: 4px;
    overflow: scroll;
}

/* =======================================================================
	Kalenteri
   ======================================================================= */

/* Tämä päivä (td)*/
#kalenteri-today
{
	background-color: #B0FFB1;
}

/* Valittu päivä (td) */
#kalenteri-thisday
{
	background-color: #ffff99
}

/* Työtilan merkintä */
#kalenteri-enventry
{
	color: #990099
}

/* =======================================================================
	Sivun alavalinnat
   ======================================================================= */

/* Alavalintataulukko (table) */
#subpages
{
	margin-bottom: 0.5em;
}

/* Alavalinta (td) */
.subpage
{
	background-color: #fff;
	border: 1px solid #99e;
	margin: 2px;
	padding: 4px;
}

/* Aktiivinen alavalinta (td) */
#subpage-active
{
	background-color: #C8DDF8;
	border: 1px solid black;
}
