/* TABLE - BORDERS */
.tt-table-scroller {
	height: max-content;
	overflow: auto;
	width: 100%;
}
.tt-table-scroller .tt-table {
	min-width: 70em;
	margin: 0;
}
.tt-table {
	border-collapse: collapse;
	table-layout: fixed;
	border: none;
	width: 100%;
}
.tt-table th {
	border-bottom: 1px solid #e9ecef;
	border-top: 1px solid #e9ecef;
	font-size: 0.9em;
	font-weight: 500;
	text-align: left;
	overflow: hidden;
}
.tt-table td {
	border-bottom: 1px solid #e9ecef;
	font-size: 0.9em;
}
.tt-table-center-td .tt-table td {
	text-align: center;
}
.tt-table th, .tt-table td {
	border-left: 1px solid #e9ecef;
	position: relative;
}
.tt-table td:last-child,
.tt-table th:last-child {
	border-right: 1px solid #e9ecef;
}
@media screen and (max-width: 1400px) {
	.tt-auto-col {
		width: 10em;
	}
}

/* TABLE - ROWS */
.tt-table tbody tr {
	background-color: #ffffff;
}
.tt-table tbody tr:nth-child(odd) {
	background-color: #f8f9fa;	
}
/* TABLE - ROWS - HOVER */
.tt-table tr.highlight {
	background-color: #e5f7f9;
}
.tt-table tr:nth-child(odd).highlight {
	background-color: #def3f5;
}

/* TABLE - CELLS */
.tt-table th {
	padding: 1.1em 0.8em;
}
.tt-table td {
	text-overflow: ellipsis;
	padding: 0.6em 0.5em;
	white-space: nowrap;
	overflow: hidden;
}

/* TABLE - SPECIAL CELLS - COUNTER & CHECK */
.tt-table.numbered th:first-child, 
.tt-table.numbered td:first-child {
	width: 4em;
	text-align: right;
	-webkit-user-select: none;
	   -moz-user-select: none;
		-ms-user-select: none;
			user-select: none;
}

/* TABLE - SPECIAL CELLS - ACTIONS */
.tt-table.actions th:last-child,
.tt-table.actions td:last-child {
	text-align: center;
	padding-right: 0;
	padding-left: 0;
	width: 7em;
}

.tt-table-big-actions .tt-table.actions th:last-child,
.tt-table-big-actions .tt-table.actions td:last-child {
	width: 10em;
}
.tt-table-actions {
	justify-content: space-evenly;
	align-content: center;
	flex-direction: row;
	display: flex;
	width: 100%;
}
.tt-table-actions .tt-ico {
	align-self: center;
	font-size: 1.2em;
	cursor: pointer;
}
.tt-table-actions .tt-ico.disabled {
	opacity: 0.3;
}
.tt-table-actions .tt-ico:hover {
	transform: scale(1.1);
}

/* TABLE - SPECIAL CELLS - SORTABLE HEAD */
.tt-table th.sortable {
	padding-right: 1.5em;
	cursor: pointer;
}
.tt-table th.sortable::after {
	content: "\f07d";
	color: #d6d9dd;
	right: 0.2em;
	top: 50%;
}
.tt-table th.sortable.asc::after {
	content: "\f176";
	color: #000000;
}
.tt-table th.sortable.desc::after {
	content: "\f175";
	color: #000000;
}

/* TABLE - SPECIAL CELLS - CHECKABLE */
.tt-table.checks th:first-child,
.tt-table.checks td:first-child {
	padding-left: 1em;
	cursor: pointer;
	width: 5em;
}
.tt-table.checks th:first-child::before,
.tt-table.checks tr td:first-child::before {
	content: "\f096";
	left: 0.5em;
	top: 50%;
}
.tt-table.checks th.semichecked::before,
.tt-table.checks tr.semichecked td:first-child::before {
	content: "\f046";
}
.tt-table.checks th.checked::before,
.tt-table.checks tr.checked td:first-child::before {
	content: "\f14a";
}
.tt-table.checks td.checked {
	
}
.tt-table td .tt-but,
.tt-table td .tt-but-sm {
	margin: 0;
}

/* TABLE - ICONS */
.tt-table th.sortable::after,
.tt-table.checks th:first-child::before,
.tt-table.checks td:first-child::before {
	font: normal normal normal 1em FontAwesome;
	transform: translateY(-50%);
	display: inline-block;
	text-rendering: auto;
	position: absolute;
	speak: none;
}

/* TABLE - CONTROL ROW */
.tt-table-controls {
	align-content: center;
	flex-direction: row;
	flex-wrap: wrap;
	display: flex;
	width: 100%;
	z-index: 10;
}
.tt-table-controls select {
	background-color: #f1f1f1;
	cursor: pointer;
}
.tt-table-controls select,
.tt-table-controls input {
	border: 1px solid #e9ecef;
	padding: 0.1em 0.5em;
	/* line-height: 1.2em; */
	align-self: stretch;
	font-size: 1em;
}
.tt-table-but, .tt-table-action-but {
	padding: 0.1em 1em 0 1em;
	align-self: stretch;
	line-height: 1.5em;
	position: relative;
	font-size: 0.9em;
	cursor: pointer;
}
.tt-table-action-but {
	position: relative;
	overflow: visible;
	z-index: 10;
}
.tt-table-action-but > ul {
	background-color: inherit;
	list-style-type: none;
	height: max-content;
	position: absolute;
	min-width: 100%;
	display: none;
	z-index: 10;
	padding: 0;
	margin: 0;
	top: 100%;
	right: 0;
}
.tt-table-action-but:hover > ul {
	display: block;
}
.tt-table-action-but li {
	background-color: #ceebee;
	white-space: nowrap;
	position: relative;
	padding: 0.1em 1em;
	width: min-content;
	font-size: 0.9em;
	min-width: 100%;
    color: #212529;
}

/* PAGINATION */
.tt-table-count, .tt-table-pag {
	line-height: 2.6em;
	/* padding-left: 1em; */
	font-size: 0.9em;
	height: 2.6em;
}
.tt-table-pag {
	border: 1px solid #dbdbdb;
}
.tt-table-pag, .tt-table-pag-select {
	align-items: stretch;
	flex-direction: row;
	border-radius: 0.8em;
	display: flex;
}
.tt-table-pag .tt-table-pag-select .tt-click {
	padding: 0 0.2em;
}
.tt-table-pag .tt-click {
	border-right: 1px solid #dbdbdb;
	text-align: center;
	min-width: 2em;
	padding: 0;
}
/* .tt-table-pag .tt-click:last-child {
	border-right: none;
} */
.tt-table-pag > .tt-click:first-child {
	border-right: none;
} 
.tt-table-pag > .tt-click:last-child {
	border-left: none;
	border-right: none;
}

.tt-table-pag-select .tt-click:first-child {
	border-left: 1px solid #dbdbdb;
}


.tt-table-pag .tt-click.disabled {
	color: #919191;
}
.tt-table-pag .tt-click.active {
	background-color: #ceebee;
	font-weight: 600;
	cursor: default;
}
.tt-table-pag .tt-click.active:hover {
	transform: none;
}
.tt-table-pag .tt-click.tt-table-prev {
	padding-left: 1.5em;
	padding-right: 1em;
}
.tt-table-pag > .tt-click.tt-table-next {
	padding-right: 1.5em;
	padding-left: 1em;
}

/* TABLE NOSELECT */
.tt-table th,
.tt-table-pag,
.tt-table-count {
	-webkit-user-select: none;
	   -moz-user-select: none;
		-ms-user-select: none;
			user-select: none;
}

/* ===== mod-mi res ========= */

/* .tt-table-controls > .aa-topbar-r > :first-child {
	margin-left: 0.5em;
} */

.aa-topbar-r > *,
.aa-topbar-l > * {
	/* min-height: 2.1em; */
	margin: 0.25em 0;
}

.tt-table-pag {
	margin: auto;
}

.tt-click.tt-table-next {
	border-right: none;
}
.tt-click.tt-table-prev {
	border-right: none;
}

@media only screen and (max-width : 700px) {
	/* bottom */
	.tt-table-pag > .tt-click.tt-table-prev{
		padding-left: 0.75em;
		padding-right: 0.5em;
	}
	.tt-table-pag > .tt-click.tt-table-next {
		padding-left: 0.5em;
		padding-right: 0.5em;

	}
}

@media only screen and (max-width : 600px) {
	.aa-topbar-l {
		justify-content: space-between;
		padding-bottom: 0.25em;
	}

	.aa-topbar-r {
		flex: 1;
		min-width: 100%;
		margin: 0 -1em;
		/* padding: 0 1em; */
		padding: 0.5em 1em;
		/* background-image: linear-gradient(#f8f8f8 70%, 70%, transparent); */
		background-color: #fafafa;
		border-radius: 0;
	}

	.aa-topbar-r > * {
		min-width: 100%;
		margin: 0.5em 0 !important;
		text-align: center;
	}

	.aa-topbar-r > .tt-table-search-text {
		/* margin-top: 1em; */
		height: 2em;
		/* border-color: #c4ccd4; */

	}
	.aa-topbar-r > .tt-table-search-text + span{
		min-width: max-content;
		line-height: 2;
		margin-right: 0.5em !important;

	} 
	.aa-topbar-r > .tt-table-search-column {
		flex: 1;
		min-width: 0;
		/* margin-bottom: 1em; */
		height: 2em;
	}

	.tt-table-but {
		margin: 0.5em 0 !important;
		text-align: center;
	}

}


@media only screen and (max-width: 400px) {
	.tt-table-pag {
		font-size: 3.8vmin;
	}
}
