/* Compact layout: Tabler's default spacing is roomy, the app is a dense working tool. */
/* Tabler sizes everything in rem, so a smaller root scales text, headings and controls together. */
html {
	font-size: 14px;
}

:root,
[data-bs-theme] {
	--tblr-page-padding: .75rem;
	--tblr-page-padding-y: .75rem;
}

.card {
	--tblr-card-spacer-y: .75rem;
	--tblr-card-spacer-x: 1rem;
	--tblr-card-title-spacer-y: .5rem;
	--tblr-card-cap-padding-y: .5rem;
	--tblr-card-cap-padding-x: 1rem;
}

.card-title {
	--tblr-card-title-margin-bottom: .5rem;
}

.card-md,
.card-sm {
	--tblr-card-body-padding-sm: .75rem;
	--tblr-card-body-padding-md: 1.25rem;
	--tblr-card-body-padding-lg: 1.25rem;
	--tblr-card-body-padding-lg-up: 1.25rem;
}

.table > :not(caption) > * > * {
	padding: .4rem .6rem;
}

.navbar {
	--tblr-navbar-padding-y: 0;
	--tblr-navbar-brand-padding-y: .25rem;
	min-height: 2.75rem;
}

.page-title {
	font-size: 1.125rem;
	line-height: 1.5rem;
}

.page-header {
	min-height: 0;
}

.navbar .nav-link {
	--tblr-nav-link-padding-y: .35rem;
}

.alert {
	--tblr-alert-padding-y: .5rem;
	--tblr-alert-padding-x: .75rem;
	--tblr-alert-margin-bottom: .75rem;
}

.form-footer {
	--tblr-form-footer-margin-top: 1rem;
}

.footer {
	padding: .75rem 0;
}

.list-group {
	--tblr-list-group-item-padding-y: .5rem;
	--tblr-list-group-item-padding-x: .75rem;
}

.empty {
	--tblr-empty-padding-md: 1.25rem;
	--tblr-empty-icon-margin-bottom: .5rem;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--tblr-border-radius);
	background: var(--tblr-primary);
	color: #fff;
	font-size: 1.25rem;
}

.status-hero .status-icon {
	font-size: 2.5rem;
	line-height: 1;
}

.token-mask {
	font-family: var(--tblr-font-monospace);
	letter-spacing: .05em;
}

.table-events td {
	vertical-align: middle;
}

.text-break-anywhere {
	overflow-wrap: anywhere;
}

/* Tables become cards on phones. */
@media (max-width: 767.98px) {
	.table-mobile-cards thead {
		display: none;
	}

	.table-mobile-cards tr {
		display: block;
		padding: .5rem .75rem;
		border-bottom: var(--tblr-border-width) solid var(--tblr-border-color);
	}

	.table-mobile-cards td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: .25rem 0;
		border: 0;
		text-align: right;
	}

	.table-mobile-cards td::before {
		content: attr(data-label);
		color: var(--tblr-secondary);
		text-align: left;
		font-weight: 500;
	}

	.table-mobile-cards td[data-label=""]::before {
		content: none;
	}
}

.impersonation-bar {
	padding: .5rem 0;
	background: var(--tblr-orange);
	color: #fff;
	font-size: .875rem;
}

/* Denser tables, the admin lists get long. */
.card-table.table-sm > :not(caption) > * > * {
	padding-top: .25rem;
	padding-bottom: .25rem;
}

.card-table.table-sm thead th {
	padding-top: .35rem;
	padding-bottom: .35rem;
}

details > summary {
	cursor: pointer;
}

/* Collapsible groups of unpaired entries: the marker stays left of the whole header. */
.card-unpaired details > summary { display: list-item; }
.card-unpaired details > summary > .w-100-summary { width: calc(100% - 1.25rem); vertical-align: top; }
.card-unpaired details > summary > .text-secondary { padding-left: 1.25rem; }

/* A card shown inside a modal body: the modal gives the frame. */
.modal-body > .card {
	margin: 0 !important;
	border: 0;
	box-shadow: none;
}
