#Main {
	min-height: calc(100vh - 160px);
}

.admin-section {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	background: #f6f9fc;
	min-height: 650px;
}

.login-box {
	width: 100%;
	max-width: 440px;
	padding: 45px;
	background: #ffffff;
	border: 1px solid #e5eaf2;
	border-radius: 18px;
	box-shadow: 0 15px 45px rgba(20, 44, 78, 0.07);
}

.login-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 25px;
}

.login-logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: #1769e0;
	color: #ffffff;
	border-radius: 14px;
	font-size: 32px;
}

.login-box h1 {
	margin: 0 0 12px 0;
	color: #142c4e;
	font-size: 28px;
	text-align: center;
}

.login-box p {
	margin: 0 0 35px 0;
	color: #64748b;
	text-align: center;
	line-height: 1.6;
}

.login-box label {
	display: block;
	margin-bottom: 8px;
	color: #142c4e;
	font-weight: 600;
}

.login-box input {
	display: block;
	width: 100%;
	padding: 14px;
	margin-bottom: 22px;
	background: #ffffff;
	border: 1px solid #dce3ed;
	border-radius: 9px;
	font-size: 15px;
	box-sizing: border-box;
}

.login-box input:focus {
	outline: none;
	border-color: #1769e0;
	box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.10);
}

.login-button {
	width: 100%;
	padding: 15px;
	background: #1769e0;
	color: #ffffff;
	border: none;
	border-radius: 9px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.login-button:hover {
	background: #1052b3;
}

.login-help {
	margin-top: 25px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
}

.login-help a {
	color: #1769e0;
	text-decoration: none;
}

.admin-menu-title {
	padding: 10px 15px 20px 15px;
	font-size: 18px;
	font-weight: 600;
	color: #142c4e;
}

.admin-menu a {
	display: block;
	padding: 13px 15px;
	margin-bottom: 5px;
	color: #516278;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.admin-menu a:hover {
	background: #eef4ff;
	color: #1769e0;
}

.admin-menu a.active {
	background: #1769e0;
	color: #ffffff;
}

@media (max-width: 600px) {
	.admin-section {
		padding: 40px 15px;
		min-height: 500px;
	}

	.login-box {
		padding: 30px 22px;
	}

	.login-box h1 {
		font-size: 24px;
	}
}

.indhold {
	max-width: 1000px;
}

.indhold h1 {
	margin: 0 0 10px 0;
	color: #142c4e;
	font-size: 28px;
}

.indhold > p {
	margin-bottom: 30px;
	color: #64748b;
}

.stamdata-box {
	padding: 30px;
	background: #ffffff;
	border: 1px solid #e5eaf2;
	border-radius: 14px;
}

.stamdata-box h2 {
	margin: 0 0 25px 0;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5eaf2;
	font-size: 19px;
	color: #142c4e;
}

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

.stamdata-field {
	min-width: 0;
}

.stamdata-field label {
	display: block;
	margin-bottom: 7px;
	color: #64748b;
	font-size: 13px;
}

.stamdata-field div {
	color: #142c4e;
	font-size: 16px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.stamdata-info {
	margin-top: 25px;
	padding: 18px 22px;
	background: #eef4ff;
	border-radius: 10px;
	color: #516278;
	font-size: 14px;
}

.stamdata-info a {
	color: #1769e0;
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 700px) {

	.stamdata-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.stamdata-box {
		padding: 22px;
	}

}


/* Admin layout */

#Main > .container {
	width: 100%;
}

#Main .admin-layout {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	width: 100%;
}

/* Venstre menu */

#Main .admin-menu {
	width: 220px;
	min-width: 220px;
	flex: 0 0 220px;
	box-sizing: border-box;
}

/* Højre indhold */

#Main .admin-content {
	flex: 1;
	min-width: 0;
	width: auto;
}

/* Mobil */

@media (max-width: 700px) {

	#Main .admin-layout {
		flex-direction: column;
	}

	#Main .admin-menu {
		width: 100%;
		min-width: 0;
		flex: none;
	}

	#Main .admin-content {
		width: 100%;
	}

}

#Main > .container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
	box-sizing: border-box;
}

#Main .admin-layout {
	display: flex;
	flex-direction: row;
	gap: 30px;
	width: 100%;
}

.hovedmenu {
	position: relative;
	display: inline-block;
	padding: 12px 0;
	text-decoration: none;
}

.hovedmenu::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 3px;
	width: 100%;
	height: 3px;
	background: #1769e0;
	border-radius: 3px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.hovedmenu:hover::after,
.hovedmenu_aktiv::after {
	transform: scaleX(1);
}


/* Grupper */

.grupper {
	width: 100%;
}

.grupper-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 30px;
}

.grupper-header h1 {
	margin: 0 0 10px 0;
	color: #142c4e;
	font-size: 28px;
}

.grupper-header p {
	margin: 0;
	color: #64748b;
}

.grupper-button {
	display: inline-block;
	flex-shrink: 0;
	padding: 13px 22px;
	background: #1769e0;
	color: #ffffff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.grupper-button:hover {
	background: #1052b3;
	color: #ffffff;
}

.grupper-box {
	background: #ffffff;
	border: 1px solid #e5eaf2;
	border-radius: 14px;
	overflow-x: auto;
}

.grupper-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.grupper-table th {
	padding: 18px 20px;
	background: #f8fafc;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 1px solid #e5eaf2;
}

.grupper-table td {
	padding: 18px 20px;
	color: #142c4e;
	border-bottom: 1px solid #eef1f5;
	font-size: 14px;
}

.grupper-table tbody tr:last-child td {
	border-bottom: none;
}

.grupper-table tbody tr:hover {
	background: #f8fbff;
}

.grupper-actions {
	text-align: right;
}

.grupper-ret {
	display: inline-block;
	padding: 8px 18px;
	background: #eef4ff;
	color: #1769e0;
	border-radius: 7px;
	text-decoration: none;
	font-weight: 600;
}

.grupper-ret:hover {
	background: #1769e0;
	color: #ffffff;
}

.grupper-status {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.grupper-status.aktiv {
	background: #e7f7ed;
	color: #16803d;
}

.grupper-status.inaktiv {
	background: #f1f3f6;
	color: #64748b;
}

.grupper-empty {
	text-align: center;
	color: #64748b !important;
	padding: 35px !important;
}

@media (max-width: 700px) {

	.grupper-header {
		flex-direction: column;
	}

	.grupper-button {
		width: 100%;
		text-align: center;
	}

	.grupper-table {
		min-width: 500px;
	}

}


/* Opret gruppe */

.grupper-form-box {
	max-width: 800px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #e5eaf2;
	border-radius: 14px;
}

.grupper-form-field {
	margin-bottom: 25px;
}

.grupper-form-field label {
	display: block;
	margin-bottom: 8px;
	color: #142c4e;
	font-size: 14px;
	font-weight: 600;
}

.grupper-form-field input,
.grupper-form-field textarea,
.grupper-form-field select {
	display: block;
	width: 100%;
	padding: 13px 15px;
	background: #ffffff;
	border: 1px solid #dce3ed;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	color: #142c4e;
	box-sizing: border-box;
}

.grupper-form-field textarea {
	resize: vertical;
}

.grupper-form-field input:focus,
.grupper-form-field textarea:focus,
.grupper-form-field select:focus {
	outline: none;
	border-color: #1769e0;
	box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.grupper-form-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 15px;
	padding-top: 20px;
	border-top: 1px solid #e5eaf2;
}

.grupper-annuller {
	display: inline-block;
	padding: 13px 22px;
	background: #f1f3f6;
	color: #516278;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.grupper-annuller:hover {
	background: #e5eaf2;
	color: #142c4e;
}

button.grupper-button {
	border: none;
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
}

@media (max-width: 600px) {
	.grupper-form-box {
		padding: 20px;
	}

	.grupper-form-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.grupper-form-actions a,
	.grupper-form-actions button {
		width: 100%;
		text-align: center;
	}
}
