body {
  font-family: "Helvetica Neue", Helvetica, Arial;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #3b3b3b;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  background-color: #fff;
  margin:0px;
}

html, body, .wrapper {
    min-height: 100vh;
}

.wrapper {
  margin: 0 auto;
background-color:#eaeaea;
}


.page-main {
  margin: 0 auto;
  padding: 40px;
  max-width: 1600px;
}

body.popup{
	    visibility: hidden;
		background:#ccc;
	
}
.hidden {
	display:none !important;
}

.not_found{
	color:red;
	display:block;
	
}

#iframeHolder{
	position: fixed;
    top: 30px;
    margin: 0 auto;
    width: 80%;
    z-index: 100;
    //box-shadow: 13px 7px 50px 50px #000000;
	visibility:visible;
}

#button_close{
	position: absolute;
    right: 0;
    background-color: red;
    color: #fff;
    font-size: 27px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
	z-index:100;
}

#iframe_button{
    background-color: #1e91cf;
    color: #fff;
    font-size: 14px;
    border-radius: -34%;
    border: #1e91cf;
    padding: 5px;
}

#hidetop{
	width:100%;
	height:75px;
	background:#000;
	z-index:50;
	position:absolute;
}
#invoice_goods input#good_code{
	width:calc(100% - 36px);
}
#edit_invoice #invoice_goods input#good_code{
	width:100%;
}
.refresh_button{
	background-color: #1e91cf;
    border: #1e91cf;
    color: #fff;
    padding: 5px;
    margin-left: 7px;
}

.show_prices_span{
	background-color: #1e91cf;
    border: #1e91cf;
    color: #fff;
    padding: 5px;
    margin-left: 7px;
}

#name{
	width:250px !important;
}

#invoice_check{
	background-color: #2980b9;
    color: #fff;
    padding: 5px;
    box-shadow: none;
    border: none;
}

#new_invoice{
	background-color: #e12626;
    color: #fff;
    padding: 5px;
    box-shadow: none;
    border: none;
}

#good_code_exists{
	color: red;
    margin-left: 200px;
    display: none;
}
	
#store_info{
	width: 100%;
    text-align: center;
    padding: 4px 0;
    color: #fff;
    background: #2980b9;
    font-weight: bold;
}

.invoice_page table#invoice_goods{
	width:100%;
	max-width:1900px;
}



.addbutton{
	color: #fff;
    background-color: #1e91cf;
    border-color: #197bb0;
    border: none;
    height: 40px;
    width: 40px;
	font-size: 25px;
}

.removebutton{
	color: #fff;
    background-color: #d0321e;
    border-color: #a82818;
    border: none;
    height: 40px;
    width: 40px;
	font-size: 25px;
}


input:read-only {
  background-color: #d5d5d5;
  font-weight:bold;
}
.ui-datepicker table {
        max-width: auto;
		min-width: auto;
}

input[type="text"]#datepicker, input[type="text"]#datepicker2{
	width:250px;
}

input[type="submit"]#submitsearch{
	float:none;
	margin:0;
	background-color: #363636;
    padding: 10px;
}

.action_icons {
	margin:0 15px;
}

.action_icons  img {
    max-width: 25px;
}
/* login */



.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
}

#logintitle {
	font-size: 33px;
    font-weight: bold;
    margin: 0 0 35px 0;
    color: #2980b9;
    font-family: helvetica;
	line-height:35px;
}
.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #f6f6f6;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
}
.form button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: #2980b9;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
}
.form button:hover,.form button:active,.form button:focus {
  background: #333;
}
.form .message {
  margin: 15px 0 0;
  color: #b3b3b3;
  font-size: 12px;
}
.form .message a {
  color: #4CAF50;
  text-decoration: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0 auto;
}
.container:before, .container:after {
  content: "";
  display: block;
  clear: both;
}
.container .info {
  margin: 50px auto;
  text-align: center;

}
.container .info h1 {
  margin: 0 0 15px;
  padding: 0;
  font-size: 36px;
  font-weight: 300;
  color: #1a1a1a;
}
.container .info span {
  color: #4d4d4d;
  font-size: 12px;
}
.container .info span a {
  color: #000000;
  text-decoration: none;
}
.container .info span .fa {
  color: #EF3B3A;
}














/* dropdown */

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

li {
    float: left;
	
}
li span{
	color: white;
	font-weight:bold;
}
	
li a, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: #2980b9;
}

li.user {
    position:absolute;
	right:0px;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
    display: block;
}











/* formes */


label {
    color: #555;
    font-weight: bold;
    display: block;
    width: 180px;
    float: left;
    text-align: right;
    margin-right: 20px;
}


input[type="text"] {
	margin-bottom: 15px;
    height: 20px;
    width: 40%;
}


table input[type="text"] {
    width: 100%;
}

#add_invoice table input[type="text"] {
    width: 67%;
}

textarea {
	margin-bottom: 15px;
    
    width: 40%;
}

.login-form input[type="text"] {
	margin-bottom: 15px;
    height: 49px;
    width: 100%;
	
}

select {
	margin-bottom: 15px;
    height:30px;
    width: 40%;
}
input[type="submit"] {
	float: right;
    margin-right: 43%;
    background-color: #2980b9;
    padding: 15px;
    outline: 0;
    border: 0;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
	cursor:pointer;
}

input[type="submit"]:hover {

    background-color: #555;
}
    
table {
   /*margin: 0 auto;*/
   max-width: 1600px;
   min-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: table;
}

#price_values table {
	width:300px;
	min-width:auto;
	text-align:center;
}

#quantity_values table {
	width:900px;
	min-width:auto;
	text-align:center;
}
table a {
   text-decoration:none;
   font-style: italic;
   color:#2980b9;
}

table a:visited {
   color:#2980b9;
}

table a:hover {
   color:#333;
}

tr {
  display: table-row;
  background: #f6f6f6;
}

tr:nth-of-type(odd) {
  background: #e9e9e9;
}

tr.header {
  font-weight: 900;
  color: #ffffff;
  background: #ea6153;
}

tr.green {
  background: #999999;
}

tr.blue {
  background: #2980b9;
}

tr.red {
  background: #333333;
}
td {
  padding: 6px 12px;
  display: table-cell;
}
td img {
    max-width: 20px;
}

td.centered{
	text-align: center;
}
td.icon{
	text-align: center;
	width:120px;
}


.sum_table{
	float: right;
    min-width: 300px;
	min-width: 400px;
    margin-top: 3px;
	font-weight:bold;
	text-align: right;
}

table.sum_table input[type="text"] {
		width:100px;
}





/* Style the tab */
div.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the links inside the tab */
div.tab a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

/* Change background color of links on hover */
div.tab a:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
div.tab a:focus, .active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
	  background:#fff;
}


#gobutton {
	background-color: #666;
    color: #fff;
    padding: 15px;
    text-decoration: none;
}

#delbutton {
	background-color: red;
    color: #fff;
    padding: 15px;
    text-decoration: none;
	
}
#editbutton {
	background-color: orange;
    color: #fff;
    padding: 15px;
    text-decoration: none;
	
}

#newchbutton {
	background-color: #2980b9;
    color: #fff;
    padding: 15px;
    text-decoration: none;
	
}
#newrcbutton {
	background-color: green;
    color: #fff;
    padding: 15px;
    text-decoration: none;
	
}
#printbutton {
	background-color: orange;
    color: #fff;
    padding: 15px;
    text-decoration: none;
	
}
.open_submenu{
	display:none;
}

.good_prices{
	position: absolute;
    z-index: 100;
    margin-left: 36px;
	margin-top: -51px;
	background: #fff;
    padding: 20px;
	box-shadow: 2px 1px 3px rgb(0 0 0 / 86%);
}


@media print {
  body * {
    visibility: hidden;
  }
  table {
	  box-shadow:none !important;
  }
   #section-no-print, #section-no-print *{
	visibility: hidden !important;
  }
  #section-to-print, #section-to-print * {
    visibility: visible;
  }
  #section-to-print {
    position: absolute;
    left: 0;
    top:50px;
  }
  #titleprint {
	  visibility: visible;
	   position: absolute;
    left: 0;
    top: 0;
  }
}

@media only screen and (max-width: 760px),
(min-device-width: 200px) and (max-device-width: 760px)  {

/*menu*/

.page-main {
    margin: 0 auto;
    padding: 15px;
    max-width: 1600px;
}

form select, form input{
	width: 100% !important;
    padding: 0px;
	border-radius: 0px !important;
	-webkit-border-radius:0px !important;
	 -webkit-appearance: none;
	 margin-bottom:10px !important;
}
.menu-container{
	
	width:100%;
}


.main-content{
    background-color: #333;
    display: block !important;
    height: 40px;
}

.main-content #sidebar-toggle {
    //background: #DF314D;
    border-radius: 3px;
    display: block;
    position: relative;
    padding: 10px 7px;
    float: left;
	margin-top: 4px;
}

.main-content #sidebar-toggle .bar {
    display: block;
    width: 18px;
    margin-bottom: 3px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
}

ul.menu{
	position: absolute;
    left: -70%;
    background: #666;
    width: 70%;
    height: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
	-webkit-transition: left 0.4s ease-in-out;
    -moz-transition: left 0.4s ease-in-out;
    -ms-transition: left 0.4s ease-in-out;
    -o-transition: left 0.4s ease-in-out;
    transition: left 0.4s ease-in-out;
	z-index:100;
}
ul.menu.open-sidebar {
    left: 0;
}

ul.menu li{
	float:none;
	display:block;
}

li.user {
    left: 16px;
}

ul.menu li.dropdown{
	float:none;
	display:block;
}

ul.menu li a:hover, .dropdown:hover .dropbtn {
    background-color: unset !important;
}

.dropdown:hover .dropdown-content {
    //display: unset !important;
	display:none;
}

.open_submenu {
    display: inline;
}
.mobile_hide{
	display:none !important;
}
	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	#goods_list td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 40%; 
		font-size: 15px;
	}
	
	#invoices_list td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 30%; 
		font-size: 15px;
	}
	
	#invoice_items td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 45%; 
		font-size: 15px;
	}
	
	#goods_list td:before, #invoices_list td:before, #invoice_items td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		//width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	
	#goods_list td:nth-of-type(1):before { content: "Κωδικός"; }
	#goods_list td:nth-of-type(2):before { content: "Προμηθευτής"; }
	#goods_list td:nth-of-type(3):before { content: "Κατηγορία"; }
	#goods_list td:nth-of-type(4):before { content: "Όνομα"; }
	#goods_list td:nth-of-type(5):before { content: "Συσκευασία"; }
	#goods_list td:nth-of-type(6):before { content: "Τελευτ. τιμή"; }
	#goods_list td:nth-of-type(7):before { content: "Τελευτ έκπτωση"; }
	#goods_list td:nth-of-type(8):before { content: "Τελ. Πραγμ. Τιμή"; }
	#goods_list td:nth-of-type(9):before { content: "Επιλογές"; }
	
	#invoices_list td:nth-of-type(1):before { content: "Προμηθευτής"; }
	#invoices_list td:nth-of-type(2):before { content: "Ημ/νία"; }
	#invoices_list td:nth-of-type(3):before { content: "Αριθμός"; }
	#invoices_list td:nth-of-type(4):before { content: "Καθαρή αξία"; }
	#invoices_list td:nth-of-type(5):before { content: "Έκπτωση"; }
	#invoices_list td:nth-of-type(6):before { content: "ΦΠΑ"; }
	#invoices_list td:nth-of-type(7):before { content: "Τελική αξία"; }
	#invoices_list td:nth-of-type(8):before { content: "Επιλογές"; }
	
	#invoice_items td:nth-of-type(1):before { content: "Κωδικός"; }
	#invoice_items td:nth-of-type(2):before { content: "Όνομα"; }
	#invoice_items td:nth-of-type(3):before { content: "Μον. Μετρ."; }
	#invoice_items td:nth-of-type(4):before { content: "Ποσότητα"; }
	#invoice_items td:nth-of-type(5):before { content: "Τιμή"; }
	#invoice_items td:nth-of-type(6):before { content: "Αξία προ έκπτωσης"; }
	#invoice_items td:nth-of-type(7):before { content: "Έκπτωση "; }
	#invoice_items td:nth-of-type(8):before { content: "Έκπτωση"; }
	#invoice_items td:nth-of-type(9):before { content: "ΦΠΑ"; }
	#invoice_items td:nth-of-type(10):before { content: "ΦΠΑ"; }
	#invoice_items td:nth-of-type(11):before { content: "Αξία"; }

	
div.tab {
    display:grid;
}	

#price_values table, #price_values tbody, #quantity_values table, #quantity_values tbody , #quantity_cat_values table, #quantity_cat_values tbody{
	width:100%;
}
#price_values table, #price_values tr, #price_values td, #quantity_values table, #quantity_values tr, #quantity_values td{
	display:flex;
}

#quantity_values table,#quantity_values tbody, #quantity_cat_values table,#quantity_cat_values tbody{
	display:block;
	    overflow-x: auto;
}	

#quantity_values tr, #quantity_cat_values tr{
	overflow-x: auto;
	display:inline-flex;
}
#quantity_values td, #quantity_values th, #quantity_cat_values td, #quantity_cat_values th{
	width:100px;
	padding:6px 2px;
	text-align:center;
	display: block;
}


}