/* Loading */
#table-1 input.search {
	display: none;
}

.loading-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 998;
}
.loading-wrapper .table-loading {
	width: 100%;
 /*	height: 500px;*/
/*	margin-top:50px;*/
/*	background: rgba(255, 255, 255, 0.85);*/
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 999;
	pointer-events: none;
}

.loading-wrapper .table-loading .spinner {
    margin: 40px;
}

/* Responsive */
.table-container {
	margin: 1em 0;
	overflow-x: auto;
	max-width: 100%;
	margin-top: 0;
	margin-bottom: 1em;
	position: relative;
	z-index: 0;
}

/* Filter & Search */
.filter-group-wrapper {
	margin: 1em 0.2em;
	margin-top: 0;
}
.filter-search-container {
	display: flex;
	margin: 0;
}
#search-container {
	justify-content: flex-end;
}
#search-container input.search {
	display: none;
}

/* Filter */
.filters-left {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
}

.filter-group details,
.filter-group summary,
.filter-subgroup details {
	margin: 0;
}

.label {
	display: inline-block;
	margin-bottom:0;
}

.filter-group {
	flex-wrap: wrap;
	gap: 1em;
}

.filter-group .filter-options {
	display: flex;
	flex-direction: column;
	padding-left: 1em;
/*	gap: 10px;*/
}

.filter-group > details > summary {
	color: #0058bc;
	margin-bottom: 0.3em;
}

.filter-subgroup {
	flex-wrap: wrap;
/*	gap: 5em;*/
	margin-right: 1em;
}

.filter-subgroup > details {
	display: flex;
	flex-direction: column;
}

.filter-subgroup > details > summary {
/*	white-space: nowrap;*/
	margin-bottom: 0.3em;
	color:#03c4eb;
}

.filter-subgroup .filter-options {
	display: flex;
	flex-direction: column;
}

.filter-options label {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
}

.toggle-switch {
	width: 100%;
	gap: 0.5em;
	align-items: center;
	justify-content: space-between;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5em;
}

.filter-group .toggle-list {
    padding-left: 1em;
}

.filter-group .filter-subgroup input[type=radio],
.filter-group .filter-subgroup input[type=checkbox]  {
	margin: 0 10px;
	accent-color: #8ad6e6;
}

.filter-group .filter-subgroup label:hover,
.filter-group .filter-subgroup label:focus,
.filter-group .filter-subgroup label:active {
	font-weight: bold;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.toggle-switch input[type="checkbox"] {
	display: none;
}

.toggle-slider {
	position: relative;
	width: 40px;
	height: 20px;
	background-color: #ccc;
	border-radius: 20px;
	transition: background-color 0.3s;
	flex-shrink: 0;
	margin: 1px 0;
}
.toggle-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	background-color: white;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: transform 0.3s;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
	transform: translateX(20px);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
	background-color: #03c4eb;
}

/* Search */
.filters-right {
	display: flex;
	justify-content: flex-end;
}

[data-enable-search="false"] .search {
	display: none !important;
}

input.search {
	padding: 0.5em;
	width: 200px;
}

/* Table */
.table-wrapper {
	display: none;
/*	min-height: 200px; */
	max-height: 100vh;
	width: 100%;
	min-width: auto;
	overflow-x: auto;
	overflow-y: auto;
	position: relative;
	z-index: 0;
}

.table-wrapper table {
	width: auto;
	max-width: 100%;
	table-layout: auto;
	margin-left: auto;
	margin-right: auto;
	font-size: 80%;
	table-layout: auto;
/*	width: 100%;*/
	margin-bottom: 0;
	border: 1px solid #0058bc;
	border-radius: 5px;
	border-collapse: separate !important;
    border-spacing: 0 !important;
}
table thead tr:first-child th {
    border-top: none;
}
.corner-top-left {
    border-top-left-radius: 5px;
}
.corner-top-right {
    border-top-right-radius: 5px;
}
.corner-bottom-left {
    border-bottom-left-radius: 5px;
}
.corner-bottom-right {
    border-bottom-right-radius: 5px;
}

thead th,
thead th a {
	text-transform: none !important;
}

th, td {
	padding: 8px;
/*	min-width: 50px;*/
	white-space: nowrap;
	border-bottom: none !important;
	border-left: none !important;
	border-top: 1px solid #e9e9e9;
	border-right: 1px solid #e9e9e9;
}

thead th {
	font-weight:normal;
	font-size: 100%;
}
/*
#table-1.hide-inner-border table {
	border-right: 1px solid #e9e9e9 !important;
}*/
#table-1.hide-inner-border th,
#table-1.hide-inner-border td {
	border-left: none !important;
	border-right: none !important;
}

th.sticky-col-last,
th.sort-sticky-col-last,
td.sticky-col-last {
	box-shadow: none;
}
.table-wrapper.show-shadow th.sticky-col-last,
.table-wrapper.show-shadow th.sort-sticky-col-last,
.table-wrapper.show-shadow td.sticky-col-last {
	box-shadow: 2px 0 5px -3px rgba(0, 0, 0, 0.1);
}

.row-count-display {
    font-size: 14px;
    margin-left: auto;
    padding-left: 0;
}

td i, td i {
    margin-left: 4px;
    font-size: 0.9em;
    vertical-align: middle;
}

/* Sorting */
th.sort,
th.sort-sticky-col-last {
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	padding-right: 15px;
}

.sort-icons {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	right: 0.5px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.7em;
	color: #ccc;
}

.sort-icons .up,
.sort-icons .down {
  line-height: 1;
}

th.asc .sort-icons .up,
th.desc .sort-icons .down {
	color: #666666;
}