﻿table.datagrid 
{
    border-collapse:collapse;
    border-spacing:0;
    table-layout:fixed;
	margin:0;
}

div.datagrid-wrapper
{    
    border:solid 1px #ddd;
    
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;    
    border-radius:8px;
    
    padding:8px;
    margin-top:8px;
    margin-bottom:8px;
    /*background-color:#eee;*/
    
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    -ms-box-sizing:border-box;
    box-sizing:border-box;
}

div.datagrid-wrapper-static 
{
    border:none;
    overflow:hidden;
}

div.datagrid-wrapper-inner
{    
    overflow:auto;
}

table.datagrid th, 
table.datagrid td
{
    height:22px;
    padding-top:5px;
    padding-bottom:5px;
    padding-left:10px;
    padding-right:10px;
    font-size:12px;
    overflow: hidden; 
    text-overflow: ellipsis;
}

table.datagrid th.sort a {
    font-size: 12px;
    text-decoration:none;
}

table.datagrid th.sort.asc, 
table.datagrid th.sort.desc 
{
    background-position: right 10px center;
    background-repeat: no-repeat;
    padding-right:30px;
    background-color: rgba(0, 0, 0, 0.05);
}

table.datagrid th.sort:hover, 
table.datagrid th.sort:hover 
{
    color:black;
    background-color: rgba(0, 0, 0, 0.05);
}

table.datagrid th.sort.asc 
{
    background-image:url(http://cdn.northweb.eu/images/icons/16x16/sort-asc.png);
}

table.datagrid th.sort.desc 
{
    background-image:url(http://cdn.northweb.eu/images/icons/16x16/sort-desc.png);
}

table.datagrid td.wrap 
{
    white-space:normal;
}

table.datagrid tr.highlight td {
    background-color: #FFFF66 !important;
    cursor: pointer;
}

table.datagrid td a:link {
    font-size: 12px !important;
    color: Blue;
}

table.datagrid th {
    background-color: rgba(0,0,0,0.1);
    font-weight: normal;
    text-align: left;
    /*border-right: solid 1px rgba(0,0,0,0);*/
}

table.datagrid td {
    border-top: 0;
    border-left: 0;
    border-right:0;
    /*border-right: solid 1px rgba(0,0,0,0.02);*/
    border-bottom: solid 1px #ddd;
    white-space: nowrap;
    /*background-color: rgba(255,255,255,0.8);*/
}

table.datagrid tr.insert td 
{
    background-color:#ddd;
}

table.datagrid td.left, table.datagrid th.left 
{
    text-align:left;
}

table.datagrid td.right, table.datagrid th.right 
{
    text-align:right;
}

table.datagrid td.center, table.datagrid th.center 
{
    text-align:center;
    /*padding-left:16px;
    padding-right:16px;*/
}


table.datagrid tr.selected td
{
    background-color:rgba(255, 255, 0, 0.25);
    cursor:pointer;
}

table.datagrid tr.checked td {
    background-color:rgba(255, 255, 0, 0.50);
    cursor:pointer;
}

table.datagrid td.rowcheck 
{
    text-align:center;
}

table.datagrid tr.totals td 
{
    font-weight:bold;
    background-color:#ddd;
}

table.datagrid input.textbox
{
    padding:3px;
    margin:-2px 0px;
}
table.datagrid input.combobox
{
    padding:2px;
    margin:-2px 0px;
}

table.datagrid td.center div.checkbox 
{
    margin:auto;
}

table.datagrid td.action { text-align:center }

table.datagrid td.action img { margin:0px 8px }

table.datagrid tr.highlight td
{
    background-color:#FFFF66 !important;
    cursor:pointer;
}

table.datagrid td.icon-cell table td { border:none; }
table.datagrid td.icon-cell table td img { margin:0 }

.nowrap, tr.nowrap td, tr.nowrap th {
    white-space: nowrap;
}

.art-postcontent table.datagrid td a,
.art-postcontent table.datagrid td a:link,
.art-postcontent table.datagrid td a:visited,
.art-postcontent table.datagrid td a:hover,
.art-postcontent table.datagrid td a.hovered
{
   /*line-height:100%;*/
   vertical-align:middle;
}

table.datagrid td img {
    margin: 2px;
}

div.datagrid-wrapper .no-records {
    display:block;
    margin:auto;
    text-align:center
}

table.datagrid td.boolean {
	text-align:center
}

table.datagrid a.delete {
	display:block;
	width:16px;
	height:16px;
	background-image:url(http://cdn.northweb.eu/images/icons/delete.png);
	background-repeat:no-repeat;
	background-position:center center;
}