/* GRUNDSTIL OG FARVER */
:root {
	font-family: Arial, Helvetica, sans-serif;
	color: #202622;
	background: #efede6;
	font-size: 14px;
	--yellow: #f0df69;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
button,
input {
	font: inherit;
}
button {
	cursor: pointer;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 3px solid #b69d27;
	outline-offset: 3px;
}
[hidden] {
	display: none !important;
}
/* VENSTREMENU OG BRUGER */
.sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: 225px;
	background: linear-gradient(120deg, #202c20, #101b15 75%);
	color: #fff;
	display: flex;
	flex-direction: column;
	z-index: 4;
}
.user {
	padding: 29px 19px 23px;
	position: relative;
}
.user summary {
	display: flex;
	align-items: center;
	gap: 11px;
	cursor: pointer;
	list-style: none;
}
.user summary > span:last-child {
	margin-left: auto;
}
.avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #41523b;
	display: grid;
	place-items: center;
}
.user small {
	display: block;
	color: #b4bcae;
	font-size: 10px;
	margin-top: 5px;
}
.account {
	position: absolute;
	top: 85px;
	left: 14px;
	right: 14px;
	background: #fff;
	padding: 8px;
	border-radius: 6px;
	box-shadow: 0 5px 20px #0004;
	z-index: 8;
}
.account button {
	display: block;
	border: 0;
	background: #fff;
	text-align: left;
	padding: 11px;
	width: 100%;
	color: #233522;
}





.grass {
	margin-top: auto;
	min-height: 100px;
	padding: 0px 7px 10px;
}
.grass img {
	width: 100%;
	object-fit: contain;
}
.mobile-toggle {
	display: none;
}
main {
	--page-gutter: 22px;
	margin-left: 225px;
	padding: 0 var(--page-gutter) 28px;
}
/* NØGLETAL */
.stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0 0 14px;
}
.stats button {
	border: 0;
	background: #ffffffdb;
	border-radius: 6px;
	display: flex;
	gap: 17px;
	align-items: center;
	padding: 20px 16px;
	text-align: left;
	color: #202622;
}
.stat-icon {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	background: linear-gradient(140deg, #49794b, #203321);
	border-radius: 50%;
	color: white;
	font-size: 29px;
	display: grid;
	place-items: center;
}
.stats small {
	font-size: 10px;
	letter-spacing: 0.06em;
}
.stats strong {
	font-family: Georgia, serif;
	display: block;
	font-size: 35px;
	font-weight: 400;
	line-height: 1.1;
	margin-top: 3px;
}
.stats em {
	display: block;
	font-style: normal;
	font-size: 11px;
	color: #777b75;
	margin-top: 5px;
}
.stats b {
	margin-left: auto;
	align-self: flex-start;
	font-size: 25px;
	font-weight: 400;
}
/* PANELER OG ÅRSOVERSIGT */
.panel {
	background: #ffffffd9;
	border-radius: 6px;
	padding: 20px;
}
.annual {
	margin-bottom: 14px;
}
h1,
h2 {
	font-family: Georgia, "Times New Roman", serif;
	color: #151c16;
	font-weight: 400;
	margin: 0;
}
h1 {
	font-size: 30px;
}
h2 {
	font-size: 23px;
}
p {
	color: #6e746c;
	line-height: 1.5;
}
.annual-heading {
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
}
.annual-heading p {
	margin: 6px 0 12px;
}
.tabs {
	display: flex;
	align-self: stretch;
	align-items: center;
	gap: 5px;
	border-bottom: 1px solid #e0e1d9;
}
.tabs button {
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	padding: 17px 12px;
	white-space: nowrap;
	font-size: 13px;
	color: #474e42;
}
.tabs button[aria-selected="true"] {
	border-bottom-color: #d5bc2c;
	font-weight: bold;
	color: #101910;
}
.table-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	margin: 4px 0 12px;
}
.legend {
	display: flex;
	gap: 25px;
	font-size: 11px;
	flex-wrap: wrap;
}
.legend span {
	display: flex;
	align-items: center;
	gap: 7px;
}
i {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	flex-shrink: 0;
}
.done {
	background: #20723b;
}
.ongoing {
	background: #91bd67;
}
.planned {
	background: #d2d3d0;
}
.late {
	background: #f6dc33;
}
.na {
	background: #e9e8e4;
}
.year {
	border: 1px solid #dcded6;
	border-radius: 5px;
	display: grid;
	grid-template-columns: 32px minmax(48px, auto) 32px;
	align-items: center;
	font-size: 12px;
}
.year strong {
	text-align: center;
}
.year button {
	border: 0;
	background: none;
	padding: 4px 0;
	font-size: 23px;
}
.table-scroll {
	overflow-x: auto;
}
table {
	border-collapse: collapse;
	width: 100%;
	min-width: 850px;
	font-size: 12px;
}
th,
td {
	height: 35px;
	border-bottom: 1px solid #e4e5df;
	text-align: center;
	padding: 4px 9px;
}
th:first-child,
td:first-child {
	text-align: left;
	width: 205px;
}
th {
	font-size: 11px;
	height: 33px;
}
td:first-child button {
	border: 0;
	background: none;
	text-align: left;
	padding: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	font-size: 12px;
}
td:last-child {
	font-weight: bold;
	font-size: 11px;
}
.table-footer {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-top: 17px;
}
.table-footer small {
	font-size: 10px;
	color: #93988e;
	max-width: 480px;
}
.outline {
	border: 1px solid #3e4a3b;
	border-radius: 5px;
	padding: 9px 19px;
	background: none;
	white-space: nowrap;
	font-size: 12px;
}
.outline span {
	margin-left: 30px;
}
/* NEDERSTE BLOKKE */
.bottom {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.panel-heading button {
	background: none;
	border: 0;
	font-size: 11px;
	white-space: nowrap;
}
.entry {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 49px;
	border-bottom: 1px solid #e7e8e0;
}
.entry:last-child {
	border: 0;
}
.entry input {
	accent-color: #37683b;
	width: 15px;
	height: 15px;
}
.entry p {
	flex: 1;
	font-size: 13px;
	color: #333c31;
	margin: 0;
}
.entry small {
	display: block;
	font-size: 11px;
	color: #858b80;
	margin-top: 3px;
}
.entry time {
	font-size: 13px;
	white-space: nowrap;
	color: #767e70;
	font-weight: 500;
}
.entry .initial {
	font-size: 10px;
	background: #e9eae4;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	display: grid;
	place-items: center;
}
.entry.completed p {
	text-decoration: line-through;
	color: #969b92;
}
.risk {
	display: flex;
	flex-direction: column;
	background: linear-gradient(120deg, #fff0a6, #f6df78);
}
.risk .panel-heading {
	flex: none;
}
.risk-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	width: 100%;
	min-height: 57px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid #e6dca4;
	background: #fff9dfd9;
	padding: 8px 11px;
	font-size: 15px;
}
.risk-row:first-of-type {
	border-radius: 6px 6px 0 0;
}
.risk-row:last-child {
	border-radius: 0 0 6px 6px;
	border: 0;
}
.risk-row > b {
	display: grid;
	place-items: center;
	flex: 0 0 25px;
	font-size: 22px;
	color: #18221d;
}
.risk-row > span {
	flex: 1;
}
.risk-row strong {
	font-size: 15px;
}
.risk-row:not(:last-child) strong {
	color: #d72d2b;
}
.risk-row > b.danger {
	color: #d72d2b;
}
.risk-row > b[data-risk-icon="warning"] {
	color: #f3d528;
	-webkit-text-stroke: 1px #17221d;
}
#section-page {
	min-height: 350px;
}
#message {
	position: fixed;
	bottom: 20px;
	right: 24px;
	max-width: 430px;
	background: #213b28;
	color: white;
	padding: 16px 22px;
	border-radius: 8px;
	box-shadow: 0 5px 25px #0002;
	z-index: 10;
}
button:hover {
	filter: brightness(0.98);
}
@media (min-width: 1650px) {
	main {
		--page-gutter: 32px;
		padding-bottom: 32px;
	}
	.annual {
		padding: 25px;
	}
	.stats button {
		padding: 23px;
	}
	td {
		height: 39px;
	}
}
/* RESPONSIVT: mindre skærme */
@media (max-width: 1200px) {
	.annual-heading {
		display: block;
	}
	.tabs {
		overflow-x: auto;
	}
	.bottom {
		grid-template-columns: 1fr 1fr;
	}
	.risk {
		grid-column: 1/-1;
	}
	.stats button {
		gap: 9px;
		padding: 16px 11px;
	}
	.stat-icon {
		width: 42px;
		height: 42px;
	}
	.table-tools {
		justify-content: space-between;
		margin-top: 16px;
	}
}
@media (max-width: 850px) {
	.sidebar {
		width: 175px;
	}
	.user {
		padding: 24px 12px;
	}
	.stats {
		grid-template-columns: 1fr 1fr;
	}
	main {
		--page-gutter: 15px;
		margin-left: 175px;
		padding-bottom: 20px;
	}
	.bottom {
		grid-template-columns: 1fr;
	}
	.risk {
		grid-column: auto;
	}
	.table-tools {
		flex-wrap: wrap;
	}
	.legend {
		gap: 17px;
	}
	.tabs button {
		padding: 14px 10px;
	}
	.table-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
}
@media (max-width: 600px) {
	.sidebar {
		position: relative;
		width: 100%;
	}
	.user {
		padding: 15px 20px;
		max-width: 230px;
	}
	.user small {
		display: none;
	}
	.mobile-toggle {
		display: block;
		position: absolute;
		right: 20px;
		top: 23px;
		border: 0;
		background: none;
		color: #fff;
	}


	.grass {
		display: none;
	}
	.sidebar.open .grass {
		display: block;
		min-height: 0;
		padding: 10px 20px;
		max-width: 200px;
	}
	main {
		--page-gutter: 12px;
		margin: 0;
		padding-bottom: 20px;
	}
	.preview-label {
		font-size: 8px;
		right: 6px;
		bottom: 15px;
	}
	.stats button {
		padding: 14px 10px;
		gap: 10px;
	}
	.stats small {
		font-size: 8px;
	}
	.stats strong {
		font-size: 29px;
	}
	.stats em {
		font-size: 9px;
	}
	.stats b {
		display: none;
	}
	.stat-icon {
		width: 38px;
		height: 38px;
		font-size: 24px;
	}
	.panel {
		padding: 17px 13px;
	}
	h1 {
		font-size: 26px;
	}
	h2 {
		font-size: 22px;
	}
	.annual-heading p {
		font-size: 12px;
	}
	.legend {
		font-size: 11px;
	}
	.table-tools {
		gap: 15px;
	}
	.year {
		margin-left: auto;
	}
	#message {
		left: 15px;
		right: 15px;
		bottom: 15px;
	}
}

/* ÅRSOVERSIGT: fælles række til faner, statusforklaring og år */
.annual .annual-heading {
	margin-bottom: 12px;
}
.annual-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #e0e1d9;
	margin-bottom: 12px;
}
:is(.annual .annual-toolbar, .work-queue) .tabs {
	min-width: 0;
	overflow-x: auto;
	border-bottom: 0;
	gap: 0;
}
:is(.annual .annual-toolbar, .work-queue) .tabs button {
	padding: 14px 8px;
	font-size: 13px;
}
.annual .annual-toolbar .table-tools {
	margin: 0;
	padding: 0;
	gap: 10px;
	flex-wrap: nowrap;
}
.annual .annual-toolbar .legend {
	gap: 13px;
	flex-wrap: nowrap;
	font-size: 11px;
}
.annual-toolbar .legend span {
	white-space: nowrap;
}
.annual-toolbar .year {
	flex-shrink: 0;
}
@media (max-width: 1000px) {
	.annual-toolbar {
		grid-template-columns: minmax(0, 1fr);
	}
	.annual .annual-toolbar .table-tools {
		justify-content: space-between;
		flex-wrap: wrap;
		padding: 0 0 8px;
	}
	.annual .annual-toolbar .legend {
		flex-wrap: wrap;
	}
}
.customer-preview-list {
	display: grid;
	gap: 8px;
	margin: 20px 0;
}
.customer-preview-list a {
	color: #29472e;
	padding: 12px;
	background: #f4f5ef;
	border-radius: 5px;
}
#section-content {
	margin-bottom: 20px;
}
