/* Wedding RSVP backoffice — thin glue on top of Tabler.
 *
 * Component styling comes from Tabler; this file only defines the page
 * shell (.page → .page-sidebar + .page-body) the spec asks for, plus two
 * content helpers. Keep it small — no design system in here.
 */

.page {
	min-height: 100vh;
	display: flex;
	/* Tabler's own .page rule sets flex-direction: column — ours must win,
	 * otherwise the sidebar stacks above the content. */
	flex-direction: row;
	align-items: stretch;
}

.page-sidebar {
	flex: 0 0 auto;
	width: 15rem;
	display: flex;
	flex-direction: column;
	padding: 1rem 0.75rem;
	border-right: 1px solid var(--tblr-border-color, #e6e7e9);
}

.sidebar-brand-link {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	margin-bottom: 0.75rem;
	padding: 0 0.5rem;
}

.sidebar-search {
	padding: 0 0.25rem;
}

.page-sidebar .nav-link {
	margin-bottom: 0.125rem;
}

.sidebar-logout {
	margin-top: auto;
	padding: 0.75rem 0.25rem 0;
}

.page-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	/* Tabler's .page-body adds vertical margins; the shell has its own padding. */
	margin: 0;
	padding: 1.25rem 1.5rem;
}

.page-header {
	margin-bottom: 0.5rem;
}

.page-content {
	flex: 1 1 auto;
}

/* The invitation code: big, selectable, obviously the thing to copy */
.invitation-code {
	font-family: var(--tblr-font-monospace, monospace);
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 0.25rem 0 0.5rem;
	user-select: all;
}

/* Login: centered card on small and large screens alike */
.page-center {
	align-items: center;
	justify-content: center;
}

/* Phones: stack the shell instead of hiding the sidebar (admin only) */
@media (max-width: 991.98px) {
	.page {
		display: block;
	}

	.page-sidebar {
		width: auto;
		border-right: 0;
		border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.page-sidebar .nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.sidebar-logout {
		margin-top: 0;
		margin-left: auto;
		padding: 0;
	}

	.page-body {
		padding: 1rem;
	}
}
