@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

html, body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	width: 100%;
	overflow-x: hidden;
}

body {
	font-family: 'Roboto', sans-serif;
	background: #f5f5f5;
}

.container {
	min-height: 100vh;
	width: 100%;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.content-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.watermark {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-45deg);
	font-size: 100px;
	color: rgba(220, 38, 38, 0.05);
	pointer-events: none;
	z-index: 0;
	white-space: nowrap;
}

.header-section {
	padding: 2rem;
	position: relative;
}

.main-content {
	flex: 1;
	padding: 2rem;
}

.footer-section {
	padding: 1rem;
}

@media print {
	.no-print {
		display: none;
	}
	.watermark {
		display: block !important;
		color: rgba(220, 38, 38, 0.1);
	}
	body {
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
}

.blink {
	animation: blink 1s infinite;
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 1; }
}

.info-card {
	@apply bg-gray-50 p-4 rounded-lg border border-gray-200 h-full;
}

.grid {
	@apply grid-cols-1 md:grid-cols-2;
	align-items: stretch;
}

.text-gray-600 {
	font-size: 1.1rem;
}

.font-semibold {
	font-size: 1.1rem;
}

.text-lg {
	font-size: 1.25rem;
}

.text-3xl {
	font-size: 2rem;
}

@media (max-width: 768px) {
	.header-section {
		padding: 1rem;
	}

	.header-section h1 {
		font-size: 1.25rem;
		line-height: 1.4;
		margin-top: 4rem;
	}

	.logo-container {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none;
		text-align: center;
		margin-bottom: 1rem;
	}

	.belge-no {
		position: static !important;
		margin-top: 1rem;
		text-align: center;
		padding: 0.5rem;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 0.25rem;
	}

	.main-content {
		padding: 1rem;
	}

	.grid {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}

	.grid-cols-2 {
		display: grid;
		grid-template-columns: 45% 55% !important;
		gap: 0.75rem !important;
		align-items: flex-start !important;
		text-align: left !important;
	}

	.space-y-4 {
		margin-top: 0 !important;
		margin-bottom: 1.5rem !important;
		height: auto !important;
	}

	.mt-8 .flex {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
	}

	.mt-8 .w-24 {
		margin-bottom: 1rem;
		width: 8rem;
		height: 8rem;
	}

	.footer-section {
		padding: 1rem;
		font-size: 0.75rem;
	}

	.space-y-4 {
		margin-top: 0 !important;
		margin-bottom: 1.5rem !important;
		height: auto !important;
	}

	.grid-cols-2 {
		display: grid;
		grid-template-columns: 45% 55% !important;
		gap: 0.75rem !important;
		align-items: flex-start !important;
		text-align: left !important;
	}

	.text-lg {
		font-size: 1.2rem;
		text-align: left;
		padding-left: 0.5rem;
	}

	.text-gray-600 {
		font-size: 1rem;
		padding-left: 0.5rem;
	}

	.font-semibold {
		font-size: 1rem;
		text-align: left;
	}

	.bg-green-50 .flex {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.bg-green-50 .text-gray-700,
	.bg-green-50 .text-green-600 {
		font-size: 1rem;
		text-align: left;
		width: 100%;
	}

	.bg-blue-50 .text-sm {
		font-size: 0.95rem;
		text-align: left;
	}

	.overflow-x-auto {
		margin: 0 -1rem;
		padding: 0 1rem;
	}

	table {
		font-size: 0.9rem;
	}

	th, td {
		padding: 0.5rem 0.75rem;
		white-space: nowrap;
	}

	.text-sm {
		font-size: 0.8rem;
	}
}

@media (max-width: 380px) {
	.header-section h1 {
		font-size: 1.1rem;
	}

	.grid-cols-2 {
		grid-template-columns: 45% 55% !important;
	}

	.text-gray-600, 
	.font-semibold {
		font-size: 0.95rem;
	}

	.text-lg {
		font-size: 1.1rem;
	}
}

.overflow-x-auto {
	position: relative;
	margin-left: -1rem;
	margin-right: -1rem;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.overflow-x-auto {
		margin-left: 0;
		margin-right: 0;
		padding: 0;
	}
}

table {
	border-collapse: collapse;
	width: 100%;
}

th, td {
	white-space: nowrap;
	padding: 0.75rem 1rem;
}

.overflow-x-auto::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 20px;
	background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
	pointer-events: none;
	display: none;
}

@media (max-width: 768px) {
	.overflow-x-auto::after {
		display: block;
	}

	th, td {
		font-size: 0.9rem;
		padding: 0.625rem 0.875rem;
	}

	.text-sm {
		font-size: 0.8rem;
	}
}

tbody tr:hover {
	background-color: rgba(243, 244, 246, 0.5);
}

.text-green-600 {
	color: #059669;
}

.gbt-page {
	background: white;
	font-family: Arial, sans-serif;
}

.gbt-header {
	text-align: center;
	padding: 20px 0;
}

.gbt-title {
	font-size: 24px;
	font-weight: bold;
	color: #dc2626;
	margin-bottom: 10px;
}

.gbt-subtitle {
	font-size: 18px;
	color: #dc2626;
	margin-bottom: 20px;
}

.logo-container {
	display: flex;
	justify-content: center;
	margin: 30px 0;
	padding: 20px 0;
}

.justice-logo {
	width: 150px;
	height: 150px;
	object-fit: contain;
}

.personal-info {
	margin: 30px auto;
	max-width: 1400px;
	padding: 0 20px;
}

.personal-info-item {
	margin-bottom: 8px;
	font-size: 16px;
}

.personal-info-label {
	font-weight: bold;
	display: inline-block;
	width: 150px;
}

.table-container {
	margin: 20px auto;
	width: 100%;
	padding: 0 20px;
	overflow: visible;
}

.family-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 13px;
	table-layout: auto;
	border: 3px solid #000000;
	background-color: #ffffff;
}

.family-table th {
	background-color: #ffffff;
	padding: 12px 8px;
	text-align: left;
	border: 2px solid #000000;
	font-weight: bold;
	font-size: 12px;
	word-wrap: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
}

.family-table th:nth-child(1) { width: 9%; }
.family-table th:nth-child(2) { width: 9%; }
.family-table th:nth-child(3) { width: 7%; }
.family-table th:nth-child(4) { width: 7%; }
.family-table th:nth-child(5) { width: 9%; }
.family-table th:nth-child(6) { width: 8%; }
.family-table th:nth-child(7) { width: 9%; }
.family-table th:nth-child(8) { width: 8%; }
.family-table th:nth-child(9) { width: 9%; }
.family-table th:nth-child(10) { width: 8%; }
.family-table th:nth-child(11) { width: 8%; }

.family-table td {
	padding: 10px 8px;
	border: 2px solid #000000;
	font-size: 12px;
	word-wrap: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
}

.family-table tr:nth-child(even) {
	background-color: #ffffff;
}

.family-table tr:nth-child(odd) {
	background-color: #ffffff;
}

.family-table tbody tr:hover {
	background-color: #ffffff;
}

@media (max-width: 768px) {
	.gbt-page {
		padding: 0;
	}

	.gbt-header {
		padding: 10px 5px;
	}

	.gbt-title {
		font-size: 18px;
		margin-bottom: 5px;
		line-height: 1.3;
	}

	.gbt-subtitle {
		font-size: 14px;
		margin-bottom: 10px;
		line-height: 1.3;
		padding: 0 5px;
	}

	.logo-container {
		margin: 20px 0;
		padding: 15px 0;
	}

	.justice-logo {
		width: 150px;
		height: 150px;
		max-width: 95vw;
		max-height: 95vw;
	}

	.personal-info {
		margin: 15px auto;
		padding: 0 10px;
		max-width: 100%;
	}

	.personal-info-item {
		font-size: 15px;
		margin-bottom: 5px;
		line-height: 1.4;
	}

	.personal-info-label {
		width: 110px;
		font-size: 15px;
		display: inline-block;
	}

	.table-container {
		margin: 10px 0;
		padding: 0 10px;
		width: 100%;
	}

	.family-table {
		font-size: 8px;
		width: 100%;
		margin: 0;
		table-layout: fixed;
	}

	.family-table th {
		padding: 5px 3px;
		font-size: 8px;
		white-space: normal;
		word-break: break-word;
		border: 2px solid #000000;
	}

	.family-table th:nth-child(1) { width: 8%; }
	.family-table th:nth-child(2) { width: 9%; }
	.family-table th:nth-child(3) { width: 7%; }
	.family-table th:nth-child(4) { width: 7%; }
	.family-table th:nth-child(5) { width: 8%; }
	.family-table th:nth-child(6) { width: 8%; }
	.family-table th:nth-child(7) { width: 9%; }
	.family-table th:nth-child(8) { width: 8%; }
	.family-table th:nth-child(9) { width: 9%; }
	.family-table th:nth-child(10) { width: 9%; }
	.family-table th:nth-child(11) { width: 8%; }

	.family-table td {
		padding: 4px 3px;
		font-size: 8px;
		white-space: normal;
		word-break: break-word;
		border: 2px solid #000000;
	}
}

@media (max-width: 480px) {
	.gbt-header {
		padding: 8px 5px;
	}

	.gbt-title {
		font-size: 16px;
		margin-bottom: 4px;
	}

	.gbt-subtitle {
		font-size: 12px;
		margin-bottom: 8px;
		padding: 0 5px;
	}

	.logo-container {
		margin: 15px 0;
		padding: 10px 0;
	}

	.justice-logo {
		width: 150px;
		height: 150px;
		max-width: 95vw;
		max-height: 95vw;
	}

	.personal-info {
		margin: 10px auto;
		padding: 0 8px;
	}

	.personal-info-item {
		font-size: 14px;
		margin-bottom: 4px;
	}

	.personal-info-label {
		width: 100px;
		font-size: 14px;
		display: inline-block;
	}

	.table-container {
		margin: 8px 0;
		padding: 0 8px;
		width: 100%;
	}

	.family-table {
		font-size: 7px;
		width: 100%;
		margin: 0;
		table-layout: fixed;
	}

	.family-table th {
		padding: 4px 2px;
		font-size: 7px;
		white-space: normal;
		word-break: break-word;
		border: 2px solid #000000;
	}

	.family-table th:nth-child(1) { width: 8%; }
	.family-table th:nth-child(2) { width: 9%; }
	.family-table th:nth-child(3) { width: 7%; }
	.family-table th:nth-child(4) { width: 7%; }
	.family-table th:nth-child(5) { width: 8%; }
	.family-table th:nth-child(6) { width: 8%; }
	.family-table th:nth-child(7) { width: 9%; }
	.family-table th:nth-child(8) { width: 8%; }
	.family-table th:nth-child(9) { width: 9%; }
	.family-table th:nth-child(10) { width: 9%; }
	.family-table th:nth-child(11) { width: 8%; }

	.family-table td {
		padding: 3px 2px;
		font-size: 7px;
		white-space: normal;
		word-break: break-word;
		border: 2px solid #000000;
	}
}