@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: local('Roboto Light'), local('Roboto-Light'), url('/media/fonts/Roboto-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: local('Roboto Medium'), local('Roboto-Medium'), url('/media/fonts/Roboto-Medium.ttf') format('truetype');
}
@font-face {
	font-family: 'mobile_manager_icons';
	font-style: normal;
	font-weight: 400;
	src: url(/media/fonts/mobile_manager_icons.ttf) format('truetype');
}

@media only screen
and (min-device-width: 360px)
and (orientation: portrait){
	/*body{
		width:360px;
		min-width:360px;
	}*/
}

*{
	margin:0;
	padding:0;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
}
*:focus{
	outline:0;
}
html,
body{
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	overflow:hidden;
}
body{
	font-family:"Roboto", sans-serif;
	font-size:11px;
	font-weight:300;
	background:#fff;
	color:#343a40;
}
li{
	list-style:none;
}
h1{
	font-size:1em;
	line-height:1.5em;
	font-weight:500;
	text-align:center;
	text-transform:uppercase;
}
h2{
	font-size:1.5em;
	line-height:2em;
	font-weight:500;
}
h3{
	font-size:1.25em;
	font-weight:500;
	padding:.5em 0 0;
	text-align:center;
}
h3 a{
    color:#00adef;
}

/* content */
#content{
	position:relative;
	height:100%;
}
#content > div{
	display:none;
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
}
#content > #login,
#content > #loader,
#content > #taskbar{
	display:block;
	z-index:99;
}

.fixedHeader{
	position:absolute;
	top:0;
	left:0;
	right:0;
	z-index:2;
	height:5em;
	background:#e5e5e5;
}
.fixedHeader .prev,
.fixedHeader .next{
	display:block;
	width:3em;
	height:3em;
	padding:1em;
	float:left;
}
.fixedHeader .next{float:right;}
.fixedHeader .prev:before,
.fixedHeader .next:before{
	display:block;
	height:100%;
	font:3em/1em mobile_manager_icons;
	text-align:center;
	content:"4";
}
.fixedHeader .next:before{content:"2";}
.fixedHeader .prev:active:before,
.fixedHeader .next:active:before,
.fixedHeader .prev.active:before,
.fixedHeader .next.active:before{
	color:#00adef;
}
.fixedHeader .today{
	margin:0 5em;
	height:100%;
}
.fixedHeader .pe_name{
	font-size:1em;
	line-height:1.5em;
	font-weight:300;
	text-align:center;
}
.fixedHeader .date{
	font-size:1.5em;
	line-height:1em;
	font-weight:300;
	text-align:center;
}

.filter{
	position:absolute;
	top:-9em;
	left:0;
	right:0;
	z-index:1;
	padding:0 1em;
	background:#fff;
	border-bottom:1px solid #000;
	transition:top 250ms ease-in-out;
}
.filter.open{
	top:5em;
}

.scrollableContent{
	position:absolute;
	top:5em;
	left:0;
	right:0;
	bottom:0;
	border:0 solid #fff;
	padding:1em;
	overflow-y:auto;
	overflow-x:hidden;
	-webkit-overflow-scrolling:touch;
}

.scrollableContent.change_bu,
.scrollableContent.top {
    top:4.5em;
}

/* login */
#login .scrollableContent{
	top:0;
}
#login .logo{
	/*width:100%;*/
	margin: 1em;
}

#login .copyright{
	position:absolute;
	right:2em;
	bottom:2em;
	color:#000;
	font-size:1em;
}

#login h2{
	padding:1em 0 1em 0;
	line-height:1.3em;
}
#content #login a{
	display:block;
	line-height:3em;
}

/* taskbar */
#content #taskbar {
    display:flex;
    position:fixed;
	justify-content: space-around;
	align-items: center;
    top:auto;
    bottom:0;
    left:0;
    width:100%;
    background:#343a40;
    height:60px;
}
#taskbar button{
	float:left;
	color:#fff;
	background:transparent;
}
#taskbar button:before{
	color:#fff;
	font:3em/1em mobile_manager_icons;
}
#taskbar button.active:before{
	color:#00adef;
}
#taskbar button:active:before{
	color:#9bc63d;
}
#taskbar button.financial_reports:before{
	content:'r';
}
#taskbar button.working_time:before{
	content:'w';
}
#taskbar button.open_tables:before{
	content:'t';
}
#taskbar button.archive_of_pos_system_receipts:before{
	content:'i';
}
#taskbar button.in_stock:before{
	content:'s';
}
#taskbar button.settings:before{
	content:'p';
}

/* loader */
#loader > div{
	position:relative;
	height:100%;
	background:#fff;
	display:-webkit-box;
	-webkit-box-pack:center;
	-webkit-box-align:center;
	display:box;
	box-pack:center;
	box-align:center;
}
.spinner{
	text-align:center;
}
.spinner > div {
  width:6vw;
  height:6vw;
  background-color: #333;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
  animation: bouncedelay 1.4s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
@-webkit-keyframes bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0.0) }
  40% { -webkit-transform: scale(1.0) }
}
@keyframes bouncedelay {
	0%, 80%, 100% { 
		transform: scale(0.0);
		-webkit-transform: scale(0.0);
	} 40% { 
		transform: scale(1.0);
		-webkit-transform: scale(1.0);
	}
}
#loader span{
	position:relative;
	top:1em;
	font-size:2em;
}

table{
	width:100%;
	border-collapse:collapse;
}
table thead{
	border-bottom:1px solid #000
}
table th,
table td{
	padding:0 .5em;
}
table th{
	font-weight:500;
	height:2em;
	text-align:left;
}
table td{
	height:2em;
}
table tbody tr:nth-child(odd){
	background:#e5e5e5;
}
.graph td{
    width: 25%
}
.graph.height-two td{
    height:2em;
}
.graph span{
    line-height:1.5em;
    display:inline-block;
}
.graph .graphtd span{
	background:#00adef;
}
.graph td.even{
    background-color:#fff;
}
@media (max-width: 920px) {
    .graph.height-two td .year {
        display:none;
    }
}

/* in_stock */
.in_stock_table .orange{
	background:orange;
	color:#fff;
}
.in_stock_table .magenta{
	background:#eb3e97;
	color:#fff;
}

/* financial_reports */
.financial_reports_hours_table td.day-header,
.financial_reports_week_table td.day-header{
    text-align:center;
    color:#fff;
    background-color:#333;
}

.financial_reports_hours_table td.graphtd,
.financial_reports_week_table td.graphtd{
	width:50%;
    padding: 2px 0;
}

.financial_reports_hours_table td.valuetd,
.financial_reports_week_table td.valuetd{
	text-align:right;
    width:25%;
}

.working_time_table td:nth-child(5),
.working_time_table th:nth-child(5),
.working_time_table td:nth-child(6),
.working_time_table th:nth-child(6),
.in_stock_table td:nth-child(2),
.in_stock_table th:nth-child(2),
.in_stock_table td:nth-child(3),
.in_stock_table th:nth-child(3),
.financial_reports_payments_table td:nth-child(2),
.financial_reports_payments_table th:nth-child(2),
.financial_reports_payments_table td:nth-child(3),
.financial_reports_payments_table th:nth-child(3),
.financial_reports_app_table td:nth-child(2),
.financial_reports_app_table th:nth-child(2),
.financial_reports_workers_payments_table td:nth-child(3),
.financial_reports_workers_payments_table th:nth-child(3),
.financial_reports_workers_payments_table td:nth-child(4),
.financial_reports_workers_payments_table th:nth-child(4),
.financial_reports_week_table td:nth-child(2),
.financial_reports_week_table th:nth-child(2),
.financial_reports_hours_table td:nth-child(2),
.financial_reports_hours_table th:nth-child(2),
.financial_reports_article_groups_table td:nth-child(2),
.financial_reports_article_groups_table th:nth-child(2),
.financial_reports_article_groups_table td:nth-child(3),
.financial_reports_article_groups_table th:nth-child(3),
.financial_reports_article_families_table td:nth-child(2),
.financial_reports_article_families_table th:nth-child(2),
.financial_reports_article_families_table td:nth-child(3),
.financial_reports_article_families_table th:nth-child(3),
.financial_reports_articles_table td:nth-child(2),
.financial_reports_articles_table th:nth-child(2),
.financial_reports_articles_table td:nth-child(3),
.financial_reports_articles_table th:nth-child(3){
	text-align:right;
}

.financial_reports_payments_table td:nth-child(2),
.financial_reports_payments_table td:nth-child(3),
.financial_reports_app_table td:nth-child(2),
.financial_reports_workers_payments_table td:nth-child(3),
.financial_reports_workers_payments_table td:nth-child(4),
.financial_reports_article_groups_table td:nth-child(3),
.financial_reports_article_families_table td:nth-child(3),
.financial_reports_articles_table td:nth-child(3){
    width:5em;
}

/* working_time */
#working_time th,
#working_time td{
	width:20%;
}

.working_time_table .green{
	background:#9bc63d;
	color:#fff;
}
.working_time_table .magenta{
	background:#eb3e97;
	color:#fff;
}

/* invoice & open_tables */
.invoice{
	position:relative;
	display:block;
	background:#e5e5e5;
	min-height:4.5em;
	margin-bottom:1em;
	padding:1em;
}
.invoice.magenta{
	background:#eb3e97;
	color:#fff;
}
.invoice.orange{
	background:orange;
	color:#fff;
}
.invoice:after{
	visibility:hidden;
	display:block;
	font-size:0;
	content:" ";
	clear:both;
	height:0;
}
.invoice .name,
.invoice_num{
	display:block;
	float:left;
	font-size:1.5em;
	line-height:1em;
	font-weight:500;
    padding-bottom: 0.4em;
    padding-right: 1.3em;
}
.invoice .price{
	display:block;
	float:right;
	font-size:2em;
	line-height:1em;
	font-weight:500;
	padding-right:1.5em;
    color: #00adef;
    padding-bottom: 0.7em;
}
.invoice .datetime{
	display:block;
	font-size:1em;
	line-height:1em;
    bottom: 2.5em;
    position: absolute;
}
.invoice .app{
	display:block;
	font-size:1em;
	line-height:1em;
    bottom: 1em;
    position: absolute;
    font-weight:500;
}
.invoice .user{
	display:block;
	font-size:1em;
	line-height:1em;
    bottom: 1em;
    position: absolute;
    right: 4em;
}
.invoice .show_details{
	display:block;
	position:absolute;
	top:1em;
	right:1em;
	width:2em;
	height:3em;
	border:0;
	-webkit-appearance:none;
	background:transparent;
}
.invoice .show_details:before{
	display:block;
	text-align:center;
	font:3em/1em mobile_manager_icons;
	content:'2';
}
.invoice .show_details:checked:before{
	content:'3';
}
.invoice .details{
	display:none;
	float:left;
	clear:both;
	width:100%;
    padding-bottom: 3em;
}
.invoice .show_details:checked + .details{
	display:block;
}
.invoice .details .spinner{
	padding-top:1em;
}
.invoice .customer{
	clear:both;
}
.invoice .articles{
	clear:both;
	padding-top:1em;
}
.invoice .header{
	font-weight:500;
	border-bottom:1px solid #000;
}
.invoice.magenta .header, .invoice.orange .header {
	border-bottom:1px solid #FFF;
}
.invoice .header,
.invoice .cinvoice_comment,
.invoice .customer_name,
.invoice .article{
	float:left;
	width:100%;
}
.invoice .header span,
.invoice .article span,
.invoice .payment span{
	float:left;
}
.invoice .article_qty{
	width:15%;
}
.invoice .article_name{
	width:60%;
}
.invoice .payment_name{
	width:80%;
}
.invoice .article_price{
	text-align:right;
	width:25%;
}

.invoice .payment_price{
	text-align:right;
	width:20%;
}

/* settings */
#settings h2 {
    text-align:center;
}
#settings_logout_btn{
	margin-top:3em;
}
/* settings_pos_status */
#settings_pos_status th:nth-child(2),
#settings_pos_status td:nth-child(2){
	text-align:right;
}
#settings_change_locale_btn{
    margin-top:50px;
}

/* buttons */
button{
	display:block;
	width:100%;
	margin:1em 0;	
	background:#ccc;
	font-size:1em;
	height:3em;
	box-sizing:border-box;
	border:0;
}
button:hover{
	background:#4c4c4c;
}
button:active{
	background:#666;
}
button.green{
	background:#9bc63d;
	color:#fff;
}
button.green:hover{
	background:#7c9e31;
}
button.green:active{
	background:#5d7725;
}
button.magenta{
	background:#eb3e97;
	color:#fff;
}
button.magenta:hover{
	background:#bc3279;
}
button.magenta:active{
	background:#8d255b;
}
button.blue{
	background:#00adef;
	color:#fff;
}
button.blue:hover{
	background:#008abf;
}
button.blue:active{
	background:#00688f;
}

button:disabled,
button:disabled:hover{
	border:1px solid #ccc;
	background:#e5e5e5;
	color:#ccc;
}

button.deleteX{
    float: right;
	width: 3em;
}
button.deleteX span:before {
    content: 'X';
}

input{
	display:block;
	width:100%;
	height:3em;
	border:1px solid #000;
	margin-bottom:1em;
	padding:0 0.2em;
	font:1em "Roboto",sans-serif;
	color:#000;
	font-weight:300;
	-webkit-appearance:none;
	border-radius:0;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
}
.invoice.magenta input, .invoice.orange input{
	color:#FFF;
}

.login_alert {
    color: #eb3e97;
    font-size: 18px;
    font-weight: 500;
}

::-webkit-input-placeholder{
	font:1em "Roboto",sans-serif;
	color:#000;
	font-weight:300;
}
::-moz-placeholder{
	font:1em "Roboto",sans-serif;
	color:#000;
	font-weight:300;
}
:-ms-input-placeholder{  
	font:1em "Roboto",sans-serif;
	color:#000;
	font-weight:300;
}

/* show rest years link */
.show-rest {
    text-align:center;
    font-size:1.5em;
    display:block;
    width:100%;
    text-decoration:none;
    color:#000;
    margin:10px auto;
}