/* ==========================================================================
   mashhad-camp — stylesheet
   Design direction: Persian shrine tilework (deep turquoise + antique gold)
   on warm parchment paper. UI face: IranYekan (یکان), loaded locally.
   ========================================================================== */

/* ---- Fonts (IranYekan / یکان) ---- */
@font-face {
	font-family: 'IranYekan';
	src: url('fonts/IRANYekanWebLight.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekan';
	src: url('fonts/IRANYekanWebRegular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekan';
	src: url('fonts/IRANYekanWebMedium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekan';
	src: url('fonts/IRANYekanWebBold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'NotoNastaliq';
	src: url('fonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---- Design tokens ---- */
:root {
	/* Palette: shrine tilework — deep turquoise + antique gold on warm paper */
	--paper: #F5EFE1;
	--paper-raised: #FFFCF5;
	--ink: #16302E;
	--ink-soft: #4B615F;
	--ink-faint: #8A9A97;

	--teal-900: #0B3D3C;
	--teal-800: #0F4B49;
	--teal-700: #146B67;
	--teal-500: #1E8C86;
	--teal-100: #E3EFEE;

	--gold-600: #A97C2F;
	--gold-500: #C99A46;
	--gold-100: #F3E7CC;

	--brick-600: #9C4A3C;
	--brick-100: #F3DDD8;

	--green-600: #2F7A4F;
	--green-100: #DCEFE1;
	--gray-600: #5B6664;
	--gray-100: #E7E4DA;

	--line: rgba(11, 61, 60, 0.14);
	--line-strong: rgba(11, 61, 60, 0.28);
	--shadow-card: 0 1px 2px rgba(22, 48, 46, 0.06), 0 8px 24px rgba(22, 48, 46, 0.08);
	--shadow-raised: 0 2px 4px rgba(22, 48, 46, 0.08), 0 16px 40px rgba(22, 48, 46, 0.12);

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;

	--font-display: 'IranYekan', Tahoma, sans-serif;
	--font-body: 'IranYekan', Tahoma, sans-serif;
	--font-nastaliq: 'NotoNastaliq', 'IranYekan', Tahoma, sans-serif;
}

/* ---- Reset & base ---- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	background-image:
		radial-gradient(circle at 12% 8%, rgba(11, 61, 60, 0.05), transparent 40%),
		radial-gradient(circle at 88% 92%, rgba(169, 124, 47, 0.06), transparent 40%),
		url('images/pattern-watermark-220.png');
	background-size: auto, auto, 220px 220px;
	background-repeat: no-repeat, no-repeat, repeat;
	background-attachment: fixed, fixed, fixed;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--teal-900);
	line-height: 1.35;
	margin: 0 0 0.4em;
}

h1 { font-size: 2rem; letter-spacing: 0.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { color: var(--ink-soft); margin: 0 0 1em; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-500); }

label { color: var(--ink); }

::selection { background: var(--gold-100); color: var(--teal-900); }

:focus-visible {
	outline: 2px solid var(--teal-500);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ---- Layout shell ---- */
.container {
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 20px 80px;
}

/* ---- Site header / hero — full-bleed shrine photo on every page ---- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 340px;
	overflow: hidden;
	padding: 48px 24px 40px;
	margin: 0 0 40px;
	background: var(--teal-900);
	border: none;
	border-bottom: 4px solid var(--gold-500);
	border-radius: 0;
	box-shadow: var(--shadow-raised);
	color: #fff;
}

.hero.hero-compact { min-height: 240px; padding: 36px 20px 28px; }

/* Real Imam Reza shrine photo */
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 32%;
	z-index: 0;
	pointer-events: none;
}

/* Soft veil so title stays readable without hiding the shrine */
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg,
			rgba(6, 30, 29, 0.22) 0%,
			rgba(6, 30, 29, 0.48) 55%,
			rgba(6, 30, 29, 0.78) 100%);
	pointer-events: none;
}

.hero::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 10px;
	z-index: 2;
	background-image: url('images/pattern-gold-tile-256.png');
	background-size: 48px 48px;
	background-repeat: repeat-x;
	opacity: 0.55;
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	color: #fff;
	max-width: 720px;
}

.hero-logo {
	display: block;
	width: 112px;
	height: 112px;
	margin: 0 auto 16px;
	object-fit: contain;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

.hero.hero-compact .hero-logo {
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
}

.hero-org {
	font-family: var(--font-nastaliq);
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 2.1;
	color: #fff;
	margin: 0 0 0.35em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero.hero-compact .hero-org {
	font-size: 1.15rem;
	margin-bottom: 0.15em;
}

.hero-title,
.hero-content h1 {
	position: relative;
	color: #fff;
	font-size: 2.2rem;
	font-weight: 700;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
	margin-bottom: 0.25em;
}

.hero-title { font-size: 2.55rem; letter-spacing: 0.01em; }

.hero-subtitle,
.hero-content p:not(.hero-org) {
	position: relative;
	color: var(--gold-100);
	font-size: 1.05rem;
	margin: 0;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-content .btn {
	margin-top: 1rem;
}

.hero-content svg {
	vertical-align: -0.2em;
}

@media (max-width: 640px) {
	.hero { min-height: 280px; padding: 36px 16px 28px; }
	.hero.hero-compact { min-height: 200px; }
	.hero-logo { width: 88px; height: 88px; }
	.hero.hero-compact .hero-logo { width: 60px; height: 60px; }
	.hero-title { font-size: 1.85rem; }
	.hero-content h1 { font-size: 1.55rem; }
	.hero-org { font-size: 1.25rem; }
}

/* ---- Admin top navigation ---- */
.admin-topnav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(11, 61, 60, 0.96);
	border-bottom: 2px solid var(--gold-500);
	backdrop-filter: blur(8px);
	margin: -40px 0 28px;
}
.admin-topnav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.55rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.admin-topnav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	align-items: center;
}
.admin-topnav-links a {
	color: #E8F2F1;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.35rem 0.55rem;
	border-radius: 8px;
	text-decoration: none;
}
.admin-topnav-links a:hover,
.admin-topnav-links a.is-active {
	background: rgba(201, 154, 70, 0.22);
	color: #fff;
}
.admin-topnav-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--gold-100);
	font-size: 0.88rem;
}
.admin-topnav-logout {
	color: #F3DDD8 !important;
	font-weight: 600;
}
.perm-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.1rem;
	margin-top: 0.5rem;
}
.perm-grid label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.92rem;
	color: var(--ink-soft);
}

@media (max-width: 640px) {
	.admin-topnav { margin-top: -28px; }
}
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.card {
	position: relative;
	display: block;
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 32px 20px;
	text-align: center;
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--gold-500), var(--teal-500));
	opacity: 0;
	transition: opacity 0.18s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: var(--teal-500);
	box-shadow: var(--shadow-raised);
}

.card:hover::before { opacity: 1; }

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--teal-100), var(--gold-100));
	color: var(--teal-800);
	transition: transform 0.18s ease;
}

.card:hover .card-icon { transform: scale(1.08); }

.card-icon svg { width: 30px; height: 30px; }

.card h3 {
	margin-bottom: 6px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--ink);
}

.card p { font-size: 0.9rem; margin: 0; }

/* gender selection variant, if used standalone */
.gender-row { display: flex; gap: 12px; }
.gender-row label { flex: 1; display: block; cursor: pointer; }
.gender-row input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gender-card {
	display: block;
	padding: 12px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: #fff;
	text-align: center;
	font-weight: 700;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.gender-row input[type="radio"]:checked + .gender-card {
	border-color: var(--teal-500);
	background: var(--teal-100);
}
.gender-row input[type="radio"]:focus-visible + .gender-card {
	outline: 2px solid var(--teal-500);
	outline-offset: 2px;
}

/* family form: one member's fields (legacy) */
.member-card {
	position: relative;
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 22px;
	margin-bottom: 16px;
	overflow: visible;
}
.member-card h4 {
	margin-bottom: 16px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	color: var(--teal-800);
	display: flex;
	align-items: center;
	gap: 8px;
}
.member-card .member-remove {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
}

/* family form: summary list + single editor */
.members-summary {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}
.member-summary-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.member-summary-item:hover,
.member-summary-item:focus-visible {
	border-color: var(--teal-500);
	background: var(--teal-100);
	box-shadow: 0 0 0 3px rgba(30, 140, 134, 0.12);
	outline: none;
}
.member-summary-main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 1;
}
.member-summary-num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--teal-700);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.member-summary-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.member-summary-info strong {
	color: var(--teal-900);
	font-size: 0.98rem;
}
.member-summary-meta {
	font-size: 0.82rem;
	color: var(--ink-soft);
	line-height: 1.55;
	word-break: break-word;
}
.member-summary-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.btn-text {
	background: none;
	border: none;
	padding: 4px 8px;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--teal-700);
	cursor: pointer;
}
.btn-text:hover { color: var(--teal-500); text-decoration: underline; }
.btn-text.danger { color: var(--brick-600); }
.btn-text.danger:hover { color: #833d31; }

.member-editor {
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	padding: 22px;
	margin-bottom: 16px;
	overflow: visible;
}
.member-editor-head {
	margin-bottom: 12px;
}
.member-editor-head h4 {
	margin: 0;
	font-size: 1.05rem;
	color: var(--teal-800);
}
.member-editor-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}
.btn-ghost {
	background: transparent;
	color: var(--teal-800);
	border: 1.5px solid var(--line-strong);
	box-shadow: none;
}
.btn-ghost:hover {
	background: var(--teal-100);
	color: var(--teal-900);
	border-color: var(--teal-500);
	box-shadow: none;
}
.btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ---- Forms ---- */
.form-card {
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 32px;
	box-shadow: var(--shadow-card);
	overflow: visible;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--teal-800);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
	width: 100%;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--teal-500);
	box-shadow: 0 0 0 3px var(--teal-100);
	outline: none;
}

input::placeholder { color: var(--ink-faint); }

/* ---- Buttons ---- */
.btn {
	display: inline-block;
	padding: 12px 28px;
	border: none;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
	color: #fff;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.95rem;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(11, 61, 60, 0.22);
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:hover { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; box-shadow: 0 4px 14px rgba(11, 61, 60, 0.3); }
.btn:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; margin-top: 8px; }

.btn-green { background: var(--green-600); }
.btn-green:hover { background: #256640; }
.btn-red { background: var(--brick-600); }
.btn-red:hover { background: #833d31; }
.btn-blue { background: var(--teal-700); }
.btn-blue:hover { background: var(--teal-500); }
.btn-gray { background: var(--gray-600); }
.btn-gray:hover { background: #495250; }

/* ---- Vehicle option cards ---- */
.vehicle-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.vehicle-option { display: block; cursor: pointer; }
.vehicle-option input { position: absolute; opacity: 0; pointer-events: none; }

.vehicle-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.vehicle-option input:checked + .vehicle-card {
	border-color: var(--teal-500);
	background: var(--teal-100);
}

.vehicle-option input:focus-visible + .vehicle-card {
	outline: 2px solid var(--teal-500);
	outline-offset: 2px;
}

.vehicle-name { font-weight: 700; color: var(--ink); }
.vehicle-price { font-size: 0.85rem; color: var(--gold-600); font-weight: 700; }

.total-price-box {
	margin: 20px 0;
	padding: 16px 20px;
	background: var(--gold-100);
	border: 1px solid var(--gold-500);
	border-radius: var(--radius-sm);
	text-align: center;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--gold-600);
}

#total-price, .total-price-box span#total-price { color: var(--teal-900); }

/* ---- Family form: dynamic member rows ---- */
.add-member-btn {
	display: inline-block;
	margin-bottom: 16px;
	padding: 9px 18px;
	background: var(--teal-100);
	color: var(--teal-800);
	border: 1px dashed var(--teal-500);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
}
.add-member-btn:hover { background: var(--teal-100); border-style: solid; }

.member-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--teal-800);
	color: #fff;
	font-size: 0.78rem;
	font-family: var(--font-body);
}

.member-remove {
	background: transparent;
	border: none;
	color: var(--brick-600);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}
.member-remove:hover { text-decoration: underline; }

/* ---- Price breakdown ---- */
.price-breakdown {
	background: var(--teal-100);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin: 16px 0;
}
.price-breakdown div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }

/* ---- Info / warning boxes ---- */
.info-box {
	background: var(--teal-100);
	border-inline-start: 4px solid var(--teal-700);
	border-radius: 6px;
	padding: 14px 18px;
	font-size: 0.9rem;
	color: var(--ink-soft);
	margin-bottom: 20px;
}

.debtor-alert {
	background: var(--brick-100);
	border: 1px solid var(--brick-600);
	border-radius: var(--radius-sm);
	padding: 18px 22px;
	margin-bottom: 24px;
}
.debtor-alert h3 { color: var(--brick-600); margin-bottom: 10px; font-size: 1rem; }
.debtor-alert .summary { display: flex; gap: 24px; margin-top: 12px; font-size: 0.9rem; }
.debtor-alert .summary strong { font-size: 1.05rem; color: var(--brick-600); }

/* ---- Badges (financial / approval status) ---- */
.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-yellow { background: var(--gold-100); color: var(--gold-600); }
.badge-red { background: var(--brick-100); color: var(--brick-600); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ---- Tables (admin lists) ---- */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

th, td {
	padding: 12px 14px;
	text-align: right;
	border-bottom: 1px solid var(--line);
}

th {
	background: var(--teal-100);
	color: var(--teal-900);
	font-weight: 700;
	font-size: 0.82rem;
}

tbody tr { cursor: pointer; transition: background 0.12s ease; }
tbody tr:hover { background: var(--teal-100); }
tbody tr:last-child td { border-bottom: none; }

tr.row-warning { background: var(--gold-100) !important; }
tr.row-warning:hover { background: var(--gold-100) !important; filter: brightness(0.96); }

.price-col { font-family: var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Filter form (admin) ---- */
.filter-form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: end;
	margin-bottom: 20px;
	background: var(--paper-raised);
	border: 1px solid var(--line);
	padding: 16px;
	border-radius: var(--radius-sm);
}
.filter-form label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 4px; }
.filter-form select { padding: 8px 12px; }
.filter-form button {
	padding: 9px 22px;
	border: none;
	border-radius: var(--radius-sm);
	background: var(--teal-800);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 700;
	cursor: pointer;
}
.filter-form button:hover { background: var(--teal-700); }
.filter-form a { padding: 9px 16px; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Detail grids (admin registration detail) ---- */
.section-title {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	color: var(--teal-800);
	padding-bottom: 8px;
	margin: 28px 0 14px;
	border-bottom: 2px solid var(--gold-500);
}
.section-title:first-child { margin-top: 0; }

.detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}
.detail-item {
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
}
.detail-label { display: block; font-size: 0.76rem; color: var(--ink-faint); margin-bottom: 4px; }
.detail-value { font-size: 0.98rem; font-weight: 700; color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
	.container { padding: 4px 14px 60px; }
	.form-card { padding: 22px; }
	.form-row { grid-template-columns: 1fr; }
	table, thead, tbody, th, td, tr { display: block; }
	thead { display: none; }
	tbody tr {
		margin-bottom: 12px;
		border: 1px solid var(--line);
		border-radius: var(--radius-sm);
		padding: 8px 0;
	}
	td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		border-bottom: 1px solid var(--line);
	}
	td:last-child { border-bottom: none; }
}

/* ---- Template utilities ---- */
.text-muted { color: var(--ink-faint); }
.text-primary { color: var(--teal-700); }
.mono { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.admin-table-wrap { overflow-x: auto; }
.empty-state { text-align: center; color: var(--ink-faint); padding: 2rem 1rem; }
.muted-box {
	background: var(--gray-100);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 1rem 1.25rem;
	color: var(--ink-soft);
	font-size: 0.92rem;
}
.capacity-input {
	width: 4.5rem;
	padding: 0.45rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	text-align: center;
	font-family: var(--font-body);
}
.input-error { border-color: var(--brick-600) !important; background: var(--brick-100); }
.field-error { display: block; color: var(--brick-600); font-size: 0.78rem; margin-top: 0.25rem; }
.price-total-line { font-weight: 700; font-size: 1.05rem; color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.notice-panel { border: 1px solid var(--line); border-radius: var(--radius-md); }
.card-icon svg, .brand-mark svg { display: block; }
.icon-inline { display: inline-flex; align-items: center; gap: 0.4em; }
.icon-inline svg { flex-shrink: 0; vertical-align: -0.15em; }

.container-wide { max-width: 1100px; }
.text-center { text-align: center; }
.text-danger { color: var(--brick-600); }
.text-success { color: var(--green-600); }
.text-warning { color: var(--gold-600); }
.fw-700 { font-weight: 700; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }

.form-card-wide { max-width: 960px; margin-inline: auto; }
.form-card-md { max-width: 720px; margin-inline: auto; }
.form-card-sm { max-width: 560px; margin-inline: auto; }

.btn-danger, .btn-red { background: var(--brick-600); color: #fff; }
.btn-danger:hover, .btn-red:hover { background: #833d31; color: #fff; }
.btn-success, .btn-green { background: var(--green-600); color: #fff; }
.btn-success:hover, .btn-green:hover { background: #256640; color: #fff; }
.btn-info, .btn-blue { background: var(--teal-700); color: #fff; }
.btn-info:hover, .btn-blue:hover { background: var(--teal-500); color: #fff; }
.btn-secondary, .btn-gray { background: var(--gray-600); color: #fff; }
.btn-secondary:hover, .btn-gray:hover { background: #495250; color: #fff; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-row-end { display: flex; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.alert {
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
	font-size: 0.92rem;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.alert-warning { background: var(--gold-100); color: var(--gold-600); border: 1px solid var(--gold-500); }
.alert-success { background: var(--green-100); color: var(--green-600); border: 1px solid var(--green-600); }
.alert-info { background: var(--teal-100); color: var(--teal-800); border: 1px solid var(--teal-500); }
.alert-danger { background: var(--brick-100); color: var(--brick-600); border: 1px solid var(--brick-600); }

.data-table { width: 100%; border-collapse: collapse; }
.label-cell { color: var(--ink-soft); width: 42%; }
.value-cell { font-weight: 600; color: var(--ink); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.clickable-rows tbody tr { cursor: pointer; }

.page-footer-links {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.95rem;
	color: var(--ink-faint);
}
.page-footer-links a { font-weight: 600; }
.page-footer-links .sep { margin: 0 0.65rem; opacity: 0.4; }

.home-track {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 2rem;
	padding: 0.7rem 1.35rem;
	border-radius: 999px;
	background: var(--paper-raised);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	font-weight: 600;
}
.home-track:hover { color: var(--teal-700); border-color: var(--teal-500); box-shadow: var(--shadow-card); }

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-bottom: 0.75rem;
	border-radius: 50%;
	background: var(--teal-100);
	color: var(--teal-800);
}
.brand-title { margin: 0; }

.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.notice-panel.warning { border-color: var(--gold-500); background: var(--gold-100); }
.success-hero { text-align: center; padding: 2rem 1rem; }
.success-hero h2 { margin-top: 0.75rem; }

.status-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
}
.status-pending { background: var(--gold-100); color: var(--gold-600); }
.status-approved { background: var(--green-100); color: var(--green-600); }
.status-rejected { background: var(--brick-100); color: var(--brick-600); }

/* ---- Custom combobox (full-text, in-flow panel) ---- */
.combo {
	position: relative;
	width: 100%;
}
/* Native select stays in DOM for submit, but must never show OS popup */
.combo-native {
	position: absolute !important;
	inset: 0 auto auto 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	border: 0 !important;
	pointer-events: none !important;
	font-size: 16px !important; /* avoid iOS zoom quirks */
	z-index: -1 !important;
}
.combo-trigger {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	text-align: right;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.combo-trigger:hover {
	border-color: var(--teal-500);
}
.combo.is-open .combo-trigger,
.combo-trigger:focus {
	border-color: var(--teal-500);
	box-shadow: 0 0 0 3px var(--teal-100);
	outline: none;
}
.combo.is-placeholder .combo-trigger-label {
	color: var(--ink-faint);
}
.combo-trigger-label {
	flex: 1;
	min-width: 0;
	white-space: normal;
	overflow: visible;
	word-break: break-word;
	line-height: 1.55;
	text-align: right;
	color: var(--ink);
}
.combo-trigger-icon {
	flex-shrink: 0;
	display: inline-flex;
	color: var(--teal-700);
	transition: transform 0.15s ease;
}
.combo.is-open .combo-trigger-icon {
	transform: rotate(180deg);
}
.combo-list {
	display: none;
	position: relative;
	z-index: 5;
	margin-top: 8px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-raised);
	max-height: min(360px, 55vh);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}
.combo.is-open .combo-list {
	display: block !important;
}
.combo-option {
	display: block;
	width: 100%;
	padding: 12px 14px;
	margin: 0 0 2px;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	text-align: right;
	cursor: pointer;
	line-height: 1.55;
	white-space: normal;
	word-break: break-word;
}
.combo-option:hover,
.combo-option:focus {
	background: var(--teal-100);
	outline: none;
}
.combo-option.is-selected {
	background: var(--teal-100);
	color: var(--teal-900);
	font-weight: 700;
}
.combo-option.is-placeholder-option {
	color: var(--ink-faint);
	font-weight: 400;
}
.combo-option:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.combo-option-title {
	display: block;
	color: inherit;
}

.summary { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.75rem; font-size: 0.92rem; }

/* ---- Select dropdown visibility ---- */
select {
	appearance: auto;
	-webkit-appearance: menulist;
	max-width: 100%;
}

/* ---- JalaliDatePicker theme (match site teal/gold) ---- */
jdp-container {
	--jdp-color-0: #FFFCF5;
	--jdp-color-1: #E3EFEE;
	--jdp-color-2: #D5E5E3;
	--jdp-color-3: rgba(11, 61, 60, 0.28);
	--jdp-color-4: #4B615F;
	--jdp-color-5: #16302E;
	--jdp-primary: #146B67;
	--jdp-red: #9C4A3C;
	font-family: var(--font-body) !important;
	border-radius: var(--radius-md) !important;
	box-shadow: var(--shadow-raised) !important;
	border: 1px solid var(--line) !important;
	z-index: 2000 !important;
}
jdp-container .jdp-days-header {
	background-color: var(--teal-100) !important;
	border-radius: var(--radius-sm);
}
jdp-container .jdp-day.selected,
jdp-container .jdp-day-name.selected {
	background-color: var(--teal-700) !important;
}
jdp-container .jdp-day:not(.disabled-day):hover {
	background: var(--gold-100) !important;
}
jdp-container .jdp-btn-today,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-close {
	background: var(--teal-700) !important;
	font-family: var(--font-body) !important;
	border-radius: var(--radius-sm) !important;
}
jdp-container .jdp-year select,
jdp-container .jdp-month select,
jdp-container .jdp-time select {
	font-family: var(--font-body) !important;
	color: var(--ink) !important;
}
jdp-container .jdp-icon-plus,
jdp-container .jdp-icon-minus {
	border-color: var(--line-strong) !important;
	border-radius: var(--radius-sm) !important;
}
input[data-jdp] {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23146B67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	padding-left: 40px;
}

@media (max-width: 640px) {
	.member-summary-item {
		flex-direction: column;
		align-items: stretch;
	}
	.member-summary-actions {
		justify-content: flex-end;
	}
	.member-editor-actions .btn,
	.member-editor-actions .btn-ghost {
		flex: 1;
		text-align: center;
	}
}

/* ---- Card-to-card payment page ---- */
.payment-page { overflow: visible; }
.pay-amount-box {
	text-align: center;
	padding: 22px 18px;
	margin-bottom: 18px;
	border-radius: var(--radius-md);
	background:
		radial-gradient(circle at 20% 20%, rgba(201, 154, 70, 0.18), transparent 45%),
		linear-gradient(160deg, var(--teal-100), #fff);
	border: 1px solid var(--line);
}
.pay-amount-label {
	display: block;
	font-size: 0.9rem;
	color: var(--teal-800);
	font-weight: 700;
	margin-bottom: 6px;
}
.pay-amount-value {
	display: block;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--teal-900);
	font-variant-numeric: tabular-nums;
}
.pay-amount-value small {
	font-size: 1rem;
	font-weight: 700;
	color: var(--gold-600);
}
.pay-amount-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 18px;
	margin-top: 12px;
	font-size: 0.82rem;
	color: var(--ink-soft);
}
.pay-deadline {
	text-align: center;
	padding: 10px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius-sm);
	background: var(--gold-100);
	border: 1px solid var(--gold-500);
	color: var(--ink);
	font-size: 0.9rem;
}
.pay-slider-group { margin-bottom: 1.25rem; }
.pay-slider-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	margin: 8px 0;
}
.pay-slider-row input[type="range"] {
	width: 100%;
	accent-color: var(--teal-700);
	height: 6px;
	cursor: pointer;
}
.pay-slider-min,
.pay-slider-max {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--teal-800);
}
.pay-slider-value {
	text-align: center;
	font-size: 0.95rem;
	color: var(--ink-soft);
	margin-top: 4px;
}
.pay-slider-value strong {
	color: var(--teal-900);
	font-variant-numeric: tabular-nums;
}

.bank-card {
	position: relative;
	padding: 24px 22px 20px;
	margin: 0 auto 24px;
	max-width: 420px;
	min-height: 210px;
	border-radius: 18px;
	color: #fff;
	background:
		radial-gradient(circle at 85% 15%, rgba(201, 154, 70, 0.35), transparent 40%),
		linear-gradient(135deg, #0B3D3C 0%, #146B67 48%, #0F4B49 100%);
	box-shadow: var(--shadow-raised);
	overflow: hidden;
}
.bank-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('images/pattern-watermark-220.png');
	background-size: 140px;
	opacity: 0.08;
	pointer-events: none;
}
.bank-card-top,
.bank-card-bottom,
.bank-card-number {
	position: relative;
	z-index: 1;
}
.bank-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}
.bank-card-chip {
	width: 42px;
	height: 30px;
	border-radius: 6px;
	background: linear-gradient(135deg, #E8D48B, #C99A46 55%, #A97C2F);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.bank-card-bank {
	font-size: 0.9rem;
	font-weight: 700;
	opacity: 0.92;
}
.bank-card-number {
	font-size: 1.45rem;
	letter-spacing: 0.12em;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	margin-bottom: 22px;
	direction: ltr;
	text-align: center;
	unicode-bidi: isolate;
}
.bank-card-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}
.bank-card-label {
	display: block;
	font-size: 0.72rem;
	opacity: 0.75;
	margin-bottom: 2px;
}
.bank-card-holder {
	font-size: 1rem;
	font-weight: 700;
}
.bank-card-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,0.35);
	border-radius: 999px;
	background: rgba(255,255,255,0.12);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	backdrop-filter: blur(4px);
}
.bank-card-copy:hover {
	background: rgba(255,255,255,0.22);
}

.receipt-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 28px 18px;
	border: 1.5px dashed var(--line-strong);
	border-radius: var(--radius-md);
	background: #fff;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.receipt-drop:hover,
.receipt-drop.is-dragover {
	border-color: var(--teal-500);
	background: var(--teal-100);
}
.receipt-drop input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}
.receipt-drop-icon { color: var(--teal-700); }
.receipt-drop-title {
	font-weight: 700;
	color: var(--teal-900);
}
.receipt-drop-hint {
	font-size: 0.82rem;
	color: var(--ink-faint);
}
.receipt-preview {
	margin-top: 12px;
	max-width: 100%;
	max-height: 220px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
	object-fit: contain;
}
.receipt-thumb {
	max-width: 120px;
	max-height: 80px;
	border-radius: 6px;
	border: 1px solid var(--line);
	object-fit: cover;
}

@media (max-width: 640px) {
	.pay-amount-value { font-size: 1.6rem; }
	.bank-card-number { font-size: 1.15rem; letter-spacing: 0.06em; }
	.bank-card-bottom { flex-direction: column; align-items: stretch; }
	.bank-card-copy { justify-content: center; }
}

.list-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-inline-start: 0.25rem;
}
.print-toolbar {
	margin: 1rem auto 0.5rem;
	padding: 1rem 1.25rem;
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.print-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.print-toolbar-hint {
	margin: 0.65rem 0 0;
	font-size: 0.85rem;
	color: var(--ink-faint);
}
.print-sheet { padding-bottom: 2rem; }
.print-header {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--ink);
}
.print-header-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}
.print-logo {
	border-radius: 8px;
	object-fit: contain;
}
.print-org {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--teal-900);
}
.print-title {
	margin: 0.15rem 0 0;
	font-size: 1.35rem;
}
.print-meta {
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--ink-soft);
	text-align: left;
}
.print-table th,
.print-table td {
	font-size: 0.82rem;
	padding: 0.4rem 0.45rem;
	border: 1px solid var(--line);
}
.print-table thead th {
	background: #f3f1eb;
}
.print-footnote {
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: var(--ink-faint);
}

@media print {
	.no-print,
	.hero,
	.admin-topnav,
	.filter-form,
	.debtor-alert,
	.alert,
	.btn-row,
	nav {
		display: none !important;
	}
	body {
		background: #fff !important;
		color: #000 !important;
	}
	.container,
	.container-wide,
	.print-sheet {
		max-width: none !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.form-card {
		box-shadow: none !important;
		border: none !important;
		padding: 0.4rem 0 !important;
		margin: 0 0 0.75rem !important;
		break-inside: avoid;
	}
	.print-header {
		border-bottom-color: #000;
	}
	.print-table {
		width: 100%;
	}
	.print-table th,
	.print-table td {
		border-color: #333;
		color: #000;
	}
	.print-table thead th {
		background: #eee !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	a { color: inherit; text-decoration: none; }
}




/* ---- Room & bus assignment ---- */
.assign-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-end;
	margin-bottom: 1rem;
}
.assign-inline-form .form-group {
	margin-bottom: 0;
	flex: 1;
	min-width: 8rem;
}
.assign-boards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
@media (max-width: 860px) {
	.assign-boards { grid-template-columns: 1fr; }
}
.subsection-title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
	color: var(--teal-800);
}
.room-board {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	background: var(--paper-raised);
}
.room-board-full { border-color: var(--gold-500); background: var(--gold-100); }
.room-board-danger { border-color: var(--brick-600); background: var(--brick-100); }
.room-board-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}
.room-board-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.room-board-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0;
	border-top: 1px solid var(--line);
	font-size: 0.9rem;
}
.row-warn td { background: rgba(201, 154, 70, 0.12); }
.row-danger td { background: rgba(156, 74, 60, 0.12); }

.bus-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}
.bus-tab {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--paper-raised);
	color: var(--ink);
	text-decoration: none;
	font-size: 0.9rem;
}
.bus-tab.is-active {
	background: var(--teal-700);
	border-color: var(--teal-700);
	color: #fff;
}
.bus-edit-bar { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }

.seat-assign-layout {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr);
	gap: 1.25rem;
	margin-top: 1.25rem;
	align-items: start;
}
@media (max-width: 960px) {
	.seat-assign-layout { grid-template-columns: 1fr; }
}

.bus-schematic {
	direction: ltr;
	background: linear-gradient(180deg, #e8f0ef 0%, #f5efe1 100%);
	border: 2px solid var(--teal-700);
	border-radius: 18px 18px 12px 12px;
	padding: 1rem 0.75rem 1.25rem;
	max-width: 320px;
	margin-inline: auto;
}
.bus-driver {
	text-align: center;
	font-size: 0.75rem;
	color: var(--ink-soft);
	margin-bottom: 0.75rem;
	padding: 0.35rem;
	border: 1px dashed var(--line-strong);
	border-radius: 8px;
}
.bus-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.35rem;
}
.bus-aisle {
	width: 1.1rem;
	flex-shrink: 0;
}
.bus-seat {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 8px 8px 4px 4px;
	border: 1.5px solid var(--teal-700);
	background: var(--paper-raised);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1.1;
	font-family: inherit;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bus-seat:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.bus-seat.is-empty { background: #fff; }
.bus-seat.is-occupied { color: #fff; border-color: transparent; }
.bus-seat-num { font-size: 0.7rem; opacity: 0.85; }
.bus-seat-token { font-size: 0.8rem; font-weight: 700; }

.people-seat-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	max-height: 70vh;
	overflow: auto;
}
.person-seat-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-raised);
	cursor: pointer;
	border-right-width: 4px;
}
.person-seat-item.is-selected {
	outline: 2px solid var(--teal-500);
	outline-offset: 1px;
	background: var(--teal-100);
}
.person-seat-item.is-unassigned { opacity: 0.95; }
.person-seat-item.on-this-bus { box-shadow: inset 0 0 0 1px var(--teal-500); }
.person-token {
	flex-shrink: 0;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.8rem;
	background: var(--teal-700);
	color: #fff;
}
.person-seat-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-name { font-size: 0.9rem; font-weight: 600; }
.person-group { font-size: 0.75rem; }
.person-seat-badge {
	font-size: 0.75rem;
	color: var(--ink-soft);
	white-space: nowrap;
}
.person-unassign { margin: 0; }

/* Group color accents (cycle) */
.group-color-0 { border-right-color: #1E8C86; }
.group-color-1 { border-right-color: #A97C2F; }
.group-color-2 { border-right-color: #9C4A3C; }
.group-color-3 { border-right-color: #2F7A4F; }
.group-color-4 { border-right-color: #4A6FA5; }
.group-color-5 { border-right-color: #8B5A8B; }
.group-color-6 { border-right-color: #C45C26; }
.group-color-7 { border-right-color: #2C6E49; }
.bus-seat.group-color-0 { background: #1E8C86; }
.bus-seat.group-color-1 { background: #A97C2F; }
.bus-seat.group-color-2 { background: #9C4A3C; }
.bus-seat.group-color-3 { background: #2F7A4F; }
.bus-seat.group-color-4 { background: #4A6FA5; }
.bus-seat.group-color-5 { background: #8B5A8B; }
.bus-seat.group-color-6 { background: #C45C26; }
.bus-seat.group-color-7 { background: #2C6E49; }
.person-seat-item.group-color-0 .person-token { background: #1E8C86; }
.person-seat-item.group-color-1 .person-token { background: #A97C2F; }
.person-seat-item.group-color-2 .person-token { background: #9C4A3C; }
.person-seat-item.group-color-3 .person-token { background: #2F7A4F; }
.person-seat-item.group-color-4 .person-token { background: #4A6FA5; }
.person-seat-item.group-color-5 .person-token { background: #8B5A8B; }
.person-seat-item.group-color-6 .person-token { background: #C45C26; }
.person-seat-item.group-color-7 .person-token { background: #2C6E49; }


/* ---- Assignment print reports ---- */
.report-hotel-block { margin-bottom: 1.75rem; }
.report-hotel-title {
	font-size: 1.15rem;
	color: var(--teal-800);
	margin: 0 0 0.75rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--teal-500);
}
.report-section { margin-top: 1.5rem; }
.report-section-title {
	font-size: 1.1rem;
	color: var(--teal-800);
	margin: 0 0 0.75rem;
}
.report-section-break {
	page-break-before: always;
	margin-top: 2rem;
	padding-top: 0.5rem;
}
.report-bus-schematic {
	max-width: 420px;
	margin-inline: 0;
}
.report-seat {
	width: auto;
	min-width: 3.4rem;
	height: auto;
	min-height: 2.8rem;
	padding: 0.2rem 0.25rem;
	cursor: default;
}
.report-seat .bus-seat-name {
	font-size: 0.58rem;
	font-weight: 600;
	max-width: 3.6rem;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.report-seat.is-occupied {
	background: var(--teal-700);
	color: #fff;
}
@media print {
	.report-section-break { page-break-before: always; }
	.report-bus-schematic {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
