/* General Reset */
body {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	color: #333;
	background: #fff;
}

/* A4 Sheet Layout */
.a4-sheet {
	width: 210mm;
	height: 297mm;
	margin: auto;
	padding: 5mm;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
}

/* Header */
.sheet-header {
	text-align: center;
	margin-bottom: 5mm;
}

.sheet-header h1 {
	font-size: 14px;
	margin: 0;
}

.sheet-header p {
	font-size: 10px;
	margin: 3px 0 0;
}

/* Main Content */
.sheet-content {
	flex: 1;
}

.group-section {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* Two columns for six groups */
	grid-gap: 3mm; /* Reduced space between tables */
}

.group {
	border: 1px solid #ddd;
	padding: 3mm;
	text-align: left;
	font-size: 10px;
	position: relative;
}

.group h2 {
	margin: 0 0 5mm;
	font-size: 12px;
	color: #000;
}

.group .scores {
	position: absolute;
	top: 3mm;
	left: 3mm;
	right: 3mm;
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: #555;
}

.group textarea {
	width: 100%;
	height: 40mm; /* Increased height for notes */
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: none;
	margin-top: 3mm;
	padding: 2mm;
	font-size: 10px;
}

/* Footer */
.sheet-footer {
	text-align: center;
	font-size: 8px;
	margin-top: 5mm;
	color: #666;
}

/* Print Styles */
@media print {
	body {
		margin: 0;
		background: #fff;
	}

	.a4-sheet {
		box-shadow: none;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		page-break-after: always;
	}
}