@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.2.8/index.min.css");

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
input[type="number"] {
	-moz-appearance: textfield;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}

:root {
	/* Harbour — samma tokens som registration-platform */
	--radius: 0.625rem;
	--sidebar-radius: 1.375rem;
	--radius-sm: calc(var(--radius) - 4px);
	--radius-md: calc(var(--radius) - 2px);
	--radius-lg: var(--radius);
	--radius-xl: calc(var(--radius) + 4px);
	--radius-2xl: calc(var(--radius) + 8px);
	--sidebar-width: 18rem;
	--sidebar-width-icon: 3rem;
	--header-height: 3rem;

	--background: oklch(0.99 0.004 250);
	--foreground: oklch(0.18 0.02 250);
	--card: oklch(1 0.003 250);
	--card-foreground: oklch(0.18 0.02 250);
	--popover: oklch(1 0.003 250);
	--popover-foreground: oklch(0.18 0.02 250);
	--primary: oklch(0.42 0.1 250);
	--primary-foreground: oklch(0.99 0.01 250);
	--secondary: oklch(0.95 0.015 250);
	--secondary-foreground: oklch(0.28 0.04 250);
	--muted: oklch(0.96 0.012 250);
	--muted-foreground: oklch(0.48 0.025 250);
	--accent: oklch(0.94 0.025 250);
	--accent-foreground: oklch(0.28 0.04 250);
	--destructive: oklch(0.577 0.245 27.325);
	--border-color: oklch(0.9 0.015 250);
	--input: oklch(0.9 0.015 250);
	--ring: oklch(0.55 0.08 250);
	--sidebar: oklch(0.975 0.01 250);
	--sidebar-foreground: oklch(0.18 0.02 250);
	--sidebar-primary: oklch(0.42 0.1 250);
	--sidebar-primary-foreground: oklch(0.99 0.01 250);
	--sidebar-accent: oklch(0.94 0.025 250);
	--sidebar-accent-foreground: oklch(0.28 0.04 250);
	--sidebar-border: oklch(0.9 0.015 250);
	--sidebar-ring: oklch(0.55 0.08 250);

	--font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
	--primary-font: var(--font-sans);
	--primary-bg-color: var(--background);
	--primary-text-color: var(--foreground);
	--primary-color: var(--primary);
	--form-border-color: var(--border-color);
	--not-called-color: oklch(0.92 0.04 350);
	--eliminated-color: var(--muted);
	--stop-card-printed-color: oklch(0.95 0.04 155);
	--accent-color: var(--primary);
	--navbar-bg-color: var(--sidebar);
	--btn-bg-color: var(--primary);
	--btn-hover-bg-color: color-mix(in oklab, var(--primary) 88%, white);
	--navbar-hover-bg-color: var(--sidebar-accent);
	--light-grey: var(--border-color);
	--white: var(--card);
	--nav-link-color: var(--sidebar-foreground);
	--shadow: 0 1px 2px oklch(0.18 0.02 250 / 0.05);
	--border: 1px solid var(--border-color);
}

body {
	font-family: var(--font-sans);
	background-color: var(--background);
	color: var(--foreground);
	letter-spacing: -0.011em;
	text-align: center;
	padding-top: 0;
	-webkit-font-smoothing: antialiased;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--primary);
}

button,
input,
select,
textarea {
	font-family: inherit;
}

button {
	border: none;
	background-color: transparent;
	cursor: pointer;
	color: inherit;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary);
	color: var(--primary-foreground);
	text-align: center;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	border-radius: var(--radius-md);
	border: none;
}

.btn:hover {
	background-color: var(--btn-hover-bg-color);
}


.container {
	/* max-width: 900px;  */
	margin: 0 auto;
	padding: 40px 30px;

}

.color-info {
	text-align: center;
}

.color-info p {
	padding: 3px;
	display: inline-block;
	color: var(--primary-text-color);
	border: 1px solid var(--primary-bg-color);
	border-radius: 5px;
	font-size: medium;
	/* width: fit-content; */
}

.color-info .not-called {
	background-color: var(--not-called-color);
}

.color-info .eliminated {
	background-color: var(--eliminated-color);
}

.color-info .stop-card-printed {
	background-color: var(--stop-card-printed-color);
}


/* ------------------- */
/* Admin Dashboard */
/* ------------------- */
.admin-container {
	width: 100%;
	margin: 0;
	padding: 0;
}

.admin-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.user-management,
.latest-data,
.db-management {
	background-color: var(--card);
	color: var(--card-foreground);
	padding: 20px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
}

.user-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.user-table th,
.user-table td {
	border-bottom: 1px solid var(--border-color);
	padding: 0.65rem 0.75rem;
	text-align: left;
}

.user-table th {
	background: var(--muted);
	color: var(--foreground);
	font-size: 0.75rem;
	font-weight: 600;
}

.role-select {
	font-family: var(--primary-font);
	font-size: 14px;
	padding: 6px 12px;
	padding-right: 32px;
	border: 1px solid var(--form-border-color);
	border-radius: 6px;
	background-color: var(--card);
	cursor: pointer;
	min-width: 140px;
	width: auto;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
	transition: all 0.2s ease-in-out;
}

.role-select:hover {
	border-color: var(--btn-bg-color);
	background-color: #f9fafb;
}

.role-select:focus {
	outline: none;
	border-color: var(--btn-bg-color);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
	background-color: var(--card);
}

.role-select option {
	padding: 8px 12px;
	font-size: 14px;
}

.btn-admin {
	margin-top: 10px;
	padding: 10px 20px;
	font-family: var(--primary-font);
	color: var(--primary-text-color);
	font-size: 16px;
	padding: 8px;
	border-radius: .375rem;
	cursor: pointer;
	border: none;
	text-decoration: none;
}

.btn-warning {
	background-color: #f05e4e;
}

.btn-danger {
	background-color: #dc2626;
	color: #fff;
}

.admin-user-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.flash-messages {
	margin-bottom: 1rem;
}

.flash-message {
	margin: 0 0 0.5rem;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	font-size: 14px;
}

.flash-success {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

.flash-error {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.btn-success {
	background-color: #5cb85c;
}

.btn-warning:hover,
.btn-success:hover,
.btn-danger:hover {
	opacity: 0.8;
}


/* ------------------- */
/* Modern form pages   */
/* (sentoff + dispens) */
/* ------------------- */
.modern-form-page-header {
	margin-bottom: 1.25rem;
	text-align: left;
}

.modern-form-page-header h1 {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--foreground);
	margin-bottom: 0.35rem;
}

.modern-form-page-lead {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin: 0;
}

.modern-form-card {
	background: var(--card);
	color: var(--card-foreground);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	padding: 1rem 1.15rem;
}

.sentoff-form,
.dispensation-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: none;
	margin: 0;
	grid-template-columns: unset;
	grid-template-rows: unset;
}

.sentoff-form > *,
.dispensation-form > * {
	margin: 0;
	padding: 0;
	grid-column: unset;
}

.modern-form-section {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.modern-form-section + .modern-form-section {
	padding-top: 0.75rem;
	border-top: 1px solid #f3f4f6;
}

#next-match-fields {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

#next-match-fields[hidden] {
	display: none;
}

#same_date_alert[hidden],
#same_date_noticed[hidden] {
	display: none !important;
}

.modern-form-section-title {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted-foreground);
	margin: 0;
}

.modern-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.modern-form-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

@media (max-width: 640px) {
	.modern-form-field-row {
		grid-template-columns: 1fr;
	}
}

.modern-form-field label,
.modern-form-field > div[type="label"] {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
	letter-spacing: 0.01em;
}

.modern-form-hint {
	display: block;
	font-size: 0.6875rem;
	color: #9ca3af;
	margin-top: 0.15rem;
}

.sentoff-form .form-control,
.dispensation-form .form-control {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.125rem;
	padding: 0.45rem 0.6rem;
	font-size: 0.875rem;
	line-height: 1.25;
	font-family: var(--primary-font);
	color: var(--primary-text-color);
	background: var(--card);
	border: 1px solid #d1d5db;
	border-radius: 6px;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.sentoff-form select.form-control,
.dispensation-form select.form-control {
	cursor: pointer;
	appearance: none;
	background-color: var(--card);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 11px;
	padding-right: 1.75rem;
}

.sentoff-form textarea.form-control,
.dispensation-form textarea.form-control {
	min-height: 3.5rem;
	resize: vertical;
	line-height: 1.35;
}

.sentoff-form input[type="file"].form-control,
.dispensation-form input[type="file"].form-control {
	padding: 0.35rem 0.5rem;
	background: var(--card);
}

.sentoff-form .form-control:focus,
.dispensation-form .form-control:focus {
	outline: none;
	border-color: var(--btn-bg-color);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.sentoff-form .form-control[aria-invalid="true"],
.dispensation-form .form-control[aria-invalid="true"] {
	border-color: #f87171;
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.sentoff-form input[type="file"].form-control::file-selector-button,
.dispensation-form input[type="file"].form-control::file-selector-button {
	margin-right: 0.5rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	background: #f9fafb;
	color: #374151;
	font-family: var(--primary-font);
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
}

.modern-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.modern-radio-group > label {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 2.125rem;
	padding: 0.25rem 0.65rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: var(--card);
	font-size: 0.8125rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease;
}

.modern-radio-group > label:has(input:checked) {
	border-color: var(--btn-bg-color);
	background: #eff6ff;
	color: #0c4a6e;
}

.modern-radio-group input {
	margin: 0;
	accent-color: var(--btn-bg-color);
}

.sentoff-form .btn-container,
.dispensation-form .btn-container {
	display: flex;
	justify-content: stretch;
	margin-top: 0.1rem;
	padding-top: 0.35rem;
	border-top: 1px solid #f3f4f6;
}

.sentoff-form .btn-container > .btn,
.dispensation-form .btn-container > .btn {
	width: 100%;
	margin: 0;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 6px;
}

/* ------------------- */
/* New suspension FORM */
/* ------------------- */
.form-wrapper {
	display: flex;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	align-items: flex-start;
}

.form-container {
	border-radius: 5px;
	flex: 1;
}

.data-display {
	flex: 0 0 350px;
	background-color: var(--card);
	padding: 20px;
	border-radius: 5px;
	border: 1px solid var(--form-border-color);
	box-shadow: var(--shadow);
}

.data-display h2 {
	margin-bottom: 15px;
	font-size: 18px;
	color: var(--primary-text-color);
}

.data-display #data-content {
	font-size: 14px;
	color: var(--primary-text-color);
}

form {
	display: grid;
	grid-template-rows: repeat(2, 1fr);
	grid-template-columns: 1fr 1fr;
	font-family: var(--primary-font);
	font-size: 136x;
	max-width: 750px;
	margin: 0px auto;
	/* Center the form horizontally */
}

form>* {
	margin: 2px;
	padding: 2px;
	padding-left: 5px;
	color: var(--primary-text-color);
}

form select {
	grid-column: 2;
	font-size: 16px;
	font-family: var(--primary-font);
	border-radius: 5px;
	border: 1px solid var(--form-border-color);
}

form>label {
	grid-column: 1;
}

form>input {
	grid-column: 2;
	font-size: 16px;
	border-radius: 5px;
	border: 1px solid var(--form-border-color);
}

form>textarea {
	border-radius: 5px;
	border: 1px solid var(--form-border-color);
	grid-column: 2;
	font-size: 16px;
	font-family: var(--primary-font);
}

::placeholder {
	color: #b2bbc8;
	/* Change the color of placeholder text */
}

.btn-container {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
}

.btn-container>.btn {
	margin-top: 10px;
	padding: 10px 20px;
	background-color: var(--btn-bg-color);
	color: #fbfdfe;

	font-family: var(--primary-font);
	font-size: 16px;
	padding: 10px;
	border-radius: .375rem;
	cursor: pointer;
	border: none;
}

.btn-container>.btn:hover {
	background-color: var(--btn-hover-bg-color);
}

form>div[type="input"] {
	grid-column: 2;
}

form>div[type="label"] {
	grid-column: 1;
}

/* ------------------- */
/* LOGIN & YEAR FORM */
/* ------------------- */
.login-register-year-body {
	/* 	display: flex;
	align-items: center;
	justify-content: top;
	min-height: 100vh;
	border: 1px solid #ccc;
	*/
	font-family: var(--primary-font);
	line-height: 1.5;
	margin: 0;
	flex-direction: column;
	color: var(--primary-text-color);
	background: #f3f3f3;
	position: relative;
	height: 500px;

}

.login-register-year-form-container {
	/* 	top: 80%;
	text-align: center; 
	*/
	height: 570px;
	background-color: var(--card);
	border-radius: 15px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	padding: 10px 20px;
	transition: transform 0.2s;
	width: 500px;
	position: absolute;
	top: 80%;
	left: 50%;
	transform: translate(-50%, -50%);


	padding: 10px 20px;
	border-radius: 5px;
}

.login-register-year-form-container .error-message {
	color: red;
	font-weight: bold;
	font-size: 14px;
}

.login-register-year-form-container label {
	display: block;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 5px;
	text-align: left;
	font-weight: bold;
}

.login-register-year-form-container input {
	display: block;
	width: 100%;
	margin-bottom: 15px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.login-register-year-form-container select {
	display: block;
	width: 100%;
	margin-bottom: 15px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 5px;
}


.login-register-year-form-container .btn {
	margin-top: 10px;
	padding: 10px 20px;
	background-color: var(--btn-bg-color);
	color: #fbfdfe;

	font-family: var(--primary-font);
	font-size: 16px;
	padding: 10px;
	border-radius: .375rem;
	cursor: pointer;
	border: none;
}

.login-register-year-form-container .btn:hover {
	background-color: var(--btn-hover-bg-color);

}

/* ------------------- */
/* TABLE */
/* ------------------- */
.custom-table {
	font-size: 12px;
}

/* .custom-th {} */

.custom-td {
	text-align: center;
	max-width: 500px;
}


.custom-td select {
	font-size: 12px;
	font-family: var(--primary-font);
	color: #000000;
	background-color: transparent;
	border: 1px solid transparent;
	width: 100px;
	cursor: pointer;
	/* 	border-radius: 4px;
	box-shadow: 1px 1px 1px #666; */
}


.custom-td input {
	font-size: 12px;
	font-family: var(--primary-font);
	color: #000000;
	background-color: transparent;
	border: 1px solid transparent;
	text-align: center;
	padding: 0px;
	/* 	border-radius: 4px;
	box-shadow: 1px 1px 1px #666; */
}

.custom-td input:focus {
	outline: none;
}

.custom-td:focus {
	outline: none;
}

.custom-td>div {
	width: 100%;
	overflow: hidden;
}

.custom-td button {
	font-family: var(--primary-font);
	color: #000000;
	background-color: transparent;
	cursor: pointer;
	border: 1px solid;
	padding: 2px;

	border-radius: 4px;
	box-shadow: 1px 1px 1px #666;
}



.custom-footer {
	font-size: 12px;
}



/* ------------------- */
/* Navbar */
/* ------------------- */

.icon {
	padding: 0.5rem;
	background-color: var(--card);
	border-radius: 10px;
}

nav>ul {
	list-style: none;
}

nav>a {
	text-decoration: none;
	color: inherit;
}

nav>ul>li>a {
	color: var(--primary-text-color);
	display: block;
	padding: 10px 20px;
	text-decoration: none;
}

nav>ul>li>a {
	text-decoration: none;
	list-style: none;
}

nav>ul>li>a:hover {
	color: var(--accent-color);
}

.nav-search-form {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-right: 16px;
}

.nav-search-form input {
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid #ddd;
	font-size: 13px;
	min-width: 220px;
}

.nav-search-form input:focus {
	outline: none;
	border-color: var(--btn-bg-color);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.nav-search-form button {
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.nav-search-form button .bx {
	font-size: 20px;
}

.nav-search-form .nav-search-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: navigation-loading-spin 0.8s linear infinite;
}

.nav-search-form.is-loading .nav-search-icon {
	visibility: hidden;
	position: absolute;
}

.nav-search-form.is-loading .nav-search-spinner {
	display: block;
}

.nav-search-item-loading {
	pointer-events: none;
	cursor: default;
}

.nav-search-item-loading:hover,
.nav-search-item-loading[aria-selected="true"] {
	background: transparent;
	color: inherit;
}

.nav-search-loading-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.nav-search-inline-spinner {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border: 2px solid var(--border-color);
	border-top-color: var(--btn-bg-color);
	border-radius: 50%;
	animation: navigation-loading-spin 0.8s linear infinite;
}

.nav-search-wrap {
	position: relative;
	margin-right: 16px;
}

.nav-search-wrap .nav-search-form {
	margin-right: 0;
}

.nav-search-autocomplete {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 4px 0 0 0;
	padding: 0;
	list-style: none;
	background: var(--card);
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	max-height: 240px;
	overflow-y: auto;
	z-index: 1000;
}

.nav-search-autocomplete li {
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
}

.nav-search-autocomplete li:hover,
.nav-search-autocomplete li[aria-selected="true"] {
	background: rgba(0, 77, 153, 0.1);
	color: var(--btn-bg-color);
}

.nav-search-autocomplete li:focus {
	outline: none;
}

.nav-search-item-label {
	display: block;
	font-weight: 600;
	color: #111;
}

.nav-search-item-meta {
	display: block;
	font-size: 11px;
	color: #666;
	margin-top: 2px;
}

.notify-bubble {
	min-width: 20px;
	height: 20px;
	font-size: 12px;
	background: var(--destructive);
	color: var(--primary-foreground);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 6px;
	border-radius: 10px;
}

.logo {
	margin-right: 1.5rem;
}


#nav-menu {
	border-bottom: var(--border);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

.container-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--navbar-bg-color);
	column-gap: 2rem;
	height: 64px;
	padding: 1.2rem 3rem;
	font-size: 16px;
	font-family: var(--primary-font);
}

.menu {
	position: relative;
	background: var(--navbar-bg-color);
}

/* .menu-bar li:first-child .dropdown {
	flex-direction: initial;
	min-width: 480px; 
} */


.menu-bar li:first-child ul:nth-child(1) {
	border-bottom: var(--border);
}

.menu-bar li:nth-child(n + 2) ul:nth-child(1) {
	border-bottom: none;
}

.menu-bar .dropdown-link-title {
	font-weight: 600;
	color: var(--primary-text-color);
	text-align: left;
}

.menu-bar .nav-link {
	color: var(--nav-link-color);
	display: block;
	padding: 10px 20px;
	text-decoration: none;
	font-size: 16px;
}

.menu-bar .nav-link:hover,
.dropdown-link:hover {
	color: var(--accent-color);
}

.nav-start,
.nav-end,
.menu-bar,
.right-container {
	display: flex;
	align-items: center;
}

.dropdown {
	display: flex;
	flex-direction: column;
	min-width: 230px;
	background-color: var(--nav-link-color);
	border-radius: 10px;
	position: absolute;
	top: 36px;
	z-index: 1;
	visibility: hidden;
	opacity: 0;
	transform: scale(0.97) translateX(-5px);
	transition: 0.1s ease-in-out;
	box-shadow: var(--shadow);
	font-family: var(--primary-font);
}

.dropdown.active {
	visibility: visible;
	opacity: 1;
	transform: scale(1) translateX(5px);
}

.dropdown ul {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 1.2rem;
	text-align: left;
}

.dropdown ul li:not(:last-child) {
	border-bottom: var(--border);
}

.dropdown-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.15rem;
	font-family: var(--primary-font);
}

.dropdown-link {
	display: flex;
	gap: 0.5rem;
	padding: 0.5rem 0;
	border-radius: 7px;
	transition: 0.1s ease-in-out;
	color: var(--primary-text-color);
	align-items: center;
}

.dropdown-link p {
	color: var(--btn-bg-color);
}

.dropdown-link-plus {
	font-size: 1.2em;
	line-height: 1;
}

.right-container {
	display: flex;
	align-items: center;
	column-gap: 1rem;
}



.right-container img {
	border-radius: 50%;
}



.mobile-menu-header,
.mobile-nav-footer {
	display: none;
}

.hamburger-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease;
}

.hamburger-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.hamburger-box {
	display: block;
	width: 20px;
	height: 14px;
	position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
	display: block;
	position: absolute;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background-color: var(--card);
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger-inner {
	top: 50%;
	margin-top: -1px;
}

.hamburger-inner::before,
.hamburger-inner::after {
	content: "";
}

.hamburger-inner::before {
	top: -6px;
}

.hamburger-inner::after {
	top: 6px;
}

.hamburger-btn.is-active .hamburger-inner {
	background-color: transparent;
}

.hamburger-btn.is-active .hamburger-inner::before {
	top: 0;
	transform: rotate(45deg);
}

.hamburger-btn.is-active .hamburger-inner::after {
	top: 0;
	transform: rotate(-45deg);
}

.mobile-nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 999;
}

.mobile-nav-backdrop.show {
	opacity: 1;
	visibility: visible;
}

body.mobile-nav-open {
	overflow: hidden;
}

@media (max-width: 1280px) {
	.mobile-nav-backdrop {
		top: 56px;
	}

	body {
		padding-top: 56px;
	}

	.hamburger-btn {
		display: flex;
		flex-shrink: 0;
		margin-left: 0.5rem;
	}

	#nav-menu {
		border-bottom: none;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
		z-index: 1002;
	}

	.container-navbar {
		height: 56px;
		padding: 0 1rem;
		column-gap: 0.75rem;
	}

	.logo {
		margin-right: 0;
	}

	.logo img {
		height: 32px;
	}

	.nav-end {
		gap: 0.25rem;
		margin-left: auto;
	}

	.nav-search-wrap {
		margin-right: 0;
	}

	.nav-search-form {
		margin-right: 0;
	}

	.nav-search-form input {
		min-width: 0;
		width: clamp(100px, 28vw, 180px);
		padding: 7px 12px;
		font-size: 13px;
		border: none;
		background: rgba(255, 255, 255, 0.15);
		color: #fff;
	}

	.nav-search-form input::placeholder {
		color: rgba(255, 255, 255, 0.65);
	}

	.nav-search-form input:focus {
		background: rgba(255, 255, 255, 0.22);
		border-color: transparent;
		box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
	}

	.nav-search-autocomplete {
		left: auto;
		right: 0;
		min-width: 260px;
	}

	.menu {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 56px;
		right: 0;
		width: min(340px, 88vw);
		height: calc(100vh - 56px);
		height: calc(100dvh - 56px);
		background: var(--card);
		transform: translateX(105%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1001;
		overflow: hidden;
		box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
	}

	.menu.show {
		transform: translateX(0);
	}

	.mobile-menu-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 1rem 1.25rem;
		background: linear-gradient(135deg, var(--navbar-bg-color) 0%, #0284c7 100%);
		color: #fff;
		flex-shrink: 0;
	}

	.mobile-menu-title {
		font-size: 1.1rem;
		font-weight: 600;
		letter-spacing: -0.02em;
	}

	.mobile-menu-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 0;
		background: rgba(255, 255, 255, 0.15);
		color: #fff;
		font-size: 1.4rem;
		transition: background 0.2s ease;
	}

	.mobile-menu-close:hover {
		background: rgba(255, 255, 255, 0.25);
	}

	.menu-bar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		flex: 1;
		overflow-y: auto;
		padding: 0.75rem 1rem;
		row-gap: 0.5rem;
		-webkit-overflow-scrolling: touch;
	}

	.menu-bar > li {
		border-radius: 0;
		overflow: visible;
	}

	.menu-bar > li:not(.mobile-nav-footer) {
		background: none;
		border: none;
	}

	.menu-bar .nav-link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 10px;
		margin: 0;
		font-family: var(--primary-font);
		font-weight: 500;
		font-size: 16px;
		color: #fbfdfe;
		background-color: var(--btn-bg-color);
		border: none;
		border-radius: 0.375rem;
		transition: background-color 0.2s ease;
		text-align: center;
	}

	.menu-bar .nav-link:hover {
		background-color: var(--btn-hover-bg-color);
		color: #fbfdfe;
	}

	.menu-bar .dropdown-btn {
		justify-content: space-between;
	}

	.menu-bar .dropdown-btn[aria-expanded="true"] {
		background-color: var(--btn-hover-bg-color);
	}

	.menu-bar .dropdown-btn .bx-chevron-down {
		font-size: 1.25rem;
		color: rgba(255, 255, 255, 0.85);
		transition: transform 0.25s ease;
	}

	.menu-bar .dropdown-btn[aria-expanded="true"] .bx-chevron-down {
		transform: rotate(180deg);
		color: #fff;
	}

	.dropdown {
		display: grid;
		grid-template-rows: 0fr;
		min-width: 100%;
		border: none !important;
		background-color: transparent;
		border-radius: 0;
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		box-shadow: none;
		transition: grid-template-rows 0.28s ease;
		overflow: hidden;
		margin-top: 0.35rem;
	}

	.dropdown > ul {
		overflow: hidden;
		min-height: 0;
	}

	.dropdown.active {
		grid-template-rows: 1fr;
		border-top: none !important;
	}

	.dropdown ul {
		padding: 0;
		gap: 0.35rem;
	}

	.dropdown ul li:not(:last-child) {
		border-bottom: none;
	}

	.dropdown-link {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		color: var(--primary-text-color);
		background-color: var(--border-color);
		padding: 8px 12px;
		border-radius: 6px;
		font-family: var(--primary-font);
		font-size: 14px;
		font-weight: 500;
		transition: background-color 0.2s ease;
	}

	.dropdown-link:hover {
		background-color: #d1d5db;
		color: var(--primary-text-color);
	}

	.dropdown-link .notify-bubble {
		margin-left: auto;
		background: #ef4444;
		font-weight: 600;
		font-size: 11px;
		min-width: 22px;
		height: 22px;
	}

	.menu-bar > li:not(:last-child):not(.mobile-nav-footer) {
		padding-bottom: 0;
		border-bottom: none;
	}

	.mobile-nav-footer {
		display: none;
		margin-top: auto;
		padding: 0.5rem 0 0 !important;
		background: none;
		border: none;
		border-radius: 0;
	}

	.mobile-nav-user {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		margin-bottom: 0.75rem;
		padding: 0 0.25rem;
	}

	.mobile-nav-avatar {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: var(--btn-bg-color);
		color: #fff;
		font-weight: 600;
		font-size: 1rem;
		flex-shrink: 0;
	}

	.mobile-nav-username {
		font-weight: 600;
		color: var(--primary-text-color);
		font-size: 0.95rem;
		word-break: break-word;
		text-align: left;
	}

	.mobile-nav-logout {
		display: block;
		width: 100%;
		padding: 10px;
		border-radius: 0.375rem;
		background-color: var(--btn-bg-color);
		border: none;
		color: #fbfdfe;
		font-family: var(--primary-font);
		font-weight: 500;
		font-size: 16px;
		text-align: center;
		transition: background-color 0.2s ease;
	}

	.mobile-nav-logout:hover {
		background-color: var(--btn-hover-bg-color);
		color: #fbfdfe;
	}
}

@media (max-width: 600px) {
	.right-container {
		display: none;
	}

	.mobile-nav-footer {
		display: block;
	}

	.nav-search-form input {
		width: clamp(88px, 24vw, 140px);
		padding: 7px 10px;
	}
}

/* ------------------- */
/* Duplicate Handling */
/* ------------------- */
.duplicate-handling-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	align-items: start;
	justify-content: center;
}


.duplicate-handling-container p {
	color: var(--primary-text-color);
	margin-bottom: 20px;
	font-size: 1rem;
	line-height: 1.6;
	grid-column: 1 / -1;
	/* Make description paragraph span full width */
}

.duplicate-box {
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 0;
	/* Remove bottom margin since we're using grid gap */
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: all 0.2s ease-in-out;
	height: fit-content;
	text-align: left;
}

.duplicate-box:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
}

.not-duplicate-btn {
	background-color: #059669;
	color: var(--primary-foreground);
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	font-family: var(--primary-font);
}

.not-duplicate-btn:hover {
	background-color: #047857;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.not-duplicate-btn:active {
	transform: translateY(0);
}

.duplicate-info {
	margin-bottom: 20px;
}

.duplicate-info p {
	margin: 8px 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.duplicate-info strong {
	color: var(--primary-text-color);
	font-weight: 600;
	min-width: 100px;
	display: inline-block;
}

.duplicate-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	/* Add gap between buttons */
}

.delete-duplicate-btn {
	background-color: #dc2626;
	color: var(--primary-foreground);
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	font-family: var(--primary-font);
}

.delete-duplicate-btn:hover {
	background-color: #b91c1c;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.delete-duplicate-btn:active {
	transform: translateY(0);
}


@media (max-width: 768px) {
	.duplicate-handling-container {
		padding: 15px;
	}

	.duplicate-box {
		padding: 16px;
	}

	.duplicate-info strong {
		min-width: 80px;
	}
}

@media (min-width: 1400px) {
	.duplicate-handling-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ------------------- */
/* Clubs Overview Filter Form */
/* ------------------- */
.clubs-overview-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 20px;
	padding: 10px 14px;
	background: var(--card);
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.clubs-overview-filter-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #475569;
	white-space: nowrap;
}

.clubs-overview-filter-input {
	width: 3.75rem;
	padding: 6px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: var(--primary-font);
	color: var(--foreground);
	text-align: center;
	background: #f8fafc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.clubs-overview-filter-input:focus {
	outline: none;
	border-color: var(--btn-bg-color);
	background: var(--card);
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.clubs-overview-filter-btn {
	padding: 6px 14px;
	border: none;
	border-radius: 8px;
	background: var(--btn-bg-color);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: var(--primary-font);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.clubs-overview-filter-btn:hover {
	background: var(--btn-hover-bg-color);
}

/* Clubs overview */
.clubs-overview-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 20px;
}

.clubs-overview-list {
	display: grid;
	grid-template-columns: repeat(6, 11rem);
	gap: 4px;
	margin: 0 auto;
	width: fit-content;
	max-width: 100%;
}

.clubs-overview-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: 8px 10px;
	font-size: 15px;
	line-height: 1.25;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	background: var(--card);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.clubs-overview-item:hover {
	background-color: color-mix(in oklab, var(--primary) 8%, var(--card));
	box-shadow: inset 3px 0 0 var(--primary);
}

.clubs-overview-item-static {
	cursor: default;
}

.clubs-overview-item-static:hover {
	background-color: var(--card);
	box-shadow: none;
}

.clubs-overview-name {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.clubs-overview-teams {
	font-size: 13px;
	color: var(--muted-foreground);
}

.clubs-overview-suspensions {
	font-size: 13px;
	font-weight: 600;
	color: #b45309;
}

.clubs-overview-empty {
	padding: 24px;
	text-align: center;
	color: #666;
}

@media (max-width: 1100px) {
	.clubs-overview-list {
		grid-template-columns: repeat(3, 11rem);
	}
}

@media (max-width: 768px) {
	.clubs-overview-filter {
		margin: 0 15px 16px;
	}

	.clubs-overview-list {
		grid-template-columns: repeat(2, 11rem);
	}

	.clubs-overview-section {
		padding: 0 15px;
	}
}

@media (max-width: 400px) {
	.clubs-overview-list {
		grid-template-columns: 11rem;
	}
}

/* ------------------- */
/* Match Info */
/* ------------------- */
.match-info-box {
	border: 2px solid #ddd;
	border-radius: 10px;
	padding: 20px;
	margin: 20px auto;
	max-width: 800px;
	background-color: #f9f9f9;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.match-info-header {
	text-align: center;
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 20px;
	color: #333;
	border-bottom: 2px solid #ddd;
	padding-bottom: 10px;
}

.teams-container {
	display: flex;
	gap: 20px;
}

.team-column {
	flex: 1;
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background-color: var(--card);
}

.team-header {
	font-weight: bold;
	font-size: 1.1em;
	margin-bottom: 15px;
	text-align: center;
	padding: 10px;
	border-radius: 5px;
}

.home-team .team-header {
	background-color: #e3f2fd;
	color: #1976d2;
}

.away-team .team-header {
	background-color: #fff3e0;
	color: #f57c00;
}

.team-info {
	line-height: 1.6;
}

.team-info p {
	margin: 8px 0;
}

.team-info-box {
	border: 2px solid #ddd;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 20px auto;
	max-width: 380px;
	width: fit-content;
	background-color: #f9f9f9;
	text-align: left;
}

.team-info-header-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.team-club-logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	flex-shrink: 0;
}

.team-info-details {
	text-align: left;
}

.team-info-details p {
	margin: 4px 0;
	font-size: 14px;
}

.team-nation {
	display: flex;
	align-items: center;
	gap: 8px;
}

.team-nation-flag {
	width: auto;
	height: 16px;
	min-width: 24px;
	object-fit: contain;
	border: 1px solid #ddd;
	flex-shrink: 0;
}

.team-suspensions-section {
	margin-top: 30px;
}

.team-suspensions-section h2 {
	margin-bottom: 16px;
}

.team-suspensions-section a {
	color: inherit;
	text-decoration: none;
}

.team-suspensions-section a:hover {
	text-decoration: underline;
}

.score-display {
	font-size: 2em;
	font-weight: bold;
	text-align: center;
	margin: 15px 0;
}

.home-team .score-display {
	color: #1976d2;
}

.away-team .score-display {
	color: #f57c00;
}

.status-check {
	color: green;
}

.status-live {
	color: red;
}

.lineup-link {
	text-decoration: none;
	color: inherit;
}

.team-page-link {
	text-decoration: none;
	color: inherit;
}

.team-page-link:hover {
	text-decoration: underline;
}

.penalties-container {
	margin-top: 8px;
}

.penalty-card {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 10px;
	background: #fafbfd;
}

.shirt-number {
	font-weight: bold;
}

.player-name {
	margin-left: 0.5em;
}

.penalty-type-label {
	color: #888;
}

.comment-box {
	margin: 10px 0;
	padding: 8px 12px;
	border-radius: 5px;
}

.home-team .comment-box {
	background: #e3f2fd;
	border-left: 4px solid #1976d2;
}

.away-team .comment-box {
	background: #fff3e0;
	border-left: 4px solid #f57c00;
}

.comment-label {
	font-weight: bold;
}

.home-team .comment-label {
	color: #1976d2;
}

.away-team .comment-label {
	color: #f57c00;
}

.comment-text {
	margin-left: 0.5em;
}

.jury-info-box {
	padding: 10px 12px;
}

.jury-info-line {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 13px;
}

.jury-info-separator {
	border-top: 1px solid rgba(148, 163, 184, 0.4);
	margin: 6px 0;
}

.decision-documents-line .comment-text {
	flex: 1;
	min-width: 0;
}

.decision-documents-entries {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.decision-document-entry {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.decision-document-entry .decision-document-link {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

#modalDecisionDocumentList,
#modalAdditionalDocumentsList {
	margin-top: 8px;
	margin-bottom: 12px;
	background: #f8fafc;
	border-left: 4px solid #94a3b8;
}

#modalDecisionDocumentList .additional-docs-empty,
#modalAdditionalDocumentsList .additional-docs-empty {
	margin-left: 0;
	color: var(--muted-foreground);
}

.btn-remove-decision-doc {
	flex-shrink: 0;
	margin-right: 0;
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: var(--card);
	color: #b91c1c;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-remove-decision-doc:hover {
	background: #b91c1c;
	color: #fff;
	border-color: #b91c1c;
}

.btn-remove-decision-doc:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pdf-link {
	text-decoration: none;
	color: inherit;
}

.pdf-icon {
	color: #c00;
	margin-right: 4px;
}

.jury-decision-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-top: 10px;
}

.jury-decision-link-wrapper {
	margin-top: 0;
}

.jury-decision-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background-color: #fef3c7;
	color: #92400e;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid #fed7aa;
}

.jury-decision-link:hover {
	background-color: #ffedd5;
}

.jury-decisions-summary {
	margin-top: 24px;
	padding: 16px 18px;
	border-radius: 8px;
	background-color: var(--card);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
}

.jury-decisions-summary h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	margin-bottom: 6px;
}

.jury-decisions-subtitle {
	margin-top: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--primary-text-color);
}

.jury-decisions-empty {
	font-size: 14px;
	color: var(--muted-foreground);
	margin: 8px 0 0 0;
}

.jury-decision-row {
	padding: 10px 0;
	border-top: 1px solid var(--border-color);
}

.jury-decision-row:first-child {
	border-top: none;
}

.jury-decision-main {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--primary-text-color);
}

.jury-decision-player {
}

.jury-decision-team {
	color: var(--muted-foreground);
}

.jury-decision-meta {
	margin-top: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: #4b5563;
}

.jury-decision-length {
	font-weight: 500;
}

.jury-decision-status {
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.jury-decision-status.waiting {
	background-color: #fef3c7;
	color: #92400e;
}

.jury-decision-status.decision_made {
	background-color: #e0f2fe;
	color: #075985;
}

.jury-decision-pdf-link {
	text-decoration: none;
	color: #1d4ed8;
	font-weight: 500;
}

.jury-decision-pdf-link:hover {
	text-decoration: underline;
}

.jury-decision-notes {
	margin-top: 4px;
	font-size: 13px;
	color: #4b5563;
}

.jury-modal-hint {
	margin: 0 0 10px 0;
	font-size: 13px;
	color: var(--muted-foreground);
	font-weight: normal;
}

.additional-docs-list {
	list-style: none;
	margin: 0 0 12px 0;
	padding: 0;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	overflow: hidden;
}

.additional-docs-list li {
	border-bottom: 1px solid #eee;
}

.additional-docs-list li:last-child {
	border-bottom: none;
}

.additional-doc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.additional-docs-list .additional-doc-link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--btn-bg-color);
	text-decoration: none;
	font-size: 14px;
	min-width: 0;
}

.additional-docs-list .additional-doc-link:hover {
	background: rgba(0, 77, 153, 0.06);
}

.btn-remove-additional-doc {
	flex-shrink: 0;
	margin-right: 0;
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: var(--card);
	color: #b91c1c;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-remove-additional-doc:hover {
	background: #b91c1c;
	color: #fff;
	border-color: #b91c1c;
}

.btn-remove-additional-doc:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.additional-docs-empty {
	padding: 10px 12px;
	color: var(--muted-foreground);
	font-size: 13px;
}

.additional-docs-upload {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.additional-doc-file-input-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#modalAdditionalDocsUpload .btn-additional-doc {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.additional-docs-upload .form-input {
	flex: 1;
	min-width: 160px;
}

.btn-additional-doc {
	margin-top: 0;
	white-space: nowrap;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	font-family: var(--primary-font);
	background-color: var(--btn-bg-color);
	color: var(--primary-foreground);
	transition: background-color 0.2s ease;
}

.btn-additional-doc:hover {
	background-color: var(--btn-hover-bg-color);
}

.btn-additional-doc:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.additional-docs-inline {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
	width: 100%;
}

.jury-additional-doc-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

@media (max-width: 768px) {
	.teams-container {
		flex-direction: column;
	}
}

/* ------------------- */
/* Jury Decision Modal */
/* ------------------- */
.jury-decision-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: var(--btn-bg-color);
	color: var(--primary-foreground);
	border: none;
	padding: 8px 14px;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--primary-font);
	font-size: 13px;
	font-weight: 600;
	margin-top: 0;
	transition: background-color 0.2s ease;
}

.jury-decision-btn:hover {
	background-color: var(--btn-hover-bg-color);
}

.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.navigation-loading-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(15, 23, 42, 0.45);
}

.navigation-loading-modal.is-visible {
	display: flex;
}

.navigation-loading-content {
	min-width: 240px;
	max-width: 320px;
	padding: 28px 32px;
	text-align: center;
	background: var(--card);
	border-radius: 14px;
	box-shadow: rgba(15, 23, 42, 0.18) 0px 20px 40px 0px;
}

.navigation-loading-spinner {
	width: 42px;
	height: 42px;
	margin: 0 auto 16px;
	border: 3px solid var(--border-color);
	border-top-color: var(--btn-bg-color);
	border-radius: 50%;
	animation: navigation-loading-spin 0.8s linear infinite;
}

.navigation-loading-message {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
}

body.navigation-loading-active {
	overflow: hidden;
}

@keyframes navigation-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 0;
	border: 1px solid #888;
	border-radius: 12px;
	width: 90%;
	max-width: 1000px;
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-color);
	background-color: var(--card);
	border-radius: 12px 12px 0 0;
}

.modal-header h2 {
	margin: 0;
	color: var(--primary-text-color);
	font-size: 1.5rem;
	font-weight: 600;
}

.modal-close {
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
	color: #000;
}

#juryDecisionForm {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.modal-sections-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.modal-section {
	padding: 24px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
}

.modal-section:first-child {
	border-right: 1px solid var(--border-color);
	border-bottom: none;
}

.modal-section:last-of-type {
	border-bottom: none;
}

.modal-section:last-of-type .modal-footer {
	margin-top: auto;
}

.modal-section h3 {
	margin: 0 0 20px 0;
	color: var(--primary-text-color);
	font-size: 1.2rem;
	font-weight: 600;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--primary-text-color);
	font-weight: 500;
	font-size: 14px;
}

.form-display {
	padding: 10px 12px;
	background-color: #f9fafb;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--primary-text-color);
	font-size: 14px;
	min-height: 20px;
}

.form-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: var(--primary-font);
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--btn-bg-color);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-input[type="file"] {
	padding: 8px;
	cursor: pointer;
}

.form-input textarea {
	resize: vertical;
	min-height: 80px;
}

.document-preview {
	margin-top: 8px;
	padding: 8px 12px;
	background-color: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 6px;
}

.document-preview a {
	color: var(--btn-bg-color);
	text-decoration: none;
	font-weight: 500;
}

.document-preview a:hover {
	text-decoration: underline;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 12px 24px 24px;
	margin-top: 0;
	flex-shrink: 0;
	border-top: 1px solid var(--border-color);
}

.modal-footer-save-only {
	justify-content: stretch;
}

.modal-footer-save-only .btn-submit {
	width: 100%;
}

.btn-delete-decision {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #b91c1c;
	background-color: var(--card);
	color: #b91c1c;
	font-family: var(--primary-font);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-delete-decision:hover {
	background-color: #b91c1c;
	color: #fff;
}

.btn-delete-decision:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-cancel,
.btn-submit {
	padding: 8px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	font-family: var(--primary-font);
	transition: all 0.2s ease;
	line-height: 1.4;
}

.btn-cancel {
	background-color: var(--border-color);
	color: var(--primary-text-color);
}

.btn-cancel:hover {
	background-color: #d1d5db;
}

.btn-submit {
	background-color: var(--btn-bg-color);
	color: var(--primary-foreground);
}

.btn-submit:hover {
	background-color: var(--btn-hover-bg-color);
}

.btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.modal-content {
		width: 95%;
		margin: 10% auto;
		max-width: 95%;
	}

	.modal-sections-container {
		grid-template-columns: 1fr;
	}

	.modal-section {
		padding: 16px;
	}

	.modal-section:first-child {
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}

	.modal-header {
	padding: 16px 20px 10px 20px;
	}

	.modal-footer {
		flex-direction: column;
	}

	.btn-cancel,
	.btn-submit {
		width: 100%;
	}

.jury-modal-subtitle {
	font-size: 13px;
	color: var(--muted-foreground);
	margin-top: 4px;
	margin-right: 32px;
}
}

/* Jury decision modal (suspensions) — aligned with jury case detail */
.jury-decision-modal {
	position: relative;
	max-width: 520px;
	width: 92%;
	margin: 4% auto;
	padding: 1rem 1.15rem 1.25rem;
	overflow-y: auto;
}

.jury-decision-modal-close {
	position: absolute;
	top: 0.65rem;
	right: 0.85rem;
	z-index: 1;
}

.jury-decision-modal #juryDecisionForm {
	overflow: visible;
	min-height: auto;
}

.jury-decision-modal-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-bottom: 0.75rem;
	padding-right: 2rem;
}

.jury-decision-modal-header .jury-case-detail-title {
	grid-column: 2;
	justify-self: center;
	text-align: center;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--foreground);
	line-height: 1.35;
}

.jury-decision-modal-header .jury-suspension-type-badge {
	grid-column: 3;
	justify-self: end;
}

.jury-suspension-type-badge {
	display: inline-block;
	flex-shrink: 0;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

.jury-decision-modal-body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jury-decision-modal .modern-form-section-title {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--foreground);
	margin: 0 0 0.65rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--border-color);
}

.jury-decision-modal .modern-form-field label {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--foreground);
}

.jury-decision-modal .modern-form-value {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	color: #374151;
}

.jury-decision-modal-docs {
	margin-bottom: 0.35rem;
}

.jury-decision-docs-empty {
	color: #9ca3af !important;
	font-size: 0.8125rem !important;
	font-style: italic;
}

.jury-decision-modal .decision-document-entry {
	padding: 0.35rem 0;
}

.jury-decision-modal .decision-document-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--btn-bg-color);
	font-weight: 500;
	font-size: 0.875rem;
	text-decoration: none;
}

.jury-decision-modal .decision-document-link:hover {
	text-decoration: underline;
}

.jury-decision-modal .decision-document-link .pdf-icon {
	font-size: 0.875rem;
}

.jury-decision-modal-file-input.form-control {
	padding: 0.35rem 0.5rem;
	font-size: 0.8125rem;
}

.jury-decision-modal .modern-form-hint {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	margin-top: 0.25rem;
}

.jury-decision-modal .btn-container {
	gap: 0.5rem;
}

@media (max-width: 768px) {
	.jury-decision-modal {
		width: 95%;
		margin: 6% auto;
		padding: 0.85rem 1rem 1rem;
	}
}

/* ------------------- */
/* No Permission Page */
/* ------------------- */
.no-permission-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 20px 20px 20px;
}

.no-permission-box {
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
	padding: 48px 40px;
	max-width: 600px;
	width: 100%;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	text-align: center;
}

.no-permission-icon {
	font-size: 64px;
	color: #dc2626;
	margin-bottom: 24px;
}

.no-permission-box h1 {
	color: var(--primary-text-color);
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 16px;
}

.no-permission-message {
	color: var(--primary-text-color);
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

.no-permission-message strong {
	color: var(--btn-bg-color);
	font-weight: 600;
}

.no-permission-help {
	color: var(--muted-foreground);
	font-size: 0.95rem;
	margin-bottom: 32px;
}

.no-permission-box .btn-container {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.no-permission-box .btn {
	background-color: var(--btn-bg-color);
	color: var(--primary-foreground);
	padding: 12px 32px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	display: inline-block;
}

.no-permission-box .btn:hover {
	background-color: var(--btn-hover-bg-color);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

.no-permission-box .btn:active {
	transform: translateY(0);
}

@media (max-width: 768px) {
	.no-permission-box {
		padding: 32px 24px;
	}

	.no-permission-icon {
		font-size: 48px;
		margin-bottom: 20px;
	}

	.no-permission-box h1 {
		font-size: 1.5rem;
	}

	.no-permission-message {
		font-size: 1rem;
	}
}

/* ------------------- */
/* Jury Dashboard */
/* ------------------- */
.match-info-layout {
	margin-bottom: 24px;
}

.match-info-header .match-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	margin-left: 8px;
}

.match-status-live {
	background-color: #fee2e2;
	color: #b91c1c;
}

.match-status-finished {
	background-color: #e0f2fe;
	color: #075985;
}

.match-report-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-weight: 500;
	text-decoration: none;
	color: #e5f3ff; /* light text for dark header background */
	padding: 4px 10px;
	border-radius: 999px;
	background-color: rgba(15, 23, 42, 0.18);
}

.match-report-link i {
	color: #facc15; /* warm accent that pops on blue */
}

.match-report-link:hover {
	background-color: rgba(15, 23, 42, 0.28);
	text-decoration: underline;
}

.jury-summary-panel {
	background: var(--card);
	border-radius: 8px;
	border: 1px solid var(--border-color);
	padding: 16px 18px;
	box-shadow: var(--shadow);
}

.jury-summary-panel h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	margin-bottom: 8px;
}

.jury-summary-text {
	font-size: 14px;
	color: #4b5563;
	margin-bottom: 12px;
}

.jury-legend {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #4b5563;
}

.jury-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.jury-status-row {
	margin-bottom: 6px;
}

.jury-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 999px;
	font-weight: 500;
}

.jury-status-waiting {
	background-color: #fef3c7;
	color: #92400e;
}

.jury-status-decision_made {
	background-color: #e0f2fe;
	color: #075985;
}

.jury-status-badge i {
	font-size: 11px;
}

.penalties-container .penalty-card {
	margin-top: 6px;
}

.table-controls {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 20px;
	gap: 20px;
	flex-wrap: wrap;
}

.search-box {
	width: 25%;
	min-width: 200px;
}

.search-box input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: var(--primary-font);
}

.search-box input:focus {
	outline: none;
	border-color: var(--btn-bg-color);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.pagination button {
	padding: 8px 12px;
	border: 1px solid #ddd;
	background: var(--card);
	border-radius: 4px;
	cursor: pointer;
	font-family: var(--primary-font);
	font-size: 14px;
}

.pagination button:hover:not(:disabled) {
	background-color: var(--btn-bg-color);
	color: var(--primary-foreground);
	border-color: var(--btn-bg-color);
}

.pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination .page-info {
	padding: 8px 12px;
	font-size: 14px;
	color: var(--primary-text-color);
}

.table-container {
	overflow-x: auto;
}

.jury-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.jury-table th,
.jury-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jury-table th {
	background-color: #f2f2f2;
	font-weight: 600;
	position: relative;
}

.resize-handle {
	position: absolute;
	top: 0;
	right: 0;
	width: 8px;
	height: 100%;
	cursor: col-resize;
	user-select: none;
	touch-action: none;
	background-color: transparent;
	z-index: 1;
}

.resize-handle:hover {
	background-color: var(--btn-bg-color);
	opacity: 0.5;
}

.resizing {
	cursor: col-resize;
	user-select: none;
}

.resizing * {
	cursor: col-resize !important;
}

.jury-table tbody tr.jury-clickable-row {
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.jury-table tbody tr.jury-clickable-row:hover {
	background-color: #dbeafe;
	box-shadow: inset 3px 0 0 var(--btn-bg-color);
}

.jury-table tbody tr.jury-clickable-row:active {
	background-color: #bfdbfe;
}

.jury-table tbody tr.jury-clickable-row--urgent {
	background-color: #fef2f2;
}

.jury-table tbody tr.jury-clickable-row--urgent:hover {
	background-color: #fee2e2;
	box-shadow: inset 3px 0 0 #dc2626;
}

.jury-table tbody tr.jury-clickable-row--urgent:active {
	background-color: #fecaca;
}

.no-results {
	text-align: center;
	padding: 40px;
	color: #666;
}

.pagination button.active {
	background-color: var(--btn-bg-color);
	color: var(--primary-foreground);
	border-color: var(--btn-bg-color);
}

.pagination-ellipsis {
	padding: 8px 4px;
	color: var(--primary-text-color);
	font-weight: 600;
}

.jury-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.jury-dashboard-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 200px));
	gap: 16px;
	margin-top: 24px;
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	align-items: stretch;
}

.jury-dashboard-columns--3 {
	grid-template-columns: repeat(3, minmax(0, 200px));
}

.jury-dashboard-page {
  text-align: center;
}

.jury-dashboard-case-search {
  margin: 1rem auto 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.jury-case-lookup-wrap.nav-search-wrap {
  margin-right: 0;
  width: 100%;
  max-width: 320px;
}

.jury-case-lookup-wrap .nav-search-form {
  margin-right: 0;
  width: 100%;
}

.jury-case-lookup-wrap .nav-search-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.jury-case-lookup-wrap .nav-search-form button {
  color: var(--muted-foreground);
}

.jury-case-lookup-wrap .nav-search-form button:hover {
  color: var(--btn-bg-color);
}

.jury-case-lookup-wrap .nav-search-form .nav-search-spinner {
  border-color: rgba(2, 132, 199, 0.2);
  border-top-color: var(--btn-bg-color);
}

.jury-dashboard-page .jury-back-link {
  display: inline-flex;
}

.jury-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
	padding: 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	height: 100%;
}

.jury-card-compact {
	padding: 14px 16px;
	min-height: 148px;
}

.jury-card:hover {
	transform: translateY(-2px);
	box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 28px 0px,
		rgba(0, 0, 0, 0.05) 0px 4px 12px 0px;
}

.jury-card-label {
	font-size: 0.95rem;
	color: var(--primary-text-color);
	font-weight: 600;
}

.jury-card-stats {
	margin: 10px 0 8px;
	flex: 1;
	min-height: 3.75rem;
}

.jury-card-stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 0.8125rem;
	color: var(--primary-text-color);
}

.jury-card-stat dt {
	font-weight: 500;
}

.jury-card-stat dd {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--btn-bg-color);
}

.jury-card-stat--urgent dt {
	color: #b91c1c;
}

.jury-card-stat--urgent dd {
	color: #dc2626;
}

.jury-card-count {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 12px 0;
	color: var(--btn-bg-color);
}

.jury-card-link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--btn-bg-color);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
}

.jury-dashboard-section-title {
	margin: 2rem 0 1rem;
	font-size: 1.25rem;
}

.protests-overview-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.protests-overview-header h1 {
	margin: 0;
}

.jury-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--btn-bg-color);
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 16px;
}

.jury-back-link:hover {
	text-decoration: underline;
}

/* ------------------- */
/* Match Info – modern overrides */
/* ------------------- */
.match-page-header {
	max-width: 1000px;
	margin: 0 auto 8px auto;
	text-align: left;
}

.match-page-title {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--foreground);
	margin-bottom: 4px;
}

.match-page-description {
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.match-info-box {
	border-radius: 14px;
	margin: 16px auto 24px auto;
	max-width: 1000px;
	background-color: var(--card);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.match-info-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	font-size: 15px;
	font-weight: 500;
	color: #ffffff;
	padding: 14px 20px;
	background: linear-gradient(
		90deg,
		var(--navbar-bg-color),
		var(--btn-bg-color)
	);
}

.match-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.teams-container {
	display: flex;
	gap: 20px;
	padding: 18px 20px 20px 20px;
	background-color: var(--primary-bg-color);
	border-top: 1px solid rgba(148, 163, 184, 0.35);
}

@media (max-width: 900px) {
	.teams-container {
		flex-direction: column;
	}
}

.team-column {
	flex: 1;
	padding: 16px 16px 14px 16px;
	border: 1px solid var(--border-color);
	border-radius: 10px;
	background-color: var(--card);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.team-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 15px;
	color: var(--foreground);
	margin-bottom: 6px;
}

.next-game-card {
	margin: 12px 0 14px;
	padding: 12px 14px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: linear-gradient(135deg, #f8fbff, #eff6ff);
	text-align: left;
}

.next-game-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0369a1;
	margin-bottom: 4px;
}

.next-game-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--foreground);
}

.next-game-opponent {
	font-size: 14px;
	color: #334155;
	margin-top: 2px;
}

.next-game-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	margin-top: 6px;
}

.next-game-empty {
	font-size: 14px;
	color: var(--muted-foreground);
}

.next-game-entry--follow {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #dbeafe;
}

/* ------------------- */
/* Homepage statistics */
/* ------------------- */
.stats-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 48px;
	text-align: left;
}

.stats-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 32px;
	margin-bottom: 28px;
	padding: 28px 0 24px;
	border-bottom: 1px solid var(--border-color);
}

.stats-hero-eyebrow {
	margin: 0 0 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--btn-bg-color);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.stats-hero h1 {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--foreground);
	letter-spacing: -0.03em;
}

.stats-hero-subtitle {
	margin: 0;
	max-width: 520px;
	font-size: 1rem;
	color: var(--muted-foreground);
}

.stats-hero-total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f0f9ff, #fff);
	border: 1px solid #bae6fd;
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.stats-hero-total-value {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--btn-bg-color);
	line-height: 1;
	letter-spacing: -0.04em;
}

.stats-hero-total-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--muted-foreground);
}

.stats-section {
	margin-bottom: 28px;
}

.stats-section-title {
	margin: 0 0 14px;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
	letter-spacing: -0.02em;
}

.stats-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.stats-kpi-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.stats-kpi-card--highlight {
	border-color: #bae6fd;
	background: linear-gradient(135deg, #f0f9ff, #fff);
}

.stats-kpi-card--urgent {
	border-color: #fecaca;
	background: linear-gradient(135deg, #fef2f2, #fff);
}

.stats-kpi-card--alert {
	border-color: #fde68a;
	background: linear-gradient(135deg, #fffbeb, #fff);
}

.stats-kpi-value {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--foreground);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.stats-kpi-card--highlight .stats-kpi-value,
.stats-kpi-card--urgent .stats-kpi-value {
	color: var(--btn-bg-color);
}

.stats-kpi-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--muted-foreground);
}

.stats-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.stats-panel {
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.stats-type-bars {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.stats-type-bar {
	display: grid;
	grid-template-columns: 80px 1fr 32px;
	align-items: center;
	gap: 10px;
	font-size: 0.8125rem;
}

.stats-type-bar-label {
	color: var(--muted-foreground);
	font-weight: 500;
}

.stats-type-bar-track {
	height: 10px;
	background: #f1f5f9;
	border-radius: 999px;
	overflow: hidden;
}

.stats-type-bar-fill {
	height: 100%;
	border-radius: 999px;
	min-width: 2px;
}

.stats-type-bar-fill--grov {
	background: #ef4444;
}

.stats-type-bar-fill--frilage {
	background: #f59e0b;
}

.stats-type-bar-fill--tva-gula {
	background: #eab308;
}

.stats-type-bar-value {
	text-align: right;
	font-weight: 700;
	color: #334155;
}

.stats-mini-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin: 0;
}

.stats-mini-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.8125rem;
}

.stats-mini-item dt {
	margin: 0;
	font-weight: 500;
	color: var(--muted-foreground);
}

.stats-mini-item dd {
	margin: 0;
	font-weight: 700;
	color: #1e293b;
}

.stats-status-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.stats-status-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
}

.stats-status-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.stats-status-item dt {
	margin: 0;
	font-weight: 500;
	color: var(--muted-foreground);
}

.stats-status-item dd {
	margin: 0;
	font-weight: 700;
	color: var(--btn-bg-color);
}

.stats-gender-bar {
	display: flex;
	height: 12px;
	border-radius: 999px;
	overflow: hidden;
	background: #f1f5f9;
	margin-bottom: 16px;
}

.stats-gender-segment {
	height: 100%;
	min-width: 2px;
}

.stats-gender-segment--boys {
	background: #3b82f6;
}

.stats-gender-segment--girls {
	background: #ec4899;
}

.stats-gender-segment--special {
	background: #8b5cf6;
}

.stats-gender-type-list {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.stats-gender-type-item {
	display: grid;
	gap: 6px;
}

.stats-gender-type-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.875rem;
}

.stats-gender-type-label {
	font-weight: 600;
	color: var(--foreground);
}

.stats-gender-type-values {
	color: var(--muted-foreground);
	font-size: 0.8125rem;
}

.stats-gender-bar--compact {
	height: 8px;
	margin-bottom: 0;
}

.stats-highlight-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.stats-highlight-card {
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.stats-highlight-card h3 {
	margin: 0 0 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.stats-highlight-value {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--foreground);
	line-height: 1.3;
	word-break: break-word;
}

.stats-highlight-meta {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: var(--btn-bg-color);
	font-weight: 600;
}

.stats-rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.stats-rank-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1fr 36px;
	align-items: center;
	gap: 10px;
	font-size: 0.8125rem;
}

.stats-rank-name {
	font-weight: 500;
	color: #334155;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stats-rank-bar-track {
	height: 8px;
	background: #f1f5f9;
	border-radius: 999px;
	overflow: hidden;
}

.stats-rank-bar-fill {
	height: 100%;
	background: var(--btn-bg-color);
	border-radius: 999px;
	min-width: 2px;
}

.stats-rank-bar-fill--age {
	background: #6366f1;
}

.stats-rank-count {
	text-align: right;
	font-weight: 700;
	color: #1e293b;
}

.stats-empty {
	margin: 0;
	font-size: 0.875rem;
	color: #94a3b8;
}

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

.stats-chart-card {
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.stats-chart-title {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #334155;
}

.stats-chart-wrap {
	position: relative;
	height: 260px;
}

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

	.stats-hero-total {
		align-items: flex-start;
		width: 100%;
	}

	.stats-mini-grid {
		grid-template-columns: 1fr;
	}

	.stats-charts-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------- */
/* Harbour app shell   */
/* ------------------- */
.app-body {
	text-align: left;
	background: var(--background);
	color: var(--foreground);
}

.app-shell {
	display: flex;
	min-height: 100svh;
	width: 100%;
	background: var(--sidebar);
}

.app-sidebar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	width: var(--sidebar-width);
	min-width: var(--sidebar-width);
	height: 100svh;
	background: var(--sidebar);
	color: var(--sidebar-foreground);
	border-right: 1px solid var(--sidebar-border);
	transition: width 0.2s ease, min-width 0.2s ease, transform 0.2s ease;
}

.sidebar-header,
.sidebar-content,
.sidebar-footer {
	width: var(--sidebar-width);
	min-width: var(--sidebar-width);
}

.sidebar-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	flex: 1;
	color: var(--sidebar-foreground);
	border-radius: var(--radius-md);
	padding: 0.25rem;
}

.sidebar-brand:hover {
	background: var(--sidebar-accent);
	color: var(--sidebar-accent-foreground);
}

.sidebar-brand img {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius-md);
	object-fit: cover;
	flex-shrink: 0;
}

.sidebar-brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.sidebar-brand-kicker {
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.sidebar-brand-name {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.sidebar-year {
	flex-shrink: 0;
	border: 1px solid var(--sidebar-border);
	background: var(--background);
	color: var(--foreground);
	border-radius: var(--radius-md);
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
}

.sidebar-year:hover {
	background: var(--sidebar-accent);
}

.sidebar-content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0.25rem 0 0.75rem;
}

.sidebar-group {
	display: flex;
	flex-direction: column;
	padding: 0.5rem;
}

.sidebar-group-label {
	display: flex;
	align-items: center;
	height: 2rem;
	padding: 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
}

.sidebar-menu {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.sidebar-item {
	position: relative;
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 2rem;
	padding: 0 0.5rem;
	border-radius: var(--radius-md);
	color: var(--sidebar-foreground);
	font-size: 0.875rem;
	line-height: 1.25;
}

.sidebar-link:hover {
	background: var(--sidebar-accent);
	color: var(--sidebar-accent-foreground);
}

.sidebar-link.is-active {
	background: var(--sidebar-accent);
	color: var(--sidebar-accent-foreground);
	font-weight: 500;
}

.sidebar-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 1.5rem;
}

.sidebar-badge {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.nav-icon {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--radius-md);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	flex-shrink: 0;
	font-size: 0.875rem;
}

.nav-icon--primary {
	background: color-mix(in oklab, var(--primary) 10%, transparent);
	border-color: color-mix(in oklab, var(--primary) 20%, transparent);
	color: var(--primary);
}

.nav-icon--sky {
	background: color-mix(in oklab, #0ea5e9 15%, transparent);
	border-color: color-mix(in oklab, #0ea5e9 25%, transparent);
	color: #075985;
}

.nav-icon--amber {
	background: color-mix(in oklab, #f59e0b 15%, transparent);
	border-color: color-mix(in oklab, #f59e0b 25%, transparent);
	color: #92400e;
}

.nav-icon--blue {
	background: color-mix(in oklab, #3b82f6 15%, transparent);
	border-color: color-mix(in oklab, #3b82f6 25%, transparent);
	color: #1d4ed8;
}

.nav-icon--violet {
	background: color-mix(in oklab, #8b5cf6 15%, transparent);
	border-color: color-mix(in oklab, #8b5cf6 25%, transparent);
	color: #6d28d9;
}

.nav-icon--emerald {
	background: color-mix(in oklab, #10b981 15%, transparent);
	border-color: color-mix(in oklab, #10b981 25%, transparent);
	color: #065f46;
}

.sidebar-footer {
	border-top: 1px solid var(--sidebar-border);
	padding: 0.5rem;
}

.sidebar-user {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem;
	border-radius: var(--radius-lg);
}

.sidebar-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-lg);
	background: var(--secondary);
	color: var(--secondary-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
	flex-shrink: 0;
}

.sidebar-user-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	line-height: 1.2;
}

.sidebar-user-name {
	font-size: 0.875rem;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-user-role {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	text-transform: capitalize;
}

.sidebar-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-md);
	color: var(--sidebar-foreground);
	font-size: 1.1rem;
}

.sidebar-logout:hover {
	background: var(--sidebar-accent);
	color: var(--sidebar-accent-foreground);
}

.sidebar-backdrop {
	position: fixed;
	inset: 0;
	z-index: 35;
	background: oklch(0.18 0.02 250 / 0.45);
	backdrop-filter: blur(4px);
}

.app-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	background: var(--background);
	text-align: left;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: var(--header-height);
	padding: 0 1rem;
	border-bottom: 1px solid var(--border-color);
	background: var(--background);
}

@media (min-width: 1024px) {
	.site-header {
		padding: 0 1.5rem;
	}

	html[data-sidebar="closed"] .app-sidebar,
	html[data-sidebar="closed"] .sidebar-header,
	html[data-sidebar="closed"] .sidebar-content,
	html[data-sidebar="closed"] .sidebar-footer {
		width: var(--sidebar-width-icon);
		min-width: var(--sidebar-width-icon);
	}

	html[data-sidebar="closed"] .sidebar-content {
		overflow-x: hidden;
		scrollbar-width: none;
	}

	html[data-sidebar="closed"] .sidebar-content::-webkit-scrollbar {
		display: none;
	}

	html[data-sidebar="closed"] .sidebar-header {
		justify-content: center;
		padding: 0.5rem;
	}

	html[data-sidebar="closed"] .sidebar-brand {
		flex: none;
		justify-content: center;
		padding: 0;
	}

	html[data-sidebar="closed"] .sidebar-brand img {
		width: 2rem;
		height: 2rem;
	}

	html[data-sidebar="closed"] .sidebar-brand-text,
	html[data-sidebar="closed"] .sidebar-year,
	html[data-sidebar="closed"] .sidebar-label,
	html[data-sidebar="closed"] .sidebar-badge,
	html[data-sidebar="closed"] .sidebar-group-label,
	html[data-sidebar="closed"] .sidebar-user-text {
		display: none;
	}

	html[data-sidebar="closed"] .sidebar-link {
		width: 2rem;
		justify-content: center;
		gap: 0;
		padding: 0;
	}

	html[data-sidebar="closed"] .sidebar-footer {
		padding: 0.5rem;
	}

	html[data-sidebar="closed"] .sidebar-user {
		flex-direction: column;
		align-items: center;
		gap: 0.25rem;
		padding: 0;
	}
}

.sidebar-tooltip {
	position: fixed;
	z-index: 80;
	transform: translateY(-50%);
	padding: 0.3rem 0.55rem;
	border-radius: var(--radius-md);
	background: var(--foreground);
	color: var(--background);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: var(--shadow);
}

.sidebar-tooltip[hidden] {
	display: none;
}

.sidebar-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-left: -0.25rem;
	border-radius: var(--radius-md);
	color: var(--foreground);
	font-size: 1.15rem;
}

.sidebar-trigger:hover {
	background: var(--accent);
	color: var(--accent-foreground);
}

.header-sep {
	width: 1px;
	height: 1rem;
	background: var(--border-color);
	margin: 0 0.25rem;
}

.site-title {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.site-crumbs {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.site-crumbs a {
	color: var(--muted-foreground);
}

.site-crumbs a:hover {
	color: var(--foreground);
}

.site-crumb-current {
	color: var(--foreground);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-search {
	position: relative;
	margin-left: auto;
}

.site-search .nav-search-form {
	margin: 0;
	gap: 0;
}

.site-search .nav-search-form input {
	height: 2rem;
	min-width: 0;
	width: min(16rem, 36vw);
	padding: 0 2.25rem 0 0.75rem;
	border-radius: var(--radius-md);
	border: 1px solid var(--input);
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	box-shadow: var(--shadow);
}

.site-search .nav-search-form input::placeholder {
	color: var(--muted-foreground);
}

.site-search .nav-search-form input:focus {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}

.site-search .nav-search-form button {
	position: absolute;
	right: 0.15rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted-foreground);
	width: 1.75rem;
	height: 1.75rem;
}

.site-search .nav-search-form .nav-search-spinner {
	border-color: color-mix(in oklab, var(--foreground) 20%, transparent);
	border-top-color: var(--foreground);
}

.site-search .nav-search-autocomplete {
	background: var(--popover);
	color: var(--popover-foreground);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 24px oklch(0.18 0.02 250 / 0.08);
	min-width: 16rem;
}

.app-content .container {
	margin: 0;
	max-width: none;
	padding: 1rem;
	text-align: left;
}

@media (min-width: 768px) {
	.app-content .container {
		padding: 1.5rem;
	}
}

body.sidebar-scroll-lock {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.app-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		z-index: 40;
		transform: translateX(-105%);
		box-shadow: 0 12px 40px oklch(0.18 0.02 250 / 0.18);
	}

	html[data-sidebar="open"] .app-sidebar {
		transform: translateX(0);
	}

	html[data-sidebar="closed"] .app-sidebar {
		width: var(--sidebar-width);
		min-width: var(--sidebar-width);
	}

	.sidebar-backdrop {
		display: none;
	}

	html[data-sidebar="open"] .sidebar-backdrop {
		display: block;
	}
}

.stats-hero {
	border-bottom-color: var(--border-color);
}

.stats-hero h1,
.stats-section-title,
.stats-kpi-value {
	color: var(--foreground);
}

.stats-hero-subtitle,
.stats-hero-total-label,
.stats-kpi-label,
.stats-type-bar-label {
	color: var(--muted-foreground);
}

.stats-hero-total,
.stats-kpi-card,
.stats-panel,
.stats-chart-card {
	background: var(--card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
}

.stats-kpi-card--highlight,
.stats-hero-total {
	background: color-mix(in oklab, var(--primary) 6%, var(--card));
	border-color: color-mix(in oklab, var(--primary) 25%, var(--border-color));
}

.gridjs-container,
.gridjs-wrapper,
.gridjs-table {
	font-family: var(--font-sans);
	color: var(--foreground);
}

.gridjs-wrapper {
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
}

.gridjs-th {
	background: var(--muted);
	color: var(--foreground);
	border-color: var(--border-color);
	font-weight: 600;
}

.gridjs-td {
	border-color: var(--border-color);
	background: var(--card);
}

.gridjs-search-input,
.gridjs-input {
	border: 1px solid var(--input);
	border-radius: var(--radius-md);
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
}

/* Auth split, samma uppbyggnad som registration-platform */
.auth-body {
	padding: 0;
	text-align: left;
	background: var(--background);
	min-height: 100svh;
}

.auth-shell {
	display: grid;
	min-height: 100svh;
}

@media (min-width: 1024px) {
	.auth-shell {
		grid-template-columns: 1fr 1fr;
	}
}

.auth-brand {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	min-height: 42vh;
	padding: 2.5rem 2rem;
	color: #fff;
	background: #0170a8;
}

@media (min-width: 1024px) {
	.auth-brand {
		min-height: 100svh;
		padding: 3.5rem;
	}

	.auth-brand-copy {
		padding-top: 0;
	}
}

.auth-brand-mark {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.auth-brand-icon {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 0.75rem;
	box-shadow: 0 8px 20px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(255 255 255 / 0.25);
}

.auth-brand-mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.auth-brand-titles {
	line-height: 1.25;
}

.auth-brand-kicker {
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.75);
}

.auth-brand-product {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.auth-brand-copy {
	position: relative;
	z-index: 1;
	max-width: 28rem;
	padding-top: 2.5rem;
}

.auth-eyebrow {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.7);
}

.auth-brand h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.auth-brand-lead {
	max-width: 24rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	color: rgb(255 255 255 / 0.8);
}

.auth-brand-foot {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 0.75rem;
	color: rgb(255 255 255 / 0.55);
}

@media (max-width: 1023px) {
	.auth-brand-foot {
		display: none;
	}

	.auth-brand-copy {
		padding-top: 4rem;
	}
}

.auth-brand-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.auth-brand-grid {
	position: absolute;
	inset: 0;
	opacity: 0.14;
	background-image:
		linear-gradient(to right, rgb(255 255 255 / 0.55) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(255 255 255 / 0.55) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 20%, transparent 75%);
}

.auth-brand-fade {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 10rem;
	background: linear-gradient(to top, rgb(0 0 0 / 0.5), transparent);
}

.auth-orb {
	position: absolute;
	border-radius: 999px;
	filter: blur(48px);
	pointer-events: none;
}

.auth-orb-a {
	top: -6rem;
	left: -4rem;
	width: 28rem;
	height: 28rem;
	background: color-mix(in srgb, #0170a8 45%, white);
	opacity: 0.45;
}

.auth-orb-b {
	top: 33%;
	right: -7rem;
	width: 26rem;
	height: 26rem;
	background: color-mix(in srgb, #0170a8 55%, black);
	opacity: 0.55;
}

.auth-orb-c {
	bottom: -8rem;
	left: 25%;
	width: 22rem;
	height: 22rem;
	background: rgb(255 255 255 / 0.1);
}

.auth-panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	background: var(--background);
}

.auth-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at top, oklch(0.97 0 0), transparent 55%);
}

.auth-form {
	position: relative;
	width: 100%;
	max-width: 24rem;
}

.auth-main {
	display: grid;
	gap: 2rem;
}

.auth-intro {
	display: grid;
	gap: 0.5rem;
}

.auth-form h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--foreground);
}

.auth-form .auth-lead {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted-foreground);
}

.auth-form form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: none;
	gap: 1.25rem;
	max-width: none;
	margin: 0;
	font-size: 0.875rem;
}

.auth-form form > * {
	margin: 0;
	padding: 0;
}

.auth-field {
	display: grid;
	gap: 0.5rem;
}

.auth-form label,
.auth-form input,
.auth-form select {
	grid-column: auto;
}

.auth-form label {
	display: block;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
	color: var(--foreground);
}

.auth-form form > label,
.auth-form form > input,
.auth-form form > select,
.auth-form form > .btn,
.auth-form form > .btn-container {
	grid-column: auto;
}

.auth-form input,
.auth-form select {
	display: block;
	width: 100%;
	height: 2.75rem;
	margin: 0;
	padding: 0 0.75rem;
	border: 1px solid var(--input);
	border-radius: var(--radius-lg);
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input:focus,
.auth-form select:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.auth-form .btn,
.auth-form .btn-container > .btn {
	width: 100%;
	height: 2.75rem;
	margin: 0;
	padding: 0 0.75rem;
	border-radius: var(--radius-lg);
	background-color: var(--primary);
	color: var(--primary-foreground);
	font-size: 0.875rem;
	font-weight: 500;
}

.auth-form .btn:hover,
.auth-form .btn-container > .btn:hover {
	background-color: color-mix(in oklab, var(--primary) 80%, transparent);
	color: var(--primary-foreground);
}

.auth-form .btn:focus-visible,
.auth-form .btn-container > .btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.auth-form .btn-container {
	display: block;
	grid-column: auto;
}

.auth-form .auth-alert,
.auth-form .error-message {
	margin: 0;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	background: var(--card);
	color: var(--destructive);
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
}

.auth-form small.error-message {
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 500;
}

.auth-links {
	display: grid;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.auth-form .register-link {
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.auth-form .register-link a {
	color: var(--primary);
	font-weight: 500;
}

@keyframes sign-in-orb-drift {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	50% {
		transform: translate3d(3%, -4%, 0) scale(1.06);
	}
}

@keyframes sign-in-form-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sign-in-orb {
		will-change: transform;
		animation: sign-in-orb-drift 18s ease-in-out infinite;
	}

	.sign-in-orb.auth-orb-b {
		animation-duration: 22s;
		animation-direction: reverse;
	}

	.sign-in-orb.auth-orb-c {
		animation-duration: 26s;
		animation-delay: -6s;
	}

	.sign-in-form {
		animation: sign-in-form-in 0.55s ease-out both;
	}
}

@media (max-width: 1280px) {
	body.app-body,
	body.auth-body {
		padding-top: 0;
	}
}

/* Undersidor: samma yta som shadcn-sidorna i registration-platform */
.app-content h1 {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	text-align: left;
	color: var(--foreground);
}

.app-content .container > h1::after,
.app-content .container > div > h1::after,
.app-content .admin-container > h1::after,
.app-content .modern-form-page-header h1::after,
.app-content .flowchart-wrapper > h1::after,
.app-content .suspensions-overview-wrapper > h1::after {
	content: "";
	display: block;
	width: 3rem;
	height: 2px;
	margin-top: 0.5rem;
	border-radius: 999px;
	background: var(--primary);
}

.app-content .container > h1 + p,
.app-content .container > div > h1 + p,
.app-content .admin-container > h1 + p {
	margin: 0.75rem 0 1.25rem;
	max-width: 42rem;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	line-height: 1.5;
}

.app-content h2,
.app-content h3 {
	color: var(--foreground);
	letter-spacing: -0.02em;
}

.stats-hero h1 {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.stats-hero h1::after {
	content: none;
}

.app-content .btn:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-cancel) {
	background-color: var(--primary);
	color: var(--primary-foreground);
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	font-weight: 500;
}

.app-content .btn:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-cancel):hover {
	background-color: color-mix(in oklab, var(--primary) 80%, transparent);
	color: var(--primary-foreground);
}

.app-content .btn-secondary {
	background: var(--background);
	color: var(--foreground);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
}

.app-content .btn-secondary:hover {
	background: var(--muted);
	color: var(--foreground);
}

.app-content form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.app-content form select,
.app-content form textarea {
	border: 1px solid var(--input);
	border-radius: var(--radius-lg);
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
}

.app-content form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.app-content form select:focus,
.app-content form textarea:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.app-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.app-content th {
	background: var(--muted);
	color: var(--foreground);
	font-weight: 600;
	text-align: left;
}

.app-content th,
.app-content td {
	border-bottom: 1px solid var(--border-color);
	padding: 0.6rem 0.75rem;
}