@media print {
  @page {
	size: A4;
	margin-top: 2cm;
	margin-bottom: 2cm;
	margin-left: 2.7cm;
	margin-right: 2cm; 		
	counter-increment: page 1;

    @top-left {
     font: 10pt Arial, Helvetica, sans-serif;
     text-align: left;
     content: "RealObjects edit-on Pro Integration Manual";
     margin-top: 5mm;
     margin-bottom: 7mm;
	 border-bottom: 0.2mm solid black;
    }

    @bottom-left{
     font: 10pt Arial, Helvetica, sans-serif;
     text-align:left;
	 content: "(c) 2009 RealObjects GmbH";
     margin-top: 5mm;
     margin-bottom: 10mm;
	 border-top: 0.2mm solid black;
    }    

    @bottom-right { 
     font: 10pt Arial, Helvetica, sans-serif;
     text-align:right;
	 content: "Page " counter(page) " / " counter(pages);
     margin-top: 5mm;
     margin-bottom: 10mm;
	 border-top: 0.2mm solid black;
    }    
  }
}

body {
	margin: 1cm 1cm 1cm 1cm; 
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
}

*.title {
	padding: 2px;
	background-color: #CFD7E6;
	display: block;
	page-break-after: avoid;
	margin-top: 0.7cm;
	margin-bottom: 0.4cm;
}

h1 {
	font-size: 20pt;
	font-weight: bold;
	color: #000060;
	margin-bottom: 0.5cm;
	margin-top: 2cm;
}

h2 {
	font-size: 16pt;
	font-weight: bold;
}

h3 {
	font-size: 12pt;
	font-weight: bold;
}

h4 {
	font-size: 12pt;
	font-style: italic;
	font-weight: bold; 
}

p {
	margin-bottom:  1mm
}

table {
	margin-left:0.5cm;
}

td {
	font-size: 10pt;
}

a {
	text-decoration:none;
	color: #003399;
	border-bottom-width:1px;
	border-bottom-style:dotted;
}

div.toc a, div.list-of-examples a {
	border-bottom-width:0px;
}

a:hover {
	background-color:#bbceff;
}

a:visited {
	color: #003399;
}

div.toc a, div.list-of-tables a, div.list-of-examples a {
	color: black;
}

div.toc span.preface a, div.toc span.chapter a {
	font-weight: bold;
}

div.toc span.sect1 a {
	text-decoration: underline;
}

div.toc dt, div.list-of-tables dt, div.list-of-examples dt {
	padding-bottom: 0.1cm;
}

.programlisting {
	border: 1px solid #808080;
	background-color: #EDF1F8;
	padding-bottom: 0.1cm;
	padding-left: 0.1cm;
	padding-right: 0.1cm;
	padding-top: 0.05cm;
	font-family: monospace;
	font-size: 0.85em; 
	white-space: pre;
	margin: 0mm;
	page-break-before: avoid;
}

.term {
	font-weight: bold;
}

.note, .important, .example {
	border: solid #000060 1px;
	margin: 3mm;
	padding-bottom: 0mm;
	page-break-inside: avoid;
}

.note > .title,
.important > .title,
.example > .title {
	font-weight: bold;
	background-color: #000060;
	color: #FFFFFF;
	font-size: 12pt;
	padding-left: 1mm;
    margin-top: 0mm;
    margin-bottom: 0mm;
}