html, body, p {
	font: 1em/140% 'Trebuchet MS',  helvetica, sans-serif;
}

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	min-height: 100vh;
}

body {
	background: #4194f4 url('./img/bg.jpg') no-repeat center 0;
	display: flex;
	flex-direction: column;
}

:focus {
	outline: 0;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

.cb {
	clear: both;
}

.tcenter {
	text-align: center;
}

.center {
	display: block;
	margin: 0 auto;
}

a {
	color: #06f;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h3 {
	font-size: 1.4em;
}

h4 {
	text-align: center;
	margin: 5px 0 20px 0;
}

time {
	margin: 0 5px;
	color: grey;
	font: 700 .6em Tahoma;
}

table {
	clear: both;
}

select, button, input, textarea {
	font-family: Arial;
	background-color: #fff;
	padding: 5px;
	margin: 3px;
	border-radius: 3px;
	width: 200px;
	resize: none;
	border: 1px solid #bbb;
}

button {
	cursor: pointer;
	width: auto;
	min-width: 100px;
}

input[type="checkbox"], input[type="radio"] {
	vertical-align: middle;
	width: 20px;
	height: 20px;
}

label:hover > input, textarea:focus, input:focus, button:focus, textarea:hover, input:hover, button:hover {
	border: 1px solid #11a3ea;
}

#wrap {
	flex-grow: 1;
	margin: 0 auto;
	width: 944px;
	max-width: 100%;
	background-color: #fff;
	box-shadow: 0px 0px 20px black;
	min-height: 85%;
}

#header {
	position: relative;
	height: 331px;
	clear: both;
	width: 100%;
	overflow: hidden;
	background-color: #4194f4;
}

#header {
	background: url('./img/hbg.jpg') no-repeat;
}

#header > img {
	position: absolute;
	height: 80%;
	top: 10%;
	left: 40%;
}

#header div.lng {
	position: absolute;
	bottom: 5px;
	right: 40px;
}

#header div.lng a {
	color: #fff;
	margin: 0 5px;
	font: 0.8em Verdana, Helvetica, Arial, sans-serif;
}

#menu {
	position: absolute;
	right: 5%;
	top: 0;
	margin: 8px 0 0 0;
	padding: 0;
	width: 170px;
	list-style: none;
}

#menu li {
	position: relative;
	background-color: rgba(255, 255, 255, 0);
	background-image: linear-gradient(to bottom, #fff, rgba(0, 100, 140, 0.5) 1px, rgba(100, 150, 170, 0.6), rgba(0, 0, 0, 0.6));
	border-left: 1px solid #666;
	border-right: 1px solid #222;
}

#menu li:hover {
	background-color: rgba(0, 0, 0, .3);
	transition: background-color 0.3s;
}

#menu li:last-child {
	margin-top: 20px;
	background-image: linear-gradient(to bottom, #2781ee, #004092);
}

#menu li:last-child:hover {
	background-image: linear-gradient(to bottom, #1569ce 30%, #0e386e);
}

#menu li a {
	position: relative;
	box-sizing: border-box;
	z-index: 2;
	height: 100%;
	width: 100%;
	display: block;
	margin: 0 2px;
	font: 700 15px/2.5em Verdana;
	text-align: center;
	color: #fff;
	border: none;
	text-shadow: 0 0 15px #000;
}

#menu li.active a {
	text-shadow: 2px 2px 20px #fff;
}

#menu li a:hover {
	text-decoration: none;
	text-shadow: 2px 2px 20px #ccc;
	color: #fff;
}

div.left, div.rigth {
	box-sizing: border-box;
}

.side-menu {
	text-align: left;
	padding-left: 10px
}

#content {
	background-color: #fff;
	background-image: linear-gradient(to bottom, #fff, #a7a7a7 4px, transparent 12px);
	overflow: hidden;
	padding: 0;
	color: #000;
	padding: 20px 0;
}

#content div.left {
	float: left;
	width: 75%;
	margin-left: 10px;
	padding: 0 20px;
}

#content div.left h3 {
	margin-top: 10px;
	margin-bottom: 20px;
	padding: 5px 0;
}

#content div.left ul, #content div.left ol {
	padding-left: 40px;
}

#content div.left div.bgfa {
	background: #f6fbff;
	border-radius: 5px;
	border: 1px solid #e1e1e1;
	padding: 10px;
	box-shadow: 0px 0px 20px #eaeaea;
}

#content div.left div.bgfa img {
	margin: 5px;
}

.news > p:first-child {
	margin-top: 0;
}

.news > p:last-child {
	margin-bottom: 0;
}

#content div.right {
	float: right;
	width: 20%;
	margin-right: 10px;
	padding: 0 10px;
}

#content div.right img {
	max-width: 100%;
}

#content div.right h3 {
	margin: 10px 0;
}

#subfooter {
	margin: 0 auto;
	width: 992px;
	max-width: 100%;
	height: 87px;
	background: url('./img/subfshads.png') repeat-x;
}

#subfooter div {
	margin: 0 auto;
	width: 944px;
	max-width: 100%;
	height: 100%;
	background-image: linear-gradient(to bottom, #fff, #c4ecf8);
	background-size: 100% 60px;
	background-repeat: repeat-x;
}

#subfooter div p {
	margin: 0;
	padding: 40px 100px 0 30px;
	text-align: center;
}

#footer {
	text-align: center;
	height: 166px;
	background: url('./img/footbg.jpg') repeat-x;
	font: 700 10px/2.5em Verdana;
	color: #666;
}

div.pager {
	margin: 20px 0;
	overflow: hidden;
}

div.pager a, div.pager span.curpage {
	margin: 0 5px;
	font: 14px Verdana;
	display: block;
	float: left;
	padding: 5px;
	text-decoration: none;
	border: 1px solid #ddd;
}

div.pager span.curpage {
	border: 1px solid #eee;
}

div.pager a:hover {
	border: 1px solid #555;
}

.hr {
	width: 316px;
	height: 1px;
	background: url('./img/hr.png') no-repeat;
	margin: 20px auto;
}

.login {
	margin: 80px auto 0;
	width: 218px;
}

.login > button {
	width: auto;
	padding: 4px;
	font-weight: 700;
	float: right;
	border: 1px solid #ccc;
}

.panel, .txtplace {
	width: 100%;
}

.txtplace {
	background: #ddd;
	padding: 3px;
	min-width: 400px;
}

#newslist {
	list-style: none;
}

#newslist li {
	padding: 5px;
}

#newslist li:hover {
	background-color: #e6f3ff;
	outline: 1px solid #e1e1e1;
	border-radius: 3px;
}

caption {
	margin: 10px 0;
	font: 700 14px Verdana;
}

.tdtitle {
	padding: 2px 15px 2px 10px;
	color: #000;
	font-weight: 700;
	text-align: right;
}

.tdtitle:first-child {
	padding-left: 0;
}

.tdtitle + td {
	border-radius: 5px;
	padding: 3px 10px;
}

.tdtitle:hover + td, .tdtitle + td:hover {
	background-color: #f6fffc;
}

h2 {
	margin: 20px 0;
}

.logina {
	position: absolute;
	bottom: 0;
	right: 45%;
	padding-bottom: 3px;
	font: 10px Verdana, sans-serif;
}

.err {
	color: red;
	text-align: right;
}

.tdtitle td {
	border: 1px solid black;
}

.partner-name {
	font: small-caps 700 17px Verdana;
	letter-spacing: 2px;
}

.code {
	display: inline-block;
	background-color: #e0dfed;
	padding: 2px 4px;
	border-radius: 5px;
	font-size: 15px;
	letter-spacing: 1px;
}

.ufrom .ulist {
	margin: 2px 0;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid transparent;
	clear: both;
	overflow: hidden;
}

.ufrom .ulist:hover {
	background-color: #e6f3ff;
	border: 1px solid #e1e1e1;
}

.pydchk {
	text-align: center;
	margin: 0 auto;
	border-collapse: collapse;
}

.pydchk td {
	padding: 3px 22px;
}

.pydchk tr:hover td:not(:only-child) {
	background-color: #f1f1f1
}

.pydchk .pay > td {
	background-color: #f2fff2;
}

.pydchk td {
	border: 1px solid #ccc;
}

.water-meter th {
	padding: 5px 10px 0;
}

.water-meter > tbody > tr > td {
	padding: 5px 10px;
}

.water-meter > tbody > tr:hover {
	background-color: #efefef
}

.contact-table {
	margin: 0 auto;
}

.contact-table > caption {
	font-size: 1em;
}

.contact-table td:first-child {
	text-align: right;
	font-weight: bold;
}

.contact-table td {
	padding: 5px;
	vertical-align: top;
}

@media screen and (max-width: 800px) {
	#content div.left {
		float:  none;
		margin-left: 0;
		padding: 0 8px;
		width: auto;
	}

	#content div.right {
		border-top: 1px solid silver;
		margin: 50px 10px 0;
		clear: both;
		float: none;
		width: auto;
	}
}
