nav.top-bar{
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 98;
/*
	height: 1.5em;
*/
}
body{
/*
	margin-top: 2.2em;
*/
}

div.container{
	margin: 0;
	margin-top: 2.5em;
	position: relative;
	z-index: 50;
	font-size: .95rem;
	overflow: visible;
	max-height: 9000px;
/*
	border: 1px solid green;
*/
}

.top-bar .top-bar-section li:not(.has-form) a:not(.button) {
    
    line-height: 0.9125rem;
    padding: 0 1.9375rem;
}

#main-nav{
list-style-type: none;
margin: 0;
}

#main-nav li{
display: inline;
/*
margin: 0 5px 0 0;
*/
margin: 5px 1px;
padding: 0 3px;
/*
position: relative;
*/
}
#main-nav li a{
display: inline-block;
margin: 0;
padding: 5px;
font-weight: normal;
text-decoration: none;
border: 1px solid rgba(100,100,100,0.7);
}
#main-nav li a:hover{
color: #fff;
background-color: rgba(100,200,100,.2);
background-color: rgba(200,200,200,.2);
}

#main-nav li ul{
display: none;
margin: 0 0 0 0;
padding: 5px 0 5px 20px;
background-color: rgba(25, 25, 25, 1);
width: 100%;
}
#main-nav li ul li{
margin: 0;
}
#main-nav li:hover ul{
display: block;
position: absolute;
left: 0;
}
/******************/
form#filter-deliveries {
    clear: none;
    font-size: 0.8em;
    margin: 1em 10em 0 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}
#filter-deliveries div, #filter-deliveries label, #filter-deliveries input {
    clear: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}
#filter-deliveries select {
    width: auto;
    margin: 0 5px;
    padding-right: 20px;
}
#filter-deliveries select option {
/*
    line-height: 0.9125rem;
*/
margin: 0;
}
/******************/
section#left-column {
    float: left;
    width: 13.5em;
}
section#left-column.larger {
    width: 100%;
}

section#main {
    margin-left: 13.5em;
    overflow: auto;
    padding-left: 10px;
    width: auto;
}

/******************/
#left-column h1, h1.info {
    border-bottom: 2px solid #aaa;
    border-top: 2px solid #fff;
    color: #444;
    font-size: 0.95em;
    margin: 0 10px 1em 0;
    padding: 4px;
    text-transform: uppercase;
}

dl.todo {
    font-size: 0.8em;
}

dl.todo lh {
    display: block;
}

dl.todo dt::after {
    content: " :";
}
dl.todo dt {
    float: left;
    font-weight: normal;
    margin-right: 0.3em;
    padding-right: 0.3em;
    text-align: right;
    width: 70%;
}
dl.todo dt, dl.todo dd {
    background-color: #f6f6f6;
    margin: 0;
    margin-top: 1px;
}

dd, dt {
    margin: 0;
    padding: 0;
    width: auto;
}

/******************/
table#details-table{
	table-layout: auto;
	font-size: 0.95em;
    margin: 0 0 1em;
    border-collapse: separate;
    border-spacing: 1px;
}
#details-table tr td:first-child {
    border: 1px solid #ccc;
    white-space: nowrap;
}
#details-table tr td{
    border: 1px dotted #ccc;
}
#details-table tr td, #details-table tr th {
    padding: 3px;
}

#details-table thead th{
	border-bottom: 2px solid #999;
}
#details-table tfoot th{
	background-color: #fff;
	border: none;
	border-top: 2px solid #999;
}

#details-table tr.ignored td{
background: #ddd;
color: #aaa;
}
.todo-tr td, .total-tr td, .stock-tr td {
    background-color: #eee;
    border: 1px solid #999;
}
.todo-tr td {
    background-color: #ddd;
    font-weight: bold;
}

input[type="checkbox"], input[type="radio"] {
	clear: left;
	float: left;
    box-sizing: border-box;
    padding: 0;
}

/**************************/

#deliveries-detail{
	font-size: .8em;
}
#deliveries-detail ul{
	list-style-type: none;
}
#deliveries-detail h1{
	font-size: 1.8em;
}
#deliveries-detail li.order h1{
	font-size: 1.2em;
}
#deliveries-detail ul.order-items{
	font-size: .8em;
}

section.delivery{
	position: relative;
	border: 1px solid #eee;
	margin: 5px;
/*
	padding: 7px;
	padding-left: 20px;
	padding-right: 20px;
*/
	width: 70%;
}

/****************************/

section.delivery > h1 {
    border-bottom: 1px dotted #ccc;
    font-size: 1.4em;
/*
    margin: 0 -1.4em;
*/
    padding: 0.3em 20px;
}
section.delivery h1 {
    border-bottom: 1px dotted #eee;
    font-size: 1.4em;
/*
    margin: 0;
    margin: 0 -0.9em;
*/
}
h1 {
    color: #444;
    font-size: 2em;
}

/*****************************/

section.delivery h2 {
    font-size: 1.2em;
}
.delivery-price {
    border-left: 1px dotted #ccc;
    line-height: 3.3em;
    padding: 7px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 4.5em;
}

/*****************************/
.delivery ul.orders, .delivery>section{
	margin-left: 20px;
}
.order-details {
    float: left;
    margin: 0.3em 0 0;
}

li.order {
    font-size: 0.9em;
    list-style-type: none;
    margin: 1em 0;
    overflow: auto;
    position: relative;
}

.order h2.order-price {
    margin-top: -1px;
}
.order h2.order-price, .order h2.order-number {
    border: 1px solid #ccc;
    color: #666;
    margin: 0;
    padding: 3px;
    text-align: center;
    width: 4em;
    font-size: 1.1em;
}
.order h1.order-name, .order h2.order-price {
    margin: 0;
}



.order ul.order-items {
    float: left;
    margin: 0 0 2em 5px;
    width: 70%;
}
li.order ul {
    list-style-type: none;
}

/*****************************/
h2 {
    background: #fff none repeat scroll 0 0;
    color: #e32;
    font-family: "Gill Sans","lucida grande",helvetica,arial,sans-serif;
    font-size: 190%;
}
.global-price {
    position: absolute;
    right: 0;
    top: 6px;
    width: 4.5em;
    z-index: 1000;
}

/*************************************/
ul#delete-empty-stocks li{
	list-style-type: none;
	clear: left;
}
ul#delete-empty-stocks li input{
	margin: .45em .5em 0 0;
}

/**************************/
/***********************************/

.g1-transactions {
	margin: none;
	padding: none;
}
.g1-transactions li{
	font-size: 85%;
	line-height: 2em;
	list-style-type: none;
	border-top: 1px dotted #ccc;
/*
	margin: 7px 0 0 0;
*/
	padding: 5px 7px 7px 7px;
	display: flex;
	color: #666;
}
.g1-transactions li.title{
	color: #555;
	font-weight: bold;
	font-style: italic;
}
.g1-transactions li div{
	flex: 1 1 30%;
	background-color: #fff;
	padding: 0 7px;
	margin: 0 3px;
	overflow: visible;
	position: relative;
}
.g1-transactions li div.receivers:before{
	content:"\2192"; /*&rarr;*/
	position: absolute;
	left: -25px;
}
.g1-transactions li.tx-pending{
	background-color: #fafafa;
	color: #999
}
.g1-transactions li div{
	background-color: transparent;
}
.g1-transactions li div.datetime,
.g1-transactions li div.amount{
	flex: 1 1 10%;
}
.g1-transactions li span.amount{
	background-color: #ccc;
	border-radius: 50px;
	padding: 0 7px 3px 7px;
}
.g1-transactions li span.amount-in{
	background-color: #4a4;
	color: #eee;
}
.g1-transactions li.tx-pending span.amount-in{
	background-color: #7b7;
	color: #eee;
}
.g1-transactions li span.amount-out{
	background-color: #878;
	color: #ddd;
}
.g1-transactions li.tx-pending span.amount-out{
	background-color: #bab;
	color: #ddd;
}
.g1-transactions li div.comment{
	flex: 1 1 80%;
}
.g1-transactions li div.block-number{
	flex: 1 1 15%;
}

.detail{
	font-weight: normal;
	color: #999;
	font-size: .95em;
}

div#amount{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	padding: .5em 0;
}
div#amount span{
	text-align: center;
}
.header-block{
	text-align: center;
}

span.quantitative-amount{
	font-size: 2em;
}

sub { 
	vertical-align: sub;
	font-size: .83em;
}
/***********************/
.app-root{
    position: absolute;
    top: 2.8em;
    width: 100%;
}
.top-bar.expanded{
    height: 2.5em;
}

/*******************/

section#top{
	overflow: visible;
	max-height: 1000px;
/*
	border: 1px solid red;
*/
}

form#datepickers input.hasDatepicker{
	display: inline-block;
	width: 8em;
	height: 1.8rem;
}
div#datepick-div {
	border: 1px solid #aaa;
	padding: 10px 5px;
	border-radius: 5px;
	width: 23rem;
	margin-bottom: 5px;
	position: absolute;
	z-index: 10000;
	background-color: #fafafa; 
	font-size: .9em;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  
}
form#datepickers label{
	display: inline-block;
	margin: 0 5px;
}
form#datepickers input{
	margin: 0;
}
form#datepickers #submit, form#datepickers #cancel{
	display: inline-block;
	margin: 0 5px;
}
form#datepickers #submit{
	border: 1px solid #999;
	height: 1.8rem;
}
form#datepickers #submit:hover{
	background-color: #007095;
	color: #eee;
}
form#datepickers #cancel{
	position: absolute;
	top: 0;
	right: -5px;
	background-color: transparent;
/*
	border: 1px solid #ccc;
	border-radius: 50%;
*/
	border: none;
}

div#datepick-div p.last-time{
	margin: 3px 5px;
	font-size: .8em;
	color: #666;
}
div#datepick-div input.last-time{
	border: 1px solid rgba(0,0,0,.2);
	background-color: transparent;
	width: 8em;
	text-align: center;
	color: #666;
}
span#orders-dates{
	color: #666;
}


a#change-dates{
	margin-left: 5px;
}

a#toggle-last-time{
	color: #999;
	margin-left: 6px;
	font-size: .9em;
	line-height: 1.2;
	display: inline-block;
	margin-top: 6px;
}
a#toggle-last-time span#arrow{
	
	font-size: 1.3em;
	margin-right: 3px;
	line-height: 1;
	color: #aaa;
/*
	vertical-align : top
*/
}

/***********************/

table tr td.price{
	text-align: right;
	color : #666;
}

/******************************/
tr.finished td, tr.finished td label, tr.finished td input, tr.finished td button{
/*
    text-decoration: line-through;
*/
    color: #999;
    background-color: #eee;
    
}

tr.finished td button{
    border: 1px solid #999;
}

tr.line-item td, table.items th{
    padding: 0 10px;
}
table.items th{
    padding: 2px 10px;
    font-weight: normal;
}

tr.line-item form{
    position: relative;
    height: 100%;
    margin-bottom: 3px;
    overflow: auto;
}
tr.line-item button{
    padding: .7rem .7rem .5rem .7rem;
    margin: 0;
    position: absolute;
    bottom: 0;
    right: 0;
}
tr.line-item input{
    margin-bottom: 0;
    line-height: .7;
    height: 1.5rem;
}

div#dialog-confirm{
    position: fixed;
    border: 1px solid #999;
    top: 100px;
    z-index: 3000;
    left: 20%;
    width: 60%;
    padding: 10px;
    background-color: #fefefe;
    border-radius: 5px;
    display: none;
    
}
div#dialog-confirm #close-button{
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 4px;
    padding: .5em .5em .3em .5em;
}

div#loading{
    position: fixed;
    z-index: 5000;
    top: 25%;
    right: 49%;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #fff;
    padding: 10px;
    display: none;
}

#order-infos div.order-details{
    clear: both;
/*
    border: 1px solid red;
*/
}
#order-infos div.order-details div{
    float: left;
    border: 1px solid #999;
    padding: 5px;
    margin: 5px;
    border-radius: 4px;
}

section#order-items{
    clear: both;
    margin: 20px;
}

#refund-div{
    position: relative;
}

div#refund-details{
    position: absolute;
    top: 2.3rem;
    left: -1px;
    display:none;
    z-index: 4000;
    width: 300px;
    margin: 0 !important;
    background-color: #fefefe;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}
#refund-details-table{
    margin: 0;
    width: 100%;
}

#content{
    margin: 2.5em;
    padding: 5px;
}

#content div.input{
/*
    width: 100px;
*/
    float:left;
    margin-right: 10px;
/*
    width: 320px;
*/
-moz-appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
}
#content div.submit input{
    position: absolute;
    bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #999;
}
#content form{
    position: relative;
    overflow: auto;
}
