:root {
	--choices-z-index: 9999;
}

body {
	font-family: arial, helvetica, serif;
	background-color: #F8F7F6;
}

/* Hide arrows/spinners in Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Hide arrows/spinners in Firefox */
input[type="number"] {
	-moz-appearance: textfield;
}

.bg-metz {
	background-color: #9E0824 !important;
	color: #fff !important;
}

.bg-light-metz {
	background-color: #D26B7A !important;
	color: #fff !important;
}

.text-color-metz {
	color: #9E0824 !important;
}

.border-metz {
	border-color: #9E0824 !important;
}

.no-wrap {
	white-space: nowrap;
}

.right-column {
	height: 100%;
	min-height: 0;

	display: flex;
	flex-direction: column;
}
.form-check-input:checked {
	background-color: #9E0824;
	border-color: #9E0824;
}

.border-metz {
	border-color: #9E0824 !important;
}

.address-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 500px;
}

.address-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

table .cell-min-width-20 {
	min-width: 20rem;
}

table .cell-min-width-15 {
	min-width: 15rem;
}

table .cell-min-width-10 {
	min-width: 10rem;
}

table .cell-min-width-7 {
	min-width: 7rem;
}

table .cell-min-width-5 {
	min-width: 5rem;
}

.table-responsive {
	overflow-x: scroll;
	scrollbar-width: auto;
}

.table-container {
	min-height: 0;
	overflow-y: auto;
	max-height: 83%;
}

.table-container table th {
	position: sticky;
	top: 0;
	z-index: 2;
}

.flex-grow-1 {
	flex-grow: 1;
}

.table-fade-right {
	position: relative;
}

.table-fade-right::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100px;
	background: linear-gradient(
		to right,
		rgba(248, 249, 250, 0),
		rgba(220, 222, 225, 1)
	);
	pointer-events: none;
}

/* toggle via JS when there is nothing left to scroll */
.table-fade-right.fade-hidden::after {
	display: none;
}

.cell-pointer {
	cursor: pointer;
}

/* keep the last column clear of the 100px fade when scrolled to the end */
.table-fade-right table {
	margin-right: 100px;
}

/* hide the native radio, keep it accessible */
.address-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

/* custom radio circle */
.radio-dot {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 2px solid #b0b0b0;
	border-radius: 50%;
	position: relative;
	transition: border-color 0.15s ease;
}

.radio-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #a11c3d; /* dot color */
	transform: scale(0);
	transition: transform 0.15s ease;
}

/* --- ACTIVE / CHECKED STATE --- */
.address-card input:checked ~ .radio-dot {
	border-color: #a11c3d;
}

.address-card input:checked ~ .radio-dot::after {
	transform: scale(1);
}

.address-card:has(input:checked) {
	background: #fbe9ec;       /* light red background */
	border-color: #a11c3d;     /* red border */
}

/* text styling */
.address-content p {
	margin: 2px 0;
	color: #6b6b6b;
	font-size: 14px;
}

.address-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.address-card input:focus-visible ~ .radio-dot {
	outline: 2px solid #a11c3d;
}

/* cust-info empty table*/
.empty-state {
	height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #adb5bd;
	font-size: 1.1rem;
}

.empty-state i {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.head_red_normal {
	color: #9e0924;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
}

.bildunterschrift {
	font-style: italic;
}

sup {
	font: 9px Verdana;
	position: relative;
	left: 0;
	top: 1px;
	vertical-align: top;
}

.metz {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.sup {
	position: relative;
	left: 0;
	top: -2px;
	vertical-align: top;
}

.metz10 {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.metz10:hover {
	font-size: 1em;
	color: #666666;
	text-decoration: underline;
}

.metz:hover {
	font-size: 1em;
	color: #666666;
	text-decoration: underline;
}

.ametz11 {
	font-size: 1em;
	color: #9e0924;
	text-decoration: none;
}

.ametz11:hover {
	font-size: 1em;
	color: #9e0924;
	text-decoration: underline;
}

.ametz10 {
	font-size: 1em;
	color: #9e0924;
	text-decoration: none;
}

.ametz10:hover {
	font-size: 1em;
	color: #9e0924;
	text-decoration: underline;
}

.naviweiss {
	font-size: 1em;
	color: #FFFFFF;
	text-decoration: none;
}

.navioben {
	font-size: 1em;
	color: #FFFFFF;
	text-decoration: none;
}

.pressesub {
	font-size: 1em;
	color: #9e0924;
	font-weight: bold;
	text-decoration: none;
}

.naviobenrechts {
	font-size: 1em;
	color: #999999;
	text-decoration: none;
}

.navilinksmitte {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.naviuntenrechts {
	font-size: 1em;
	color: #D92819;
	text-decoration: none;
}

.naviuntenrechts:hover {
	font-size: 1em;
	color: #D92819;
	text-decoration: underline;
}

.head_red {
	font-size: 1em;
	color: #9e0924;
	font-weight: bold;
	text-decoration: none;
}

.head_red:hover {
	font-size: 1em;
	color: #9e0924;
	font-weight: bold;
	text-decoration: underline;
}

.head_gray14 {
	font-size: 1em;
	color: #CCCCCC;
	font-weight: bold;
	text-decoration: none;
}

.head_gray14:hover {
	font-size: 1em;
	color: #CCCCCC;
	font-weight: bold;
	text-decoration: underline;
}


.content_red_head {
	font-size: 1em;
	color: #9e0924;
	font-weight: bold;
	text-decoration: none;
}

.content_footer {
	font-size: 1em;
	color: #CCCCCC;
	font-weight: normal;
	text-decoration: none;
}

.content_footer_link {
	font-size: 1em;
	color: #CCCCCC;
	font-weight: bold;
	text-decoration: underline;
}

.content_red_normal {
	font-size: 1em;
	color: #9e0924;
	text-decoration: none;
}

.head_black {
	font-size: 1em;
	color: #000000;
	text-decoration: none;
}

.head_gray {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.head_gray {
	font-size: 1em;
	font-weight: bold;
	color: #666666;
	text-decoration: none;
}

.head_black_start {
	font-size: 1em;
	color: #000000;
	text-decoration: none;
	text-align: left;
	vertical-align: bottom;
}

.head_black_start:hover {
	font-size: 1em;
	color: #000000;
	text-decoration: underline;
}

.head_gray_start {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.head_gray_start:hover {
	font-size: 1em;
	color: #666666;
	text-decoration: underline;
}

.content_text {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.content_text_i {
	font-style: italic;
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.content_text:hover {
	font-size: 1em;
	color: #666666;
}


.content_text_bold {
	font-size: 1em;
	color: #666666;
	font-weight: bold;
	text-decoration: none;
}

.content_box {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
}

.content_box_red {
	font-size: 1em;
	color: #9e0924;
	text-decoration: none;
}

.content_box_red:hover {
	font-size: 1em;
	color: #9e0924;
	text-decoration: underline;
}

input {
	font-size: 1em;
	color: #666666;
	background-color: #ffffff;
}

.input {
	font-size: 1em;
	color: #666666;
	background-color: #ffffff;
}

.input_optional {
	border: 1px;
	border-style: solid;
	border-color: #989898;
	width: 70px;
	height: 16px;
	font-size: 1em;
	color: #666666;
	background-color: #ffffff;
}

.input_suche {
	border: 1px;
	border-style: solid;
	border-color: #989898;
	width: 100px;
	height: 19px;
	font-size: 1em;
	color: #666666;
	background-color: #ffffff;
}

.button {
	border: 1px solid #989898;
	height: 1.5em;
	min-width: 80px;
	font-size: 1em;
	color: #666666;
	background-color: #ffffff;
}

.input-bigtext {
	border: 1px;
	border-style: solid;
	border-color: #989898;
	width: 323px;
	height: 100px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1em;
	color: #666666;
	background-color: #ffffff;
}

.rand_unten {
	font-size: 1em;
	color: #666666;
	text-decoration: none;
	border-width: 0 0 1px 0;
	border-style: solid;
	border-color: #E5E5E5;
}

.textarea-wrapper {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s ease,
	opacity 0.25s ease;
}

.textarea-wrapper.is-visible {
	max-height: 200px; /* must be larger than textarea height */
	opacity: 1;
}

textarea {
	width: 100%;
	min-height: 120px;
	margin-top: 8px;
	font-size: 1em;
}

input.menge {
	margin-top: -3px;
	width: 3.5em;
	text-align: right;
}
.toggle-btn {
	transition: transform 0.2s ease;
}

.toggle-icon {
	display: inline-block;
	transition: transform 0.2s ease;
}

.toggle-btn.collapsed .toggle-icon {
	transform: rotate(180deg);
}

table.katalog_header {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 9px;
}

.cell-min-width-200 {
	min-width: 15rem;
}

table.katalog_header th {
	position: sticky;
	top: 0;
	background: white;
}

table.katalog_header td {
	background-color: #f9f9f9;
	padding: 6px 4px 3px 4px;
}

table.katalog_header td.separator {
	background-color: #ffffff;
	padding: 2px 0 2px 0;
	height: 5px;
}

table.katalog_header tbody tr td {
	border-bottom-width: 5px;
	border-bottom-style: solid;
	border-color: #ffffff;
}

table.katalog_header tbody tr td.text-center {
	text-align: center;
	vertical-align: middle;
}

/**
 * choices.js styled as bootstrap
 */

/* ========================================
   Choices.js — Bootstrap 5.3 theme
   ======================================== */

/* Main control */
.choices__inner {
	min-height: 38px;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bs-body-color);
	background-color: var(--bs-body-bg);
	border: var(--bs-border-width) solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	transition:
		border-color 0.15s ease-in-out,
		box-shadow 0.15s ease-in-out;
}

/* Single select */
.choices[data-type*="select-one"] .choices__inner {
	padding-bottom: 0.375rem;
}

/* Search input */
.choices__input {
	background-color: transparent;
	color: var(--bs-body-color);
	font-size: inherit;
	margin-bottom: 0;
}

/* Focus state */
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
	border-color: var(--bs-form-valid-border-color, #86b7fe);
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Dropdown */
.choices__list--dropdown,
.choices__list[aria-expanded] {
	z-index: var(--choices-z-index, 1000);
	color: var(--bs-body-color);
	background-color: var(--bs-body-bg);
	border: var(--bs-border-width) solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	overflow: hidden;
}

/* Dropdown options */
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
}

/* Hover / highlighted option */
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
	color: var(--bs-dropdown-link-hover-color);
	background-color: var(--bs-dropdown-link-hover-bg);
}

/* Selected option in dropdown */
.choices__list--dropdown .choices__item--selectable.is-selected {
	color: var(--bs-dropdown-link-active-color);
	background-color: var(--bs-dropdown-link-active-bg);
}

/* Selected items in multi-select */
.choices__list--multiple .choices__item {
	color: #fff;
	background-color: var(--bs-primary);
	border: 1px solid var(--bs-primary);
	border-radius: var(--bs-border-radius-sm);
}

/* Remove button on multi-select items */
.choices__list--multiple .choices__item .choices__button {
	border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* Disabled control */
.choices.is-disabled .choices__inner {
	background-color: var(--bs-secondary-bg);
	opacity: 1;
	cursor: not-allowed;
}

/* Disabled search input */
.choices.is-disabled .choices__input {
	background-color: transparent;
}

/* Invalid state */
.was-validated select:invalid + .choices .choices__inner,
select.is-invalid + .choices .choices__inner {
	border-color: var(--bs-form-invalid-border-color);
}

/* Valid state */
.was-validated select:valid + .choices .choices__inner,
select.is-valid + .choices .choices__inner {
	border-color: var(--bs-form-valid-border-color);
}

/* Small */
.choices.choices--small .choices__inner {
	min-height: 31px;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	border-radius: var(--bs-border-radius-sm);
}

/* Large */
.choices.choices--large .choices__inner {
	min-height: 48px;
	padding: 0.5rem 1rem;
	font-size: 1.25rem;
	border-radius: var(--bs-border-radius-lg);
}

.choices.kunden {
	width: 100%;
}
