html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	font-family: Verdana, 'Geneva CE', lucida, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

input {
	font: inherit;
}

header {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	height: 30px;
	line-height: 30px;
	background-color: lightgray;
}

footer {
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	height: 20px;
	padding: 5px 10px;
	line-height: 20px;
	background-color: lightgray;
}

section#content {
	position: absolute;
	top: 30px;
	bottom: 0px;
	left: 0px;
	right: 250px;
	overflow: auto;
	background-color: #3484d2;
}

aside#sidebar {
	position: absolute;
	width: 228px;
	top: 30px;
	bottom: 0px;
	right: 0px;
	padding: 10px;
	overflow: auto;
	background-color: white;
	color: black;
	border-left: 2px solid lightgray;
}

#content header, #content footer {
	background: gray;
	color: white;
	height: 50px;
	line-height: 50px;
}

#content header.overLimit {
	background-color: red;
}

#list-container .overLimit a {
	color: red;
}

section#sale {
	position: absolute;
	top: 50px;
	bottom: 60px;
	width: 100%;
	overflow: auto;
}

section#history {
	position: absolute;
	top: 0px;
	bottom: 60px;
	width: 100%;
	overflow: auto;
}

section#wastes, section#bills, section#inventory, section#goods, section#stock {
	position: absolute;
	top: 0px;
	bottom: 60px;
	width: 100%;
	overflow: auto;
}

section#goods {
	bottom: 0px;
}

section#inventory {
	font-size: 90%;
}

h1 {
	color: white;
}

#ajax-spinner {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 55px;
	margin-left: -27px;
	margin-top: -28px;
	background: url('../images/spinner.gif') no-repeat 50% 50%;
	font-size: 0;
	z-index: 123456;
	display: none;
}

div.flash {
	color: black;
	background: #FFF9D7;
	border: 1px solid #E2C822;
	padding: 1em;
	margin: 1em 0;
	z-index: 100;
	position: relative;
}

a[href^="error:"] {
	background: red;
	color: white;
}

/*form th, form td {
	vertical-align: top;
	font-weight: normal;
}

form th {
	text-align: right;
}

form .required label {
	font-weight: bold;
}*/

form .error {
	color: #D00;
	font-weight: bold;
}

html.js .jshidden {
	display: none;
}


/**
 * modalni okno
 */
#modal-window .overlay {
	position: fixed;
	z-index: 10000;
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 0.5;
	-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
	filter: alpha(opacity=50);
}

#modal-window .window {
	position: absolute;
	z-index: 10001;
	top: 0px;
	left: 50%;
	width: 600px;
	height: 500px;
	margin-left: -300px;
	margin-top: 50px;
	background: white;
}

#modal-window .window header {
	background: gray;
	color: white;
	padding: 0 10px;
}

#modal-window .window .content {
	overflow: auto;
	position: absolute;
	top: 30px;
	bottom: 0px;
	border: 2px solid gray;
	padding: 10px;
	width: 576px;
}

#modal-window .window header ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#modal-window .window header li {
	float: left;
}

#modal-window .window header li.right {
	float: right;
}

#modal-window .window header li a {
	background-position: 10px 0px;
	background-repeat: no-repeat;
	padding-left: 35px;
	color: white;
	text-decoration: none;
}

#modal-window .window header li a:hover {
}


nav#main-menu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

nav#main-menu li {
	float: left;
}

nav#main-menu li.right {
	float: right;
}

nav#main-menu li.current a {
	background-color: #3484d2;
	color: white;
}

nav#main-menu a {
	color: black;
	padding: 5px 1ex;
	text-decoration: none;
}

nav#main-menu a:hover {
	background-color: gray;
	color: white;
}

nav#main-menu a img {
	position: relative;
	top: 5px;
}

nav#main-menu li a {
	background-position: 10px 5px;
	background-repeat: no-repeat;
	padding-left: 35px;
}

li.homepage a { background-image: url('../images/home.png'); }
li.sale a { background-image: url('../images/cash_register.png'); }
li.history a { background-image: url('../images/history.png'); }
li.wastes a { background-image: url('../images/wastes.png'); }
li.bills a { background-image: url('../images/bill.png'); }
li.goods a { background-image: url('../images/goods.png'); }
li.stock a { background-image: url('../images/stock.png'); }
li.close a { background-image: url('../images/close.png'); }
li.lock a { background-image: url('../images/lock.png'); }
li.unlock a { background-image: url('../images/unlock.png'); }

footer .right {
	float: right;
}

body > footer a {
	color: gray;
	text-decoration: none;
}

body > footer a:hover {
	text-decoration: underline;
}



.panel-container {
	width: 100%;
	height: 100%;
}

.panel-container form {
	height: 100%;
}

.left-panel {
	width: 600px;
	height: 100%;
	overflow: auto;
	float: left;
	padding: 0 10px;
	border-right: 1px solid lightgray;
}

.right-panel {
	height: 100%;
	overflow: auto;
	padding: 0 10px;
	border-left: 1px solid lightgray;
	position: relative;
	left: -1px;
}



input#autocomplete, select[name=item] {
	width: 100%;
}



table.data-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	white-space: nowrap;
}

table.data-table thead { position: relative; }
table.data-table thead th { background-clip: padding-box; }

table.data-table th, table.data-table td {
	border: 1px solid lightgray;
	padding: 2px 5px;
	vertical-align: top;
}

table.data-table th {
	background-color: blue;
	color: white;
	text-align: left;
}

table.data-table tr.credit {
	background-color: #9f9;
}

table.data-table tr:nth-child(even) {
	background-color: white;
}

table.data-table tr:nth-child(odd) {
	background-color: #eee;
}

table.data-table tr:hover {
	background-color: #cfc;
}

table.data-table th a {
	color: white;
	text-decoration: underline;
}

table.data-table .check { width: 1px; }
table.data-table .code { width: 1px; text-align: right; }
table.data-table .name { width: 90%; }
table.data-table .amount { width: 1px; text-align: right; }
table.data-table .price { width: 1px; text-align: right; }
table.data-table .goodsParts { }
table.data-table td.goodsParts { font-size: 80%; }
table.data-table .unit { width: 1px; text-align: right; }
table.data-table .limit { width: 1px; text-align: right; }
table.data-table .quantity { width: 1px; text-align: right; }
table.data-table .start { width: 1px; text-align: right; }
table.data-table .sum { width: 1px; text-align: right; }
table.data-table .stock { width: 1px; text-align: right; }
table.data-table .stock input { width: 100%; }
table.data-table .difference-stock { width: 1px; text-align: right; }
table.data-table .diff-stock-price { width: 1px; text-align: right; }
table.data-table .difference-start { width: 1px; text-align: right; }
table.data-table .diff-start-price { width: 1px; text-align: right; }
table.data-table .operations { width: 1px; }

table.data-table .account { width: 90%; }
table.data-table .eet { width: 1px; text-align: right; }
table.data-table .datetime { width: 1px; }
table.data-table .payed { width: 1px; text-align: right; }
table.data-table .operations { width: 1px; }


table.data-table tr.outofstock {
	background-color: red;
	color: white;
}

#stockItemsTable tr.hidden {
	display: table-row;
	color: #ccc;
}



table.form-table {
	margin: 0 auto;
}

table.form-table th {
	text-align: left;
	vertical-align: top;
}

table.form-table ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}



#content header ul, #content footer ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#content header ul li, #content footer ul li {
	padding: 0 1ex;
	float: left;
}

#content header ul li.right, #content footer ul li.right {
	float: right;
}

#content header {
	font-size: 150%;
}

#content header a, #content footer a {
	color: white;
	padding: 15px 1ex;
	text-decoration: none;
}

#content header a:hover, #content footer a:hover {
	background: lightgray;
	color: black;
}

#content footer {
	padding: 5px 0;
}

#content footer ul li {
	padding: 0;
}

#content a#payAll {
	font-size: 150%;
}

#content .total-sum {
	font-size: 150%;
	padding: 0 1ex;
	font-weight: bold;
}




.ui-autocomplete {
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
}

* html .ui-autocomplete {
	height: 400px;	/* IE */
}



input[name=sum], input[name=payed] {
	font-size: 200%;
	font-weight: bold;
}



table.data-table tr.group {
	background-color: #ddd;
}

table.data-table tr.group:hover {
	background-color: #cfc;
}

table.data-table .hidden {
	display: none;
}


ul.groups {
	list-style-type: none;
	margin: 20px 0 0 0;
	padding: 0;
}

ul.groups li {
	margin: 0;
	padding: 0;
}


li.info {
	font-size: 60%;
}

#content header .temporary a:hover {
	background: none;
	text-decoration: underline;
	color: white;
}



form.confirmation-dialog {
	z-index: 20000;
	position: fixed;
	background: white;
	padding: 20px;
	border: 2px solid black;
	text-align: center;
	margin: 100px 0 0 -220px;
	width: 400px;
	left: 50%;
}


.delete i.fa, .move i.fa, .pay i.fa, .settings i.fa, .detail i.fa, .print i.fa, .repeat i.fa {
	color: #999;
}

.delete:hover i.fa { color: red; }
.move:hover i.fa { color: blue; }
.settings:hover i.fa { color: blue; }
.pay:hover i.fa { color: yellow; }
.detail:hover i.fa { color: green; }
.print:hover i.fa { color: green; }
.repeat:hover i.fa { color: green; }


.repriced {
	color: blue;
	font-weight: bold;
}


.cancelled {
	text-decoration: line-through;
}


a.slider-setter {
	text-decoration: none;
	color: blue;
}

a.slider-setter:hover {
	text-decoration: underline;
}


.hint {
	color: gray;
}


span.desc {
	font-size: 80%;
	color: gray;
	float: right;
}


.price-updated {
	font-size: 80%;
	color: gray;
}

.outofstock .price-updated {
	color: lightgray;
}

#OTAfilter {
	width: 100%;
	background-color: #6f6;
	color: black;
	padding: 5px 0;
}


.item-info a {
	color: black;
}

.noinfo {
	visibility: hidden;
}

.noinfo a {
	color: gray;
}

#items tr:hover .noinfo {
	visibility: visible;
}

.credit {
}

.deleted {
	font-size: 80%;
	color: red;
	font-style: italic;
}

