@page {
  size: A4 portrait;
}

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');

@media print {
  * {
    -webkit-transition: none !important;
    transition: none !important;
  }
}

body{
   font-family: Arial;
   margin: 0px !important;
}

page {
  background: white;
  display: block;
  margin: 0 auto 0;
}

/*
.first_page {
  margin: 0 auto !important;
}

.second_page {
  margin: 0.25cm auto 0 !important;
}
*/

page[size="A4"] {  
  width: 21cm;
  height: 25.7cm; 
  padding-top: 2cm;
  padding-bottom: 2cm;
}


@media screen {
    page {
        box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
    }
}

.product {
	width: 50%;
	height: 9.99%;
	float: left;
	/* background-color: rgba(255, 0, 0, 0.5); */
}

.product table {
	table-layout:fixed;
	width: 100%;
	text-align: center;
	/* background-color: rgba(0, 255, 0, 0.5); */
}

.code {
	height: 1.2cm;
	font-size: 2em;
	font-weight: bold;
	text-transform: uppercase;
}

.name {
	height: 1.2cm;
	font-size: 1.25em;
	white-space: nowrap;
	overflow: hidden;
	/*background-color: white;*/
}

.photo {
	height: 4.5cm;
	/* padding-bottom: 1.5cm; */
}

.photo img{
	max-height: 4.5cm;
}

.break {
	page-break-before: always;
}
/*
.color1, .color5 {
	background-color: blue;
}

.color2, .color6 {
	background-color: yellow;
}

.color3, .color7 {
	background-color: green;
}

.color4, .color8 {
	background-color: red;
}
*/

.name.long {
	font-size: 1.2em;
	letter-spacing: -1px;
}