* {
	font-family: Arial, sans-serif;
}


#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 70px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	border-style: none none solid none;
	border-width: 1px;
	border-color: var(--accent);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
	color: var(--fg-accent);
	background-color: var(--bg-default);
	z-index: 5;
	padding-right: 10px;
}

#header sup {
	font-size: .5em;
	color: var(--yellow);
}

#headercaption {
	display: flex;
	justify-content: space-around;
	flex-direction: row;
	align-items: center;
	text-decoration: none;
	color: var(--fg-accent);
	position: absolute;
	left: 10px;
}

#headercaption > * {
	display:block;
}
#headercaption > img {
	height: 50px;
}

/* #header > * {
	margin: 30px;
} */

#menutoggle {
	font-size: 2em;
	background-color: inherit;
}

.headerlink {
	font-size: 1.2em;
	display: inline-flex;
	padding: 10px;
	align-items: center;
	text-decoration: none;
	color: var(--fg-accent);
	border: solid 2px transparent;
	background-color: transparent;
	cursor: pointer;
	text-align: left;
	outline: none;
}

.headerlink.companySwitched {
	/* font-size: .8em; */
	color: var(--yellow);
}

.headerlink.companySwitched > svg:not(.strokeNotFill) > path {
	fill: var(--yellow);
}

.headerlink:hover {
	color: var(--bg-default);
	background-color: var(--accent) !important;
}

.headerlink:hover > svg:not(.strokeNotFill) > path,
.headerlink:hover > svg:not(.strokeNotFill) > circle  {
	fill: var(--bg-default) !important;
}
.headerlink:hover > svg.strokeNotFill > path {
	/* fill: #00a880; */
	stroke: var(--bg-default) !important;
}

.headerlink > svg {
	animation-name: none;
	animation-duration: 0.5s;
	animation-iteration-count: infinite;
	animation-play-state: running;
	display: inline-block;
	animation-timing-function: linear;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	transform-origin: 8px 10px;
}

#headermenu .headerlink > svg {
	margin-right: 20px;
	margin-left: 10px;
}

/* @keyframes red-flash {
	0%, 100% {
		background-color: rgba(0,0,0,0);
	}
	50% {
		background-color: rgba(242, 102, 102, 1);
		color: white;
	}
}
@keyframes white-flash {
	0%, 100% {
		fill: #00a880;
	}
	50% {
		fill: white;
	}
} */

@keyframes red-flash {
	0%, 100% {
	}
	50% {
		color: var(--red);
	}
}
@keyframes white-flash {
	0%, 100% {
		fill: var(--green);
	}
	50% {
		fill: var(--red);
	}
}

#renewlogin {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	background-color: var(--bg-default);
	z-index: 4;
}

#renewlogin > svg {
	transform-origin: 50% 50%;	
}

#renewlogin.closeToTimeout {
	/* animation-name: red-flash;
	animation-duration: 2s;
	animation-timing-function: linear;
	animation-iteration-count: infinite; */
	color: var(--red);
}

#renewlogin.closeToTimeout:hover {
	/* animation-play-state: paused; */
	color: var(--bg-default);
}

#renewlogin.closeToTimeout > svg > path {
	fill: var(--red);
	/* animation-name: white-flash;
	animation-duration: 2s;
	animation-timing-function: linear;
	animation-iteration-count: infinite; */
}

#renewlogin.closeToTimeout:hover > svg > path {
	/* animation-play-state: paused; */
	fill: var(--bg-default);
}

@keyframes spinning {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(-360deg);
	}
}

/* @media only screen and (max-width: 1900px) { */


#menutogglebox:checked ~ #headermenu, #headermenu:hover {
	/* box-shadow: 0px 0px 0px 100vw rgba(0,0,0,0.8); */
	transform: translate(calc(0% + var(--stick-out)), 0%);
}
#headermenu {
	--stick-out: 60px;
	right: var(--stick-out);
	z-index: 2;
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 71px;
	bottom: 0px;
	margin: 0px;
	background-color: inherit;
	min-width: 300px;
	max-width: 95vw;
	border-left: 1px solid var(--accent);
	transform: translate(100%, 0%);
	transition: transform ease-out 0.1s;
}

@media only screen and (max-width: 1000px) {
	#menutogglebox:checked ~ #headermenu, #headermenu:hover {
		/* box-shadow: 0px 0px 0px 100vw rgba(0,0,0,0.8); */
		transform: translate(0%, 0%);
	}
	#headermenu {
		right: 0%;
	}
}
/* }
 @media not screen and (max-width: 1900px) {
	#menutoggle {
		display: none;
	}
} */


#notificationsWrapper {
	position: relative;
}

#notificationsBox {
	z-index: 1;
	--width: 450px;
	width: var(--width);
	display: none;
	box-sizing: border-box;
	border: 1px solid var(--accent);
	position: absolute;
	top: calc(100% + 15px);
	right: calc(50% - var(--width) / 2);
	background-color: var(--bg-default);
	box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}

#notificationsInnerWrapper {
	padding: 10px;
	min-height: 50px;
	max-height: 60vh;
	overflow: auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
}


#notificationsBox::before {
	content:'';
	display: inline-block;
	width: 20px;
	height: 20px;
	transform: rotate(45deg);
	background-color: inherit;
	box-shadow: -1px -1px 0px 0px var(--accent);
	position: absolute;
	left: calc(50% - 10px);
	top: -10px;
	z-index: 1;
}

#notificationsToggleBox {
	display: none;
}

#notificationsToggleBox:checked ~ #notificationsBox {
	display: block;
}

.notification {
	display: flex;
	flex-direction: row;
	align-items: center;
	color: var(--fg-default);
	gap: 10px;
	padding: 10px;
	text-decoration: none;
	z-index: 2;
}

.notification:not(:last-child) {
	border-bottom: 1px solid var(--accent);
}

.notification_image {
	width: 40px;
	height: 40px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	flex-shrink: 0;
}

.notification_content {
	flex-grow: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	overflow: hidden;
	gap: 5px;
}

.notifiaction_title {
	font-size: 1.2em;
}

.notification_description {
	font-size: 0.8em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
	flex-grow: 0;
	color: var(--fg-subtle);
}

.notification_time {
	font-size: 0.7em;
	color: var(--fg-subtle);
	opacity: 0.8;
	float: right;
	align-self: flex-end;
}

.notification.unread {
	font-weight: bold;
	background-color: var(--bg-highlight);
}

#logoutTimerWrapper {
	position: relative;
}

#logoutNotification {
	--width: 300px;

	display: none;

	width: var(--width);
	box-sizing: border-box;
	border: 1px solid var(--red);
	position: absolute;
	top: calc(100% + 15px);
	right: 0px;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
	min-height: 100px;

	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;

	background-color: var(--red);
	color: black;
	z-index: 4;
}

#logoutNotification::before {
	content:'';
	display: inline-block;
	width: 20px;
	height: 20px;
	transform: rotate(45deg);
	background-color: inherit;
	box-shadow: -1px -1px 0px 0px var(--red);
	position: absolute;
	right: 15px;
	top: -10px;
	z-index: 5;
}

#logoutNotificationBackground {
	position: fixed;
	background-color: rgba(0,0,0,0.5);
	display: block;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 100vh;
	z-index: 3;
	display: none;
	pointer-events: none;
}

#renewlogin.closeToTimeout ~ #logoutNotification,
#renewlogin.closeToTimeout ~ #logoutNotificationBackground {
	display: flex;
}

#companySwitcherWrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgb(0,0,0,0.5);
	z-index: 98;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#companySwitcherWrapper > * {
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}

#companySwitcherLoading {
	border: none;
	width: 95vw;
	max-width: 200px;
	min-height: 200px;
}

#companySwitcher {
	background-color: var(--bg-default);
	display: none;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

#companySwitcherList {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.companySwitcherFirma {
	background-color: var(--bg-subtle);
	padding: 10px;
	padding-left: 70px;
	padding-right: 20px;
	display: flex;
	flex-direction: column;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	transition: filter linear 0.1s;
}

.companySwitcherFirma:not(.companySwitcherSelectedFirma):hover {
	filter: brightness(.9);
}

.companySwitcherFirma::before {
	content: '';
	position: absolute;
	width: 50px;
	height: 50px;
	background-image: url("/svgs/firma_icon.svg");
	background-size: contain;
	background-repeat: no-repeat;
	left: 10px;
	top: calc(50% - 25px);
}

.companySwitcherSelectedFirma {
	border: solid 2px var(--accent);
}

.companySwitcherFirmaID {
	opacity: 0.5;
}

.companySwitcherFirmaName {
	font-size: 1.5em;
}
