/* Tabulator theme matching the legacy Bootstrap 3 / Metronic table look,
   with long-cell content wrapping enabled. */

.tabulator {
	background-color: #fff;
	border: 1px solid #ddd;
	color: #333;
	font-size: 14px;
	clear: both;
	width: 100%;
}

/* ---- table controls ---- */
.server-table-toolbar {
	align-items: flex-end;
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-bottom: 10px;
	width: 100%;
}

.server-table-filters {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.server-table-filters:empty {
	display: none;
}

.server-table-filters .form-control,
.server-table-filters .btn {
	float: none !important;
	margin: 0 !important;
}

.server-table-filters .form-control {
	min-width: 145px;
	width: auto;
}

.server-table-search {
	font-weight: 400;
	margin: 0;
}

.server-table-search .form-control {
	margin-top: 4px;
	width: 260px;
}

@media (max-width: 767px) {
	.server-table-toolbar {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.server-table-filters,
	.server-table-filters .form-control,
	.server-table-search .form-control {
		width: 100%;
	}
}

/* ---- header ---- */
.tabulator .tabulator-header {
	background-color: #f5f5f5;
	border-bottom: 2px solid #ddd;
	font-weight: 700;
	color: #333;
}

.tabulator .tabulator-header .tabulator-col {
	background-color: #f5f5f5;
	border-right: 1px solid #ddd;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
	padding: 8px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* ---- rows & cells ---- */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
	border-bottom: 1px solid #ddd;
	min-height: auto;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
	border-right: 1px solid #ddd;
	padding: 8px;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
	vertical-align: top;
	line-height: 1.42857143;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell:last-child {
	border-right: none;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even {
	background-color: #f9f9f9;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-odd {
	background-color: #fff;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
	background-color: #f5f5f5;
	cursor: default;
}

/* ---- sort arrows ---- */
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow {
	top: 12px;
}

/* ---- footer / pagination ---- */
.tabulator .tabulator-footer {
	background-color: #f5f5f5;
	border-top: 1px solid #ddd;
	color: #333;
	padding: 8px 12px;
}

.tabulator .tabulator-footer .tabulator-footer-contents {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tabulator .tabulator-footer .tabulator-page-counter {
	text-align: left;
}

.tabulator .tabulator-footer .tabulator-paginator {
    justify-content: flex-end;
}


.tabulator .tabulator-footer .tabulator-paginator {
	display: inline-flex;
	align-items: center;
}

.tabulator .tabulator-footer .tabulator-page {
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	color: #333;
	padding: 4px 10px;
	margin: 0 2px;
	cursor: pointer;
}

.tabulator .tabulator-footer .tabulator-page.active {
	background-color: #337ab7;
	border-color: #337ab7;
	color: #fff;
}

.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
	background-color: dimgray;
}

.tabulator .tabulator-footer .tabulator-page.disabled {
	opacity: 0.4;
	cursor: default;
}
