﻿/* Stylesheet for vaski kasittelytiedot */
.VaskiWrapper2020 #leftnavigation { display: none !important; }

@media (min-width: 992px) {
    .col-lg-9 { width: 100%;}
}
.header { margin-bottom: 20px }
#maincontent .edk-document-type { float: left; margin: 7px 15px 0 0; }

#maincontent h1.edk-asiakirja-otsikko { margin: 0 0 15px 0; line-height: 18px; padding-top: 10px;}
#maincontent h1.edk-asiakirja-otsikko .edk-asiatyyppinimi, 
#maincontent h1.edk-asiakirja-otsikko .edk-eduskuntatunnus {line-height: 32px; }
#maincontent h1.edk-asiakirja-otsikko .edk-nimeketeksti { font-size: 1.1rem; }
#maincontent h2 { margin-top: 20px; text-transform: lowercase; }
#maincontent h2::first-letter { text-transform: capitalize; }
#maincontent h3 { border-top: 2px solid #f3f4f7; padding-top: 15px; margin-bottom: 15px }
#maincontent .edk-title-h4 { margin: 0; padding: 0; font-family: 'SourceSans3', var(--fnt-fallback-sansserif); font-size: 0.875rem; line-height: initial; }

#maincontent .no-t-margin {margin-top: 0;}
#maincontent .no-b-margin {margin-bottom: 0;}
#maincontent .no-t-padding {padding-top: 0;}
#maincontent .no-b-padding {padding-bottom: 0;}
#maincontent .no-t-border {border-top: 0;}    

.edk-pienialkukirjain { text-transform: lowercase; }
dt { margin-top: 15px; }
.ViiteTeksti a { display: initial; width: auto; }  

.edk-section-value { display: block; margin-bottom: 15px; }
.edk-asiantuntijalausunnot { display: block; margin-top: 20px; margin-bottom: 20px; }
.edk-valiokuntakasittely-kaikkivaiheet { margin-top: 20px; }
.edk-valiokuntakasittely-kaikkivaiheet p { margin: 0 }
.edk-accordion-content { margin-top: 12px; padding-bottom: 13px; }
dl.edk-asiantuntijat { margin: 0; padding: 0 0 0 20px; }
dl.edk-asiantuntijat dt { font-weight: 400; margin: 0 0 0 -20px; }
dl.edk-asiantuntijat dd { display: list-item; list-style-type: disc; }
.edk-asiasanat a { margin: 0 10px 10px 0; padding: 5px 15px 5px 15px; border: 1px solid var(--clr-blue); display: inline-block; }

/* Timeline of Parliamentary Matter Progress - Desktop */
#edk-timeline-container {
  width: 100%;
  margin-top: 20px;
}

#edk-timeline {
	counter-reset: test 0;
  width: 100%;
  transition: all 1s;
  margin:0;
  padding:0;
  display:flex;
  justify-content: space-between;
}

#edk-timeline li {
  list-style:none;
  position: relative;
  text-align:center;
  flex-grow: 1;
  flex-basis: 0;
  padding: 0 5px;
}

#edk-timeline li:before {
  display:block;
  border-radius:50%;
	counter-increment: test;
	content: counter(test);		
	width: 2rem;
	height: 2rem;
	border: 1px solid #114D9D;
	text-align: center;
	line-height: 2rem;
	margin: 0 auto 10px auto;
	background: #FFFFFF;
	color: #000; 
}
#edk-timeline li:not(:last-child)::after {
    content: "";
    width: calc(100% - 2rem);
    border: 1px solid #114D9D;
    display: block;
    margin: 0;
    position: absolute;
    top: 1rem;
    left: calc(50% + 1rem);
}
#edk-timeline li:first-child {
    padding-left: 0;
	margin-left: -20px;
}
#edk-timeline li:last-child {
    padding-right: 0;
	margin-right: -20px;
}

/*#edk-timeline li.stage-complete.latest-stage { font-weight: 600;  } 
#edk-timeline li.stage-complete.latest-stage::before{ background: #D6E7F5; }*/
/*#edk-timeline li.stage-complete.latest-stage::before,*/
#edk-timeline li.stage-complete::before{ background: #D6E7F5; }
/*#edk-timeline li:hover::before{ background: #FFFFFF; color: #000; }*/
/*#edk-timeline li.stage-complete.latest-stage:hover::before,*/
#edk-timeline li.stage-complete:hover::before {
  background: #EFEFF0;		
  cursor: pointer;
}

/* Timeline of Parliamentary Matter Progress - Screens less than 992px wide */
@media screen and (max-width: 992px) {
	#edk-timeline li {
		font-size: 0.75rem;
	}
	#edk-timeline li::before {
		width: 1.75rem;
		height: 1.75rem;		
		line-height: 1.75rem;
	}
	#edk-timeline li:not(:last-child)::after {
		width: calc(100% - 1.75rem);
		top: 0.875rem;
		left: calc(50% + 0.875rem);
	}
	
}

/* Timeline of Parliamentary Matter Progress - Screens less than 768px wide */
@media screen and (max-width: 768px) {
	#edk-timeline li {
		font-size: 0.625rem;
	}
}

@media screen and (max-width: 444px) {
	#edk-timeline li a,
	#edk-timeline li span {
		display: none;
	}
	#edk-timeline li::before {
		width: 1.5rem;
		height: 1.5rem;		
		line-height: 1.5rem;
	}
	#edk-timeline li:not(:last-child)::after {
		width: calc(100% - 1.5rem);
		top: 0.75rem;
		left: calc(50% + 0.75rem);
	}
}

.edk-clearer {
	clear: both;
}