/*
  Css Reset
  http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
   */

   html, body, div, span, applet, object, iframe,
   h1, h2, h3, h4, h5, h6, p, blockquote, pre,
   a, abbr, acronym, address, big, cite, code,
   del, dfn, em, img, ins, kbd, q, s, samp,
   small, strike, strong, sub, sup, tt, var,
   b, u, i, center,
   dl, dt, dd, ol, ul, li,
   fieldset, form, label, legend,
   table, caption, tbody, tfoot, thead, tr, th, td,
   article, aside, canvas, details, embed,
   figure, figcaption, footer, header, hgroup,
   menu, nav, output, ruby, section, summary,
   time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
  }
  /* HTML5 display-role reset for older browsers */
  article, aside, details, figcaption, figure,
  footer, header, hgroup, menu, nav, section {
    display: block;
  }
  body {
    line-height: 1;
    overflow:auto;
  }
  ol, ul {
    list-style: none;
  }
  blockquote, q {
    quotes: none;
  }
  blockquote:before, blockquote:after,
  q:before, q:after {
    content: '';
    content: none;
  }
  table {
    border-collapse: collapse;
    border-spacing: 0;
  }
  .input-container {
    font-size: 13px;
  }
  /** End of CSS Reset */
  @import url(https://fonts.googleapis.com/css?family=Open+Sans);

  body {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.03em;
    font-size: 13px;
  }

  body, html { width: 100%; height: 100%; }

  .clear { clear:both; }

  .main-content {
    padding: 30px;
    margin-top: 34px;
    background-color: #f5f5f5;
    width: 100%;
    height: 100%;
    border-top: 1px solid #EEE; /*#D0D5DB*/
    min-width: 620px;
    box-sizing: border-box;
    display: inline-table;
  }

  .main-content-div {
    padding: 30px;
    margin-top: 34px;
    background-color: #f5f5f5;
    width: 100%;
    height: 100%;
    border-top: 1px solid #EEE; /*#D0D5DB*/
    min-width: 620px;
    box-sizing: border-box;
    display: inline-table;
  }

  .main-content-div img{
    max-height: 20px;
    max-width: 20px;
	width: 12px;
	height: 14px;
    vertical-align: middle;
    cursor: pointer;
  }

  a, th.link {
    color: #0000A0;
    text-decoration: none;
  }

  a:hover, th.link:hover {
    color: #F9A140;
    text-decoration: underline;
  }
  a.no-underline:hover {
    text-decoration: none;
  }

  img {
    vertical-align: middle;
  }

  select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #888;
}

  .main-content img {
    max-height: 20px;
    max-width: 20px;
    vertical-align: middle;
    cursor: pointer;
  }

  img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .imgrivi img {
   max-height: 20px;
   max-width: 20px;
 }

 table img {
   max-height: 20px;
   max-width: 20px;
 }

 /* Headings */

 /* Global heading styles */

 h1, h2, h3, h4, h5 {
  color: #354052;

}

h1 {
  font-size: 22px;
  margin-bottom: 1em;
}

h2 {
  font-size: 18px;
  margin-bottom: 0.8em;
}

h3 {
  font-size: 16px;
  margin-bottom: 0.7em;
}

h4 {
  font-size: 14px;
  margin-bottom: 0.7em;
  color: #888;
}

h5 {
  font-size: 13px;
  margin-bottom: 0.7em;
  color: #888;
}

h6 {
  font-size: 12px;
  margin-bottom: 0.7em;
  color: #888;
}

p {
  font-size: 13px;
  line-height: 1.5em;
  color: #222935;
}

.sub-title { margin-top: 20px; margin-bottom: 1em;}

.underline {
  border-bottom: 2px solid #F9A140;
  padding-bottom: 2px;
  max-width: 550px;
  margin-top: 10px;
}

.image-column img {  /*Poista kun ei enää giffei*/
    height: 17px;
    width: 17px;
    vertical-align: middle;
}

/* Header */

.logo-container {
  margin: 10px auto 25px;
  text-align: center;
  float: left;
}

.header1 {
  padding: 10px 15px 0px;
  border-bottom: 1px solid #eee;
}

.header2 {
  padding: 0px 15px 0px;
  border-bottom: 1px solid #eee;
}

.header2 h1 {
  margin-bottom: 0em;
}

.header {
  /*margin: 20px 10px 10px;
  border-bottom: #f3f3f3;*/
  height:25px;
  min-width: 600px;
  padding: 15px 10px 10px;
  background-color: #fff;
  z-index: 1;
  position: fixed;
  width: 100%;
  border-bottom: 1px solid #f3f3f3;
}

.header-left {
  float: left !important;
  padding-left: 19px;
}

.header-right {
  float: right !important;
  margin-right: 40px;
}

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.header li {
  display: inline-block;
}

.icons li {
  margin: 0px 5px 10px 8px;
}

.icons img {
  max-height: 25px;
  vertical-align: middle;
}
.icons > img:hover {
  cursor: pointer;
}

img.disabled { opacity: 0.5; }

.header h2, .header h1 {
  float: left;
}

.header-left h2 {
  font-size: 23px;
  margin-bottom: 0em;
}

div.stickyHeader { /* sticky-header -plugin */
  top: 50px; /*oli -10 mut ei toimi silla tulos ja tase kp beta*/
  position:fixed;
  _position:absolute;
  margin: 0;
  margin-left: 30px;
}

/* Tables */

table {
  width: 100%;
  text-align: left;
/* Muutettu 12.13.18. Otettu pois käytöstä. Alkuperäiset below
  margin-bottom: 20px;   //alkp. 40px
  margin-top: 10px;  */
  font-size: 13px;
}

/* kokoasetuksia taulukoille */
table.full { width: 100%; }
table.three-of-four { max-width: 1400px; }
table.three-quarters { max-width: 75%; }
table.half { max-width: 900px; }
table.small { max-width: 560px; }
table.smaller { max-width: 300px; }
table.x-small { max-width: 100px; }


thead {
  background-color: #EAEAEA;
  font-weight: bold;
  padding: 15px 10px;
  border-bottom: 2px solid #CCC;
}

/* raidoitus riveille */
tr:nth-child(even) {
  background-color: #EEE;
}
tbody tr:nth-child(odd) {
  background-color: #FFF;
}

/* taulukolle, johon ei haluta raidoitusta */
table.no-stripes tr {background-color: transparent; }

th, td {
  border: 1px solid #eaeaea;
  padding: 8px 10px;
  word-wrap: break-word;
  text-overflow: ellipsis;
  text-align: left; /*Koska IE pistää automatic tekstin keskelle, vaikka pitäis olla left side*/
}

tr.level-0 td.otsikko {
  font-size: 100%;
  font-weight: 900;
  padding-top: 20px;
}

tr.level-1 td.otsikko { padding-left: 20px; }
tr.level-2 td.otsikko { padding-left: 30px; }
tr.level-3 td.otsikko { padding-left: 40px; }
tr.level-4 td.otsikko { padding-left: 50px; }
tr.level-5 td.otsikko { padding-left: 60px; }
tr.level-6 td.otsikko { padding-left: 70px; }

.lisatiedotform-table th, .lisatiedotform-table td {
  border: none !important;
  padding: 1px 1px !important;
}

td a, th a {
  vertical-align: middle;
  word-wrap: break-word;
  text-overflow: ellipsis;
}

tfoot { background-color: #fff; }
tfoot tr:nth-child(2n) { background-color: #fff; }

th.one-third { width: 33%; }

/* sarakkeille, joissa on ikoni */
th.image-column, td.image-column {
  width: 20px;
  text-align: center;

}

.oikeusselect {
	width: 240px;
}

/*lyhyille sarakkeille*/
th.short-column, td.short-column {
  width: 30px;
  text-align: center;
}

/* taulukko, jossa osa soluista inputteja */
.table-with-inputs td {
  padding: 2px; /* 10px; */
  margin: 0px;
  background-color: transparent;
  border: none;
  vertical-align: middle;
}

.table-with-inputs tr { border: 1px solid #EAEAEA; }

/* riveille, joilla ei inputteja */
tr.no-inputs td {
  padding: 10px !important;
}
.no-input {
  padding: 10px !important;
}
/*.table-with-inputs tr td:first-child { padding-left: 5px; }*/

.table-with-inputs a {
  vertical-align: middle;
  margin-left: 2px;
  margin-right: 2px;
}

.table-with-inputs input[type="text"], .table-with-inputs select, .row-with-inputs input, .row-with-inputs select{
  margin: -1px 0px;
  width: 100%;
  height: auto;
  min-width: 0px;
  display:block;
  white-space:nowrap;
  display:table-cell;
  border-radius: 0px;
}
/* yksittäisille riveille, joilla on input */
.row-with-inputs td {
  padding:0px; /* 10px; */
  margin: 0px;
  background-color: transparent;
  border: none;
  text-align: center;
}

/* sarakkeille, jossa rahasumma tai pvm */
.amount, .numeric {
  text-align: right;
}
.table-with-inputs td.amount, .table-with-inputs td.numeric { padding: 0px 10px; }

.center, .ikoni_rivi { text-align: center; }

/* taulukko ilman bordereita yms. */
table.no-background {
  margin-bottom: 10px;
}
table.no-backgroundSalesInvoice {
  margin-bottom: 10px;
  margin-left: 50%;
  width: 50%;
}
table.no-background tr, table.no-background thead{
  background-color: transparent;
}
table.no-background th, table.no-background td {
  border: none;
}
/*Taulukoille, joissa tausta vain theadissä*/
table.no-background2 th, table.no-background2 td {
  border: none;
}

/* kompaktimpi table */
table td {
  padding: 3px 8px !important;
}

/* table, jossa pelkästään input-kenttiä */
table.input-table {
  border-bottom: 2px solid #ccc;
  margin-bottom: 0;
}

/* checkbox-ryhmälle */
div.checkbox-group > table{
  border: 1px solid #ccc;
  background-color: #fff;
  margin-top: 0px;
}
div.checkbox-group > table > td {
  padding: 3px;
}

div.checkbox-group > label {
  position: relative;
  top: 20px;
}

/* table pyöreillä reunoilla */
table.round-borders {
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-spacing: 0;
  border-collapse: separate;
}

/*Pankki tiliöintisäännöt table korjaus*/
table.input-table .tilinimi {
	padding: 6px 10px;
}

.tositeminw{
	width: 21%;
    min-width: 275px !important;
}

/* ns. kolmipistenappia ja miksei muitakin varten */
table.input-table td.has-button, .table-with-inputs td.has-button { min-width: 185px; }

table.input-table td.has-button a, .table-with-inputs  td.has-button a,
table.input-table td > a { width: 13%; }

table.input-table td.has-button input, .table-with-inputs td.has-button input ,
table.input-table td > input{ width: 87% }
.table-with-inputs  td.has-button a { margin: 0px 12px; }

table.input-table tbody tr {
  background-color: #fff;
}

table.input-table td.narrow, th.narrow {
  width: 80px;
  max-width: 80px;
}

table.input-table td.wide {
  width: 180px;
  max-width: 180px;
}

table.input-table td {
  padding: 0;
}

table.input-table td input {
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
}

table.input-table td select {
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  /* font-size: 14px; */
  /* height: 100%; */
}
table.input-table td { background: #fff }


table.input-table td.total-price input {
  background-color: #FFF;
  font-weight: bold;
}
table.input-table td.total-price {
  background-color: #F3F3F3;
}

table.input-table-bottom {
  font-weight: bold;
}

table.input-table-bottom tr {
  background-color: #fff;
}

table.input-table-bottom tr.excl-vat td {
  padding-top: 15px;
  padding-bottom: 5px;
}

table.input-table-bottom tr.vat td {
  padding-top: 5px;
  padding-bottom: 15px;
}

table.input-table-bottom td {
  border: 0;
}

table.input-table-bottom td.calculated-value {
  text-align: right;
}

table.input-table-bottom tr.total {
  background-color: #ECECEC;
  border-top: 2px solid #ccc;
  font-size: 14px;
}

table.input-table-bottom tr.total td {
  padding: 15px 10px;
}

input.input-table-table-add-row {
  margin-top: 15px;
}

/* Yhteensä taulukko*/
table.yhteensa-taulukko {
  /*font-weight: bold;*/
  float:right;
  width: 40%;
  margin-bottom: 30px;
  min-width: 500px;
}

table.yhteensa-taulukko tr {
  background-color: #fff;
}

table.yhteensa-taulukko tr.excl-vat td {
  padding-top: 15px;
  padding-bottom: 5px;
}

table.yhteensa-taulukko tr.vat td {
  padding-top: 5px;
  padding-bottom: 15px;
}

table.yhteensa-taulukko td {
  border: 0;
}

table.yhteensa-taulukko td.calculated-value {
  text-align: right;
}

table.yhteensa-taulukko tr.total {
  background-color: #ECECEC;
  border-top: 2px solid #CCC;
  font-size: 14px;
}

table.yhteensa-taulukko tr.total td {
  padding: 15px 10px;
}

table.yhteensa-taulukko tr:first-child {
  background-color: #ECECEC;
  border-bottom: 2px solid #CCC;
  font-size: 14px;
  font-weight: bold;
}

/* Yhteensä taulukko päättyy*/
/* TABLET päättyy*/

.rivi-vali {
  background-color: #fff;
  height: 5px;
  padding: 0px;
}

/* tositerivin dimensioiden otsikkosolut */
.th_dimensions {
  display: none;
  width: 30px !important; /** aseta tämä oikein **/
}

input.dimensions {
  width: 88% !important;
  /** aseta tämä oikein **/
}

strong {
  font-weight:bold;
}

.strong {
  font-weight: bold;
}

/* Tabs */

div.tabs { display:inline-block; min-width: 550px; }

div.tabs-inside {
  margin-top:10px;
  width: 1000px;
}

ul.nav-tabs {
  display: inline-flex;
  width: 100%;
  min-width: 700px;
}
ul.nav-tabs:after {
  display: table;
  content: ' ';
  clear: both;
}
ul.nav-tabs li , ul.column-labels li{
  display: inline-block;
  margin-right: 8px;
  float: left;
  background-color: #F9A140;
}
ul.nav-tabs li a, ul.column-labels li a {
  color: #fff;
  padding: 9px 17px;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}
ul.nav-tabs li.active {
  background-color: #fff;
  border-left: 1px solid #eaeaea;
  border-right: 1px solid #eaeaea;
}
ul.nav-tabs li.active a {
  color: #222;
}
.tab-content {
  background-color: #fff;
  /*margin: 0px 0px 30px;*/
  padding-top: 10px;
  padding-bottom: 10px; /*MUUTA 10*/
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid #eaeaea;
  border-top: none;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 15px;
}

.tab-content-ostoreskontra {
  background-color: #fff;
  margin: 0px 0px 16px;
  padding: 10px;
  border: 1px solid #eaeaea;
  border-top: none;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
}
.tab-content .tab-panel {
  /* position: absolute; */
  display: none;
}
.tab-content .tab-panel.active {
  position: relative;
  display: block;
}

#etucon {
  display: flex !important;
}
ul.column-labels { display:inline-block; }
ul.action-tabs button{ margin-bottom: 0px; height: 37px; }
ul.action-tabs, ul.column-labels {float: left; height: 100%;}
div.tab-list { background-color:#F5F5F5; height: 37px; width: 100%; }

/* Forms */

input, select, textarea {
  border-radius: 5px;
  /* alkuperänen margin: 7px 0px; padding: 10px 15px; */
  margin: 2px 0px;
  padding: 2px 10px;
  border: 1px solid #bcbcbc;
  display: inline-block;
  vertical-align: middle;
  /*font: inherit;*/
}

input[type="file"] {
  border: none;
  padding: 8px 0px;
}

.ilmwidth{
      width:350px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent : 0.01px;
  text-overflow :;
  background: url(/i/png/select_dropdown.png) no-repeat right #fff !important;
  /*background-size: 30px 30px;
  padding-right: 33px;  */
  /* height: 26px; */
  padding: 0px 25px 0px 10px;
  white-space: nowrap;
}

.main-content select {
  height: 25px;  /*ttt*/
}

/* IE:n select nuoli pois*/
select::-ms-expand {
  display: none;
}
/**IE:n select option sininen background poisto*/
select:focus::-ms-value {
	background: none;
	color: #888;
}

/* multiselect-kenttä */
select.multiselect[multiple="multiple"] {
  background: #fff none !important;
  height: 100px;
}


@media screen and (min-width:0\0) {  /* IE 9 and 10 */
  select {
    background: white;
    padding: 3px;
  }
}

input[type="text"], select, textarea{
  width: 280px;
  box-sizing: border-box;
}
input[type="text"].one-third, select.one-third {
  width: 100px;
  margin-right: 5px;
}
input[type="text"].two-thirds, select.two-thirds {
  width: 175px;
  margin-right: 5px;
}
input[type="text"].half, select.half { width: 148px; margin-right: 4px; }

input[type="text"].input-big {
  width: 600px;
}

select.login-kieli {
  width: 158px;
}

input[readonly], textarea[readonly]{
  background-color: #EAEAEA;
  color: #686868;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
}

/* autocomplete selectien ikoni poistttu käytöstä */
.ui-icon-triangle-1-s {
  display: none !important
}

/* text container */

.text-container {
  text-align:left;
  clear: both;
  min-height: 25px;
  font-size: 0px; /* font-size reset for layout */
}

.text-container label {
  display:inline-block;
  width: 210px;
  vertical-align: middle;
  padding: 5px 0px;
}
.text-container span {
  width: 280px;
  display: inline-block;
  border: 1px solid #bcbcbc;
  border-radius: 5px;
  margin: 3px 0px;
  padding: 4px 10px;
  background-color: #E5E5E5;
  box-sizing: border-box;
  vertical-align: middle;
}
.text-container span:empty { display:none; }

.tab-panel div.text-container span {
  background-color: #EAEAEA;
}

.text-container span.huomio, .tab-panel div.text-container span.huomio,
.text-container span.message {
  border: none;
  background-color: transparent;
  width: 100px;
}

.text-container:last-of-type {
  margin-bottom:20px;
}

/* input-container */
.input-container input[type="text"]:last-child {
  margin-right: 0px;
}
.input-container input[type="checkbox"], input[type="checkbox"] {
  margin-left: 2px;
  margin-right: 2px;
  /* padding pois IE:tä varten */
  padding: 0px 0px;
}
.input-container {
  text-align: left;
  clear: both;
  min-height: 25px;  /* linkkejä varten*/
  min-width: 560px;
  white-space:nowrap;
  font-size: 0px; /* font-size reset for layout */
}
.input-container label {
  display: inline-block;
  width: 210px;
  white-space: normal;
  vertical-align: middle;
}

.input-container span.message {
  margin: 0px 10px;
  display: inline-block;
  vertical-align: middle;
}

.input-container img {
	max-width: 20px;
	max-height: 20px;
}

.input-container.radio span {
  margin-right: 5px;
}

.bold {
	font-weight: bold;
}

a.linkbutton{
  background: #c0c0c0 url(/i/content_headerBG.jpg) bottom repeat-x;
    color: #fff;
    outline: 1px solid #888;
    border: 1px solid #c0c0c0;
    border-radius: 0;
    padding: 4px 16px;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
	text-decoration: none;
    display: block;
    float: left;
    color: #fff !important;
    cursor: default;
    /*background-position: center center;*/
}

.button-vih {
	margin-left: 210px;
	margin-right: 10px;
    background: #28772C !important;
    border-color: #28772C !important;
    color: #fff !important;
}

span.text {margin-bottom: 10px; }

/* set font-size back to show text */
.input-container input, .input-container a,
.input-container label, .input-container textarea,
.input-container button , .text-container input,
.input-container span, .input-container select,
.text-container a, .text-container label,
.text-container span{ font-size: 13px; font-family: inherit; vertical-align: middle;}

.input-container a { margin-left: 2px; vertical-align: middle;}
.input-container select {height: 25px;}  /*ttt*/

label.indented-input {
  margin-left: 20px;
  width: 230px;
}

.form-row .input-container {
  display: inline-block;
  margin-right: 8px;
}
.input-container input.has-datepicker {
  margin-right: 5px;
}

.lastrow { margin-bottom: 30px; }

.left-margin {
  margin-left: 250px;
}

.left {
  float: left;
}

input[type="checkbox"].left-margin {
  margin-left: 212px;
}

/* 2 input kenttää samalla rivillä */
.two-inputs {
  display:inline-block;
  max-height:50px;
  width:280px;
  position:relative;
  vertical-align: middle;
}

.two-inputs input, .two-inputs select, .two-inputs .input-container {
  width: 136px;
}

.two-inputs-datepicker input {
  width: 113px;
}

.two-inputs-datepicker2 input {
  width: 113px;
}

.one-input-datepicker input {
  width: 113px !important;
}

.one-input-datepicker {
  width: 113px !important;
}

/*
.two-inputs input.left {
  float:left;
}

.two-inputs input.right {
  float:right;
}
*/

.two-inputs span, .two-inputs-datepicker span {
  /*position:absolute;
  top:40%;
  left:50%;*/
  vertical-align: middle;
  margin: 0px 2px;
}

.two-inputs-datepicker2 span {
  /*position:absolute;
  top:40%;
  left:50%;*/
  vertical-align: middle;
  margin: 0px 2px;
}
/* 2 input kenttää + datepickerit */

.two-inputs-datepicker {
  position:relative;
  max-height:50px;
  display:inline-block;
  vertical-align: middle;
}

.two-inputs-datepicker2 {
  position:relative;
  max-height:50px;
  display:inline-block;
  vertical-align: middle;
}

img.ui-datepicker-trigger { margin: 2px; vertical-align: middle; max-height: 20px; }
a.copydates img { vertical-align: middle !important; margin: 2px 2px 4px!important; }

.main-content .help { margin-left: 300px; color: #777; clear: left;font-size: 0.7em; }

input.ui-autocomplete-input {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  /*width: 270px !important;*/
  box-sizing: border-box;
}

div.item {padding: 10px; }


/* Buttons */

button, input[type="submit"], input[type="button"], a.button {
  background-color: #F9A140;
  border: none;
  /*border-radius: 5px;*/
  /*padding: 8px 12px;*/
  color: #fff;
  text-transform: uppercase;
  min-width:100px;
  text-decoration: none;
  /*vertical-align: baseline;*/
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  padding: 3.5px 10px;   /* oli 3.5px 10px, muutettu että saadaan samaksi muiden kanssa, check if vaikuttaa johonkin toiseen! */
}

button:active, input[type="submit"]:active, input[type="button"]:active, a.button:active {
  background-color: darkorange;
}

button {
	padding: 6px 10px;
	border-radius: 5px;
}

/*Kirjanpito sarakkeiden lisäys fix*/
button.add_column {
	border-radius: 0px;
}

a.button {
  padding: 7px 12px;
  -webkit-padding-before: 6px;
  -webkit-padding-after: 6px;
}

/* rivi erilaisia nappeja, esim. Dokumentit -> Yrityksen dokumentit alhaalla olevat (tilitsokäyttäjällä */
div.action-row form { display: inline-block; }
div.action-row > form *{
  vertical-align: inherit;
}

/* kato mikä tää oli
a.button { vertical-align: middle; }
*/

/*PHP a href linkki muutettu napiksi niin väri muutettu*/
.nolink a {
  color: white;
  border-radius: 5px;
}

.button-table {
  background-color: transparent;
  padding: 0px;
  min-width: 0px;
}

button.round-borders, a.round-borders { border-radius: 5px; }

button { margin-bottom: 30px; }

.no-bottom { margin-bottom: 0px !important;}

.no-border {
	border: none !important;
}
/* Kustannuspaikka input */
.ui-button.no-border {
	border: none;
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
}
.ui-button.no-border:hover {
	background-color: #fff;
}

div.input-groups {
  width: 100%;
  float: left;
}
div.input-group {
  float:left;
  margin-right: 20px;
}

/* väliaikainen? */
.main-content input[type="button"].nappi-pieni {
  background-color: #F9A140;
  border: none;
  color: #fff;
  text-transform: uppercase;
  padding: 3px 0px;
  width:100%;
  margin: 0px;
}

/* värilliset napit */
.main-content input[type="button"].nappi-vih,
.main-content input[type="submit"].nappi-vih {
  background-color: #41BA4F;
}

.main-content input[type="button"].nappi-pun,
.main-content input[type="submit"].nappi-pun { background-color: #ED4337; }

.nappi-vih { background-color: #41BA4F !important;}

.main-content input[type="submit"], .main-content input[type="button"] {
  margin-left: 210px;
  margin-top: 5px;
}

.main-content input.nomargin {
  margin-left: 5px;
  margin-right: 5px;
}

.nomargintop {
 margin-top: 0px !important;
}

.main-content input.no-margin {
  margin-left: 0px;
}

/* uusi latauspalkki animaatio */

div#latauspalkki {
  display:none;
  position: fixed;
  top:35%;
  /*bottom: 0;*/
  left: 30%;
  /*right: 0;*/
  margin: auto;
  width: 200px;
  text-align: center;
  padding: 20px 50px;
  background: #FFF;
  height: 65px;
  border: 2px solid #F9A140;
  border-radius: 5px;
  z-index: 10000;
}

a.sininappi {
    display: inline-block;
    font: Bold 8px Arial;
    color: #FFFFFF;
    padding: 4px;
    background-color: #004A80;
    border-style: solid none none solid;
    border-width: 1px 0px 0px 1px;
    border-color: #6699CC;
    margin-top: 1px;
    text-decoration: none;
}

div#latauspalkki.onload {
  /*display: block;*/
}

div#latauspalkki p {
  font-size: 13px;
  font-weight: bold;
}

div#latauspalkki div {
  margin: auto;
  margin-top: 5px;
  box-sizing:border-box;
  width:50px;
  height:50px;
  border-radius:50%;
  background:linear-gradient(rgba(243, 145, 57, 1) -50%,rgba(249, 161, 64, 0) 60%);
  animation:roll-r 6s linear infinite;
}

div#latauspalkki>div>div {
  padding:5px;
  animation:roll-l 2s linear infinite;
}
div#latauspalkki>div>div:after {
  content:"";
  display:block;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#fff;
}

@keyframes roll-r {
  0% {transform:rotate(0deg);}
  100% {transform:rotate(360deg);}
}
@keyframes roll-l {
  0% {transform:rotate(0deg);}
  100% {transform:rotate(-360deg);}
}
/* uusi latauspalkki animaatio päättyy */


/* huomiot ja virheet */
.virhe, .form-error {
  border: 1px solid red !important;
  background: #ffdddd !important;
}

.ok{
	border: 1px solid green!important;
	background-color: #a4fca4 !important;
}

.error-png {
  float: left;
  padding-right: 15px;
  max-width: 50px !important;
  max-height: 50px !important;
}

.huomio, .huomio  li{
  font-weight: bold;
  color: #ff0000;
  margin: 0px 5px 10px 20px;
}

span.error { margin-left: 250px; vertical-align: middle; font-weight: bold; float: left; display: none !important; /*Ei pakollinen kenttä tekstiä*/}
textarea.error {background-color: #FDD; border-color: #C66;}
.huomio:empty {
  display: none;
}

/*Ei tule Pakollinen kenttä - tekstiä*/
#MatkalaskukmMuokkaaForm span.error,
#MatkalaskuprMuokkaaForm span.error,
#MatkalaskukuluMuokkaaForm span.error,
#MatkalaskukmDescription span.error,
#MatkalaskuAccountNo span.error,
#MatkalaskuTitle span.error {
  display: none !important;
}

div.ilmoitus {
  padding: 5px 5px;
  position: relative;
  top: 58px;
}

div.ilmoitus2 {
  padding: 5px 5px;
  position: relative;
  top: 0px;
  margin-bottom:16px;
}

.virheilmoitus {

  max-width: 476px;
  border: 1px solid red !important;
  background: #ffdddd !important;
  padding: 5px 5px;
  position: relative;
  margin-bottom:5px;
  margin-top:5px;
  border-radius: 5px;
  overflow-wrap: break-word;
}

.huomioilmoitus {

  max-width: 476px;
  border: 1px solid #6C6 !important;
  background-color: #a4fca4 !important;
  padding: 5px 5px;
  position: relative;
  margin-bottom:5px;
  margin-top:5px;
  border-radius: 5px;
  overflow-wrap: break-word;
}

div.virheilmoitus:empty { display: none; }
div.huomioilmoitus:empty { display: none; }

.alvprosentti{
	width: 80px !important;
}

/* flash-viestit */

.flash { color: #000; padding: 10px; border: 1px solid #666; background: #FFF; margin-bottom: 8px; font-size: 13px; width: 95.5%;}
.flash.error, #flash-messages .error, input.error, input.form-error { border-color: #C66; background-color: #FFDDDD; }
.flash.success, #flash-messages .success { border-color: #6C6; background-color: #a4fca4;}
.flash.warning, #flash-messages .warning { border-color: #CC6; background-color:#FFF28E; }
#flash-messages .flash { margin-bottom: 10px; border-radius: 5px;}

#flash-message { margin: 20px 10px; }

#flash-messages .message { /* wrapataan usampi message */
  background: none repeat scroll 0 0 #FFFFFF;
  border: 1px solid #666666;
  color: #000000;
  margin-bottom: 8px;
  margin-left: 28px;
  padding: 10px;
  width: 340px;
}

#salasanalinkki:hover {
  color: #F9A140 !important;
}

#tuotantolinkki:hover {
  color: #F9A140 !important;
}

#tuotantolinkki{
  display: block;
  color: #0083AD;
  font-size: 11.5px;
  text-align: center;
  margin-bottom: 17px;
  float: left;
  margin-left: 5px;
  margin-top: 1px;
}

#salasanalinkki{
  display:block;
  color:#0083AD;
  font-size: 13px;
  margin-top:17px;
}
#salasanavaihtosivulink:hover {
  color: #F9A140 !important;
}
#salasanavaihtosivulink{
  color:#0083AD;
}
#salasanavaihtosivu{
  text-align: justify !important;
  margin-bottom:28px;
  font-size:13px;
  border-color: lightgrey;
  padding:10px;
  border:solid;
  border-width:1px;
  border-radius:5px;
  background-color:#dddddd;
  border-style:ridge;
}

div.raportit-boksi {
  border: 1px solid #aaa;
  margin: 6px 8px 6px 8px;

}

#LiiteFrame { border: 1px solid #bcbcbc; border-radius: 4px;}

/* dashboard ja yläpalkki */

div.ylapalkki {
  height: 100%;
  width: 100%;
  min-width: 1300px;
  display: inline-block;
}

div.logo-container {
  padding-top:  6.5px;
}

.flag_icon {
  margin-top: -7px;
}

div.ylapalkki div.logo-container {
  display:inline-block;
  text-align: center;
  background-color: #354052;
  width: 230px;
  height: 58px;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0px

}

div.ylapalkki div.ylapalkki-header {
  color: #888;
  border-bottom: 1px solid #EEE;
  display: inline-block;

}

div.ylapalkki-header div.left {
  float: left;
  margin-left: 10px;
  height: 100%;
}
div.ylapalkki-header div.right {
  height: 100%;
}

div.dashboard div.box, body.dashboard .box
{
  float: left;
  /*height: 340px;*/
  width: 382px;
  margin: 8px 2px 4px 10px;
  border: 1px solid #aaa;
}
div.dashboard div.box-wide, body.dashboard .box-wide {
	width: 778px; display: block;
	border: 1px solid #aaa;
	margin: 10px 8px 4px 10px;
}
div.dashboard div.box div.content
{
  padding: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #F8A140;
  border-top: 0;
  height: 100%;
}
div.dashboard div.box h2
{
  background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

#ilmoitukset {
  margin-top: 4px;
  margin-bottom: 4px;
  margin-left: 4px;
  margin-right: 8px;
  width: 470px;
  max-height: 380px;
}

#ilmoitukset-div {
  position: fixed;
  top: 115px;
  left: 43px;
  height: 380px;
}


#tiedotteet-div {
  position: fixed;
  top: 115px;
  left: 549px;
  height: 380px;
}

#tiedotteet {
  margin-top: 4px;
  margin-bottom: 4px;
  margin-left: 4px;
  overflow: hidden;
  width: 470px;
  max-height: 380px;
}

/* BEGIN DROPDOWN */
.main-header {
  margin-left: 210px;
  height: 58px;
 /* border-bottom: 2px solid #dcdcdc;*/
}

.main-header .header-section {
  padding: 22.5px 20px 0px 19px;
}

.main-header .header-section.header-has-dropdown {
 /* border-left: 2px solid #dcdcdc;
  border-right: 2px solid #dcdcdc;*/
  position: relative;
  padding: 0px;
}

.main-header .header-section.header-has-dropdown form select:hover {
  cursor: pointer;
}

.main-header .header-section.header-has-dropdown h4 {
  display: inline-block;
}

.dropdown-arrow {
  padding: 0 0 0 20px;
  display: inline-block;
}

.main-header .header-section.header-has-dropdown ul.header-dropdown {
  display: none;
}

.main-header .header-section.header-has-dropdown ul.header-dropdown:hover,
.main-header .header-section.header-has-dropdown:hover ul.header-dropdown {
  display: block;
  position: absolute;
  top: 100%;
  width: 50px;;
  left: 0;
  background-color: #fff;
  z-index: 999;
  padding-bottom: 10px;
}

.main-header .header-section.header-has-dropdown ul.header-dropdown li {
  padding: 10px 30px;
}

.main-header .header-section.header-has-dropdown ul.header-dropdown li:hover {
  background: #f8f8f8;
}

.main-header .header-section.header-has-dropdown img {
  max-width: 8px;
  -ms-transform: rotate(270deg);
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  filter: alpha(opacity=70);
  opacity: 0.7;
}

.yritysvalinta {
  font-family: 'Open Sans' sans-serif;
  font-size: 14px;
  border: none;
  border-radius: 0px;
  width: 100%;
  color: #888;
  padding: 5.5px 40px 5.5px 19px;
  background-size: 40px;
  margin-top:12px;
  line-height: 1.5;
}

.logout-button {
  border: 1px solid #EEE;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 1px 1px 2px #888;
  margin-bottom: 0px;
  margin-top: -10px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  vertical-align: baseline;
}

.logout-button span{
  color: #888;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  text-transform: none;
  vertical-align: baseline;
}
.logout-button:hover { text-decoration: none; }

.logout-icon {
  fill: #EEE;
  color: #EEE;
  margin-top: -5px;
}


/* END DROPDOWN */

/* BEGIN FEEDBACKER */

.feedbacker-feedback-container {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 2;
}

.feedbacker-feedback-container-box {
    position: fixed;
    top: 5%;
    left: 15%;
    display: block;
    width: 500px;
    height: 370px;
    background-color: #fff;
    border-radius: 5px;
}

.feedbacker-title-container {
    font-family: "Open Sans Light", sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: #fff;
    background-color: #354052;
    height: 25px;
    text-align: center;
    padding: 8px 0px 0px 0px;
}

.feedbacker-title-form {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    color: #606060;
    text-align: center;
    padding: 0px 0px 0px 0px;
	font-weight: bold;
	position: relative;
	top: 15px;
}

p.feedbacker-info-container {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    color: #606060;
    text-align: center;
    padding: 5px 0px 0px 0px;
    margin: 0px;
	line-height: normal;
	position: relative;
	top: 15px;
}

.feedback-form {
}

.feedbacker-feedback-textarea {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    resize: none;
    display: block;
    border: 1px solid;
    border-radius: 5px;
    border-color: #d0d0d0;
    background: #e6e6e6 no-repeat;
    -ms-overflow-style: none;
	width: 400px;
	height: 187px;
}

input[type="submit"].feedbacker-submit-button {
	position: absolute;
    top: 87.5%;
    left: 40%;
	border: 1px solid #EEE;
	border-radius: 5px;
	background-color: #fff;
	box-shadow: 1px 1px 2px #888;
	margin-bottom: 0px;
	margin-top: 2px;
	padding-top: 6px;
	padding-bottom: 6px;
	padding-left: 6px;
	padding-right: 6px;
	box-sizing: border-box;
	vertical-align: baseline;
	color: #888;
	font-size: 12px;
    font-family: "Open Sans Light", sans-serif;
	text-transform: none;
}

input[type="submit"].feedbacker-submit-button:hover {
    text-decoration: none;
}

button.feedbacker-feedback-close-button {
    position: absolute;
    right: -30px;
    top: 0;
    padding: 4px 10px 5px 5px;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    float: right;
    font-family: verdana,"Trebuchet MS","sans-serif";
    font-size: 18px;
    font-weight: bold;
    line-height: 20px;
    color: #fff;
    text-shadow: 0 1px 0 #b98989;
    filter: alpha(opacity=20);
	outline: unset;
}

button.feedbacker-feedback-close-button:hover {
    font-size: 20px;
}
/* END FEEDBACKER */


/* BEGIN TIMI LOGIN */
body.login {
  background: url(/i/login-back.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
    src='/i/login-back.jpg',
    sizingMethod='scale'); /*IE härpäke*/
}
/*Väliaikainen koska toinen polku webroottiin, en tiedä kumpi jää*/
body.login2 {
  background: url(../i/login-back.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
    src='/i/login-back.jpg',
    sizingMethod='scale'); /*IE härpäke*/
}

.login-telia {
  background-color: #990AE3 !important;
  display: block;
  margin: 30px auto 10px;
  padding: 15px 25px !important;
}

.login-taitoa {
  background-color: #61b450 !important;
  display: block;
  margin: 30px auto 10px;
  padding: 15px 25px;
}

.login-modal-wrapper {
  width: 600px;
  height: 470px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -250px;
  margin-left: -300px;
}

.login-modal-wrapper h1 {
  color: #fff;
  font-style: italic;
  text-align: center;
  margin-bottom: 30px;
  display: block;
}

.login-modal-wrapper .login-form-wrapper {
  background: #ededed;
  padding: 20px;
  max-width: 300px;
  margin: auto;
  border-radius: 10px;
}

.login-modal-wrapper .login-form-wrapper img.logo {
  display: block;
  margin: 17px auto;
  max-height: none;
}

.login-modal-wrapper .login-form-wrapper input.username,
.login-modal-wrapper .login-form-wrapper input.password {
  padding: 15px 10px 10px 40px;
  max-width: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-position: 12px center;
}

.login-modal-wrapper .login-form-wrapper input.username {
  background-image: url(/i/icon-username.png);
}

.login-modal-wrapper .login-form-wrapper input.password {
  background-image: url(/i/icon-password.png);
}
/*Taas polku muutokset toistaiseksi*/
.login-modal-wrapper .login-form-wrapper input.username2,
.login-modal-wrapper .login-form-wrapper input.password2 {
  padding: 15px 10px 10px 40px;
  max-width: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-position: 12px center;
}

.login-modal-wrapper .login-form-wrapper input.username2 {
  background-image: url(../i/icon-username.png);
}

.login-modal-wrapper .login-form-wrapper input.password2 {
  background-image: url(../i/icon-password.png);
}

.login-modal-wrapper .login-form-wrapper .lang-select {
  margin: 15px 0 10px;
}

.login-modal-wrapper .login-form-wrapper .lang-select .float-left {
  width: 60%;
  margin-top: 12px;
  float: left;
}

.login-modal-wrapper .login-form-wrapper .lang-select .float-right {
  width: 40%;
  float: right;
}

.login-modal-wrapper .login-form-wrapper .lang-select select {
  max-width: 100%;
  margin: 0;
  height: 35px;
  background: #fff;
}

.login-modal-wrapper .login-form-wrapper input.login {
  display: block;
  margin: 30px auto 10px;
  padding: 15px 25px;
}

/* END TIMI LOGIN */

/* BEGIN MITTARISTON NUMEERISET (KPI) */
/* Consider using body.dashboard, .box-wide classes for kpi-panel. */
.kpi-panel, .kpi-panel * {
  box-sizing: border-box;
}

.kpi-panel {
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: block;
}

.kpi-panel-heading {
  margin: 6px 0;
  color: #3e576f;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 16px;
}

.kpi-card {
  border: 1px solid #aaa;
  padding: 0;
  text-align: center;
  margin: 0;
  display: block;
  width: auto;
  height: auto;
}

.kpi-card p {
  display: block;
  font-weight: bold;
  padding: 0;
  margin: 8px;
}

.kpi-name {
  color: #6d869f;
  font-size: 0.83em;
  text-transform: uppercase;
  line-height: 16.1833px;
}

.kpi-value {
  color: #4572f0;
  font-size: 1.50em;
  line-height: 29.25px;
}

.kpi-grid {
  display: grid;
  justify-content: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.kpi-panel-big, .kpi-panel-big * {
  box-sizing: border-box;
}

.kpi-panel-big {
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: block;
}

.kpi-panel-heading-big {
  margin: 6px 0;
  color: #3e576f;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 40px;
}

.kpi-card-big {
  border: 1px solid #aaa;
  padding: 0;
  text-align: center;
  margin: 0;
  display: block;
  width: 250px;
  height: 250px;
}

.kpi-card-big p {
  display: block;
  font-weight: bold;
  padding: 0;
  margin: 8px;
}

.kpi-name-big {
  color: #6d869f;
  font-size: 1.50em;
  text-transform: uppercase;
  line-height: 40px;
}

.kpi-value-big {
  color: #4572f0;
  font-size: 7.00em;
  line-height: 141px;
}

.kpi-grid-big {
  display: grid;
  justify-content: stretch;
  grid-template-columns: repeat(auto-fit, 250px);
  gap: 15px;
}
/* END MITTARISTON NUMEERISET (KPI) */

/* datepicker */

/* alla oma kääntö bootstrap datepickerin tyyleistä jqueryn datepickerille */

#ui-datepicker-div {
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  padding-bottom: 5px;
  background-color: #fff;
}

table.ui-datepicker-calendar { padding-bottom: 5px; }

.ui-datepicker-calendar  thead{
  font-weight: normal;
  padding: 0px;
  border-bottom: medium none;
  background-color: #fff;
  color: #9AAEC1;
}

.ui-datepicker-calendar tr { background-color: #fff; }
.ui-datepicker-calendar th { padding: 0px; }
.ui-datepicker-calendar td  a {
  color: #000;
  border-radius: 25px;
  padding: 10px !important;
  vertical-align: middle;
  text-align: center;
}
.ui-datepicker-calendar td a:hover { background: #eeeeee; }


/* bootstrap.css:stä tarvittavia osia alla */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  box-sizing:border-box;
}
div.datepicker * { box-sizing:border-box;}

div.datepicker {
  top: 0;
  left: 0;
  padding: 0px;
  margin-top: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.datepicker > div {
  display: none;
  padding: 10px;
  overflow: hidden;
}
.datepicker table {
  width: 100%;
  margin: 0;
}
.datepicker thead {
  font-weight: normal;
  padding: 0;
  border-bottom: none;
}
.datepicker thead tr:first-child th {
  position: relative;
}
.datepicker thead tr:first-child th:after {
  content: "";
  position: absolute;
  background-color: #f9a140;
  left: 10px;
  right: 10px;
  top: -10px;
  bottom: -10px;
  z-index: -1;
  /*max-height: 50px*/
}
.datepicker thead tr:first-child th:first-of-type:after,
.datepicker thead tr:first-child th:last-of-type:after {
  left: -10px;
  right: -10px;
}
.datepicker tr,
.datepicker tr:nth-child(even),
.datepicker tr:nth-child(odd) {
  background-color: #fff;
}
.datepicker td,
.datepicker th {
  text-align: center;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 25px;
  border: none;
  vertical-align: middle;
}
.datepicker th { padding: 0px; }
.datepicker td.day:hover {
  background: #eeeeee;
  cursor: pointer;
}
.datepicker td.day.disabled {
  color: #eeeeee;
}
.datepicker td.old,
.datepicker td.new {
  color: #999999;
}
.datepicker td.active,
.datepicker td.active:hover {
  color: #ffffff;
  background-color: #f9a140;
}
.datepicker td.active:hover,
.datepicker td.active:hover:hover,
.datepicker td.active:focus,
.datepicker td.active:hover:focus,
.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active,
.datepicker td.active.disabled,
.datepicker td.active:hover.disabled,
.datepicker td.active[disabled],
.datepicker td.active:hover[disabled] {
  color: #ffffff;
  background-color: #0044cc;
  *background-color: #003bb3;
}
.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active {
  background-color: #f9a140;
}
.datepicker td span {
  display: block;
  width: 54px;
  height: 54px;
  line-height: 54px;
  float: left;
  margin: 2px 7px;
  cursor: pointer;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 50px;
}
.datepicker td span:hover {
  background: #e9edf0;
}
.datepicker td span.active {
  color: #ffffff;
  background-color: #f39139;
}
.datepicker td span.active:hover,
.datepicker td span.active:focus,
.datepicker td span.active:active,
.datepicker td span.active.active,
.datepicker td span.active.disabled,
.datepicker td span.active[disabled] {
  color: #ffffff;
  background-color: #e9edf0;
}
.datepicker td span.active:active,
.datepicker td span.active.active {
  background-color: #f39139;
}
.datepicker td span.old {
  color: #999999;
}
.datepicker th.switch {
  width: 145px;
}
.datepicker th.next,
.datepicker th.prev {
  font-size: 21px;
}
.datepicker thead tr:first-child {
  color: #fff;
  background-color: #f9a140;
  border-bottom: 19px solid transparent;
}
.datepicker thead tr:first-child th {
  cursor: pointer;
  vertical-align: middle;
  border-radius: 25px;
  z-index: 2;
}
.datepicker thead tr:first-child th:hover:after {
  background-color: #f39139;
}
.datepicker thead tr:nth-child(2) {
  height: 45px;
  color: #9aaec1;
  background-color: #fff;
}
.datepicker thead tr:last-child th {
  vertical-align: middle;
  border: none;
  border-radius: 0;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
  display: block;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/*Paikallaolo iframe */
#paikallaolo_iframe {
	height: 500px !important;
}

/*Valuuttakurssit päiväys lista*/
.valuuttapvmtable {
	text-align: center;
}

.valuuttatable {
	text-align: right;
}

.valuuttapvmteksti {
	color: #2E3847;
	font-weight: bold;
	background-color: transparent;
}

.huomio_laatikko {
  color: #000;
  padding: 10px;
  border: 1px solid #666;
  background: #FFF;
  margin-bottom: 8px;
  width: 60%;
  display: inline-block;
}

.huomio_laatikko_virhe {
  border-color: #C66;
  background-color: #FFDDDD;
}

.login-error {
  background-color: #FFDDDD;
  color: #AF0000;
  padding: 10px;
  margin-top: 15px;
  width: 260px;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
}

.login-teksti {
  font-weight: bold;
  margin-bottom: 20px;
}

.ib{
	height: 15px;
	display: inline-block;
	line-height: unset !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align:middle;
}

.overf{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Kirjanpito Betan tabin sulkemisnappi */
span.ui-icon-close {
  float: left;
  margin-top: 10px;
  width: 20px;
  height: 20px;
}

/*
* span, johon tulee luku kuinka monta liitettä näytetään
* käyttää tällä hetkellä liiteAmountIkoni.js, joka pitäisi siirtää administer.js alle kunhan facelift julkaistaan.
*/
a.liite-maara span {
  position: absolute;
  bottom: 10px;
  color: #FFF;
  background-color: #F9A140;
  border-radius: 20px;
  /* width: 16px; */
  padding: 0px 5px;
  line-height: 15px;
  display: inline-block;
  text-align: center;
  left: 10px;
}
a.liite-maara { width: 25px; position: relative; }

/* span, johon lisätään perintäkertojen määrän */
.perinta-ikoni {
  color: #FFF;
  background-color: red;
  border-radius: 20px;
  padding: 2px 5px;
  display: inline-block;
  text-align: center;
  font-weight: bold;
}

/* Perintä ikonin stretch/pulse animaatio */
@-webkit-keyframes flash {
  10%, 50%, 100% {opacity: 1;}
  25%, 75% {opacity: 0.5;}
}
@keyframes flash {
  10%, 50%, 100% {opacity: 1;}
  25%, 75% {opacity: 0.5;}
}
.perinta-ikoni {
	-webkit-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: flash;
  animation-name: flash;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

/* Kaupparekisteritietojen tilaus nappi */
#sabmit {
  margin-left: 0px !important;
}

input.yritystunnus {
  width: auto !important;
}
/*
#kmkorvaus-submit, #kulukorvaus-submit, #paivaraha-submit {
  margin-left: 0px !important;
  }*/

  #align-left {
    margin-left: 0px;
  }

  /* Matkalasku.css */

  /*.ml-table th, */
  .ml-table td {
    background-color: #fff !important;
  }
  .btn > .caret,
  .dropup > .btn > .caret {
    border-top-color: #000 !important;
  }
/*
.label {
  border: 1px solid #000;
  }*/
  .ml-table {
    border-collapse: collapse !important;
  }
  .ml-table-bordered th,
  .ml-table-bordered td {
    border: 1px solid #ddd !important;
  }
  .ml-table {
    width: 100%;
    margin-bottom: 20px;
  }
  .ml-table > thead > tr > th,
  .ml-table > tbody > tr > th,
  .ml-table > tfoot > tr > th,
  .ml-table > thead > tr > td,
  .ml-table > tbody > tr > td,
  .ml-table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    /*vertical-align: top;*/
    border-top: 1px solid #ddd;
  }
  .ml-table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
  }
  .ml-table > caption + thead > tr:first-child > th,
  .ml-table > colgroup + thead > tr:first-child > th,
  .ml-table > thead:first-child > tr:first-child > th,
  .ml-table > caption + thead > tr:first-child > td,
  .ml-table > colgroup + thead > tr:first-child > td,
  .ml-table > thead:first-child > tr:first-child > td {
    border-top: 0;
  }
  .ml-table > tbody + tbody {
    border-top: 2px solid #ddd;
  }
  .ml-table .ml-table {
    background-color: #fff;
  }
  /*.ml-table-condensed > thead > tr > th,*/
  .ml-table-condensed > tbody > tr > th,
  .ml-table-condensed > tfoot > tr > th,
  .ml-table-condensed > thead > tr > td,
  .ml-table-condensed > tbody > tr > td,
  .ml-table-condensed > tfoot > tr > td {
    padding: 5px;
  }
  .ml-table-bordered {
    border: 1px solid #ddd;
  }
  .ml-table-bordered > thead > tr > th,
  .ml-table-bordered > tbody > tr > th,
  .ml-table-bordered > tfoot > tr > th,
  .ml-table-bordered > thead > tr > td,
  .ml-table-bordered > tbody > tr > td,
  .ml-table-bordered > tfoot > tr > td {
    border: 1px solid #ddd;
  }
  .ml-table-bordered > thead > tr > th,
  .ml-table-bordered > thead > tr > td {
    border-bottom-width: 2px;
  }
  .ml-table-striped > tbody > tr:nth-child(odd) > td,
  .ml-table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #f9f9f9 !important;
  }
  .ml-table-hover > tbody > tr:hover > td,
  .ml-table-hover > tbody > tr:hover > th {
    background-color: #f5f5f5;
  }
  .ml-table > thead > tr > td.active,
  .ml-table > tbody > tr > td.active,
  .ml-table > tfoot > tr > td.active,
  .ml-table > thead > tr > th.active,
  .ml-table > tbody > tr > th.active,
  .ml-table > tfoot > tr > th.active,
  .ml-table > thead > tr.active > td,
  .ml-table > tbody > tr.active > td,
  .ml-table > tfoot > tr.active > td,
  .ml-table > thead > tr.active > th,
  .ml-table > tbody > tr.active > th,
  .ml-table > tfoot > tr.active > th {
    background-color: #f5f5f5;
  }
  .ml-table-hover > tbody > tr > td.active:hover,
  .ml-table-hover > tbody > tr > th.active:hover,
  .ml-table-hover > tbody > tr.active:hover > td,
  .ml-table-hover > tbody > tr.active:hover > th {
    background-color: #e8e8e8;
  }
  .ml-table > thead > tr > td.success,
  .ml-table > tbody > tr > td.success,
  .ml-table > tfoot > tr > td.success,
  .ml-table > thead > tr > th.success,
  .ml-table > tbody > tr > th.success,
  .ml-table > tfoot > tr > th.success,
  .ml-table > thead > tr.success > td,
  .ml-table > tbody > tr.success > td,
  .ml-table > tfoot > tr.success > td,
  .ml-table > thead > tr.success > th,
  .ml-table > tbody > tr.success > th,
  .ml-table > tfoot > tr.success > th {
    background-color: #dff0d8;
  }
  .ml-table-hover > tbody > tr > td.success:hover,
  .ml-table-hover > tbody > tr > th.success:hover,
  .ml-table-hover > tbody > tr.success:hover > td,
  .ml-table-hover > tbody > tr.success:hover > th {
    background-color: #d0e9c6;
  }
  .ml-table > thead > tr > td.info,
  .ml-table > tbody > tr > td.info,
  .ml-table > tfoot > tr > td.info,
  .ml-table > thead > tr > th.info,
  .ml-table > tbody > tr > th.info,
  .ml-table > tfoot > tr > th.info,
  .ml-table > thead > tr.info > td,
  .ml-table > tbody > tr.info > td,
  .ml-table > tfoot > tr.info > td,
  .ml-table > thead > tr.info > th,
  .ml-table > tbody > tr.info > th,
  .ml-table > tfoot > tr.info > th {
    background-color: #d9edf7;
  }
  .ml-table-hover > tbody > tr > td.info:hover,
  .ml-table-hover > tbody > tr > th.info:hover,
  .ml-table-hover > tbody > tr.info:hover > td,
  .ml-table-hover > tbody > tr.info:hover > th {
    background-color: #c4e3f3;
  }
  .ml-table > thead > tr > td.warning,
  .ml-table > tbody > tr > td.warning,
  .ml-table > tfoot > tr > td.warning,
  .ml-table > thead > tr > th.warning,
  .ml-table > tbody > tr > th.warning,
  .ml-table > tfoot > tr > th.warning,
  .ml-table > thead > tr.warning > td,
  .ml-table > tbody > tr.warning > td,
  .ml-table > tfoot > tr.warning > td,
  .ml-table > thead > tr.warning > th,
  .ml-table > tbody > tr.warning > th,
  .ml-table > tfoot > tr.warning > th {
    background-color: #fcf8e3;
  }
  .ml-table-hover > tbody > tr > td.warning:hover,
  .ml-table-hover > tbody > tr > th.warning:hover,
  .ml-table-hover > tbody > tr.warning:hover > td,
  .ml-table-hover > tbody > tr.warning:hover > th {
    background-color: #faf2cc;
  }
  .ml-table > thead > tr > td.danger,
  .ml-table > tbody > tr > td.danger,
  .ml-table > tfoot > tr > td.danger,
  .ml-table > thead > tr > th.danger,
  .ml-table > tbody > tr > th.danger,
  .ml-table > tfoot > tr > th.danger,
  .ml-table > thead > tr.danger > td,
  .ml-table > tbody > tr.danger > td,
  .ml-table > tfoot > tr.danger > td,
  .ml-table > thead > tr.danger > th,
  .ml-table > tbody > tr.danger > th,
  .ml-table > tfoot > tr.danger > th {
    background-color: #f2dede;
  }
  .ml-table-hover > tbody > tr > td.danger:hover,
  .ml-table-hover > tbody > tr > th.danger:hover,
  .ml-table-hover > tbody > tr.danger:hover > td,
  .ml-table-hover > tbody > tr.danger:hover > th {
    background-color: #ebcccc;
  }
  .ml-table > tbody > tr > td {
    white-space: normal;
  }
  span.timePart {
    width: 40px;
    display: inline-block;
  }

  .tasaa-oikea, th.tasaa-oikea {
    text-align: right;
  }

  div.paging {
    text-align:center;
  }

  .paging .current,
  .paging .disabled,
  .paging a {
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    background-color: #F9A140;
    border: medium none;
    color: #FFF;
  }

  span.next a {
    border-radius: 5px;
  }
  span.prev a {
    border-radius: 5px;
  }
  .paging > span {
    display: inline-block;
    border: medium none;
  }
  .paging > span:hover {
    /*background: #efefef;*/
  }
  .paging .prev, .paging .prevDisabled {
    -moz-border-radius: 5px 0 0 5px;
    -webkit-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    background-color: #F9A140;
    border: medium none;
    color: #FFF;
  }
  .paging .next, .paging .nextDisabled {
    -moz-border-radius: 0 5px 5px 0;
    -webkit-border-radius: 0 5px 5px 0;
    border-radius: 0 5px 5px 0;
    background-color: #F9A140;
    border: medium none;
    color: #FFF;
  }
  .paging .disabled {
    color: #FFF;
    background-color: #C6C5C4;
  }
  .paging .disabled:hover {
    background: transparent;
  }
  .paging .current {
    background-color: #FFB86B;
    border: medium none;
    padding: 8px 12px;
    color: #FFF;
    font-weight: bold;
    vertical-align: baseline;
  }

  input.inlineInput {
    display: inline;
    margin-left: 10px !important;
  }

  div#filterContainer {
    text-align: right;
  }

  /* Poistaa background nuolen Rajaa selecteistä matkalaskuissa */
  select.groupingSelection {
    background:none !important;
  }
  select.groupingSelection {
    background:none !important;
  }
  select.groupingSelection {
    background:none !important;
  }
  input.shortInput {
    width: 70px;
    margin-right: 6px;
  }

  /* Matkalasku KM-korvaukset lisävalinnan tyylit, yliajettu chosen.min.css*/
  ul.chosen-choices {
    border-radius: 5px;
    border: 1px solid #BCBCBC;
    box-shadow: none !important;
  }
  .chosen-container-active .chosen-choices {
    border: 1px solid #BCBCBC !important;
  }
  .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    margin: 0px !important;
    padding: 6px 8px !important;
  }
  .chosen-container-multi .chosen-choices {
    background-image: none !important;
  }
  li.search-choice{
    margin: 3px !important;
    width: 292px;
  }
  .chosen-container.chosen-with-drop .chosen-drop {
   top: 35px !important;
 }
 #MatkalaskukmExtras_chosen {
   padding-top: 5px !important;
   padding-bottom: 5px !important;
 }

 /* fix inline-tyyleille, mistä ne tulee ei ole tietoa. -Textarea ei isone automaattisestit tällä. korvataan auto -> 24 -A */
 textarea#MatkalaskukuluDescription, #MatkalaskuprDescription {
  height: 24px;
}

table.ilmoitukset{
  margin-bottom: 8px;
	margin-top: -10px;
	margin-left: -10px;
	width: 104.3%;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}
th.ilmoituksetth{
	border: none;

	-webkit-border-top-left-radius: 8px;
	-webkit-border-top-right-radius: 8px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
th.tiedotevasen{
	border: none;

	-webkit-border-top-left-radius: 8px;
	border-top-left-radius: 8px;
}
th.tiedoteoikea{
	border: none;

	-webkit-border-top-right-radius: 8px;
	border-top-right-radius: 8px;
}
table.lista td.dimRivi {
  padding-bottom:15px !important;
}

td.alignRight {
  text-align: right;
}
table.lista td.plain {
  border: 0;
}

table.lista td.plain {
  font-weight: bold;
}

div#mealsContainer {
  display: block;
}

.tasaa-oikea, table.lista th.tasaa-oikea {
  text-align: right;
}

div.matkalasku-total {
 margin-top: 10px;
 font-size: 120%;
 font-weight: bold;
}
/*Matkalasku CSS päättyy*/

/*Uudemman IE:n korjauksia*/
@media screen\0 {
	a.button {
		padding-bottom: 11px;
		padding-top: 6px;
	}
}

/*IE korjaukset loppuu*/

.no-padding {
	padding: 0px;
}

div {
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.03em;
  /*font-size: 13px !important;*/
}
/*Tuntiseuranta*/
#tuntiseuranta-content {
  display: inline-block;
}

#tuntiseuranta-table {
  margin-top: 25px;
}

/*Työajanseurannassa oleva henkilöt-laatikko*/
#tageja {
  margin-left: 250px;
  border-radius: 5px;
  margin: 5px 0px;
  padding: 6px 9px;
  border: 1px solid #bcbcbc;
  display: inline-block;
  vertical-align: middle;
  background-color: #FFF;
  max-width: 280px;
}

.virhe_laatikko {
  display:none;
  border-color: #C66 !important;
  background-color: #FFDDDD !important;
  color: #000;
  /*padding: 10px;*/
  font-family: "Open Sans", sans-serif;
  border: 1px solid #666;
  background: #FFF;
  margin-bottom: 3px;
  text-align: center;
  /* font-size: 16px; */
  width: 100%;
  resize: none;
  /*font-weight: bold;*/
}


#selausNapit img {
    max-height: 25px;
    vertical-align: middle;
}

@font-face {
  font-family: 'password';
  font-style: normal;
  font-weight: 400;
  src: url(password.ttf);
}

input.usernamekey {
  font-family: 'password';
  padding: 15px 10px 10px 40px;
  max-width: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-image: url(/i/icon-username.png);
}

button.listiedn{
  padding: 2.5px 0px;
  vertical-align: middle;
  width: 85px !important;
  min-width: 85px !important;
  margin: 0px 0px 0px 6px !important;
}

span.listieds, input.listieds{
  width:194px !important;
}

span.listiedsv2, input.listiedsv2{
  width:142px !important;
}

span.listiedsv3, input.listiedsv3{
  width:178px !important;
}

.amarl{
  margin-left:0px !important;
}

img.listiedi{
  max-width: 35px !important;
  max-height: 35px !important;
}

img.listiedi2{
  max-width: 45px !important;
  max-height: 45px !important;
  margin-left:5px !important;
}

img.listiedi3{
  max-width: 45px !important;
  max-height: 45px !important;
}

.input-container span.message2 {
  margin: 0px 0px;
  display: inline-block;
  vertical-align: middle;
}
