* {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	
	margin: 0; 
	padding: 0;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size:   12px;
	line-height: 20px;
}

.document h1 {
	font: bold 14px Arial, Helvetica, sans-serif;
	margin: 0px;
	margin-bottom: 10px;
	margin-right: 10px;
	padding: 0px;
}

.document button, 
.document button#payment,
.document button#order {
	margin-bottom: 0;
}

.document div.group,
.document .group div {
	float: left;
	width: auto;
	margin: 0px;
	overflow: hidden;
}

.document div.field {
	float: left;
	margin: 0px;
	margin-right: 10px;
	margin-bottom: 10px;
}

.document p.text {
	float: left;
	min-height: 20px;
	width: 100%;
	margin-top: 0px;
}

.document .text.title {
	font-weight: bold;
	font-size: 14px;
	margin-top: 15px;
	text-decoration: underline;
}

.document .text.box {
	margin: 0px;
	margin-top: -3px;
	width: 20px !important;
	font: 19px Windings;
	background: none;
}

.document p.text.field {
	border-bottom: solid 1px black;
	margin-right: 15px;
}

.document .text.tip,
.document .text.note {
	font-style: italic;
	font-size: 11px;
}

.document .text.note {
	text-decoration: underline;
}

.document .text.note.inline {
	margin-top: 5px;
}

.document p.text.inline {
	width: auto;
	margin-right: 5px;
}

.document .text.year,
.document .text.month {
	margin-top: -10px;
}
 
.document .text.month {
	margin-left: 500px;
} 

.document table {
	border-right:  solid 1px black;
	border-bottom: solid 1px black;
	border-spacing: 0px; 
	border-collapse: collapse;
}

.document td, 
.document th {
	padding: 0px;
	border-top:  solid 1px black;
	border-left: solid 1px black;
}

.document th {
	font-weight: bold;
	background: lightgray;
}

.document th div,
.document td div {
	white-space: nowrap;
	overflow: hidden;
	height: 20px;
	padding: 2px 4px 2px 4px;
	font-size: 12px;
}

.document th div {
	text-align: center !important;
}


.document tbody td {
	border-top:  solid 1px black;
	border-left: solid 1px black;
}

.document tbody tr:first-child td {
	border-top:  solid 1px black;
}

.document tbody tr:first-child td:first-child {
	border-left:  solid 1px black;
}

.hidden,
.removed {
	display: none !important;
}

.no-data {
	float: none;
	text-align: center;
}

.break-float {
	clear: both;
}

.break-left {
	clear: left;
}

.break-right {
	clear: left;
}

.boolean {
	text-align: center;	
}

.number {
	text-align: right !important;	
}

.center {
	text-align: center !important;	
}

.document div.grand-total {
	position: relative;
	top: -15px;
	margin: 0;
	margin-left: 140mm;
	font-weight: bold;
	font-size: 14px;
	border: solid 1px black;
	border-top: none;
}

.document .grand-total div {
	margin: 0px;
	padding: 2px 4px 2px 4px;
	border-right: solid 1px lightgrey;
}

.document .invoice-header {
	border-bottom: solid 1px black;
	margin-bottom: 20px;
	height: 92px;
	overflow: hidden;
}

.document .invoice-header img {
	float: right;
}

.document .invoice-header p {
	font-size: 9pt;
	margin: 0px;
	padding: 0px;
	line-height: 12pt;
	min-height: 0px;
	float: left;
	width: 100mm;
}
.document .invoice-header p.inline {
	width: auto;
	margin-right: 5px;
}

.client-chooser {
	margin: 5px; 
	border: solid 1px black; 
	width: 290px !important;
}