* {
  box-sizing: border-box;
  font-family: "Carrois Gothic";
  font-size: 13pt;
  color: #555;
}
html {
  background-color: #e0e0e0;
}
body {
  /*	background-image: url("images/logo_transp_white.png");
    background-position: right top;
	background-repeat: no-repeat; */
  background-color: none;
  margin: auto;
  margin-bottom: 300px;
  padding: 0px;
}
.container {
  padding: 0px;
  width: 100%;
  background-color: #f8f8f8;
  opacity: 0.98;
  border-radius: 0px 0px 5px 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.alert {
  width: 100%;
  height: 20px;
  margin: auto;
  padding: 0px;
  background-color: none;
  color: #eee;
  font-size: 0.9em;
  text-align: center;
}
#logo {
  position: relative;
  top: 0px;
  width: 115px;
  float: right;
}

/* MUUTOKSET JA LISÄYKSET 28.12.2019 */

.form--extend,
.form--detract {
  text-align: left;
  width: fit-content;
  background-color: none;
  padding: 5px 5px;
  margin: 0 5px;
  font-size: 11pt;
  border-bottom: 1px solid #fff;
}

.form--extend {
  color: green;
}

.form--detract {
  color: red;
}

.form--extend:hover,
.form--detract:hover {
  border-bottom: 1px solid;
  cursor: pointer;
}

.form--detract:hover + .kmForm {
  border: 1px solid red;
}

.form--extend:hover:after {
  content: " +";
}

.form--detract:hover:after {
  content: " -";
}

.kmForm {
  max-height: 0px;
  overflow: hidden;
  border: solid #ddd;
  border-width: 0;
  margin: 10px 10px;
  padding: 10px 10px;
  background-color: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  transition: 0.5s;
}

.kmForm__open {
  border-width: 1px 1px 1px 1px;

  max-height: 1000px;
  transition: 0.5s;
  transition-timing-function: ease;
}

.kmForm--item {
  flex: 0 1 180px;
  margin: 10px;
}

.kmForm--item__wide {
  flex: 0 1 100%;
  margin: 10px;
}

.search {
  border: 1px solid #fff;
  margin: 20px 15px;
  padding: 20px;
  -webkit-box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.21);
  -moz-box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.21);
  box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.15);
}

.search--form {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
}

.search--form > input {
  margin: 10px auto;
  flex: 0 1 300px;
}
.events {
  border: 1px solid #fff;
  margin: 20px 15px;
  padding: 0px;
  -webkit-box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.21);
  -moz-box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.21);
  box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.15);
}

.events--header {
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  border: solid #ddd;
  border-width: 0 0px 1px 0px;
  background-color: #fefefe;
  list-style: none;
}

.events--header li {
  padding: 10px 15px;
  flex: 0 0 180px;
  background-color: none;
  color: #222;
  /* border: solid #ddd;
  border-width: 1px 1px 0 1px;
  border-radius: 0 10px 0 0; */
  text-align: center;
}

.event {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  background-color: #fefefe;
}

.event:hover {
  background-color: #f3f3f3;
}

.hidden {
  display: none;
}

.event--hours {
  flex: 0 0 180px;
  border: 0px solid gray;
  align-self: center;
  font-size: 40pt;
  text-align: center;
  color: #aaa;
}

.event--info {
  flex: 0 1 100%;
  list-style: none;
  border: solid gray;
  border-width: 0 1px 0 1px;
  padding: 10px 25px;
  line-height: 1.4em;
}

.events a {
  text-decoration: none;
}

.events a:hover {
  text-decoration: none;
  border-bottom: 1px solid;
}

.event--tools {
  flex: 0 0 180px;
  padding: 10px 30px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: stretch;
  list-style: none;
}

.event--tools li {
  flex: 0 1 auto;
  padding: 5px 5px;
  text-align: center;
  background-color: none;
  color: green;
  font-weight: normal;
}

.event--tools li:nth-of-type(2) {
  background-color: none;
  color: red;
}

#red {
  color: red;
}

#green {
  color: green;
}

.hourCard--trips {
   padding: 0px;
 }

 .hourCard--trip {
   position: relative;
   max-width: 100%;
   padding: 20px 10px 20px 10px;
   margin: 10px auto 30px auto;
   border: 1px solid #444;
   background-color: #fff;
   border-radius: 0px;
   display: flex;
   flex-flow: row wrap;
   justify-content: flex-start;
 }

 .hourCard--col {
   margin: 0 0px 40px 0px;
   flex: 0 1 120px;
   border-top: 1px solid #ccc;
   position: relative;
   font-size: 12pt;
   padding: 5px;
 }
 .hourCard--col:nth-of-type(6),
 .hourCard--col:nth-of-type(7) {
   flex: 0 1 360px;
 }


.tripDiary {
  padding: 10px;
}

.tripdiary > p {
  padding: 0 10px;
}
.tripRow {
  position: relative;
  max-width: 100%;
  padding: 35px 30px 60px 30px;
  margin: 30px auto;
  border: 1px solid #aaa;
  border-radius: 3px;
  display: flex;
  flex-flow: row wrap;
  /*display: grid;
  grid-template-columns:
  repeat(auto-fit, )
    100px
    repeat(auto-fit, minmax(90px, 1fr))
    300px
    repeat(4, minmax(100px, 1fr));
*/
  /*  grid-template-areas:
    "date started ended carID length"
    "locations locations locations locations locations"
    "project project project project project"
    "e-per-km person e-per-person e ."
    "modify . . . .";
*/

  /*gap: 40px 0px;
  justify-content: stretch;
*/
  justify-content: flex-start;

  -webkit-box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.21);
  -moz-box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.21);
  box-shadow: 2px 1px 21px -3px rgba(0, 0, 0, 0.15);
}

.tripRow > #green {
  position: absolute;
  bottom: 15px;
  right: 20px;
}
.tripCol {
  margin: 0 0px 40px 0px;

  flex: 0 1 120px;
  border-top: 1px solid #ccc;
  position: relative;
  font-size: 12pt;
  padding: 5px;
}
.tripCol:nth-of-type(6),
.tripCol:nth-of-type(7) {
  flex: 0 1 360px;
}
/*
.tripCol:nth-of-type(1) {
  grid-area: date;
}
.tripCol:nth-of-type(2) {
  grid-area: started;
}
.tripCol:nth-of-type(3) {
  grid-area: ended;
}
.tripCol:nth-of-type(4) {
  grid-area: carID;
}
.tripCol:nth-of-type(5) {
  grid-area: length;
}
.tripCol:nth-of-type(6) {
  grid-area: locations;
}
.tripCol:nth-of-type(7) {
  grid-area: project;
}
.tripCol:nth-of-type(8) {
  grid-area: e-per-km;
}
.tripCol:nth-of-type(9) {
  grid-area: person;
}
.tripCol:nth-of-type(10) {
  grid-area: e-per-person;
}
.tripCol:nth-of-type(11) {
  grid-area: e;
}
.tripCol:nth-of-type(12) {
  grid-area: modify;
  border: 0px;
}
*/
.tripCol:nth-of-type(12) {
  border: 0px;
}

.small-upper {
  position: absolute;
  top: -18px;
  left: 5px;
  font-size: 0.8em;
  color: #888;
}
@media screen and (max-width: 749px) {
  .events {
    margin: 40px 5px;
  }

  .events--header li {
    padding: 10px 15px;
    flex: 0 0 auto;
    color: #000;
  }

  .event {
    flex-flow: column nowrap;
    border: solid lightgray;
    border-width: 0px 0px 1px 0px;
  }

  .event--hours {
    display: none;
  }
  .event--info {
    flex: 0 1 100%;
    list-style: none;
    border: solid gray;
    border-width: 0px 0px 0px 0px;
    padding: 10px 25px;
    line-height: 1.4em;
  }
  .event--tools {
    flex: 0 1 auto;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: space-between;
    padding: 10px 35px;
  }
  .event--tools li {
    flex: 0 1 auto;
    padding: 5px 5px;
    text-align: center;
    background-color: none;
    color: green;
    font-weight: normal;
  }
}

/* MUUTOKSET JA LISÄYKSET 28.12.2019 PÄÄTTYY */

h2,
h3 {
  display: block;
  width: 100%;
  font-size: 1.25em;
  background-color: none;
  text-transform: none;
  margin: auto;
  padding: 0px 0px 0px 8px;
  text-align: left;
  border-top: 0px solid #aaa;
  border-radius: 8px;
}
h3 {
  padding: 0px;
}
.red {
  text-transform: uppercase;
  font-size: 1em;
  color: white;
  margin: auto;
  padding: 0px;
  background-color: #f24c4e;
}
.green {
  text-transform: uppercase;
  font-size: 1em;
  color: white;
  margin: auto;
  padding: 0px;
  background-color: #1b7b34;
}
.row {
  margin: 0px 0px 0px 0px;
  background-color: none;
}
.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  width: 100%;
  float: left;
  padding: 15px;
}

.padding-left {
  padding: 0px 0px 0px 10px;
}
.th {
  font-size: 0.8em;
  padding: 0px 0px 0px 10px;
  display: inline;
}
.th-center {
  font-size: 0.8em;
  margin: 0px;
  padding: 0px 5px 0px 5px;
}
.th-no-left-pad {
  font-size: 0.8em;
  padding: 0px 0px 0px 10px;
  display: inline;
  padding-left: 0px;
}
.projectcard {
  font-size: 1.5em;
  padding: 5px 10px 5px 10px;
}
.projectcardh {
  font-size: 1.25em;
  padding: 5px 10px 5px 10px;
}
table {
  background-color: #fff;
  width: 100%;
  margin: auto;
  padding: 10px;
  padding-bottom: 2px;
  border-top: 1px solid #aaa;
  border-left: 1px solid #aaa;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-radius: 6px;
}
.border {
  border-top: 1px solid #aaa;
  border-left: 1px solid #aaa;
}

.hourcard {
  border: 1px solid black;
  padding: 5px;
  margin: 0px;
  border-collapse: collapse;
}
.projectcardt {
  border-top: 0px solid #aaa;
  border-left: 0px solid #ccc;
  border-bottom: 1px solid #aaa;
  border-right: 0px solid #ccc;
  padding: 5px;
  margin: 0px;
  border-collapse: collapse;
  vertical-align: top;
}

.invisible {
  background-color: #f8f8f8;
  border: none;
}
tr.striped:nth-child(even) {
  background-color: #f0f0f0;
}
td {
  padding: 0px 0px 10px 0px;
  margin: 0px;
  border: 0px;
}
.nopadding {
  padding: 0px;
}
hr {
  border: 1px solid #ccc;
  width: 100%;
  clear: both;
}
input[type="text"],
input[type="date"],
input[type="password"],
textarea,
select {
  background-color: none;
  color: #f24c4e;
  border: 0px;
  border-bottom: 1px solid #444;
  border-left: 0px solid #444;
  padding: 3px 4px 3px 10px;
  width: 100%;
  border-radius: 0px 0px 0px 8px;
  resize: none;
}

.noborder {
  border: 0px;
}
textarea:focus,
select:focus,
input[type="text"]:focus {
  border-color: #ff0000;
}
ul.topnav {
  list-style-type: none;
  margin: 0 0 10px 0;
  padding: 0;
  overflow: hidden;
  background-color: #444;
  border-radius: 0px;
}
ul.topnav li {
  float: left;
}
ul.topnav li a {
  text-transform: uppercase;
  font-weight: bold;
  display: inline-block;
  color: #eee;
  text-align: center;
  padding: 24px 16px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1em;
}
ul.topnav li a:hover {
  background-color: #444;
  text-decoration: underline;
}
.color1 {
  background-color: #1b7b34;
}
.color2 {
  background-color: #eab126;
}
.color3 {
  background-color: #1f858f;
}
.color4 {
  background-color: #f24c4e;
}
.color5 {
  background-color: #333;
}
[class*="btn"] {
  display: inline;
  text-transform: uppercase;
  color: #eee;
  border: 0px;
  float: left;
  opacity: 1;
}
[class*="btn"]:hover {
  background-color: #555;
  opacity: 1;
}
[class*="btn_med"] {
  font-size: 0.9em;
  margin: 5px;
  padding: 5px 15px 5px 15px;
  border-radius: 2px;
  margin-bottom: 0px;
}
[class*="btn_sm"] {
  font-size: 0.7em;
  margin: 5px;
  padding: 5px 15px 5px 15px;
  border-radius: 2px;
  margin-bottom: 0px;
}
.btn_med_c1,
.btn_sm_c1 {
  background-color: #1b7b34;
}
.btn_med_c2,
.btn_sm_c2 {
  background-color: #1f858f;
}
.btn_med_c3,
.btn_sm_c3 {
  background-color: #eab126;
}
.btn_med_c4,
.btn_sm_c4 {
  background-color: #f24c4e;
}

ul.topnav li.icon {
  display: none;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 749px) {
  [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
  }
  #hidemobile {
    display: none;
  }
  ul.topnav li {
    display: none;
  }
  ul.topnav li.icon {
    float: right;
    display: inline-block;
    background-color: #444;
  }
}

@media screen and (max-width: 749px) {
  /*	[class*="col-"] {
		border: 1px solid black;
		padding-bottom: 0px;
		padding-top: 10px; 
		margin: 0px;
	} */
  ul.topnav.responsive {
    position: relative;
  }
  ul.topnav.responsive li.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  ul.topnav.responsive li {
    float: none;
    display: inline;
  }
  ul.topnav.responsive li a {
    display: block;
    text-align: left;
    background-color: #1d2731;
  }
}

@media only screen and (min-width: 750px) {
  /* For desktop: */
  body {
    max-width: 1400px;
  }

  .col-1 {
    width: 8.33%;
  }
  .col-2 {
    width: 16.66%;
  }
  .col-3 {
    width: 25%;
  }
  .col-4 {
    width: 33.33%;
  }
  .col-5 {
    width: 41.66%;
  }
  .col-6 {
    width: 50%;
  }
  .col-7 {
    width: 58.33%;
  }
  .col-8 {
    width: 66.66%;
  }
  .col-9 {
    width: 75%;
  }
  .col-10 {
    width: 83.33%;
  }
  .col-11 {
    width: 91.66%;
  }
  .col-12 {
    width: 100%;
  }
}

@media print {
   .pagebreak { page-break-before: always; } /* page-break-after works, as well */
}