/* =========================================================================
   Eurasia Exhibitors — front end
   Built on the theme's tokens (--e-*) with fallbacks, so it matches the
   Eurasia Navid theme and still stands on its own. Logical properties only:
   the same rules serve RTL and LTR pages.
   ========================================================================= */

.eux {
	--x-primary: var(--e-primary, #0B2A4E);
	--x-on-primary: var(--e-on-primary, #FFFFFF);
	--x-accent: var(--e-accent, #C8921F);
	--x-ink: var(--e-ink, #16202E);
	--x-muted: var(--e-muted, #5B6B7F);
	--x-surface: var(--e-surface, #FFFFFF);
	--x-surface-alt: var(--e-surface-alt, #F6F8FB);
	--x-border: var(--e-border, #E3E8EF);
	--x-border-strong: var(--e-border-strong, #CFD6E0);
	--x-soft: var(--e-primary-soft, #EDF1F6);
	--x-danger: #B42318;
	--x-danger-soft: #FEF3F2;
	--x-ok: #067647;
	--x-ok-soft: #ECFDF3;
	--x-r-sm: var(--e-radius-sm, 8px);
	--x-r-md: var(--e-radius-md, 12px);
	--x-r-lg: var(--e-radius-lg, 18px);
	--x-ring: 0 0 0 3px rgba(var(--e-primary-rgb, 11, 42, 78), .18);

	max-width: 1080px;
	margin-inline: auto;
	color: var(--x-ink);
	font-size: 15px;
	line-height: 1.7;
}

.eux *,
.eux *::before,
.eux *::after {
	box-sizing: border-box;
}

.eux [hidden] {
	display: none !important;
}

/* ----- Cards & headings ------------------------------------------------ */

.eux-card {
	background: var(--x-surface);
	border: 1px solid var(--x-border);
	border-radius: var(--x-r-lg);
	padding: 20px;
	margin-block-end: 20px;
	box-shadow: 0 1px 2px rgba(16, 30, 54, .05);
}

.eux-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 16px;
}

.eux-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.eux-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 16px;
}

.eux-head__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.4;
}

.eux-head__sub {
	margin: 2px 0 0;
	color: var(--x-muted);
	font-size: .9rem;
}

.eux-head__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-inline-start: auto;
}

.eux-head__actions--end {
	margin-block-end: 8px;
}

.eux-notice {
	padding: 12px 16px;
	margin-block-end: 16px;
	border-radius: var(--x-r-md);
	background: var(--x-soft);
	border-inline-start: 4px solid var(--x-primary);
	font-size: .92rem;
}

.eux-notice--ok {
	background: var(--x-ok-soft);
	border-color: var(--x-ok);
	color: var(--x-ok);
}

.eux-notice--error {
	background: var(--x-danger-soft);
	border-color: var(--x-danger);
	color: var(--x-danger);
}

.eux-empty {
	margin: 0;
	padding: 24px 8px;
	text-align: center;
	color: var(--x-muted);
}

/* ----- Tabs ------------------------------------------------------------- */

.eux-tabs {
	display: flex;
	gap: 4px;
	margin-block-end: 16px;
	border-block-end: 1px solid var(--x-border);
	overflow-x: auto;
	scrollbar-width: none;
}

.eux-tabs__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	margin-block-end: -1px;
	border-block-end: 2px solid transparent;
	color: var(--x-muted);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.eux-tabs__item:hover {
	color: var(--x-ink);
}

.eux-tabs__item.is-active {
	color: var(--x-primary);
	border-color: var(--x-primary);
}

.eux-count {
	min-width: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--x-soft);
	color: var(--x-primary);
	font-size: .78rem;
	text-align: center;
	line-height: 20px;
}

/* ----- Buttons & links -------------------------------------------------- */

.eux-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid var(--x-border-strong);
	border-radius: var(--x-r-sm);
	background: var(--x-surface);
	color: var(--x-ink);
	font: inherit;
	font-weight: 600;
	font-size: .92rem;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.eux-btn:hover {
	border-color: var(--x-primary);
	color: var(--x-primary);
}

.eux-btn:focus-visible,
.eux-input:focus-visible,
.eux-link:focus-visible,
.eux-tabs__item:focus-visible {
	outline: none;
	box-shadow: var(--x-ring);
}

.eux-btn--primary {
	background: var(--x-primary);
	border-color: var(--x-primary);
	color: var(--x-on-primary);
}

.eux-btn--primary:hover {
	background: var(--e-primary-dark, #071C36);
	color: var(--x-on-primary);
}

.eux-btn--ghost {
	background: transparent;
}

.eux-btn--danger {
	color: var(--x-danger);
	border-color: #F4C7C3;
}

.eux-btn--danger:hover {
	background: var(--x-danger-soft);
	border-color: var(--x-danger);
	color: var(--x-danger);
}

.eux-btn--ok {
	color: var(--x-ok);
	border-color: #A9DFC4;
}

.eux-btn--ok:hover {
	background: var(--x-ok-soft);
	border-color: var(--x-ok);
	color: var(--x-ok);
}

.eux-btn--small {
	min-height: 34px;
	padding: 4px 12px;
	font-size: .85rem;
}

/* The one button on an empty dashboard: it is the whole point of the page. */
.eux-btn--big {
	min-height: 54px;
	padding: 12px 34px;
	font-size: 1.05rem;
}

.eux-btn--block {
	width: 100%;
}

.eux-btn:disabled,
.eux-btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}

.eux-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--x-primary);
	font: inherit;
	font-size: .9rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.eux-link:disabled {
	color: var(--x-muted);
	text-decoration: none;
	cursor: default;
}

/* ----- Form grid -------------------------------------------------------- */

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

@media (min-width: 720px) {
	.eux-grid {
		grid-template-columns: 1fr 1fr;
		column-gap: 20px;
	}

	.eux-field--full,
	.eux-section {
		grid-column: 1 / -1;
	}
}

.eux-section {
	padding-block-start: 12px;
	border-block-start: 1px solid var(--x-border);
}

.eux-grid > .eux-section:first-child {
	padding-block-start: 0;
	border: 0;
}

.eux-section__title {
	margin: 0;
	font-size: 1rem;
	color: var(--x-primary);
}

.eux-field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.eux-field fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.eux-label {
	display: block;
	margin-block-end: 6px;
	padding: 0;
	font-weight: 600;
	font-size: .9rem;
}

.eux-req {
	color: var(--x-danger);
}

.eux-input {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--x-border-strong);
	border-radius: var(--x-r-sm);
	background: var(--x-surface);
	color: var(--x-ink);
	font: inherit;
	font-size: 1rem; /* 16px keeps iOS from zooming on focus */
	line-height: 1.5;
}

.eux-input:focus {
	border-color: var(--x-primary);
}

.eux-input[readonly] {
	background: var(--x-surface-alt);
}

#eux-login-phone {
	text-align: center;
}

textarea.eux-input {
	resize: vertical;
	min-height: 96px;
}

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

.eux-input--code {
	letter-spacing: .5em;
	text-align: center !important;
	font-size: 1.3rem;
	font-weight: 700;
}

.eux-help {
	margin: 6px 0 0;
	color: var(--x-muted);
	font-size: .82rem;
	line-height: 1.6;
}

.eux-help.is-ok {
	color: var(--x-ok);
}

.eux-help.is-error {
	color: var(--x-danger);
}

.eux-error {
	margin: 6px 0 0;
	color: var(--x-danger);
	font-size: .84rem;
	font-weight: 600;
}

.eux-field.has-error .eux-input {
	border-color: var(--x-danger);
}

.eux-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eux-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--x-border-strong);
	border-radius: 999px;
	cursor: pointer;
	font-size: .92rem;
}

.eux-choice:has(input:checked) {
	border-color: var(--x-primary);
	background: var(--x-soft);
	color: var(--x-primary);
}

.eux-choice input {
	accent-color: var(--x-primary);
	margin: 0;
}

.eux-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-block-start: 24px;
	padding-block-start: 16px;
	border-block-start: 1px solid var(--x-border);
}

.eux-form__msg {
	margin: 0;
	font-size: .9rem;
}

.eux-form__msg.is-error {
	color: var(--x-danger);
}

.eux-form__msg.is-ok {
	color: var(--x-ok);
}

/* ----- Sign-in ---------------------------------------------------------- */

.eux-login {
	max-width: 440px;
	margin-inline: auto;
}

.eux-login .eux-card__title {
	margin-block-end: 20px;
	justify-content: center;
}

.eux-login__step {
	display: grid;
	gap: 16px;
}

.eux-login__sent {
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--x-r-sm);
	background: var(--x-soft);
	font-size: .9rem;
}

.eux-login__links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

/* ----- Phone change ----------------------------------------------------- */

.eux-phone__current,
.eux-phone__row {
	display: flex;
	gap: 8px;
}

.eux-phone__current .eux-input,
.eux-phone__row .eux-input {
	flex: 1 1 auto;
	min-width: 0;
}

/* The button beside the number is as wide as what it says, no wider. */
.eux-phone__current .eux-btn,
.eux-phone__row .eux-btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.eux-phone__change {
	margin-block-start: 10px;
	padding: 12px;
	border-radius: var(--x-r-md);
	background: var(--x-surface-alt);
	display: grid;
	gap: 8px;
}

/* ----- Dashboard -------------------------------------------------------- */

.eux-start {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 40px 24px;
}

.eux-start__title {
	margin: 0;
	font-size: 1.25rem;
}

.eux-start__text {
	margin: 0;
	max-width: 46ch;
	color: var(--x-muted);
	line-height: 1.9;
}

.eux-start__note {
	margin: 0;
	color: var(--x-muted);
	font-size: .85rem;
}

.eux-cards {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.eux-cards__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--x-border);
	border-radius: var(--x-r-md);
	background: var(--x-surface-alt);
}

.eux-cards__title {
	margin: 0 0 4px;
	font-size: 1.02rem;
}

.eux-cards__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.eux-cards__step {
	color: var(--x-muted);
	font-size: .85rem;
}

.eux-cards__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-inline-start: auto;
}

/* ----- Company picker --------------------------------------------------- */

.eux-picker {
	position: relative;
}

.eux-picker__chips {
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.eux-picker__chips:empty {
	display: none;
}

.eux-picker__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px 4px 10px;
	border: 1px solid var(--x-border-strong);
	border-radius: 999px;
	background: var(--x-surface);
	font-size: .85rem;
}

.eux-picker__drop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--x-soft);
	color: var(--x-muted);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.eux-picker__drop:hover {
	background: var(--x-danger-soft);
	color: var(--x-danger);
}

.eux-picker__list {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 4px);
	z-index: 20;
	max-height: 260px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	background: var(--x-surface);
	border: 1px solid var(--x-border-strong);
	border-radius: var(--x-r-sm);
	box-shadow: 0 8px 24px rgba(16, 30, 54, .12);
}

.eux-picker__list li {
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
}

.eux-picker__list li:hover,
.eux-picker__list li.is-active {
	background: var(--x-soft);
	color: var(--x-primary);
}

.eux-picker__empty {
	margin: 6px 0 0;
	color: var(--x-muted);
	font-size: .85rem;
}

/* ----- Uploads ---------------------------------------------------------- */

.eux-doc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-block-end: 10px;
	padding: 12px;
	border-radius: var(--x-r-md);
	background: var(--x-surface-alt);
}

.eux-doc .eux-help {
	flex: 1 1 240px;
	margin: 0;
}

.eux-upload {
	position: relative;
	display: grid;
	gap: 8px;
}

.eux-upload--image {
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 16px;
}

.eux-upload--image .eux-upload__rules {
	grid-column: 2;
}

.eux-upload__preview {
	grid-row: span 2;
	width: 96px;
	height: 120px;
	border-radius: var(--x-r-md);
	border: 1px dashed var(--x-border-strong);
	background: var(--x-surface-alt);
	overflow: hidden;
}

.eux-upload__preview.is-square {
	height: 96px;
}

.eux-upload__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The native control is kept for the keyboard but never seen: its button and
   its «no file chosen» text come from the browser and cannot be translated. */
.eux-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.eux-upload__pick {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.eux-upload__btn {
	margin: 0;
	cursor: pointer;
}

.eux-upload__input:focus-visible + .eux-upload__pick .eux-upload__btn {
	box-shadow: var(--x-ring);
	border-color: var(--x-primary);
}

.eux-upload__name {
	font-size: .88rem;
	color: var(--x-muted);
	word-break: break-all;
}

.eux-upload__name.is-chosen {
	color: var(--x-ink);
}

.eux-upload__current {
	font-size: .88rem;
	color: var(--x-primary);
	word-break: break-all;
}

.eux-upload__rules {
	margin: 0;
}

/* ----- People ----------------------------------------------------------- */

.eux-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 12px;
}

/* A table row carries .eux-person too (see eux_render_people_table()), and a
   row is not a card: the card's own shape stops at :not(--row). */
.eux-person:not(.eux-person--row) {
	position: relative;
	display: grid;
	grid-template-columns: var(--photo-w) 1fr;
	gap: 4px 14px;
	align-items: center;

	/* Portrait, and large enough to judge a face at a glance. */
	--photo-w: 112px;
	--photo-h: 140px;
	padding: 14px;
	border: 1px solid var(--x-border);
	border-radius: var(--x-r-md);
	background: var(--x-surface);
}

.eux-person:not(.eux-person--row):has([data-eux-pick]:checked) {
	border-color: var(--x-primary);
	box-shadow: inset 0 0 0 1px var(--x-primary);
}

/* A picked row says so with its background: a table has no border to colour. */
.eux-person--row:has([data-eux-pick]:checked) {
	background: var(--x-surface-alt);
}

/* The checkbox is a column of its own, so nothing overlaps the photo or name.
   It carries :not(--row) as well, or the card's own columns would outrank it. */
.eux-person--pick:not(.eux-person--row) {
	grid-template-columns: 20px var(--photo-w) minmax(0, 1fr);
}

.eux-person__select {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.eux-person__select input,
.eux-selbar input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--x-primary);
	cursor: pointer;
}

.eux-selbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-block-end: 12px;
	padding: 10px 14px;
	border-radius: var(--x-r-md);
	background: var(--x-soft);
	font-size: .92rem;
}

.eux-selbar--bottom {
	margin-block: 12px 0;
}

.eux-selbar__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 600;
}

.eux-selbar__count {
	color: var(--x-muted);
}

.eux-selbar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-inline-start: auto;
}

/* ----- Filter and view chips -------------------------------------------- */

.eux-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-end: 12px;
}

.eux-chips--view {
	margin-block-end: 0;
}

.eux-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid var(--x-border-strong);
	border-radius: 999px;
	background: var(--x-surface);
	color: inherit;
	font: inherit;
	font-size: .85rem;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
}

.eux-chip:hover {
	border-color: var(--x-primary);
	color: var(--x-primary);
}

.eux-chip.is-active {
	border-color: var(--x-primary);
	background: var(--x-soft);
	color: var(--x-primary);
	font-weight: 600;
}

.eux-person__photo {
	position: relative;
	width: var(--photo-w);
	height: var(--photo-h);
	border-radius: var(--x-r-md);
	overflow: hidden;
	background: var(--x-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* The verdict on the picture: a white mark on its own colour, in the corner
   the reading starts from — the right one on a Persian page. */
.eux-person__mark {
	position: absolute;
	inset-block-start: 6px;
	inset-inline-start: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
	color: #fff;
	font-size: 14px;
}

.eux-person__mark-ico {
	display: none;
	line-height: 0;
}

.eux-person__mark--approved [data-eux-mark-ico="approved"],
.eux-person__mark--rejected [data-eux-mark-ico="rejected"] {
	display: block;
}

.eux-person__mark--approved {
	background: var(--x-ok);
}

.eux-person__mark--rejected {
	background: var(--x-danger);
}

.eux-person__mark--pending {
	background: #E8A317;
}

.eux-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%; /* keep the head in frame when the photo is cropped */
}

.eux-person__initial {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--x-primary);
}

.eux-person__body {
	min-width: 0;
}

.eux-person__name {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.eux-person__code {
	color: var(--x-muted);
	font-size: .8rem;
	font-weight: 600;
}

.eux-person__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-block-start: 6px;
}

/* The company is read, not filtered on, so it gets no box. */
.eux-person__company {
	color: var(--x-muted);
	font-size: .9rem;
	overflow-wrap: anywhere;
}

.eux-person__company.is-none {
	font-style: italic;
}

.eux-person__tags:empty {
	display: none;
}

.eux-person__review {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-start: 8px;
}

.eux-person__actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-start: 8px;
	padding-block-start: 10px;
	border-block-start: 1px solid var(--x-border);
}

.eux-tag {
	display: inline-block;
	max-width: 100%;
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--x-soft);
	color: var(--x-primary);
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

.eux-tag--muted {
	background: var(--x-surface-alt);
	color: var(--x-muted);
}

.eux-tag--ok {
	background: var(--x-ok-soft);
	color: var(--x-ok);
}

.eux-tag--warn {
	background: #FEF6E7;
	color: #9A6700;
}

.eux-tag--danger {
	background: var(--x-danger-soft);
	color: var(--x-danger);
}

/* ----- People as a list -------------------------------------------------
   One row per person on a wide screen; on a narrow one the cards stack, which
   is what the grid view does anyway.
   ------------------------------------------------------------------------ */

@media (min-width: 700px) {
	.eux-people--list {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.eux-people--list .eux-person {
		/* Large enough to judge a face without opening it. */
		--photo-w: 104px;
		--photo-h: 132px;

		grid-template-columns: var(--photo-w) minmax(0, 1fr) auto auto;
		align-items: center;
		gap: 14px;
		padding: 10px 14px;
	}

	.eux-people--list .eux-person--pick {
		grid-template-columns: 20px var(--photo-w) minmax(0, 1fr) auto auto;
	}

	/* The name and the company are one line: a list is read across, not down. */
	.eux-people--list .eux-person__body {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px 12px;
	}

	.eux-people--list .eux-person__tags {
		margin-block-start: 0;
	}

	.eux-people--list .eux-person__review,
	.eux-people--list .eux-person__actions {
		grid-column: auto;
		margin: 0;
		padding: 0;
		border: 0;
	}
}

/* On a phone the list keeps the same reading order in less width: a slim
   checkbox, the photo on the reading edge, what is known about the person
   beside it, and the buttons on their own line underneath. */
@media (max-width: 699px) {
	.eux-people--list .eux-person {
		--photo-w: 92px;
		--photo-h: 116px;

		align-items: start;
		gap: 2px 12px;
		padding: 12px;
	}

	.eux-people--list .eux-person__select {
		align-items: start;
		padding-block-start: 2px;
	}

	.eux-people--list .eux-person__name {
		font-size: .95rem;
	}

	.eux-people--list .eux-person__review,
	.eux-people--list .eux-person__actions {
		justify-content: flex-start;
	}
}

/* ----- Table ------------------------------------------------------------ */

.eux-search {
	width: 100%;
	max-width: 320px;
	min-height: 40px;
}

.eux-table-wrap {
	overflow-x: auto;
	margin-inline: -20px;
	padding-inline: 20px;
}

.eux-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}

.eux-table th,
.eux-table td {
	padding: 12px 10px;
	border-block-end: 1px solid var(--x-border);
	text-align: start;
	vertical-align: middle;
	white-space: nowrap;
}

.eux-table thead th {
	color: var(--x-muted);
	font-weight: 600;
	font-size: .82rem;
	background: var(--x-surface-alt);
}

.eux-table tbody th {
	font-weight: 600;
	white-space: normal;
	min-width: 180px;
}

.eux-table tbody th a {
	color: var(--x-primary);
	text-decoration: none;
}

.eux-table tbody th a:hover {
	text-decoration: underline;
}

.eux-table tbody tr:hover {
	background: var(--x-surface-alt);
}

/* ----- Summary ---------------------------------------------------------- */

.eux-summary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
}

@media (min-width: 720px) {
	.eux-summary {
		grid-template-columns: 1fr 1fr;
		column-gap: 24px;
	}
}

.eux-summary > div {
	padding: 10px 0;
	border-block-end: 1px solid var(--x-border);
}

.eux-summary dt {
	color: var(--x-muted);
	font-size: .82rem;
}

.eux-summary dd {
	margin: 2px 0 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* ----- Small screens ---------------------------------------------------- */

@media (max-width: 599px) {
	.eux-card {
		padding: 16px;
		border-radius: var(--x-r-md);
	}

	.eux-table-wrap {
		margin-inline: -16px;
		padding-inline: 16px;
	}

	.eux-search {
		max-width: none;
	}

	.eux-form__foot .eux-btn {
		width: 100%;
	}

	.eux-phone__current,
	.eux-phone__row {
		flex-wrap: wrap;
	}

	.eux-phone__current .eux-btn,
	.eux-phone__row .eux-btn {
		flex: 1 1 100%;
	}
}

/* ----- Lightbox --------------------------------------------------------- */

.eux-upload__preview a,
.eux-person__photo a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

/* It carries the .eux class for the colour tokens, so the width and the
   centring that class brings are undone here: the backdrop covers the page. */
.eux-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 24px;
	background: rgba(9, 15, 24, .82);
}

.eux-lightbox.is-open {
	display: flex;
}

.eux-lightbox__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	max-height: 100%;
}

.eux-lightbox__figure img {
	max-width: min(92vw, 720px);
	max-height: 80vh;
	border-radius: var(--x-r-md);
	background: var(--x-surface);
	object-fit: contain;
}

.eux-lightbox figcaption {
	color: #fff;
	font-size: .95rem;
	text-align: center;
}

.eux-lightbox__close {
	position: absolute;
	inset-block-start: 16px;
	inset-inline-end: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.eux-lightbox__close:hover {
	background: rgba(255, 255, 255, .3);
}

body.eux-lightbox-open {
	overflow: hidden;
}

/* ----- Jalali calendar -------------------------------------------------- */

/* Two elements deep, because the calendar's own stylesheet loads after this
   one and sets the same variables on itself. */
html jdp-container {
	--jdp-primary: var(--e-primary, #0B2A4E);
	--jdp-color-5: var(--e-ink, #16202E);
	font-family: inherit;
	z-index: 100000;
}

/* ----- Registration steps ----------------------------------------------- */

.eux-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: eux-step;
}

.eux-steps__item {
	flex: 1 1 180px;
	min-width: 0;
}

.eux-steps__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--x-border);
	border-radius: var(--x-r-md);
	background: var(--x-surface);
	color: var(--x-muted);
	text-decoration: none;
	font-size: .92rem;
	line-height: 1.4;
}

a.eux-steps__link:hover {
	border-color: var(--x-primary);
	color: var(--x-primary);
}

.eux-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--x-soft);
	color: var(--x-primary);
	font-weight: 700;
	font-size: .85rem;
}

.eux-steps__item.is-done .eux-steps__link {
	border-color: #A9DFC4;
	color: var(--x-ok);
}

.eux-steps__item.is-done .eux-steps__num {
	background: var(--x-ok-soft);
	color: var(--x-ok);
}

.eux-steps__item.is-current .eux-steps__link {
	border-color: var(--x-primary);
	background: var(--x-soft);
	color: var(--x-primary);
	font-weight: 600;
}

.eux-steps__item.is-current .eux-steps__num {
	background: var(--x-primary);
	color: var(--x-on-primary);
}

.eux-steps__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 16px;
	padding-block-start: 16px;
	border-block-start: 1px solid var(--x-border);
}

/* -------------------------------------------------------------------------
   Icons
   ------------------------------------------------------------------------- */

.eux-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.eux-icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.eux-icon--btn {
	font-size: 15px;
	margin-inline-end: 4px;
}

.eux-btn .eux-icon--btn svg {
	width: 1.05em;
	height: 1.05em;
}

/* -------------------------------------------------------------------------
   The verdict popup
   ------------------------------------------------------------------------- */

.eux-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, .55);
	animation: eux-popup-in .16s ease-out;
}

.eux-popup__card {
	width: min(380px, 100%);
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 28px 24px 22px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
	text-align: center;
}

.eux-popup__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.eux-popup__mark svg {
	width: 38px;
	height: 38px;
}

.eux-popup--ok .eux-popup__mark {
	background: #e7f7ee;
	color: #10803f;
}

.eux-popup--no .eux-popup__mark {
	background: #fdeaea;
	color: #c22626;
}

.eux-popup__text {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.9;
	color: #16202e;
}

.eux-popup--ok .eux-popup__text {
	color: #10803f;
}

.eux-popup--no .eux-popup__text {
	color: #c22626;
}

@keyframes eux-popup-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.eux-popup {
		animation: none;
	}
}

/* -------------------------------------------------------------------------
   The people table
   ------------------------------------------------------------------------- */

.eux-table tr[hidden],
.eux-person[hidden] {
	display: none;
}

.eux-table--people td {
	vertical-align: middle;
}

.eux-table--people .eux-col--photo {
	width: 56px;
}

.eux-table--people .eux-col--photo img {
	width: 40px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.eux-table--people .eux-col--photo .eux-person__initial {
	width: 40px;
	height: 50px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef2f7;
	font-weight: 700;
}

.eux-table__pick {
	width: 34px;
}

.eux-table__do {
	width: 1%;
	white-space: nowrap;
}

/* One row, one line of buttons: a wrapped action column makes every row as
   tall as its buttons. A table too wide for the page scrolls sideways instead. */
.eux-row-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	justify-content: flex-end;
}

.eux-dash {
	color: #94a3b8;
}

.eux-chips--companies {
	margin: 0 0 14px;
}

@media (max-width: 720px) {
	.eux-table--people thead {
		display: none;
	}

	.eux-table--people tr {
		display: grid;
		grid-template-columns: 56px 1fr;
		gap: 4px 10px;
		padding: 10px 0;
		border-block-end: 1px solid #e6e9ef;
	}

	.eux-table--people td {
		border: 0;
		padding: 2px 0;
	}

	.eux-table--people .eux-col--photo {
		grid-row: span 3;
	}

	.eux-table--people td[data-label]:not(.eux-col--photo):not(.eux-col--name)::before {
		content: attr(data-label) ": ";
		color: #64748b;
		font-size: 12px;
	}

	.eux-table--people .eux-table__do,
	.eux-table--people .eux-table__pick {
		grid-column: 2;
	}

	.eux-row-actions {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
}

/* Signing out: the one button on the page that undoes where you are. */

.eux-btn--exit,
.eux-btn--exit:visited {
	background: #A02121;
	border-color: #A02121;
	color: #fff;
}

.eux-btn--exit:hover,
.eux-btn--exit:focus {
	background: #8A1B1B;
	border-color: #8A1B1B;
	color: #fff;
}
