/*
 * codepunch-datatable
 *
 * Copyright (c) 2020-2021, CodePunch Solutions.
 * https://codepunch.com
 * Author: Anil Kumar
 * 
 */
 
 .cb-col {
	 text-align: center;
 }
 
.datatable th {
	 text-align: left;
 }
 
 .icon-16 {
	background-size: 16px 16px;
}
 
 ::-webkit-scrollbar {
	width: 14px;
    height: 18px;
}

::-webkit-scrollbar-track
{
	box-shadow: none; 
    border-radius: 1px;
}

::-webkit-scrollbar-thumb
{
    background-color: rgba(177,225,255,0.6);
    box-shadow: none; 
	background-clip: padding-box;
	height: 6px;
    border: 4px solid rgba(0, 0, 0, 0);
	border-radius: 7px;
}

::-webkit-scrollbar-thumb:vertical {
	
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}
::-webkit-scrollbar-corner {
    background-color: transparent;
}

 
.dtcard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: var(--article-box-background);
	background-clip: border-box;
	overflow: auto;
}

.dtcard > hr {
  margin-right: 0;
  margin-left: 0;
}

.dtcard-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
  padding: 1.25rem;
}

.dtcard-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.dtcard-header:first-child {
  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.dtcard-footer {
  padding: 0.75rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.dtcard-footer:last-child {
  border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}

.dtcard {
}

.dtcard-header {
	border-bottom: none;
	text-align: center;
}

.dtcard-header { padding: 0; }

.dtcard-footer {
	background-color: var(--table-row-header-background-color);
}

.dtcard {
	/* margin-bottom: 20px; */
	border-radius: 4px;
}

.datatable {
	border-collapse: collapse;
	table-layout: fixed;
	/* border-left: 1px solid var(--table-row-border-color);
	border-top: 1px solid var(--table-row-border-color); */
	width: 100%;
	user-select: none;
}

.datatable  th {
	position: sticky;
	top: -1px; /* compromise solution that prevents artifacts showing through the top border height when scrolled */
	background-color: var(--table-row-header-background-color);
	color: var(--table-row-header-text-color);
	overflow: hidden;
	opacity: 1;
	font-weight: 600;
	font-family: var(--font-normal-primary);
	vertical-align: top;
}


.datatable  th, .datatable  td {
	border-right: 1px solid var(--table-row-border-color);
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap;
	padding-top: 2px;
	padding-bottom: 2px;
	vertical-align: top;
}

.multiline {
	word-wrap:break-word !important;
	white-space: normal !important;
	vertical-align: top !important;
	user-select: text;
}

.td-link a {
	color: inherit;
	text-decoration:none;
}

.td-link img {
	width: 16px;
	height: 16px;
}

.multiline a {
	color: inherit;
	text-decoration-style: dotted;
}

.datatable  tr, .datatable  tr {
	color: var(--table-row-text-even);
	background-color: var(--table-row-background-even);
	border-bottom: 1px solid var(--table-row-border-color);
}

.datatable  tr:nth-child(odd)  {
	background-color: var(--table-row-background-odd);
	color:  var(--table-row-text-odd);
}
  
  
.datatable  tr:not(:first-child):hover {
	color: var(--table-row-color-hover);
	background-color: var(--table-row-background-hover);
}

.datatable .th-content, .datatable .td-content {
	padding: 0px 10px;
	text-overflow: ellipsis;
    white-space: nowrap;
	overflow: hidden;
}

.datatable .th-serial {
	width: 50px;
}

.datatable .th-cb {
	width: 24px;
}

.th-idn {
	width: 64px;
}



.th-zone {
	width: 70px;
}

.btn-table-icon {
	cursor: pointer;
}

.icon-sort-asc {
	background-image: var(--datatable-sort-icon-down);
}

.icon-sort-desc {
	background-image: var(--datatable-sort-icon-up);
}

.datatable .th-sortable {
	cursor: pointer;
}

.datatable .th-sorted > div {
	width: 16px;
	height: 24px;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	position:absolute;
	right: 4px;
	top: 2px;
}

.datatable .th-column-filter {
	padding: 0px 5px 0 5px;
	display: block;
	text-align: center;
	line-height: 120%;
}

.datatable .th-column-filter > input {
	width: 100%;
	height: 100%;
	background-color: var(--text-input-background);
	border: 1px solid var(--text-input-border-color);
	padding: 1px 2px;
	color: var(--text-input-color);
}

.datatable .th-column-filter > input:focus {
	outline: none;
	box-shadow: none;
}

.datatable td.wait {
	text-align: center; 
    vertical-align: middle;
	height: 120px;
}

.tr-selected {
	background-color: var(--table-row-selected-background-color) !important;
	color: var(--table-row-selected-text-color) !important;
}

.btn-dt-footer {
	display: inline-block;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	width: 24px;
	height: 24px;
	background-size: 16px 16px;
	cursor: pointer;
}

.btn-dt-separator {
	margin-left: 4px;
	margin-right: 4px;
	margin-top: 4px;
	width: 1px;
	height: 12px;
	display: inline-block;
	background-color: var(--table-row-border-color); 
}

.btn-datatable:hover {
	background-color: var(--btn-hover-background-color) !important;
}

.dtcard-footer {
	/* margin-top: 1px; */
}

.dtcard-footer-dt {
	display: grid;
	grid-template-columns: 33% 144px auto;
	column-gap: 4px;
}


.datatable-wrapper  .dtcard-body,.datatable-wrapper  .dtcard-footer {
	padding: 0;
	border: none;
}

.datatable-wrapper .dtcard-body {
	overflow: auto;
}

.datatable-wrapper {
	background-color: var(--content-background-color);
	margin-right: 0px;
}

.datatable-wrapper .dtcard-footer .right {
	text-align: right;
	padding-right: 10px;
}

.datatable-wrapper .dtcard-footer .mid {
	text-align: center;
}
