.trt-registration-wrap {
	box-sizing: border-box;
	max-width: 820px;
	margin: 32px auto;
	padding: 0 16px;
}

.trt-registration-wrap *,
.trt-registration-wrap *::before,
.trt-registration-wrap *::after {
	box-sizing: inherit;
}

.trt-registration-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
	padding: clamp(22px, 5vw, 42px);
}

.trt-title {
	margin: 0 0 8px;
	font-size: clamp(1.55rem, 4vw, 2.15rem);
	line-height: 1.2;
	color: #111827;
}

.trt-intro {
	margin: 0 0 28px;
	color: #5b6472;
}

.trt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.trt-field-full {
	grid-column: 1 / -1;
}

.trt-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 650;
	color: #1f2937;
}

.trt-field label span[aria-hidden="true"] {
	color: #b91c1c;
}

.trt-field .trt-optional {
	font-weight: 400;
	color: #64748b;
}

.trt-field input[type="text"],
.trt-field input[type="number"],
.trt-field input[type="tel"],
.trt-field input[type="email"],
.trt-field select {
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #111827;
	font: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.trt-field input:focus,
.trt-field select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}


.trt-field-points input[type="number"] {
	width: min(100%, 180px);
}


.trt-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	margin-top: 24px;
	padding: 12px 24px;
	border: 0;
	border-radius: 10px;
	background: #1d4ed8;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}

.trt-submit:hover {
	background: #1e40af;
	transform: translateY(-1px);
}

.trt-submit:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.32);
	outline-offset: 3px;
}

.trt-message {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 10px;
	line-height: 1.5;
}

.trt-message-success {
	border: 1px solid #86efac;
	background: #f0fdf4;
	color: #166534;
}

.trt-message-success .trt-registration-link,
.trt-message-success .trt-registration-link:visited {
	display: inline-block;
	margin-left: 6px;
	padding: 5px 9px;
	border: 1px solid #14532d;
	border-radius: 6px;
	background: #166534;
	color: #ffffff !important;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.trt-message-success .trt-registration-link:hover,
.trt-message-success .trt-registration-link:focus {
	background: #14532d;
	color: #ffffff !important;
}

.trt-message-success .trt-registration-link:focus-visible {
	outline: 3px solid rgba(20, 83, 45, 0.28);
	outline-offset: 2px;
}

.trt-message-error {
	border: 1px solid #fca5a5;
	background: #fef2f2;
	color: #991b1b;
}

.trt-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 640px) {
	.trt-grid {
		grid-template-columns: 1fr;
	}

	.trt-field-full {
		grid-column: auto;
	}

	.trt-submit {
		width: 100%;
	}
}

.trt-public-table-wrap {
	box-sizing: border-box;
	max-width: 1120px;
	margin: 32px auto;
	padding: 0 16px;
}

.trt-public-table-wrap *,
.trt-public-table-wrap *::before,
.trt-public-table-wrap *::after {
	box-sizing: inherit;
}

.trt-public-table-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
	padding: clamp(22px, 5vw, 38px);
}

.trt-public-table-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.trt-participant-total {
	flex: 0 0 auto;
	padding: 10px 14px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 0.95rem;
}

.trt-table-scroll {
	overflow-x: auto;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.trt-public-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	font-size: 0.88rem;
	line-height: 1.32;
}

.trt-public-table th,
.trt-public-table td {
	padding: 10px 9px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: middle;
}

.trt-public-table th {
	background: #f8fafc;
	color: #334155;
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.trt-public-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Οι πίνακες διπλών/μεικτών έχουν περισσότερες στήλες, οπότε
 * χρησιμοποιούν πιο συμπαγή τυπογραφία στη δημόσια προβολή. */
@media (min-width: 721px) {
	.trt-public-table-wrap[data-category="doubles"] .trt-public-table,
	.trt-public-table-wrap[data-category="mixed"] .trt-public-table {
		font-size: 0.80rem;
	}

	.trt-public-table-wrap[data-category="doubles"] .trt-public-table th,
	.trt-public-table-wrap[data-category="doubles"] .trt-public-table td,
	.trt-public-table-wrap[data-category="mixed"] .trt-public-table th,
	.trt-public-table-wrap[data-category="mixed"] .trt-public-table td {
		padding: 9px 6px;
	}

	.trt-public-table-wrap[data-category="doubles"] .trt-public-table th,
	.trt-public-table-wrap[data-category="mixed"] .trt-public-table th {
		font-size: 0.69rem;
		line-height: 1.2;
		white-space: normal;
	}
}

.trt-public-table tbody tr:hover {
	background: #f8fafc;
}

.trt-empty-row td {
	padding: 28px 16px;
	text-align: center;
	color: #64748b;
}

.trt-table-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 12px 2px 0;
	color: #64748b;
	font-size: 0.85rem;
}

.trt-has-new-registration .trt-public-table-card {
	animation: trt-table-update 1.2s ease;
}

@keyframes trt-table-update {
	0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.34), 0 14px 38px rgba(15, 23, 42, 0.08); }
	100% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0), 0 14px 38px rgba(15, 23, 42, 0.08); }
}

@media (max-width: 720px) {
	.trt-public-table-heading {
		flex-direction: column;
		gap: 4px;
	}

	.trt-participant-total {
		margin-bottom: 18px;
	}

	.trt-table-scroll {
		overflow: visible;
		border: 0;
	}

	.trt-public-table,
	.trt-public-table thead,
	.trt-public-table tbody,
	.trt-public-table tr,
	.trt-public-table th,
	.trt-public-table td {
		display: block;
		width: 100%;
	}

	.trt-public-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.trt-public-table tbody {
		display: grid;
		gap: 12px;
	}

	.trt-public-table tr {
		padding: 9px 14px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #ffffff;
	}

	.trt-public-table td {
		display: grid;
		grid-template-columns: minmax(110px, 42%) 1fr;
		gap: 12px;
		padding: 8px 0;
		border: 0;
		border-bottom: 1px dashed #e2e8f0;
	}

	.trt-public-table td:last-child {
		border-bottom: 0;
	}

	.trt-public-table td::before {
		content: attr(data-label);
		color: #64748b;
		font-size: 0.82rem;
		font-weight: 700;
	}

	.trt-empty-row td {
		display: block;
		text-align: center;
	}

	.trt-empty-row td::before {
		content: none;
	}

	.trt-table-meta {
		flex-direction: column;
		gap: 4px;
	}
}

.trt-team-section + .trt-team-section {
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid #e5e7eb;
}

.trt-team-section h3 {
	margin: 0 0 18px;
	font-size: 1.12rem;
	color: #1e3a8a;
}

/* Version 2.0.9: fields normalized to Greek uppercase by JavaScript and PHP. */
.trt-form [data-trt-uppercase] {
	text-transform: uppercase;
}

/* Searchable player dropdown used by all registration forms. */
.trt-combobox {
	position: relative;
}

.trt-player-results {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 290px;
	overflow-y: auto;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.trt-player-option {
	display: block;
	width: 100%;
	padding: 11px 13px;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	background: #ffffff;
	color: #111827;
	font: inherit;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.trt-player-option:last-child {
	border-bottom: 0;
}

.trt-player-option:hover,
.trt-player-option:focus {
	outline: none;
	background: #eff6ff;
	color: #1e3a8a;
}

.trt-player-option-manual {
	font-weight: 650;
	color: #1d4ed8;
}

.trt-player-empty {
	padding: 11px 13px;
	border-bottom: 1px solid #e5e7eb;
	color: #64748b;
}

.trt-field-help {
	margin: 7px 2px 0;
	color: #64748b;
	font-size: 0.82rem;
	line-height: 1.4;
}

.trt-field-help-success {
	color: #166534;
}

.trt-field-help-error {
	color: #991b1b;
}


.trt-field input[data-trt-always-readonly][readonly] {
	background: #f1f5f9;
	color: #475569;
	cursor: not-allowed;
}

.trt-field input.trt-input-autofilled[readonly] {
	border-color: #86efac;
	background: #f0fdf4;
	color: #14532d;
	cursor: default;
}


/* Ομαδοποιημένη προβολή όλων των πινάκων */
.trt-all-tables {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 32px auto;
	padding: 0 16px;
}

.trt-all-tables *,
.trt-all-tables *::before,
.trt-all-tables *::after {
	box-sizing: inherit;
}

.trt-all-tables-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 24px;
}

.trt-all-tables-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	padding: 10px 18px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #ffffff;
	color: #1e3a8a;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.trt-all-tables-tab:hover,
.trt-all-tables-tab:focus-visible {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1d4ed8;
}

.trt-all-tables-tab.is-active,
.trt-all-tables-tab[aria-selected="true"] {
	border-color: #1d4ed8;
	background: #1d4ed8;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(29, 78, 216, 0.2);
}

.trt-all-tables-tab.is-active:hover,
.trt-all-tables-tab.is-active:focus-visible {
	background: #1e40af;
	color: #ffffff;
}

.trt-all-tables-group {
	margin-bottom: 34px;
}

.trt-all-tables-group[hidden] {
	display: none !important;
}

.trt-public-table-wrap-grouped {
	max-width: none;
	margin: 0;
	padding: 0;
}

.trt-all-tables-group-singles .trt-public-table-card,
.trt-all-tables-group-womens_singles .trt-public-table-card {
	border-top: 5px solid #2563eb;
}

.trt-all-tables-group-doubles .trt-public-table-card {
	border-top: 5px solid #059669;
}

.trt-all-tables-group-mixed .trt-public-table-card {
	border-top: 5px solid #7c3aed;
}

.trt-submit:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.trt-submit-status {
	min-height: 1.4em;
	margin: 8px 0 0;
	color: #475569;
	font-size: 0.9rem;
}

.trt-feedback-actions {
	margin-top: 10px;
}

.trt-online-registration-link-wrap {
	margin-top: 10px;
}

.trt-feedback-ready {
	margin-top: 10px;
}

.trt-message-success .trt-new-registration-link {
	margin-left: 0;
}


.trt-debug-panel {
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px dashed currentColor;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

/* Τα στοιχεία συμμετοχής μένουν κλειδωμένα μέχρι να ολοκληρωθεί η αναζήτηση Επωνύμου. */
.trt-form input[data-trt-search-locked="1"]:disabled,
.trt-form select[data-trt-search-locked="1"]:disabled,
.trt-form textarea[data-trt-search-locked="1"]:disabled {
	background: #f8fafc;
	color: #94a3b8;
	cursor: not-allowed;
	opacity: 0.82;
}

.trt-submit:disabled {
	cursor: not-allowed;
}
