:root {
	--navy-900: #0e2d49;
	--navy-700: #1f5e83;
	--navy-500: #3a89ad;
	--mist-100: #f4f6f9;
	--mist-200: #e6edf4;
	--mist-300: #d1dbe6;
	--white: #ffffff;
	--danger: #c2413b;
	--success: #0f6b4d;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Nunito Sans", "Segoe UI", sans-serif;
	background: var(--mist-100);
	color: var(--navy-900);
	line-height: 1.5;
}

body.login-page {
	min-height: 100vh;
	position: relative;
	background:
		linear-gradient(135deg, rgba(9, 18, 32, 0.86), rgba(9, 18, 32, 0.86)),
		url("bg.png") center / cover no-repeat;
}

body.login-page::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.22), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(14, 116, 144, 0.18), transparent 48%);
	pointer-events: none;
	z-index: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

.admin-shell {
	display: grid;
	grid-template-columns: 240px 1fr;
	min-height: 100vh;
}

.admin-sidebar {
	background: var(--navy-900);
	color: var(--white);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 0;
	height: 100vh;
	align-self: start;
	overflow-y: auto;
}

.sidebar-logo {
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: 0.4px;
}

.sidebar-meta {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
}

.nav-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nav-link {
	padding: 10px 12px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
	background: rgba(255, 255, 255, 0.16);
	color: var(--white);
}

.admin-content {
	padding: 28px clamp(16px, 3vw, 36px);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.page-title {
	font-size: 1.5rem;
	font-weight: 800;
}

.card {
	background: var(--white);
	border: 1px solid var(--mist-300);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 12px 30px rgba(14, 45, 73, 0.08);
	margin-bottom: 20px;
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.add-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--navy-700);
	color: var(--white);
	font-weight: 700;
	border: none;
	cursor: pointer;
}

.add-trigger .plus {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--white);
	color: var(--navy-700);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 20px;
	align-items: start;
}

.col-span-2 {
	grid-column: 1 / -1;
}

.left-stack {
	display: grid;
	gap: 12px;
}

.tall-textarea {
	min-height: 160px;
}

.form-grid.single {
	grid-template-columns: 1fr;
}

label {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="url"],
textarea,
select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--mist-300);
	font-size: 0.95rem;
	background: var(--white);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

.checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

button,
.button {
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 700;
	cursor: pointer;
	background: var(--navy-700);
	color: var(--white);
}

button.secondary,
.button.secondary {
	background: var(--mist-200);
	color: var(--navy-900);
}

button.danger {
	background: var(--danger);
}

.table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.table th,
.table td {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid var(--mist-200);
	font-size: 0.95rem;
}

/* Keep long links from forcing table to overflow horizontally. The Location
   column uses short link text in the admin list; this ensures it stays tidy. */
.table { table-layout: auto; }
.table .col-location a {
	display: inline-block;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--navy-700);
}
@media (max-width: 900px) {
    .table .col-location a {
        max-width: 100%;
        white-space: normal;
    }
}

.badge {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	background: var(--mist-200);
	color: var(--navy-900);
}

.badge.active {
	background: rgba(15, 107, 77, 0.15);
	color: var(--success);
}

.notice {
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-weight: 600;
}

.notice.success {
	background: #e8f7f1;
	color: var(--success);
	border: 1px solid #bfe8d6;
}

.notice.error {
	background: #fdecec;
	color: #9a2b2b;
	border: 1px solid #f3c2c2;
}

.image-preview {
	width: 160px;
	height: 120px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--mist-200);
}

/* Enhanced file input UI */
.file-input {
	display: flex;
	gap: 10px;
	align-items: center;
	border: 1px solid var(--mist-300);
	padding: 8px 10px;
	border-radius: 12px;
	background: var(--white);
	width: 100%;
}

.file-input input[type="file"] {
	display: none;
}

.file-btn {
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--navy-700);
	color: var(--white);
	font-weight: 700;
	cursor: pointer;
	border: none;
	white-space: nowrap;
}

.file-info {
	color: #516277;
	font-size: 0.92rem;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-preview {
	min-width: 120px;
	min-height: 80px;
}

.file-preview img {
	width: 120px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--mist-200);
}

.file-clear {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: #fff;
	color: var(--danger);
	border: 1px solid #f3c2c2;
	cursor: pointer;
	font-weight: 800;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Repeatable group layout for modal multi-add */
.repeatable-container {
	margin-top: 8px;
	/* allow repeatable content to take full modal width */
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
.repeatable-wrapper {
	display: block;
}
.repeatable-group {
	position: relative;
	border: 1px solid var(--mist-200);
	padding: 12px 14px 14px;
	border-radius: 12px;
	background: var(--white);
	margin-bottom: 12px;
}
.repeatable-group label {
	font-size: 0.78rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #6b7a8a;
}
.repeatable-group .group-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
	align-items: start;
}

/* single-row variant: Title | Sort | Description | Image/Controls */
.repeatable-group .group-row.inline {
	display: grid;
	grid-template-columns: 260px 110px 1fr 320px;
	gap: 16px;
	align-items: start;
}
.repeatable-group .group-row.inline .description-col textarea {
	min-height: 42px;
}
.repeatable-group .group-bodies {
	margin-top: 12px;
	/* layout description + side column (image/controls) horizontally when space allows */
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 16px;
	align-items: start;
}
.repeatable-group input[type="text"],
.repeatable-group input[type="number"],
.repeatable-group input[type="email"],
.repeatable-group input[type="url"],
.repeatable-group textarea {
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 0.92rem;
}
.repeatable-group textarea {
	/* default to compact height matching other inputs; expand on user input */
	min-height: 42px;
}
.repeatable-group .file-input {
	padding: 6px 8px;
	border-radius: 10px;
	min-height: 42px;
}
.repeatable-group .file-btn {
	background: #f1f4f8;
	color: #2d3a47;
	border: 1px solid #d5dee8;
	font-weight: 600;
}
.repeatable-group .file-info {
	color: #6b7a8a;
	font-size: 0.9rem;
}
.repeatable-group .file-preview {
	display: none;
}
.repeatable-group .checkbox-row {
	margin-top: 0;
	gap: 6px;
}
.add-group {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: #eef4ff;
	color: var(--navy-700);
	font-weight: 800;
	border: 1px solid #d7e4ff;
	cursor: pointer;
	box-shadow: 0 8px 16px rgba(14, 45, 73, 0.08);
}
.add-group-centered {
	text-align: center;
	margin-top: 10px;
}
.group-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #fff;
	color: var(--danger);
	border: 1px solid #f3c2c2;
	cursor: pointer;
	font-weight: 800;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
/* When remove button is placed inside a grid row, make it inline and centered */
.repeatable-group .group-row .group-remove,
.repeatable-group .group-row.inline .group-remove {
	position: static;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #fff;
	color: var(--danger);
	border: 1px solid #f3c2c2;
	cursor: pointer;
	font-weight: 800;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	margin-top: 0;
}

	/* Document-style single-row: Title | Sort | Address | Landmark | Image | Location */
	.repeatable-group.doc-row .group-row {
		display: grid;
		/* Responsive 6-column layout: Branch | Sort | Address | Landmark | Image | Location
		   - shortened Address min size to avoid overlap with the remove button
		   - slightly increase final (Location) column so URL can wrap comfortably */
		grid-template-columns: minmax(150px, 1fr) minmax(70px, 0.35fr) minmax(180px, 1.3fr) minmax(140px, 0.9fr) minmax(150px, 0.9fr) minmax(220px, 1.2fr) 44px;
		gap: 14px;
		/* keep columns equal height so inputs can be aligned to the same baseline */
		align-items: stretch;
		min-height: 64px;
	}

/* Make each grid cell a column that pushes the actual control to the bottom
   so all inputs line up horizontally (label above, control aligned) */
.repeatable-group.doc-row .group-row > :not(.group-remove) {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
/* Make Title and Sort inputs match the height of Description and file controls */
.repeatable-group.doc-row input[type="text"],
.repeatable-group.doc-row input[type="number"] {
	min-height: 42px;
	height: 42px;
	padding: 8px 10px;
	box-sizing: border-box;
}
.repeatable-group.doc-row .file-input {
	width: 100%;
	border-color: #bfcfe0;
	background: #fff;
}

/* Remove the surrounding box for document-style rows so fields sit inline */
.repeatable-group.doc-row {
	border: none;
	background: transparent;
	padding: 6px 0;
	margin-bottom: 8px;
	border-radius: 0;
}

.repeatable-group.doc-row .file-btn {
	/* neutral, non-blue upload button to match the clean document style */
	background: #f1f4f8;
	color: #2d3a47;
	border: 1px solid #d5dee8;
	padding: 8px 12px;
	border-radius: 8px;
}

.repeatable-group.doc-row .image-col { 
	/* stack label above file control; the file-input will be positioned
	   relative so the remove button can be absolutely positioned inside it */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 6px;
}

/* image column: file control and remove button centered and aligned */
.repeatable-group.doc-row .image-col {
	/* stack label above file control; keep layout simple */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 6px;
}

.repeatable-group.doc-row .image-col .file-input {
	/* let the file control fill its column responsively */
	width: 100%;
	height: 42px;
	margin-top: 0; /* align with other input tops */
	box-sizing: border-box;
	padding: 0 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 10px;
	border: 1px solid #bfcfe0;
	background: #fff;
	position: relative; /* so remove button can be absolutely positioned inside */
}

.repeatable-group.doc-row .image-col .file-input .file-btn {
	padding: 6px 10px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.repeatable-group.doc-row .image-col .doc-url-input {
	width: 100%;
	/* reduce max width so the Address column doesn't collide with the remove button */
	max-width: 260px;
	height: 42px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid #bfcfe0;
	box-sizing: border-box;
	font-size: 0.92rem;
}

/* general class for URL inputs used in branch forms/modals */
.doc-url-input {
	width: 100%;
	max-width: 100%;
	height: 42px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid #bfcfe0;
	box-sizing: border-box;
	font-size: 0.92rem;
}


.repeatable-group.doc-row .image-col .file-input .file-info {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.repeatable-group.doc-row .image-col .file-input .group-remove {
	position: absolute;
	/* nudge the remove button slightly inward so it no longer overlaps the URL field */
	right: -34px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* When the remove button is rendered as a grid child (appended to the .group-row)
   center it inside the final column so it sits after the Location URL field. */
.repeatable-group.doc-row .group-row > .group-remove {
	grid-column: 7;
	justify-self: center;
	align-self: end;
	margin-left: 0;
	margin-bottom: 4px;
	display: inline-flex;
}
/* Branch preview carousel styles */
.branch-preview-card .branch-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}
.branch-preview-card .branch-details h3 {
	margin-bottom: 8px;
	color: var(--navy-900);
}
.branch-preview-card .branch-details p {
	color: #516277;
	margin-bottom: 8px;
}
.branch-preview-card .branch-map iframe {
	width: 100%;
	height: 320px;
	border: 0;
	border-radius: 12px;
}
.branch-controls {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 12px;
	align-items: center;
}
.branch-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: none;
	background: var(--mist-200);
	cursor: pointer;
}
.branch-dot.active {
	background: var(--navy-700);
}
.branch-prev, .branch-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 0;
	background: rgba(14,45,73,0.08);
	cursor: pointer;
}
@media (max-width: 700px) {
	.branch-preview-card .branch-grid {
		grid-template-columns: 1fr;
	}
	.branch-controls .branch-dot {
		display: none;
	}
	.branch-controls .branch-prev, .branch-controls .branch-next {
		display: inline-flex;
	}
}
@media (min-width: 701px) {
	.branch-controls .branch-prev, .branch-controls .branch-next {
		display: none;
	}
}

/* labels: cleaner, standard case */
.repeatable-group.doc-row label {
	text-transform: none;
	font-weight: 600;
	color: #516277;
	font-size: 0.85rem;
	margin-bottom: 6px;
}

.repeatable-group.doc-row .file-input:focus-within {
	outline: none;
	box-shadow: none;
	border-color: #bfcfe0;
}

@media (max-width: 900px) {
    .repeatable-group.doc-row .group-row {
        grid-template-columns: 1fr;
    }
    .repeatable-group .group-row .group-remove {
        margin-left: 0;
        margin-top: 8px;
    }
}
@media (max-width: 900px) {
	.repeatable-group .group-row {
		grid-template-columns: 1fr;
	}
	.repeatable-group .group-bodies {
		grid-template-columns: 1fr;
	}
	.repeatable-group .group-row.inline {
		grid-template-columns: 1fr;
	}
}

.modal {
	position: fixed;
	inset: 0;
	background: rgba(14, 45, 73, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 2000;
}

.modal.open {
	display: flex;
}

.modal-card {
	/* increase modal max width so fields can be arranged horizontally */
	width: min(1600px, 96vw);
	max-height: 92vh;
	overflow: auto;
	background: var(--white);
	border-radius: 16px;
	border: 1px solid var(--mist-300);
	padding: 28px;
	box-shadow: 0 20px 60px rgba(14, 45, 73, 0.22);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.modal-close {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid var(--mist-300);
	background: var(--white);
	color: var(--navy-900);
	font-weight: 800;
	cursor: pointer;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.modal-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

body.modal-open {
	overflow: hidden;
}

.file-input:hover {
	border-color: var(--mist-300);
}

.login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	position: relative;
	z-index: 1;
}

.login-card {
	width: min(520px, 92%);
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid rgba(148, 163, 184, 0.4);
	box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
	position: relative;
	overflow: hidden;
	color: #0f172a;
}

.login-card-inner {
	position: relative;
	padding: 32px;
}

.login-back {
	position: absolute;
	left: 18px;
	top: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(14, 45, 73, 0.06);
	background: transparent;
	color: #0f172a;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
}

.login-back:hover {
	color: #1d4ed8;
}

.login-back-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.login-brand {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 6px 0 18px 0;
}

.login-brand img {
	width: 140px;
	height: auto;
	object-fit: contain;
	display: block;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.login-card h1 {
	font-size: 1.6rem;
	margin-bottom: 8px;
	color: #0f172a;
}

.login-card p {
	color: #475569;
	margin-bottom: 16px;
}

.login-form {
	display: grid;
	gap: 16px;
}

.login-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 6px;
}

.login-field input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #d1d5db;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.95rem;
}

.password-field {
	position: relative;
}

.password-field input {
	padding-right: 56px;
}

.password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: #64748b;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
}

.password-toggle:hover {
	color: #1d4ed8;
}

.password-toggle:focus-visible {
	outline: 2px solid rgba(37, 99, 235, 0.45);
	outline-offset: 2px;
}

.password-toggle svg {
	width: 16px;
	height: 16px;
}

.password-toggle .eye-closed {
	display: none;
}

.password-toggle[data-visible="true"] .eye-open {
	display: none;
}

.password-toggle[data-visible="true"] .eye-closed {
	display: inline-flex;
}

.login-field input::placeholder {
	color: #94a3b8;
}

.login-field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.login-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.login-remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: #475569;
}

.login-remember input {
	width: 16px;
	height: 16px;
	accent-color: #3b82f6;
}

.login-link {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2563eb;
}

.login-link:hover {
	color: #1d4ed8;
}

.login-submit {
	width: 100%;
	border-radius: 12px;
	padding: 12px 16px;
	border: none;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 18px 32px rgba(37, 99, 235, 0.3);
	cursor: pointer;
}

.login-submit:hover {
	background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.login-page .notice.error {
	background: #fdecec;
	color: #9a2b2b;
	border: 1px solid #f3c2c2;
}

.login-page .notice.warn {
	background: #fff7ed;
	color: #92400e;
	border: 1px solid #fed7aa;
}

@media (max-width: 640px) {
	.login-card-inner {
		padding: 24px;
	}
}

@media (max-width: 900px) {
	.admin-shell {
		grid-template-columns: 1fr;
		position: relative;
	}

	/* hamburger toggle (hidden on wide screens) */
	.sidebar-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 8px;
		background: transparent;
		border: none;
		color: var(--navy-900);
		cursor: pointer;
		font-size: 18px;
		padding: 0;
	}

	/* off-canvas sidebar */
	.admin-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: 280px;
		transform: translateX(-100%);
		transition: transform .25s ease;
		z-index: 1002;
		padding: 24px 20px;
		height: 100vh;
		overflow-y: auto;
		box-shadow: 0 20px 40px rgba(2,6,23,0.6);
	}

	.admin-shell.sidebar-open .admin-sidebar {
		transform: translateX(0);
	}

	/* backdrop shown when sidebar is open */
	.sidebar-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.45);
		z-index: 1001;
		opacity: 0;
		transition: opacity .2s ease;
		pointer-events: none;
	}

	.admin-shell.sidebar-open .sidebar-backdrop {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}

	.nav-list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
	}

	.nav-link {
		text-align: left;
	}

	/* hamburger icon lines */
	.sidebar-toggle .hamburger {
		width: 18px;
		height: 2px;
		display: inline-block;
		background: currentColor;
		position: relative;
	}

	.sidebar-toggle .hamburger::before,
	.sidebar-toggle .hamburger::after {
		content: '';
		position: absolute;
		left: 0;
		width: 18px;
		height: 2px;
		background: currentColor;
		transition: transform .2s ease, top .2s ease, bottom .2s ease;
	}

	.sidebar-toggle .hamburger::before { top: -6px; }
	.sidebar-toggle .hamburger::after { bottom: -6px; }

	.admin-shell.sidebar-open .sidebar-toggle .hamburger { background: transparent; }
	.admin-shell.sidebar-open .sidebar-toggle .hamburger::before { transform: rotate(45deg) translate(3px,3px); top: 0; }
	.admin-shell.sidebar-open .sidebar-toggle .hamburger::after { transform: rotate(-45deg) translate(3px,-3px); bottom: 0; }
}

@media (max-width: 640px) {
	.nav-list {
		grid-template-columns: 1fr;
	}

	.nav-link {
		text-align: left;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}
}
