/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 31.07.2017, 9:14:28
    Author     : morozovvs
*/
.orderlist table{
    border-collapse: collapse;
}
.orderlist td,.orderlist th{
    padding: 2px;
    border: solid 1px gray;
}
.orderlist table tr.orderrow{
    cursor: pointer;
}

.orderlist table tr.orderrow:hover{
    background: #ff8;
}

.restable, .cmarket_cart_table{
    display: table;
    border-collapse: collapse;
    width: 100%;
}
.restable .thead, .cmarket_cart_table .thead{
    display: table-header-group;
    font-weight: bold;
}
.restable .tbody, .cmarket_cart_table .tbody{
    display: table-row-group;
    font-size: small;
}
.restable .row, .cmarket_cart_table .row{
    display: table-row;
}
.restable .tbody .row, .cmarket_cart_table .tbody .row{
    cursor: pointer;
}
.restable .tbody .row:nth-child(even), .cmarket_cart_table .tbody .row:nth-child(even){
    background: #fffff8;
}
.restable .tbody .row:nth-child(odd), .cmarket_cart_table .tbody .row:nth-child(odd){
    background: #f8ffff;
}

.restable .tbody .row:hover{
    background-color: #ffe0b0;
}
.restable .column, .restable .cell, .cmarket_cart_table .row>div{
    display: table-cell;
    padding: 2px;
    border: solid 1px gray;
}

.row.cmarket_addtocart{
    cursor: pointer;
}

/*Cart*/
.full .cmarket_cart_items_empty{
    display: none;
}
.empty .onfull, .full .onempty{
    display: none;
}
.cmarket_cart_item.removed{
    text-decoration: line-through;
    background-color: #ccc;
}
.cmarket_cart_item_delete{
    cursor: pointer;    
}

.cmarket_cart_summary_left{
    float: left;
}
.cmarket_cart_summary_right {
    float: right;
    font-weight: bold;
}
.cmarket_cart_summary:after{
    clear: both;
    display: block;
    content: "";
}

.cmarket_cart_summary .cmarket_cart_count_container .fname{
    width:8ch;
}
.cmarket_cart_summary .cmarket_cart_count_container .fvalue{
    width:8ch;
}

.cmarket_cart_summary .fname{
    width:18ch;
    display: inline-block;
}
.cmarket_cart_summary .fvalue{
    width: 15ch;
    text-align: right;
    display: inline-block;
}

.cmarket_cart_actions{
    text-align: center;
}
.icon-remove{
    background-image: url("../images/delete.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    width: 1em;
    height: 1em;
    display: inline-block;
}

.cmarket_overstock{
    background-color: #fcc;
}

.folder.active, .filter.active{
    background: lightgreen;
}
.filter{
    padding-left: 1em;
}

#cmpopup{
    border: solid 3px #f5f5f6;
    background: #e3e3e6;
    color: #282425;
    position: fixed;
    left:50%;
    top: 50%;
    width: 500px;
    height: 400px;
    margin-left: -250px;
    margin-top: -200px;
    word-wrap: break-word;
}
#cmpopup.addtocart {
    left: 20%;
    top: 20%;
    width: auto;
    height: auto;
    margin-left: auto;
    margin-top: auto;
    bottom: 20%;
    right: 20%;
}

#cmpopup #cmpopupclose{
    position: absolute;
    right: 1px;
    top: 1px;
    font-weight: bold;
    background: lightgray;
    border: 2px gray outset;
    display: block;
    width: 18px;
    text-align: center;
    cursor: pointer;
}

.cmacres span{
    padding-right: 2px;
    display: inline-block;
    color: #404040;
}
.cmacres .expected{
    color: #c00000;
}
.cmacres .nn{
    font-weight: bold;
    color: black;
}
.cmacres .avail,.cmacres .price{
    font-weight: bold;
    color: #008000;
}
.cmacres.ui-state-focus{
    font-weight: inherit !important;
}
.cmarket_cart.full, .results{
    /*max-width: 1200px;*/
    position: relative;
    padding: 2px;
}

div.stock_order .cell.stock, div.stock_order div.cmarket_cart_stock{
    color: #800000;
}
.stock_expect .cell.stock, div.stock_expect .cmarket_cart_stock{
    color: #c87409;
}
.stock_available .cell.stock, .cmarket_cart_item .cmarket_cart_stock{
    color: #005000;
}
.cell.stock .um{
    display: inline-block;
    min-width: 2em;
    text-align: center;
}
.cell.stock.expect {
    text-align: right;
}

body{
    font-family: calibri, helvetica, arial, sans-serif;
}

.head{
    display: block;
    height: 100px;
}
#auth{
}
.auth-param-name{
    width: 70px;
    display: inline-block;
}
#auth input[type="text"], #auth input[type="password"]{
    width: 120px;
    color: #a44;
}
#auth input[type="submit"]{
    width: 198px;
    height: 26px;
    color: #181;
}

.cmarekt_menu, .headleft{
    width: 200px;
    display: block;
    float: left;
    vertical-align: top;
}
.content,.headright{
    display: block;
    clear: right;
    overflow: hidden;
    margin: 3px;
}

.headright{
    background: url("../images/cmarket_header1.jpg") no-repeat center center;
    background-size: 100% auto;
    height: 100%;
    position: relative;
}
.headleft{
    background: #d1d0d5;
    color: #282425;
    height: 100%;
}

.content .catalog .search div{
    display: inline-block;
}

.cell.matnr, .cmarket_cart_item_code_container{
    width: 11em; /*170px;*/
}
.cell.nn{
    min-width: 11em;
}

.cmarket_cart_nn_container{
    width: 13em;
}
.cmarket_cart_nn_container input{
    width: 12em;
}

.cell.descr, .cmarket_cart_descr_container{
    min-width: 16em;
}
.cell.action{
    text-align: center;
}

.cell.qty
,.cell.avlval
,.cell.mass
,.cell.ordertime
,.cell.nds
,.cell.price
,.cell.rub
,.cell.rub_nds
,.cmarket_cart_price_container
,.cmarket_cart_sum_container
,.cmarket_cart_item_pos
,.cmarket_cart_item_quantity_container
{
    text-align: right;
}
.cmarket_cart_item_quantity_container{
    width: 6em;
}
input.cmarket_cart_item_quantity{
    width: 3em;
    text-align: right;
}
.cell.rub, .cell.nds,.cell.rub_nds
,.cmarket_money{
    width: 9em;
}

textarea.cmarket_order_notes{
    width: 50em;
    height: 6em;
}

.orderlist .orderid, .orderlist .orderinfo{
}

.orderlist .order{
}

img.actionbutton{
    height: 1.5em; 
}

.cmarket_overstock .cmarket_cart_cmpordertime{
    font-weight: bold;
    color: #ff4040;
}
.cmarket_cart_item:not(.cmarket_overstock) .cmarket_cart_cmpqty{
    font-weight: bold;
    color: #40c040;
}

.thead .row{
    background: #d1d0d5;
    color: #282425;
    text-align: center;
}

.panelright{
    float: left;
}

.cmarket_menu_item a{
    text-decoration: inherit;
    color: inherit;
}
.cmarket_menu_item{
    padding: 2px;
    margin: 10px 2px;
    border: solid 3px #f5f5f6;
    background: #d1d0d5;
    color: #282425;
    font-size: 110%;
}

.cmarket_menu_item.current{
    background: lightgreen;
}

#user{
    background: #f2f2f4;
    margin: 4px;
}

.page .value.current{
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

#contacteditform .paramname{
    display: inline-block;
    width: 6em;
}

span.cmarket_cart_um_container{
    display: inline-block;
    width: 2em;
    text-align: left;
}

.folderlist{
    display:inline-block;
    vertical-align: top;
}
.folderlist a{
    display: block;
}
.orderlist{
    display: inline-block;
    vertical-align: top;
}
.ordercontent{
    display: inline-block;
    vertical-align: top;
}


ul.pagination{
    margin: 0;
    border-radius: 4px;
    display: inline-block;
}
ul.pagination li{
    display: inline;
}
ul.pagination > li:first-child > a, ul.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
ul.pagination > li > a, ul.pagination > li > span{
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #282425;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}
ul.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, ul.pagination > .active > span:hover, ul.pagination > .active > a:focus, .pagination > .active > span:focus {
    z-index: 2;
    color: #ec1d25;
    cursor: default;
    background-color: #eff4f6;
}

.pageinfo > span{
    display: inline-block;
    vertical-align: top;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
}
.pgcontainer{
    display: inline-block;
}

.hr-right{
    text-align: right;
    color: black;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #f2f2f4;
}
.hr-right a{
    color: black;
}

.popuphead{
    position: absolute;
    background: #f9dcb0;
    padding:4px;
    height: 20px;
    left: 0;
    right: 0;
    top: 0;
}
.popupbody{
    position: absolute;
    left: 0;
    right: 0;
    top: 29px;
    bottom: 0px;
    overflow: auto;
    padding: 3px;
}

.spacer{
    background: white;
    height: 2em;
}

.newitem{
    font-weight: bold;
}

#ajaxlock{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: white url('../images/loading.gif') no-repeat no-repeat center center;
    opacity: 0.5;
    display: none;
}

.orderstatus.UNCONFIRMED{
    color: red;
}

.orderstatus.RESERVED{
    color: darkorange;
}

.orderstatus.PREPARING{
    color: darkorchid;
}

.orderstatus.PARTIAL{
    color: darkcyan;
}

.orderstatus.SHIPPED{
    color: green;
}

.fvalue, .fname{
    font-weight: bold;
}
.ordersum{
    text-align: right;
}

a.button{
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
    display: inline-block;
}

tr.contact.current{
    background: #d0e9c6;
}
#contactedit{
    border-collapse: collapse;
}

#contactedit th, #contactedit td{
    border: solid 1px darkgray;
}
#contactedit tr.user{
    color: #c00;
}

.cmarket_actions {
    margin: 0 0 4px 0;
}
.cmarket_actions * {
    margin: 0 0 0 5px;
    font-weight: bold;
}
.missing_item .cmarket_cart_descr_container {
    color: #952222;    
}

.cmarket_cart_shipment, .cmarket_cart_info{
    font-weight: bold;
}

.owncontact .ordercontact{
    color: #c00;
}

#cmpopup.orderinfo {
    width: 80%;
    height: 50%;
    left: 10%;
    top: 25%;
    margin: auto auto;
}

#top-utilities {
    background-color: #000;
    color: #fff;
    font-size: .8em;
    font-weight: bold;
    padding: 1px 10px 1px 10px;
}
.clearfix::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.tu-rigth{
    float: right;
    text-align: right;
}
.tu-left{
    float: left;
}

#top-utilities a{
    color: inherit;
}

.homenav{
    width: 150px;
    height: 90px;
    display: inline-block;
    margin-left: 0px;
    margin-top: 5px;
    position: relative;
    z-index: 3;
}
div.cmarket_menu_item {
    font-size: 1.2em;
    display: inline-block;
    width: 6em;
    background: inherit;
    margin: 0;
    padding: 20px 0px 0px 0px;
    height: 100%;
    text-align: center;
    border: solid 1px lightgray;
    vertical-align: top;
}
div.cmarket_menu_item.current, div.searchbox.current {
    background-color: #eff4f6;
}
div.searchbox.current path{
    /*fill: #ec1d25;*/
}
.cmmenu{
    float: right;
    height: 81px;
    display: block;
}
html,body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
div.content{
    margin: 0;
    background-color: #eff4f6;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 110px;
    overflow-y: auto;
}
.catalog .search{
    font-size: 1.2em;
    padding: 5px 0 5px 0;
}
.catalog .search input{
    font-size: inherit;
}
div.searchbox{
    display: inline-block;
    vertical-align: top;
    height: 92px;
    padding-left: 5px;
}
.headsearch{
    vertical-align: top;
    margin-top: 1.3em;
    font-size: 1.5em;
    color: inherit;
}
#headsearchsubmit{
    display: inline-block;
    margin: 1em;
}
.catalog .search{
    display: none;
}
.message{
    background: lightgray;
}
.cmarket_cart_header{
    font-size: large;
    font-weight: bold;
}
.cart_header{
    float:left;
}
.cmarket_contact{
    display: inline-block;
}

.cmarket_cart_shipto {
    width: 15em;
}
.cmarket_cart_shipprice.ok:after{
    content: "руб.";
    display: inline;
}

.tag .tagname {
    display: inline-block;
    width: 20em;
}

.elementitem.selected .itemtext:before {

    background-color: black;

}
.elementitem .itemtext:before {

    content: "";
    position: relative;
    top: 2px;
    left: 0;
    height: 8px;
    width: 8px;
    background-color: #eee;
    border-radius: 50%;
    display: inline-block;
    border: 4px #eee solid;
    margin-right: 3px;

}
.elementitem:hover .itemtext:before{
    top: 1px;
    border-color: #ccc;
}

.restable .cansortu, .restable .cansortd{
    cursor: pointer;
    position: relative;
    background-image: url('../images/icons8-sort-48.png');
    background-size: 1em;
    background-position: right;
    background-repeat: no-repeat;
    text-decoration: none;
    color: inherit;
}
.restable .cansortd.sortd{
    background-image: url('../images/small_red_triangle_down.png');
}
.restable .cansortu.sortu{
    background-image: url('../images/small_red_triangle_up.png');
}

/*
#cmpopup .matinfo{
    max-height: 200px;
    overflow-y: scroll;
    border: solid gray 1px;
}
*/
#cmpopup .matinfo:after{
    clear: both;
}
#cmpopup .matinfo .salesdata{
    float: right;
}
#cmpopup .matinfo .material-images, #cmpopup .matinfo .material-tags{
    display: inline-block;
}

#cmpopup .matinfo .tag{
    border-bottom: solid 1px gray;
}
#cmpopup .matinfo .tagname{
    width: 12em;
}
#cmpopup .matinfo .tagvalue{
    display: inline-block;
    max-width: 16em;
}

.saporder .restable{
    width: auto;
}

.saporder .restable .tbody .row.shipped{
    background-color: lightgreen;
}
.saporder .restable .tbody .row{
    background-color: lightyellow;
}
.saporder .saporderstatus .orderstatus{
    font-weight: bold;
    font-size: larger;
}

.producthead{
    background: #d7f7f7;
}
.producthead .descr{
    font-size: larger;
}
.producthead .nn{
    font-size: larger;
    font-weight: bold;
}


.cont_qty .incart{
    display: block;
    background-color: #c0f7c0;
}
.cont_qty .incart .header{
    font-weight: bolder;
}

.cont_qty .incart .table span{
    display: inline-block;
    min-width: 4em;
}

.cont_qty .price{
    display: block;
    background-color: #f7f7d0;
}
.cont_qty .price .pricehead{
    font-size: smaller;
}
.cont_qty .price .pricebody{
    text-align: right;
}
.cont_qty .price span{
    display: inline-block;
    min-width: 28%;
}
.cont_qty .price span.rub{
    font-size: larger;
    min-width: 34%;
}
.cont_qty .price span.nds{
    font-size: smaller;
    min-width: 23%;
}
.cont_qty .price span.curr{
    font-size: larger;
    min-width: 10%;
}
.cont_qty .additem #popup_qty{
    font-size: larger;
}
.cont_qty .additem .qty_container *{
    vertical-align: bottom;
}

input.imgsubmit{
    height: 2em;
    border: outset;
}