/* Trikotnummern-Verwaltung */
.tn-wrap .tn-groupform {
	margin: 16px 0 20px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tn-table {
	margin-top: 10px;
	border-collapse: collapse;
}

.tn-table th,
.tn-table td {
	padding: 8px 10px;
	vertical-align: middle;
}

.tn-table .tn-col-nr {
	width: 140px;
}

.tn-table .tn-col-action {
	width: 300px;
	white-space: nowrap;
}

.tn-number {
	display: inline-block;
	min-width: 32px;
	padding: 2px 8px;
	background: #f0f0f1;
	border-radius: 3px;
	font-weight: 600;
	text-align: center;
}

.tn-row.tn-taken .tn-number {
	background: #d6f0d8;
}

.tn-row.tn-locked {
	opacity: 0.75;
}

.tn-row.tn-locked .tn-number {
	background: #f6d9d9;
	text-decoration: line-through;
}

.tn-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11px;
	line-height: 18px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tn-badge-locked {
	background: #b32d2e;
	color: #fff;
}

.tn-badge-taken {
	background: #dcdcde;
	color: #1d2327;
}

.tn-badge-fixed {
	background: #3c434a;
	color: #fff;
}

.tn-fixed-note {
	margin-top: 8px;
	font-style: italic;
}

.tn-closed-note-front {
	margin: 12px 0;
	padding: 10px 12px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
}

/* Nur beim Drucken sichtbar */
.tn-print-only {
	display: none;
}

.tn-print-row {
	display: none;
}

.tn-print-title {
	display: none;
}

@media print {
	#adminmenumain,
	#wpadminbar,
	#wpfooter,
	#screen-meta,
	#screen-meta-links,
	.tn-wrap > h1,
	.tn-wrap > h2,
	.tn-groupform,
	.description,
	.tn-fixed-note,
	.tn-closed-note-front,
	.tn-no-print,
	.tn-locked-box,
	.tn-col-action,
	.tn-status,
	.notice,
	.tn-table input,
	.tn-table .button {
		display: none !important;
	}

	.tn-print-title {
		display: block;
		margin: 0 0 8px;
		font-size: 14pt;
		font-weight: 700;
	}

	.tn-print-only {
		display: inline;
	}

	.tn-print-row {
		display: table-row;
	}

	#wpcontent,
	#wpbody-content,
	.tn-wrap {
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
		width: auto !important;
	}

	.tn-table {
		width: 100% !important;
		border-collapse: collapse;
	}

	.tn-table th,
	.tn-table td {
		border: 1px solid #000 !important;
		padding: 4px 6px !important;
		background: none !important;
		color: #000 !important;
	}

	.tn-table tr {
		page-break-inside: avoid;
	}
}

.tn-status {
	display: inline-block;
	margin-left: 10px;
	font-size: 12px;
}

.tn-status-ok {
	color: #007017;
	font-weight: 600;
}

.tn-status-err {
	color: #b32d2e;
	font-weight: 600;
}

.tn-group-box {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 4px 16px 8px;
	margin-bottom: 16px;
}

.tn-group-box .form-table th {
	width: 220px;
}

/* Gesperrte Nummern: Grund je Nummer */
.tn-reason-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 640px;
}

.tn-reason-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	background: #fbf7f7;
	border: 1px solid #f0dede;
	border-radius: 3px;
}

.tn-reason-row .tn-number {
	background: #f6d9d9;
}

.tn-reason-row .tn-reason-input {
	flex: 1 1 auto;
}

.tn-reason-warn {
	color: #b32d2e;
	font-size: 11px;
}

.tn-reason-empty {
	margin: 0;
}

.tn-locked-box {
	margin-top: 24px;
}

.tn-locked-box h3 {
	margin-bottom: 6px;
}

.tn-table-locked {
	max-width: 720px;
}

.tn-lock-reason {
	color: #50575e;
}

/* Goalienummer */
.tn-goalie-box {
	margin-top: 24px;
}

.tn-goalie-box h3 {
	margin-bottom: 4px;
}

.tn-table-goalie {
	max-width: 900px;
	border-left: 3px solid #2271b1;
}

.tn-number-goalie {
	background: #dbe9f7;
	color: #0a4b78;
}

.tn-badge-goalie {
	background: #2271b1;
	color: #fff;
}

/* Frontend */
.tn-frontend .tn-table {
	width: 100%;
	border: 1px solid #dcdcde;
	background: #fff;
}

.tn-frontend .tn-table thead th {
	background: #f6f7f7;
	text-align: left;
}

.tn-frontend .tn-table tbody tr {
	border-top: 1px solid #ececec;
}

.tn-frontend input[type="text"] {
	width: 100%;
	max-width: 260px;
	padding: 6px 8px;
}

@media screen and (max-width: 782px) {
	.tn-table .tn-col-action,
	.tn-table .tn-col-nr {
		width: auto;
	}
}
