.grid {
	overflow-x:auto;
	overflow-y:auto;
	background-color:#e5e5e5;
	border:1px inset #a0a0a0;
}
	
	.grid.border-1,
	.grid.border-default {
		border: 1px solid #7F9DB9;
	}		
	
	.grid.border-0 {
		border:0;
	}		
	
	.grid.border-2 {
		border:1px solid #000;
	}	
	
	.grid.border-3 {
		border:2px inset ThreeDShadow;
	}
	
	.grid table {
		border-spacing:0;
		/* width:100%;  */
		/* table-layout: fixed; */
	}
	
	.grid:not(.editable) {
		cursor:pointer;
	}
	
	.grid:not(.block-fields) .editable {
		cursor:text;
	}
	
		.grid table thead th {
			border-width:1px 0px 1px 1px;
			border-style:outset;
			border-color: #111;
			
			white-space:nowrap;
			font-weight:normal;
			padding:1px;
			cursor:default;
		}

		.grid table thead th:last-child {
			border-width: 1px;
		}		
		
		.grid table tbody tr td.linenumber, .grid table thead th.header, .grid table tbody .fixed  {
			background-color: #f0f0f0;
		}						
		
		.grid table thead th.sticky
		{
			position:sticky;
			top:0px;
		}
		
		.grid table thead th.header  {
			text-align: left;
		}				
		
		.grid table tbody tr td.linenumber {
			text-align: right !important;
		}			
		
		.grid table tbody td {
			border-width:0px 0px 1px 1px;
			border-style:solid;
			border-color:#6d6d6d;
			
			white-space:nowrap;
			
			text-align:left;
			height:0.8em;
			
			background:#FFF;
		
			padding-left: 2px;			
			padding-right: 2px;			
		}



		.grid table tbody textarea, .grid table tbody input, .grid table tbody tr, .grid table tbody td {
			/* Aktivieren für alten Abstand der Spalten */
			margin:0px;
		}

		.grid table tbody td:last-child {
			border-width:0px 1px 1px 1px;
		}
		
		.grid table tbody tr.selected td, .grid table tbody tr.selected td select
		{
			background-color:Highlight !important;
			color: HighlightText !important;
		}			
		
			.grid table tbody tr.selected td select:hover
			{
				background-color:#fff !important;
				color: #111 !important;
			}			
		
		.grid table tbody.selectable td
		{
			cursor:pointer;
		}
		
		.grid table tbody .editable
		{
			background: #ffffff;
		}			
		
		.grid table tbody td.editable input:focus
		{
			background: #ccc !important;
			color:#111 !important;
		}

		.grid input:disabled, .grid .fDisabled:not(.linenumber)
		{
			background-color:#e4e4e4 !important;
			cursor:default;	
		}
		
		.grid textarea:disabled,.grid input:disabled, .grid .fDisabled
		{
			color:#6d6d6d;
		}			
		
		.grid textarea, .grid input[type=text], .grid select {
			width:100%;
			background:transparent;
			border:0px;
			padding:0px;
		}
