#{{table.view_id}} {
  {% if table.params.calc_width.val == \'table\' %}
  width: {{ table.params.table_width.val }}{{ table.params.table_width_measure.val }};
  {% endif %}
}
#{{table.view_id}} .ptsCol {
  {% if table.params.calc_width.val == \'table\' %}
  	{% if table.params.enb_desc_col.val and table.params.enb_desc_col.val != \"0\" %}
  		width: {{ 100 / (table.params.cols_num.val + 1) }}%;
  	{% else%}
  		width: {{ 100 / table.params.cols_num.val }}%;
  	{% endif %}
  {% else%}
	width: {{ table.params.col_width.val }}px;
  {% endif %}
  transition: box-shadow 0.25 ease 0;
}
#{{table.view_id}} .ptsColHeader,
#{{table.view_id}} .ptsColDesc {
	padding: 10px;
}
#{{table.view_id}} p {
	margin: 0;
}
#{{table.view_id}} .ptsRows .ptsCell,
#{{table.view_id}} .ptsColFooter {
	padding: 10px 0;
}
#{{table.view_id}} .ptsColHeader {
	background-color: {{ adjBs(table.params.bg_color.val, -10) }}; /* background color for non-css3 browsers */
	/* gradient */
  background-image: linear-gradient(top, {{ table.params.bg_color.val }}, {{ adjBs(table.params.bg_color.val, -23) }}); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ table.params.bg_color.val }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, -23) }}\'); /* IE5.5 - 7 */
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ table.params.bg_color.val }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, -23) }}\'); /* IE8 */
	background: -ms-linear-gradient(top, {{ table.params.bg_color.val }}, {{ adjBs(table.params.bg_color.val, -23) }}); /* IE9 */
  background: -moz-linear-gradient(top, {{ table.params.bg_color.val }}, {{ adjBs(table.params.bg_color.val, -23) }}); /* Firefox */ 
	background: -o-linear-gradient(top, {{ table.params.bg_color.val }}, {{ adjBs(table.params.bg_color.val, -23) }}); /* Opera 11  */
	background: -webkit-linear-gradient(top, {{ table.params.bg_color.val }}, {{ adjBs(table.params.bg_color.val, -23) }}); /* Chrome 11  */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, {{ table.params.bg_color.val }}), color-stop(1, {{ adjBs(table.params.bg_color.val, -23) }})); /* Chrome 10, Safari */
  
  	border-bottom: 1px solid {{ adjBs(table.params.bg_color.val, -40) }};
}
#{{table.view_id}} .ptsColDesc {
	background-color: {{ adjBs(table.params.bg_color.val, -10) }}; /* background color for non-css3 browsers */
	/* gradient */
  background-image: linear-gradient(top, {{ adjBs(table.params.bg_color.val, -15) }}, {{ adjBs(table.params.bg_color.val, -40) }}); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ adjBs(table.params.bg_color.val, -15) }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, -40) }}\'); /* IE5.5 - 7 */
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ adjBs(table.params.bg_color.val, -15) }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, -40) }}\'); /* IE8 */
	background: -ms-linear-gradient(top, {{ adjBs(table.params.bg_color.val, -15) }}, {{ adjBs(table.params.bg_color.val, -40) }}); /* IE9 */
  background: -moz-linear-gradient(top, {{ adjBs(table.params.bg_color.val, -15) }}, {{ adjBs(table.params.bg_color.val, -40) }}); /* Firefox */ 
	background: -o-linear-gradient(top, {{ adjBs(table.params.bg_color.val, -15) }}, {{ adjBs(table.params.bg_color.val, -40) }}); /* Opera 11  */
	background: -webkit-linear-gradient(top, {{ adjBs(table.params.bg_color.val, -15) }}, {{ adjBs(table.params.bg_color.val, -40) }}); /* Chrome 11  */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, {{ adjBs(table.params.bg_color.val, -15) }}), color-stop(1, {{ adjBs(table.params.bg_color.val, -40) }})); /* Chrome 10, Safari */
  
  	border-top: 1px solid {{ adjBs(table.params.bg_color.val, 5) }};
}
#{{table.view_id}} .ptsRows .ptsCell:nth-child(odd) {
	background-color: {{ adjBs(table.params.bg_color.val, 165) }};
}
#{{table.view_id}} .ptsRows .ptsCell:nth-child(even) {
	background-color: {{ adjBs(table.params.bg_color.val, 195) }};
}
#{{table.view_id}} .ptsCol:nth-child(odd) .ptsRows .ptsCell:nth-child(odd) {
	background-color: {{ adjBs(table.params.bg_color.val, 145) }};
}
#{{table.view_id}} .ptsCol:nth-child(odd) .ptsRows .ptsCell:nth-child(even) {
	background-color: {{ adjBs(table.params.bg_color.val, 165) }};
}
#{{table.view_id}} .ptsColFooter {
 	background-color: {{ adjBs(table.params.bg_color.val, 130) }}; /* background color for non-css3 browsers */
	/* gradient */
	background-image: linear-gradient(top, {{ adjBs(table.params.bg_color.val, 160) }}, {{ adjBs(table.params.bg_color.val, 100) }}); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ adjBs(table.params.bg_color.val, 160) }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, 100) }}\'); /* IE5.5 - 7 */
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ adjBs(table.params.bg_color.val, 160) }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, 100) }}\'); /* IE8 */
	background: -ms-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 160) }}, {{ adjBs(table.params.bg_color.val, 100) }}); /* IE9 */
	background: -moz-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 160) }}, {{ adjBs(table.params.bg_color.val, 100) }}); /* Firefox */ 
	background: -o-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 160) }}, {{ adjBs(table.params.bg_color.val, 100) }}); /* Opera 11  */
	background: -webkit-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 160) }}, {{ adjBs(table.params.bg_color.val, 100) }}); /* Chrome 11  */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, {{ adjBs(table.params.bg_color.val, 160) }}), color-stop(1, {{ adjBs(table.params.bg_color.val, 100) }})); /* Chrome 10, Safari */
  
	border-top: 1px solid {{ adjBs(table.params.bg_color.val, 145) }};
}
#{{table.view_id}} .ptsActBtn:hover {
	 background-color: {{ adjBs(table.params.bg_color.val, 110) }}; /* background color for non-css3 browsers */
	/* gradient */
	background-image: linear-gradient(top, {{ adjBs(table.params.bg_color.val, 140) }}, {{ adjBs(table.params.bg_color.val, 80) }}); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ adjBs(table.params.bg_color.val, 140) }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, 80) }}\'); /* IE5.5 - 7 */
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'{{ adjBs(table.params.bg_color.val, 140) }}\', endColorstr=\'{{ adjBs(table.params.bg_color.val, 80) }}\'); /* IE8 */
	background: -ms-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 140) }}, {{ adjBs(table.params.bg_color.val, 80) }}); /* IE9 */
	background: -moz-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 140) }}, {{ adjBs(table.params.bg_color.val, 80) }}); /* Firefox */ 
	background: -o-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 140) }}, {{ adjBs(table.params.bg_color.val, 80) }}); /* Opera 11  */
	background: -webkit-linear-gradient(top, {{ adjBs(table.params.bg_color.val, 140) }}, {{ adjBs(table.params.bg_color.val, 80) }}); /* Chrome 11  */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, {{ adjBs(table.params.bg_color.val, 140) }}), color-stop(1, {{ adjBs(table.params.bg_color.val, 80) }})); /* Chrome 10, Safari */
}
#{{table.view_id}} .ptsActBtn {
	display: inline-block;
  	padding: 4px 20px;
  	border: 1px solid {{ adjBs(table.params.bg_color.val, 85) }};
  	width: 80%;
  	border-radius: 3px;
}

#{{table.view_id}} .ptsActBtn .ptsEditArea {
	color: #444;
  	font-size: 10pt; 
  	font-weight: bold;
  	text-decoration: none !important;
  	border: none !important;
	width: 100%;
}
#{{table.view_id}} .ptsCol:first-of-type .ptsColHeader {
	border-top-left-radius: 5px;
}
#{{table.view_id}} .ptsCol:last-of-type .ptsColHeader {
	border-top-right-radius: 5px;
}
#{{table.view_id}} .ptsCol:first-of-type .ptsColFooter {
	border-bottom-left-radius: 5px;
}
#{{table.view_id}} .ptsCol:last-of-type .ptsColFooter {
	border-bottom-right-radius: 5px;
}
#{{table.view_id}} .ptsColFooter a {
	color: #444444;
  	text-decoration: none !important;
}
#{{table.view_id}} .ptsTableDescCol {
  {% if table.params.enb_desc_col.val == 0 %}
  	display: none;
  {% endif %}
}
#{{table.view_id}} .ptsCol .ptsTableElementContent,
#{{table.view_id}} .ptsCol .ptsTableElementContent span {
	transition: box-shadow 0.3s ease, margin 0.3s ease, font 0.3s ease;
  	-webkit-transition: box-shadow 0.3s ease, margin 0.3s ease, font 0.3s ease;
    -moz-transition: box-shadow 0.3s ease, margin 0.3s ease, font 0.3s ease;
    -ms-transition: box-shadow 0.3s ease, margin 0.3s ease, font 0.3s ease;
    -o-transition: box-shadow 0.3s ease, margin 0.3s ease, font 0.3s ease;
}
#{{table.view_id}} .ptsCol.hover .ptsTableElementContent {
	z-index: 101;
  	box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
  	-webkit-box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
	margin-top: -20px;
}
#{{table.view_id}} .ptsCol.hover .ptsColHeader {
	border-top-left-radius: 5px;
  	border-top-right-radius: 5px;
}
#{{table.view_id}} .ptsCol.hover .ptsColFooter {
	border-bottom-left-radius: 5px;
  	border-bottom-right-radius: 5px;
}
/*Colors set*/
#{{table.view_id}} .ptsCol .ptsColHeader {
  	color: {{table.params.text_color_header.val}};
}
#{{table.view_id}} .ptsCol .ptsColDesc {
  	color: {{table.params.text_color_desc.val}};
}
#{{table.view_id}} .ptsCol .ptsRows {
  	color: {{table.params.text_color.val}};
}
