body {
	background: #ececec;
	background-image: url(kuvat/asiakaskauppatausta1.jpg);
	background-size: cover;
	margin: 0px;
	font-family: "Roboto", sans-serif;
	background-attachment: fixed;
	font-size: 11pt;
}
h1, h2, h3 {
	font-family: "Roboto", sans-serif;
	font-weight: 700;
}
#kirjautumislomake {
	width: 80%;
	margin: auto;
}
#kirjautumislomake label {
	display: block;
	text-align: left;
}
#kirjautumislomake #sposti, #kirjautumislomake #ss {
	display: block;
	width: 100%;
	padding: 10px 5px;
	font-size: 12pt;
	background: #ececec;
	border: 0px;
	margin-bottom: 10px;
}
#kayttaja_yhteyshenkilo {
	position: absolute;
	top: 0px;
	right: 25px;
	background: #000;
	color: #fff;
	width: 250px;
	box-sizing: border-box;
	padding: 10px;

}
#kayttaja_yhteyshenkilo a {
	text-decoration: none;
	color: red;
}
table.lista {
	width: 100%;
	border-spacing: 0px;
}
table.lista th,table.lista td {
	padding: 3px;
}
table.lista thead th {
	border-bottom: 1px solid black;
}
table.lista tfoot th,table.lista tfoot td {
	border-top: 1px solid black;
	font-weight: bold;
}
table.lista tbody tr:nth-child(even) {
	background: #ececec;
}
#taustakuvien_esikatselualue {
	overflow: hidden;
	padding: 2px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.taustakuvan_esikatselu {
	display: block;
	float: left;
	width: 200px;
	height: 150px;
	background-size: auto 150px;
	margin-bottom: 15px;
	cursor: pointer;
	border: 1px solid #ececec;
	box-shadow: 1px 1px 2px 1px black;
}
#ylapalkin_variteemat {
	overflow: hidden;
	padding: 2px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
#ylapalkin_variteemat .varimalli {
	width: 110px;
	height: 70px;
	float: left;
	border: 1px solid #ececec;
	box-shadow: 1px 1px 2px 1px black;
	margin-bottom: 10px;
	cursor: pointer;
}
#ylapalkin_variteemat .varimalli .vari1 {
	width: 100%;
	line-height: 50px;
	text-align: center;
	font-size: 16pt;
}
#ylapalkin_variteemat .varimalli .vari2 {
	width: 100%;
	height: 20px;
	text-align: center;
}
.asiakkaan_oma_korostus {
	display: inline-block;
	width: auto;
	background: red;
	color: white;
	margin: 0px;
	padding: 5px;
}
.pieni_tuotekortti_asiakkaan_oma_korostus {
	position: absolute;
	width: 176px;
	margin: 0px;
	text-align: center;
	font-size: 10pt;
}
input.ostoskorinappi {
	padding: 5px 10px !important;
	background-aimage: url(kuvat/ikoni_ostoskori.png);
	background-position: left 5px center;
	background-repeat: no-repeat;
	background-size: 19px;
	border: 0px;
	border-radius: 4px;
	font-family: "Roboto", sans-serif !important;
	font-size: 11pt !important;
	color: white;
	background-color: black; 
	cursor: pointer;
	transition: all 0.2s;
}
input.ostoskorinappi:hover {
	box-shadow: 0px 0px 2px 2px black;

}
.tuotekortti_jako-osa {
	border: solid gray;
	border-width: 0px 0px 1px 0px;
	width: 400px;
	padding: 0px 0px 5px 0px;
	margin-bottom: 10px;
}
#hallinnan_paavalikko a {
	text-decoration: none;
	line-height: 1.5;
	color: black;
}
#hallinnan_paavalikko a:hover {
	text-decoration: underline;
}
.hallintalomake textarea {
	font-family: "Roboto Condensed", arial, sans, serif;
	font-size: 11pt;
}
th {
	text-align: left;
}
table.henkiloraporttitaulukko td {
	font-size: 10pt;
}
td.oikea, th.oikea {
	text-align: right;
}
tr.tumma {
	background: #ececec;
}
#taustaharso {
	display: block;
	background-color:rgba(0,0,0,0.7);
	position: fixed;
	z-index: 3000;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	text-align: center;
}
#taustaharso h1 {
	color: black;
}
#taustaharso_teksti {
	width: 600px;
	min-height: 200px;
	margin: 0px 0 0 -300px;
	position:absolute;
	left: 50%;
	top: 200px;
	background: white;
	padding: 10px 10px 30px 10px;
	border: 1px solid black;
	box-shadow: 0 0 10px 2px black;
	overflow: auto;
}
#sivusto {
	background: none;
	width: 80%;
	max-width: 1600px;
	
	margin: auto;
	border-radius: 0px 0px 10px 10px;
	box-shadow: 0 0 10px 0px black;
	border: solid black;
	border-width: 0px 1px 1px 1px;
}
#ylapalkki {
	height: 150px;
	background-color: rgba(255, 255, 255, 0.7);
	color: black;
	padding: 25px;
	background-image: url(kuvat/ylakuvio.png);
	background-position: center right 100px;
	background-size: 400px;
	background-repeat: no-repeat;
	position: relative;
}
#ylapalkki h1 {
	margin: 0px;
	font-size: 20pt;
	line-height: 35px;
	font-weight: normal;	
}
#ylapalkki h2 {
	color: black;
	margin: 0px;
	font-size: 12pt;
	font-weight: normal;
	line-height: 25px;
}
#ylavalikko {
	background: black;
	background-color: rgba(0, 0, 0, 0.9);
	padding: 0px 10px 0px 5px;
	overflow: hidden;
	position: absolute;
	margin-left: 0px;
	margin-top: -50px;
	height: 50px;
	box-sizing: border-box;
	width: 80%;
	max-width: 1600px;
}
#ylavalikko a {
	font-size: 13pt;
	display: block;
	float: left;
	font-weight: normal;
	text-decoration: none;
	color: white;
	padding: 0px 10px;
	line-height: 50px;
	transition: all 0.5s;
}
#ylavalikko a.hallintalinkki {
	background: purple;
	float: right;
	border-left: 1px solid black;
}
#ylavalikko a:hover {
	background-color: rgba(255, 255, 255, 0.5);
}
#sisaltoalue {
	background: white;
	min-height: 400px;
	padding: 10px;
	overflow: hidden;
}
#sisaltoalue h1 {
	font-size: 16pt;
	color: black;
}
#sisaltoalue h2 {
	font-size: 13pt;
	color: gray;
	font-weight: 700;
}
#sisaltoalue h3 {
	font-size: 12pt;
	color: gray;
}
#alareuna {
	text-align: center;
	font-size: 10pt;
	color: white;
	font-weight: normal;
	text-shadow: 0px 0px 4px #000000;
	margin: 5px 0px;
}
.virheilmoitus {
	display: block;
	padding: 10px;
	font-size: 11pt;
	color: red;
	background: #ececec;
	text-align: center;
}
.ilmoitus {
	display: block;
	padding: 10px;
	font-size: 11pt;
	color: black;
	background: #ececec;
	text-align: center;
}
#tuotehaku_hallintakayttajalle {
	border: 2px solid purple;
	margin-bottom: 20px;
}
#hallintahakusanat {
	margin-right: 5px;
}
#hallintahakusanat , #hallintahakunappi {
	padding: 5px;
}
#tuotehaku_hallintakayttajalle_sisalto {
	padding: 10px;
}
#tuotehaku_hallintakayttajalle h1 {
	background: purple;
	color: white;
	font-size: 10pt;
	font-weight: normal;
	margin: 0px;
	margin-bottom: 5px;
	padding: 5px 0px 5px 10px;
}
#tuotehaku_hallintakayttajalle h2 {
	color: purple;
	font-size: 11pt;
	margin: 0px;
	margin-bottom: 5px;
	margin-top: 15px;
}
#hallintakayttajan_tuotehakulomake {
}
#hallintakayttajan_tuotehaun_osumat table {
	width: 100%;
	border-spacing: 0px;
	cell-padding: 5px;
}
#hallintakayttajan_tuotehaun_osumat table td {
	cursor: pointer;
}
#hallintakayttajan_tuotehaun_osumat table th, #hallintakayttajan_tuotehaun_osumat table td {
	padding: 3px;
}
#hallintakayttajan_tuotehaun_osumat table tr:nth-child(even) {
	background: #ececec;
}
#asiakaskaupan_tuoteselausteksti {
	font-style: italic;
	color: black;
}
.tuotelistan_valiotsikko {
	clear: both;
	margin-top: 20px;
	padding: 5px 0px;
	border: dashed black;
	border-width: 0px 0px;

}
.pieni_tuotekortti {
	border-radius: 2px;
	width: 186px;
	height: 315px;
	margin-right: 10px;
	margin-bottom: 10px;
	display: block;
	float: left;
	cursor: pointer;
	transition: all 0.5s;
	box-shadow: 0 0 2px 1px gray;
	margin: 5px;
	position: relative;
}
.pieni_tuotekortti:hover {
	box-shadow: 0 0 2px 1px black;
}
.pieni_tuotekortti_kuva_alue {
	height: 186px;
	text-align: center;
	vertical-align: middle;
}
.pieni_tuotekortti_kuva_alue img {
	height: 186px;
	width: 186px;
	object-fit: contain;
	margin: auto;
}
.pieni_tuotekortti_hinta {
	position: absolute;
	display: block;
	width: 150px;
	height: 25px;
	margin-top: 35px;
	margin-left: 21px;
	line-height: 25px;
	background: white;
	color: black;
	font-size: 18pt;
	text-align: right;
	bottom: 18px;
}
.pieni_tuotekortti_hinta2 {
	position: absolute;
	font-size: 8pt;
	display: block;
	width: 150px;
	height: 25px;
	margin-top: 55px;
	margin-left: 20px;
	line-height: 25px;
	color: #444444;
	text-align: right;
	bottom: 0px;
}
.pieni_tuotekortti_tekstialue {
	height: 80px;
	padding: 10px;
	border-radius: 0px 0px 10px 10px;
	overflow: hidden;
}
.pieni_tuotekortti_tekstialue_koodi {
	font-size: 10pt;
	color: gray;
}
.pieni_tuotekortti_tekstialue_kuvaus {
	font-size: 11pt;
	word-break: break-all;
}
#iso_tuotekortti_kuva_alue {
	display: block;
	width: 300px;
	float: right;
	text-align: center;
}
#iso_tuotekortti_kuva_alue img {
	max-width: 250px;
}
.iso_tuotekortti_rivi {
	overflow: hidden;
	margin-bottom: 10px;
}
.iso_tuotekortti_sarake1 {
	display: block;
	float: left;
	width: 140px;
	padding: 5px;
}
.iso_tuotekortti_sarake2 {
	display: block;
	float: left;
	width: 250px;
}
#iso_tuotekortti h1 {
	margin-bottom: 0px;
}
.iso_tuotekortti_sarake2 input.maarakentta {
	width: 30%;
}
.iso_tuotekortti_sarake2 .tuotemaaramuutosnappi { 
	cursor: pointer;
	width: 30px;
	height: 30px;
	padding: 0px;
	margin: 0px;
	border: 0px;
	border-radius: 2px;
	margin-left: 3px;
	background: #ececec;
	color: #444444;
	display: inline-block;
	vertical-align: middle;
	font-size: 18pt;
	line-height: 24px;
	text-align: center;
	vertical-align: bottom;
}
.iso_tuotekortti_sarake2 input, .iso_tuotekortti_sarake2 select, .iso_tuotekortti_sarake2 textarea {
	box-sizing:content-box;
	padding: 4px;
	width: calc(100% - 10px);
	font-family: "Roboto", sans-serif;
	font-size: 11pt;
}
.iso_tuotekortti_sarake2 input, .iso_tuotekortti_sarake2 textarea {
	width: calc(100% - 14px);
}
#lisaa_ostoskoriin_nappi {
	width: auto;
	height: 24px;
	line-height: 20px;
	padding: 5px 10px 5px 35px;
	background-color: gray;
	background-image: url(kuvat/ikoni_ostoskori.png);
	text-align: left;
	color: white;
	border: 0px;
	border-radius: 5px;
	background-size: auto 18px;
	background-position: 8px 8px;
	background-repeat: no-repeat;
	text-decoration: none;
	font-size: 12pt;
	margin: 5px 0px;
	cursor: pointer;
}

a.lisaa_uusi_rivi {
	font-size: 10pt;
	display: inline-block;
	line-height: 18px;
	width: auto !important;
	height: 18px;
	padding: 5px 10px 5px 30px !important;
	background-color: gray;
	border-radius: 5px;	
	color: white;
	background-image: url(kuvat/ikoni_lisaa.png);
	background-size: 18px 18px;
	background-position: 5px 5px;
	background-repeat: no-repeat;
	text-decoration: none;

}
.iso_tuotekortti_sarake2 textarea {
	height: 50px;
}
input.vain_luku {
	border: 0px;
}	
#iso_tuotekortti_koodi {
	color: gray;
	font-size: 10pt;
	margin-bottom: 15px;
}
.ostoskori_rivi {
	clear: both;
	overflow: hidden;
}
.ostoskori_rivi div {
	padding: 5px;
}
.ostoskori_otsikkorivi {
	font-weight: bold;
}
.ostoskori_tilaustietorivi {
	height: 30px;
}
.ostoskori_sarake1 {
	display: block;
	float: left;
	width: 100px;
}
.ostoskori_sarake2 {
	display: block;
	float: left;
	width: 300px;
}
.ostoskori_sarake3 {
	display: block;
	float: left;
	text-align: right;
	width: 80px;
}
.ostoskori_sarake4 {
	display: block;
	float: left;
	text-align: right;
	width: 120px;
}
.ostoskori_sarake5 {
	display: block;
	float: left;
	text-align: right;
	width: 120px;
}
.ostoskori_sarake6 {
	display: block;
	float: left;
	padding-left: 10px;
	width: 100px;
}
.ostoskori_sarake6 a {
	font-size: 10pt;
	color: blue;
	text-decoration: none;
}
.ostoskori_sarake6 img {
	height: 18px;
}
.ostoskori_sarake2b {
	display: block;
	float: left;
	width: 390px;
	font-style: italic;
	color: gray;
}
.ostoskori_pieni_sarake {
	font-size: 9pt;
}
.ostoskori_rivi_tumma {
	background: #ececec;
}
#asiakaskauppa_lisaa_tuote_tuoteryhmat {
	display: block;
	clear: both;
	overflow: hidden;	
}
#asiakaskauppa_lisaa_tuote_tuoteryhmat a {
	padding: 5px;
	background: #ececec;
	margin-right: 5px;
	display: block;
	float: left;
	margin-bottom: 5px;
	text-decoration: none;
}
.sarakejakoalue {
	width: 100%;
	overflow: hidden;
}
.sarake50 {
	width: 50%;
	float: left;
}
#tilauslomake .ostoskori_tilaustietorivi {
	height: auto;
} 
#tilauslomake input {
	box-sizing: border-box;
	padding: 5px;
}

/* MOBIILINÄKYMÄN TYYLIT JA POIKKEUKSET */
@media only screen and (max-width: 900px) {
	html, body {
		background-size: 100% auto;
	}
	.ei_mobiili {
		display: none;
	}
	#tuotehaku_hallintakayttajalle table {
		overflow-x: auto; 
		display: block;
	}
	#sivusto {
		width: 100%;
		border-left: 0px;
		border-right: 0px;
		border-radius: 0px;

	}
	#kayttaja_yhteyshenkilo {
		width: 40%;
		right: 0px;
		margin-left: auto;
	}
	#ylapalkki {
		height: auto;
		background-size: cover;
		color: black;
		background-color: none;
		background-image: none;
		background-color: rgba(255, 255, 255, 0.80);
	}
	#ylapalkki h1 {
		margin: 0px;
		font-size: 16pt;
		line-height: 35px;
	}
	#ylapalkki h2 {
		color: gray;
		font-size: 12pt;
	}
	#ylavalikko {
		position: relative;
		margin: 0px;
		background: black;
		padding: 0px 5px;
		overflow: hidden;
		border: solid gray;
		border-width: 1px 0px;
		position: relative
		margin-left: -3px;
		margin-top: 0px;
		width: 100%;
	}

	#iso_tuotekortti_kuva_alue {
		float: none;
		width: 100%;
	}
	#iso_tuotekortti_kuva_alue img {
		max-width: 100%;
		width: 100%;
	}
	#taustaharso_teksti {
		width: 80%;
		height: 80%;
		margin: 0px;
		position: fixed;
		left: 10%;
		top: 10%;
		background: white;
		padding: 0px;
		border: 0px solid black;
		box-shadow: 0 0 0px 0px black;
	}
	#taustaharso_teksti p {
		padding: 10px;
	}
	#taustaharso input {
		height: 30px;
		padding: 5px;
		margin-top: 10px;
		font-size: 12pt;
	}
	#iso_tuotekortti input, #iso_tuotekortti select, #iso_tuotekortti textarea  {
		font-size: 14pt;
		width: 100%;
		padding: 10px;
	}
	.ostoskori_sarake1, .ostoskori_otsikkorivi {
		display: none;

	}
	.ostoskori_sarake2 {
		font-weight: bold;
	}
	.ostoskori_sarake2 {
		width: 100%;
		line-height: 2;
	}
	.ostoskori_sarake3 {
		text-align: left;
		width: 20%;
	}
	.ostoskori_sarake4 {
		width: 25%;
	}
	.ostoskori_sarake5 {
		width: 20%;
	}
	.ostoskori_sarake6 {
		width: 25%;
		float: right;
	}
	.ostoskori_sarake2b {
		width: 100%;
		font-style: normal;
		color: black;
	}
	.ostoskori_pieni_sarake {
		display: none;
	}
	input.ostoskorinappi {
		padding: 5px;
		font-size: 14pt;
		width: 100%;
	}
	.pieni_tuotekortti {
		width: calc(100% - 12px);
		height: auto;
		border-color: #ececec;
		border: 5px solid #ececec
		box-shadow: 0px black;
	}
	.pieni_tuotekortti_asiakkaan_oma_korostus {
		width: calc(100% - 42px);
		font-size: 12pt;
	}
	.pieni_tuotekortti_kuva_alue {
		height: 250px;
		text-align: center;
		background: white;
	}
	.pieni_tuotekortti_kuva_alue img {
		max-height: 250px;
		max-width: 250px;
		max-height: 100%;
		max-width: 100%;
		margin: auto;
	}
	.pieni_tuotekortti_kuva_alue_hinta {
		position: absolute;
		display: block;	
		width: 80px;
		height: 35px;
		font-size: 18pt;
		background: white;
		margin-top: 189px;
		margin-left: 0px;
		padding-left: 5px;
		line-height: 35px;
		border: 0px;
		box-shadow: 0px 0px 3px 0px black;
		text-align: center;
	}
	.pieni_tuotekortti_kuva_alue_hinta2 {
		position: absolute;
		font-size: 11pt;
		display: block;
		width: 80px;
		height: 20px;
		margin-left: 0px;
		background: white;
		margin-top: 219px;
		padding-left: 5px;
		border-right: 0px solid black;
		line-height: 20px;
		text-align: center;
		box-shadow: 1px 1px 1px 0px gray;
	}
.pieni_tuotekortti_hinta_alue {
	float: right;
	width: auto;
	overflow: hidden;	
	background: white;
	border: 1px solid #ececec;
	padding: 5px;
	margin: 0px 0px 5px 5px;
}
.pieni_tuotekortti_hinta {
		position: relative;
		bottom: 0px;
		display: block;
		width: auto;
		font-size: 16pt;
		margin-top: 0px;
		margin-left: 0px;
		padding: 0px;
		border: 0px;
		background: transparent;
		text-align: center;
}
.pieni_tuotekortti_hinta2 {
		position: relative;
		font-size: 10pt;
		display: block;
		width: auto;
		height: 20px;
		margin-left: 0px;
		margin-top: 0px;
		padding: 0px;
		border-right: 0px solid black;
		line-height: 20px;
		text-align: center;

}
	.pieni_tuotekortti_tekstialue {
		border-top: 0px solid black;
		height: auto;
		border-radius: 0px 0px 10px 10px;
	}	
	.pieni_tuotekortti_tekstialue_koodi {
		font-size: 12pt;
	}
	.pieni_tuotekortti_tekstialue_kuvaus {
		font-size: 16pt;
	}
	.ostoskori_tilaustietorivi {
		height: 30px;
	}	
	.ostoskori_tilaustietorivi .ostoskori_sarake1 {
		display: block;
		float: left;
		width: 100%;
	}
	.ostoskori_tilaustietorivi input {
		width: 95%;
		line-height: 30px;
		height: 30px;
		font-size: 14pt;
	}
	input.radiovalinta {
		width: 40px;
	}
	.ostoskori_tilaustietorivi {
		height: 75px;
	}
	.iso_tuotekortti_rivi {
		width: 100%;
	}
	.tuotekortti_jako-osa, .iso_tuotekortti_sarake1, .iso_tuotekortti_sarake2 {
		width: 100%;
	}
	#iso_tuotekortti input, #iso_tuotekortti select, #iso_tuotekortti textarea {
		width: calc(100% - 4px);		
		padding: 0px;
		margin: 0px;
	}
	#iso_tuotekortti input.maarakentta {
		width: 50%;
	}
	#iso_tuotekortti input.tuotemaaramuutosnappi { 
		width: 25px;
		padding: 0px;
		margin: 0px;
		margin-left: 5px;
	}
	#iso_tuotekortti input#lisaa_ostoskoriin_nappi {
		width: calc(100% - 45px);
		height: 24px;
		line-height: 20px;
		padding: 5px 10px 5px 35px;
		background-color: gray;
		background-image: url(kuvat/ikoni_ostoskori.png);
		text-align: left;
		color: white;
		border: 0px;
		border-radius: 5px;
		background-size: auto 18px;
		background-position: 8px 8px;
		background-repeat: no-repeat;
		text-decoration: none;
		font-size: 12pt;
		margin: 5px 0px;
		cursor: pointer;
	}
	.sarake50 {
		width: 100%;
		float: none;
	}
}