﻿/*Grids*/
table.grid
{
	text-align:right;
	direction:rtl;
}
table.grid>thead>tr>th.coldis div.eye
{
    float:right;
}
table.grid>thead>tr>th,
table.grid>tfoot>tr>td
{
	text-align:right;
	padding-right:1px;
	padding-left:1px;
}
table.grid>thead>tr>th>div,
table.editablegrid>thead>tr>th>div
{
	overflow:hidden;
	white-space:nowrap;
	display:inline-block;
	width:100%;
}
table.grid>thead>tr>th.thClass>div,
table.editablegrid>thead>tr>th.thClass>div
{
	background-position:left center;
	background-repeat:no-repeat;
	background-image:url(../images/icons/sorting/sort.png);
}
table.grid>thead>tr>th.asc>div.alph,
table.editablegrid>thead>tr>th.asc>div.alph
{
	background-image:url(../images/icons/sorting/sort-alphabet.png);
}
table.grid>thead>tr>th.desc>div.alph,
table.editablegrid>thead>tr>th.desc>div.alph
{
	background-image:url(../images/icons/sorting/sort-alphabet-descending.png);
}
table.grid>thead>tr>th.asc>div.date,
table.editablegrid>thead>tr>th.asc>div.date
{
	background-image:url(../images/icons/sorting/sort-date.png);
}
table.grid>thead>tr>th.desc>div.date,
table.editablegrid>thead>tr>th.desc>div.date
{
	background-image:url(../images/icons/sorting/sort-date-descending.png);
}
table.grid>thead>tr>th.asc>div.num,
table.editablegrid>thead>tr>th.asc>div.num
{
	background-image:url(../images/icons/sorting/sort-number.png);
}
table.grid>thead>tr>th.desc>div.num,
table.editablegrid>thead>tr>th.desc>div.num
{
	background-image:url(../images/icons/sorting/sort-number-descending.png);
}
table.grid>thead>tr>th.asc>div.money,
table.editablegrid>thead>tr>th.asc>div.money
{
	background-image:url(../images/icons/sorting/sort-price.png);
}
table.grid>thead>tr>th.desc>div.money,
table.editablegrid>thead>tr>th.desc>div.money
{
	background-image:url(../images/icons/sorting/sort-price-descending.png);
}
.div_vis
{
    direction:rtl;
    text-align:right;
}

table.grid>tbody>tr>td
{
	padding:2px 1px;
	cursor:default;
}
table.grid>tbody>tr>td>div.abvr>div.tdcontent,
table.editablegrid>tbody>tr>td>div.abvr>div.tdcontent
{
	white-space:nowrap;
	overflow:hidden;
}
table.grid>tbody>tr>td.abreviated>div.abvr,
table.editablegrid>tbody>tr>td.abreviated>div.abvr
{
	background:url(../images/icons/threedots.gif) no-repeat center left;
	padding-left:9px;
}
table.grid>thead>tr>th
{
	font-weight:lighter;
	height:20px; 
	/*background-color:#b9b9b9;
	filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#d9d9d9,endColorStr=#b9b9b9);
	background:-webkit-gradient(linear,left top, left bottom,from(#d9d9d9),to(#b9b9b9));
	background:-moz-linear-gradient(top,#d9d9d9,#b9b9b9);*/
	overflow:hidden;
	/*position:relative;
	z-index:2;*/
}
table.grid>thead>tr>th.coldis div.icndiv
{
    margin-top:3px;
    margin-bottom:2px;
    cursor:pointer;
}
table.grid>tfoot>tr>td
{
    height:10px;
	/* background-color:#d9d9d9;
    filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#b9b9b9,endColorStr=#d9d9d9);
	background:-webkit-gradient(linear,left top, left bottom,from(#b9b9b9),to(#d9d9d9));
	background:-moz-linear-gradient(top,#b9b9b9,#d9d9d9);*/
}
table.grid>tbody>tr.even>td
{
	/*background:#dfdfdf;*/
}
table.grid.unlocked>tbody>tr:hover>td
{
	/*background:#999999;*/
}
table.grid>tbody>tr>td
{
	/*background:#efefef;*/
}
table.grid>tbody>tr>td>input[type=text],
table.grid>tbody>tr>td>textarea,
table.grid>tbody>tr>td>select
{
	border-style:solid;
	border-width:1px;
	border-color:#6699cc;
	font-family:'Yekan',Tahoma;
	font-size:12px;
}
.grid>tbody>tr>td.alert
{
    background-color:red;
}
.div_vis
{
    background: #f0f0f0;
    margin: 0; padding: 5;
    position: absolute;
    border: 1px solid silver;
    display:none;
}
.div_vis ul
{
    list-style:none;
    margin:0; padding:0;
}
	.div_vis input {
		font-family: 'Yekan',Tahoma;
		font-size: 10px;
	}

table.grid>tbody>tr.deleted>td,
table.grid>tbody>tr.deleted.row_selected>td,
table.grid>tbody>tr.deleted.even>td,
table.grid>tbody>tr.deleted.even>td.Active,
table.grid>tbody>tr.deleted>td.Active
{
	background-color:#cc0000;
	color:White;
}

/*EditableGrid*/
table.editablegrid>tbody>tr>td input[type="text"],
table.editablegrid>tbody>tr>td select
{
    
    border:0;
    font-family:'Yekan',tahoma;
	font-size:14px;
    display:block;
    padding:0;
    margin:0;
    width:100%;
    height:100%;
    background:white;
    filter:none;
}
table.editablegrid>tbody>tr>td[type="CHK"],
table.editablegrid>thead>tr>th[rel="CHK"]
{
    text-align:center;
}
table.editablegrid>tbody>tr>td
{
    /*padding:5px 7px 0px 7px;*/
    padding:2px 1px;
    border-width:1px;
    border-style:solid;
}
table.editablegrid>tbody>tr>td.situation,
table.editablegrid>tbody>tr.even>td.situation,
table.editablegrid>tbody>tr.row_selected>td.situation,
table.editablegrid>tbody>tr.active>td.situation
{
    background-position:center center;
    background-repeat:no-repeat;
    background-color:#ccc;
    width:25px;
}
table.editablegrid>tbody>tr.cut
{
    color:Gray;
}
table.editablegrid>tbody>tr[situation="2"]>td.situation{background-image:url(../images/Icons/pencil.png)}
table.editablegrid>tbody>tr[situation="3"]>td.situation{background-image:url(../images/Icons/delete_.gif)}
table.editablegrid>tbody>tr[situation="4"]>td.situation{background-image:url(../images/Icons/new.png)}
table.editablegrid>thead>tr>th,
table.editablegrid>tfoot>tr>td
{
    font-weight:normal;
    text-align:right;
    color:#f0f0f0;
    padding:0;
    border-width:1px;
    border-style:solid;
    padding-right:1px;
	padding-left:1px;
}
table.editablegrid>tbody>tr>td.notsaved,
table.editablegrid>tbody>tr.even>td.notsaved,
table.editablegrid>tbody>tr.row_selected>td.notsaved,
table.editablegrid>tbody>tr.active>td.notsaved
{
    background-color: #eb6565;
    
}

table.editablegrid.unlocked>tbody>tr>td.gridparam
{
	cursor:pointer;
}
table.editablegrid.unlocked>tbody>tr>td.gridparam:hover,
table.editablegrid.unlocked>tbody>tr>td.gridparam.hover
{
	background:silver;
	color:red;
}
table.editablegrid>tbody>tr>td.changed,
table.editablegrid>tbody>tr.row_selected>td.changed,
table.editablegrid>tbody>tr.even>td.changed,
table.editablegrid>tbody>tr.even>td.Active.changed,
table.editablegrid>tbody>tr.active>td.changed,
table.editablegrid>tbody>tr>td.Active.changed
{
	background-color:Orange;
}
table.editablegrid>tbody>tr.new>td,
table.editablegrid>tbody>tr.new.row_selected>td,
table.editablegrid>tbody>tr.new.even>td,
table.editablegrid>tbody>tr.new.even>td.Active,
table.editablegrid>tbody>tr.new.active>td,
table.editablegrid>tbody>tr.new>td.Active,
table.editablegrid>tbody>tr.new>td.changed
{
	background-color:#6cd970;
}
table.editablegrid>tbody>tr.new.row_selected>td
{
	background-color:#b5ebb6;
}
table.editablegrid>tbody>tr.deleted>td,
table.editablegrid>tbody>tr.deleted.row_selected>td,
table.editablegrid>tbody>tr.deleted.even>td,
table.editablegrid>tbody>tr.deleted.even>td.Active,
table.editablegrid>tbody>tr.deleted.active>td,
table.editablegrid>tbody>tr.deleted>td.Active,
table.editablegrid>tbody>tr.deleted>td.changed
{
	background-color:#cc0000;
	color:White;
}

table.editablegrid > tbody > tr > td.tag2,
table.editablegrid > tbody > tr.even > td.tag2,
table.editablegrid > tbody > tr.row_selected > td.tag2,
table.editablegrid > tbody > tr.active > td.tag2 {
	background-color: #d3d3d3;
}
