
body{
    background: #fff;
    position: relative;
}
body:after{
    content: "";
    position: fixed;
    top: 0;
    right: -64px;
    height: 64px;
    width: 64px;
    background-image: url("../images/loading.gif");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    padding: 20px;
    z-index: 9999;

    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}
body.loading:after{
    right: 0;
}

.blue{
    color: #3071a9;
}

.spoiler-wrapper .spoiler-content{
    display: none;
}
.spoiler-wrapper.active .spoiler-content{
    display: block;
}
.spoiler-wrapper .spoiler-opener{
    color: #3071a9;
    text-decoration: underline;
}
.spoiler-wrapper .spoiler-opener:hover{
    text-decoration: none;
}
.spoiler-wrapper.active .spoiler-opener{
    text-decoration: none;
}

#header{
    padding: 10px 0;
    text-align: center;
    background: #efefef;
    line-height: 100%;
    position: relative;
}
.logo-wrapper{
    line-height: 24px;
    font-size: 24px;
}
.logo{
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}
.logo:hover{
    text-decoration: underline;
}
.user-unlogin-link-block{
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 9999;
}
a{
    text-decoration: underline;
    color: #3071a9;
}
a:hover{
    text-decoration: none;
}
a.btn{
    text-decoration: none;
}

.dynamic-update-orders-table{
    position: fixed;
    display: block;
	font-size: 12px;
    text-align: center;
    background: #fff;
    color: #fff;
    width: 100px;
    top: 2vw;
    right: 2vw;
    z-index: 9998;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;

    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}
.dynamic-update-orders-table > span{
	display: block;
    background: #5cb85c;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,1);

    -webkit-animation: opacity  500ms infinite ease-in-out;
    animation: opacity  500ms infinite ease-in-out;
}
.dynamic-update-orders-table .glyphicon{
	font-size: 24px;
}
.dynamic-update-orders-table.active{
    top: 0;
    opacity: 1;
}
@-webkit-keyframes opacity {
    from {opacity: 1;}
    50% {opacity: 0.5;}
    to {opacity: 1;}
}
@keyframes opacity {
    from {opacity: 1;}
    50% {opacity: 0.5;}
    to {opacity: 1;}
}


.main{
    padding: 20px;
}
.orders-table{
    width: 100%;
    font-size: 12px;
}
.orders-table td{
    vertical-align: top;
}
.orders-table-header td{
    background: #333!important;
    color: #fff!important;
    font-weight: bold;
}
.order-item-status-select{
    max-width: 100%;
}
.orders-table .order-item[data-status="1"] td{ background: #99ff99!important; }

.orders-table .order-item[data-status="5"] td,
.orders-table .order-item[data-status="6"] td,
.orders-table .order-item[data-status="7"] td,
.orders-table .order-item[data-status="8"] td,
.orders-table .order-item[data-status="9"] td,
.orders-table .order-item[data-status="10"] td { background: #dddddd!important; }

.orders-table .order-item[data-archive="1"] td{ background: #ffa5a5!important; }
.orders-table .order-item[data-archive="1"] .order-item-update-archive-button[data-archive="1"]{ display: none; }
.order-item-update-archive-button[data-archive="0"]{ display: none; }
.orders-table .order-item[data-archive="1"] .order-item-update-archive-button[data-archive="0"]{ display: block; }

.orders-table td:nth-child(1){ width: 4%; }
.orders-table td:nth-child(2){ width: 6%; }
.orders-table td:nth-child(3){ width: 5%; }
.orders-table td:nth-child(4){ width: 25%; }
.orders-table td:nth-child(5){ width: 25%; }
.orders-table td:nth-child(6){ width: 5%; }
.orders-table td:nth-child(7){ width: 25%; }
.orders-table td:nth-child(8){ width: 5%; }

.orders-table.orders-inwork-table td:nth-child(1){ width: 2%; }
.orders-table.orders-inwork-table td:nth-child(2){ width: 2%; }
.orders-table.orders-inwork-table td:nth-child(3){ width: 6%; }
.orders-table.orders-inwork-table td:nth-child(4){ width: 5%; }
.orders-table.orders-inwork-table td:nth-child(5){ width: 25%; }
.orders-table.orders-inwork-table td:nth-child(6){ width: 25%; }
.orders-table.orders-inwork-table td:nth-child(7){ width: 5%; }
.orders-table.orders-inwork-table td:nth-child(8){ width: 25%; }
.orders-table.orders-inwork-table td:nth-child(9){ width: 5%; }

.orders-table td:nth-child(8) .btn{
    padding: 3px 9px;
}

.order-item-comment{
    width: 100%;
    min-width: 200px;
    height: 80px;
}

.edit-field{
    display: none;
}
.order-item.edit .edit-field{
    display: block;
}
.order-item.edit .info-field{
    display: none;
}

.input-desc{
    display: inline-block;
    vertical-align: top;
    width: 165px;
}
input[type="text"], select{
    width: 150px;
}
textarea{
    width: 200px;
    height: 200px;
}
.edit-image-block{
    display: inline-block;
    vertical-align: top;
    padding: 20px;
    background: #efefef;
    border: 1px solid #bbb;
    margin: 0 10px 10px 0;
    position: relative;
}
.remove-edit-image-block-button{
    position: absolute;
    right: 3px;
    top: 3px;
    padding: 0 4px;
}

.image-block-result{
    text-align: right;
}

.status-view-block{
    height: 10px;
    font-size: 0;
}
.status-view-block > div{
    display: inline-block;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    height: 100%;
    width: 10%;
    opacity: 0.2;
}
.status-view-block > div.active{
    opacity: 1;
}
.status-view-block > div:last-child{
    border-right: 1px solid #999;
    border-radius: 0 5px 5px 0;
}
.status-view-block > div:first-child{
    border-radius: 5px 0 0 5px;
    border-left: 1px solid #999;
}
.status-view-block > div:nth-child(1){ background: #003200; }
.status-view-block > div:nth-child(2){ background: #006400; }
.status-view-block > div:nth-child(3){ background: #329600; }
.status-view-block > div:nth-child(4){ background: #64c800; }
.status-view-block > div:nth-child(5){ background: #96ff00; }
.status-view-block > div:nth-child(6){ background: #ffff00; }
.status-view-block > div:nth-child(7){ background: #ffc800; }
.status-view-block > div:nth-child(8){ background: #ff9600; }
.status-view-block > div:nth-child(9){ background: #ff6400; }
.status-view-block > div:nth-child(10){ background: #ff0000; }

.orders-table-filter{
    margin: 20px 0;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #efefef;
}
.orders-table-filter-item{
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #ddd;
    vertical-align: top;
    white-space: nowrap;
}
.orders-table-filter > .orders-table-filter-item:last-child{
    margin-right: 0;
    border-right: none;
    padding-right: 0;
}
.filter-status-item{
    display: inline-block;
    width: 160px;
    vertical-align: top;
    font-size: 12px;
}
.orders-table-filter .btn{
    padding: 1px 10px;
}

.single-update-order-button-block{
    position: fixed;
    padding: 10px 15px;
    left: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,1);
    width: 100%;
}
.single-update-order-button-block-margin{
    height: 40px;
}

.find-order-by-number-response[data-status='ok']{
    color: green;
}
.find-order-by-number-response[data-status='fail']{
    color: red;
}


.report-block{
	border-bottom: 3px solid #333;
	padding-bottom: 40px;
	margin-bottom: 40px;
}
.report-block-item{	
	display: inline-block;
	vertical-align: middle;
	margin-right: 20px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	background: #fcfcfc;
}
.report-table{
	width: auto;
}
.report-table td{
	vertical-align: middle!important;
}
.report-table tr > td:nth-child(2){
	font-weight: bold;
}
.funnel-item{
	background: #ddd;
	max-width: 100%;
	width: 160px;
	position: relative;
}
.funnel-item-in{
	background: #00FFFF;
	white-space: nowrap;
	color: #000;
	font-size: 12px;
	line-height: 20px;
}
.funnel-item-in-right{
	position: absolute;
	right: 0;
	top: 0;
}
.piechart{
	width: 500px;
	height: 300px;
	max-width: 100%;
}


.funnel-report-block-item{
	text-align: center;
}























