.gls-score-table,
.gls-leaderboard-table,
.gls-dashboard-table {
	border-collapse: collapse;
	width: 100%;
	margin: 1em 0;
}

.gls-score-table th,
.gls-score-table td,
.gls-leaderboard-table th,
.gls-leaderboard-table td,
.gls-dashboard-table th,
.gls-dashboard-table td {
	border: 1px solid #ddd;
	padding: 6px 10px;
	text-align: center;
}

.gls-score-table th,
.gls-leaderboard-table th,
.gls-dashboard-table th {
	background: #f5f5f5;
}

.gls-score-input {
	width: 4em;
	font-size: 18px;
	padding: 4px;
	text-align: center;
}

.gls-save-status.gls-success {
	color: #2a7a2a;
}

.gls-save-status.gls-error {
	color: #b32d2e;
}

.gls-leaderboard-table tbody tr:nth-child(1) {
	font-weight: bold;
}

.gls-progress {
	font-weight: 600;
	margin: 0.5em 0;
}

.gls-hole-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 1em 0;
}

.gls-hole-nav button {
	padding: 10px 18px;
	font-size: 15px;
	background: #1c5931;
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.gls-hole-heading {
	font-size: 18px;
}

.gls-hole-nav-bottom {
	justify-content: center;
}

.gls-show-dashboard,
.gls-back-to-entry {
	padding: 10px 16px;
	font-size: 14px;
	background: #1c5931;
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.gls-shortcode-header {
	margin-bottom: 1em;
}

.gls-shortcode-header h3 {
	margin: 0 0 4px 0;
}

.gls-shortcode-date {
	margin: 0;
	color: #555;
}

.gls-overview-list {
	list-style: disc;
	padding-left: 22px;
	margin: 0 0 1.5em 0;
}

.gls-overview-list li {
	margin-bottom: 6px;
}

.gls-overview-date {
	color: #555;
}

.gls-overview-link {
	text-decoration: none;
}

.gls-overview-link.gls-overview-active {
	font-weight: 700;
	text-decoration: underline;
}

.gls-overview-content {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #ddd;
}

/* Matchplay: Kopf-an-Kopf-Karten */
.gls-match-card {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 10px;
	background: #fff;
}

.gls-match-finished {
	background: #f6f7f7;
	opacity: 0.85;
}

.gls-match-players {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
}

.gls-match-player {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gls-match-player-b {
	text-align: right;
	align-items: flex-end;
}

.gls-match-leader .gls-match-name {
	font-weight: 700;
}

.gls-match-team {
	font-size: 11px;
	text-transform: uppercase;
	color: #777;
	letter-spacing: 0.03em;
}

.gls-match-name {
	font-size: 15px;
}

.gls-match-status {
	flex: 0 0 auto;
	text-align: center;
	min-width: 140px;
}

.gls-match-status-text {
	font-weight: 700;
	white-space: nowrap;
}

.gls-match-thru {
	font-size: 12px;
	color: #777;
}

/* Matchplay: Team-Scoreboard (Event-Ebene) */
.gls-team-scoreboard-header {
	display: flex;
	align-items: stretch;
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
}

.gls-team-score {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	color: #fff;
}

.gls-team-score-vs {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	font-weight: 700;
	color: #777;
}

.gls-team-name {
	font-size: 18px;
	font-weight: 700;
}

.gls-team-points {
	font-size: 28px;
	font-weight: 700;
}

.gls-round-heading {
	margin-top: 20px;
	margin-bottom: 8px;
}

/* Matchplay: Gewonnen/Geteilt/Verloren-Buttons in der Erfassung */
.gls-match-result-buttons {
	display: flex;
	gap: 10px;
	margin: 16px 0;
}

.gls-match-result-btn {
	flex: 1;
	padding: 16px 8px;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
}

.gls-match-result-btn.gls-match-result-active {
	background: #1a5632;
	color: #fff;
	border-color: #1a5632;
}

/* Loch-für-Loch-Detailansicht (Klick auf Spieler/Match im Dashboard) */
.gls-hole-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 6px;
	margin: 14px 0;
}

.gls-hole-detail-cell {
	text-align: center;
}

.gls-hole-detail-holenr {
	font-size: 11px;
	color: #777;
	margin-bottom: 2px;
}

.gls-hole-detail-value {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 6px;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

.gls-hole-detail-symbol {
	font-size: 24px;
	font-weight: 700;
}

.gls-hole-detail-empty {
	background: #e5e5e5;
	color: #999;
}

.gls-hole-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
	font-size: 13px;
}

.gls-hole-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gls-hole-legend-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
}

.gls-dashboard-row {
	cursor: pointer;
}

.gls-dashboard-row:hover {
	background: #f0f6f0;
}

.gls-match-card-clickable {
	cursor: pointer;
}

.gls-match-card-clickable:hover {
	box-shadow: 0 0 0 2px #1a5632 inset;
}

/* Matchplay: dezenter "Kein Ergebnis"-Button unter den 3 Hauptoptionen */
.gls-match-result-clear-wrap {
	text-align: center;
	margin: 4px 0 12px;
}

.gls-match-result-clear {
	color: #999;
	font-size: 12px;
	text-decoration: underline;
}

.gls-match-result-clear:hover {
	color: #666;
}

.gls-team-score-live-note {
	text-align: center;
	font-size: 12px;
	color: #777;
	margin: -10px 0 20px;
}

.gls-hole-detail-summary {
	font-size: 15px;
	background: #f6f7f7;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
}
