diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 65c65bdfd98840199c9e76b555040c31ab193ef3..9fb050b0ef7c5dfeddbf3f710e163c9f39b52d6e 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -656,6 +656,38 @@ div.attacharea {
 	padding-top: 10px;
 	padding-bottom: 10px;
 }
+div.arearef {
+	/*border-bottom: 1px solid #bbb;*/
+	padding-top: 2px;
+	padding-bottom: 5px;
+	/*padding-right: 3px;
+	padding-left: 2px;*/
+	margin-bottom: 10px;
+}
+div.heightref {
+	min-height: 74px; 
+}
+div.divphotoref {
+	padding-right: 10px;
+}
+div.statusref {
+	float: right;
+	padding-right: 12px;
+	margin-top: 9px;
+	margin-bottom: 10px;
+}
+img.photoref {
+	height: 68px;
+	width: 68px;
+	border: 1px solid #CCC;
+	-moz-box-shadow: 3px 3px 4px #DDD;
+    -webkit-box-shadow: 3px 3px 4px #DDD;
+    box-shadow: 3px 3px 4px #DDD;
+}
+.underrefbanner {
+	border-bottom: 2px solid #888;
+}
+
 
 
 /* ============================================================================== */
@@ -1902,13 +1934,19 @@ table.listwithfilterbefore {
 
 /* Pagination */
 div.refidpadding  {
-	padding-top: <?php print empty($conf->dol_use_jmobile)?'8':'12'; ?>px;
+	/* padding-top: <?php print empty($conf->dol_use_jmobile)?'8':'12'; ?>px; */
 }
 div.refid  {
-	padding-top: <?php print empty($conf->dol_use_jmobile)?'5':'12'; ?>px;
+	/* padding-top: <?php print empty($conf->dol_use_jmobile)?'5':'12'; ?>px; */
 	font-weight: bold;
   	color: #766;
-  	font-size: 120%;
+  	font-size: 160%;
+}
+div.refidno  {
+	padding-top: 2px;
+	font-weight: normal;
+  	color: #444;
+  	font-size: <?php print $fontsize ?>px;
 }
 
 div.pagination {