/* navbar is 4px taller than lib's 40px (the header has 2px extra padding top and bottom, see nav.tpl). 
   #container has to shrink by the same amount, like in lib/css/global.css. */
header.navbar {
	max-height: 44px;
}
#container {
	height: calc(100% - 44px);
}

/* on a small screen, the logo in the middle of the navbar, between the menu button and the user menu (nav.tpl). */
@media (max-width: 767.98px) {
	header.navbar .navbar-brand {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		margin: 0;
	}
}

/* code values in a box, like github markdown: add .code-box to a container. keeps bootstrap's code colour. */
.code-box code {
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: .375rem;
	padding: .1em .4em;
	font-size: 85%;
	white-space: nowrap;
}

/* icon-only buttons in a row (edit, delete): the same square size, icon centered both ways. */
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	padding: 0;
}

/* the spinner (Spinner in global.js) above an open modal, eg. while a modal's form saves - bootstrap puts every modal at
   the same level, so the modal covered the spinner. */
#modal-spinner {
	z-index: 1070;
}
.modal-backdrop.spinner-backdrop {
	z-index: 1065;
}

/* label and value pairs (<dl class="details-list"><dt>..</dt><dd>..</dd>), eg. a user's details: the labels as wide as
   the widest one, not a fixed share of the page. */
.details-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 1.5rem;
	row-gap: .25rem;
}
.details-list dd {
	margin: 0;
}
