body,
input,
select,
textarea,
button {	
	font-family: 'PT Serif', Arial, Helvetica Neue, Helvetica, sans-serif;
	background-color: white;
	color: black;
	font-weight: 100;
	font-size: 16px;
}

.sivu {	
	max-width: 1200px;
	position: relative;
    min-height: 100vh;           /* try 100dvh on mobile to avoid URL bar issues */
    display: flex;
    flex-direction: column;
	margin: auto;
    border: 0px solid #D4D4D6;
	overflow: hidden;
}


.kehys .sisaltokehys {
    /* sivun muuttuva alue */
    border: 0px solid #5697D1;
	padding: 10px;
}

.kehys {
    border: 0px solid gray;
    max-width: 980px;
    min-width: 100px;
    position: center;
    min-height: 97dvh;           /* try 100dvh on mobile to avoid URL bar issues */
    /* height: 100dvh; */    /* optional: modern mobile fix */
    display: flex;
    flex-direction: column;    margin-left: 2px;
    padding: 1px;
    background-color: transparent;
}

.img-fluid {
	padding: 8px;
	max-height: 140px;
}

#ylareuna {
	background-color: white;
	/*max-height: 240px;*/
	margin-top: 0px;
	border-bottom: 5px solid #006e00;
}

#ylareuna,
.alareuna {
  flex: 0 0 auto;
}

/* Middle section grows to fill remaining space and scrolls */
.sisaltokehys {
  flex: 1 1 auto;          /* take the leftover space */
  min-height: 0;           /* IMPORTANT: allows flex child to shrink for overflow */
  overflow-y: auto;          /* only this area scrolls */
  overflow-x: hidden;
}
.menurivi {
	margin-left: 10px;
    max-width: 800px;
    text-align: right;
}

.otsikko {
    font-weight: bold;
    font-size: large;
    font-weight: bold;
    background-color: transparent;
    color: #3c3c3c;
}

.otsikkovahva {
    font-weight: bold;
    font-size: larger;
    background-color: transparent;
    color: #3c3c3c;
}
.vahvistusaika {
    background-color: transparent;
	color: #3c3c3c;
    border-style: none;   
	padding: 6px;
}

.syotto {
	color: #3c3c3c;
	background-color: white;
	margin-left: 10px;
	border-radius: 4px 4px;
}

.keski {
    margin-left: 0px
}

.pudotusvalikko {
    width: 200px;
    font-weight: normal;
    background-color: white;
    color: black;
    margin-left: 10px;
}

.labelIlmoitus {
	color: #505050;
	max-width: 90%;
	min-width: 100px;
	font-weight: bolder;
	text-align: center;
	font-size: smaller;
	margin-top: 10px;
	margin-bottom: 10px;
    
}
.ilmobox {
	background-color: white;
	border-style: solid;
	border-width: thick;
	border-color: #045b04;
	padding: 5px;
}
.labelHuomautus {
	color: #505050;
	font-weight: normal;
	padding: 5px;
	padding-bottom: 0px;
	margin-bottom: 0px;
}

.labelHuomautusKesk {
	color: #505050;
	font-weight: normal;
	font-size: 1.2em;
	text-align: center;
	min-width: inherit;
	padding: 4px;
}
/* pbNappula-tyylit perityv�t t�st� luokasta */
[class*="pbNappula"] {
    margin: 4px;
    min-width: 165px;
    background-color: #045b04;
    color: #efeeec;
	border: 0px solid #1e448d;
	border-radius: 0px;
	padding: 12px 6px 12px 6px;
	font-size: large;
	/* box-shadow: 2px 2px 4px rgba(0,0,0,0.5); */
    align-self: flex-end;
}

.pbNappulaMenu.pbNappulaMenuLippu {
    border: 1px dotted transparent !important;
    min-width: 31px !important;
    background-color: transparent;
}

.pbNappulaMenuLippu:hover {
	border: 1px dotted #726e6e !important;
    background-color: transparent !important;
    border-radius: 5px;
}

/* vap.ajat taulukon nappula */
.pbNappula {
    margin: 5px;
    min-width: 120px;
}

.pbNappula:hover {
	background-color: #0b4700;
}

.pbNappulaIso {
	font-size: large;
	margin: 10px;
	max-width: 470px;
}

.pbNappulaIso:hover {
	background-color: #0b4700;
}

.pbNappulaMenu {
    margin: 6px;
    min-width: 115px;   
	border: 2px solid #045b04;
}

.pbNappulaMenu:hover {
	background-color: #0b4700;
}


.pbNappulaMiksi {
	margin: 2px;
	background-color: #045b04;
	color: #efeeec;
	padding: 4px 1px 4px 1px;
	align-self: flex-end;
	min-width: 300px;
	border: 3px solid #045b04;
    font-size: medium;
}

.pbNappulaMiksi:hover {
	background-color: #0b4700;
	/* box-shadow: 3px 3px 4px rgba(0,0,0,0.5); */
}

.pbNappulaMiksiValittu {
    background-color: #0b4700;
	margin: 2px;
	color: white;
	padding: 4px 1px 4px 1px;
	align-self: flex-end;
	min-width: 300px; 
	font-weight: 500;
    font-size: medium;
	border: 3px solid #006e00;
}

.pbNappulaMiksiValittu:hover {
    background-color: #045b04;
	border: 3px solid #0b4700;
}

.pbNappulaMiksiKamp {
    color: gold;
    font-style: italic;
    font-weight: bold;
    border-style: solid;
 }

.tpteksti {
    min-width: 300px;
    font-size: xx-large;
	padding: 6px;
    margin-bottom: 20px !important;
    /*background-color: rgba(4, 91, 4, .8);*/
    background-color: #045b04;
    color: #FFFFFF;
    border-style: solid;
    border-color: #0b4700;
    border-width: 2px;
    border-radius: 5px;
    align-self: center;
}


.pbNappulaVid {
	margin: 4px;
	min-width: 200px;
	background-color: #045b04;
	color: #efeeec;
	padding: 12px 6px 12px 6px;
	align-self: flex-end;
	border: 3px solid transparent;
}

.pbNappulaVid:hover {
	background-color: #0b4700;
	/* box-shadow: 3px 3px 4px rgba(0,0,0,0.5); */
}

.pbNappulaVidValittu {
    background-color: #0b4700;
	border: 3px solid #006e00;
	margin: 4px;
	color: white;
	padding: 12px 6px 12px 6px;
	align-self: flex-end;
	min-width: 200px;
	font-weight: bold;
}

.pbNappulaAnonyymi {
    /* suoraan vaipaiden aikojen katseluun */
	vertical-align: middle;
	font-weight: bold;
	min-width: 100px;
	max-width: 75%;
	margin: auto;
	margin-top: 0px;
	background-color: #045b04;
	color: #efeeec;
	border-radius: 0px;
	border: 0px solid white;
    margin-top: 12px;
	padding: 12px;
	/* box-shadow: 3px 3px 4px rgba(0,0,0,0.5); */
}

.pbNappulaAnonyymi:hover {
	background-color: #0b4700;
}

/* toimipistevalintanappulat */
.pbEiValittu {
	margin: 5px;
	min-width: 150px;
	background-color: #2EDAE8;
	color: #FFFFFF;
	border: 0px solid white;
	border-radius: 25px;
	padding: 6px;
}

.pbEiValittu:hover {
	background-color: #045b04;
}

.pbValittu {
    margin: 5px;
    min-width: 150px;
    background-color: #0b4700;
    color: #FFFFFF;
    border-radius: 25px;
    padding: 6px;
}
.pbValittu:hover {
	background-color: #045b04;
}

.txtotsikko {
    font-weight: bold;
    font-size: x-large;
    text-transform: uppercase;
    color: buttontext;
    background-color: #505050;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    border-bottom-style: none;
}

.yritys {
    font-weight: bold;
    font-size: 20px;
    font-family: 'Comic Sans MS', Sans-Serif;
}

.varaaja {
    font-size: x-small;
    font-Weight: bold;
    text-align: right;
    /*width: 590px;*/
}

.labelError {
    color: white;
    background-color: red;
}

.nappularivi {
    vertical-align: middle;
    position: absolute;
    right: 5px;
}

.alareuna {
	margin-top: 20px;
    border-top: 2px solid #006e00;
	padding: 15px;
	vertical-align: middle;
	text-align: center;
	font-size: small;
	margin: 0px;
	width: 100%;
    aspect-ratio: 441 / 92 !important;
	color: black;
    text-shadow: 2px 2px 5px rgb(255, 255, 255);
	/*background-color: #045b04;	*/
    background-image: url(/Suumestari/Kuvat/As/Suumestari_bottom.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}



.alareuna a, table.mGrid a {
    color: #006d00 !important;
}

.av_otsikko {
    font-size: larger;
    color: gray;
    font-family: Verdana, Sans-Serif;
}

.pbInfo {
    font-size: small
}


.roundedPanel {
    width: 300px;
    background-color: red;
    color: white;
    font-weight: bold;
}

.lisatietoikkuna {
    background-color: White;
    color: Black;
}

/*  kalenterin tyylit */

.kalenteri {
    background-color: white;
    width: 250px;
    color: black;
}

.kalenteri a {
    text-decoration: none;
}

.kalenteri .kalenteriTitle {
    font-weight: bold;
    background-color: #cec9c9;
}

.kalenteri .kalenteriNextPrev {
    text-align: center;
}

    .kalenteri td.kalenteriSelector {
          background-color: #67B7C3;
    }

.kalenteri .kalenteriDay a,
.kalenteri .kalenteriSelector a,
.kalenteri .kalenteriNextPrev a {
    display: block;
    line-height: 18px;
}


/* --- gridin tyyli */

.mGrid {
    max-width: 1000px;
    background-color: #fff;
    border: solid 1px #525252;
}

.mGrid td {
    padding: 2px;
    border: solid 1px #c1c1c1;
    color: Black;
}


/* otsikko */

.mGrid th {
    padding: 4px 2px;
    color: #fff;
    background: #006e00;
    border-left: solid 1px #525252;
}

.mGrid .alt {
    background: #efebeb;
}

.mGrid .pgr {
    background: #dddddd;
}

.mGrid .pgr table {
    margin: 5px 0;
}

.mGrid .pgr td {
    border-width: 0;
    padding: 0 6px;
    border-left: solid 1px #666;
    font-weight: bold;
    color: #fff;
    line-height: 12px;
}

.mGrid .pgr a {
    color: #666;
    text-decoration: none;
}

.mGrid .pgr a:hover {
    color: aqua;
    text-decoration: none;
}

.Pikahaku {
    border-width: initial;
    border: solid;
    font-weight: normal;
    color: cornflowerblue;
    display: flex;
    align-items: center;
    justify-content: center;
 }

.piilo {
    width: 1px;
    font-size: xx-small;
    padding: 0px;
    border:none;
    color: white;
}

/* varauksen tiedot taulukko*/
.varaustxt {
    font-weight: normal;
    font-size: inherit;
    font-family: Monospace, 'Courier New';
}

.vahvistusaikaArvo {
    font-weight: bold;
    font-size: larger;
    padding: 10px;
}

.card-image-right {
	margin-top: 20px;
	
	
}

.card-footer {
    background-color: inherit;
    border: none;
}

#vapaa, #vapaa2 {
	padding: 8px;
	margin-bottom: 10px;
	background-color: white;
	color: #045b04;
}

div#vapaa > div.row > div[class^="col"]:nth-child(2):has(img[src*="NoImage"]), div#vapaa2 > div.row > div[class^="col"]:nth-child(2):has(img[src*="NoImage"]) {
	display: none;
}

#PikahakuXX {
	margin-top: 20px;
}

#ctl00_imgLogo {
    aspect-ratio: 7 / 2 !important;
}

span[id$="_TitteliLabel1"]{
    text-transform: capitalize;
}