/**
 * pico_theme.css — Liquid Concept CI + tablet-first shell
 * Loads after myStyles.css. Does not remove Myriad Condensed.
 */

:root {
	--lc-navy: #003058;
	--lc-navy-deep: #002048;
	--lc-navy-soft: #1a4a6e;
	--lc-teal: #2c7888;
	--lc-teal-soft: #6098a4;
	--lc-teal-muted: #e8f2f4;
	--lc-surface: #f4f6f8;
	--lc-surface-elevated: #ffffff;
	--lc-border: #d5dde3;
	--lc-border-strong: #b8c4ce;
	--lc-text: #1a2b38;
	--lc-text-muted: #5a6b78;
	--lc-focus: #2c7888;
	--lc-danger: #c0392b;
	--lc-success: #2e7d4f;
	--lc-warning: #c9a227;
	--lc-radius: 4px;
	--lc-radius-sm: 4px;
	--lc-shadow: 0 1px 3px rgba(0, 48, 88, 0.08), 0 4px 14px rgba(0, 48, 88, 0.06);
	--lc-touch: 44px;
	--lc-side-pad: max(12px, env(safe-area-inset-left, 0px));
	--lc-side-pad-r: max(12px, env(safe-area-inset-right, 0px));
	--lc-brand-blue: var(--lc-navy);
}

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	font-family: 'Myriad-Condensed', 'Segoe UI', sans-serif !important;
	color: var(--lc-text);
	background: var(--lc-surface);
	overflow-x: hidden;
}

body.pico-theme #normal {
	min-height: 100%;
	padding-left: var(--lc-side-pad);
	padding-right: var(--lc-side-pad-r);
	padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

/* Prevent FOUC: don't show page content under the loader until init finishes.
   Otherwise HTML paints once, unloadScreen() blanks it, loadScreen() reveals again
   — looks like a double page load. */
body.pico-theme:has(#loader-wrapper):not(.loaded) #normal {
	visibility: hidden;
}

body.pico-theme #normal > .container,
body.pico-theme #normal > .container[style] {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 12px !important;
	padding-right: 12px !important;
}

/* ---------- Buttons / contrast ---------- */

body.pico-theme .topic {
	color: var(--lc-navy);
}

body.pico-theme .btn {
	min-height: var(--lc-touch);
	border-radius: var(--lc-radius-sm);
	font-size: 1.05rem;
	padding: 0.45rem 0.9rem;
	font-weight: 600;
}

body.pico-theme .btn-primary,
body.pico-theme .btn-primary:not(:disabled):not(.disabled):active,
body.pico-theme .btn-primary:not(:disabled):not(.disabled).active,
body.pico-theme .show > .btn-primary.dropdown-toggle,
body.pico-theme .dt-button.btn-primary,
body.pico-theme a.btn-primary,
body.pico-theme button.btn-primary {
	background-color: var(--lc-navy) !important;
	border-color: var(--lc-navy) !important;
	color: #fff !important;
}

body.pico-theme .btn-primary:hover,
body.pico-theme .btn-primary:focus,
body.pico-theme a.btn-primary:hover {
	background-color: var(--lc-navy-soft) !important;
	border-color: var(--lc-navy-soft) !important;
	color: #fff !important;
	opacity: 1;
}

body.pico-theme .btn-primary.disabled,
body.pico-theme .btn-primary:disabled {
	background-color: #9aabbc !important;
	border-color: #9aabbc !important;
	color: #fff !important;
	opacity: 0.85;
}

body.pico-theme .btn-secondary,
body.pico-theme .btn-light,
body.pico-theme .btn-default,
body.pico-theme a.btn-secondary,
body.pico-theme a.btn-light {
	background-color: #fff !important;
	border: 1px solid var(--lc-border-strong) !important;
	color: var(--lc-text) !important;
}

body.pico-theme .btn-secondary:hover,
body.pico-theme .btn-light:hover,
body.pico-theme .btn-default:hover {
	background-color: var(--lc-teal-muted) !important;
	border-color: var(--lc-teal) !important;
	color: var(--lc-navy) !important;
}

body.pico-theme .btn-success,
body.pico-theme .btn-info,
body.pico-theme .btn-danger,
body.pico-theme .btn-dark {
	color: #fff !important;
}

body.pico-theme .btn-success {
	background-color: var(--lc-success) !important;
	border-color: var(--lc-success) !important;
}

body.pico-theme .btn-info {
	background-color: var(--lc-teal) !important;
	border-color: var(--lc-teal) !important;
}

body.pico-theme .btn-warning {
	background-color: #c9a227 !important;
	border-color: #c9a227 !important;
	color: #1a2b38 !important;
}

body.pico-theme .btn-danger {
	background-color: var(--lc-danger) !important;
	border-color: var(--lc-danger) !important;
}

body.pico-theme .btn-outline-primary,
body.pico-theme .btn-outline-secondary {
	background-color: #fff !important;
	color: var(--lc-navy) !important;
	border-color: var(--lc-navy) !important;
}

body.pico-theme .btn-outline-primary:hover,
body.pico-theme .btn-outline-secondary:hover {
	background-color: var(--lc-navy) !important;
	color: #fff !important;
}

body.pico-theme .back_btn,
body.pico-theme .save_btn,
body.pico-theme .back_all_btn,
body.pico-theme .back_to_order_btn,
body.pico-theme .save_all_btn,
body.pico-theme .confirm_all_btn,
body.pico-theme #back_to_overview_btn:not(.info_btn):not(.pico-start-action-btn),
body.pico-theme button[class*="save_btn"],
body.pico-theme button[class*="back_btn"] {
	color: #fff !important;
}

body.pico-theme .back_btn,
body.pico-theme .save_btn,
body.pico-theme .back_all_btn,
body.pico-theme .back_to_order_btn,
body.pico-theme #back_to_overview_btn:not(.info_btn):not(.pico-start-action-btn) {
	background-color: var(--lc-navy) !important;
	border-color: var(--lc-navy) !important;
}

body.pico-theme .move_ibcs_btn {
	color: var(--lc-navy) !important;
	background-color: #fff !important;
	border-color: var(--lc-navy) !important;
}

/* DataTables export buttons (btn-default / btn-group) — always readable */
body.pico-theme .dt-buttons,
body.pico-theme .button_group_dt,
body.pico-theme .btn-group.dt-buttons {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

body.pico-theme .dt-buttons > .btn,
body.pico-theme .dt-buttons > a.btn,
body.pico-theme .dt-buttons > button.btn,
body.pico-theme .dt-buttons > .dt-button,
body.pico-theme .dt-buttons a.dt-button,
body.pico-theme .button_group_dt > .btn,
body.pico-theme .button_group_dt > a.btn,
body.pico-theme .button_group_dt .btn,
body.pico-theme .button_group_dt a.btn,
body.pico-theme .btn-group.dt-buttons > .btn,
body.pico-theme .btn-group.dt-buttons > a.btn,
body.pico-theme a.btn.btn-default,
body.pico-theme button.btn.btn-default,
body.pico-theme .btn.btn-default {
	background: #ffffff !important;
	background-image: none !important;
	border: 1px solid var(--lc-border-strong) !important;
	color: var(--lc-navy) !important;
	text-shadow: none !important;
	box-shadow: none !important;
	min-height: var(--lc-touch);
	padding: 0.45rem 0.85rem !important;
	font-weight: 400;
	opacity: 1 !important;
}

body.pico-theme .dt-buttons > .btn:hover,
body.pico-theme .dt-buttons > a.btn:hover,
body.pico-theme .button_group_dt .btn:hover,
body.pico-theme .button_group_dt a.btn:hover,
body.pico-theme .btn.btn-default:hover,
body.pico-theme a.btn.btn-default:hover {
	background: var(--lc-teal-muted) !important;
	background-image: none !important;
	border-color: var(--lc-teal) !important;
	color: var(--lc-navy) !important;
}

body.pico-theme .dt-buttons > .btn i,
body.pico-theme .dt-buttons > a.btn i,
body.pico-theme .button_group_dt .btn i,
body.pico-theme .button_group_dt a.btn i,
body.pico-theme .btn.btn-default i {
	color: inherit !important;
}

body.pico-theme .dt-buttons .btn.btn-primary,
body.pico-theme .dt-buttons a.btn.btn-primary,
body.pico-theme .button_group_dt .btn.btn-primary,
body.pico-theme .button_group_dt a.btn.btn-primary,
body.pico-theme .pico-toolbar .btn.btn-primary,
body.pico-theme .pico-toolbar a.btn.btn-primary,
body.pico-theme a.btn.btn-primary.buttons-pdf,
body.pico-theme a.btn.btn-primary.buttons-html5,
body.pico-theme #export_all_active_btn_pdf .btn,
body.pico-theme #export_all_active_btn_pdf a.btn {
	background: var(--lc-navy) !important;
	background-image: none !important;
	border-color: var(--lc-navy) !important;
	color: #ffffff !important;
	text-shadow: none !important;
	font-weight: 400;
}

body.pico-theme .dt-buttons .btn.btn-primary:hover,
body.pico-theme .button_group_dt .btn.btn-primary:hover,
body.pico-theme .pico-toolbar a.btn.btn-primary:hover,
body.pico-theme a.btn.btn-primary.buttons-pdf:hover {
	background: var(--lc-navy-soft) !important;
	border-color: var(--lc-navy-soft) !important;
	color: #ffffff !important;
}

body.pico-theme .dt-buttons .btn.btn-primary i,
body.pico-theme .button_group_dt .btn.btn-primary i,
body.pico-theme .pico-toolbar .btn.btn-primary i,
body.pico-theme a.btn.btn-primary.buttons-pdf i {
	color: #ffffff !important;
}

body.pico-theme .col-search-btn {
	background: rgba(255, 255, 255, 0.2) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	color: #fff !important;
}

/* Kachel-Buttons (grauer Fill): weißer Text. Outline-/Tabellen-Buttons ausnehmen. */
body.pico-theme .ibc button:not(.btn-outline-primary):not(.btn-outline-secondary):not(.pico-start-cell-btn),
body.pico-theme .ibc-costs button:not(.btn-outline-primary):not(.btn-outline-secondary) {
	color: #fff !important;
}

body.pico-theme .form-control,
body.pico-theme .custom-select,
body.pico-theme input[type="text"],
body.pico-theme input[type="password"],
body.pico-theme input[type="number"],
body.pico-theme select,
body.pico-theme textarea {
	min-height: var(--lc-touch);
	border-radius: var(--lc-radius-sm);
	border-color: var(--lc-border-strong);
	font-size: 1.05rem;
	color: var(--lc-text);
	background: #fff;
}

/* Table action buttons: compact by default, but keep readable text actions */
body.pico-theme table.dataTable td .btn,
body.pico-theme table.order_table td .btn,
body.pico-theme table.dataTable td input.btn,
body.pico-theme table.order_table td input.btn {
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	padding: 0.2rem 0.45rem !important;
	font-size: 0.8rem !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

body.pico-theme table.dataTable td .btn-ibc-okay,
body.pico-theme table.dataTable td input.btn-ibc-okay {
	min-height: 32px !important;
	padding: 0.3rem 0.65rem !important;
	font-size: 0.85rem !important;
	font-weight: 600;
}

body.pico-theme .form-control:focus,
body.pico-theme input:focus,
body.pico-theme select:focus,
body.pico-theme textarea:focus {
	border-color: var(--lc-teal);
	box-shadow: 0 0 0 0.2rem rgba(44, 120, 136, 0.2);
}

/* Column filter inputs (loupe row): thead .pico-col-filter-row and legacy tfoot */
body.pico-theme table.dataTable thead tr.pico-col-filter-row th,
body.pico-theme table.dataTable thead tr.pico-col-filter-row th.sorting,
body.pico-theme table.dataTable thead tr.pico-col-filter-row th.sorting_asc,
body.pico-theme table.dataTable thead tr.pico-col-filter-row th.sorting_desc,
body.pico-theme table.dataTable thead tr.pico-col-filter-row th.sorting_asc_disabled,
body.pico-theme table.dataTable thead tr.pico-col-filter-row th.sorting_desc_disabled,
body.pico-theme table.order_table thead tr.pico-col-filter-row th,
body.pico-theme table.order_table thead tr.pico-col-filter-row th.sorting,
body.pico-theme table.order_table thead tr.pico-col-filter-row th.sorting_asc,
body.pico-theme table.order_table thead tr.pico-col-filter-row th.sorting_desc,
body.pico-theme table.dataTable tfoot th,
body.pico-theme table.dataTable tfoot td,
body.pico-theme table.order_table tfoot th,
body.pico-theme table.order_table tfoot td {
	padding: 3px 5px !important;
	vertical-align: middle !important;
	text-align: left !important;
	white-space: normal !important;
	font-weight: 400 !important;
	/* no sort chevron rail / sticky stack from header row */
	padding-right: 5px !important;
	background-image: none !important;
	top: auto !important;
	z-index: 1 !important;
	cursor: default !important;
}

body.pico-theme table.dataTable thead tr.pico-col-filter-row input.form-control,
body.pico-theme table.dataTable thead tr.pico-col-filter-row input[type="text"],
body.pico-theme table.dataTable thead tr.pico-col-filter-row select.form-control,
body.pico-theme table.order_table thead tr.pico-col-filter-row input.form-control,
body.pico-theme table.order_table thead tr.pico-col-filter-row input[type="text"],
body.pico-theme table.order_table thead tr.pico-col-filter-row select.form-control,
body.pico-theme table.dataTable tfoot input.form-control,
body.pico-theme table.dataTable tfoot input[type="text"],
body.pico-theme table.dataTable tfoot select.form-control,
body.pico-theme table.order_table tfoot input.form-control,
body.pico-theme table.order_table tfoot input[type="text"],
body.pico-theme table.order_table tfoot select.form-control {
	min-height: 22px !important;
	height: 22px !important;
	max-height: 22px !important;
	padding: 0.05rem 0.35rem !important;
	margin: 0 !important;
	font-size: 0.8rem !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	border-radius: var(--lc-radius-sm);
	text-align: left !important;
	box-sizing: border-box !important;
	width: 100% !important;
	color: var(--lc-text) !important;
	background: #fff !important;
}

body.pico-theme table.dataTable thead tr.pico-col-filter-row input.form-control::placeholder,
body.pico-theme table.dataTable thead tr.pico-col-filter-row input[type="text"]::placeholder,
body.pico-theme table.order_table thead tr.pico-col-filter-row input.form-control::placeholder,
body.pico-theme table.order_table thead tr.pico-col-filter-row input[type="text"]::placeholder,
body.pico-theme table.dataTable tfoot input.form-control::placeholder,
body.pico-theme table.dataTable tfoot input[type="text"]::placeholder,
body.pico-theme table.order_table tfoot input.form-control::placeholder,
body.pico-theme table.order_table tfoot input[type="text"]::placeholder {
	text-align: left !important;
	opacity: 0.75;
	color: #6c757d;
}

body.pico-theme a:not(.btn):not(.nav-link):not(.pico-nav-link):not(.dropdown-item):not(.page-link):not(.paginate_button):not(.pico-shell-lang):not(.pico-shell-brand-link):not(.home-tile) {
	color: var(--lc-teal);
}

body.pico-theme a:not(.btn):not(.nav-link):not(.pico-nav-link):not(.dropdown-item):not(.pico-shell-lang):not(.pico-shell-brand-link):not(.home-tile):hover {
	color: var(--lc-navy);
}

/* ---------- Combined app shell ---------- */

body.pico-theme .pico-app-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	width: 100%;
	margin: 6px 0 12px;
	padding: 8px 10px;
	padding-top: max(8px, env(safe-area-inset-top, 0px));
	background: linear-gradient(145deg, var(--lc-navy) 0%, var(--lc-navy-soft) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	overflow: visible;
	position: relative;
	z-index: 1040;
}

body.pico-theme .pico-shell-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

body.pico-theme .pico-shell-brand-link {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	background: #fff;
	border-radius: var(--lc-radius-sm);
	line-height: 1;
	text-decoration: none !important;
}

body.pico-theme .pico-shell-brand img,
body.pico-theme .pico-shell-brand .pico-logo-app {
	height: 40px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	margin: 0;
}

body.pico-theme .pico-shell-nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

body.pico-theme .pico-nav__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	width: 100%;
}

body.pico-theme .pico-shell-nav .nav-item {
	width: auto !important;
	flex: 0 0 auto;
	margin: 0;
	list-style: none;
}

body.pico-theme .pico-shell-nav .nav-item.nav-item-one-less,
body.pico-theme .pico-shell-nav .nav-item:last-child,
body.pico-theme .pico-shell-nav .nav-item.nav-item-one-less:last-child {
	width: auto !important;
}

body.pico-theme .pico-shell-nav .pico-nav-link,
body.pico-theme .pico-shell-nav .nav-link {
	display: inline-flex !important;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	padding: 0.45rem 0.8rem !important;
	margin: 0 !important;
	border: 1px solid transparent !important;
	border-radius: var(--lc-radius-sm) !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 1rem !important;
	font-weight: 600;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.pico-theme .pico-shell-nav .pico-nav-link i {
	font-size: 0.9rem;
	opacity: 0.92;
	color: inherit;
}

body.pico-theme .pico-shell-nav .pico-nav-link:hover,
body.pico-theme .pico-shell-nav .nav-link:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
}

body.pico-theme .pico-shell-nav .pico-nav-link.active,
body.pico-theme .pico-shell-nav .nav-link.active,
body.pico-theme .pico-shell-nav .pico-nav-link.is-active {
	background: #fff !important;
	border-color: #fff !important;
	color: var(--lc-navy) !important;
}

body.pico-theme .pico-shell-nav .pico-nav-link.active i,
body.pico-theme .pico-shell-nav .nav-link.active i {
	opacity: 1;
	color: var(--lc-navy);
}

body.pico-theme .pico-shell-nav .pico-nav-dropdown {
	position: relative;
}

body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-toggle::after {
	margin-left: 0.35rem;
	vertical-align: 0.15em;
}

body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-menu {
	margin-top: 0.35rem;
	padding: 0.35rem;
	min-width: 11rem;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius-sm);
	box-shadow: var(--lc-shadow);
	background: #fff;
	z-index: 1050;
	position: absolute;
}

body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-item {
	display: flex;
	align-items: center;
	min-height: var(--lc-touch);
	padding: 0.45rem 0.75rem;
	border-radius: var(--lc-radius-sm);
	color: var(--lc-navy);
	font-weight: 600;
	font-size: 1rem;
}

body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-item:hover,
body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-item:focus {
	background: var(--lc-teal-muted);
	color: var(--lc-navy);
}

body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-item.active,
body.pico-theme .pico-shell-nav .pico-nav-dropdown .dropdown-item:active {
	background: var(--lc-navy);
	color: #fff;
}

body.pico-theme .pico-shell-nav .nav-link:not(.active) {
	border-bottom: 1px solid transparent !important;
}

body.pico-theme .pico-shell-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 0 auto;
	margin-left: auto;
}

body.pico-theme .pico-shell-date {
	display: inline-flex;
	align-items: center;
	max-width: min(18rem, 42vw);
	min-height: 40px;
	padding: 0 0.2rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 700px) {
	body.pico-theme .pico-shell-date {
		display: none;
	}
}

body.pico-theme .pico-shell-lang,
body.pico-theme .pico-shell-meta #lang_switch {
	color: #fff !important;
	font-size: 0.95rem;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 6px 4px;
	border: none !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none;
}

body.pico-theme .pico-shell-lang:hover,
body.pico-theme .pico-shell-lang:focus,
body.pico-theme .pico-shell-meta #lang_switch:hover,
body.pico-theme .pico-shell-meta #lang_switch:focus {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #fff !important;
	opacity: 0.85;
	text-decoration: none;
}

body.pico-theme .pico-shell-logo-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	background: #fff;
	border-radius: var(--lc-radius-sm);
}

body.pico-theme .pico-shell-logout {
	border: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

body.pico-theme .pico-shell-logout:hover,
body.pico-theme .pico-shell-logout:focus {
	background: #f3f5f7;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
	outline: none;
}

body.pico-theme .pico-shell-logout-icon {
	font-size: 0.95rem;
	color: #5a6570;
	line-height: 1;
}

body.pico-theme .pico-shell-logout:hover .pico-shell-logout-icon,
body.pico-theme .pico-shell-logout:focus .pico-shell-logout-icon {
	color: #c0392b;
}

body.pico-theme .pico-shell-meta .logo,
body.pico-theme .pico-shell-meta #logo {
	height: 36px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	margin: 0;
}

body.pico-theme .pico-app-shell--brand-only .pico-shell-meta {
	margin-left: auto;
}

body.pico-theme ul.nav {
	font-size: inherit;
}

@media (max-width: 900px) {
	body.pico-theme .pico-app-shell {
		padding: 8px;
	}

	body.pico-theme .pico-shell-nav .pico-nav-link,
	body.pico-theme .pico-shell-nav .nav-link {
		padding: 0.45rem 0.7rem !important;
		font-size: 0.95rem !important;
	}

	body.pico-theme .pico-shell-lang-label {
		display: none;
	}
}

/* ---------- Page titles / toolbar ---------- */

/* Main page title (h1) + primary action (e.g. PDF export) on one row */
body.pico-theme .topic_in.topic_out {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	width: 100%;
	margin-bottom: 0.75rem;
}

body.pico-theme .topic_in.topic_out > h1,
body.pico-theme .pico-page-title {
	color: var(--lc-navy);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	margin-bottom: 0 !important;
	flex: 1 1 auto;
	min-width: 0;
}

body.pico-theme .topic_in.topic_out > h1 small,
body.pico-theme .pico-page-title small {
	color: var(--lc-teal);
	font-weight: 500;
}

body.pico-theme .topic_in.topic_out > .pico-page-heading-actions,
body.pico-theme .topic_in.topic_out > .pico-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 0 auto;
	flex: 0 1 auto;
}

body.pico-theme .topic_in.topic_out > .pico-page-heading-actions .dt-buttons,
body.pico-theme .topic_in.topic_out > .pico-page-heading-actions .btn-group,
body.pico-theme .topic_in.topic_out > .pico-toolbar .dt-buttons {
	margin: 0 !important;
	position: static !important;
}

body.pico-theme .topic_in.topic_out > .pico-page-heading-actions .btn,
body.pico-theme .topic_in.topic_out > .pico-page-heading-actions a.btn {
	min-height: var(--lc-touch);
}

body.pico-theme .topic_in.topic_out > h6 {
	flex: 1 1 100%;
	width: 100%;
	margin: 0.35rem 0 0;
}

body.pico-theme .pico-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	position: relative;
}

body.pico-theme .pico-toolbar .dt-buttons {
	position: static !important;
	margin: 0 !important;
}

/* Table section headings: title left, PDF/actions right */
body.pico-theme .pico-table-heading,
body.pico-theme div.topic_in:has(> h3),
body.pico-theme div.topic_out:has(> h3),
body.pico-theme div.content_in:has(> h3),
body.pico-theme div.content_out:has(> h3) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	width: 100%;
	margin-bottom: 0.5rem;
}

body.pico-theme .pico-table-heading > h3,
body.pico-theme div.topic_in:has(> h3) > h3,
body.pico-theme div.topic_out:has(> h3) > h3,
body.pico-theme div.content_in:has(> h3) > h3,
body.pico-theme div.content_out:has(> h3) > h3 {
	color: var(--lc-navy);
	font-size: 1.35rem;
	margin: 0;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--lc-border);
	flex: 1 1 auto;
	min-width: 0;
}

/* Archive: "Übersicht erstellen" on same row as h3; border under full row */
body.pico-theme div.in_archiv:has(> #btn_create_overview_in),
body.pico-theme div.out_archiv:has(> #btn_create_overview_out) {
	align-items: center;
	border-bottom: 1px solid var(--lc-border);
	padding-bottom: 0.35rem;
	margin-bottom: 0.75rem;
	gap: 8px 12px;
}

body.pico-theme div.in_archiv:has(> #btn_create_overview_in) > h3,
body.pico-theme div.out_archiv:has(> #btn_create_overview_out) > h3 {
	border-bottom: none;
	padding-bottom: 0;
	margin: 0;
	flex: 1 1 auto;
}

body.pico-theme #btn_create_overview_in,
body.pico-theme #btn_create_overview_out {
	flex: 0 0 auto;
	margin: 0 0 0 auto !important;
	align-self: center;
}

body.pico-theme .pico-table-heading-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
	flex: 0 0 auto;
}

body.pico-theme .pico-table-heading-actions .dt-buttons,
body.pico-theme .pico-table-heading-actions .btn-group {
	margin: 0 !important;
	position: static !important;
}

body.pico-theme .pico-table-heading-actions .btn,
body.pico-theme .pico-table-heading-actions a.btn {
	min-height: var(--lc-touch);
}

body.pico-theme #content {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
}

body.pico-theme #content > h3 {
	color: var(--lc-navy);
	font-size: 1.35rem;
	margin-top: 1.25rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--lc-border);
}

/* ---------- DataTables / overview tables ---------- */

body.pico-theme .dataTables_wrapper {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 0;
	width: 100% !important;
	max-width: 100%;
	float: none !important;
	background: var(--lc-surface-elevated);
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	padding: 10px 10px 0;
	margin-bottom: 1.25rem;
	/* visible so ColVis / button collections are not clipped */
	overflow: visible;
}

/* Everything except footer info/paginate spans full card width */
body.pico-theme .dataTables_wrapper > *:not(.info_dt):not(.pagination_dt) {
	grid-column: 1 / -1;
}

body.pico-theme .dataTables_wrapper .dataTables_scroll,
body.pico-theme .pico-table-scroll {
	position: relative;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	border-radius: var(--lc-radius-sm);
	grid-column: 1 / -1;
}

/* Fill container; grow past 100% only when nowrap content needs it (overflow-x on wrapper).
   Avoid width:max-content — after ColVis it often leaves a phantom horizontal scrollbar. */
body.pico-theme .pico-table-scroll > table.dataTable,
body.pico-theme .pico-table-scroll > table.cell-border,
body.pico-theme .dataTables_scrollBody > table.dataTable {
	width: 100% !important;
	min-width: 100%;
	max-width: none;
}

/* scroll hint via inset shadow — do not use ::after (DT needs clearfix) */
body.pico-theme .dataTables_wrapper.pico-can-scroll-x .pico-table-scroll,
body.pico-theme .dataTables_wrapper.pico-can-scroll-x .dataTables_scroll {
	box-shadow: inset -18px 0 16px -16px rgba(0, 48, 88, 0.18);
}

body.pico-theme .dataTables_wrapper::after {
	/* not needed with grid layout; keep harmless for older float leftovers */
	display: none;
	content: none;
}

/* Narrow: stack info above pagination, still full width */
@media (max-width: 720px) {
	body.pico-theme .dataTables_wrapper {
		grid-template-columns: 1fr;
	}

	body.pico-theme .dataTables_wrapper > .info_dt,
	body.pico-theme .dataTables_wrapper > .pagination_dt {
		grid-column: 1 / -1;
		justify-self: stretch;
		text-align: left;
	}

	body.pico-theme .dataTables_wrapper .dataTables_info {
		white-space: normal;
	}

	body.pico-theme .dataTables_wrapper .dataTables_paginate {
		justify-content: flex-start;
	}
}

body.pico-theme table.order_table,
body.pico-theme table.dataTable {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0;
	background: transparent;
}

body.pico-theme table.dataTable thead th,
body.pico-theme table.order_table thead th {
	/* background-color only — do not wipe DataTables sort background-image */
	background-color: var(--lc-navy) !important;
	color: #fff !important;
	border-color: var(--lc-navy-deep) !important;
	font-size: 0.95rem;
	font-weight: 600;
	vertical-align: middle;
	padding: 10px 8px !important;
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Sort chevrons: DT default PNGs are dark/gray and vanish on navy headers.
   Right rail: [loupe][gap][chevron] — loupe is absolute, chevron is background. */
body.pico-theme table.dataTable thead th.sorting,
body.pico-theme table.dataTable thead th.sorting_asc,
body.pico-theme table.dataTable thead th.sorting_desc,
body.pico-theme table.dataTable thead th.sorting_asc_disabled,
body.pico-theme table.dataTable thead th.sorting_desc_disabled,
body.pico-theme table.order_table thead th.sorting,
body.pico-theme table.order_table thead th.sorting_asc,
body.pico-theme table.order_table thead th.sorting_desc {
	cursor: pointer;
	/* loupe 22px + gap 6px + chevron 12px + edge 6px */
	padding-right: 2.85rem !important;
	background-repeat: no-repeat !important;
	background-position: right 6px center !important;
	background-size: 12px 16px !important;
}

body.pico-theme table.dataTable thead th.sorting,
body.pico-theme table.order_table thead th.sorting {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16'%3E%3Cpath fill='%23ffffff' fill-opacity='0.55' d='M6 1l4.5 5.5h-9z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.55' d='M6 15l4.5-5.5h-9z'/%3E%3C/svg%3E") !important;
}

body.pico-theme table.dataTable thead th.sorting_asc,
body.pico-theme table.order_table thead th.sorting_asc {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16'%3E%3Cpath fill='%23ffffff' d='M6 1l4.5 5.5h-9z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M6 15l4.5-5.5h-9z'/%3E%3C/svg%3E") !important;
}

body.pico-theme table.dataTable thead th.sorting_desc,
body.pico-theme table.order_table thead th.sorting_desc {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M6 1l4.5 5.5h-9z'/%3E%3Cpath fill='%23ffffff' d='M6 15l4.5-5.5h-9z'/%3E%3C/svg%3E") !important;
}

body.pico-theme table.dataTable thead th.sorting_asc_disabled,
body.pico-theme table.dataTable thead th.sorting_desc_disabled {
	background-image: none !important;
	cursor: default;
}

/* Header cell layout: label left; loupe pinned in the right rail.
   th already uses position:sticky (containing block for absolute loupe). */
body.pico-theme table.dataTable thead th > div,
body.pico-theme table.order_table thead th > div,
body.pico-theme table.cell-border thead th > div {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	/* keep label clear of absolute loupe when no sort padding applies */
	padding-right: 1.6rem;
}

body.pico-theme table.dataTable thead th.sorting > div,
body.pico-theme table.dataTable thead th.sorting_asc > div,
body.pico-theme table.dataTable thead th.sorting_desc > div,
body.pico-theme table.dataTable thead th.sorting_asc_disabled > div,
body.pico-theme table.dataTable thead th.sorting_desc_disabled > div,
body.pico-theme table.order_table thead th.sorting > div,
body.pico-theme table.order_table thead th.sorting_asc > div,
body.pico-theme table.order_table thead th.sorting_desc > div {
	/* th padding-right already reserves loupe+chevron rail */
	padding-right: 0;
}

body.pico-theme table.dataTable thead th > div > span,
body.pico-theme table.order_table thead th > div > span,
body.pico-theme table.cell-border thead th > div > span {
	flex: 1 1 auto;
	min-width: 0;
}

body.pico-theme table.dataTable thead th .btn,
body.pico-theme table.dataTable thead th .col-search-btn,
body.pico-theme table.order_table thead th .col-search-btn,
body.pico-theme table.cell-border thead th .col-search-btn,
body.pico-theme .col-search-btn {
	flex: 0 0 auto;
	float: none !important;
	margin: 0 !important;
	min-height: 22px !important;
	min-width: 22px !important;
	width: 22px !important;
	height: 22px !important;
	padding: 0 !important;
	font-size: 0.7rem !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.18) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 4px !important;
	color: #fff !important;
	box-shadow: none !important;
	/* right-aligned in cell; default (no chevron) flush to edge */
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	pointer-events: auto;
	cursor: pointer;
}

/* Sortable: sit just left of the up/down chevrons */
body.pico-theme table.dataTable thead th.sorting .col-search-btn,
body.pico-theme table.dataTable thead th.sorting_asc .col-search-btn,
body.pico-theme table.dataTable thead th.sorting_desc .col-search-btn,
body.pico-theme table.dataTable thead th.sorting_asc_disabled .col-search-btn,
body.pico-theme table.dataTable thead th.sorting_desc_disabled .col-search-btn,
body.pico-theme table.order_table thead th.sorting .col-search-btn,
body.pico-theme table.order_table thead th.sorting_asc .col-search-btn,
body.pico-theme table.order_table thead th.sorting_desc .col-search-btn,
body.pico-theme table.cell-border thead th.sorting .col-search-btn,
body.pico-theme table.cell-border thead th.sorting_asc .col-search-btn,
body.pico-theme table.cell-border thead th.sorting_desc .col-search-btn {
	/* 6px edge + 12px chevron + 6px gap ≈ 24px */
	right: 1.5rem;
}

body.pico-theme table.dataTable thead th .col-search-btn i,
body.pico-theme table.order_table thead th .col-search-btn i,
body.pico-theme table.cell-border thead th .col-search-btn i,
body.pico-theme table.dataTable thead th .col-search-btn svg,
body.pico-theme table.order_table thead th .col-search-btn svg,
body.pico-theme table.cell-border thead th .col-search-btn svg {
	font-size: 0.7rem;
	line-height: 1;
	margin: 0;
	width: auto;
	pointer-events: none;
}

body.pico-theme table.dataTable tbody td,
body.pico-theme table.order_table tbody td {
	font-size: 1.02rem;
	padding: 12px 8px !important;
	vertical-align: middle;
	border-color: var(--lc-border) !important;
	color: var(--lc-text);
	min-height: var(--lc-touch);
}

body.pico-theme table.dataTable tbody tr:nth-child(even),
body.pico-theme table.order_table tbody tr:nth-child(even) {
	background: rgba(0, 48, 88, 0.03);
}

body.pico-theme table.dataTable tbody tr:hover,
body.pico-theme table.order_table tbody tr:hover {
	background: var(--lc-teal-muted) !important;
}

body.pico-theme table.dataTable.no-footer,
body.pico-theme table.dataTable {
	border-bottom: 1px solid var(--lc-border) !important;
}

/* Top toolbar: length | export buttons | search — one row */
body.pico-theme .dataTables_wrapper > .pico-dt-top {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 12px;
	margin-bottom: 10px;
	min-width: 0;
	position: relative;
	z-index: 20;
	overflow: visible;
}

body.pico-theme .pico-dt-top > .pico-dt-length,
body.pico-theme .pico-dt-top > .button_group_dt,
body.pico-theme .pico-dt-top > .pico-dt-filter {
	float: none !important;
	margin: 0 !important;
	min-width: 0;
	overflow: visible;
}

body.pico-theme .pico-dt-top > .pico-dt-length {
	flex: 0 1 auto;
	order: 1;
}

body.pico-theme .pico-dt-top > .button_group_dt {
	flex: 0 1 auto;
	order: 2;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-left: 0 !important;
	position: relative;
	z-index: 21;
}

body.pico-theme .pico-dt-top .dt-buttons {
	margin-left: 0 !important;
	overflow: visible;
	position: relative;
	z-index: 21;
}

body.pico-theme .pico-dt-top > .pico-dt-filter {
	flex: 0 1 auto;
	order: 3;
	margin-left: auto !important;
	text-align: right;
}

body.pico-theme .pico-dt-top .dataTables_length,
body.pico-theme .pico-dt-top .dataTables_filter {
	float: none !important;
	margin: 0 !important;
	color: var(--lc-text) !important;
}

body.pico-theme .dataTables_filter input,
body.pico-theme .dataTables_length select {
	min-height: var(--lc-touch);
	font-size: 1.05rem;
	color: var(--lc-text) !important;
	background: #fff !important;
}

body.pico-theme .dataTables_length,
body.pico-theme .dataTables_filter {
	color: var(--lc-text) !important;
	margin-bottom: 0;
}

body.pico-theme .dataTables_length label,
body.pico-theme .dataTables_filter label {
	color: var(--lc-text) !important;
	font-weight: 600;
	margin-bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

@media (max-width: 720px) {
	body.pico-theme .dataTables_wrapper > .pico-dt-top {
		flex-direction: column;
		align-items: stretch;
	}

	body.pico-theme .pico-dt-top > .button_group_dt,
	body.pico-theme .pico-dt-top > .pico-dt-filter {
		justify-content: flex-start;
		text-align: left;
	}
}

/* Bottom bar: info left, pagination right — one shared footer strip */
body.pico-theme .dataTables_wrapper > .info_dt,
body.pico-theme .dataTables_wrapper > .pagination_dt {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 12px 10px !important;
	box-sizing: border-box;
	font-size: 1rem;
	color: var(--lc-text) !important;
	background: var(--lc-surface);
	border-top: 1px solid var(--lc-border);
	min-width: 0;
	min-height: 56px;
	align-self: stretch;
	justify-self: stretch;
	display: flex;
	align-items: center;
}

body.pico-theme .dataTables_wrapper > .info_dt {
	grid-column: 1;
	justify-content: flex-start;
	white-space: normal;
}

body.pico-theme .dataTables_wrapper > .pagination_dt {
	grid-column: 2;
	justify-content: flex-end;
	text-align: right;
	white-space: nowrap;
}

/* Kill DataTables default floats on nested info/paginate (were collapsing parents) */
body.pico-theme .dataTables_wrapper .dataTables_info,
body.pico-theme .dataTables_wrapper .dataTables_paginate {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	color: var(--lc-text) !important;
	font-size: inherit;
	position: static !important;
	text-align: inherit;
	white-space: normal;
}

body.pico-theme .dataTables_wrapper .dataTables_info {
	white-space: nowrap;
}

body.pico-theme .dataTables_wrapper .dataTables_paginate {
	display: inline-flex !important;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	white-space: normal;
}

body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	float: none !important;
	min-height: var(--lc-touch);
	min-width: var(--lc-touch);
	padding: 8px 12px !important;
	border-radius: var(--lc-radius-sm) !important;
	border: 1px solid var(--lc-border-strong) !important;
	margin: 0 !important;
	background: #ffffff !important;
	background-image: none !important;
	color: var(--lc-navy) !important;
	font-weight: 600;
	box-shadow: none !important;
}

body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button.current,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button.current:hover {
	background: var(--lc-navy) !important;
	background-image: none !important;
	color: #ffffff !important;
	border-color: var(--lc-navy) !important;
}

body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button:hover {
	background: var(--lc-teal-muted) !important;
	background-image: none !important;
	color: var(--lc-navy) !important;
	border-color: var(--lc-teal) !important;
}

body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button.disabled,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button.disabled:hover {
	color: #8a97a3 !important;
	background: #eef1f4 !important;
	background-image: none !important;
	border-color: transparent !important;
	cursor: default;
}

body.pico-theme .dataTables_wrapper .dataTables_paginate .paginate_button:active,
body.pico-theme .dataTables_wrapper .pagination_dt .paginate_button:active {
	background: var(--lc-navy-soft) !important;
	background-image: none !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

body.pico-theme .dt-buttons .btn:not(.btn-primary),
body.pico-theme .button_group_dt .btn:not(.btn-primary) {
	background-image: none !important;
	background: #ffffff !important;
	border: 1px solid var(--lc-border-strong) !important;
	color: var(--lc-navy) !important;
	text-shadow: none !important;
	min-height: var(--lc-touch);
	font-weight: 400;
}

body.pico-theme .col-search-btn {
	float: none;
}

/* ---------- Hybrid card mode (portrait / narrow) ---------- */

@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
	body.pico-theme.pico-card-mode table.order_table thead,
	body.pico-theme.pico-card-mode table.order_table tfoot {
		display: none !important;
	}

	body.pico-theme.pico-card-mode .dataTables_wrapper {
		background: transparent;
		border: none;
		box-shadow: none;
		padding: 0;
	}

	body.pico-theme.pico-card-mode .dataTables_wrapper::after {
		display: none;
	}

	body.pico-theme.pico-card-mode table.order_table,
	body.pico-theme.pico-card-mode table.order_table tbody {
		display: block;
		width: 100% !important;
	}

	body.pico-theme.pico-card-mode table.order_table tbody tr {
		display: block;
		background: var(--lc-surface-elevated) !important;
		border: 1px solid var(--lc-border);
		border-radius: var(--lc-radius);
		box-shadow: var(--lc-shadow);
		margin: 0 0 14px;
		padding: 10px 12px 12px;
		overflow: hidden;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td {
		display: none;
		width: 100% !important;
		border: none !important;
		padding: 8px 4px !important;
		text-align: left !important;
		white-space: normal;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-field,
	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-action,
	body.pico-theme.pico-card-mode table.order_table tbody tr.pico-card-expanded td {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		border-bottom: 1px solid var(--lc-border) !important;
	}

	body.pico-theme.pico-card-mode table.order_table tbody tr.pico-card-expanded td:last-child {
		border-bottom: none !important;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-field::before,
	body.pico-theme.pico-card-mode table.order_table tbody tr.pico-card-expanded td::before {
		content: attr(data-pico-label);
		flex: 0 0 42%;
		max-width: 42%;
		color: var(--lc-text-muted);
		font-weight: 600;
		font-size: 0.95rem;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-action {
		justify-content: flex-start;
		flex-wrap: wrap;
		border-bottom: none !important;
		padding-top: 12px !important;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-action::before {
		display: none;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-action .btn,
	body.pico-theme.pico-card-mode table.order_table tbody td.pico-card-action a.btn {
		min-height: var(--lc-touch);
		margin: 4px 6px 4px 0;
	}

	body.pico-theme.pico-card-mode table.order_table tbody td .pico-card-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: var(--lc-touch);
		margin-top: 8px;
		padding: 8px 14px;
		border: 1px solid var(--lc-border-strong);
		border-radius: var(--lc-radius-sm);
		background: var(--lc-teal-muted);
		color: var(--lc-navy);
		font-size: 1rem;
		cursor: pointer;
		width: 100%;
	}
}

body.pico-theme table.order_table tbody td .pico-card-toggle {
	display: none;
}

/* ---------- Modals ---------- */

body.pico-theme .modal-content {
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	/* Reset: login page sets body.login-landing-body { color:#fff } and modals inherit that */
	color: var(--lc-text);
}

body.pico-theme .modal-header {
	background: var(--lc-navy);
	color: #fff;
	border-bottom: none;
	border-radius: var(--lc-radius) var(--lc-radius) 0 0;
	align-items: center;
}

body.pico-theme .modal-header .close,
body.pico-theme .modal-header .close span,
body.pico-theme .modal-header .btn-close {
	color: #fff !important;
	opacity: 0.95;
	text-shadow: none;
	font-size: 1.75rem;
}

body.pico-theme .modal-title {
	font-size: 1.35rem;
}

body.pico-theme .modal-footer {
	border-top: 1px solid var(--lc-border);
	background: var(--lc-surface);
}

body.pico-theme .modal-dialog {
	max-width: min(96vw, 900px);
	margin: 1.25rem auto;
}

/* Zertifikat erstellen: Inhalt (~1000px) braucht mehr Breite als Standard-Modal */
body.pico-theme #modal_create_cert .modal-dialog {
	max-width: min(98vw, 1200px);
	width: fit-content;
	min-width: min(1000px, calc(98vw - 2rem));
}

body.pico-theme #modal_create_cert #create_cert_content_div {
	width: auto !important;
	max-width: 100%;
	min-width: 0;
}

body.pico-theme #modal_order_info .pico-order-info-table {
	width: 100%;
	border-collapse: collapse;
}

body.pico-theme #modal_order_info .pico-order-info-table td {
	vertical-align: top;
	padding: 0.2rem 0.75rem 0.2rem 0;
}

body.pico-theme #modal_order_info .pico-order-info-table td:first-child {
	width: 42%;
	white-space: nowrap;
}

body.pico-theme #modal_order_info .pico-order-info-table h3,
body.pico-theme #modal_order_info .pico-order-info-table h4,
body.pico-theme #modal_order_info .pico-order-info-table h5 {
	margin-bottom: 0.15rem;
}

@media print {
	body.modal-open #modal_order_info {
		position: static !important;
		display: block !important;
		overflow: visible !important;
	}

	body.modal-open #modal_order_info .modal-dialog {
		max-width: 100% !important;
		margin: 0 !important;
	}

	body.modal-open .modal-backdrop {
		display: none !important;
	}
}

/* ---------- Login ---------- */

body.pico-theme.pico-login-page,
body.pico-login-page.pico-theme,
body.pico-theme.login-landing-body {
	background: linear-gradient(145deg, var(--lc-navy-deep) 0%, var(--lc-navy) 55%, var(--lc-navy-soft) 100%);
	min-height: 100vh;
}

body.pico-theme.pico-login-page .pico-site-footer {
	display: none;
}

/* ---------- Home tiles ---------- */

/* Sticky footer: content on top, footer pinned to viewport bottom.
   Footer height stays content-based (not stretched). */
body.pico-theme.home-page {
	display: flex;
	flex-direction: column;
	height: auto !important;
	min-height: 100vh;
	background:
		radial-gradient(ellipse 90% 55% at 12% -10%, rgba(44, 120, 136, 0.14), transparent 55%),
		radial-gradient(ellipse 70% 45% at 100% 0%, rgba(0, 48, 88, 0.1), transparent 50%),
		linear-gradient(180deg, #e8eef2 0%, var(--lc-surface) 42%, #eef2f5 100%);
}

body.pico-theme.home-page #normal {
	flex: 1 0 auto;
	min-height: 0;
	width: 100%;
}

body.pico-theme.home-page #normal > .container.home-shell {
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-bottom: 0 !important;
}

body.pico-theme.home-page .pico-site-footer {
	flex: 0 0 auto;
	width: 100%;
	margin-top: auto;
	padding-bottom: 0.75rem;
}

body.pico-theme.home-page .pico-site-footer-rule {
	margin: 0.75rem 0 0.65rem;
}

body.pico-theme.home-page .home-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	margin: 0.15rem 0 0.85rem;
	text-align: left;
	animation: pico-home-fade-up 0.45s ease both;
}

body.pico-theme.home-page .home-intro-title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--lc-navy);
}

body.pico-theme.home-page .home-intro-meta {
	margin: 0;
	flex: 0 1 auto;
	margin-left: auto;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.35rem 0.45rem;
	text-align: right;
	font-size: 1rem;
	color: var(--lc-text-muted);
	line-height: 1.25;
}

body.pico-theme.home-page .home-intro-meta-sep {
	opacity: 0.55;
}

body.pico-theme.home-page .home-intro-date {
	white-space: nowrap;
}

body.pico-theme.home-page .home-intro-title .home-intro-lead {
	margin: 0;
	font-size: inherit;
	font-weight: 500;
	color: var(--lc-teal);
}

body.pico-theme.home-page .home-intro-title .home-intro-sep {
	margin: 0 0.15rem;
	font-weight: 500;
	color: var(--lc-text-muted);
	opacity: 0.7;
}

body.pico-theme.home-page .home-tiles {
	display: grid;
	gap: 1rem;
	margin: 0 0 1rem;
}

body.pico-theme.home-page .home-tiles--primary {
	grid-template-columns: 1fr;
}

body.pico-theme.home-page .home-tiles--secondary {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	body.pico-theme.home-page .home-tiles--primary {
		grid-template-columns: 1fr 1fr;
		gap: 1.15rem;
	}

	body.pico-theme.home-page .home-tiles--secondary {
		grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
	}
}

@media (min-width: 1100px) {
	body.pico-theme.home-page .home-tiles--secondary {
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	}
}

body.pico-theme.home-page .home-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px !important;
	border: 1px solid rgba(0, 48, 88, 0.12) !important;
	box-shadow: var(--lc-shadow) !important;
	text-decoration: none !important;
	color: #fff !important;
	isolation: isolate;
	transform: translateY(0);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	animation: pico-home-fade-up 0.5s ease both;
	animation-delay: calc(0.08s + (var(--home-tile-i, 0) * 0.06s));
	min-height: 11.5rem;
}

body.pico-theme.home-page .home-tile--primary {
	min-height: clamp(15rem, 34vh, 22rem);
}

body.pico-theme.home-page .home-tile--secondary {
	min-height: clamp(10.5rem, 22vh, 14.5rem);
}

body.pico-theme.home-page .home-tile::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--lc-teal);
	z-index: 2;
	opacity: 0.95;
}

body.pico-theme.home-page .home-tile--out::after {
	background: var(--lc-teal);
}

body.pico-theme.home-page .home-tile--in::after {
	background: var(--lc-navy-soft);
}

body.pico-theme.home-page .home-tile--archive::after {
	background: #6b7c8a;
}

body.pico-theme.home-page .home-tile--lists::after {
	background: #3d6f82;
}

body.pico-theme.home-page .home-tile--history::after {
	background: #4a6b8a;
}

body.pico-theme.home-page .home-tile--users::after {
	background: var(--lc-navy);
}

body.pico-theme.home-page .home-tile-media {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1.02);
	transition: transform 0.45s ease;
	z-index: 0;
}

body.pico-theme.home-page .home-tile-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 1.15rem 1.2rem 1.2rem 1.35rem;
	background: linear-gradient(
		180deg,
		rgba(0, 32, 72, 0.08) 0%,
		rgba(0, 32, 72, 0.28) 42%,
		rgba(0, 24, 52, 0.82) 100%
	);
	transition: background 0.25s ease;
}

body.pico-theme.home-page .home-tile-title {
	display: block;
	margin: 0;
	font-size: clamp(1.45rem, 2.2vw, 1.9rem);
	font-weight: 600;
	line-height: 1.15;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.pico-theme.home-page .home-tile--primary .home-tile-title {
	font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

body.pico-theme.home-page .home-tile-desc {
	display: block;
	margin-top: 0.35rem;
	max-width: 22rem;
	font-size: clamp(0.95rem, 1.3vw, 1.1rem);
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.pico-theme.home-page .home-tile:hover,
body.pico-theme.home-page .home-tile:focus {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0, 48, 88, 0.18) !important;
	border-color: rgba(44, 120, 136, 0.55) !important;
	color: #fff !important;
	text-decoration: none !important;
	outline: none;
}

body.pico-theme.home-page .home-tile:focus-visible {
	box-shadow: 0 0 0 3px rgba(44, 120, 136, 0.45), 0 10px 28px rgba(0, 48, 88, 0.18) !important;
}

body.pico-theme.home-page .home-tile:hover .home-tile-media,
body.pico-theme.home-page .home-tile:focus .home-tile-media {
	transform: scale(1.06);
}

body.pico-theme.home-page .home-tile:hover .home-tile-overlay,
body.pico-theme.home-page .home-tile:focus .home-tile-overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 32, 72, 0.12) 0%,
		rgba(0, 40, 70, 0.4) 40%,
		rgba(0, 28, 56, 0.9) 100%
	);
}

body.pico-theme.home-page .home-tile:active {
	transform: translateY(-1px);
}

@keyframes pico-home-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.pico-theme.home-page .home-intro,
	body.pico-theme.home-page .home-tile,
	body.pico-theme.home-page .home-tile-media {
		animation: none !important;
		transition: none !important;
	}

	body.pico-theme.home-page .home-tile:hover,
	body.pico-theme.home-page .home-tile:focus {
		transform: none;
	}

	body.pico-theme.home-page .home-tile:hover .home-tile-media,
	body.pico-theme.home-page .home-tile:focus .home-tile-media {
		transform: none;
	}
}

/* ---------- Start / check pages ---------- */

body.pico-theme.pico-start-page {
	background: var(--lc-surface);
}

body.pico-theme #pico-start-banner {
	background: #fff8e6;
	border-bottom-color: var(--lc-warning);
	color: #5c4a12;
}

body.pico-theme .ibc_div.pico-start-pos-block,
body.pico-theme #ibc_divs .ibc_div,
body.pico-theme #content_confirm .ibc_div,
body.pico-theme #content_confirm_out .ibc_div {
	background: var(--lc-surface-elevated);
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	padding: 12px;
}

/* ---------- Misc legacy blue overrides ---------- */

body.pico-theme [style*="color: #007bff"],
body.pico-theme [style*="color:#007bff"] {
	color: var(--lc-navy) !important;
}

body.pico-theme .fas.fa-info-circle {
	color: var(--lc-navy) !important;
}

/* In Action-/Info-Buttons Farbe erben (sonst navy auf navy beim Hover) */
body.pico-theme .pico-start-action-btn .fas.fa-info-circle,
body.pico-theme .info_btn .fas.fa-info-circle {
	color: inherit !important;
}

@media print {
	body.pico-theme {
		background: #fff;
	}
	body.pico-theme .pico-app-shell,
	body.pico-theme .pico-shell-header,
	body.pico-theme .pico-shell-nav,
	body.pico-theme .pico-card-toggle {
		box-shadow: none;
	}
	/* Site-Footer im Druck ausblenden (Layout bricht sonst um) */
	body.pico-theme .pico-site-footer {
		display: none !important;
	}
}

/* ---------- Start / costs back action under shell ---------- */

body.pico-theme #back_to_overview_btn {
	float: none !important;
	min-height: var(--lc-touch);
	margin: 10px 0 4px;
}

/* Start-Toolbar: kein Extra-Margin (sonst Höhenversatz zu info_btn) */
body.pico-theme .pico-start-header__actions #back_to_overview_btn {
	margin: 0 !important;
}

body.pico-theme #back_to_overview_btn table {
	margin: 0;
}

body.pico-theme .pico-app-shell + .normal-panel,
body.pico-theme .pico-shell-header + .normal-panel,
body.pico-theme .pico-shell-nav + .normal-panel {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	float: none !important;
	padding: 0 !important;
	margin-bottom: 8px;
}

body.pico-theme #content_header,
body.pico-theme #content_order {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
}

body.pico-theme #content_header h1,
body.pico-theme #page_topic_general {
	color: var(--lc-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

/* start.php order header – toolbar layout */
body.pico-theme .pico-start-header {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1rem 1.15rem !important;
	margin-bottom: 1rem;
	background: var(--lc-surface-elevated, #fff);
	border: 1px solid var(--lc-border, #d5dde3);
	border-radius: var(--lc-radius, 10px);
	box-shadow: var(--lc-shadow, 0 1px 3px rgba(0, 48, 88, 0.08));
}

body.pico-theme .pico-start-header__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
}

body.pico-theme .pico-start-header__title {
	min-width: min(100%, 16rem);
	flex: 1 1 18rem;
}

body.pico-theme .pico-start-header__identity {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.5rem;
	margin-top: 0.45rem;
}

body.pico-theme .pico-start-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex: 1 1 18rem;
}

body.pico-theme .pico-start-header__primary {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	padding: 0.75rem 0.85rem;
	background: var(--lc-surface-elevated, #f4f7fb);
	border: 1px solid var(--lc-border);
	border-radius: 0.5rem;
}

body.pico-theme .pico-start-header__primary:has(> .btn:not([style*="display: none"]):not([style*="display:none"])) {
	display: flex;
}

body.pico-theme .pico-start-primary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: auto !important; /* überschreibt feste 50px aus .save_all_btn / .confirm_all_btn */
	min-height: 2.75rem;
	padding: 0.65rem 1.15rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

body.pico-theme .pico-start-primary-btn i {
	font-size: 1.2rem;
}

body.pico-theme .pico-start-primary-btn#picoCheckSaveAllDraftsBtn:not(:disabled),
body.pico-theme .pico-start-primary-btn#picoCheckSaveAllDraftsBtn.btn-primary {
	box-shadow: 0 0 0 2px rgba(0, 86, 145, 0.18);
}

body.pico-theme .pico-start-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0 !important;
	height: auto !important;
	min-height: var(--lc-touch);
	width: auto !important;
	padding: 0.4rem 0.75rem !important;
	line-height: 1.2;
	font-weight: 400;
	white-space: nowrap;
	vertical-align: middle;
	/* wie info_btn: Outline navy */
	color: var(--lc-navy) !important;
	background-color: #fff !important;
	border: 1px solid var(--lc-navy) !important;
	opacity: 1;
}

body.pico-theme .pico-start-action-btn:hover,
body.pico-theme .pico-start-action-btn:focus {
	color: #fff !important;
	background-color: var(--lc-navy) !important;
	border-color: var(--lc-navy) !important;
	opacity: 1;
	outline: none;
	box-shadow: none !important;
}

body.pico-theme .pico-start-action-btn i {
	font-size: 1.05rem;
}

body.pico-theme .pico-start-header__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 0.65rem 1rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--lc-border);
}

body.pico-theme .pico-start-header__field {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

body.pico-theme .pico-start-header__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--lc-text-muted);
}

body.pico-theme .pico-start-header__value {
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--lc-text);
	word-break: break-word;
}

body.pico-theme .pico-start-header__notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.65rem 1rem;
}

body.pico-theme .pico-start-header__note {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

body.pico-theme .pico-start-header__note--warn .pico-start-header__label,
body.pico-theme .pico-start-header__note--warn .pico-start-header__value {
	color: #c0392b;
}

@media (max-width: 767.98px) {
	body.pico-theme .pico-start-header__actions {
		justify-content: flex-start;
		width: 100%;
	}

	body.pico-theme .pico-start-action-btn {
		flex: 1 1 auto;
	}

	body.pico-theme .pico-start-header__primary {
		width: 100%;
	}

	body.pico-theme .pico-start-primary-btn {
		flex: 1 1 100%;
		width: 100%;
	}
}

body.pico-theme .topic_sub {
	color: var(--lc-text-muted);
}

body.pico-theme .pico-start-pos-block {
	margin-bottom: 1.25rem;
}

body.pico-theme .pico-start-pos-meta.topic_sub {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.65rem 1rem;
	float: none !important;
	width: 100% !important;
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.85rem;
	background: var(--lc-surface-elevated, #f4f7fb);
	border: 1px solid var(--lc-border);
	border-radius: 0.5rem;
}

body.pico-theme .pico-start-pos-meta .pico-start-header__label {
	color: var(--lc-text-muted);
}

body.pico-theme .pico-start-pos-meta .pico-start-header__value {
	color: var(--lc-text);
	font-weight: 400;
}

body.pico-theme .pico-start-pos-meta .pico-start-pos-meta__product .pico-start-header__value {
	color: var(--lc-navy);
}

body.pico-theme .nav-depot-list,
body.pico-theme .nav-users {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: none;
	margin-bottom: 1rem;
	padding: 0.25rem;
	background: var(--lc-surface-elevated);
	border: 1px solid var(--lc-border);
	border-radius: 999px;
	box-shadow: var(--lc-shadow);
	width: auto;
	max-width: 100%;
}

body.pico-theme .pico-ibc-subnav {
	margin: 0 0 1rem;
}

body.pico-theme .nav-depot-list .nav-item,
body.pico-theme .nav-depot-list-item,
body.pico-theme .nav-users .nav-item,
body.pico-theme .nav-users-item {
	width: auto !important;
	flex: 0 0 auto;
}

body.pico-theme .nav-depot-list .nav-link,
body.pico-theme .nav-users .nav-link {
	min-height: var(--lc-touch);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.55rem 1.15rem !important;
	border: 1px solid transparent !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--lc-text-muted) !important;
	font-size: 1.05rem !important;
	font-weight: 600;
	white-space: nowrap;
}

body.pico-theme .nav-depot-list .nav-link:hover,
body.pico-theme .nav-users .nav-link:hover {
	background: var(--lc-teal-muted) !important;
	color: var(--lc-navy) !important;
}

body.pico-theme .nav-depot-list .nav-link.active,
body.pico-theme .nav-users .nav-link.active {
	color: #fff !important;
	background: var(--lc-navy) !important;
	border-color: var(--lc-navy) !important;
}

/* IBC list: collapsible filters + type thumbnail */
body.pico-theme .container-depot-list,
body.pico-theme .container-ibc-history {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

body.pico-theme .pico-ibc-filters {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	background: var(--lc-surface-elevated);
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
}

body.pico-theme .pico-ibc-filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 56px;
}

body.pico-theme .pico-ibc-filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--lc-touch);
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius-sm);
	background: #fff;
	color: var(--lc-navy);
	font-size: 1.05rem;
	font-weight: 400;
	cursor: pointer;
}

body.pico-theme .pico-ibc-filters-toggle:hover {
	background: var(--lc-teal-muted);
	border-color: var(--lc-teal);
}

body.pico-theme .pico-ibc-filters-chevron {
	transition: transform 0.2s ease;
}

body.pico-theme .pico-ibc-filters:not(.collapsed) .pico-ibc-filters-chevron {
	transform: rotate(180deg);
}

body.pico-theme .pico-ibc-type-thumb {
	width: 56px;
	height: 56px;
	object-fit: contain;
	flex: 0 0 56px;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius-sm);
	background: #fff;
	padding: 0.2rem;
}

body.pico-theme .pico-ibc-type-thumb[hidden] {
	display: none !important;
}

body.pico-theme .pico-ibc-filters-body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem 1rem;
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--lc-border);
}

body.pico-theme .pico-ibc-filters.collapsed .pico-ibc-filters-body {
	display: none;
}

body.pico-theme .pico-ibc-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

body.pico-theme .pico-ibc-filter-label {
	margin: 0;
	color: var(--lc-text-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

body.pico-theme .pico-ibc-filters .ibc-select-input {
	min-height: var(--lc-touch);
	width: 100%;
	max-width: 100%;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	background: #fff;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius-sm);
	color: var(--lc-navy);
}

body.pico-theme .ibc_list_table_div,
body.pico-theme .history_table_in_div,
body.pico-theme .history_table_out_div {
	width: 100% !important;
	float: none !important;
	margin-left: 0 !important;
}

body.pico-theme .pico-ibc-history-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	background: var(--lc-surface-elevated);
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	min-height: 56px;
}

body.pico-theme .pico-ibc-history-search-main {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 420px;
}

body.pico-theme .pico-ibc-history-search .pico-ibc-filter-label {
	margin: 0;
}

body.pico-theme .pico-ibc-history-search .pico-ibc-type-thumb {
	margin-left: auto;
}

body.pico-theme #ibc_search_div {
	max-width: 360px;
	width: 100%;
}

body.pico-theme #ibc_search_div input[type=text] {
	border: 1px solid var(--lc-border);
	border-right: 0;
	color: var(--lc-navy);
}

body.pico-theme #ibc_search_div button {
	background-color: var(--lc-navy) !important;
	border-color: var(--lc-navy) !important;
}

body.pico-theme #ibc_search_div button:hover {
	background-color: var(--lc-teal) !important;
	border-color: var(--lc-teal) !important;
	opacity: 1;
}

body.pico-theme #history_table_in,
body.pico-theme #history_table_out,
body.pico-theme #ibc_table {
	float: none !important;
	width: 100% !important;
}

/*
 * IBC list headers: wrap at spaces only (e.g. "Größere Beschädigungen"),
 * keep existing font size / padding. Table prefers viewport width.
 */
body.pico-theme .pico-table-scroll > #ibc_table.dataTable,
body.pico-theme .pico-table-scroll > #ibc_table {
	width: 100% !important;
	min-width: 100%;
	max-width: 100%;
}

body.pico-theme #ibc_table thead th {
	white-space: normal !important;
	vertical-align: top;
}

body.pico-theme #ibc_table thead th.sorting,
body.pico-theme #ibc_table thead th.sorting_asc,
body.pico-theme #ibc_table thead th.sorting_desc,
body.pico-theme #ibc_table thead th.sorting_asc_disabled,
body.pico-theme #ibc_table thead th.sorting_desc_disabled {
	background-position: right 6px top 12px !important;
}

body.pico-theme #ibc_table thead th > div {
	align-items: flex-start;
}

/* Multi-line headers: pin loupe to top, same band as chevrons */
body.pico-theme #ibc_table thead th .col-search-btn {
	top: 10px;
	transform: none;
}

body.pico-theme #ibc_table thead th > div > span {
	white-space: normal !important;
	/* wrap only at spaces / soft breaks — never mid-word */
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
	line-height: 1.25;
}

/* Checkbox select column: no vertical divider to the right */
body.pico-theme #ibc_table thead th:first-child,
body.pico-theme #ibc_table tbody td:first-child,
body.pico-theme #ibc_table tfoot th:first-child,
body.pico-theme #ibc_table thead th.select-checkbox,
body.pico-theme #ibc_table tbody td.select-checkbox,
body.pico-theme #ibc_table tfoot th.select-checkbox {
	border-right: none !important;
}

/* "IBC okay" action — mid size (not full touch, not tiny) */
body.pico-theme #ibc_table tbody td .btn-ibc-okay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 4.75rem !important;
	max-width: 100%;
	height: auto;
	min-height: 32px !important;
	padding: 0.3rem 0.65rem !important;
	font-size: 0.85rem !important;
	line-height: 1.2;
	white-space: nowrap;
}

/* Keep legacy blue utility classes mapped to CI */
body.pico-theme .bg-primary {
	background-color: var(--lc-navy) !important;
}

body.pico-theme .text-primary {
	color: var(--lc-navy) !important;
}

body.pico-theme .border-primary {
	border-color: var(--lc-navy) !important;
}

/* Loader branding */
body.pico-theme #loader-wrapper .entry-title h2 {
	color: var(--lc-navy);
	font-family: 'Myriad-Condensed', sans-serif;
}

body.pico-theme #loader-wrapper .entry-title h5 {
	color: var(--lc-teal);
}

/* Avoid float collapse on overview shell rows */
body.pico-theme #normal > .container > .row {
	display: block;
	width: 100%;
}

body.pico-theme #normal > .container > .row::after {
	content: "";
	display: table;
	clear: both;
}

/* Table cells with lots of action icons: keep touch friendly */
body.pico-theme table.order_table tbody td .btn:not(.btn-ibc-okay),
body.pico-theme table.dataTable tbody td .btn:not(.btn-ibc-okay) {
	min-height: 40px;
	min-width: 40px;
}

/*
 * DataTables export buttons (last, highest priority).
 * Markup: div.dt-buttons.btn-group > button.btn.btn-default.buttons-html5
 * Must stay light bg + dark text — never inherit login navy fill.
 */
body.pico-theme .dt-buttons.btn-group > button.btn,
body.pico-theme .dt-buttons.btn-group > button.btn.btn-default,
body.pico-theme .dt-buttons.btn-group > button.btn.buttons-html5,
body.pico-theme .dt-buttons.btn-group > button.btn.buttons-colvis,
body.pico-theme .dt-buttons > button.btn.btn-default.buttons-html5,
body.pico-theme .button_group_dt button.btn.btn-default,
body.pico-theme .button_group_dt button.btn.buttons-html5,
body.pico-theme .button_group_dt button.btn.buttons-colvis {
	background: #ffffff !important;
	background-image: none !important;
	border: 1px solid #9aabb8 !important;
	color: #003058 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
	opacity: 1 !important;
	font-weight: 400;
	-webkit-text-fill-color: #003058 !important;
}

body.pico-theme .dt-buttons.btn-group > button.btn:hover,
body.pico-theme .dt-buttons.btn-group > button.btn.btn-default:hover,
body.pico-theme .dt-buttons > button.btn.btn-default.buttons-html5:hover,
body.pico-theme .button_group_dt button.btn.btn-default:hover {
	background: #e8f2f4 !important;
	background-image: none !important;
	border-color: #2c7888 !important;
	color: #003058 !important;
	-webkit-text-fill-color: #003058 !important;
}

body.pico-theme .dt-buttons.btn-group > button.btn i,
body.pico-theme .dt-buttons > button.btn.btn-default i,
body.pico-theme .button_group_dt button.btn.btn-default i {
	color: #003058 !important;
	-webkit-text-fill-color: #003058 !important;
}

/* ColVis dropdown collection
 * Buttons uses BS3-style markup (ul.dropdown-menu inside .dt-button-collection),
 * but the page loads Bootstrap 4 where .dropdown-menu is display:none until .show.
 */
body.pico-theme div.dt-button-collection {
	position: absolute !important;
	display: block !important;
	visibility: visible !important;
	padding: 0.5rem;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius-sm);
	box-shadow: var(--lc-shadow);
	background: #fff;
	z-index: 3000 !important;
	max-height: min(70vh, 420px);
	overflow-x: hidden;
	overflow-y: auto;
	min-width: 16rem;
}

/* Anchored under the ColVis trigger (set by JS; beats DT absolute positioning) */
body.pico-theme div.dt-button-collection.pico-colvis-anchored {
	position: fixed !important;
	margin: 0 !important;
	transform: none !important;
	right: auto !important;
	bottom: auto !important;
}

body.pico-theme div.dt-button-collection > .dropdown-menu,
body.pico-theme div.dt-button-collection ul.dropdown-menu,
body.pico-theme div.dt-button-collection .dropdown-menu {
	display: block !important;
	visibility: visible !important;
	position: static !important;
	float: none !important;
	top: auto !important;
	left: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-width: 100%;
	max-width: none;
	background: transparent !important;
	z-index: auto !important;
}

/* Checkbox-style column toggles (li.dt-button > a) */
body.pico-theme div.dt-button-collection li.dt-button,
body.pico-theme div.dt-button-collection .dt-button.buttons-columnVisibility {
	display: flex !important;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	min-height: 40px;
	margin: 0 0 0.15rem !important;
	padding: 0.35rem 0.55rem !important;
	border: 1px solid transparent !important;
	border-radius: var(--lc-radius-sm) !important;
	background: transparent !important;
	color: var(--lc-navy) !important;
	font-weight: 600;
	text-align: left;
	white-space: normal;
	list-style: none;
	cursor: pointer;
}

body.pico-theme div.dt-button-collection li.dt-button::before {
	content: "";
	flex: 0 0 1.15rem;
	width: 1.15rem;
	height: 1.15rem;
	box-sizing: border-box;
	border: 2px solid #8aa0b0;
	border-radius: 0.2rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 48, 88, 0.04);
}

body.pico-theme div.dt-button-collection li.dt-button.active::before {
	border-color: var(--lc-navy);
	background-color: var(--lc-navy);
	box-shadow: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
	background-size: 0.85rem 0.85rem;
	background-position: center;
	background-repeat: no-repeat;
}

body.pico-theme div.dt-button-collection li.dt-button > a {
	display: block;
	flex: 1 1 auto;
	width: auto;
	color: inherit !important;
	text-decoration: none !important;
	padding: 0 !important;
	background: transparent !important;
}

body.pico-theme div.dt-button-collection li.dt-button:hover {
	background: var(--lc-teal-muted) !important;
	border-color: transparent !important;
	color: var(--lc-navy) !important;
}

body.pico-theme div.dt-button-collection li.dt-button.active {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--lc-navy) !important;
}

body.pico-theme div.dt-button-collection li.dt-button.active > a {
	color: var(--lc-navy) !important;
}

body.pico-theme div.dt-button-collection li.dt-button.active:hover {
	background: var(--lc-teal-muted) !important;
}

body.pico-theme div.dt-button-background {
	z-index: 2990 !important;
}

/* Empty overview sections (no orders) */
body.pico-theme .pico-empty-orders {
	display: block;
	width: 100%;
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.15rem;
	box-sizing: border-box;
	background: var(--lc-surface-elevated);
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	color: var(--lc-text-muted);
	font-size: 1.05rem;
	font-weight: 600;
}

body.pico-theme .pico-site-footer {
	width: 100%;
	margin-top: 2rem;
	/* Match #normal side pad + .container 12px padding */
	padding: 0 calc(var(--lc-side-pad-r) + 12px) 1.25rem calc(var(--lc-side-pad) + 12px);
	box-sizing: border-box;
	clear: both;
}

body.pico-theme .pico-site-footer-inner {
	max-width: 100%;
	width: 100%;
	margin: 0;
}

body.pico-theme .pico-site-footer-rule {
	border: 0;
	border-top: 1px solid var(--lc-border);
	margin: 1.5rem 0 1rem;
}

body.pico-theme .pico-site-footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

body.pico-theme .pico-site-footer-left {
	flex: 1 1 280px;
	min-width: 0;
	text-align: left;
}

body.pico-theme .pico-site-footer .footer-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--lc-navy);
}

body.pico-theme .pico-site-footer .footer-version {
	display: inline-block;
	margin-left: 0.45rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--lc-text-muted);
	vertical-align: baseline;
}

body.pico-theme .pico-site-footer .footer-contact {
	line-height: 1;
	color: var(--lc-text-muted);
}

body.pico-theme .pico-site-footer .footer-mail,
body.pico-theme .pico-site-footer .footer-tel {
	font-size: 0.75rem;
	display: inline;
	margin-right: 0.2rem;
	color: var(--lc-text-muted);
}

body.pico-theme .pico-site-footer a.footer-mail,
body.pico-theme .pico-site-footer a.footer-tel {
	color: var(--lc-teal) !important;
	text-decoration: none;
}

body.pico-theme .pico-site-footer a.footer-mail:hover,
body.pico-theme .pico-site-footer a.footer-tel:hover {
	text-decoration: underline;
}

body.pico-theme .pico-site-footer .footer-hours {
	font-size: 0.65rem;
	color: var(--lc-text-muted);
}

body.pico-theme .pico-site-footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1.1rem;
	flex: 0 1 auto;
}

body.pico-theme .pico-site-footer-links a {
	color: var(--lc-teal) !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

body.pico-theme .pico-site-footer-links a:hover {
	text-decoration: underline;
	color: var(--lc-navy) !important;
}

@media (max-width: 720px) {
	body.pico-theme .pico-site-footer-row {
		flex-direction: column;
	}

	body.pico-theme .pico-site-footer-links {
		justify-content: flex-start;
	}
}

/*
 * Bestätigungs-/Kosten-Tabellen (#content_confirm / _out / #content_costs):
 * Positionsblock inkl. Meta + Tabelle als Karte; Zellen nur dünnes Schwarz-Raster.
 */
body.pico-theme #content_confirm,
body.pico-theme #content_confirm_out,
body.pico-theme #content_costs {
	float: none;
	width: 100%;
	max-width: 100%;
}

body.pico-theme #content_confirm .pico-confirm-pos-block,
body.pico-theme #content_confirm_out .pico-confirm-pos-block,
body.pico-theme #content_confirm .ibc_div.pico-confirm-pos-block,
body.pico-theme #content_confirm_out .ibc_div.pico-confirm-pos-block,
body.pico-theme #content_costs .pico-confirm-pos-block,
body.pico-theme #content_costs .ibc_div.pico-confirm-pos-block {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	text-align: left;
	margin: 0 0 1.25rem;
	overflow: visible;
	background: var(--lc-surface-elevated) !important;
	border: 1px solid var(--lc-border) !important;
	border-radius: var(--lc-radius) !important;
	box-shadow: var(--lc-shadow) !important;
	padding: 12px !important;
}

body.pico-start-page #content_confirm .pico-confirm-pos-block,
body.pico-start-page #content_confirm_out .pico-confirm-pos-block,
body.pico-start-page #content_costs .pico-confirm-pos-block,
body.pico-costs-page #content_costs .pico-confirm-pos-block,
body.pico-archive-page #content_confirm .pico-confirm-pos-block {
	border-bottom: 1px solid var(--lc-border) !important;
	padding-bottom: 12px !important;
}

body.pico-theme #content_confirm .pico-confirm-pos-block + .pico-confirm-pos-block,
body.pico-theme #content_confirm_out .pico-confirm-pos-block + .pico-confirm-pos-block,
body.pico-theme #content_costs .pico-confirm-pos-block + .pico-confirm-pos-block {
	margin-top: 1.25rem;
}

body.pico-theme #content_confirm .pico-start-pos-meta.topic_sub,
body.pico-theme #content_confirm_out .pico-start-pos-meta.topic_sub,
body.pico-theme #content_costs .pico-start-pos-meta.topic_sub {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 0 0.65rem !important;
	margin: 0 0 0.65rem !important;
}

body.pico-theme #content_confirm .pico-confirm-table-wrap,
body.pico-theme #content_confirm_out .pico-confirm-table-wrap {
	width: 100%;
	clear: both;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

body.pico-theme #content_costs .pico-confirm-table-wrap {
	width: 100%;
	clear: both;
	overflow-x: hidden;
	overflow-y: visible;
}

body.pico-theme #content_confirm .dataTables_wrapper,
body.pico-theme #content_confirm_out .dataTables_wrapper,
body.pico-theme #content_costs .dataTables_wrapper {
	display: block;
	float: none;
	width: auto;
	max-width: none;
	grid-template-columns: none;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	overflow: visible;
}

body.pico-theme #content_confirm .dataTables_wrapper > *,
body.pico-theme #content_confirm_out .dataTables_wrapper > *,
body.pico-theme #content_costs .dataTables_wrapper > * {
	grid-column: auto;
}

body.pico-theme #content_confirm table.confirm-table,
body.pico-theme #content_confirm_out table.confirm-table {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: #fff !important;
	border: 0 !important;
	table-layout: auto;
}

body.pico-theme #content_costs table.confirm-table {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: #fff !important;
	border: 0 !important;
	table-layout: fixed !important;
	box-sizing: border-box !important;
}

/*
 * Bestätigungstabelle wie Original: überall derselbe dünne schwarze Rahmen.
 * Keine hellen Innenlinien, keine 2px-Gruppenkanten.
 */
body.pico-theme #content_confirm table.confirm-table > thead > tr > th,
body.pico-theme #content_confirm_out table.confirm-table > thead > tr > th,
body.pico-theme #content_confirm table.confirm-table > tbody > tr > td,
body.pico-theme #content_confirm_out table.confirm-table > tbody > tr > td,
body.pico-theme #content_costs table.confirm-table > thead > tr > th,
body.pico-theme #content_costs table.confirm-table > tbody > tr > td {
	background-color: #fff !important;
	color: inherit !important;
	border: 1px solid #000 !important;
	font-size: inherit;
	font-weight: inherit;
	vertical-align: middle;
	padding: 5px 2px !important;
	white-space: normal;
	position: static;
	z-index: auto;
	background-image: none !important;
	box-shadow: none !important;
}

/* Defekt (rotes X) / Hinweis mit Foto/Text — muss nach dem Weiß-Override kommen */
body.pico-theme #content_confirm table.confirm-table > tbody > tr > td.marked_col,
body.pico-theme #content_confirm_out table.confirm-table > tbody > tr > td.marked_col,
body.pico-theme #content_costs table.confirm-table > tbody > tr > td.marked_col {
	background: rgba(255, 0, 0, 0.1) !important;
	background-color: rgba(255, 0, 0, 0.1) !important;
}

body.pico-theme #content_confirm table.confirm-table > tbody > tr > td.marked_col_yellow,
body.pico-theme #content_confirm_out table.confirm-table > tbody > tr > td.marked_col_yellow,
body.pico-theme #content_costs table.confirm-table > tbody > tr > td.marked_col_yellow {
	background: rgba(248, 255, 0, 0.24) !important;
	background-color: rgba(248, 255, 0, 0.24) !important;
}

body.pico-theme #content_confirm table.confirm-table thead th:not(.rotate),
body.pico-theme #content_confirm_out table.confirm-table thead th:not(.rotate),
body.pico-theme #content_costs table.confirm-table thead th:not(.rotate) {
	vertical-align: bottom;
	padding: 2px 5px !important;
	font-weight: 700 !important;
}

body.pico-theme #content_confirm table.confirm-table thead th.rotate,
body.pico-theme #content_confirm_out table.confirm-table thead th.rotate,
body.pico-theme #content_costs table.confirm-table thead th.rotate {
	padding: 0 0 2px !important;
	font-weight: 700 !important;
}

body.pico-theme #content_confirm table.confirm-table thead th > div > span,
body.pico-theme #content_confirm_out table.confirm-table thead th > div > span,
body.pico-theme #content_confirm table.confirm-table thead th.group-topic h2,
body.pico-theme #content_confirm_out table.confirm-table thead th.group-topic h2,
body.pico-theme #content_costs table.confirm-table thead th > div > span,
body.pico-theme #content_costs table.confirm-table thead th.group-topic h2 {
	font-weight: 700 !important;
}

/* bordered-* = derselbe 1px-Schwarz-Rahmen (kein Extra-Gewicht) */
body.pico-theme #content_confirm table.confirm-table .bordered-left,
body.pico-theme #content_confirm_out table.confirm-table .bordered-left,
body.pico-theme #content_costs table.confirm-table .bordered-left {
	border-left: 1px solid #000 !important;
}

body.pico-theme #content_confirm table.confirm-table .bordered-right,
body.pico-theme #content_confirm_out table.confirm-table .bordered-right,
body.pico-theme #content_costs table.confirm-table .bordered-right {
	border-right: 1px solid #000 !important;
}

body.pico-theme #content_confirm table.confirm-table .bordered-top,
body.pico-theme #content_confirm_out table.confirm-table .bordered-top,
body.pico-theme #content_costs table.confirm-table .bordered-top {
	border-top: 1px solid #000 !important;
}

body.pico-theme #content_confirm table.confirm-table .bordered-bottom,
body.pico-theme #content_confirm_out table.confirm-table .bordered-bottom,
body.pico-theme #content_costs table.confirm-table .bordered-bottom {
	border-bottom: 1px solid #000 !important;
}

/* Leerzellen über IBC-Nr./Typ/Produkt: kein Rahmen (wie Original) — muss zuletzt kommen */
body.pico-theme #content_confirm table.confirm-table thead th.bordered-null,
body.pico-theme #content_confirm_out table.confirm-table thead th.bordered-null,
body.pico-theme #content_costs table.confirm-table thead th.bordered-null {
	border: 0 !important;
}

/* Rot markiert: offener Kopf links (IBC-Nr./Typ/Produkt) — keine Trennlinien dazwischen/oben */
body.pico-theme #content_confirm table.confirm-table thead th.confirm-th-meta,
body.pico-theme #content_confirm_out table.confirm-table thead th.confirm-th-meta,
body.pico-theme #content_costs table.confirm-table thead th.confirm-th-meta {
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 1px solid #000 !important;
}

/* Rot markiert: Fotos-Kopf oben/rechts offen */
body.pico-theme #content_confirm table.confirm-table thead th.confirm-th-fotos,
body.pico-theme #content_confirm_out table.confirm-table thead th.confirm-th-fotos,
body.pico-theme #content_costs table.confirm-table thead th.confirm-th-fotos {
	border-top: 0 !important;
	border-right: 0 !important;
}

body.pico-theme #content_confirm table.confirm-table thead th.rotate,
body.pico-theme #content_confirm_out table.confirm-table thead th.rotate,
body.pico-theme #content_costs table.confirm-table thead th.rotate {
	/* Höhe wird von picoConfirmFitRotateHeaders gesetzt; min-height als Fallback */
	min-height: 260px !important;
	white-space: nowrap !important;
	/* gleicher unterer Abstand wie nicht-rotierte th (padding 2px) */
	padding: 0 0 2px !important;
	width: auto !important;
	min-width: 1.75rem !important;
	max-width: none !important;
	vertical-align: bottom !important;
	overflow: visible !important;
	text-align: center !important;
}

/* Overview-Flex-Header darf Confirm-Header nicht überschreiben */
body.pico-theme #content_confirm table.confirm-table thead th:not(.rotate) > div,
body.pico-theme #content_confirm_out table.confirm-table thead th:not(.rotate) > div,
body.pico-theme #content_costs table.confirm-table thead th:not(.rotate) > div {
	display: block !important;
	align-items: initial !important;
	gap: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
	padding-right: 0 !important;
	transform: none;
	overflow: visible !important;
	box-sizing: border-box;
}

/*
 * Rotierte Labels (writing-mode): Div nur so hoch wie der Text,
 * damit vertical-align:bottom auf th greift (wie „Produkt“ unten).
 */
body.pico-theme #content_confirm table.confirm-table thead th.rotate > div,
body.pico-theme #content_confirm_out table.confirm-table thead th.rotate > div,
body.pico-theme #content_costs table.confirm-table thead th.rotate > div {
	display: inline-block !important;
	box-sizing: border-box;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 auto !important;
	padding: 0 !important;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	transform-origin: center center;
	overflow: visible !important;
	white-space: nowrap !important;
	line-height: 1.15;
	text-align: left;
	vertical-align: bottom;
}

body.pico-theme #content_confirm table.confirm-table thead th.rotate > div > span,
body.pico-theme #content_confirm_out table.confirm-table thead th.rotate > div > span,
body.pico-theme #content_costs table.confirm-table thead th.rotate > div > span {
	flex: none !important;
	min-width: 0 !important;
	display: inline !important;
	white-space: nowrap;
}

body.pico-theme #content_confirm table.confirm-table thead th:not(.rotate) > div > span,
body.pico-theme #content_confirm_out table.confirm-table thead th:not(.rotate) > div > span,
body.pico-theme #content_costs table.confirm-table thead th:not(.rotate) > div > span {
	flex: none !important;
	min-width: 0 !important;
	display: inline !important;
}

body.pico-theme #content_confirm table.confirm-table,
body.pico-theme #content_confirm_out table.confirm-table,
body.pico-theme #content_confirm table.confirm-table thead,
body.pico-theme #content_confirm_out table.confirm-table thead,
body.pico-theme #content_confirm table.confirm-table th,
body.pico-theme #content_confirm_out table.confirm-table th,
body.pico-theme #content_costs table.confirm-table,
body.pico-theme #content_costs table.confirm-table thead,
body.pico-theme #content_costs table.confirm-table th {
	overflow: visible !important;
}

body.pico-theme #content_confirm table.confirm-table > tbody > tr > td,
body.pico-theme #content_confirm_out table.confirm-table > tbody > tr > td,
body.pico-theme #content_costs table.confirm-table > tbody > tr > td {
	padding: 5px 2px !important;
	white-space: normal;
	text-align: center;
}

body.pico-theme #content_confirm table.confirm-table .group-topic h2,
body.pico-theme #content_confirm_out table.confirm-table .group-topic h2,
body.pico-theme #content_costs table.confirm-table .group-topic h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
}

body.pico-theme #content_confirm .btn-colvis,
body.pico-theme #content_confirm_out .btn-colvis,
body.pico-theme #content_costs .btn-colvis {
	display: none;
}
