body {
	background: #f6f7f9;
}

.app-body {
	min-height: calc(100vh - 52px);
}

/* Users without an editor role: the changes are hidden (SEPA's ACL would refuse them anyway) */
body.read-only :is([data-act=add], [data-act=del], [data-act=edit], [data-act=bulk], [data-act=rm], [data-act=topic],
	[data-act=untopic], [data-act=link], [data-act=unlink], [data-act=fix], [data-act=clean], [data-act=child],
	[data-act=apply], [data-act=wizard]) {
	display: none !important;
}

.app-sidebar {
	width: 230px;
	flex-shrink: 0;
	background: #fff;
}

.app-sidebar .nav-link {
	color: #333;
	padding: 0.45rem 1.2rem;
	border-left: 3px solid transparent;
}

.app-sidebar .nav-link i {
	width: 1.4rem;
	display: inline-block;
}

.app-sidebar .nav-link.active {
	color: var(--app-primary);
	background: #eef2f7;
	border-left-color: var(--app-primary);
	font-weight: 600;
}

.sidebar-heading {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #8a94a3;
	padding: 0.9rem 1.2rem 0.3rem;
}

main {
	min-width: 0;
}

.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.page-header h2 {
	margin: 0;
	font-size: 1.5rem;
}

.card {
	border: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 6px rgba(0, 0, 0, 0.04);
}

.stat-card .stat-value {
	font-size: 2rem;
	font-weight: 600;
	color: var(--app-primary);
	line-height: 1.1;
}

.stat-card a {
	text-decoration: none;
	color: inherit;
}

.mono,
code.iri {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.82rem;
	word-break: break-all;
}

code.iri {
	color: #3b4a5e;
}

.table td,
.table th {
	vertical-align: middle;
}

.table-actions {
	white-space: nowrap;
	text-align: right;
	width: 1%;
}

.payload {
	max-width: 420px;
	max-height: 4.5em;
	overflow: hidden;
	font-family: ui-monospace, Menlo, monospace;
	font-size: 0.78rem;
	color: #555;
	word-break: break-all;
}

pre.payload-full {
	max-height: 260px;
	overflow: auto;
	background: #f3f4f6;
	padding: 0.6rem;
	font-size: 0.78rem;
	border-radius: 0.3rem;
	white-space: pre-wrap;
	word-break: break-all;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: #eef2f7;
	border-radius: 1rem;
	padding: 0.15rem 0.35rem 0.15rem 0.65rem;
	margin: 0.15rem;
	font-family: ui-monospace, Menlo, monospace;
	font-size: 0.8rem;
}

.chip .btn {
	--bs-btn-padding-y: 0;
	--bs-btn-padding-x: 0.3rem;
	line-height: 1.2;
}

.place-tree ul {
	list-style: none;
	padding-left: 1.4rem;
	margin: 0;
}

.place-tree > ul {
	padding-left: 0;
}

.place-tree li > .node {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0.4rem;
	border-radius: 0.3rem;
}

.place-tree li > .node:hover {
	background: #f1f4f8;
}

.place-tree .node .actions {
	margin-left: auto;
	visibility: hidden;
}

.place-tree .node:hover .actions {
	visibility: visible;
}

#places-map,
.picker-map {
	height: 380px;
	border-radius: 0.4rem;
}

.picker-map {
	height: 240px;
}

.wizard-table input.form-control-sm,
.wizard-table select {
	min-width: 6rem;
}

.sticky-top-filter {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #fff;
}
