@font-face {
  font-family: myFont;
  src: url('THSarabun.ttf');
}
body{
  font-family:myFont;
  font-size:20px;
  background-color:#535353;
  padding:0px;
  margin:0px;
}
input{
	font-family:myFont;
}
#userName{font-family:myFont;font-size:50px;}
.container{
  width:100%;
  margin:0px auto;
  background-color:#535353;
  position:relative;
}
.navbar{
  background-color: #000000;
  position: fixed;
  overflow:none;
  top: 0;
  left: 0;
  right:0px;
  box-shadow: 0px 1px 10px #000000;
  height:50px;
  font-size:50px;
  text-transform:uppercase;
  color:white;
  line-height:50px;
  z-index:1;
}
@media screen and (max-width: 440px) {
	.navbar{font-size:20px;}
}
.navbar:after{
  content: "";
  display: table;
  clear: both;
}
#user{float:right;cursor:pointer;font-family:Tahoma;font-size:30px;margin-right:10px;}
#date{
  padding:0px;
  position:absolute;
  top:0px;
  left:10px;
  height:50px;
  text-align:left;
  line-height:20px;
}
#datePickerr{
  border:0px;
  font-size:50px;
  padding:0px;
  margin:0px;
  text-align:right;
  width:auto;
  background-color:black;
  color:white;
  line-height:40px;
  height:50px;
  overflow:hidden;
}

.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  //background-color: #04AA6D; /* Black*/
  background-color: #000000; /* Black*/
  //background: rgba(0, 0, 0, 0.8);
  overflow-x: hidden; /* Disable horizontal scroll */
  //padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
  margin-top:50px;
}

.sidenav a {
  padding: 0px 8px;
  text-decoration: none;
  font-size: 26px;
  color: #f1f1f1;
  display: block;
  transition: 0.3s;
  width:200px;
  text-align:left;
  cursor:pointer;
  line-height:40px;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover:not(.active) {
  //color: white;
  //background-color:#00832d;
  background-color:#f6f6f6;
  color: black;
}
/* Active/current link */
.sidenav a.active {
  background-color: #f6f6f6;
  color: black;
}
#rightSidenav{
	right:0px;
}



/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 30px; /* Location of the box */
  right: 0px;
  top: 0px;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding:2px 16px;
}

.close:hover,
.close:focus{
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.modal-footer {
  //background-color: #04AA6D;
  background-color:black;
  color: white;
  line-height:40px;
}
.modal-footer a{
  float: none;  
  padding: 0px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size:16px;
  color: #FFFFFF;
  text-transform:uppercase;
}
.modal-footer a:hover{
  opacity:0.9;
}

#content{
	position:fixed;
	top:50px;
	left:0px;
	right:0px;
	bottom:0px;
	overflow:auto;
	font-size:20px;
	background-color:white;
}
.list{
	position:fixed;
	left:0px;
	right:0px;
	top:50px;
	bottom:0px;
	overflow:auto;
}
.list table {
  border-collapse: collapse;
  width: 98%;
}

.list th, .list td {
  text-align: left;
  padding: 15px 0px;
  border-bottom: 1px solid #cacaca;
  overflow:hidden;
}
.list table thead{
	position:sticky;
	top:0px;
	z-index:1;
	background-color:white;
}

.list tr:nth-child(even) {background-color: #f2f2f2;}
.list tr:hover:not(.header){background-color: #cacaca;cursor:pointer;}

.list th{
	padding: 0px;
	height:30px;
}

.top{
	text-align:center;
	height:75px;
}
.top input,.top select{
	padding:10px;
	margin:10px auto;
	font-size:20px;
	background-color:#EFEFEF;
	cursor:pointer;
	font-family:myFont;
	color:black;
}
.top input:hover,.top select:hover{
	background-color:#000000;
	color:white;
}

.left{
	float:left;
	width:49%;
}
.right{
	float:right;
	width:49%;
}
@media screen and (max-width: 440px) {
	.left{
		float:none;
		width:100%;
	}
	.right{
		float:none;
		width:100%;
	}
	.top{
		text-align:center;
		position:fixed;
		left:0px;
		right:0px;
		top:50px;
		height:75px;
		overflow:none;
		padding:5px 0px;
		background-color:black;
	}
	.top input,.top select{
		padding:0px;
		margin:0px;
		width:15%;
		height:50px;
		background-color:#CCCCCC;
		color:black;
	}
	.top input:hover,.top select:hover{
		background-color:#000000;
		color:white;
	}
}
.form-box{
	height:auto;
	margin:5px auto;
	width:100%;
}
.form-box a{color:black;}
.form-box:after{
  content: "";
  display: table;
  clear: both;
}
.form-input{
	background-color:white;
	border:1px solid black;
	border-radius:4px;
	color:black;
}
.form-input img{
	max-height:100px;
	height:100px;
	width:auto;
}
.form-input input[type=text],.form-input input[type=number], .form-input input[type=email], .form-input input[type=button], .form-input select{
	padding:0px 5px;
	font-family:myFont;
    font-size:20px;
	border:0px;
	border-radius:4px;
	width:90%;
}
.form-input input[type=button]{
	width:100%;
	font-size:30px;
	height:40px;
}
.form-input input[type=button]:hover{
	background-color:black;
	color:white;
}
.form-input label{
	color:white;
	font-size:20px;
	display:block;
	padding-left:5px;
	background-color:black;
}
.modal-body{
	
}
.modal-menu{
}

.modal-menu div{float:left;width:20%;padding:0px;margin:0px;opacity:0.8;}


.modal-menu span, .modal-menu a{color:white;display:block;border-radius:4px;margin:0px 2px;padding:0px;border:1px solid black;text-align:center;border-radius:6px;}
.modal-menu a{background-color:black;line-height:50px;font-size:24px;}
.modal-menu label{
	color:white;
	font-size:20px;
	display:block;
	background-color:black;
}
.modal-menu input{
	display:block;
	width:90%;
	text-align:center;
	font-size:20px;
	margin:0px auto;
	border:0px;
}
.modal-menu div:hover{
	opacity:1;
}
.section{
	display:none;
}
.section.active{
	display:block;
}
.modal-menu:after, .modal-body:after, .section:after{
  content: "";
  display: table;
  clear: both;
}

.ACTIVE{
	color:black;
}
.ACTIVE.active{
	color:white;
	background-color:black;
}
.LOCK{
	color:orange;
}
.LOCK.active{
	color:white;
	background-color:orange;
}
.LOCKED{
	color:orange;
}
.LOCKED.active{
	color:white;
	background-color:orange;
}
.HOLD{
	color:#93278F;
	text-decoration:line-through;
}
.HOLD.active{
	color:white;
	background-color:#93278F;
}
.INACTIVE{
	color:grey;
	text-decoration:line-through;
}
.INACTIVE.active{
	color:white;
	background-color:grey;
	text-decoration:line-through;
}
.OVER{
	color:red;
}
.OVER.active{
	color:white;
	background-color:red;
}
.CLOSED,.REDEEM{
	color:green;
	text-decoration:line-through;
}
.CLOSED.active,.REDEEM.active{
	background-color:green;
	color:white;
	text-decoration:line-through;
}
.PAID{
	color:green;
}
.WAITING{
	color:black;
}

#contract,#printArea{
  margin: 10px auto;
  padding:0px;
  width: 21cm;
  height:29cm;
  box-shadow: 0px 1px 10px #000000;
  font-family: myFont;
  font-size:16px;
  position: relative;
  background-color: white;
  border: 1px solid #888;
  border-radius:5px;
  overflow:hidden;
}
.inv-container{
  font-family: myFont;
  font-size:16px;
  position: relative;
  background-color: white;
  margin: 0px auto;
  width: 21cm;
  height:29cm;
  
}
.inv-header{
	height:50px;
	font-size:30px;
	text-transform:uppercase;
	border-bottom:1px solid #535353;
	line-height:50px;
	overflow:hidden;
	margin:80px 60px 0px 60px;
	font-weight:bold;
	text-align:center;
}


.inv-logo{
	position:absolute;
	top:20px;
	left:50px;
	width:266px;
	height:96px;
}

.inv-qr{
	position:absolute;
	bottom:60px;
	left:50px;
	width:100px;
	height:100px;
	line-height:16px;
	//border:1px solid #535353;
	//box-shadow: 0px 1px 10px #000000;
	//padding:5px;
	text-align:center;
}
.inv-qr img{
	border:3px solid #535353;
	padding:5px;
	background-color:white;
}
.inv-date{
	position:absolute;
	top:20px;
	right:0px;
	width:266px;
	height:96px;
}
.inv-content{
	margin:10px 60px 0px 60px;
	color:black;
	font-size:16px;
	line-height:18px;
	text-align:left;
	padding:0px;
	text-indent: 30px;
}
.inv-content span{
	font-weight:bold;
}

.inv-statement{
	//height:180px;
	margin:10px 60px 0px 60px;
	font-size:16px;
	overflow:hidden;
}
.inv-footer{
	position:absolute;
	width:100%;
	bottom:160px;
}

.inv-list{
	width:33%;
	line-height:20px;
	font-size:16px;
	float:left;
}
.inv-list span{
	font-weight:bold;
}
.inv-left{
	width:70%;
	float:left;
	text-indent: 30px;
}
.inv-right{
	width:29%;
	float:right;
}
.listing{
	text-indent: 30px;
}
.inv-header:after, .inv-statement:after, .inv-footer:after{
  content: "";
  display: table;
  clear: both;
}
.inv-img{
	width:768px;
	height:auto;
	margin:0px auto;
}
.pro-barcode{
	height:50px;
	margin:10px auto;
}
#printArea{
	display:none;
	box-shadow: 0px;
	border:0px;
}
@media screen and (max-width: 440px) {
	.inv-img{
		width:100%;
	}
}
@media print {
	.modal,.container{
		display:none;
	}
	#printArea{
		display:block;
	}
}
