/* ==========================================================================
   Vakil Hooshmand — Forms, request details & panel requests UI
   Relies on tokens from main.css; every token has a fallback.
   ========================================================================== */

.vh-form-wrap {
	--vhf-maroon: var(--vh-maroon, #6E1A2C);
	--vhf-maroon-50: var(--vh-maroon-50, #F8EDEF);
	--vhf-green: var(--vh-green, #3E4A2A);
	--vhf-green-50: var(--vh-green-50, #EEF1E7);
	--vhf-gold: var(--vh-gold, #B8945A);
	--vhf-gold-50: var(--vh-gold-50, #F7F0E4);
	--vhf-cream: var(--vh-cream, #F7F5F0);
	--vhf-text: var(--vh-text, #1E1E1C);
	--vhf-muted: var(--vh-muted, #6E6B66);
	--vhf-border: var(--vh-border, #ECE7DE);
	--vhf-danger: var(--vh-danger, #B42318);
	--vhf-success: var(--vh-success, #2F7D4F);
	--vhf-radius: var(--vh-radius, 16px);
	--vhf-radius-sm: var(--vh-radius-sm, 10px);
	position: relative;
	font-family: var(--vh-font, 'Vazirmatn', Tahoma, sans-serif);
	color: var(--vhf-text);
}

.vh-form-wrap__title {
	margin: 0 0 20px;
	font-size: 1.35rem;
	font-weight: 800;
}

/* ---------- Grid ---------- */

.vh-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 16px;
}

.vh-ff {
	flex: 1 1 100%;
	min-width: 0;
	animation: vhf-in .25s ease;
}

.vh-ff--w50 { flex: 1 1 calc(50% - 8px); }
.vh-ff--w33 { flex: 1 1 calc(33.333% - 11px); }
.vh-ff[hidden],
.vh-ff--is-hidden { display: none !important; }

@media (max-width: 640px) {
	.vh-ff--w50,
	.vh-ff--w33 { flex-basis: 100%; }
}

@keyframes vhf-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Labels & inputs ---------- */

.vh-form .vh-label {
	display: block;
	margin-bottom: 8px;
	font-size: .92rem;
	font-weight: 700;
	color: var(--vhf-text);
}

.vh-req { color: var(--vhf-maroon); font-weight: 800; }

.vh-form .vh-input {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid var(--vhf-border);
	border-radius: var(--vhf-radius-sm);
	background: #fff;
	color: var(--vhf-text);
	font: inherit;
	font-size: .95rem;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	box-sizing: border-box;
}

.vh-form textarea.vh-input { min-height: 120px; resize: vertical; line-height: 1.9; }

.vh-form .vh-input::placeholder { color: #A9A49C; }

.vh-form .vh-input:hover { border-color: #DCD4C7; }

.vh-form .vh-input:focus {
	outline: none;
	border-color: var(--vhf-maroon);
	box-shadow: 0 0 0 4px rgba(110, 26, 44, .1);
	background: #fff;
}

.vh-form .vh-input[dir="ltr"] { text-align: left; }
.vh-form .vh-input[dir="ltr"]::placeholder { text-align: left; }

.vh-select-wrap { position: relative; }

.vh-select-wrap select.vh-input {
	appearance: none;
	-webkit-appearance: none;
	padding-left: 40px;
	cursor: pointer;
}

.vh-select-wrap::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-left: 2px solid var(--vhf-muted);
	border-bottom: 2px solid var(--vhf-muted);
	transform: translateY(-70%) rotate(-45deg);
	pointer-events: none;
}

.vh-input-group {
	display: flex;
	align-items: stretch;
}

.vh-input-group .vh-input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	font-weight: 700;
	letter-spacing: .5px;
}

.vh-input-group__addon {
	display: flex;
	align-items: center;
	padding: 0 16px;
	border: 1.5px solid var(--vhf-border);
	border-right: 0;
	border-radius: var(--vhf-radius-sm) 0 0 var(--vhf-radius-sm);
	background: var(--vhf-cream);
	color: var(--vhf-muted);
	font-size: .85rem;
	white-space: nowrap;
}

.vh-form .vh-help {
	margin: 6px 0 0;
	font-size: .8rem;
	color: var(--vhf-muted);
	line-height: 1.7;
}

.vh-form .vh-error-text {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	font-size: .8rem;
	font-weight: 600;
	color: var(--vhf-danger);
}

.vh-form .vh-error-text::before {
	content: "!";
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--vhf-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	flex: none;
}

.vh-form .vh-error-text[hidden] { display: none; }

.vh-ff.has-error .vh-input,
.vh-ff.has-error .vh-choice__box,
.vh-ff.has-error .vh-dropzone__area {
	border-color: var(--vhf-danger);
	background-color: #FFF8F7;
}

.vh-ff.has-error .vh-input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }

/* ---------- Layout fields ---------- */

.vh-ff__heading {
	margin: 8px 0 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--vhf-border);
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--vhf-green);
}

.vh-ff__paragraph {
	padding: 14px 18px;
	border-radius: var(--vhf-radius-sm);
	background: var(--vhf-gold-50);
	color: #5d4a2a;
	font-size: .9rem;
	line-height: 1.9;
}

.vh-ff__paragraph p { margin: 0 0 .5em; }
.vh-ff__paragraph p:last-child { margin: 0; }

.vh-ff__divider {
	margin: 4px 0;
	border: 0;
	border-top: 1px dashed var(--vhf-border);
}

/* ---------- Choices (radio / checkbox / price) ---------- */

.vh-choices { display: grid; gap: 10px; }
.vh-choices--cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.vh-choices--list { grid-template-columns: 1fr; }

.vh-choice {
	position: relative;
	display: block;
	cursor: pointer;
	margin: 0;
}

.vh-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.vh-choice__box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	height: 100%;
	padding: 14px 16px;
	border: 1.5px solid var(--vhf-border);
	border-radius: var(--vhf-radius-sm);
	background: #fff;
	transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
	box-sizing: border-box;
}

.vh-choice:hover .vh-choice__box { border-color: #D8CFC0; }

.vh-choice__mark {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	border: 2px solid #CFC7BA;
	border-radius: 50%;
	background: #fff;
	transition: all .2s;
}

.vh-choice input[type="checkbox"] + .vh-choice__box .vh-choice__mark { border-radius: 6px; }

.vh-choice__label {
	flex: 1;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.6;
}

.vh-choice__price {
	flex-basis: 100%;
	padding-right: 30px;
	font-size: .85rem;
	font-weight: 800;
	color: var(--vhf-maroon);
}

.vh-choices--list .vh-choice__price { flex-basis: auto; padding: 0; }

.vh-choice input:checked + .vh-choice__box {
	border-color: var(--vhf-maroon);
	background: var(--vhf-maroon-50);
	box-shadow: 0 6px 18px rgba(110, 26, 44, .08);
}

.vh-choice input:checked + .vh-choice__box .vh-choice__mark {
	border-color: var(--vhf-maroon);
	background: var(--vhf-maroon);
	box-shadow: inset 0 0 0 3px #fff;
}

.vh-choice input[type="checkbox"]:checked + .vh-choice__box .vh-choice__mark {
	box-shadow: none;
}

.vh-choice input[type="checkbox"]:checked + .vh-choice__box .vh-choice__mark::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vh-choice input:focus-visible + .vh-choice__box {
	outline: 3px solid rgba(110, 26, 44, .25);
	outline-offset: 2px;
}

.vh-choice input:disabled + .vh-choice__box { opacity: .5; cursor: not-allowed; }

/* ---------- Toggle ---------- */

.vh-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

.vh-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.vh-toggle__track {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	border-radius: 20px;
	background: #D9D2C6;
	transition: background .25s;
}

.vh-toggle__thumb {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	transition: transform .25s cubic-bezier(.4, 1.4, .6, 1);
}

.vh-toggle input:checked + .vh-toggle__track { background: var(--vhf-green); }
.vh-toggle input:checked + .vh-toggle__track .vh-toggle__thumb { transform: translateX(-20px); }
.vh-toggle input:focus-visible + .vh-toggle__track { outline: 3px solid rgba(62, 74, 42, .3); outline-offset: 2px; }
.vh-toggle__label { font-size: .92rem; font-weight: 600; line-height: 1.7; }

/* ---------- Date ---------- */

.vh-date {
	display: grid;
	grid-template-columns: .8fr 1.3fr 1fr;
	gap: 8px;
}

/* ---------- Dropzone ---------- */

.vh-dropzone { position: relative; }

.vh-dropzone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.vh-dropzone__area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 18px;
	border: 2px dashed #D9D0C1;
	border-radius: var(--vhf-radius);
	background: var(--vhf-cream);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s, transform .2s;
}

.vh-dropzone__area:hover,
.vh-dropzone.is-dragover .vh-dropzone__area {
	border-color: var(--vhf-maroon);
	background: var(--vhf-maroon-50);
}

.vh-dropzone.is-dragover .vh-dropzone__area { transform: scale(1.01); }

.vh-dropzone__input:focus-visible + .vh-dropzone__area { outline: 3px solid rgba(110, 26, 44, .25); outline-offset: 2px; }

.vh-dropzone__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--vhf-maroon);
	box-shadow: 0 6px 16px rgba(40, 30, 20, .06);
}

.vh-dropzone__icon svg { width: 24px; height: 24px; }
.vh-dropzone__title { font-weight: 700; font-size: .92rem; }
.vh-dropzone__meta { font-size: .78rem; color: var(--vhf-muted); }

.vh-dropzone__list {
	display: grid;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.vh-dropzone__list:empty { display: none; }

.vh-dropzone__file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid var(--vhf-border);
	border-radius: var(--vhf-radius-sm);
	background: #fff;
	animation: vhf-in .2s ease;
}

.vh-dropzone__thumb {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--vhf-green-50);
	color: var(--vhf-green);
	font-size: 10px;
	font-weight: 800;
}

.vh-dropzone__thumb img { width: 100%; height: 100%; object-fit: cover; }

.vh-dropzone__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: .85rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vh-dropzone__size { font-size: .75rem; color: var(--vhf-muted); white-space: nowrap; }

.vh-dropzone__remove {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F4F1EC;
	color: var(--vhf-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.vh-dropzone__remove:hover { background: #FDECEA; color: var(--vhf-danger); }

/* ---------- Steps ---------- */

.vh-form-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.vh-form-step[hidden] { display: none; }
.vh-form-step.is-active { animation: vhf-step .35s ease; }

@keyframes vhf-step {
	from { opacity: 0; transform: translateX(-14px); }
	to { opacity: 1; transform: none; }
}

.vh-form-progress {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.vh-form-progress__item {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 10px;
	min-width: 0;
	color: var(--vhf-muted);
	font-size: .85rem;
	font-weight: 600;
}

.vh-form-progress__num {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border: 2px solid var(--vhf-border);
	border-radius: 50%;
	background: #fff;
	font-weight: 800;
	transition: all .3s;
}

.vh-form-progress__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vh-form-progress__item.is-active { color: var(--vhf-text); }
.vh-form-progress__item.is-active .vh-form-progress__num {
	border-color: var(--vhf-maroon);
	background: var(--vhf-maroon);
	color: #fff;
	box-shadow: 0 0 0 5px rgba(110, 26, 44, .12);
}

.vh-form-progress__item.is-done .vh-form-progress__num {
	border-color: var(--vhf-green);
	background: var(--vhf-green);
	color: #fff;
}

.vh-form-progress__bar {
	height: 4px;
	margin-bottom: 28px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--vhf-border);
}

.vh-form-progress__bar span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--vhf-gold), var(--vhf-maroon));
	transition: width .45s cubic-bezier(.4, 0, .2, 1);
	margin-right: 0;
	margin-left: auto;
}

@media (max-width: 640px) {
	.vh-form-progress__item:not(.is-active) .vh-form-progress__label { display: none; }
	.vh-form-progress__item:not(.is-active) { flex: none; }
}

/* ---------- Price summary ---------- */

.vh-price-summary {
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid #EADFCB;
	border-radius: var(--vhf-radius);
	background: linear-gradient(135deg, var(--vhf-gold-50), #fff);
}

.vh-price-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 700;
}

.vh-price-summary__total {
	font-size: 1.35rem;
	font-weight: 900;
	color: var(--vhf-maroon);
}

.vh-price-summary__total.is-bump { animation: vhf-bump .35s ease; }

@keyframes vhf-bump {
	40% { transform: scale(1.08); }
}

.vh-price-summary__note { margin: 6px 0 0; font-size: .8rem; color: var(--vhf-muted); }

/* ---------- Nav / submit ---------- */

.vh-form-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.vh-form-nav [data-submit],
.vh-form-nav [data-step-next] { margin-right: auto; }

.vh-form-nav .vh-btn[hidden] { display: none; }

.vh-form-nav .vh-btn svg { width: 18px; height: 18px; }

.vh-form .vh-btn .vh-spinner,
.vh-thread__form .vh-btn .vh-spinner { display: none; }

.vh-btn.is-loading .vh-spinner { display: inline-block; }

.vh-btn.is-loading { pointer-events: none; opacity: .85; }

.vh-form .vh-spinner,
.vh-thread__form .vh-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vhf-spin .7s linear infinite;
}

@keyframes vhf-spin { to { transform: rotate(360deg); } }

.vh-form.is-loading .vh-form-grid { opacity: .6; pointer-events: none; transition: opacity .2s; }

.vh-form-alert { margin-top: 18px; }
.vh-form-alert[hidden] { display: none; }

.vh-hp {
	position: absolute !important;
	top: 0;
	inset-inline-start: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	opacity: 0;
	pointer-events: none;
}

/* ---------- Success ---------- */

.vh-form-success {
	padding: 36px 24px;
	border-radius: var(--vhf-radius-lg, 24px);
	background: linear-gradient(160deg, var(--vhf-green-50), #fff 60%);
	text-align: center;
	outline: none;
}

.vh-form-success[hidden] { display: none; }

.vh-form-success.is-visible { animation: vhf-pop .45s cubic-bezier(.2, 1.2, .4, 1); }

@keyframes vhf-pop {
	from { opacity: 0; transform: scale(.96); }
	to { opacity: 1; transform: none; }
}

.vh-form-success__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--vhf-success);
	color: #fff;
	box-shadow: 0 0 0 10px rgba(47, 125, 79, .12);
	font-size: 34px;
}

.vh-form-success__icon svg { width: 36px; height: 36px; stroke-width: 2.5; }
.vh-form-success__title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.vh-form-success__message { margin: 0 auto 20px; max-width: 460px; color: var(--vhf-muted); line-height: 1.9; }

.vh-form-success__code {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px 10px 10px;
	border: 1px dashed var(--vhf-gold);
	border-radius: 14px;
	background: #fff;
}

.vh-form-success__code span { font-size: .85rem; color: var(--vhf-muted); }
.vh-form-success__code strong { direction: ltr; font-size: 1.2rem; font-weight: 900; letter-spacing: 1px; color: var(--vhf-maroon); }

.vh-form-success__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.vh-form-success__actions [hidden] { display: none; }

/* ---------- Login gate ---------- */

.vh-form-login {
	padding: 24px;
	border: 1px solid var(--vhf-border);
	border-radius: var(--vhf-radius);
	background: #fff;
}

.vh-form-login__intro {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
}

.vh-form-login__intro strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.vh-form-login__intro p { margin: 0; color: var(--vhf-muted); font-size: .88rem; line-height: 1.8; }

.vh-form-login__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--vhf-maroon-50);
	color: var(--vhf-maroon);
}

.vh-form-login__icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   Submission details (panel + admin)
   ========================================================================== */

.vh-details { margin: 0; display: grid; }

.vh-details__row {
	display: grid;
	grid-template-columns: minmax(130px, 34%) 1fr;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--vh-border, #ECE7DE);
}

.vh-details__row:last-child { border-bottom: 0; }
.vh-details dt { color: var(--vh-muted, #6E6B66); font-size: .88rem; }
.vh-details dd { margin: 0; font-weight: 600; line-height: 1.9; word-break: break-word; }

@media (max-width: 560px) {
	.vh-details__row { grid-template-columns: 1fr; gap: 4px; }
}

.vh-file-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.vh-file-list a,
.vh-msg__file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 6px 12px;
	border-radius: 10px;
	background: var(--vh-cream, #F7F5F0);
	color: var(--vh-text, #1E1E1C);
	text-decoration: none;
	font-size: .85rem;
	transition: background .2s;
}

.vh-file-list a:hover,
.vh-msg__file:hover { background: var(--vh-maroon-50, #F8EDEF); color: var(--vh-maroon, #6E1A2C); }

.vh-file-list svg,
.vh-msg__file svg { width: 16px; height: 16px; flex: none; }

.vh-file-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-file-list__size { color: var(--vh-muted, #6E6B66); font-size: .75rem; }

/* ==========================================================================
   Panel: requests
   ========================================================================== */

.vh-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.vh-panel-head h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.vh-panel-head__meta { color: var(--vh-muted, #6E6B66); font-size: .9rem; }
.vh-panel-head__meta strong { color: var(--vh-maroon, #6E1A2C); }

.vh-chips {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}

.vh-chips::-webkit-scrollbar { display: none; }

.vh-chips .vh-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--vh-border, #ECE7DE);
	border-radius: 999px;
	background: #fff;
	color: var(--vh-text, #1E1E1C);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: all .2s;
}

.vh-chips .vh-chip span {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--vh-cream, #F7F5F0);
	font-size: .75rem;
	text-align: center;
}

.vh-chips .vh-chip:hover { border-color: var(--vh-maroon, #6E1A2C); color: var(--vh-maroon, #6E1A2C); }
.vh-chips .vh-chip.is-active { border-color: var(--vh-maroon, #6E1A2C); background: var(--vh-maroon, #6E1A2C); color: #fff; }
.vh-chips .vh-chip.is-active span { background: rgba(255, 255, 255, .2); }

.vh-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--vh-border, #ECE7DE);
	border-radius: var(--vh-radius, 16px);
	background: #fff;
}

.vh-table--requests,
.vh-table-wrap .vh-table { width: 100%; border-collapse: collapse; }

.vh-table-wrap .vh-table th,
.vh-table-wrap .vh-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--vh-border, #ECE7DE);
	text-align: right;
	font-size: .88rem;
	vertical-align: middle;
}

.vh-table-wrap .vh-table th {
	background: var(--vh-cream, #F7F5F0);
	color: var(--vh-muted, #6E6B66);
	font-weight: 700;
	font-size: .8rem;
	white-space: nowrap;
}

.vh-table-wrap .vh-table tbody tr:last-child td { border-bottom: 0; }
.vh-table-wrap .vh-table tbody tr { transition: background .15s; }
.vh-table-wrap .vh-table tbody tr:hover { background: #FCFBF8; }
.vh-table-wrap .vh-table tr.is-unread td:first-child { box-shadow: inset -3px 0 0 var(--vh-maroon, #6E1A2C); }

.vh-table__actions { text-align: left !important; white-space: nowrap; }
.vh-table__actions .vh-btn + .vh-btn { margin-right: 6px; }

.vh-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	color: var(--vh-maroon, #6E1A2C);
	text-decoration: none;
	letter-spacing: .5px;
}

.vh-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--vh-maroon, #6E1A2C);
	box-shadow: 0 0 0 3px rgba(110, 26, 44, .15);
	vertical-align: middle;
}

@media (max-width: 760px) {
	.vh-table-wrap { border: 0; background: transparent; }
	.vh-table-wrap .vh-table thead { display: none; }
	.vh-table-wrap .vh-table,
	.vh-table-wrap .vh-table tbody,
	.vh-table-wrap .vh-table tr,
	.vh-table-wrap .vh-table td { display: block; width: 100%; box-sizing: border-box; }
	.vh-table-wrap .vh-table tr {
		margin-bottom: 12px;
		padding: 6px 0;
		border: 1px solid var(--vh-border, #ECE7DE);
		border-radius: var(--vh-radius, 16px);
		background: #fff;
	}
	.vh-table-wrap .vh-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 16px;
		border: 0;
	}
	.vh-table-wrap .vh-table td[data-label]::before {
		content: attr(data-label);
		color: var(--vh-muted, #6E6B66);
		font-size: .8rem;
	}
	.vh-table-wrap .vh-table td.vh-table__actions { justify-content: flex-start; padding-top: 12px; }
	.vh-table-wrap .vh-table tr.is-unread td:first-child { box-shadow: none; }
	.vh-table-wrap .vh-table tr.is-unread { border-color: var(--vh-maroon, #6E1A2C); }
}

.vh-pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }

.vh-pager__item {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	border: 1px solid var(--vh-border, #ECE7DE);
	border-radius: 10px;
	background: #fff;
	color: var(--vh-text, #1E1E1C);
	text-decoration: none;
	font-weight: 700;
}

.vh-pager__item.is-active { border-color: var(--vh-maroon, #6E1A2C); background: var(--vh-maroon, #6E1A2C); color: #fff; }

.vh-recent-requests { margin-top: 24px; }

.vh-recent-requests .vh-panel-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.vh-recent-requests .vh-panel-block__head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }

.vh-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--vh-maroon, #6E1A2C);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
}

.vh-link svg { width: 16px; height: 16px; }

.vh-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--vh-cream, #F7F5F0);
	color: var(--vh-gold, #B8945A);
}

.vh-empty__icon svg { width: 28px; height: 28px; }

/* ---------- Request detail ---------- */

.vh-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	color: var(--vh-muted, #6E6B66);
	font-size: .88rem;
	text-decoration: none;
}

.vh-back:hover { color: var(--vh-maroon, #6E1A2C); }
.vh-back svg { width: 16px; height: 16px; }

.vh-request .vh-alert { margin-bottom: 16px; }

.vh-request__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
	padding: 22px 24px;
	border-radius: var(--vh-radius-lg, 24px);
	background: linear-gradient(120deg, var(--vh-green, #3E4A2A), var(--vh-green-800, #2C3620));
	color: #fff;
	position: relative;
	overflow: hidden;
}

.vh-request__head::after {
	content: "";
	position: absolute;
	left: -40px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(184, 148, 90, .35), transparent 70%);
	pointer-events: none;
}

.vh-request__eyebrow { font-size: .8rem; opacity: .75; }

.vh-request__code {
	margin: 2px 0 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: 1px;
	color: #fff;
	text-align: right;
}

.vh-request__title { margin: 0; opacity: .9; }

.vh-request__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	font-size: .85rem;
	position: relative;
	z-index: 1;
}

.vh-request__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vh-request__meta svg { width: 16px; height: 16px; }
.vh-request__head .vh-badge { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }

.vh-request__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 1024px) {
	.vh-request__grid { grid-template-columns: 1fr; }
	.vh-request__side { order: -1; }
}

.vh-request__section { padding: 22px 24px; margin-bottom: 20px; }
.vh-request__section h3 { margin: 0 0 14px; font-size: 1.02rem; font-weight: 800; }

.vh-mini-dl { margin: 0 0 16px; display: grid; gap: 10px; }
.vh-mini-dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; }
.vh-mini-dl dt { color: var(--vh-muted, #6E6B66); }
.vh-mini-dl dd { margin: 0; }
.vh-pay-box .vh-btn svg { width: 18px; height: 18px; }

.vh-timeline {
	position: relative;
	margin: 0;
	padding: 0 22px 0 0;
	list-style: none;
}

.vh-timeline::before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 6px;
	right: 6px;
	width: 2px;
	background: var(--vh-border, #ECE7DE);
}

.vh-timeline__item { position: relative; padding-bottom: 18px; }
.vh-timeline__item:last-child { padding-bottom: 0; }

.vh-timeline__item::before {
	content: "";
	position: absolute;
	top: 5px;
	right: -22px;
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #CFC7BA;
	box-shadow: 0 0 0 1px var(--vh-border, #ECE7DE);
}

.vh-timeline__item.is-current::before { background: var(--vh-maroon, #6E1A2C); box-shadow: 0 0 0 4px rgba(110, 26, 44, .15); }
.vh-timeline__item--success.is-current::before { background: var(--vh-success, #2F7D4F); box-shadow: 0 0 0 4px rgba(47, 125, 79, .15); }
.vh-timeline__item--danger.is-current::before { background: var(--vh-danger, #B42318); }
.vh-timeline__item strong { display: block; font-size: .9rem; }
.vh-timeline__item time { font-size: .78rem; color: var(--vh-muted, #6E6B66); }
.vh-timeline__item p { margin: 4px 0 0; font-size: .82rem; color: var(--vh-text, #1E1E1C); background: var(--vh-cream, #F7F5F0); padding: 6px 10px; border-radius: 8px; }

/* ---------- Thread ---------- */

.vh-thread__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 480px;
	margin-bottom: 16px;
	overflow-y: auto;
	padding: 4px;
}

.vh-thread__empty {
	margin: 0;
	padding: 18px;
	border-radius: 12px;
	background: var(--vh-cream, #F7F5F0);
	color: var(--vh-muted, #6E6B66);
	font-size: .88rem;
	text-align: center;
}

.vh-msg {
	max-width: 82%;
	padding: 12px 16px;
	border-radius: 16px;
	font-size: .9rem;
	line-height: 1.9;
}

.vh-msg--me {
	align-self: flex-start;
	border-bottom-right-radius: 4px;
	background: var(--vh-maroon-50, #F8EDEF);
}

.vh-msg--staff {
	align-self: flex-end;
	border-bottom-left-radius: 4px;
	background: var(--vh-green-50, #EEF1E7);
}

.vh-msg.is-new { animation: vhf-in .3s ease; }

.vh-msg__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
	font-size: .75rem;
	color: var(--vh-muted, #6E6B66);
}

.vh-msg__meta strong { color: var(--vh-text, #1E1E1C); }
.vh-msg__file { margin-top: 8px; background: rgba(255, 255, 255, .7); }

.vh-thread__form textarea.vh-input {
	width: 100%;
	min-height: 90px;
	padding: 12px 16px;
	border: 1.5px solid var(--vh-border, #ECE7DE);
	border-radius: 12px;
	font: inherit;
	resize: vertical;
	box-sizing: border-box;
}

.vh-thread__form textarea.vh-input:focus { outline: none; border-color: var(--vh-maroon, #6E1A2C); box-shadow: 0 0 0 4px rgba(110, 26, 44, .1); }

.vh-thread__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.vh-attach {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 60%;
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--vh-muted, #6E6B66);
	font-size: .85rem;
	cursor: pointer;
	transition: background .2s;
}

.vh-attach:hover { background: var(--vh-cream, #F7F5F0); color: var(--vh-maroon, #6E1A2C); }
.vh-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vh-attach svg { width: 18px; height: 18px; flex: none; }
.vh-attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.vh-ff,
	.vh-form-step.is-active,
	.vh-form-success.is-visible,
	.vh-price-summary__total.is-bump,
	.vh-msg.is-new { animation: none; }
}
