/*
	 CSS-Tricks Example
	 by Chris Coyier
	 http://css-tricks.com
*/


/* page */

html { font: 12px/1 'Open Sans', sans-serif; overflow: auto; padding: 0.0in; }
html { background: #999; cursor: default; }

body {   }
div#body { box-sizing: border-box; width: 8.5in; height: 8.5in; margin: auto; overflow: hidden; padding: 0.2in 0.3in 0.5in 0.5in; background: #FFF; border-radius: 5px; box-shadow: 0 0 1in -0.25in rgba(0, 0, 0, 0.5); margin-bottom: 5px; margin-top:35px;}



#page-wrap { width: 750px;  margin-left:-15px;}

input[type="text"]{ border: 0; font: 12px/1 'Open Sans', sans-serif; overflow: hidden; resize: none;  }
textarea { border: 0; font: 14px/1 'Open Sans', sans-serif; overflow: hidden; resize: none; }
p { border: 0; font: 14px/1 'Open Sans', sans-serif; overflow: hidden; resize: none; }
table { border-collapse: collapse; }
table td.bord, table th { border: 1px solid black; padding: 5px; }
 

#header { height: 15px; width: 100%; margin-bottom: -20px; background: #222; text-align: center; color: white; font: bold 15px Helvetica, Sans-Serif; text-decoration: uppercase; letter-spacing: 20px; padding: 8px 0px; float: left; }

#address { width: 350px; height: 30px; float: left; font: 25px/1 'Open Sans', sans-serif; } 	/* l'espace entre l'addresse et le nom de l'achteur*/
#customer { overflow: hidden; }
#customer2 { overflow: hidden;  }

#logo { text-align: right; float: right; position: relative; margin-top: 20px;  width: 50px; max-height: 50px; overflow: hidden; }
img#image { width: 50px; height:50px;}

#logoctr { display: none; }
#logohelp { text-align: left; display: none; font-style: italic; padding: 10px 5px;}
#logohelp input { margin-bottom: 5px; }
.edit #logohelp { display: block; }
.edit #save-logo, .edit #cancel-logo { display: inline; }
.edit #image, #save-logo, #cancel-logo, .edit #change-logo, .edit #delete-logo { display: none; }
#customer-title { font-size: 20px; font-weight: bold; float: left;}


table#pad td{ border: 0px solid black;}
#pad { width: 280px; margin-top: 160px; position:fixed; float: right; margin-left: 0px;}
#pad td { text-align: center;  }
#pad td button.btn{
	margin: 2px 5px 20px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  margin-bottom: 0;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
button.enter{
	padding: 10px 35px;
}
button.efface{
	padding: 0px 14px;
}
button.vert{
	background-color: #12bd46;
	padding: 0 100px 0 100px;
	margin-top: 5px;
}
button.orange{
	width: 370px;
	height: 370px;
	margin-top: 10px;
	color: white;
}
button.orange:hover{
	color: yellow;
	box-shadow: 
        0px 0px 0px 5px rgba(255,255,255,1), 
        5px 11px 15px 10px rgba(0,0,0,0.4);
    z-index: 100;   
	opacity:.85;
}
button.vert:hover{
	box-shadow: 
        0px 0px 0px 3px rgba(255,255,255,1), 
        2px 7px 10px 6px rgba(0,0,0,0.4);
    z-index: 100;   
	opacity:.85;
}

button.epicerie{
	background-image: url("epicerie3.jpg");
	background-repeat: no-repeat;
}
button.resto{
	background-image: url("resto2.png");
}
button.red{
	background-color: #ff3535;
}
input.reset{
	padding: 0px 14px;
}
uc.efface{
	border: 1px solid transparent;
	padding-left:1px;
}
.btn:hover {
  color: #333;
  background-color: #;
  border-color: #adadad;
}
.btn:active {
  color: #333;
  background-color: #02cb3f;
  border-color: #adadad;
}

#meta { margin-top: 1px; width: 280px; float: right; }
#meta td { text-align: right;  }
#meta td.meta-head { text-align: left; background: #eee; }
#meta td p { width: 100%; height: 20px; text-align: right; }



div #detaille { height: 60px;}

/* #description { width: 760px; height: 200px; margin-left: 100px; padding-left: 100px;} */


input.article2 { width: 200px; height: 30px; text-align: right; margin-right: 0px; font-size: 20px;}
#items { clear: both; width: 450px;  margin-top: -51px;  border: 1px solid black;  text-align: center;}
#items2 { clear: both; width: 450px; height: 620px;  margin: 0 0 0 0;  border: 1px solid black; }  /* la grandeur du carrer pour la description des achat*/
#items3 { clear: both; width: 285px;  margin: 0 0 0 0;  border: 0px solid black; font: 16px/1 'Open Sans', sans-serif; position:fixed; top:652px;  margin-left:472px; }
#items th { background: #eee; }
#items2 input { width: 60px; height: 15px; margin: 0 0 0 0}
#items2 input.article { width: 20px; height: 15px; margin: 0 15px 0 10px; text-align: right; padding-right:10px;}

#items2 input.description { width: 300px; height: 15px; margin: 0 0 0 0; padding-left: 0px; font-size: 16px;}
#items2 input.cost { width: 50px; height: 15px; margin: 0 0 0 15px; text-align: right;}
#items2 input.qty { width: 20px; height: 15px; margin: 0 0 0 0; text-align: right; padding-right:20px; }
#items2 tr.item-row td { border: 0; vertical-align: top; padding: 4px 0 0 0;}
#items2 tr.item-row td#price { border: 0; vertical-align: top; padding: 7px 20px 0 0; font-size: 16px;}
.item-row2  { background: #eee; border: 1px; vertical-align: top; }
#items2 td.description input, #items td.item-name input { width: 100%; }
#items2 td#cout{ padding-right: 20px;  }
#items3 td.total-line { border-right: 0; text-align: right;  margin-right: 20px;}
#items3 td.total-value { border-left: 0; padding: 1px 0px 0 0; }
#items3 td.total-value input { height: 10px; background: none; }
#items3 td.balance { background: #eee; height: 35px; font-weight: bold;}
#items3 span.taxe { font: 16px/1 'Open Sans', sans-serif;}
#items2 input {  text-align: left;}
td.droit, td.total-value {text-align: right;}
td {text-align: left; margin-right: 20px;}


#terms { text-align: center; margin: 20px 0 0 0; }
#terms h5 { text-transform: uppercase; font: 13px Helvetica, Sans-Serif; letter-spacing: 10px; border-bottom: 1px solid black; padding: 0 0 8px 0; margin: 0 0 8px 0; }
#terms input { width: 100%; text-align: center;}

input:hover, input:focus, #items td.total-value input:hover, #items td.total-value input:focus, .delete:hover { background-color:#EEFF88; }

.delete-wpr { position: relative; }
.delete-wpr2 { position: relative; }
.delete { display: block; color: #000; text-decoration: none; position: absolute; font-weight: bold; padding: 0px 3px; font-family: Verdana; font-size: 12px; }
.save { display: block; color: #000; text-decoration: none; position: absolute; font-weight: bold; padding: 0px 3px; font-family: Verdana; font-size: 12px; }



/* javascript */

.add, .delete
{
	border-width: 1px;
	display: block;
	font-size: .8rem;
	padding: 0.25em 0.5em;	
	float: left;
	text-align: center;
	width: 0.6em;
}
.save
{
	border-width: 2px;
	display: block;
	font-size: .8rem;
	padding: 0.25em 0.5em;	
	float: right;
	text-align: center;
	width: 3.6em;
}

.add, .delete
{
	background: #9AF;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
	background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);
	background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);
	border-radius: 0.5em;
	border-color: #0076A3;
	color: #FFF;
	cursor: pointer;
	font-weight: bold;
	text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
}
.save
{
	background: #9AF;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
	background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);
	background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);
	border-radius: 0.5em;
	border-color: #0076A3;
	color: #FFF;
	cursor: pointer;
	font-weight: bold;
	text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
}

.add { margin: -2.5em 0 0; }

.add:hover { background: #00ADEE; }

.delete  { opacity: 0; position: absolute; top: 0; left: 0.5em; }
.delete  { -webkit-transition: opacity 100ms ease-in; }
.save  { opacity: 0; position: absolute; top: -1.3em; left: 5.3em; }
.save  { -webkit-transition: opacity 100ms ease-in; }

tr:hover .delete { opacity: 1; background: #ff0000; }
tr:hover .save { opacity: 1; background: #00ADEE; }

@media print {
	* { -webkit-print-color-adjust: exact; }
	html { background: none; padding: 0; }
	body { box-shadow: none; margin: 0; }
	span:empty { display: none; }
	.add, .delete, .save { display: none; }
}

@page { margin: 0; }

.messageBox {
float:left;     
width:200px;     
padding:10px;     
border:1px solid #666;     
position:fixed;
top:2%; 
background: #DCDCDC;   
margin-left:40%;
margin-top:0px;
z-index:999; 
border-radius: 10px;   
-webkit-border-radius: 6px; 
-moz-border-radius: 6px; 
} 
table#modif{
margin-top: 5px;
width: 730px; 
text-align: right;
}
table td#goBack{
border: 0;
margin-top: 0px;
width: 80px; 
text-align: left;
}
table td#Modif{
border: 0;
margin-top: 0px;
width: 80px; 
text-align: left;
}

a{
border: none;
}

table.scroll {
    /* width: 100%; */ /* Optional */
    /* border-collapse: collapse; */
    border-spacing: 0;
}

table.scroll tbody,
table.scroll thead { display: block; }

table.scroll tbody {
    height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
}
#tps,
#subtotal,
#tvq,
#total{
	border:0px solid #666; 
	width: 80px;
	text-align: right;
}
.art{
	margin-left: 235px;
	margin-top: -35px;
	font: 25px/1 'Open Sans', sans-serif;
	font-weight: bold;
}