/* === f12-filter "Alle Versionen"-Modal === */

.f12-filter-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.f12-filter-modal[data-state="open"] {
	display: flex;
}

.f12-filter-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.f12-filter-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 32px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
}

.f12-filter-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: transparent;
	border: 0;
	color: #444;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	z-index: 1;
}

.f12-filter-modal-close:hover {
	color: #000;
}

.f12-filter-modal-header {
	padding: 22px 48px 18px 24px;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.f12-filter-modal-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.f12-filter-modal-subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: #555;
	line-height: 1.3;
}

.f12-filter-modal-subtitle:empty {
	display: none;
}

.f12-filter-modal-body {
	padding: 0;
	overflow-y: auto;
}

.f12-filter-modal-loading,
.f12-filter-modal-error,
.f12-filter-modal-empty {
	padding: 24px;
	text-align: center;
	color: #555;
	font-size: 14px;
}

.f12-filter-modal-error {
	color: #b00020;
}

.f12-filter-modal-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 2px solid #ccc;
	border-top-color: #00808a;
	border-radius: 50%;
	animation: f12fModalSpin 0.8s linear infinite;
	vertical-align: middle;
}

@keyframes f12fModalSpin {
	to { transform: rotate(360deg); }
}

.f12-filter-modal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.f12-filter-modal-table thead th {
	background: #00808a;
	color: #fff;
	text-align: left;
	font-weight: 600;
	padding: 10px 16px;
	white-space: nowrap;
}

.f12-filter-modal-table th.f12-filter-modal-col-download {
	text-align: right;
}

.f12-filter-modal-table tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.f12-filter-modal-table tbody tr:last-child td {
	border-bottom: 0;
}

.f12-filter-modal-table .f12-filter-modal-col-version {
	font-weight: 700;
	white-space: nowrap;
}

.f12-filter-modal-table .f12-filter-modal-col-date {
	white-space: nowrap;
	color: #444;
}

.f12-filter-modal-table .f12-filter-modal-col-file {
	word-break: break-all;
	color: #1a1a1a;
}

.f12-filter-modal-table .f12-filter-modal-col-download {
	text-align: right;
	white-space: nowrap;
}

.f12-filter-modal-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #00808a;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s ease;
	line-height: 1;
}

.f12-filter-modal-download-btn:hover,
.f12-filter-modal-download-btn:focus {
	background: #005c64;
	color: #fff !important;
}

.f12-filter-modal-download-icon {
	width: 18px;
	height: 18px;
	max-width: 18px;
	max-height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
	border-radius: 2px;
}

i.f12-filter-modal-download-icon {
	width: auto;
	height: auto;
	font-size: 16px;
	line-height: 1;
}

.f12-filter-modal-download-label {
	display: inline-block;
	line-height: 1;
}

/* Modal-Trigger Button im Action-Cell */
.f12-filter-action-modal {
	cursor: pointer;
}

/* Body-Scroll-Lock wenn Modal offen */
body.f12-filter-modal-open {
	overflow: hidden;
}

/* Mobile */
@media (max-width: 600px) {
	.f12-filter-modal-dialog {
		max-height: calc(100vh - 16px);
	}

	.f12-filter-modal-header {
		padding: 18px 44px 14px 16px;
	}

	.f12-filter-modal-title {
		font-size: 18px;
	}

	.f12-filter-modal-table thead {
		display: none;
	}

	.f12-filter-modal-table,
	.f12-filter-modal-table tbody,
	.f12-filter-modal-table tr,
	.f12-filter-modal-table td {
		display: block;
		width: 100%;
	}

	.f12-filter-modal-table tbody tr {
		padding: 12px 16px;
		border-bottom: 1px solid #eee;
	}

	.f12-filter-modal-table tbody td {
		padding: 2px 0;
		border: 0;
	}

	.f12-filter-modal-table .f12-filter-modal-col-download {
		text-align: left;
		padding-top: 8px;
	}
}
