/**
 * Portal, application form and booking form styles.
 * Uses the theme's CSS custom properties so it follows the chosen palette.
 */

.fhc-portal,
.fhc-form {
	max-width: 860px;
	margin: 0 auto;
}

.fhc-form__intro {
	color: var(--fhc-muted, #5a6474);
	margin-bottom: 1.5rem;
}

.fhc-form__section {
	margin: 2.25rem 0 1rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--fhc-accent, #f2789f);
	font-size: 1.05rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.fhc-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin: 0 0 1.1rem;
}

.fhc-field label {
	font-weight: 600;
	font-size: .95rem;
}

.fhc-field input[type="text"],
.fhc-field input[type="email"],
.fhc-field input[type="tel"],
.fhc-field input[type="date"],
.fhc-field input[type="number"],
.fhc-field input[type="file"],
.fhc-field select,
.fhc-field textarea,
.fhc-message-form textarea {
	width: 100%;
	padding: .7rem .85rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: var(--fhc-radius, 12px);
	background: #fff;
	font: inherit;
	color: inherit;
}

.fhc-field input:focus,
.fhc-field select:focus,
.fhc-field textarea:focus {
	outline: 2px solid var(--fhc-accent, #f2789f);
	outline-offset: 1px;
}

.fhc-req { color: #d63638; }

.fhc-help {
	font-size: .82rem;
	color: var(--fhc-muted, #5a6474);
}

.fhc-checkgroup {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: .4rem .9rem;
}

.fhc-check {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-weight: 400 !important;
	font-size: .93rem;
}

.fhc-btn {
	display: inline-block;
	padding: .85rem 1.6rem;
	border: 0;
	border-radius: var(--fhc-radius-pill, 999px);
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.fhc-btn:hover { transform: translateY(-1px); }

.fhc-btn--primary {
	background: var(--fhc-accent, #f2789f);
	color: #fff;
}

.fhc-btn--pay {
	background: var(--fhc-primary, #0c2340);
	color: #fff;
}

.fhc-btn--ghost {
	background: transparent;
	border: 1px solid var(--fhc-border, #dfe3ea);
	color: inherit;
}

.fhc-notice {
	padding: .9rem 1.1rem;
	border-radius: var(--fhc-radius, 12px);
	margin-bottom: 1.5rem;
	border-left: 4px solid;
}

.fhc-notice--success { background: #eefaf3; border-color: #1d9e63; }
.fhc-notice--error { background: #fdeced; border-color: #d63638; }

.fhc-quote-box {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .6rem;
	padding: 1.1rem 1.3rem;
	border-radius: var(--fhc-radius, 12px);
	background: var(--fhc-soft, #f6f7fb);
	margin: 1.5rem 0;
}

.fhc-quote-box strong { font-size: 1.6rem; }
.fhc-quote-box small { flex-basis: 100%; color: var(--fhc-muted, #5a6474); }

/* ------------------------------------------------------------ Portal */

/* Soft, layered page background so the portal panels read as cards. */
.fhc-portal {
	position: relative;
	padding: 1.75rem clamp(1rem, 3vw, 2rem) 2.5rem;
	border-radius: calc(var(--fhc-radius, 12px) * 1.5);
	background:
		radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--fhc-accent, #f2789f) 12%, transparent) 0%, transparent 55%),
		radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--fhc-primary, #0c2340) 10%, transparent) 0%, transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--fhc-soft, #f6f7fb) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.fhc-portal {
		background: linear-gradient(180deg, #fff 0%, var(--fhc-soft, #f6f7fb) 100%);
	}
}

.fhc-portal .fhc-table-wrap,
.fhc-portal .fhc-tabs {
	position: relative;
}

.fhc-portal__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.fhc-portal__title {
	margin: 2rem 0 1rem;
	font-size: 1.15rem;
}

.fhc-portal__login {
	max-width: 440px;
	margin: 1rem auto 2.5rem;
	padding: 2rem 1.9rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 46px rgba(12, 35, 64, .08);
}

.fhc-portal__login h2 {
	margin: 0 0 .5rem;
	font-size: 1.45rem;
}

.fhc-portal__login > p {
	margin: 0 0 1.5rem;
	color: var(--fhc-muted, #5a6474);
	font-size: .92rem;
	line-height: 1.5;
}

.fhc-portal__login form {
	max-width: none;
}

.fhc-portal__login form p {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin: 0 0 1.05rem;
}

.fhc-portal__login form label {
	font-weight: 600;
	font-size: .9rem;
}

.fhc-portal__login input[type="text"],
.fhc-portal__login input[type="password"] {
	width: 100%;
	padding: .75rem .9rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: var(--fhc-radius, 12px);
	background: #fff;
	font: inherit;
	color: inherit;
}

.fhc-portal__login input[type="text"]:focus,
.fhc-portal__login input[type="password"]:focus {
	outline: 2px solid var(--fhc-accent, #f2789f);
	outline-offset: 1px;
}

.fhc-portal__login .login-remember {
	flex-direction: row;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	color: var(--fhc-muted, #5a6474);
}

.fhc-portal__login .login-remember label {
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.fhc-portal__login .login-submit {
	margin-top: .4rem;
}

.fhc-portal__login input[type="submit"] {
	width: 100%;
	padding: .85rem 1.2rem;
	border: 0;
	border-radius: var(--fhc-radius-pill, 999px);
	background: var(--fhc-accent, #f2789f);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}

.fhc-portal__login input[type="submit"]:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.fhc-portal__links {
	margin: 1.25rem 0 0;
	font-size: .88rem;
	color: var(--fhc-muted, #5a6474);
}

.fhc-portal__links a {
	color: var(--fhc-accent, #f2789f);
	font-weight: 600;
	text-decoration: none;
}

.fhc-portal__links a:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.fhc-portal__login { padding: 1.5rem 1.25rem; }
}

.fhc-card {
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: var(--fhc-radius, 16px);
	padding: 1.25rem 1.35rem;
	margin-bottom: 1.25rem;
	background: #fff;
	box-shadow: 0 6px 24px rgba(12, 35, 64, .06);
}

.fhc-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
}

.fhc-card__head strong { display: block; }
.fhc-card__head span { color: var(--fhc-muted, #5a6474); font-size: .9rem; }
.fhc-card__meta { color: var(--fhc-muted, #5a6474); font-size: .9rem; }

.fhc-badge {
	display: inline-block;
	padding: .3rem .8rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	background: var(--fhc-soft, #f6f7fb);
	white-space: nowrap;
}

.fhc-badge--hired,
.fhc-badge--completed,
.fhc-badge--pay-paid { background: #e4f6ec; color: #12633e; }

.fhc-badge--rejected,
.fhc-badge--cancelled,
.fhc-badge--pay-failed { background: #fdeced; color: #a32224; }

.fhc-badge--pay-unpaid,
.fhc-badge--pending { background: #fff6e5; color: #8a5b00; }

.fhc-progress {
	display: flex;
	gap: .35rem;
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

.fhc-progress li {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: var(--fhc-border, #e6e9ef);
}

.fhc-progress li.is-done { background: var(--fhc-primary, #0c2340); }
.fhc-progress li.is-current { background: var(--fhc-accent, #f2789f); }

.fhc-timeline {
	list-style: none;
	margin: 1rem 0;
	padding: 0 0 0 1rem;
	border-left: 2px solid var(--fhc-border, #e6e9ef);
}

.fhc-timeline li { margin-bottom: .6rem; font-size: .9rem; }
.fhc-timeline__date { display: block; color: var(--fhc-muted, #5a6474); font-size: .8rem; }

.fhc-breakdown {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	font-size: .92rem;
}

.fhc-breakdown li {
	display: flex;
	justify-content: space-between;
	padding: .3rem 0;
	border-bottom: 1px dashed var(--fhc-border, #e6e9ef);
}

.fhc-breakdown__total { font-weight: 800; border-bottom: 0 !important; }

.fhc-payline { display: flex; align-items: center; gap: .6rem; }

.fhc-paid-badge {
	display: inline-block;
	padding: .5rem 1rem;
	border-radius: 999px;
	background: #e4f6ec;
	color: #12633e;
	font-weight: 700;
}

.fhc-payfast { margin: .5rem 0 0; }
.fhc-payfast .fhc-help { display: block; margin-top: .4rem; }

.fhc-messages {
	margin-top: 1rem;
	border-top: 1px solid var(--fhc-border, #e6e9ef);
	padding-top: .8rem;
}

.fhc-messages summary { cursor: pointer; font-weight: 700; }

.fhc-thread { margin: 1rem 0; display: flex; flex-direction: column; gap: .7rem; }

.fhc-msg {
	padding: .7rem .9rem;
	border-radius: 14px;
	background: var(--fhc-soft, #f6f7fb);
	max-width: 85%;
}

.fhc-msg--staff {
	align-self: flex-start;
	background: var(--fhc-soft, #eef1f7);
}

.fhc-msg--user {
	align-self: flex-end;
	background: #fdeef4;
}

.fhc-msg__meta {
	display: flex;
	gap: .6rem;
	font-size: .76rem;
	color: var(--fhc-muted, #5a6474);
	margin-bottom: .2rem;
}

.fhc-msg__body p { margin: 0 0 .4rem; }

.fhc-thread__empty { color: var(--fhc-muted, #5a6474); font-size: .9rem; }

.fhc-message-form {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	align-items: flex-start;
}

@media (max-width: 600px) {
	.fhc-msg { max-width: 100%; }
	.fhc-card { padding: 1rem; }
}

/* ---------- CV / profile editor ---------- */
.fhc-profile {
	margin: 1.25rem 0 2rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--fhc-border, rgba(0, 0, 0, .08));
	border-radius: 18px;
	background: var(--fhc-surface, #fff);
}

.fhc-profile > summary {
	cursor: pointer;
	font-weight: 800;
	list-style: none;
}

.fhc-profile > summary::-webkit-details-marker { display: none; }

.fhc-profile > summary::after {
	content: "\2039";
	float: right;
	transform: rotate(-90deg);
	font-size: 1.2rem;
	line-height: 1;
	opacity: .5;
}

.fhc-profile[open] > summary::after { transform: rotate(90deg); }
.fhc-profile__intro { margin: .75rem 0 1rem; font-size: .9rem; color: var(--fhc-muted, #5a6474); }
.fhc-profile__current { margin: -8px 0 16px; font-size: .82rem; }
.fhc-profile .fhc-form--profile .fhc-field--submit { margin-top: 1.25rem; }
.fhc-profile .fhc-form--profile .fhc-field--submit .fhc-btn { width: 100%; justify-content: center; }


/* ---------- Collapsible booking / application cards ---------- */
.fhc-card--collapsible > summary {
	cursor: pointer;
	list-style: none;
	padding-right: 1.75rem;
	position: relative;
}

.fhc-card--collapsible > summary::-webkit-details-marker { display: none; }

.fhc-card--collapsible > summary::after {
	content: "\2039";
	position: absolute;
	right: 0;
	top: .1rem;
	transform: rotate(-90deg);
	transform-origin: center;
	font-size: 1.3rem;
	line-height: 1;
	opacity: .5;
	transition: transform .2s ease;
}

.fhc-card--collapsible[open] > summary::after { transform: rotate(90deg); }
.fhc-card--collapsible[open] > summary { margin-bottom: .25rem; }

.fhc-card--collapsible > summary:focus-visible {
	outline: 2px solid var(--fhc-accent, #f2789f);
	outline-offset: 3px;
	border-radius: 8px;
}

.fhc-card__body { padding-top: .35rem; }

/* ---------------------------------------------------------------
   Employee job cards
---------------------------------------------------------------- */
.fhc-jobcard__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 20px;
	margin: 0 0 16px;
}

.fhc-jobcard__grid dt {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fhc-muted, #6b7280);
	margin: 0 0 2px;
}

.fhc-jobcard__grid dd {
	margin: 0;
	font-weight: 600;
	line-height: 1.4;
}

.fhc-jobcard__form {
	border-top: 1px dashed rgba(0, 0, 0, .12);
	padding-top: 14px;
	margin-bottom: 12px;
}

.fhc-jobcard__form label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
}

.fhc-jobcard__form textarea {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	resize: vertical;
}

.fhc-jobcard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

/* ---------------------------------------------------------------------------
 * Registration + Clerk console
 * ------------------------------------------------------------------------ */
.fhc-portal__register{margin-top:2rem;padding-top:1.75rem;border-top:1px solid var(--fhc-border,#e6e8ec)}
.fhc-form--register{display:grid;gap:.85rem;max-width:520px}
.fhc-field{display:flex;flex-direction:column;gap:.35rem;margin:0}
.fhc-field--check{flex-direction:row;align-items:center}
.fhc-field__hint{font-size:.8rem;opacity:.7}
.fhc-field__label{font-weight:600;font-size:.9rem}
.fhc-form--register input[type="text"],.fhc-form--register input[type="email"],.fhc-form--register input[type="tel"],.fhc-form--register input[type="password"]{width:100%;padding:.7rem .85rem;border:1px solid var(--fhc-border,#e6e8ec);border-radius:var(--fhc-radius-input,10px);font:inherit}

.fhc-clerk__filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.75rem;align-items:end;padding:1rem;border:1px solid var(--fhc-border,#e6e8ec);border-radius:14px;background:rgba(0,0,0,.02);margin-bottom:1.25rem}
.fhc-clerk__filters input,.fhc-clerk__filters select{width:100%;padding:.55rem .6rem;border:1px solid var(--fhc-border,#e6e8ec);border-radius:var(--fhc-radius-input,10px);font:inherit;background:#fff}
.fhc-clerk__filteractions{display:flex;gap:.5rem;flex-wrap:wrap}
.fhc-clerk__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin-bottom:1.25rem}
.fhc-clerk__stat{padding:.9rem 1rem;border:1px solid var(--fhc-border,#e6e8ec);border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:.25rem}
.fhc-clerk__stat span{font-size:.8rem;opacity:.7}
.fhc-clerk__stat strong{font-size:1.35rem}
.fhc-clerk__charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-bottom:1.25rem}
.fhc-clerk__exports{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:1.5rem}
.fhc-clerk__subtitle{margin:1.75rem 0 .75rem}
.fhc-clerk__list{display:grid;gap:.6rem}
.fhc-clerk__form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem;margin-top:.75rem}
.fhc-clerk__form select,.fhc-clerk__form textarea{width:100%;padding:.55rem .6rem;border:1px solid var(--fhc-border,#e6e8ec);border-radius:var(--fhc-radius-input,10px);font:inherit}
.fhc-field--wide,.fhc-clerk__rowactions{grid-column:1/-1}
.fhc-clerk__rowactions{display:flex;gap:.5rem;flex-wrap:wrap}
.fhc-clerk__assign{max-height:220px;overflow:auto;border:1px solid var(--fhc-border,#e6e8ec);border-radius:10px;padding:.6rem .75rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.35rem 1rem;align-content:start;background:#fff}
.fhc-clerk__assign label{display:flex;flex-direction:row;gap:.5rem;align-items:center;justify-content:flex-start;width:100%;min-width:0;margin:0;padding:.15rem 0;font-size:.9rem;font-weight:400;line-height:1.3;text-align:left}
.fhc-clerk__assign label input[type=checkbox]{flex:0 0 auto;width:16px;height:16px;min-width:16px;margin:0}
.fhc-clerk__assign-name{flex:1 1 auto;min-width:0;display:block;white-space:normal;overflow-wrap:anywhere}


/* Charts (shared with the admin dashboard markup) */
.fhc-chart{padding:1rem;border:1px solid var(--fhc-border,#e6e8ec);border-radius:14px;background:#fff}
.fhc-chart__title{margin:0 0 .75rem;font-size:.95rem}
.fhc-chart__bars{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.fhc-chart__bars li{display:grid;grid-template-columns:1fr 2fr auto;gap:.5rem;align-items:center;font-size:.82rem}
.fhc-chart__track{background:#eef0f3;border-radius:999px;height:10px;overflow:hidden}
.fhc-chart__fill{display:block;height:10px;border-radius:999px}
.fhc-chart__cols{display:flex;align-items:flex-end;gap:.5rem;height:190px}
.fhc-chart__col{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:.25rem;flex:1;font-size:.72rem;text-align:center}
.fhc-chart__colbar{display:block;width:100%;border-radius:8px 8px 0 0}
.fhc-chart__donutwrap{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.fhc-chart__legend{list-style:none;margin:0;padding:0;display:grid;gap:.35rem;font-size:.85rem}
.fhc-chart__legend li{display:flex;gap:.4rem;align-items:center}
.fhc-chart__swatch{width:12px;height:12px;border-radius:3px;display:inline-block}

@media print{.fhc-clerk__filters,.fhc-clerk__exports,.fhc-clerk__form,.fhc-messages,.fhc-portal__head .fhc-btn{display:none!important}.fhc-card__body{display:block!important}}

/* ---------- Portal tabs ---------- */

.fhc-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.5rem 0 1.75rem;
	border-bottom: 1px solid var(--fhc-border, #dfe3ea);
}

.fhc-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.1rem;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--fhc-muted, #5a6474);
	cursor: pointer;
	border-radius: var(--fhc-radius, 12px) var(--fhc-radius, 12px) 0 0;
}

.fhc-tabs__tab:hover { background: rgba(0, 0, 0, .04); }

.fhc-tabs__tab[aria-selected="true"] {
	color: inherit;
	border-bottom-color: var(--fhc-accent, #f2789f);
}

.fhc-tabs__badge {
	min-width: 1.5rem;
	padding: .05rem .4rem;
	border-radius: 999px;
	background: var(--fhc-accent, #f2789f);
	color: #fff;
	font-size: .75rem;
	text-align: center;
}

/* ---------- Portal tables ---------- */

.fhc-table-wrap { margin: 0 0 2rem; }

.fhc-table__tools {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .6rem;
}

.fhc-table__search {
	flex: 1 1 auto;
	max-width: 320px;
	padding: .55rem .75rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: var(--fhc-radius, 12px);
	background: #fff;
	font: inherit;
}

.fhc-table__count {
	font-size: .82rem;
	color: var(--fhc-muted, #5a6474);
}

.fhc-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: var(--fhc-radius, 12px);
	overflow: hidden;
	font-size: .92rem;
}

.fhc-table th,
.fhc-table td {
	padding: .7rem .8rem;
	text-align: left;
	border-bottom: 1px solid var(--fhc-border, #dfe3ea);
	vertical-align: middle;
}

.fhc-table thead th {
	background: rgba(0, 0, 0, .03);
	font-size: .8rem;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.fhc-table__sort {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-weight: 700;
	text-transform: inherit;
	letter-spacing: inherit;
	cursor: pointer;
	color: inherit;
}

.fhc-table__sort::after { content: " ↕"; opacity: .45; }
.fhc-table__sort.is-asc::after { content: " ↑"; opacity: 1; }
.fhc-table__sort.is-desc::after { content: " ↓"; opacity: 1; }

.fhc-table__row:hover td { background: rgba(0, 0, 0, .02); }

.fhc-table__actions { text-align: right; white-space: nowrap; }

.fhc-btn--tiny { padding: .35rem .7rem; font-size: .8rem; }

.fhc-table__detail > td { background: rgba(0, 0, 0, .02); }

.fhc-table__detail .fhc-card { margin: 0; }

.fhc-portal__cta { margin-top: 1rem; }

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

	.fhc-table,
	.fhc-table tbody,
	.fhc-table tr,
	.fhc-table td { display: block; width: 100%; }

	.fhc-table__row { border-bottom: 1px solid var(--fhc-border, #dfe3ea); padding: .35rem 0; }

	.fhc-table__row td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border: 0;
		padding: .3rem .8rem;
	}

	.fhc-table__row td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--fhc-muted, #5a6474);
	}

	.fhc-table__actions { justify-content: flex-end; }
}

/* Separate dashboards: stat strip, panel intro and auth tabs. */
.fhc-tabs__nav { flex-wrap: wrap; }

.fhc-portal__dash { display: block; }

.fhc-portal__lead {
	margin: -.25rem 0 1rem;
	color: rgba(0, 0, 0, .62);
	font-size: .95rem;
}

.fhc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: .75rem;
	margin: 0 0 1.25rem;
}

.fhc-stat {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	padding: .85rem 1rem;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 14px;
	background: rgba(0, 0, 0, .02);
}

.fhc-stat__value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.fhc-stat__label { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(0, 0, 0, .55); }

.fhc-tabs--auth { max-width: 640px; margin-inline: auto; }
.fhc-tabs--auth .fhc-portal__login,
.fhc-tabs--auth .fhc-portal__register { margin-top: 1rem; }


/* ---------- v2.7: tighter portal spacing, quick links, pagination ---------- */

.fhc-section--tight { padding-top: clamp(14px, 2vw, 26px); padding-bottom: clamp(28px, 4vw, 56px); }
.fhc-section--tight .fhc-page-title { margin-bottom: .35rem; }
.fhc-section--tight .fhc-card--pad { padding: clamp(16px, 2.6vw, 28px); }
.fhc-section--tight .fhc-portal__head { margin-bottom: .75rem; }
.fhc-section--tight .fhc-tabs__nav { margin-top: .5rem; }

.fhc-portal__quick {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.25rem;
}

.fhc-table__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: .85rem;
	padding: .6rem .8rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: var(--fhc-radius, 12px);
	background: #fff;
	box-shadow: 0 1px 2px rgba(12, 35, 64, .05);
	font-size: .88rem;
}

.fhc-table__perpage {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: var(--fhc-muted, #5a6474);
}

.fhc-table__perpage select {
	padding: .35rem 1.6rem .35rem .55rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.fhc-table__perpage select:focus-visible {
	outline: 2px solid var(--fhc-accent, #f2789f);
	outline-offset: 1px;
}

.fhc-table__pagerbtns {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}

.fhc-table__pages {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}

.fhc-table__pagebtn {
	min-width: 2rem;
	padding: .3rem .55rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: .85rem;
	line-height: 1.4;
	color: inherit;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.fhc-table__pagebtn:hover:not([disabled]) {
	background: var(--fhc-soft, #f6f7fb);
	border-color: var(--fhc-accent, #f2789f);
}

.fhc-table__pagebtn.is-current {
	background: var(--fhc-primary, #0c2340);
	border-color: var(--fhc-primary, #0c2340);
	color: #fff;
	font-weight: 600;
}

.fhc-table__pagebtn[disabled] { opacity: .4; cursor: not-allowed; }

.fhc-table__gap { padding: 0 .15rem; color: var(--fhc-muted, #5a6474); }

.fhc-table__pageinfo { color: var(--fhc-muted, #5a6474); }

@media (max-width: 600px) {
	.fhc-table__pager { justify-content: center; text-align: center; }
}

@media print { .fhc-table__pager { display: none !important; } }

/* ---------- v14: tinted portal panel covers ALL content, tables sit inside ---------- */

/* The tint used to fade out near the top, leaving long tables on bare white.
   Now the gradient covers the full height of the portal, whatever its length. */
.fhc-portal {
	background:
		radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--fhc-accent, #f2789f) 14%, transparent) 0%, transparent 70%),
		radial-gradient(110% 60% at 100% 0%, color-mix(in srgb, var(--fhc-primary, #0c2340) 10%, transparent) 0%, transparent 70%),
		linear-gradient(180deg,
			color-mix(in srgb, var(--fhc-accent, #f2789f) 7%, #fff) 0%,
			var(--fhc-soft, #f6f7fb) 45%,
			color-mix(in srgb, var(--fhc-primary, #0c2340) 6%, #fff) 100%);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	overflow: hidden; /* keeps wide tables clipped to the rounded coloured panel */
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.fhc-portal {
		background: linear-gradient(180deg, #fdf2f6 0%, var(--fhc-soft, #f6f7fb) 50%, #eef1f7 100%);
	}
}

/* Tabs, tables and pagers become white cards resting on the coloured panel. */
.fhc-portal .fhc-tabs {
	padding: 1rem clamp(.75rem, 2vw, 1.25rem) 1.25rem;
	border: 1px solid color-mix(in srgb, var(--fhc-border, #dfe3ea) 85%, transparent);
	border-radius: calc(var(--fhc-radius, 12px) * 1.35);
	background: rgba(255, 255, 255, .72);
	box-shadow: 0 12px 34px rgba(12, 35, 64, .06);
}

.fhc-portal .fhc-table-wrap {
	padding: 1rem;
	border: 1px solid var(--fhc-border, #dfe3ea);
	border-radius: calc(var(--fhc-radius, 12px) * 1.2);
	background: #fff;
	box-shadow: 0 8px 24px rgba(12, 35, 64, .05);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fhc-portal .fhc-table-wrap > .fhc-table { min-width: 640px; }

.fhc-portal .fhc-table-wrap .fhc-table__pager {
	margin-bottom: 0;
	background: rgba(0, 0, 0, .02);
	box-shadow: none;
}

@media (max-width: 720px) {
	.fhc-portal .fhc-tabs { padding: .75rem .6rem 1rem; }
	.fhc-portal .fhc-table-wrap { padding: .6rem; }
	.fhc-portal .fhc-table-wrap > .fhc-table { min-width: 0; }
}

/* ---------- v15: full-width portal, no horizontal scrolling on tables ---------- */

/* The portal used to be capped at 860px, which forced wide tables into a
   horizontal scrollbar. It now fills the page container. */
.fhc-portal {
	max-width: none;
	width: 100%;
}

.fhc-container--wide { max-width: 1440px; }

/* Tables flow with the panel instead of scrolling sideways. */
.fhc-portal .fhc-table-wrap {
	overflow-x: visible;
	overflow-y: visible;
}

.fhc-portal .fhc-table-wrap > .fhc-table,
.fhc-portal .fhc-table {
	min-width: 0;
	width: 100%;
	table-layout: auto;
}

.fhc-portal .fhc-table th,
.fhc-portal .fhc-table td {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

/* Keep compact columns compact so the wide text columns take the slack. */
.fhc-portal .fhc-table td .fhc-badge,
.fhc-portal .fhc-table td .fhc-pill { white-space: nowrap; }

/* Small screens still need a scroll fallback, otherwise columns get unreadable. */
@media (max-width: 720px) {
	.fhc-portal .fhc-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ---------- Role-based portal header ---------- */
.fhc-portal__who {
	display: flex;
	align-items: center;
	gap: .65rem;
	flex-wrap: wrap;
}
.fhc-portal__who h2 { margin: 0; }
.fhc-portal__role {
	display: inline-flex;
	align-items: center;
	padding: .2rem .6rem;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: rgba(var(--fhc-primary-rgb, 33, 88, 160), .10);
	color: var(--fhc-primary, #21589f);
	border: 1px solid rgba(var(--fhc-primary-rgb, 33, 88, 160), .22);
}

/* -------------------------------------------------------------
 * Read-only applicant CV (clerk console)
 * ---------------------------------------------------------- */
.fhc-cv {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(18, 58, 95, .12);
	border-radius: 14px;
	background: rgba(18, 58, 95, .03);
}

.fhc-cv__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem .75rem;
	margin-bottom: .85rem;
}

.fhc-cv__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.fhc-cv__lock {
	font-size: .78rem;
	padding: .2rem .55rem;
	border-radius: 999px;
	background: rgba(242, 120, 159, .14);
	color: #8c2c4c;
}

.fhc-cv__docs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1rem;
}

.fhc-cv__section + .fhc-cv__section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed rgba(18, 58, 95, .15);
}

.fhc-cv__section-title {
	margin: 0 0 .5rem;
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #123A5F;
}

.fhc-cv__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: .85rem 1rem;
	margin: 0;
}

.fhc-cv__field {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	min-width: 0;
}

.fhc-cv__field--wide {
	grid-column: 1 / -1;
}

.fhc-cv__label {
	font-size: .78rem;
	font-weight: 600;
	color: #5c6b7a;
}

.fhc-cv__input {
	width: 100%;
	padding: .55rem .7rem;
	border: 1px solid rgba(18, 58, 95, .18);
	border-radius: 10px;
	background: #fff;
	color: #123A5F;
	font: inherit;
	font-size: .92rem;
	opacity: 1;
	-webkit-text-fill-color: #123A5F;
	cursor: default;
}

.fhc-cv__input--area {
	resize: vertical;
	line-height: 1.5;
}


.fhc-cv__empty {
	margin: 0 0 1rem;
	color: #5c6b7a;
}

.fhc-profile--account summary {
	font-weight: 700;
}

/* Booking form: service-specific field groups (garden vs indoor). */
.fhc-form--booking .fhc-field-group[hidden] {
	display: none !important;
}

/* Fields that are driven by the service / package selection are read-only. */
.fhc-input--locked,
.fhc-field--readonly input,
.fhc-field--readonly select {
	background: #f1f4f8;
	color: #4a5568;
	cursor: not-allowed;
}

.fhc-field--readonly > label::after {
	content: " (set by your package)";
	font-size: 0.78em;
	font-weight: 400;
	opacity: 0.7;
}

.fhc-breakdown__note span:first-child { padding-left: 14px; position: relative; color: #6b7280; font-size: .92em; }
.fhc-breakdown__note span:first-child::before { content: '\2022'; position: absolute; left: 2px; }
.fhc-invoice__note td { color: #6b7280; font-size: .92em; }

/* ------------------------------------------------------------ Booking checkout summary */

.fhc-booking-layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 900px) {
	.fhc-booking-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

.fhc-checkout {
	position: sticky;
	top: 96px;
	padding: 1.25rem 1.35rem 1.4rem;
	border: 1px solid color-mix(in srgb, var(--fhc-primary, #0c2340) 12%, transparent);
	border-radius: calc(var(--fhc-radius, 12px) * 1.2);
	background: linear-gradient(180deg, #fff 0%, var(--fhc-soft, #f6f7fb) 100%);
	box-shadow: 0 14px 34px rgba(12, 35, 64, .08);
}

.fhc-checkout__title {
	margin: 0 0 .85rem;
	font-size: 1.05rem;
	letter-spacing: .02em;
}

.fhc-checkout__lines {
	margin: 0 0 .9rem;
	padding: 0 0 .9rem;
	border-bottom: 1px dashed color-mix(in srgb, var(--fhc-primary, #0c2340) 18%, transparent);
	display: grid;
	gap: .45rem;
}

.fhc-checkout__lines:empty { display: none; }

.fhc-checkout__line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: .92rem;
}

.fhc-checkout__line dt {
	margin: 0;
	color: var(--fhc-muted, #5a6474);
}

.fhc-checkout__line dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.fhc-checkout__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
}

.fhc-checkout__total strong { font-size: 1.55rem; }

.fhc-checkout__note {
	margin: .6rem 0 0;
	font-size: .82rem;
	color: var(--fhc-muted, #5a6474);
}

/* ---------------------------------------------------------
 * Optional extras — sub-categories + custom tick controls
 * ------------------------------------------------------- */
.fhc-extras {
	display: block;
	margin-top: 6px;
}

.fhc-extras__group + .fhc-extras__group { margin-top: 18px; }

.fhc-extras__group { display: block; }

.fhc-extras__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--fhc-muted, #5a6474);
}

.fhc-extras__heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--fhc-border, rgba(15, 23, 42, .12));
}

.fhc-extras .fhc-checkgroup,
.fhc-checkgroup {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
	align-items: stretch;
}

.fhc-checkgroup .fhc-check.fhc-check--card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--fhc-border, rgba(15, 23, 42, .12));
	border-radius: 16px;
	background: var(--fhc-white, #fff);
	box-shadow: none;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fhc-checkgroup .fhc-check.fhc-check--card:hover {
	border-color: var(--fhc-mint, #17b978);
	background: rgba(var(--fhc-primary-rgb, 23, 185, 120), .05);
	transform: translateY(-1px);
}

/* Native input is visually hidden but still focusable / accessible. */
.fhc-checkgroup .fhc-check.fhc-check--card > input[type="checkbox"],
.fhc-checkgroup .fhc-check.fhc-check--card > input[type="radio"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.fhc-checkgroup .fhc-check.fhc-check--card > .fhc-check__box {
	flex: 0 0 auto;
	position: relative;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid var(--fhc-border, rgba(15, 23, 42, .22));
	border-radius: 6px;
	background: var(--fhc-white, #fff);
	transition: border-color .18s ease, background .18s ease;
}

.fhc-checkgroup .fhc-check.fhc-check--card > input[type="radio"] + .fhc-check__box { border-radius: 50%; }

.fhc-checkgroup .fhc-check.fhc-check--card > .fhc-check__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(.4);
	opacity: 0;
	transition: opacity .15s ease, transform .15s ease;
}

.fhc-checkgroup .fhc-check.fhc-check--card > input:checked + .fhc-check__box {
	border-color: var(--fhc-mint, #17b978);
	background: var(--fhc-mint, #17b978);
}

.fhc-checkgroup .fhc-check.fhc-check--card > input:checked + .fhc-check__box::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.fhc-checkgroup .fhc-check.fhc-check--card > input:focus-visible + .fhc-check__box {
	outline: 2px solid var(--fhc-mint, #17b978);
	outline-offset: 3px;
}

.fhc-checkgroup .fhc-check.fhc-check--card .fhc-check__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.fhc-checkgroup .fhc-check.fhc-check--card .fhc-check__label {
	font-weight: 700;
	font-size: .93rem;
	line-height: 1.35;
	color: var(--fhc-navy, #101a34);
}

.fhc-checkgroup .fhc-check.fhc-check--card .fhc-check__price {
	font-size: .85rem;
	font-weight: 700;
	color: var(--fhc-mint-dark, #0f8f5c);
}

.fhc-checkgroup .fhc-check.fhc-check--card.is-checked,
.fhc-checkgroup .fhc-check.fhc-check--card:has(input:checked) {
	border-color: var(--fhc-mint, #17b978);
	background: rgba(var(--fhc-primary-rgb, 23, 185, 120), .09);
	box-shadow: 0 6px 18px rgba(var(--fhc-primary-rgb, 23, 185, 120), .16);
}

@media (max-width: 520px) {
	.fhc-extras .fhc-checkgroup,
	.fhc-checkgroup { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
 * Generate Application CV button
 * ---------------------------------------------------------- */
.fhc-cv-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .85rem;
	margin: 0 0 1rem;
	padding: .85rem 1rem;
	border: 1px dashed rgba(18, 58, 95, .22);
	border-radius: 14px;
	background: rgba(18, 58, 95, .03);
}

.fhc-cv-actions__btn {
	white-space: nowrap;
}

.fhc-cv-actions__hint {
	flex: 1 1 14rem;
	font-size: .82rem;
	line-height: 1.45;
	color: rgba(18, 58, 95, .68);
}

@media (max-width: 480px) {
	.fhc-cv-actions__btn { width: 100%; text-align: center; }
}
