/*
 * Quranic Finance - the staff portal.
 *
 * Written for one situation: a center leader standing in a mosque courtyard,
 * on a phone, in daylight, on mobile data. So:
 *
 *   - one column, always. There is no desktop layout to switch to, only a
 *     comfortable maximum width;
 *   - targets are 48px or bigger, because they are pressed with a thumb;
 *   - the amount field is large enough to read back before pressing save;
 *   - no icon set and no images; one web font, the design system's serif,
 *     for headings and the amount only (DS1). This file is the whole design.
 *
 * Loaded only on the page holding [qh_staff_portal].
 */

/* ==== Qard Hasan design system: the tokens ================================
   The same block, byte for byte, heads qh-public.css, qh-portal.css and
   qh-admin.css (decision DS1): each page loads one of the three, so none of
   them waits on another file, and check-consistent.php fails if they differ.
   White pages and cards; green and gold from the logo; near-white greys with
   a faint green cast; the heritage colours carry meaning only (D1) - saffron
   wants attention, terracotta has cost the fund money, lapis informs. One
   family, Plus Jakarta Sans, for every Latin letter and figure (27 KB, kept a
   year); Bangla in the font chosen in Settings, bundled too (WK154, WK157). No pattern, no gradient.
   Settings → Appearance may override any of these (QH_Appearance). */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url( ../fonts/plus-jakarta-sans.woff2 ) format( "woff2" );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Bangla in the font chosen in Settings → Appearance (WK154, WK157): the
   device's own font broke joined letters. All three are declared; a browser
   fetches only the one --qh-bn names. Jakarta leaves the joiners U+200C-200D
   to them. */
@font-face {
	font-family: "Noto Sans Bengali";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url( ../fonts/noto-sans-bengali.woff2 ) format( "woff2" );
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "Noto Serif Bengali";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url( ../fonts/noto-serif-bengali.woff2 ) format( "woff2" );
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "Tiro Bangla";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( ../fonts/tiro-bangla.woff2 ) format( "woff2" );
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

:root {
	--qh-green-50: #eef5f1;
	--qh-green-100: #d5e7dd;
	--qh-green-200: #a9cdb9;
	--qh-green-300: #74ad90;
	--qh-green-400: #3f8a68;
	--qh-green-500: #1f6b4e;
	--qh-green-600: #0f4d3a;
	--qh-green-700: #0b3d2e;
	--qh-green-800: #082e23;
	--qh-gold-50: #fbf6ec;
	--qh-gold-100: #f5e9cf;
	--qh-gold-200: #ebd5a6;
	--qh-gold-300: #e0c185;
	--qh-gold-400: #d4ae68;
	--qh-gold-500: #bf9550;
	--qh-gold-600: #9e7a3e;
	--qh-gold-700: #7a5e30;
	--qh-page: #ffffff;
	--qh-on-page: #14241d;
	--qh-on-page-muted: #48514d;
	--qh-on-page-link: #0f4d3a;
	--qh-accent-on-brand: #d4ae68;
	--qh-paper-pad: 0px;
	--qh-ivory: #ffffff;
	--qh-on-brand: #ffffff;
	--qh-sand-50: #f7f9f8;
	--qh-sand-100: #f0f3f1;
	--qh-sand-200: #e3e8e5;
	--qh-sand-300: #cdd4d0;
	--qh-sand-400: #9aa39e;
	--qh-sand-500: #66706b;
	--qh-sand-600: #48514d;
	--qh-sand-700: #2f3632;
	--qh-ink-900: #14241d;
	--qh-lapis-50: #eaf0f7;
	--qh-lapis-500: #2b5a8c;
	--qh-terracotta-50: #f8ece8;
	--qh-terracotta-200: #e6bdb4;
	--qh-terracotta-400: #c4581c;
	--qh-terracotta-500: #a8432f;
	--qh-terracotta-700: #7c2f20;
	--qh-saffron-50: #fbf1e0;
	--qh-saffron-300: #e9b949;
	--qh-saffron-400: #d9822b;
	--qh-saffron-500: #b87a1e;
	--qh-saffron-700: #855510;

	--qh-bn: "Noto Sans Bengali";
	--qh-font: "Plus Jakarta Sans", var(--qh-bn), system-ui, -apple-system, "Segoe UI", Roboto, "Kohinoor Bangla", "Nirmala UI", "Helvetica Neue", Arial, sans-serif;
	--qh-heading-weight: 700;
	--qh-text-scale: 100%;

	--qh-r-control: 12px;
	--qh-r-tile: 16px;
	--qh-r-card: 24px;
	--qh-shadow-xs: 0 1px 1px rgba( 15, 77, 58, 0.05 );
	--qh-shadow-sm: 0 1px 2px rgba( 15, 77, 58, 0.06 ), 0 1px 3px rgba( 15, 77, 58, 0.05 );
	--qh-shadow-md: 0 6px 16px -4px rgba( 15, 77, 58, 0.12 ), 0 2px 4px rgba( 15, 77, 58, 0.04 );
	--qh-shadow-lg: 0 20px 44px -12px rgba( 15, 77, 58, 0.22 ), 0 4px 10px rgba( 15, 77, 58, 0.05 );
	--qh-shadow-inset: inset 0 1px 2px rgba( 20, 36, 29, 0.06 );
	--qh-ring: 0 0 0 3px rgba( 212, 174, 104, 0.45 );
	--qh-ease: cubic-bezier( 0.2, 0.7, 0.2, 1 );
}
/* ==== end of the tokens =================================================== */


.qh-portal {
	--qh-ink: var(--qh-ink-900);
	--qh-muted: var(--qh-sand-600);
	--qh-rule: var(--qh-sand-200);
	--qh-bad: var(--qh-terracotta-500);
	--qh-good: var(--qh-green-600);
	--qh-tint: var(--qh-sand-50);

	color: var(--qh-ink);
	max-width: 34rem;
	margin: 0 auto;
	padding: 0 0 3rem;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

/* --- The bar at the top ------------------------------------------------ */

.qh-portal-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--qh-rule);
}


.qh-portal-who,
.qh-portal-scope {
	color: var(--qh-muted);
	font-size: 0.875rem;
}

/* --- The four tabs ----------------------------------------------------- */

.qh-portal-nav {
	display: flex;
	gap: 0.25rem;
	margin: 0.75rem 0 1.25rem;
}

.qh-portal-tab {
	flex: 1 1 0;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.5rem 0.25rem;
	border: 1px solid var(--qh-rule);
	border-radius: 6px;
	background: var(--qh-ivory);
	color: var(--qh-ink);
	text-decoration: none;
	font-size: 0.9375rem;
}

.qh-portal-tab.qh-is-active {
	background: var(--qh-ink);
	border-color: var(--qh-ink);
	color: var(--qh-on-brand);
	font-weight: 600;
}

/* --- Headings ---------------------------------------------------------- */

.qh-portal-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.qh-portal-subtitle {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--qh-muted);
	margin: 1.75rem 0 0.5rem;
}

.qh-portal-count {
	display: inline-block;
	min-width: 1.5rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--qh-tint);
	color: var(--qh-ink);
	text-align: center;
}

.qh-portal-back {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
}

.qh-portal-empty,
.qh-portal-foot {
	color: var(--qh-muted);
	font-size: 0.875rem;
	margin: 0.5rem 0 0;
}

/* --- A tappable row ---------------------------------------------------- */

.qh-portal-cards {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qh-portal-cards li {
	margin: 0 0 0.5rem;
}

.qh-portal-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 56px;
	padding: 0.75rem;
	border: 1px solid var(--qh-rule);
	border-radius: 8px;
	background: var(--qh-ivory);
	color: var(--qh-ink);
	text-decoration: none;
}

.qh-portal-card-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.qh-portal-card-name {
	font-weight: 600;
}

.qh-portal-card-meta {
	color: var(--qh-muted);
	font-size: 0.8125rem;
}

.qh-portal-flag {
	color: var(--qh-bad);
	font-size: 0.8125rem;
	font-weight: 600;
}

.qh-portal-card-money {
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "tnum" 1;
	white-space: nowrap;
	font-weight: 600;
}

/* --- Figures ----------------------------------------------------------- */

.qh-portal-figures {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0;
}

.qh-portal-figure {
	flex: 1 1 0;
	padding: 0.75rem;
	border: 1px solid var(--qh-rule);
	border-radius: 8px;
	text-align: center;
	background: var(--qh-ivory);
}

.qh-portal-figure-value {
	display: block;
	font-size: 1.125rem;
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "tnum" 1;
}

.qh-portal-figure--strong .qh-portal-figure-value {
	font-size: 1.5rem;
}

.qh-portal-figure--warn .qh-portal-figure-value {
	color: var(--qh-bad);
}

.qh-portal-figure-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--qh-muted);
}

/* --- Tables ------------------------------------------------------------ */

.qh-portal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.qh-portal-table th,
.qh-portal-table td {
	text-align: left;
	padding: 0.5rem 0.375rem;
	border-bottom: 1px solid var(--qh-rule);
}

.qh-portal-table thead th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--qh-muted);
}

.qh-portal-num {
	text-align: right;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "tnum" 1;
	white-space: nowrap;
}

.qh-portal-late td {
	color: var(--qh-bad);
}

/* --- Forms ------------------------------------------------------------- */

.qh-portal-form {
	margin: 1rem 0 0;
}

.qh-portal-label {
	display: block;
	margin: 1rem 0 0.35rem;
	font-weight: 600;
}

.qh-portal-input,
.qh-portal-select,
.qh-portal-file,
.qh-portal-search input {
	width: 100%;
	min-height: 48px;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--qh-sand-400);
	border-radius: 6px;
	font-size: 1rem;
	background: var(--qh-ivory);
	color: var(--qh-ink);
	box-sizing: border-box;
}

/* The amount. Big enough to check at arm's length before saving. */
.qh-portal-amount {
	width: 100%;
	min-height: 60px;
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--qh-ink);
	border-radius: 6px;
	font-size: 1.75rem;
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
	text-align: right;
	background: var(--qh-ivory);
	color: var(--qh-ink);
	box-sizing: border-box;
}

.qh-portal-search {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.qh-portal-search button,
.qh-portal-button {
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--qh-ink);
	border-radius: 6px;
	background: var(--qh-ink);
	color: var(--qh-on-brand);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

.qh-portal-button {
	display: block;
	width: 100%;
	margin: 1.25rem 0 0;
	box-sizing: border-box;
}

.qh-portal-button--quiet {
	background: var(--qh-ivory);
	color: var(--qh-ink);
}

.qh-portal-button--go {
	background: var(--qh-good);
	border-color: var(--qh-good);
	min-height: 60px;
	font-size: 1.125rem;
}

.qh-portal-actions {
	margin: 1.5rem 0 0;
}

/* A link drawn as a button keeps its own colours whatever the theme does
   to links: Elementor's kit colours every link with ".elementor-kit-N a",
   which outweighs one class, and would paint a white label green on green. */
.qh-portal a.qh-portal-button,
.qh-portal a.qh-portal-button:hover,
.qh-portal a.qh-portal-button:focus {
	color: var(--qh-on-brand);
	text-decoration: none;
}

.qh-portal a.qh-portal-button--quiet,
.qh-portal a.qh-portal-button--quiet:hover,
.qh-portal a.qh-portal-button--quiet:focus {
	color: var(--qh-ink);
}

.qh-portal a.qh-portal-wa,
.qh-portal a.qh-portal-wa:hover {
	color: #075e54;
	text-decoration: none;
}

/* WhatsApp (WA1): the one colour here that is not the fund's, because a
   borrower's phone and a leader's thumb both know it. Dark enough to read. */
.qh-portal-button--wa,
.qh-portal a.qh-portal-button--wa,
.qh-portal a.qh-portal-button--wa:hover,
.qh-portal a.qh-portal-button--wa:focus {
	background: #25d366;
	border-color: #25d366;
	color: var(--qh-green-800);
}

.qh-portal-remind-entry {
	margin: 0 0 1.5rem;
	padding: 0.75rem 1rem 1rem;
	border: 1px solid var(--qh-rule);
	border-radius: 8px;
	background: var(--qh-ivory);
}

.qh-portal-remind-entry .qh-portal-foot {
	margin: 0;
}

.qh-portal-remind-days {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
}

.qh-portal-remind-days select {
	flex: 1;
	min-height: 48px;
	padding: 0 0.5rem;
	font-size: 1rem;
}

.qh-portal-remind-left {
	margin: 0 0 0.5rem;
	color: var(--qh-muted);
	font-weight: 600;
}

.qh-portal-remind {
	padding: 1rem;
	border: 1px solid var(--qh-rule);
	border-radius: 8px;
	background: var(--qh-ivory);
}

.qh-portal-remind p {
	margin: 0 0 0.375rem;
}

.qh-portal-remind-text {
	margin-top: 0.75rem !important;
	padding: 0.75rem;
	border-radius: 8px;
	background: #e7f8ec;
	font-size: 0.9375rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.qh-portal-wa {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0.25rem 0 0 0.25rem;
	padding: 0 0.75rem;
	border-radius: 6px;
	color: #075e54;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.qh-portal-wa::before {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: #25d366;
}

/* --- The confirmation -------------------------------------------------- */

.qh-portal-confirm {
	margin: 1rem 0;
	padding: 1.25rem 1rem;
	border: 2px solid var(--qh-ink);
	border-radius: 8px;
	text-align: center;
	background: var(--qh-tint);
}

.qh-portal-confirm-amount {
	display: block;
	font-size: 2.25rem;
	font-weight: 700;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "tnum" 1;
	line-height: 1.2;
}

.qh-portal-confirm-who,
.qh-portal-confirm-where {
	display: block;
	color: var(--qh-muted);
}

/* --- Messages ---------------------------------------------------------- */

.qh-portal-note,
.qh-portal-done {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	border: 1px solid var(--qh-rule);
	background: var(--qh-tint);
}

.qh-portal-note--warn {
	border-color: var(--qh-bad);
	background: var(--qh-terracotta-50);
	color: var(--qh-bad);
}

.qh-portal-done {
	border-color: var(--qh-good);
	background: var(--qh-green-50);
	color: var(--qh-good);
	font-weight: 600;
}

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

.qh-portal-login {
	margin: 1.5rem 0;
}

.qh-portal-login input[type="text"],
.qh-portal-login input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--qh-sand-400);
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.qh-portal-login .login-submit input {
	min-height: 48px;
	width: 100%;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--qh-ink);
	border-radius: 6px;
	background: var(--qh-ink);
	color: var(--qh-on-brand);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}


/* --- English | বাংলা (decision L1) --------------------------------------
   Each language is named in itself, so somebody who cannot read the page
   can still find their own. Big enough to press with a thumb. */

.qh-lang {
	display: flex;
	width: max-content;
	margin: 0 0 0.75rem auto;
	padding: 3px;
	gap: 2px;
	border: 1px solid var(--qh-sand-300);
	border-radius: 999px;
	background: var(--qh-ivory);
	box-shadow: var(--qh-shadow-xs);
	font-family: var(--qh-font);
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1;
}

.qh-lang a,
.qh-lang-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.25rem;
	padding: 0 0.875rem;
	border: 0;
	border-radius: 999px;
	color: var(--qh-green-600);
	text-decoration: none;
	transition: background-color 120ms var(--qh-ease), color 120ms var(--qh-ease);
}

.qh-lang-current {
	background: var(--qh-green-600);
	color: var(--qh-on-brand);
}

.qh-lang a:hover,
.qh-lang a:focus-visible {
	background: var(--qh-green-50);
	color: var(--qh-green-700);
}

/* Heard, not seen: the whole name of a language beside its short label. */
.qh-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

/* Bangla script sits taller than Latin; give its lines room. */
.qh-i18n[lang="bn"] {
	line-height: 1.7;
}

/* The letterhead, small (BR1). */
.qh-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.qh-brand-mark {
	flex: none;
	display: block;
	width: 2rem;
	height: 2rem;
}

.qh-brand p {
	margin: 0;
}

.qh-brand-name {
	font: 600 1rem/1.2 var(--qh-font);
	color: var(--qh-green-600);
}

.qh-brand-sep {
	margin: 0 0.15em;
	color: var(--qh-gold-500);
	font-weight: 400;
}

.qh-brand-sub {
	font-weight: 400;
	color: var(--qh-sand-700);
}

.qh-brand .qh-brand-by {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--qh-gold-700);
}

@media (max-width: 480px) {
	.qh-brand-sep {
		display: none;
	}

	.qh-brand-sub {
		display: block;
	}
}

/* --- The brand, and the page around the portal (BR1, BR3) ---------------
   The portal page carries only this stylesheet, so the page template's own
   spacing is set here too: without it the portal ran edge to edge. */
.qh-report-page {
	max-width: 34rem;
	margin: 0 auto;
	padding: 1rem 1rem 3rem;
	box-sizing: border-box;
}

.qh-report-title {
	margin: 0 0 0.75rem;
	color: var(--qh-green-600);
	font-size: 1.375rem;
	font-weight: 600;
}

.qh-portal {
	--qh-brand: var(--qh-green-600);
	overflow-wrap: anywhere;
}

.qh-portal h2,
.qh-portal h3,
.qh-portal-title {
	color: var(--qh-brand);
}

.qh-portal a {
	color: var(--qh-brand);
}

.qh-portal-tab.qh-is-active,
.qh-portal-search button,
.qh-portal-button,
.qh-portal-login .login-submit input {
	border-color: var(--qh-brand);
	background: var(--qh-brand);
	color: var(--qh-on-brand);
}

.qh-portal-button--quiet {
	background: var(--qh-ivory);
	color: var(--qh-brand);
}

.qh-portal-amount:focus,
.qh-portal-input:focus,
.qh-portal-select:focus,
.qh-portal-search input:focus {
	outline: 2px solid var(--qh-gold-500);
	outline-offset: 1px;
}

.qh-portal .qh-brand {
	padding: 0 0 0.5rem;
}

.qh-portal img {
	max-width: 100%;
	height: auto;
}

.qh-brand-logo {
	width: auto;
	max-width: 7rem;
	object-fit: contain;
}

/* The page template draws the letterhead above the portal. */
.qh-report-page .qh-portal-head .qh-brand {
	display: none;
}

.qh-portal a {
	text-decoration: none;
}

.qh-portal a:hover,
.qh-portal a:focus-visible {
	text-decoration: underline;
}

/* The portal's own search box wears the same classes as every other (I35);
   its form is already styled by .qh-portal-search, so this only makes sure
   the box itself cannot be squeezed out of the screen on a phone. */

/* The same box as everywhere else, on a screen a thumb uses (I35a). */
input[type="search"].qh-search-input,
.qh-portal-search .qh-search-input,
.qh-search-input {
	flex: 0 1 22rem;
	width: 22rem;
	min-width: 0;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--qh-rule, var(--qh-sand-200));
	border-radius: 8px;
	background: var(--qh-ivory);
	font-size: 1rem;
	line-height: 1.4;
	box-sizing: border-box;
}

.qh-search-count {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	color: var(--qh-muted, var(--qh-sand-600));
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-search-count:empty {
	display: none;
}

.qh-search-count.is-empty {
	color: var(--qh-terracotta-500);
	font-weight: 600;
}

/* The letterhead is the way home, to The fund at a glance (25 September 2026). */
a.qh-brand-home {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

a.qh-brand-home:hover .qh-brand-name,
a.qh-brand-home:focus-visible .qh-brand-name {
	color: var(--qh-green-700);
}

/* ==== DS2 - the design system's shapes (26 September 2026) ===============
   See the same heading in qh-public.css. White, a light hairline, the logo's
   green for the chosen tab and the buttons, 12/16px corners, one sans family
   - and the confirmation, the one moment that must be read twice, as the
   screen's one solid green card. */

html:has( .qh-portal ) {
	font-size: var(--qh-text-scale);
}

body:has( .qh-portal ) {
	background: var(--qh-page);
}

.qh-portal {
	font-family: var(--qh-font);
}

.qh-report-page > .qh-report-article > .qh-brand {
	margin: 0.5rem 0 1rem;
	padding: 0 0 0.875rem;
	border-bottom: 1px solid var(--qh-sand-200);
}

.qh-report-page > .qh-report-article > .qh-brand::after {
	background: var(--qh-gold-400);
}

.qh-brand-name {
	font-family: var(--qh-font);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--qh-green-600);
}

.qh-brand .qh-brand-by {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--qh-gold-700);
}

/* The language switch sits at the right of the letterhead, on the letterhead's
   line, on every page of the fast template - where a reader looks for it,
   and never between a title and its figures (L1a). */
.qh-report-page .qh-report-article {
	position: relative;
}

.qh-report-page .qh-report-article .qh-lang {
	position: absolute;
	top: calc( 0.5rem + 2px );
	right: 0;
	margin: 0;
}

.qh-report-page .qh-report-article:has( .qh-lang ) > .qh-brand {
	padding-right: 7.5rem;
}

.qh-report-page .qh-report-title,
.qh-portal h2,
.qh-portal-title {
	font-family: var(--qh-font);
	font-weight: var(--qh-heading-weight);
	letter-spacing: -0.02em;
	color: var(--qh-green-600);
}

.qh-report-page .qh-report-title {
	font-size: 1.875rem;
	line-height: 1.1;
}

.qh-portal-title {
	font-size: 1.75rem;
	line-height: 1.15;
}

.qh-portal-head {
	border-bottom-color: var(--qh-sand-200);
}

/* The four tabs: one segmented control. */
.qh-portal-nav {
	gap: 0.25rem;
	padding: 0.25rem;
	border: 1px solid var(--qh-sand-200);
	border-radius: var(--qh-r-tile);
	background: var(--qh-sand-50);
}

.qh-portal-tab {
	border: 0;
	border-radius: var(--qh-r-control);
	background: transparent;
	color: var(--qh-sand-700);
	font-size: 0.875rem;
	font-weight: 600;
	overflow-wrap: normal;
	transition: background-color 120ms var(--qh-ease), color 120ms var(--qh-ease);
}

.qh-portal a.qh-portal-tab:hover {
	background: var(--qh-ivory);
	color: var(--qh-green-600);
}

.qh-portal-tab.qh-is-active,
.qh-portal a.qh-portal-tab.qh-is-active {
	background: var(--qh-green-600);
	color: var(--qh-on-brand);
	box-shadow: var(--qh-shadow-sm);
}

.qh-portal-subtitle {
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	color: var(--qh-gold-700);
}

.qh-portal-count {
	background: var(--qh-gold-100);
	color: var(--qh-gold-700);
	font-variant-numeric: lining-nums tabular-nums;
}

/* Cards and figures: ivory on sand, 16px corners, a soft green shadow. */
.qh-portal-card,
.qh-portal-figure,
.qh-portal-remind-entry,
.qh-portal-remind {
	border-color: var(--qh-sand-200);
	border-radius: var(--qh-r-tile);
	background: var(--qh-ivory);
	box-shadow: var(--qh-shadow-sm);
}

.qh-portal a.qh-portal-card:hover {
	border-color: var(--qh-gold-300);
	box-shadow: var(--qh-shadow-md);
}

.qh-portal-card-money {
	color: var(--qh-green-600);
}

.qh-portal-figure-value {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums tabular-nums;
}

.qh-portal-figure--strong .qh-portal-figure-value {
	font-size: 1.875rem;
}

.qh-portal-figure-label {
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
}

/* Fields: 12px corners, a sand hairline, gold when in use. */
.qh-portal-input,
.qh-portal-select,
.qh-portal-file,
.qh-portal-search input,
.qh-portal-remind-days select,
.qh-portal-login input[type="text"],
.qh-portal-login input[type="password"] {
	border: 1px solid var(--qh-sand-300);
	border-radius: var(--qh-r-control);
	background-color: var(--qh-ivory);
	box-shadow: var(--qh-shadow-inset);
}

.qh-portal-amount {
	border: 2px solid var(--qh-green-600);
	border-radius: var(--qh-r-tile);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--qh-green-700);
}

.qh-portal-amount:focus,
.qh-portal-input:focus,
.qh-portal-select:focus,
.qh-portal-search input:focus,
.qh-portal-remind-days select:focus {
	border-color: var(--qh-gold-500);
	box-shadow: var(--qh-ring);
	outline: 0;
}

/* Buttons: 12px corners, a darker step on hover, a nudge when pressed. */
.qh-portal-search button,
.qh-portal-button,
.qh-portal-login .login-submit input {
	border-radius: var(--qh-r-control);
	transition: background-color 120ms var(--qh-ease), transform 120ms var(--qh-ease);
}

.qh-portal-search button:active,
.qh-portal-button:active,
.qh-portal-login .login-submit input:active {
	transform: translateY( 1px );
}

.qh-portal-button--quiet,
.qh-portal a.qh-portal-button--quiet,
.qh-portal a.qh-portal-button--quiet:hover,
.qh-portal a.qh-portal-button--quiet:focus {
	border-color: var(--qh-sand-300);
	background: var(--qh-ivory);
	color: var(--qh-green-600);
}

.qh-portal-wa {
	border-radius: var(--qh-r-control);
}

/* The confirmation: the screen's one solid green card, the amount in gold. */
.qh-portal-confirm {
	padding: 1.75rem 1.25rem;
	border: 0;
	border-radius: var(--qh-r-card);
	background: var(--qh-green-600);
	color: var(--qh-on-brand);
	box-shadow: var(--qh-shadow-lg);
}

.qh-portal-confirm-amount {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--qh-gold-300);
}

.qh-portal-confirm-who,
.qh-portal-confirm-where {
	color: var(--qh-green-100);
}

.qh-portal-note,
.qh-portal-done {
	border-color: var(--qh-sand-200);
	border-radius: var(--qh-r-tile);
	background: var(--qh-ivory);
}

.qh-portal-done {
	border-color: var(--qh-green-200);
	background: var(--qh-green-50);
}

.qh-portal-note--warn {
	border-color: var(--qh-terracotta-500);
	background: var(--qh-terracotta-50);
}

/* Controls take the page's font; a browser gives them its own otherwise. */
.qh-portal input,
.qh-portal select,
.qh-portal button,
.qh-portal textarea {
	font-family: inherit;
}

/* The page's title, the same shape as every public page's (PT1a): in the
   middle, a short gold rule under it, and who is signed in under that. */
.qh-report-page .qh-report-title {
	margin: 0.75rem auto 0;
	text-align: center;
}

.qh-report-page .qh-report-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin: 0.875rem auto 0;
	border-radius: 3px;
	background: var(--qh-gold-400);
}

.qh-report-page .qh-portal-head {
	justify-content: center;
}

/* ---- every drop-down can be searched (6 October 2026) ------------------- */
/* assets/js/qh-pick.js. The select stays, showing the choice; a press on it
   opens this list instead of the browser's, with a search box at the top.
   On a phone the list rises from the foot of the screen. The panel hangs off
   <body>, outside the page's own wrapper, so it uses the palette itself. */
select.qh-combo {
	pointer-events: none;
}

.qh-combo-panel {
	position: absolute;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 0;
	padding: 0.5rem;
	border: 1px solid var(--qh-sand-300);
	border-radius: 12px;
	background: var(--qh-ivory);
	color: var(--qh-ink-900);
	font-size: 0.9375rem;
	line-height: 1.35;
	box-shadow: 0 14px 34px -8px rgba( 15, 77, 58, 0.25 ), 0 2px 6px rgba( 15, 77, 58, 0.08 );
}

.qh-combo-panel.is-sheet {
	position: fixed;
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	max-height: 75vh;
	padding: 0.75rem 0.75rem calc( 0.75rem + env( safe-area-inset-bottom ) );
	border-radius: 16px 16px 0 0;
}

.qh-combo-panel .qh-combo-search {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 100%;
	min-height: 2.5rem;
	margin: 0 0 0.375rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--qh-sand-300);
	border-radius: 8px;
	background: var(--qh-ivory);
	color: var(--qh-ink-900);
	font: inherit;
}

.qh-combo-panel .qh-combo-search:focus {
	border-color: var(--qh-green-600);
	outline: 2px solid var(--qh-green-600);
	outline-offset: 0;
}

.qh-combo-list {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: auto;
	list-style: none;
}

.qh-combo-list li {
	margin: 0;
}

.qh-combo-option {
	padding: 0.5rem 0.625rem;
	border-radius: 8px;
	cursor: pointer;
}

.qh-combo-option.is-grouped {
	padding-left: 1.25rem;
}

.qh-combo-option.is-active {
	background: var(--qh-sand-100);
}

.qh-combo-option.is-chosen {
	font-weight: 600;
	color: var(--qh-green-600);
}

.qh-combo-option.is-disabled {
	opacity: 0.45;
	cursor: default;
}

.qh-combo-group {
	padding: 0.5rem 0.625rem 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--qh-sand-600);
}

.qh-combo-none {
	padding: 0.5rem 0.625rem;
	font-size: 0.875rem;
	color: var(--qh-sand-600);
}

html.qh-combo-open,
html.qh-combo-open body {
	overflow: hidden;
}

/* Every table with headings sorts by them (qh-sort.js, WK100): a first click
   ascending, a second descending, a third as the page drew it. */
.qh-sortable th.qh-sort-head { cursor: pointer; user-select: none; }
.qh-sortable th.qh-sort-head:hover,
.qh-sortable th.qh-sort-head:focus-visible { color: var(--qh-green-600); outline: none; }
.qh-sortable th.qh-sort-head::after { content: "↕"; margin-left: 4px; opacity: .35; font-size: .85em; }
.qh-sortable th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
.qh-sortable th[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
@media print {
	.qh-sortable th.qh-sort-head::after { content: none; }
}

/* Bangla is never letter-spaced: it pulls joined letters apart (WK154). */
:lang(bn) { letter-spacing: normal !important; }
