/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans-v40-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/open-sans-v40-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v40-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v40-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
	--color-primary: #2980b9;
	--color-primary-hover: #328ac4;
	--color-primary-light: #c0def1;
	--color-yellow: #f1c40f;
	--color-red: #e74c3c;
	--color-red: #ff5847;
	--color-green: #27ae60;
	--color-white: #fafafa;
	--color-black: #222222;
	--color-grey: #888;
	--color-grey-light: #bbb;

	--color-tag-1: hsl(203deg 63.64% 74.9%);
	--color-tag-2: hsl(263deg 63.64% 74.9%);
	--color-tag-3: hsl(143deg 63.64% 74.9%);
	--color-tag-4: hsl(83deg 63.64% 74.9%);
	--color-tag-5: hsl(23deg 63.64% 74.9%);
	--color-tag-6: hsl(323deg 63.64% 74.9%);

	--color-tag-1-hover: hsl(203deg 63.64% 64.9%);
	--color-tag-2-hover: hsl(263deg 63.64% 64.9%);
	--color-tag-3-hover: hsl(143deg 63.64% 64.9%);
	--color-tag-4-hover: hsl(83deg 63.64% 64.9%);
	--color-tag-5-hover: hsl(23deg 63.64% 64.9%);
	--color-tag-6-hover: hsl(323deg 63.64% 64.9%);

	--background-color: #f5f6f7;
	--background-color: #f3f4f7;
	--sidebar-color: #fcfcfc;
	--sidebar-color: #fafbfc;

	--line-color: #eee;
	--line-width: 2px;

	--border-radius: 0.6rem;

	--menu-width: 14vw;
	--page-padding: 5rem;

	--header-padding-top: 4rem;
	--header-padding-bottom: 2.5rem;

	--sidebar-width: 18vw;
	--sidebar-padding: calc(var(--page-padding) / 2);
	--popup-padding: 1.2rem;

	--font-small: 0.75rem;
	--font-bold: 600;
}

*, *::before, *::after {
	box-sizing: border-box;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
}
*::-webkit-scrollbar-thumb {
    background: var(--color-black); 
    border-radius: 5px;
}
.invScrollbar::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}


.department, .highlight {
	font-weight: normal;
	color: var(--color-primary);
}


html {
	font-size: 0.8vw;
}
body {
	margin: 0;
	margin-left: var(--menu-width);
	background: var(--background-color);
	color: var(--color-black);
	font-family: "Open Sans";
	font-size: inherit;

	display: flex;
	flex-direction: row;
}
body.hasSidebar {
	display: flex;
}

a {
	color: inherit;
	text-decoration: inherit;
}
b {
	font-weight: var(--font-bold);
}


.sys-error {
}
.sys-error::before {
	content: "";
	display: block;
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #222;
	opacity: 0.4;
	pointer-events: none;
}
.sys-error pre {
	position: fixed;
	z-index: 100001;
	bottom: 0;
	left: var(--menu-width);
	right: 0;
	margin: calc(var(--page-padding) / 2) var(--page-padding);
	padding: 2rem;
	border-radius: var(--border-radius);
	color: var(--color-red);
	background: var(--background-color);
	box-shadow: 0 0.5rem 3rem rgba(0, 0, 0, 0.1);
	white-space: pre-wrap;
}

h1 {
	margin: 0;
	font-size: 3rem;
	line-height: 1.4em;
}
h1 > .sub {
	font-weight: 400;
	opacity: 0.4;
}
h2 {
	margin: 0;
	margin-bottom: 0.25em;
	font-size: 1rem;
}

table {
	font: inherit;
}

svg * {
	vector-effect: non-scaling-stroke;
	stroke-width: 0.08rem;
}
svg *[stroke="#222"] {
	stroke: currentColor;
}
svg *[fill="#222"] {
	fill: currentColor;
}

input,
select,
textarea,
.input {
	padding: 0.5em 0.65em;
	border-radius: var(--border-radius);
	border: var(--line-width) solid var(--line-color);
	font: inherit;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
}
input::-webkit-clear-button {
	display: none;
}
textarea::-webkit-resizer {
	display: none;
}
select option[value="-1"] {
	display: none;
}
button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
}

.button {
	display: inline-block;
	padding: 0.5em 1.2em 0.6em;
	border: 0;
	border-radius: var(--border-radius);
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
	font: inherit;
	line-height: 1em;
}
.button:hover {
	background: var(--color-primary-hover);
}

.checkbox {
	-webkit-appearance: none;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	width: 1em;
	height: 1em;
	border: var(--line-width) solid var(--line-color);
	border-radius: 25%;
}
.checkbox:checked {
	border-color: var(--color-primary);
}
.checkbox:checked:after {
	content: "";
	display: block;
	width: 35%;
	height: 60%;
	border-bottom: var(--line-width) solid var(--color-primary);
	border-right: var(--line-width) solid var(--color-primary);
	transform: rotate(45deg) translate(-12%, 1%);
}


.flex {
	display: flex;
}
.flex-split {
	display: flex;
	justify-content: space-between;
}

.spacer {
	flex-grow: 1;
}

.box {
	background: #fff;
	border-radius: var(--border-radius);
	padding: 2em;
}


.c-red {
	color: var(--color-red);
}
.c-yellow {
	color: var(--color-yellow);
}

.date-span {
	display: flex;
	align-items: center;
	gap: 0.5em;

}
.date-span svg {
	display: block;
	width: 0.8em;
	height: 0.8em;
	margin-bottom: -0.1em;
}

.null {
	opacity: 0.4;
	padding: 0 0.05em;
}



nav {
	display: flex;
	flex-direction: column;
	position: fixed;
	z-index: 1005;
	top: 0;
	left: 0;
	height: 100%;
	width: var(--menu-width);
	background: var(--color-black);
	color: #fff;
	padding-bottom: calc(var(--sidebar-padding) * 0.66);
}
nav .spacer {
	flex-grow: 1;
}


nav #logo {
	padding: var(--header-padding-top) var(--sidebar-padding) calc(var(--header-padding-top) * 0.66);
}
nav #logo h1 {
	flex-grow: 0;
	margin: 0;
	font-size: 3rem;
	line-height: 1.4em;
}
nav #logo #workspace {
	-webkit-appearance: none;
	background: none;
	color: #f6f6f6;
	font: inherit;
	line-height: 1.4em;
	padding: 0.5em 0.35em;
	border: 0;
	border-radius: 0;
	margin-top: -1.3em;
	font-size: var(--font-small);
}
nav #logo #workspace option {
	-webkit-appearance: none;
	background: var(--color-black);
	color: #f6f6f6;
    border: 0;
}



nav #menu {
	display: flex;
	flex-direction: column;
	gap: 1.0rem;
	flex-grow: 0;
	list-style: none;
	margin: 0 var(--sidebar-padding);
	padding: 0;
}
nav #menu .menu-item {
	font-size: 1.2rem;
}
nav #menu .menu-item.active {
  text-decoration: underline;
}
nav #menu .menu-item a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
nav #menu .menu-item svg {
	width: 1rem;
	height: 1rem;
	margin-bottom: -0.08rem;
}




.page {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}
.page main {
    padding: 0 var(--page-padding) var(--page-padding);
}
.page main.container {

}

header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: var(--header-padding-top) var(--page-padding) var(--header-padding-bottom);
}
header h1 {
	flex-shrink: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}


#tab_selection {
	margin-top: -1em;
	line-height: 1em;
	display: flex;
	justify-content: flex-end;
	gap: 1.1em;
}
#tab_selection a {
	display: inline-block;
	opacity: 0.4;
}
#tab_selection a.active {
	opacity: 1;
	font-weight: var(--font-bold);
}



/* ================================ ACTIONS ================================ */

#actions {
	display: flex;
	flex-direction: row-reverse;
	justify-content: end;
	--gap: 0.3rem;
	gap: var(--gap);
	margin-bottom: 0.4rem;
}
body.hasSidebar #actions {
	position: fixed;
	z-index: 98;
	top: calc(9rem / 2 - 2.1rem / 2);
	right: var(--sidebar-padding);
	width: calc(var(--sidebar-width) - 2* var(--sidebar-padding));
}
#actions .main {

}
#actions .more {
	position: relative;
	width: 2.1rem;
	height: 2.1rem;
	background: var(--color-black);
	border-radius: var(--border-radius);
}
#actions .more:hover::after {
	content: "";
	width: 2.1rem;
	height: calc(var(--border-radius) * 2 + var(--gap));
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: calc(var(--border-radius) * -1);
	background: var(--color-black);
}
#actions .more:hover::before {
	--b: calc(var(--gap)* 2);
	content: "";
	z-index: 100000000;
	width: calc(var(--border-radius) + var(--gap) + var(--gap)* 2);
	height: calc(var(--border-radius) + var(--gap) + var(--gap)* 2);
	position: absolute;
	bottom: calc(var(--gap)* -1);
	right: 100%;
	border-right: var(--b) solid var(--color-black);
	border-bottom: var(--b) solid var(--color-black);
	border-bottom-right-radius: 100%;
	margin-bottom: calc(var(--gap)* -2);
	margin-right: calc(var(--gap)* -2);
}

#actions .more .icon {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 0.7em 0;
}
#actions .more .icon .line {
	display: block;
	width: 50%;
	height: 2px;
	background: #fff;
}

#actions .more .items {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: var(--gap);
	background: var(--color-black);
	color: #fff;
	border-radius: var(--border-radius);
}
#actions.hasMain {
    max-width: 100%;
}
#actions .more:hover .items {
	display: block;
}
#actions .more .item {
	display: block;
	width: 100%;
	padding: 0.3em 0.7em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}
#actions .more .item:not([disabled]):hover {
	text-decoration: underline;
}
#actions .more .item[disabled] {
	cursor: default;
	opacity: 0.5;
}
#actions .more .item:first-child {
	padding-top: 0.6em;
}
#actions .more .item:last-child {
	padding-bottom: 0.6em;
}



/* ================================ SIDEBAR ================================ */

.sidebar {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: var(--sidebar-width);
	padding-top: 9rem;
	padding-bottom: var(--sidebar-padding);
	background: var(--sidebar-color);
	border-left: var(--line-width) solid var(--line-color);
}
.sidebar .inner {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: calc(var(--page-padding) / 4);
	padding: 0 var(--sidebar-padding);
	margin: calc(3.4em - 1.3em) 0 0;
	margin: 0;
}
.sidebar .inner .split {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-row-gap: calc(var(--page-padding) / 4);
	grid-column-gap: var(--sidebar-padding);
}
.sidebar .input-wrapper label {
	display: block;
	font-size: var(--font-small);
	font-weight: var(--font-bold);
	padding: 0 0em 0.4em;
	color: var(--color-grey-light);
}
.sidebar .input-wrapper input:not([type=submit]),
.sidebar .input-wrapper textarea,
.sidebar .input-wrapper select {
	display: block;
	width: 100% !important;
	border: var(--line-width) solid var(--line-color);
	background: #fff;
	color: inherit;
	opacity: 1;
}
.sidebar hr {
	border: 0;
	margin: 0.6em 0 0.4em;
	height: var(--line-width);
	background: var(--line-color);
}



/* ================================= TABLE ================================= */

.largeTable {
	width:100%;
	border-spacing: 0;
	font-size: 1rem;
}

.largeTable tr td, .largeTable tr th {
	white-space: nowrap;
	width: 1px;
}
.largeTable tr td > *:not(img),
.largeTable tr th {
	padding: 1.5rem 0 1.5rem 2rem;
}
.largeTable tr td:first-child > *,
.largeTable tr th:first-child {
	padding-left: 2rem;
}
.largeTable tr td:last-child > *,
.largeTable tr th:last-child {
	padding-right: 2rem;
}
.largeTable tr td > * {
	display: block;
	font: inherit;
	text-decoration: none;
	color: inherit;
}

.largeTable tr td.fill {
	position: relative;
	width: 100%;
}
.largeTable tr td.fill > *:not(img) {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.largeTable tbody:not(.tfoot) td {
	background: #fff;
	transition: border-radius 200ms;
}

.largeTable tbody:not(.tfoot) tr:not(:first-child) td {
	border-top: var(--line-width) solid var(--line-color);
}


.largeTable thead tr:last-child th:first-child {
	border-top-left-radius: var(--border-radius);
}
.largeTable thead tr:last-child th:last-child {
	border-top-right-radius: var(--border-radius);
}
.largeTable tbody tr:last-child td:first-child {
	border-bottom-left-radius: var(--border-radius);
}
.largeTable tbody tr:last-child td:last-child {
	border-bottom-right-radius: var(--border-radius);
}


.largeTable:not(.nohover) tbody:not(.tfoot) tr:not(.nohover) {
	transition: all 200ms;
}
.largeTable:not(.nohover) tbody:not(.tfoot) tr:not(.nohover):hover {
	position: relative;
	z-index: 3;
	box-shadow: 0 0 3rem rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius);
	/*color: var(--color-primary);*/
	transform: translateX(calc(var(--border-radius)*-1));
}
.largeTable:not(.nohover) tbody:not(.tfoot) tr:not(.nohover):hover td:first-child {
	border-top-left-radius: var(--border-radius);
	border-bottom-left-radius: var(--border-radius);
}

.largeTable thead tr th {
	padding-top: 1rem;
	padding-bottom: 0.9rem;
	background: #fff;
	color: var(--color-grey-light);
	font-weight: var(--font-bold);
	font-weight: 700;
	font-size: var(--font-small);
	text-align: left;
	border-bottom: var(--line-width) solid var(--line-color);
}
.largeTable th[align="right"] {
	text-align: right !important;
}


.largeTable tfoot,
.largeTable tbody.tfoot {
	background: none;
	color: var(--color-grey-light);
	text-decoration: underline;
}
.largeTable tfoot tr th,
.largeTable tbody.tfoot tr th {
	font-weight: var(--font-bold);
}

.largeTable .header.headerSortUp::after,
.largeTable .header.headerSortDown::after {
	content: "";
	margin-bottom: -0.08em;
	display: inline-block;
	margin-left: 0.1em;
	margin-right: -0.9em;
	height: 0.8em;
	width: 0.8em;
	background-image: url(icons/sort-up.svg);
	background-size: 100%;
}
.largeTable .header.headerSortDown::after {
	background-image: url(icons/sort-down.svg);
}


.largeTable tr.empty td{
	text-align: center;
	color: var(--color-grey-light);
}

.largeTable tr.add td {
	text-align: center;
	color: var(--color-grey-light);
}
.largeTable tr.add td > * {
	padding: 1em 0;
	cursor: pointer;
}
.largeTable tr.add:hover td {
	color: var(--color-primary);
}
.largeTable tr.add span {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.15em;
}
.largeTable tr.add svg {
	height: 0.9em;
	width: 0.9em;
	margin-bottom: -0.05em;
}


.largeTable .name {
	font-weight: var(--font-bold);
}
.largeTable .name .sub {
	font-weight: 400;
	opacity: 0.4;
	padding-left: 0.5rem;
}








body.hasPopup {

}

.popup-container {
	display: flex;
	position: fixed;
	justify-content: center;
	align-items: center;
	z-index: 1010;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
.popup-container::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--color-black);
	opacity: 0.5;
	transition: all 300ms;
}

.popup-container:not(.active)::before {
	opacity: 0;
	visibility: 0;
}
.popup-container:not(.active) .popup {
	opacity: 0;
	transform: translateY(1rem);
}

.popup {
	display: flex;
    flex-direction: column;
	min-width: 40%;
	background: var(--background-color);
	box-shadow: 0 0.5rem 3rem rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius);
	margin: 0;
	transition: transform 300ms, opacity 300ms;
}

.popup .popup-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: var(--line-width) solid var(--line-color);
	padding: var(--popup-padding);
	padding-bottom: calc(var(--popup-padding)* 0.9);
}
.popup .popup-title h2 {
	font-size: 1.25rem;
	line-height: 1.1em;
	margin: 0;
}
.popup .popup-title .close {
	width: 1rem;
	height: 1rem;
	cursor: pointer;
	padding: 0;
	border: 0;
	background: none;
}
.popup .popup-title .close svg {
	display: block;
	width: 100%;
	height: 100%;
}
.popup .popup-title .close svg * {
	stroke-width: 0.1rem
}


.popup .popup-content {
	flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
	padding: var(--popup-padding);
}

.popup .popup-content .split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 2em;
}

.popup .input-wrapper {
	display: block;
	margin-bottom: 0.3em;
}
.popup .input-wrapper label {
	display: block;
	font-size: var(--font-small);
	margin: 0 0 0.5em 0;
	color: var(--color-grey);
}
.popup .input-wrapper input,
.popup .input-wrapper textarea,
.popup .input-wrapper select {
	display: block;
	width: 100% !important;
	background: #fff !important;
	color: inherit !important;
	border: var(--line-width) solid var(--line-color);
}
.popup .input-wrapper input:focus,
.popup .input-wrapper textarea:focus,
.popup .input-wrapper select:focus {
	border-color: var(--color-primary-light);
}

.popup .popup-buttons {
	display: flex;
	flex-direction: row-reverse;
	gap: 1rem;
	border-top: var(--line-width) solid var(--line-color);
	padding: var(--popup-padding);
}
.popup .popup-buttons button {
	display: block;
}
.popup .popup-buttons button.cancel {
	background: #666;
}
.popup .popup-buttons button:focus,
.popup .popup-buttons button:active {
	outline: 0;
}

.popup .popup-buttons button.delete {
	padding-left: 0.65em;
	padding-right: 0.65em;
	background: none;
	color: var(--color-red);
	opacity: 0.5;
}
.popup .popup-buttons button.delete:hover {
	opacity: 0.8;
}



.popup.popup-small {
	min-width: 0;
	width: 20rem;
}
.popup.popup-medium {
	min-width: 0;
	width: 30rem;
}




.custom-input {
	display: flex;
}
.custom-input button {
	padding: 0 0.65em;
	flex-shrink: 0;
	flex-grow: 0;
	background: #fff;
	color: var(--color-grey);
	border: var(--line-width) solid var(--line-color);
	cursor: pointer;
}
.custom-input button:hover {
	color: var(--color-primary);
}
.custom-input button svg {
	width: 0.9em;
	height: 0.9em;
	margin-bottom: -0.08em;
}
.custom-input input {
	-moz-appearance: textfield;
}


.number-input button.v-dec {
	border-top-left-radius: var(--border-radius);
	border-bottom-left-radius: var(--border-radius);
	border-right: 0 !important;
}
.number-input button.v-inc {
	border-top-right-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);
	border-left: 0 !important;
}
.number-input input {
	border-radius: 0;
	text-align: center;
}
.number-input input::-webkit-outer-spin-button,
.number-input input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.date-input button {
	border-top-right-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);
	border-left: 0 !important;
}
.date-input input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.date-input input::-webkit-inner-spin-button,
.date-input input::-webkit-calendar-picker-indicator {
	display: none;
	-webkit-appearance: none;
}



#image_preview {
    position: fixed;
	z-index: 1006;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
}
#image_preview .inner {
	position: relative;
	width: 100%;
	height: 100%;
}
#image_preview .inner img {
	display: block;
	position: absolute;
	max-width: 90%;
	max-height: 90%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 4vw rgba(0, 0, 0, 0.12);
	cursor: zoom-in;
	background: rgba(0, 0, 0, 0.05);
}
#image_preview.zoomed {
    
}
#image_preview.zoomed .inner {
	overflow-y: auto;
}
#image_preview.zoomed .inner::after, #image_preview.zoomed .inner::before  {
	content: "";
	display: block;
	height: 5%;
	width: 100%;
}
#image_preview.zoomed .inner img {
	position: static;
	max-width: 90%;
	max-height: initial;
	left: initial;
	top: initial;
	transform: initial;
	margin: auto;
	cursor: zoom-out;
}




/* == INVOICES == */
.status {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 1.1rem;
	height: 1.1rem;
	margin: -0.05rem;
	background: var(--color-yellow);
	color: #fff;
	border-radius: 0.15rem;
}
.status.completed,
.status.payed {
	opacity: 1;
	background: var(--color-green);
}
.status.overdue {
	opacity: 1;
	background: var(--color-red);
}
.status.canceled,
.status.withdrawn {
	background: #ccc;
}
.status svg {
	width: 70%;
	height: 70%;
}
.status svg {
	outline-width: 0.08rem;
}


.invoice .name {
	font-weight: var(--font-bold);
}
.invoice .sum {
	text-align: right;
}

.invoice.overdue {
	color: var(--color-red);
}

.invoice.withdrawn {
	color: var(--color-grey);
	text-decoration: line-through;
}


.project.canceled {
	color:rgba(34, 34, 34, 0.4)
}
.project.canceled .pay,
.project.canceled .monthly-pay {
	text-decoration: line-through;
}


.largeTable td .user {
	display: flex;
	align-items: center;
	gap: 0.5em;
}
.largeTable td .user img {
	height: 1.3em;
	width: 1.3em;
	margin: -0.65em 0;
	border-radius: 50%;
}


.largeTable td .tag {
	padding: 0.25em 0.6em 0.35em;
	border-radius: calc(var(--border-radius)* 0.6);
	font-size: var(--font-small);
	font-weight: var(--font-bold);
	color: #000;
}


.tag {
	background: var(--color-primary-light);
}
.tag.t-1 {
	background: var(--color-tag-1);
}
.tag.t-2 {
	background: var(--color-tag-2);
}
.tag.t-3 {
	background: var(--color-tag-3);
}
.tag.t-4 {
	background: var(--color-tag-4);
}
.tag.t-5 {
	background: var(--color-tag-5);
}
.tag.t-6 {
	background: var(--color-tag-6);
}


.favicon {
	height: 0.9em;
	vertical-align: -0.12em;
	border-radius: 0.1em;
	margin-right: 0.5em;
}


/* contextmenu */
#contextmenu-overlay {
	position: fixed;
	z-index: 1000;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
#contextmenu {
	position: fixed;
	z-index: 1002;
}
#contextmenu .contextmenu-container {
	background: var(--color-black);
	padding: 0.3em 0;
	box-shadow: 0 0 3vw rgba(0, 0, 0, 0.1);
	animation: 150ms contextmenu-open;
	color: var(--color-white);
	border-radius: var(--border-radius);
}
#contextmenu .contextmenu-item {
	padding: 0.5em 2em 0.5em 1em;
	cursor: pointer;
	white-space: nowrap;
	opacity: 0.8;
}
#contextmenu .contextmenu-item:hover {
	opacity: 1;
	background: #111;
}
#contextmenu .contextmenu-item > svg,
#contextmenu .contextmenu-item > img {
	height: 0.9em;
	width: 0.9em;
	vertical-align: -0.1em;
	margin-right: 0.6em;
	margin-left: -0.2em;
}
.contextmenu-target {
	transition: opacity 100ms ease-in;
	opacity: 0.7;
}

body:not(.show-contextmenu) #contextmenu {
	opacity: 0;
	visibility: hidden;
}

#contextmenu.contextmenu-flip-x {
	transform: translateX(-100%);
}
#contextmenu.contextmenu-flip-Y {
	transform: translateY(-100%);
}
#contextmenu.contextmenu-flip-x.contextmenu-flip-Y {
	transform: translate(-100%, -100%);
}


@keyframes contextmenu-body-outro {
  from { opacity: 1.0; }
  to { opacity: 0.3; }
}

@keyframes contextmenu-open {
	from {
		transform: scale(0);
		opacity: 0.4;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes contextmenu-close {
	from {
		opacity: 1;
	}
	to {
		height: 0;
		opacity: 0;
	}
}

body.show-contextmenu > *:not(.contextmenu-contains-target):not(#contextmenu):not(#contextmenu-overlay) {
	animation: contextmenu-body-outro 100ms ease-in;
	animation-fill-mode: forwards;
}
.contextmenu-contains-target > *:not(.contextmenu-contains-target):not(.contextmenu-target):not(#contextmenu):not(#contextmenu-overlay) {
	animation: contextmenu-body-outro 100ms ease-in;
	animation-fill-mode: forwards;
}