:root {
	--content-width: 1180px;
}

body {
	min-height: 100vh;
	background: #f6f8fb;
}

.app-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	background: #ffffff;
	border-bottom: 1px solid #dfe5ee;
	box-shadow: 0 1px 8px rgba(16, 24, 40, 0.06);
}

.app-nav nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.app-nav a {
	text-decoration: none;
}

.app-nav a.router-link-active {
	font-weight: 700;
}

.refresh-button,
.logout-button {
	width: auto;
	margin: 0;
	padding: 0.35rem 0.8rem;
}

.login-page {
	display: grid;
	place-items: center;
	min-height: 100vh;
}

.login-card {
	width: min(100%, 440px);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	border: 0;
	clip-path: inset(50%);
}

.list-page {
	max-width: var(--content-width);
	padding-top: 2rem;
}

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

.page-header h1 {
	margin-bottom: 0;
}

.eyebrow {
	margin-bottom: 0.25rem;
	color: #667085;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.table-wrap {
	overflow-x: auto;
	background: #ffffff;
	border: 1px solid #dfe5ee;
	border-radius: 0.75rem;
}

.table-wrap table {
	margin-bottom: 0;
}

.table-wrap tbody tr {
	cursor: pointer;
}

.table-wrap tbody tr:hover {
	background: #eef4ff;
}

.error-text {
	color: #b42318;
}

.error-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 0.8rem 1rem;
	color: #7a271a;
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 0.75rem;
}

.error-banner button {
	width: auto;
	margin: 0;
}

.loading-card,
.empty-card {
	padding: 2rem;
	text-align: center;
}

dialog article.detail-dialog {
	width: min(900px, 92vw);
	max-height: 80vh;
	overflow: auto;
}

.detail-dialog th {
	width: 220px;
	white-space: nowrap;
}

.detail-dialog td {
	word-break: break-word;
}

@media (max-width: 720px) {
	.app-nav,
	.page-header {
		align-items: stretch;
		flex-direction: column;
	}

	.app-nav nav {
		flex-wrap: wrap;
	}
}
