@font-face {
	font-family: "Roboto";
	src: url("assets/fonts/roboto/Roboto-Light.woff2") format("woff2");
	font-weight: 300;
}
@font-face {
	font-family: "Roboto";
	src: url("assets/fonts/roboto/Roboto-Regular.woff2") format("woff2");
	font-weight: 400;
}
@font-face {
	font-family: "Roboto";
	src: url("assets/fonts/roboto/Roboto-Medium.woff2") format("woff2");
	font-weight: 500;
}
@font-face {
	font-family: "Roboto";
	src: url("assets/fonts/roboto/Roboto-Bold.woff2") format("woff2");
	font-weight: 700;
}
@font-face {
	font-family: "icomoon";
	src:
		url("assets/fonts/icomoon/icomoon.woff") format("woff"),
		url("assets/fonts/icomoon/icomoon.ttf") format("truetype");
}

:root {
	--primary-color: #074f57;
	--primary-text-color: #fff;
	--secondary-color: #2d323e;
	--secondary-text-color: #fff;
	--warn-color: #f44336;
	--background-color: #fff;
	--background-text-color: #000;

	--header-height: 198px;
	--toolbar-height: 64px;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	font-family: "Roboto", "Helvetica Neue", sans-serif;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.87);
	background: #f5f5f5;
}

[class^="icon-"],
[class*=" icon-"] {
	font-family: "icomoon";
	font-style: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

.icon-alarm:before { content: "\e619"; }
.icon-backup-restore:before { content: "\e655"; }
.icon-calendar-clock:before { content: "\e6ce"; }
.icon-chart-bar:before { content: "\e6fc"; }
.icon-checkbox-multiple-marked:before { content: "\e70f"; }
.icon-close:before { content: "\e72b"; }
.icon-magnify:before { content: "\e8eb"; }
.icon-plus:before { content: "\e9ab"; }
.icon-trash:before { content: "\ea92"; }
.icon-clipboard-check:before { content: "\e721"; }
.icon-home:before { content: "\e88d"; }
.icon-map-marker:before { content: "\e8f1"; }
.icon-view-dashboard:before { content: "\eab9"; }
.icon-account-multiple:before { content: "\e60a"; }
.icon-chevron-down:before { content: "\e715"; }
.icon-chevron-left:before { content: "\e716"; }
.icon-chevron-right:before { content: "\e717"; }
.icon-help-circle:before { content: "\e885"; }
.icon-logout:before { content: "\e8e3"; }
.icon-sitemap:before { content: "\ea17"; }
.icon-calendar:before { content: "\e6d5"; }
.icon-checkbox-marked:before { content: "\e70b"; }
.icon-cube:before { content: "\e770"; }
.icon-security:before { content: "\e9f8"; }
.icon-map-marker-multiple:before { content: "\e8ee"; }
.icon-checkbox-marked-outline:before { content: "\e70a"; }
.icon-apps:before { content: "\e62d"; }
.icon-check:before { content: "\e703"; }

.icon {
	color: rgba(0, 0, 0, 0.54);
}

.app {
	display: flex;
	height: 100%;
}

/* ---------- navigation ---------- */

.navigation {
	width: 240px;
	min-width: 240px;
	background: var(--secondary-color);
	color: var(--secondary-text-color);
	z-index: 60;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.navigation-header {
	height: var(--toolbar-height);
	display: flex;
	align-items: center;
	padding: 0 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.nav_app-logo-lockup {
	height: 30px;
	width: 140px;
	background-image: url("assets/svg/mobaro-logo-lockup.svg");
	background-size: contain;
	background-repeat: no-repeat;
}

.main-navigation {
	padding: 8px 0;
	list-style: none;
	margin: 0;
}

.main-navigation .group {
	padding: 20px 24px 8px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}

.main-navigation-item {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 44px;
	padding: 0 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	position: relative;
}

.main-navigation-item a {
	display: flex;
	align-items: center;
	gap: 16px;
	color: inherit;
	text-decoration: none;
	width: 100%;
	height: 100%;
}

.main-navigation-item .icon {
	color: inherit;
	font-size: 16px;
}

.main-navigation-item.navigation-item-selected {
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-weight: 500;
}

.main-navigation-item.navigation-item-selected .active-indicator {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--primary-color);
	filter: brightness(1.8);
}

/* ---------- page ---------- */

.content-container {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.app-toolbar {
	height: var(--toolbar-height);
	min-height: var(--toolbar-height);
	background: var(--secondary-color);
	color: var(--secondary-text-color);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	z-index: 55;
}

.app-toolbar .toolbar-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	height: 100%;
	font-size: 13px;
}

.app-toolbar .icon {
	color: inherit;
	font-size: 20px;
}

.app-toolbar .toolbar-separator {
	width: 1px;
	height: 100%;
	background: rgba(255, 255, 255, 0.12);
}

.app-toolbar .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.app-toolbar .user {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.app-toolbar .user-title {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
}

.page-layout {
	position: relative;
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.top-bg {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: var(--header-height);
	background: var(--primary-color);
	z-index: 1;
}

.center {
	position: relative;
	z-index: 2;
	margin: 0 32px 32px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.header {
	height: calc(var(--header-height) - var(--toolbar-height));
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.logo {
	display: flex;
	align-items: center;
	font-size: 24px;
	margin-bottom: 16px;
	color: var(--primary-text-color);
}

.logo .icon {
	color: var(--primary-text-color);
	margin-right: 15px;
	font-size: 24px;
}

.search-wrapper {
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	max-width: 480px;
}

.search {
	display: flex;
	align-items: center;
	padding: 0 16px;
	height: 48px;
}

.search .icon {
	font-size: 24px;
	margin-right: 8px;
}

.search input {
	flex: 1;
	border: 0;
	outline: 0;
	font-family: inherit;
	font-size: 13px;
	background: transparent;
}

.content-card {
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 24px;
	height: var(--toolbar-height);
	min-height: var(--toolbar-height);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.toolbar-group {
	display: flex;
	align-items: center;
	gap: 4px;
}

.md-icon-button {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: default;
	color: rgba(0, 0, 0, 0.3);
	font-size: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.table-toolbar-divider {
	width: 1px;
	height: 24px;
	margin: 0 8px;
	background: rgba(0, 0, 0, 0.12);
}

.filter-menu {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(0, 0, 0, 0.54);
	font-size: 12px;
}

.filter-menu .icon {
	font-size: 22px;
	color: rgba(0, 0, 0, 0.54);
}

.pagination-info {
	color: rgba(0, 0, 0, 0.54);
	font-size: 12px;
	margin-right: 8px;
}

td.select-cell {
	width: 48px;
	padding-right: 0;
}

.md-checkbox {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, 0.54);
	border-radius: 2px;
	vertical-align: middle;
}

/* ---------- table ---------- */

.table-container {
	overflow-x: hidden;
	overflow-y: auto;
	flex: 1;
	-webkit-overflow-scrolling: touch;
}

table {
	width: 100%;
	border-collapse: collapse;
}

thead th {
	text-align: left;
	padding: 0 12px;
	height: 48px;
	font-size: 12px;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.54);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	white-space: nowrap;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

tbody td {
	padding: 0 12px;
	height: 56px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 13px;
	color: rgba(0, 0, 0, 0.87);
}

tbody tr.certified {
	cursor: pointer;
}

tbody tr.certified:hover {
	background: rgba(0, 0, 0, 0.03);
}

tbody tr.expired td {
	color: rgba(0, 0, 0, 0.38);
}

td.type-cell {
	width: 20px;
	padding-right: 0;
}

td.type-cell .icon {
	font-size: 18px;
}

.tag-box {
	padding: 6px 5px;
	display: inline-block;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 1px;
	text-align: center;
	white-space: nowrap;
	border: 1px solid lightgray;
	background-color: whitesmoke;
	opacity: 0.4;
	margin-right: 2px;
}

.tag-box.active {
	color: white;
	opacity: 1;
	background-color: #757575;
	border: 1px solid #757575;
}

/* ---------- dialog ---------- */

.backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.backdrop[hidden] {
	display: none;
}

.dialog {
	background: #fff;
	border-radius: 6px;
	animation: dialog-in 160ms ease-out;
	box-shadow: 0 11px 15px rgba(0, 0, 0, 0.3);
	width: 560px;
	max-width: calc(100vw - 48px);
	overflow: hidden;
}

.dialog-toolbar {
	background: var(--primary-color);
	color: var(--primary-text-color);
	height: var(--toolbar-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px 0 24px;
	font-size: 18px;
	font-weight: 500;
}

.dialog-toolbar .md-icon-button {
	color: var(--primary-text-color);
	cursor: pointer;
}

@keyframes dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

.dialog-content {
	padding: 24px;
	font-size: 14px;
	line-height: 1.6;
}

.dialog-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	margin-bottom: 20px;
	border-radius: 6px;
	background: linear-gradient(135deg, rgba(7, 79, 87, 0.08), rgba(7, 79, 87, 0));
	border: 1px solid rgba(7, 79, 87, 0.12);
}

.dialog-logo {
	height: 36px;
	width: auto;
	border-radius: 3px;
}

.dialog-headline {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary-color);
}

.dialog-meta {
	color: rgba(0, 0, 0, 0.54);
	font-size: 12px;
}

.dialog-cta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: 6px;
	background: var(--primary-color);
	color: var(--primary-text-color);
	font-weight: 500;
	text-decoration: none;
}

.dialog-cta .icon {
	color: inherit;
	font-size: 20px;
}

.dialog-actions {
	display: flex;
	justify-content: flex-end;
	padding: 8px 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.md-button {
	border: 0;
	background: transparent;
	color: var(--primary-color);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	padding: 10px 16px;
	border-radius: 3px;
	cursor: pointer;
}

.md-button:hover {
	background: rgba(0, 0, 0, 0.06);
}

tbody td {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

tbody td:last-child {
	overflow: hidden;
}

.certification-badge {
	height: 24px;
	width: auto;
	vertical-align: middle;
}

td.certification-cell,
thead th:nth-child(4) {
	text-align: center;
}

.icon-key-variant:before { content: "\e8b5"; }
.icon-archive:before { content: "\e62e"; }
.icon-alert-box:before { content: "\e61b"; }
.icon-tag-multiple:before { content: "\ea5d"; }
.icon-export:before { content: "\e7c8"; }
.icon-cog:before { content: "\e743"; }
.icon-map-marker:before { content: "\e8f1"; }

.search button.md-button {
	margin-left: 8px;
}

.poll-status {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.38);
	white-space: nowrap;
}

.poll-status.fresh {
	color: var(--primary-color);
	font-weight: 500;
}

tbody tr.row-new td {
	background: rgba(7, 79, 87, 0.07);
	animation: row-flash 1.2s ease-out;
}

tbody tr.row-new td:first-child {
	box-shadow: inset 3px 0 0 var(--primary-color);
}

@keyframes row-flash {
	from {
		background: rgba(7, 79, 87, 0.28);
	}
}

.new-badge {
	display: inline-block;
	margin-right: 8px;
	padding: 3px 7px;
	border-radius: 3px;
	background: var(--primary-color);
	color: var(--primary-text-color);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	vertical-align: middle;
}

td.created-column {
	color: rgba(0, 0, 0, 0.54);
}

.filter-tab {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.87);
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 6px;
}

.filter-select {
	white-space: nowrap;
	color: rgba(0, 0, 0, 0.87);
}

.filter-tab .icon,
.filter-select .icon {
	font-size: 16px;
	vertical-align: middle;
}

.tag-box-single {
	display: inline-block;
	opacity: 1;
	font-size: 12px;
	font-weight: normal;
	letter-spacing: normal;
	margin-right: 4px;
}

.tag-box.status-created,
.tag-box.priority-normal {
	background-color: whitesmoke;
	border: 1px solid lightgray;
}

.tag-box.status-started {
	background-color: rgba(199, 213, 237, 0.7);
	border: 1px solid #adbfdd;
}

.tag-box.status-finished {
	background-color: rgba(208, 242, 220, 0.7);
	border: 1px solid #b6d3c0;
}

.tag-box.priority-high {
	background-color: #a90100;
	border: 1px solid lightgray;
	color: whitesmoke;
}

.tag-box.priority-high .icon {
	font-size: 17px;
	color: whitesmoke;
	vertical-align: sub;
}

td.priority-column {
	text-align: center;
}

.poll-status.error {
	color: var(--warn-color);
}

.table-empty {
	padding: 24px;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.54);
}

/* ---------- tablet ---------- */

@media (max-width: 1440px) {
	:root {
		--header-height: 140px;
		--toolbar-height: 52px;
	}

	.navigation {
		width: 200px;
		min-width: 200px;
	}

	.header {
		padding: 16px;
	}

	.logo {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.search {
		height: 42px;
	}

	tbody td {
		height: 48px;
	}

	thead th {
		height: 44px;
	}

	.toolbar {
		padding: 4px 16px;
	}

	.center {
		margin: 0 16px 16px;
	}

	thead th,
	tbody td {
		padding: 0 12px;
		font-size: 13px;
	}

	.assignments-table th:nth-child(7),
	.assignments-table td:nth-child(7),
	.assignments-table th:nth-child(8),
	.assignments-table td:nth-child(8) {
		display: none;
	}

	.schedules-table th:nth-child(6),
	.schedules-table td:nth-child(6) {
		display: none;
	}

	.filter-menu {
		gap: 10px;
		font-size: 11px;
	}

	.app-toolbar .toolbar-item {
		padding: 0 10px;
	}
}

@media (max-width: 1300px) {
	.navigation {
		width: 64px;
		min-width: 64px;
	}

	.navigation .group,
	.main-navigation-item span,
	.nav_app-logo-lockup {
		display: none;
	}

	.navigation-header::before {
		content: "";
		width: 30px;
		height: 30px;
		background-image: url("assets/svg/mobaro-logo.svg");
		background-size: contain;
		background-repeat: no-repeat;
	}

	.main-navigation-item {
		justify-content: center;
		padding: 0;
		height: 48px;
	}

	.main-navigation-item a {
		justify-content: center;
		gap: 0;
	}

	.main-navigation-item .icon {
		font-size: 20px;
	}

	.navigation-header {
		justify-content: center;
		padding: 0;
	}

	.assignments-table th:nth-child(9),
	.assignments-table td:nth-child(9) {
		display: none;
	}

	.schedules-table th:nth-child(7),
	.schedules-table td:nth-child(7) {
		display: none;
	}

	.app-toolbar .user,
	.app-toolbar .toolbar-item span {
		display: none;
	}

	.filter-select {
		display: none;
	}
}
