/**
 * @author alisch berlec hönow <info@abh.eu>
 * @version 4.6.6
 *
 * Mdj Component: Table
 */

.table {
	--top-sp: 0.66666em;
	--bottom-sp: 0.5em;
	--max-cols: 12;
}

.table.is-anonymous {
	--border-width: 0px;
}

.content .row-wrap[data-column-count="1"] .components-wrap > .table {
	margin-left: auto;
	margin-right: auto;
	width: calc( 100% / 12 * var( --max-cols ) - var( --grid-horizontal-spacing ) * ( 1 - var( --max-cols ) / 12 ) );
}




.table table {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
}

.table table th:not( :first-child ),
.table table td:not( :first-child ) {
	padding-left: var( --h-sp );
}



	.table table thead {
		text-align: left;
	}

	.table .thead .th,
	.table table thead th {
		border-bottom: var( --border-width ) solid currentColor;
		padding-bottom: var( --bottom-sp );
	}



	.table .tr,
	.table table tbody td {
		border-bottom: var( --border-width ) solid currentColor;
		padding-top: var( --top-sp );
		padding-bottom: var( --bottom-sp );
	}

	.table.is-anonymous .tr:not( :last-child ),
	.table.is-anonymous table tbody tr:not( :last-child ) td {
		padding-bottom: 0;
	}

	.table .tr:last-child,
	.table table tbody tr:last-child td {
		border-bottom: none;
	}

	.table:not( .has-head ) .tr:first-child,
	.table:not( .has-head ) table tbody tr:first-child td {
		padding-top: 0;
	}

	.table:not( .has-foot ) .tr:last-child,
	.table:not( .has-foot ) table tbody tr:last-child td {
		padding-bottom: 0;
	}



	.table table tfoot {
		text-align: left;
	}

	.table .tfoot .td,
	.table table tfoot td {
		border-top: var( --border-width ) solid currentColor;
		padding-top: var( --top-sp );
	}




/* ------------------------- */
@media ( min-width: 1200px ) {

	.table {
		--max-cols: 10;
	}
}