/*
*{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
*/

.grid{
	position: relative;
	display: block;
	width: 100%;
	height: calc(100% - 48px);
	background: #fff;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.grid table{
	display: table;
	border-collapse: collapse;
	width: 100%;
	height: auto;
	padding: 0px;
 	table-layout:fixed;
}

.grid table td { 
    padding: 2px 6px;
}


.grid table thead{
	display: table-row-group;
	background:#FFF;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 22px;
    transform: translateY(0px);
    z-index: 10000;
}

.grid table thead th { 
    padding: 2px 6px;
    z-index: 10000;

}

.grid table thead th[sort], .grid table.table-sortable thead{ 
    cursor: pointer;
}


.grid table thead th[sort]:hover,  .grid table.table-sortable thead th[sort]:hover{ 
    background-color: #fff;
    text-decoration: underline;
}


.grid table thead th.asc, .grid table.table-sortable thead th.table-th-sort{
	background:url(../img/sort_asc.png) no-repeat right 0px center;
}

.grid table thead th.desc, .grid table.table-sortable thead th.table-th-sort.table-th-sort-rev{ 
	background:url(../img/sort_desc.png) no-repeat right 0px center
}



.grid table tbody{
	
	
}

.grid table tbody{
}

.grid table tbody.pointer{
	cursor: pointer;
}

.grid table tbody.zebra > tr:nth-child(odd){
	background:var(--zebracolor);
}

.grid table tbody.greyRows {
	background: rgb(242, 242, 242);
}

.grid table tbody > tr.table-tr-hovered{
	background:var(--zebrahovered) !important;
}

.grid table tbody  > tr.table-tr-selected{
	background: #FFF999 !important;
}

.grid table tbody tr td strong{
	font-weight: normal; 
	color:var(--main-bg-color);
}

.grid table tbody tr td .extendBtn{
	width: 32px;
	height:32px;
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAlklEQVQ4T+3SMQ5BQRDG8d+7hVLrEhqJ4h1ANCqFE0g0CuVzBJ2SAygkKqfQ6pyCbLISWdYWrxNTznzzn8w3U2kZVct+PwjYY4lLxpseVhg966kHfWwwxDWBdHHEFOccIORrrDHALQo7OGGOwys4d4VxFAdI0ITmBrt0tW9nnGESAdu42ps1pT9Y4B6nf/S1BCg+6h/AA/hvEhFscWXpAAAAAElFTkSuQmCC') no-repeat center center;
	border: none;
}

.grid table tbody tr.extended_opener_row td .extendBtn{
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAkklEQVQ4T+XSIQoCURSF4W82YTS7C0GZZhfBaLAPiMFiEnEFZosuwKYIsw2j0UUoyBPkMU+RiXPr5fz38nMyNSermdcAwBwPrFOuvjmYYhyCO2yrICnACAX6vESfscE+hlQBBlihh3sItHDBDMdPSAzohldz3KJrbZwwQfnexYADFrgmpHWwxDAF+LuYDWjiTydP7B4SEc6KZ/AAAAAASUVORK5CYII=') no-repeat center center;
}

.grid table tbody tr.extended_opener_row{
	background: #fffde2 !important;
	border-top: 1px solid #d4d1ae;	
}

.grid table tbody tr.extended_box{
	background: #fffde2 !important;
	border-bottom: 1px solid #d4d1ae;
}

.grid table tbody tr.extended_box td{
	vertical-align: middle;
}

.grid table tbody tr.extended_box td div{
	overflow: hidden;
	height: auto;
}


.grid table tbody tr.extended_close{
    height: 20px;
    width: 100%;
    background: #fffde2 !important;
    text-align: center;
    border-bottom: 1px solid #d4d1ae;
    cursor: pointer;
    display: none;

}

.grid table tbody tr.extended_close td{
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAkklEQVQ4T+XSIQoCURSF4W82YTS7C0GZZhfBaLAPiMFiEnEFZosuwKYIsw2j0UUoyBPkMU+RiXPr5fz38nMyNSermdcAwBwPrFOuvjmYYhyCO2yrICnACAX6vESfscE+hlQBBlihh3sItHDBDMdPSAzohldz3KJrbZwwQfnexYADFrgmpHWwxDAF+LuYDWjiTydP7B4SEc6KZ/AAAAAASUVORK5CYII=') no-repeat center center;
}
.grid table tbody tr td.inactive,
.grid table thead tr th.inactive{
	display: none;
}

.grid table tbody tr td input[type="text"], 
.grid table tfoot tr td input[type="text"]{
	border-radius: 2px;
	padding: 6px;
	width: calc(100% - 12px);
	border: 1px solid #ccc;
	box-shadow: none;
	
}



.grid table tbody tr td input{
	outline: none
} 

.grid table tr td input[type="number"]{
	border-radius: 2px;
	padding: 6px;
	margin:0px 5px;
	width: calc(50% - 12px);
	border: 1px solid #ccc;
	box-shadow: none;
}

.grid table tr td input[type="number"][readonly]{
	background: #d9d9d9;
	opacity:.3
	
}





.grid table tbody tr td select, 
.grid table tfoot tr td select{
	border-radius: 2px;
	padding: 3px;
	width: calc(100% - 12px);
	height: 22px;
	-webkit-appearance: none;
	-moz-appearance: none;
	color:#333;
	background:#fff url(../img/sort_desc.png) no-repeat right 3px top 3px;
	text-align: center;
}

.grid table tbody tr td select:focus, 
.grid table tfoot tr td select:focus{
	color:#333;
	background:#fff url(../img/sort_desc.png) no-repeat right 3px top 3px;
}


.grid table tbody td .tag {
	display: inline-block;
	margin: 0px 2px;
	padding: 2px 3px 1px 3px;
	font: 9px Helvetica, Arial;
	text-align: center;
	text-indent: 0px;
	color: #FFF;
	background: #1690FF;
	border-radius: 2px;
}

.grid table tbody td .menu {
	position: relative;
}

.grid table tbody td .menu .fakebutton{
	min-width: 32px;
	font-size: 18px;
	font-weight: bold;
	border: none;
	background: none;
	cursor: pointer;
	overflow: hidden;
	z-index: 100;
	color: #000;
	padding: 10px 0px;
}

.grid table tbody td .menu button:focus{
    outline: none;
}


.grid table tbody td .menu ul{
	position: absolute;
    top: -8px;
    right: 0px;
    display: none;
    height: auto;
    width: auto;
    padding: 0px 0px;
    margin: 0px;
    text-align: left;
    list-style: none;
    border: 1px solid #efefef;
    border-radius: 2px;
    background: #FFF;
    box-shadow: 1px 1px 2px rgba(0,0,0,.4);
    z-index: 100;
}

.grid table tbody td .menu li{
	display: block;
    padding: 8px 20px;
    cursor: pointer;
}

.grid table tbody td .menu li:hover{
	background: #efefef;
}


.grid table tbody td .menu.active ul{
	display: block;
}


.grid.thumbnail_mode{
	padding-top: 10px;
	background: #ffffff;
}

.grid.thumbnail_mode table{
	display:block;
	width:100%;
}

.grid.thumbnail_mode table thead,
.grid.thumbnail_mode table tfoot{
	display: none;
}

.grid.thumbnail_mode table tbody{
	display:block;
	width:100%;
	text-align:center;
}

.grid.thumbnail_mode table tbody tr{
	display:inline-block;
	width: 170px;
	height: 411px;
	border: 1px solid #dddddd;
	margin: 6px;
	border-radius: 5px;
	background:#FFF !important;
	overflow:hidden;
}

.grid.thumbnail_mode table tbody tr td{
	display:block;
	width:auto;
	overflow:hidden;
}

.grid table tbody tr td .historical_price{
	background: #ededed;
	border-radius: 3px;
	margin: 9px 0px 0px 0px;
	padding: 2px 2px;
	text-align: left;
	height: auto;
}

 .historical_price{
	background: rgba(0,0,0,.1);
	border-radius: 3px;
	margin: 9px 0px 0px 0px;
	padding: 6px 6px;
	text-align: left;
	height: 27px;
	font-size: 12px;
}

.historical_price_hidden{
	margin: 9px 0px 0px 0px;
    padding: 6px 6px;
    text-align: left;
    height: 27px;
}





.grid table tbody tr td input.price{
	display:inline-block;
	width: 60px;
	text-align: right;
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	/* font-family: -webkit-body; */
}

/* Chrome, Safari, Edge, Opera */
input.price::-webkit-outer-spin-button,
input.price::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* .grid table tbody tr td input.price:disabled{
	display:inline-block;
	width: 60px;
	text-align: right;
	border: none;
	border-bottom: none !important;
	background: transparent;
	/* font-family: -webkit-body; */
} */

/* Firefox */
input[type=number].price {
  -moz-appearance: textfield;
}

@media (max-width: 950px){

	.grid.thumbnail_mode table tbody tr{
		margin: 3px;
	}

}


