.table-wrapper {
	position: relative;
}

.table-wrapper-empty .btn-group {
	margin: 0 15px;
}

.table-wrapper-empty {
	display: flex;	
	padding: 7px 10px;
}

.hypotizer.Dossier .table-wrapper {
	margin: 0;
}

.hypotizer.Dossier .table-wrapper td {
	vertical-align: middle;
}

.table-wrapper ul,
.table-wrapper li,
.table-wrapper p,
.table-wrapper {
	font-size: 12px;
	line-height: 1.2;
}

.ff-slim .table-wrapper {
	margin: 0;
	background: var(--table-background);
	padding: 25px 30px;
	font-size: inherit;
	line-height: inherit;
}

.ff-slim .table-wrapper td {
	vertical-align: middle;
}

.table {
    background-color: var(--table-background);
	width: 100%;
}

.table th,
.table td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid var(--table-row-border);
	font-style: normal;
	font-weight: normal;
}

.table th.table-buttons,
.table td.table-buttons {
	width: 1px;
}

.table-striped tr:nth-child(2n+1) td {
	background-color: var(--table-row-alternate);
}

.table-sortable {
	transition: all 0.3s ease-out;
}

.table-sortable.sorting {
	/* opacity: 0.3; */
}

.table-header th {
	font-weight: normal;
	vertical-align: middle;
}

.table-header th.sortable  {
	cursor: pointer;
}

.table-header .btn-group {
    
}

.table-header .sort-by {
	padding-left: 15px;
	position: relative;
}

.table-header .sort-by::before {
	font-family: 'HypothekeIcons';
	font-size: 8px;
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 14px;
	line-height: 14px;
	transform: translateY(-50%) rotate(90deg);
}

.table-header .sort-by-desc::before {
	content: 'G';
}

.table-header .sort-by-asc::before {
	content: 'G';
	transform: translateY(-50%) rotate(-90deg);	
}

.table-footer .table-total td {
	font-weight: bold;
	line-height: 2;
	border-top: 2px solid var(--table-row-highlight);
	border-bottom: 0 none;
}

.table-total td[data-format=chf] {
    white-space: nowrap;
}

.table-striped .table-footer .table-total td {
    background-color: var(--table-background);
}

.table tr:hover td {
	background-color: var(--table-row-highlight);
}

.info-table {
	color: var(--text-color);
	table-layout: fixed;
	border-spacing: 0;
	border-collapse: separate;
}

.info-table tbody + tbody :first-child td {
	border-top: 1px dotted var(--table-total-divider-color);
}

.info-cell {
	background-color: var(--table-background);
	margin-bottom: 10px;
	padding: 16px 20px;
	position: relative;
}

.info-cell-value {
	font-weight: bold;
	text-align: right;
	width: 100px;
}

.info-table tfoot .info-cell {
	border-top: 1px dotted var(--table-total-divider-color);
}

.info-table tr:last-child .info-cell {
	border-bottom-width: 0;
}

.table .table-filter th:first-child {
	padding: 0 5px;
}

.table .table-filter th {
	padding: 5px;
}

.table img {
	display:block;
	margin: auto;
}

.table .table-filter .flowform-input {
	font-size: 12px;
	line-height: 22px;
	padding: 2px 5px;
	color: var(--highlight-color);
	min-width: 50px;
}

.table-filter .typeahead__list {
	min-width: 300px;
}

.table-wrapper .btn {
	transition: none;
}

.table-max-rows,
.table-filter-mismatch {
	display: none;
}
/*

.table-filter-mismatch .ff-i::before {
	display: block;
}

.table-filter-mismatch * {
	transition: none;
	border-bottom: 0 none !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	font-size: inherit !important;
	line-height: 0 !important;
	height: 0 !important;
	overflow: hidden;
}
*/

.table-counter {
    line-height: 30px;
    font-size: 18px;
    margin: 0;
    padding: 4px 10px;
}




.table .badge {
	display: inline-block;
    border-radius: 14px;
    background-color: var(--badge-background);
    color: var(--badge-color);
    padding: 3px 7px;
	margin: 1px 5px;
    text-align: center;
	
	font-size: 10px;
	line-height: 10px;
	white-space: nowrap;
}

.table .badge.badge-success {
	background-color: var(--badge-success-background);
}

.table .badge.badge-warning {
	background-color: var(--badge-warning-background);
}

.table-contextmenu {
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 5px 5px 20px var(--shadow-dark);
	background-color: var(--table-background);	
    padding: 20px 10px;
	display: none;
}

.table-contextmenu.open {
	display: block;
}

.table-alternative {
}

.table-alternative:first-child {
	width: 100%;
	text-align: center;
	font-size: 20px;
}

.table-list > table {
	display: block;
}

.table-list > table > thead {
	display: block;
}

.table-list > table > thead > tr {
	display: flex;
}

.table-list > table > thead > tr > th {
	display: block;
	border-bottom: 0 none;
}

.table-list th.table-title {
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	width: 100%;
	margin: 20px;
}

.table-list > table > thead > tr > th.table-filter-input {
	flex: 1;
}

.table-list > table > tbody {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	
	padding: 20px;
	
	--list-item-size: calc(50% - 10px);
}

.table-list > table > tbody > tr {
	display: flex;
	flex-direction: column;
	flex: 1;

	min-width: var(--list-item-size);
	max-width: var(--list-item-size);
	box-shadow: 2px 2px 10px var(--neutral-6);
	position: relative;
	margin-top: 20px;
	box-sizing: border-box;

	cursor: zoom-in;
}

.table-list > table > tbody > tr.selected {
	--list-item-size: 100%;

	cursor: default;
}

.table-list > table > tbody > tr > td {
	display: block;
	margin: 0;
	padding: 0;
	border: 0 none;
	background-color: transparent !important;
}

.table-list > table > tbody > tr > .table-buttons {
	width: auto;
	position: absolute;
	margin: 10px;
	top: 0;
	right: 0;
	z-index: 1;
}

.table-list .table .table-list-item {
	padding: 20px;
}

.table-list .table .table-list-teaser {
	padding: 0;
	margin: -20px;
	margin-bottom: 20px;
	width: calc(100% + 40px);
	box-sizing: border-box;
	padding-top: 50%;
	position: relative;
}

.table-list .table .table-list-teaser img {
	object-fit: cover;
	
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.table-list .table .table-list-datum {
	text-align: right;
	margin-bottom: 20px;
}

.table-list .table .table-list-titel {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 15px;
}

.table-list .table .selected .table-list-titel {
	font-size: 22px;
}

.table-list .table .table-list-text {
	max-height: 0;
	font-size: 18px;
	white-space: pre-line;
	overflow: hidden;
}

.table-list .table .selected .table-list-text {
	max-height: 1000px;
}

.table .ff-badge {
	margin-top: 5px;
	display: inline-block;
}