html {
	background: #ddd;
	margin: 0;
	padding: 0;
  box-sizing: border-box;
}
body {
	background: #fff;
  margin: 20px auto;
	width: 640px;
  min-height: 950px;
  padding: 20px 40px;
	position: relative;
	font-family: "Arial";
	font-size: 11px;
	line-height: 1.3;
}
header {
  margin: 0;
  padding: 0 0 20px;
}
header img {
  display: block;
  width: 240px;
  height: auto;
  margin: 0;
}
header span {
  float: right;
  text-align: right;
}
main {
  margin: 0;
	padding: 0;
}
h1 {
  margin: 0 0 0.25em 0;
}
h2, h4 {
  margin: 0 0 0.75em 0
}
p {
	margin: 0;
	padding: 0 0 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2rem;
}
table.numbers {
  margin: 0 0 15px;
}
th.right input[type="text"], td.right input[type="text"] {
  text-align: right;
}
th.right, td.right {
  text-align: right;
  padding-right: 1.2rem;
}
td, th {
  text-align: left;
  padding: 0.2rem 1rem 0.2rem 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-size: 10px;
  height: 14px;
}
td textarea {
  font-size: 10px;
}
.smallright, .smallright input {
  font-size: 10px;
}
.smallright dd {
  padding: 0 0 2px;
  width: 50%;
}
.smallright dt {
  padding: 0 0 2px;
  width: 50%;
  font-weight: normal;
}
.content {
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  overflow: auto;
  clear: both;
}
div.avtalsinfo {
  white-space: no-wrap;
  padding-bottom: 40px;
}
div.left {
  width: calc(50% - 10px);
  float: left;
  clear: left;
}
div.right {
  width: calc(50% - 10px);
  float: right;
}
dl {
	margin: 0;
	padding: 0 0 2px;
	display: block;
	clear: both;
}
dt {
	display: block;
	width: 120px;
	float: left;
	clear: both;
	margin: 0;
	padding: 0 0 8px;
	font-weight: bold;
}
dd {
	display: block;
	width: calc(100% - 120px);
	float: right;
	margin: 0;
	padding: 0 0 8px;
}
input, textarea {
	width: calc(100% - 4px);
	border: 0;
	height: auto;
	font-family: "Arial";
	font-size: 11px;
	padding: 2px;
	margin: -2px;
	background: none;
	line-height: 1.3;
}
textarea {
  height: auto;
  min-height: 1.5em;
  resize: vertical;
}
input:hover, textarea:hover {
  background: #eee;
}
div.signatures {
	width: calc(50% - 10px);
}
.signatures p {
	padding: 20px 0 3px 25px;
}
.signatures input {
	margin: 22px 0 0 25px;
  width: calc(100% - 54px);
}
h6 {
	border-top: 1px solid #333;
	margin: 0 25px 25px 25px;
	padding: 2px 0;
}
footer {
  position: absolute;
  border-top: 1px solid #eee;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  text-align: center;
  font-size: 9px;
}
button.close {
  position: absolute;
  z-index: 10;
  bottom: 25px;
  left: 25px;
}
button.send {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 10;
}