/* Kaivomestari CSS */


body {
  margin: 0 0 15px 0;
  padding: 0;
  background: #e1dfd9 url('img/bodyBg.gif') repeat-x top;
  text-align: center;
}


/* Root container */

#root {
  position: relative;
  width: 880px;
  margin: 0 auto 0 auto;
  background: #fff url('img/rootBottom.gif') no-repeat bottom;
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #111;
  text-align: left;
}


/* Head container */

#head {
  position: relative;
  height: 100px;
  margin: 0 2px 2px 2px;
  background: #ebebcc url('img/headBg.gif') repeat-x bottom;
}

#head p.logo {
  width: 191px;
  height: 100px;
  float: left;
  margin: 0;
  background: #d84519 url('img/logoBg.gif') no-repeat top;
}

#head p.logo img {
  margin-top: 27px;
}

.headBar {
  width: 644px;
  position: absolute;
  top: 0;
  right: 22px;
  background: url('img/headBarBg.gif') no-repeat bottom;
}

.headBar .login {
  float: left;
  margin: 11px 0 0 10px;
  display: inline;
  font-size: 0;
}

.login {
	background: #f7f7f7;
	margin: 0 0;
	padding: 15px 8px;
	color: #777;
}

.login_in {
  background: #f7f7f7 url('img/userIco.gif') no-repeat 5px 15px;
  padding: 15px 8px 15px 35px;
  font-size: 11px;
}

.login input.styled {
  float: left;
  width: 100px;
  margin-right: 3px;
  padding-left: 1px;
}

.headBar .logos {
  float: right;
  margin: 0 8px 0 0;
  font-size: 0;
  line-height: 0;
}

.headTabs {
  position: absolute;
  right: 22px;
  bottom: 0;
  font-size: 90%;
}

.headTabs a {
  position: relative;
  float: left;
  margin-left: 3px;
  padding: 8px 12px 6px 12px;
  background: url('img/headTabBg.gif') no-repeat bottom left;
  text-decoration: none;
  color: #828268;
  line-height: 0;
}

.headTabs a span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 5px;
  height: 30px;
  background: url('img/headTabCorner.gif') no-repeat;
}

.headTabs a img {
  vertical-align: top;
}

.headTabs a:hover img {
  opacity: 0.7;
}

.headTabs a:active img {
  opacity: 0.3;
}


/* Main container */

#main {
  margin: 0 2px 0 2px;
  background: url('img/dotted.gif') repeat-y 190px 0;
}


/* Navi container */

#navi {
  width: 190px;
  float: left;
  margin-right: 1px;
  display: inline;
}

#navi.ieFix {
  width: 189px;
}

#navi a {
  display: block;
  padding: 4px 10px 4px 10px;
  background: url('img/dotted.gif') repeat-x bottom;
  color: #111;
  text-decoration: none;
}

#navi .login a {
	display: inline;
	padding: 2px;
	background: transparent;
	text-decoration: underline;
}

#navi a.selected {
  font-weight: bold;
}

#navi a:hover {
  color: #d84519;
}

#navi .subNavi {
  background: #f2f2d6;
}

#navi .subNavi a {
  padding-left: 20px;
}

.spaceNaviFoot {
  padding-bottom: 270px;
}

.naviFoot {
  position: absolute;
  left: 2px;
  bottom: 36px;
  line-height: 0;
}


/* Content container */

#content {
  width: 685px;
  margin: 0;
  padding: 25px 0 25px 0;
  float: left;
}

#content.withRightBlue {
  background: transparent url('img/rightBlueBg.gif') repeat-y right;
}

#content h1 {
  margin: 0 0 15px 0;
  font-size: 150%;
  font-weight: normal;
  line-height: 22px;
  color: #d84519;
}

#content h2 {
  margin: 0 0 15px 0;
  font-size: 125%;
  font-weight: normal;
  line-height: 22px;
  color: #d84519;
}

#content h1.blue, #content h2.blue {
  color: #0081c2;
}

#content .column {
  float: left;
  margin: 0 20px 0 20px;
  display: inline;
}

#content .column340 {
  width: 340px;
}

#content .column260 {
  width: 260px;
}

#content.withRightBlue .column260 {
  margin-left: 6px;
  padding-left: 14px;
  width: 260px;
}

html > body #content.withRightBlue .column260 {
  margin-left: 6px;
  padding-left: 14px;
  width: 260px;
}

#content .column350 {
  width: 350px;
}

#content .column250 {
  width: 250px;
}

#content .column640 {
  width: 640px;
}

#content .column300 {
  width: 300px;
}

.ingress {
  font-size: 120%;
  line-height: 21px;
  margin-bottom: 20px;
}

ul {
  margin-top: 20px;
  padding-left: 0;
}

li {
  margin-left: 20px;
}


/* Foot container */

#foot {
  height: 36px;
  margin: 0 2px 0 2px;
  font-size: 80%;
}

#foot p {
  margin: 10px 22px 0 12px;
  float: left;
  display: inline;
}


/* News */

.newsItem {
  margin: 0 0 10px 0;
  padding: 0 0 10px 0;
  background: url('img/rightBlueBoxBg.gif') no-repeat bottom;
}

html > body .newsItem {
  width: 289px;
  margin: 0 0 10px -14px;
  padding: 0 0 10px 0;
  background: url('img/rightBlueBoxBg.gif') no-repeat bottom;
}

.newsItem h3 {
  background: url('img/rightBlueBoxTop.gif') no-repeat top;
  margin: 0;
  padding: 10px 14px 0 14px;
  font-size: 100%;
}

.newsItem h3 a {
  color: #111;
  text-decoration: none;
}

.newsItem h3 a:hover {
  color: #0081c2;
  text-decoration: underline;
}

.newsItem p {
  margin: 0 14px 0 14px;
}

.newsItem p.date {
  padding: 0 0 3px 0;
  border-bottom: 1px solid #d9e3e6;
  font-size: 80%;
}

.newsItem p.description {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 90%;
  line-height: 15px;
}


/* Basics */

a img {
  border: 0;
}

.clear {
  height: 0;
  margin: 0;
  clear: both;
  font-size: 0;
}

::selection {
  background: #ebebcc;
  color: #7f7f5a;
}

::-moz-selection {
  background: #ebebcc;
  color: #7f7f5a;
}

a {
  color: #d84519
}

a:hover {
  color: #efa074;
}

a.dotted {
  background: url('img/dottedOrange.gif') repeat-x bottom;
  text-decoration: none;
}

a.outUrl img {
  margin: 0 2px 0 3px;
}

.textImg {
  vertical-align: -5%;
}

a.opacityHover:hover {
  opacity: 0.5;
}

p.photoOnRight, p.photoOnLeft {
  float: right;
  width: 257px;
  margin-right: -7px;
  font-size: 90%;
  line-height: 14px;
}

p.photoOnLeft {
  float: left;
  margin-left: -7px;
}

p.photoOnRight span, p.photoOnLeft span {
  display: block;
  margin: 0 7px 10px 7px;
}


/* Grey Tabs */

.greyTabs {
  margin: 0 -1px 10px 1px;
  padding: 20px 17px 0 20px;
  border-bottom: 1px solid #bbb;
  clear: both;
  height: 28px;
}

.greyTabs a {
  float: right;
  position: relative;
  background: url('img/greyTabBgP.gif') no-repeat bottom left;
  text-decoration: none;
  margin: 0 3px -1px 0;
  padding: 7px 12px 5px 12px;
  color: #111;
}

html>body .greyTabs a {
  top: -1px;
}

.greyTabs a:hover, .greyTabs a.selected {
  background: url('img/greyTabBgA.gif') no-repeat bottom left;
}

.greyTabs a span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 5px;
  height: 29px;
  background: url('img/greyTabCornerP.gif') no-repeat;
}

.greyTabs a:hover span, .greyTabs a.selected span {
  background: url('img/greyTabCornerA.gif') no-repeat;
}


/* Contact box */

.contactBox {
  position: relative;
  background: url('img/contactBoxBg.gif') no-repeat top left;
  margin: 20px -4px 10px -4px;
  height: 75px;
}

.contactBox p {
  padding: 20px 20px 0 60px;
}


.contactBox span.corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 75px;
  background: url('img/contactBoxCorner.gif') no-repeat;
}

.yellowBox {
  background: #f9f9e0;
  border: 1px solid #e3e3b7;
  margin: 20px -8px 10px -8px;
  padding: 0 8px 0 8px;
}


/* Tables */

.form2 label {
  float: left;
  width: 85px;
  padding: 2px 0 0 0;
}

.form2 input, .form2 textarea {
  border-top: 1px solid #767a7d;
  border-left: 1px solid #767a7d;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  margin: 0 0 4px 0;
  padding-left: 1px;
  width: 210px;
}

.form2 input.smaller {
  width: 160px;
}

.form2 input.small {
  width: 100px;
}

input.checkbox {
  width: auto;
}

label.checkbox {
  float: left;
  width: 260px;
  padding-top: 1px;
}

img.checkbox {
  float: left;
  margin: 2px 8px 8px 1px;
  clear: left;
}

.formBreak {
  height: 24px;
  clear: both;
}


/* GMap */

.gmapContainer {
  background: url('img/gmapBg.gif') no-repeat top left;
  height: 330px;
  margin: 20px -3px 0 -4px;
  padding: 8px 0 0 8px;
}

#gmap {
  width: 242px;
  height: 315px;
}


/* Other things */

#tilatAjax {
  clear: both;
  height: 280px;
  padding-top: 10px;
}

#tilatAjax h2 {
  margin-top: 10px;
}

#tilatAjax .pohja {
  width: 685px;
  height: 280px;
  position: absolute;
  margin: -18px 0 0 1px;
}

.headBar .slideAway {
  position: absolute;
  background: #d84519;
  color: #fff;
  margin: 0 0 0 10px;
  padding: 8px 12px 8px 12px;
  width: 250px;
  font-size: 12px;
}

input.styled {
  border-top: 1px solid #767a7d;
  border-left: 1px solid #767a7d;
  border-bottom: 1px solid #f6f6f6;
  border-right: 1px solid #f6f6f6;
}

#content input.styled {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
}

label {
  color: #777;
}

.bBar {
  margin: 20px 0 0 0;
  padding: 0;
  list-style-type: none;
}

.bBar li {
  display: block;
  background: #3b3b3b url('img/admin/bBarP.gif') no-repeat;
  margin: 0 0 3px 0;
  padding: 0;
  height: 29px;
}

.bBar li:hover, .bBar li.hover {
  background: #3b3b3b url('img/admin/bBarA.gif') no-repeat;
}

.bBar li a {
  display: block;
  padding: 6px 10px 0 10px;
  color: #eee;
  text-decoration: none;
}

div.indent {
  display: block;
  margin: 2px 0 10px 25px;
}

#palaute {
  width: 98%;
  margin-top: 40px;
}

#palaute label {
  margin-top: 10px;
  display: block;
}

h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: bold;
}


/* Admin */

.adminTable {
  width: 100%;
}

.adminTable th {
  font-size: 10px;
  text-transform: uppercase;
  color: #aaa;
  border-bottom: 2px solid #ddd;
}

.adminTable th, .adminTable td {
  padding: 5px 5px 5px 5px;
}

.adminTable .level_1 .title {
  padding-left: 5px;
}

.adminTable .level_1 td {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}

.adminTable .level_2 .title {
  padding-left: 20px;
}

.adminTable .level_2 td {
  background: #e7e7e7;
  border-bottom: 1px solid #ddd;
}

.adminTable .level_3 .title {
  padding-left: 35px;
}

.adminTable .level_3 td {
  background: #ddd;
  border-bottom: 1px solid #d7d7d7;
}

.adminTable .level_4 .title {
  padding-left: 50px;
}

.adminTable .level_4 td {
  background: #ddd;
  border-bottom: 1px solid #d7d7d7;
}

.adminTable img {
  vertical-align: text-bottom;
}

.tp_files, .tp_dirs {
  width: 100%;
}

.tp_files a.file, .tp_dirs a.dir {
  padding: 1px 0 1px 25px;
}

.tp_files td, .tp_dirs td, .tp_files th, .tp_dirs th{
  background: #fafafa;
  padding: 3px 4px 4px 4px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #ddd;
}

.tp_files th, .tp_dirs th {
  background: #ddd;
  color: #777;
  font-size: 12px;
  font-weight: normal;
}

.tp_dirs a.dir {
  background: url('img/tp_dir.gif') no-repeat left;
}

.tp_files a.upper {
  background: url('img/backtoup.gif') no-repeat left;
}

.tp_files a.document {
  background: url('img/tp_doc.gif') no-repeat left;
}

.tp_files a.picture {
  background: url('img/tp_img.gif') no-repeat left;
}

.tp_files a.spreadsheet {
  background: url('img/tp_spr.gif') no-repeat left;
}

.savebox {
  width: 250px;
  background: url('img/savebox.gif') no-repeat top left;
  margin: 20px 0 20px 0;
  padding: 28px 17px 0 17px;
  float: left;
}

.savebox h4, .userbox h4 {
  margin: 0 0 30px 0;
  padding-left: 34px;
  font-size: 13px;
  color: #222;
}

.savebox p, .userbox p {
  font-size: 11px;
  line-height: 14px;
  color: #777;
}

.savebox .end, .userbox .end {
  background: url('img/savebox_end.gif') no-repeat bottom left;
  height: 9px;
  margin: 0 -17px 0 -17px;
}

.userbox {
  float: left;
  width: 250px;
  background: url('img/userbox.gif') no-repeat top left;
  margin: 20px 0 0 0;
  padding: 28px 17px 0 17px;
}
