/**
 * internal (logged-in) pages restyled to match the 2026 home page .
 *
 * the tokens below are global so any page can use them . the rules are scoped
 * under .qa-app , so a page only changes once its wrapper carries that class .
 * job history is the first page opted in (pages/JobHistory.php) .
 *
 * the exception is the top menu and footer : they are shared by every page ,
 * so those two sections are unscoped and restyle the public pages too .
 *
 * loaded last in HeaderPage.php , on every page , after customFile / table /
 * dataTables , so equal-specificity rules here win without needing a rebuild
 * of asset/style.css
 */

:root {
	--qa-brand 			: #a9342c ;					/* brick red — buttons , accents , links */
	--qa-brand-hover 	: #8c2a24 ;					/* darker brick red on hover */
	--qa-navy 			: #15202b ;					/* headings , icons , tooltips */
	--qa-ink 			: #222222 ;					/* body text */
	--qa-muted 			: #4a5258 ;					/* secondary text */
	--qa-line 			: #ddddd8 ;					/* borders and row rules */
	--qa-stone 			: #ece8e0 ;					/* warm stone — title bar and table header */
	--qa-tint 			: #f7f5f1 ;					/* cream panels and alternate rows */
	--qa-error 			: #b42318 ;					/* errors and warnings — sharper than the brand red */
	--qa-error-soft 	: #fdecea ;
	--qa-success 		: #4f7d5a ;					/* pastel sage green — "complete" tag text */
	--qa-success-soft 	: #e3f1e5 ;					/* pastel mint — "complete" tag */
	--qa-cancel 		: #a9554c ;					/* dusty rose — "cancelled" tag text */
	--qa-cancel-soft 	: #f9e3e0 ;					/* pastel blush — "cancelled" tag */
	--qa-r 				: 4px ;
	--qa-card-shadow 	: 2px 4px 14px rgba(0 , 0 , 0 , .08) ;
	--qa-focus 			: 0 0 0 3px rgba(169 , 52 , 44 , .12) ;
	--qa-font-display 	: 'Sofia Pro' , system-ui , -apple-system , 'Segoe UI' , Roboto , Arial , sans-serif ;
}

/* ---------- pop-up window ---------- */

.qa-app .modal-content {
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) !important ;			/* customFile.css forces 0 with !important */
	box-shadow 		: var(--qa-card-shadow) ;
	overflow 		: hidden ;
}

.qa-app .modal-header {
	background 		: var(--qa-stone) ;
	border-bottom 	: 1px solid var(--qa-line) ;
}

.qa-app .modal-title {
	color 		: var(--qa-navy) ;
	font-weight : 600 !important ;
}

.qa-app .modal-header .close {
	color 		: var(--qa-muted) ;
	opacity 	: 1 ;
	text-shadow : none ;
}

.qa-app .modal-header .close:hover {
	color : var(--qa-brand) ;
}

.qa-app .modal-body p {
	color : var(--qa-muted) ;
}

.qa-app .text-danger {
	color : var(--qa-error) !important ;
}

/* ---------- table ---------- */

.qa-app #jobHistoryTable {
	border-collapse : separate ;
	border-spacing 	: 0 ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	overflow 		: hidden ;
}

/*
 * warm stone header (the home page's format-chart beige) , navy text and a navy
 * rule beneath — matches the window's title bar . background-color only , so
 * dataTables' sort arrows survive
 */
.qa-app #jobHistoryTable thead th {
	color 				: var(--qa-navy) ;
	font-weight 		: 600 ;
	background-color 	: var(--qa-stone) ;
	border 				: 0 ;
	border-bottom 		: 2px solid var(--qa-navy) ;
}

/*
 * dataTables draws its sort arrows as dark png images that read as clutter .
 * swapped for slim navy svg arrows : both (unsorted) , up (asc) , down (desc)
 */
.qa-app #jobHistoryTable thead .sorting {
	background-image : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M5 1 9 5.5H1zM5 13 1 8.5h8z' fill='%2315202b' fill-opacity='.4'/%3E%3C/svg%3E") ;
}

.qa-app #jobHistoryTable thead .sorting_asc {
	background-image : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M5 1 9 5.5H1z' fill='%2315202b'/%3E%3Cpath d='M5 13 1 8.5h8z' fill='%2315202b' fill-opacity='.25'/%3E%3C/svg%3E") ;
}

.qa-app #jobHistoryTable thead .sorting_desc {
	background-image : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M5 1 9 5.5H1z' fill='%2315202b' fill-opacity='.25'/%3E%3Cpath d='M5 13 1 8.5h8z' fill='%2315202b'/%3E%3C/svg%3E") ;
}

.qa-app #jobHistoryTable thead .sorting ,
.qa-app #jobHistoryTable thead .sorting_asc ,
.qa-app #jobHistoryTable thead .sorting_desc {
	background-repeat 	: no-repeat ;
	background-position : center right 6px ;
	background-size 	: 8px 12px ;
}

/*
 * alternating white and cream rows . the colour is held in --qa-row-bg on the
 * row so a cell can be pinned back to its own row colour (see processing below)
 */
.qa-app #jobHistoryTable tbody tr 					{ --qa-row-bg : #ffffff ; }
.qa-app #jobHistoryTable tbody tr:nth-child(even) 	{ --qa-row-bg : var(--qa-tint) ; }
.qa-app #jobHistoryTable tbody tr:hover 			{ --qa-row-bg : #e4dfd5 ; }

.qa-app #jobHistoryTable tbody td {
	color 			: var(--qa-ink) ;
	background 		: var(--qa-row-bg) ;
	border 			: 0 ;
	vertical-align 	: middle ;
}

/* the edge cells had their padding stripped to sit flush with the old white gutters */
.qa-app #jobHistoryTable tbody td:nth-child(1) ,
.qa-app #jobHistoryTable thead th:nth-child(1) {
	padding-left : 10px ;
}

.qa-app #jobHistoryTable tbody td:nth-child(9) ,
.qa-app #jobHistoryTable thead th:nth-child(9) {
	padding-right : 10px ;
}

/*
 * job-history.js paints #ffcccc (pink) inline on two cells : the status cell of
 * a processing job , and the action cell of a finished job nobody has downloaded
 * yet . matched on that inline value so the js stays untouched , then split by
 * column so each gets its own colour
 */

/* processing : the cell keeps its row colour — the grey lives on the tag instead */
.qa-app #jobHistoryTable tbody td.qa-status-processing[style*='rgb(255, 204, 204)'] {
	background-color : var(--qa-row-bg) !important ;
}

/* finished , not yet downloaded : the same pastel mint as the "complete" tag */
.qa-app #jobHistoryTable tbody td:last-child[style*='rgb(255, 204, 204)'] {
	background-color : var(--qa-success-soft) !important ;
}

/*
 * processing tag : a grey box like "Complete" and "Cancelled" , with its own
 * small spinner inside , left of the word . the js still appends its full-cell
 * spinner overlay ; that is hidden here rather than removed , so the js stays
 * untouched and the tag's own text still announces "processing"
 */
.qa-app #jobHistoryTable thead th:nth-child(3) {
	width : 115px ;
}

.qa-app .qa-status-processing .inside-button-spinner-wrap {
	display : none ;
}

.qa-app .qa-status-processing span {
	color 		: var(--qa-muted) ;
	background 	: #e9e9e7 ;
	white-space : nowrap ;
}

.qa-app .qa-status-processing span::before {
	content 			: '' ;
	display 			: inline-block ;
	width 				: .8em ;
	height 				: .8em ;
	margin-right 		: 6px ;
	vertical-align 		: -1px ;
	border 				: 2px solid currentColor ;
	border-right-color 	: transparent ;
	border-radius 		: 50% ;
	animation 			: qa-spin .8s linear infinite ;
}

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

@media (prefers-reduced-motion : reduce) {
	.qa-app .qa-status-processing span::before {
		animation-duration : 2.4s ;
	}
}

/* ---------- job status labels ---------- */

/* job-history.js sets the text colour inline (green / red / grey) , so !important */
.qa-app .qa-status span {
	display 		: inline-block ;
	padding 		: 2px 10px ;
	font-weight 	: 600 ;
	border-radius 	: var(--qa-r) ;
	text-transform 	: capitalize ;
}

.qa-app .qa-status-complete ,
.qa-app .qa-status-cancelled ,
.qa-app .qa-status-processing {
	color : inherit !important ;
}

.qa-app .qa-status-complete span {
	color 		: var(--qa-success) ;
	background 	: var(--qa-success-soft) ;
}

.qa-app .qa-status-cancelled span {
	color 		: var(--qa-cancel) ;
	background 	: var(--qa-cancel-soft) ;
}

.qa-app .qa-status-processing span {
	color : var(--qa-muted) ;
}

/* ---------- action icons ---------- */

.qa-app .job-history-meta ,
.qa-app .downloadInJobHistory ,
.qa-app .deleteInJobHistory ,
.qa-app .downloadInvoiceJobHistory ,
.qa-app .segment-profiler-link ,
.qa-app .segment-profiler-link .red {
	color 		: var(--qa-navy) !important ;
	transition 	: color .15s ease ;
}

.qa-app .job-history-meta:hover ,
.qa-app .downloadInJobHistory:hover ,
.qa-app .deleteInJobHistory:hover ,
.qa-app .downloadInvoiceJobHistory:hover ,
.qa-app .segment-profiler-link:hover .red {
	color : var(--qa-brand) !important ;
}

/* greyed-out icons stay grey , even on hover */
.qa-app .status-inactive ,
.qa-app .status-inactive:hover ,
.qa-app .segment-profiler-link .status-inactive {
	color : #a9b1b7 !important ;
}

/* ---------- search box , paging , close button (added by dataTables) ---------- */

.qa-app .dataTables_wrapper .dataTables_filter {
	margin-bottom : 10px ;
}

.qa-app .dataTables_wrapper .dataTables_filter input {
	padding 		: 6px 10px ;
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	outline 		: 0 ;
}

.qa-app .dataTables_wrapper .dataTables_filter input:focus {
	border-color 	: var(--qa-brand) ;
	box-shadow 		: var(--qa-focus) ;
}

.qa-app .dataTables_wrapper .dataTables_info {
	color : var(--qa-muted) !important ;
}

.qa-app .dataTables_wrapper .dataTables_paginate .paginate_button {
	color 			: var(--qa-ink) !important ;
	border 			: 1px solid transparent !important ;
	border-radius 	: var(--qa-r) ;
	background 		: transparent !important ;
}

.qa-app .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	color 			: var(--qa-brand) !important ;
	border-color 	: var(--qa-line) !important ;
	background 		: var(--qa-tint) !important ;
}

.qa-app .dataTables_wrapper .dataTables_paginate .paginate_button.current ,
.qa-app .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	color 			: #ffffff !important ;
	border-color 	: var(--qa-brand) !important ;
	background 		: var(--qa-brand) !important ;
}

.qa-app .dataTables_wrapper .dataTables_paginate .paginate_button.disabled ,
.qa-app .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	color 			: #a9b1b7 !important ;
	border-color 	: transparent !important ;
	background 		: transparent !important ;
}

.qa-app .rda_qa_btn {
	font-weight 		: 600 ;
	border 				: 1.5px solid var(--qa-brand) ;
	border-radius 		: var(--qa-r) ;
	background-color 	: var(--qa-brand) ;
}

.qa-app .rda_qa_btn:hover {
	border-color 		: var(--qa-brand-hover) ;
	background-color 	: var(--qa-brand-hover) ;
}

/*
 * secondary buttons (Clear File , Cancel Job …) : the home page outline button —
 * white , grey hairline , ink text ; brick border and text on hover . without
 * this the brick rule above would fill them too (same specificity , loaded later)
 */
.qa-app .rda_qa_btn.transparent {
	color 				: var(--qa-ink) ;
	border-color 		: var(--qa-line) ;
	background-color 	: #ffffff ;
}

.qa-app .rda_qa_btn.transparent:hover {
	color 				: var(--qa-brand) ;
	border-color 		: var(--qa-brand) ;
	background-color 	: #ffffff ;
}

/* ---------- top menu bar (HeaderPage.php , every page) ----------
 *
 * not scoped under .qa-app : the header sits outside every page wrapper .
 * follows the home page mockup (v316) : white bar with a hairline , navy
 * links that hover to a rounded cream pill with brick text , rounded buttons
 */

header.nav-wrap {
	background : #ffffff !important ;
	box-shadow : 0 1px 0 var(--qa-line) , 0 4px 14px rgba(0 , 0 , 0 , .05) !important ;
}

header.nav-wrap .nav-link ,
header.nav-wrap .nav-link.black {
	font-family : var(--qa-font-display) ;
	font-size 	: .95rem ;
	color 		: var(--qa-navy) !important ;		/* customFile .black is !important */
	transition 	: background-color .2s ease , color .2s ease ;
}

/* no grey square or bold jump on hover (header.css) */
header.nav-wrap .nav-item:hover ,
header.nav-wrap .nav-item:focus-within {
	background 	: none !important ;
	font-weight : inherit !important ;
}

header.nav-wrap .nav-link:hover ,
header.nav-wrap .nav-link:focus-visible {
	color 		: var(--qa-brand) !important ;
	background 	: var(--qa-tint) !important ;
}

/*
 * pill spacing , desktop only so the phone overlay keeps its large tap targets .
 * every menu item (links , Start New Job , Login , Register) sits on one 6px gap :
 * header.css / style.css padding on the items themselves (.5rem right , 10px on
 * Start New Job , .5rem each side in the login form) made the gaps uneven
 */
@media (min-width : 576px) {
	header.nav-wrap .navbar-nav ,
	header.nav-wrap #frmNavbar {
		gap 		: 6px ;
		align-items : center ;
	}

	header.nav-wrap .navbar-nav > .nav-item ,
	header.nav-wrap #frmNavbar .nav-item {
		padding : 0 ;
	}

	/* the same 6px between the last link and Login */
	header.nav-wrap #frmNavbar {
		margin-left : 6px ;
	}

	header.nav-wrap .navbar-nav .nav-link {
		padding 		: 7px 12px !important ;
		border-radius 	: var(--qa-r) ;
	}
}

/* Login / Register */
header.nav-wrap .rda_qa_btn {
	font-family 	: var(--qa-font-display) ;
	font-size 		: .875rem ;
	font-weight 	: 600 ;
	line-height 	: 1.4 ;
	padding 		: 7px 16px ;
	border-radius 	: var(--qa-r) !important ;
}

header.nav-wrap .rda_qa_btn.transparent {
	color 		: var(--qa-ink) ;
	border 		: 1px solid var(--qa-line) ;
	background 	: #ffffff ;
}

header.nav-wrap .rda_qa_btn.transparent:hover ,
#frmNavbar button.rda_qa_btn.transparent:hover {
	color 			: var(--qa-brand) !important ;
	border-color 	: var(--qa-brand) !important ;
	background 		: #ffffff !important ;
}

header.nav-wrap .rda_qa_btn:not(.transparent):hover ,
#frmNavbar button.rda_qa_btn:not(.transparent):hover {
	color 			: #ffffff !important ;
	border-color 	: var(--qa-brand-hover) !important ;
	background 		: var(--qa-brand-hover) !important ;
}

header.nav-wrap .navbar-toggler {
	border-color 	: var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
}

/*
 * Help Desk (HeaderPage.php , logged in) : the public Message Us button's look —
 * brick , semi-bold , docked to the right edge so only the left corners round .
 * was square in the old bright red (customFile --primary-color #ca1818)
 */
#HelpDeskButton {
	padding 			: 7px 16px ;
	font-family 		: var(--qa-font-display) ;
	font-weight 		: 600 ;
	color 				: #ffffff ;
	border 				: 1px solid var(--qa-brand) ;
	border-radius 		: var(--qa-r) 0 0 var(--qa-r) ;
	background-color 	: var(--qa-brand) ;
	transition 			: background-color .15s ease , border-color .15s ease ;
}

#HelpDeskButton:hover {
	color 				: #ffffff ;
	border-color 		: var(--qa-brand-hover) ;
	background-color 	: var(--qa-brand-hover) ;
}

/* logged in : "Start New Job" in the same brick as Register , 4px corners */

/* "Start New Job" : was a square block of the old bright red (#ca1818) */
#menuStartNewJob {
	border-radius 	: var(--qa-r) ;
	background 		: var(--qa-brand) !important ;		/* header.css sets it !important */
	transition 		: background-color .15s ease ;
}

#menuStartNewJob:hover {
	background 		: var(--qa-brand-hover) !important ;
	font-weight 	: 600 ;
}

#menuStartNewJobLink ,
#menuStartNewJobLink:hover {
	font-weight : 600 ;		/* header.css bolds it to 700 on hover , which widened the button */
}

/*
 * desktop : the same size as Login / Register (.rda_qa_btn above) . the padding
 * moves from the <li> to the link so the whole button is clickable , and the
 * 991px / 767px rules in header.css (fixed 3.1rem height , 101.8% width ,
 * right-aligned text) are undone
 */
@media (min-width : 576px) {
	#menuStartNewJob {
		width 			: auto ;
		height 			: auto ;
		margin 			: 0 ;
		padding 		: 0 ;
		line-height 	: 1.4 ;
		text-align 		: center ;
		border 			: 1px solid var(--qa-brand) ;		/* matches the buttons' 1px border */
	}

	#menuStartNewJob:hover {
		border-color : var(--qa-brand-hover) ;
	}

	#menuStartNewJobLink {
		display 		: block ;
		padding 		: 7px 16px ;
		font-family 	: var(--qa-font-display) ;
		font-size 		: .875rem ;
		line-height 	: 1.4 ;
	}
}

/*
 * account dropdown (the user's name) : a white card like the home page cards ,
 * cream hover , brick text . was solid grey from customFile.css .dropdownitems
 */
#mainNavbar .dropdown-menu {
	padding 		: 6px 0 ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	box-shadow 		: var(--qa-card-shadow) ;
	overflow 		: hidden ;
}

#mainNavbar .dropdown-item {
	color 		: var(--qa-ink) ;
	padding 	: 6px 16px ;
	transition 	: background-color .15s ease , color .15s ease ;
}

/*
 * desktop : hang the card from the bottom-right corner of the name's
 * highlighted pill , not its left edge (the markup has .dropdown-menu-left) .
 * the <li> has no padding here , so its right edge is the pill's right edge
 */
@media (min-width : 576px) {
	#mainNavbar .dropdown-menu {
		left 	: auto ;
		right 	: 0 ;
	}

	/*
	 * the name and its menu as one piece : while open , the name's pill turns
	 * into a white tab sharing the menu's grey outline , with no line between
	 * them , and the menu's top-right corner squares off where the tab sits .
	 *
	 * every menu link carries a transparent 1px border so the tab's border
	 * doesn't change its size . the <li> is a flex box so the link fills its
	 * full height : the menu hangs from the <li>'s bottom , which sat a few px
	 * below the pill and left a gap (the screenshot)
	 */
	header.nav-wrap .navbar-nav .nav-link {
		border : 1px solid transparent ;
	}

	#mainNavbar .dropdown {
		display : flex ;
	}

	#mainNavbar .dropdown:hover > .nav-link ,
	#mainNavbar .dropdown:focus-within > .nav-link {
		position 		: relative ;
		z-index 		: 1001 ;							/* over the menu's top line (bootstrap menu : 1000) */
		color 			: var(--qa-brand) !important ;
		background 		: #ffffff !important ;
		border-color 	: var(--qa-line) ;
		border-bottom-color : #ffffff ;						/* opens into the menu */
		border-radius 	: var(--qa-r) var(--qa-r) 0 0 ;
	}

	#mainNavbar .dropdown-menu {
		top 					: 100% ;
		margin-top 				: -1px !important ;		/* tuck under the tab's bottom edge */
		min-width 				: max(10rem , 100%) ;		/* never narrower than the tab */
		border-top-right-radius : 0 ;
	}
}

/* the phone overlay shows the menu inline , so no card there */
#navbarSupportedContent.show .dropdown-menu {
	box-shadow : none ;
}

#mainNavbar .dropdown-item:hover ,
#mainNavbar .dropdown-item:focus {
	color 		: var(--qa-brand) ;
	background 	: var(--qa-tint) ;
}

/* ---------- footer (every page) ----------
 *
 * per the home page mockup : white with a hairline on top (was a 3px grey
 * border on grey) , muted slate text , links hover to brick red
 */

footer {
	color 			: var(--qa-muted) ;
	border-top 		: 1px solid var(--qa-line) !important ;
	background 		: #ffffff !important ;
}

footer a {
	color : var(--qa-muted) !important ;
}

footer a:hover {
	color : var(--qa-brand) !important ;
}

/* ---------- tooltips ---------- */

/*
 * bootstrap appends tooltips to <body> , outside .qa-app , so these are keyed
 * off the job history window being open , or an opted-in page (main.qa-app)
 */
body:has(#modalJobHistory.show) .tooltip .tooltip-inner ,
body:has(main.qa-app) .tooltip .tooltip-inner {
	padding 		: 8px 11px ;
	background 		: var(--qa-navy) ;
	border-radius 	: var(--qa-r) ;
	box-shadow 		: 0 6px 18px rgba(0 , 0 , 0 , .18) ;
}

body:has(#modalJobHistory.show) .tooltip.bs-tooltip-top .arrow::before ,
body:has(main.qa-app) .tooltip.bs-tooltip-top .arrow::before 		{ border-top-color 		: var(--qa-navy) ; }
body:has(#modalJobHistory.show) .tooltip.bs-tooltip-right .arrow::before ,
body:has(main.qa-app) .tooltip.bs-tooltip-right .arrow::before 	{ border-right-color 	: var(--qa-navy) ; }
body:has(#modalJobHistory.show) .tooltip.bs-tooltip-bottom .arrow::before ,
body:has(main.qa-app) .tooltip.bs-tooltip-bottom .arrow::before 	{ border-bottom-color 	: var(--qa-navy) ; }
body:has(#modalJobHistory.show) .tooltip.bs-tooltip-left .arrow::before ,
body:has(main.qa-app) .tooltip.bs-tooltip-left .arrow::before 	{ border-left-color 	: var(--qa-navy) ; }

/* ======================================================================
 * "Let's get started" (pages/MemberHome.php) — same palette as job history :
 * cream page , white cards , stone tiles with navy text , and brick red for
 * the one thing that is chosen (like the current page number in job history)
 * ====================================================================== */

.member-page-main-section.qa-app {
	background-color : var(--qa-tint) ;
}

/* the two white cards */
.qa-app .greeting ,
.qa-app .iso-wrap {
	color 			: var(--qa-navy) ;
	border 			: 1px solid var(--qa-line) !important ;		/* bootstrap .border is !important */
	border-radius 	: var(--qa-r) ;
	box-shadow 		: var(--qa-card-shadow) ;
}

/* "OR" between the job tiles */
.qa-app .job-type-parent-container .col-1 {
	color : var(--qa-muted) ;
}

/* job and country tiles : mid grey , a touch lighter than --qa-muted to sit softer on the cream page */
.qa-app .job-type-container ,
.qa-app .iso-container {
	color 				: #ffffff !important ;		/* bootstrap .text-white is !important */
	font-weight 		: 600 ;
	background-color 	: #636a6f ;
	border 				: 1px solid #636a6f ;
	border-radius 		: var(--qa-r) ;
	transition 			: background-color .15s ease , border-color .15s ease , color .15s ease ;
}

.qa-app .job-type-container:hover ,
.qa-app .iso-container:hover {
	background-color 	: var(--qa-muted) ;
	border-color 		: var(--qa-muted) ;
}

/* selected tile : brick red , white text */
.qa-app .job-type-container:has(input:checked) ,
.qa-app .iso-container:has(input:checked) {
	color 				: #ffffff !important ;
	background-color 	: var(--qa-brand) ;
	border-color 		: var(--qa-brand) ;
}

.qa-app .job-type-container:has(input:checked):hover ,
.qa-app .iso-container:has(input:checked):hover {
	background-color 	: var(--qa-brand-hover) ;
	border-color 		: var(--qa-brand-hover) ;
}

/* tile checkboxes : white , rounded ; when ticked , a brick red tick on white */
.qa-app .job-type-container input[type=checkbox] ,
.qa-app .iso-container input[type=checkbox] {
	background-color 	: #ffffff ;
	border 				: 1px solid #cfc8bc ;
	border-radius 		: 3px ;
}

.qa-app .job-type-container input[type=checkbox]:checked ,
.qa-app .iso-container input[type=checkbox]:checked {
	border-color 		: #ffffff ;
	background 			: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23a9342c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat ;
}

/*
 * locked job tile : Build a Target Area List before the user's first completed
 * appending / profiling job (TargetAreaListBuild::getUi) . faded , no hover ,
 * not clickable (main.job.js) . the reason is a bootstrap tooltip on the tile ,
 * flagged by an info icon where the checkbox would sit
 */
.qa-app .job-type-container.job-type-locked ,
.qa-app .job-type-container.job-type-locked:hover {
	background-color 	: #636a6f ;
	border-color 		: #636a6f ;
	opacity 			: .55 ;
	cursor 				: not-allowed ;
}

.qa-app .job-type-container.job-type-locked input[type=checkbox] {
	display : none ;
}

.qa-app .job-type-locked-icon {
	position 	: absolute ;
	right 		: 15px ;
	bottom 		: 8px ;
	width 		: 18px ;
	height 		: 18px ;
}

/* start button : the shared .qa-app .rda_qa_btn brick , a little roomier */
.qa-app .rda_qa_btn_lg {
	padding : 8px 28px ;
}

/* ======================================================================
 * uploader (pages/FileUpload.php , SelectedJobDetails.php) — the Let's get
 * started palette : cream page , white cards , navy headings , grey tiles ,
 * brick red for the main action
 * ====================================================================== */

/* job title and country above the cards : navy on cream , was white on blue */
.qa-app .selected-job-title ,
.qa-app .selected-job-country {
	color : var(--qa-navy) !important ;		/* bootstrap .text-white is !important */
}

.qa-app .selected-job-title {
	font-weight : 600 !important ;
}

/* white cards (the format card , file card , diagnostics cards) */
.qa-app .row.bg-white {
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	box-shadow 		: var(--qa-card-shadow) ;
}

/* not the purple error-diagnostics heading , which keeps its warning colour */
.qa-app h2:not(.error-diag-color) {
	color 		: var(--qa-navy) ;
	font-weight : 600 !important ;
}

/* helper lines ("Files not in this format …" , "Drag & drop …") : were deep blue */
.qa-app p.mainColorFont {
	color : var(--qa-muted) !important ;	/* customFile .mainColorFont is !important */
}

/* upload format select */
.qa-app #headerSelection {
	padding 		: 7px 10px ;
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
}

.qa-app #headerSelection:focus {
	border-color 	: var(--qa-brand) ;
	box-shadow 		: var(--qa-focus) ;
	outline 		: 0 ;
}

/*
 * the open list : the same white card as the user menu dropdown (rounded , grey
 * hairline , soft shadow , cream hover with brick text) . needs a customisable
 * select (appearance : base-select , chrome / edge 135+) ; other browsers keep
 * their native list , so it is gated on @supports and needs no js
 */
@supports (appearance : base-select) {
	.qa-app #headerSelection ,
	.qa-app #headerSelection::picker(select) {
		appearance : base-select ;
	}

	/*
	 * a styled select sizes to the chosen option , so it changed width with
	 * each pick . FileUpload.php sets --qa-format-ch to the longest format name
	 * in characters ; 1ch per character plus room for the padding and arrow
	 * fixes the box at the widest option's width
	 */
	.qa-app #headerSelection {
		width 	: calc(var(--qa-format-ch , 24) * 1ch + 3.5em) ;
		cursor 	: pointer ;
	}

	.qa-app #headerSelection::picker-icon {
		color 		: var(--qa-muted) ;
		transition 	: rotate .15s ease ;
	}

	.qa-app #headerSelection:open::picker-icon {
		rotate : 180deg ;
	}

	/*
	 * like the user menu : the list's top-right corner meets the box's
	 * bottom-right corner , and it grows to the left . flips above the box
	 * if there is no room below
	 */
	.qa-app #headerSelection::picker(select) {
		inset 					: auto ;
		margin 					: 0 ;
		position-area 			: bottom span-left ;
		position-try-fallbacks 	: flip-block ;
		padding 				: 6px 0 ;
		border 			: 1px solid var(--qa-line) ;
		border-radius 	: var(--qa-r) ;
		background 		: #ffffff ;
		box-shadow 		: var(--qa-card-shadow) ;
	}

	.qa-app #headerSelection option {
		padding 	: 6px 16px ;
		color 		: var(--qa-ink) ;
		transition 	: background-color .15s ease , color .15s ease ;
	}

	.qa-app #headerSelection option::checkmark {
		display : none ;
	}

	.qa-app #headerSelection option:checked {
		font-weight : 600 ;
	}

	.qa-app #headerSelection option:hover ,
	.qa-app #headerSelection option:focus-visible {
		color 		: var(--qa-brand) ;
		background 	: var(--qa-tint) ;
		outline 	: 0 ;
	}
}

/* Header: / Example: rows — the grey tile as the label , white boxes for the values */
.qa-app span.borderColor {
	border 			: 1px solid var(--qa-line) ;	/* was skyblue */
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
}

.qa-app span.borderColor.mainColor {
	font-weight 		: 600 ;
	border-color 		: #636a6f ;
	background-color 	: #636a6f ;		/* the unselected tile grey from Let's get started */
}

/* example values (20 , AUS , Jolimont …) : brick red , were deep blue (Util::generateHeaderExamples) */
.qa-app #theExampleFormat .header-example {
	color : var(--qa-brand) !important ;	/* customFile .mainColorFont is !important */
}

/* format info icon : navy , brick on hover */
.qa-app #infoTipTaggerFormat {
	color 		: var(--qa-navy) ;
	transition 	: color .15s ease ;
}

.qa-app #infoTipTaggerFormat:hover {
	color : var(--qa-brand) ;
}

/* drop zone : cream with a dashed stone edge ; dragging a file over it turns the edge brick */
.qa-app .drop-zone {
	margin-left 	: 0 ;
	font-family 	: inherit ;
	font-size 		: 1.1rem ;
	font-weight 	: 600 ;
	color 			: var(--qa-muted) ;
	border 			: 2px dashed #cfc8bc ;
	border-radius 	: var(--qa-r) ;
	background 		: var(--qa-tint) ;
	transition 		: border-color .15s ease , background-color .15s ease , color .15s ease ;
}

.qa-app .drop-zone:hover ,
.qa-app .drop-zone--over {
	color 			: var(--qa-brand) ;
	border-color 	: var(--qa-brand) ;
	background 		: #ffffff ;
}

/* drop-zone--locked (file submitted) : no hover invitation */
.qa-app .drop-zone--locked:hover {
	color 			: var(--qa-muted) ;
	border-color 	: #cfc8bc ;
	background 		: var(--qa-tint) ;
}

/* the chosen file : stone card , navy name strip (was skyblue and black) */
.qa-app .drop-zone__thumb {
	border-radius 		: var(--qa-r) ;
	background-color 	: var(--qa-stone) ;
}

.qa-app .drop-zone__thumb::after {
	background : rgba(21 , 32 , 43 , .85) ;
}

/*
 * progress bar (progress-bar.css) : brick fill on a stone track . the fill reads
 * var(--secondary-color) , so redefining it on the drop zone recolours every
 * vendor pseudo at once and leaves the indeterminate / reduced-motion rules alone
 */
.qa-app .drop-zone {
	--secondary-color : var(--qa-brand) ;
}

.qa-app .drop-zone__progress-bar ,
.qa-app .drop-zone__progress-bar::-webkit-progress-bar {
	box-shadow 			: inset 0 0 0 1px var(--qa-line) ;
	background-color 	: var(--qa-stone) ;
	background-image 	: linear-gradient(
						  135deg ,
						  rgba(169 , 52 , 44 , .12) 25% ,
						  rgba(169 , 52 , 44 , 0) 25% ,
						  rgba(169 , 52 , 44 , 0) 50% ,
						  rgba(169 , 52 , 44 , .12) 50% ,
						  rgba(169 , 52 , 44 , .12) 75% ,
						  rgba(169 , 52 , 44 , 0) 75% ,
						  rgba(169 , 52 , 44 , 0)
						  ) ;
}

@media (prefers-reduced-motion : reduce) {
	.qa-app .drop-zone__progress-bar ,
	.qa-app .drop-zone__progress-bar::-webkit-progress-bar {
		background-image : none ;
	}
}

.qa-app .drop-zone__progress-label {
	color : var(--qa-muted) ;
}

/* geoTribes breakdown toggle : brick boxes (customFile --primary-color is the old red) */
.qa-app .geotribes-toggle-box {
	color : var(--qa-brand) ;
}

.qa-app .geotribes-toggle-label {
	color : var(--qa-navy) ;
}

.qa-app .geotribes-toggle-help {
	color : var(--qa-muted) ;
}

/* ======================================================================
 * data diagnostics (pages/DataDiagnostics.php , and the Target Composition
 * table file-upload.js builds) — the job history table : stone header with a
 * navy rule , white rows on hairlines , rounded edge . was blue headers on
 * grey cells with white gutters
 *
 * keyed off #dataDiagnostics so it outranks file-upload.css , whose rules
 * carry the table ids (#tableOne:not(…) tbody th:not(…) …)
 * ====================================================================== */

/* anything still reading the old deep blue (copy-ids hover , .mainColor) turns brick */
.qa-app #dataDiagnostics {
	--secondary-color : var(--qa-brand) ;
}

.qa-app #dataDiagnostics .qa-diagnostics-table {
	border-collapse : separate ;
	border-spacing 	: 0 ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	overflow 		: hidden ;
}

.qa-app #dataDiagnostics .qa-diagnostics-table thead th {
	color 				: var(--qa-navy) ;
	font-weight 		: 600 ;
	background-color 	: var(--qa-stone) ;
	border 				: 0 ;
	border-bottom 		: 2px solid var(--qa-navy) ;
}

.qa-app #dataDiagnostics .qa-diagnostics-table tbody th ,
.qa-app #dataDiagnostics .qa-diagnostics-table tbody td {
	color 				: var(--qa-ink) ;
	font-weight 		: 400 ;
	background-color 	: #ffffff ;
	border 				: 0 ;
	border-top 			: 1px solid var(--qa-line) ;
	vertical-align 		: middle ;
}

/*
 * one column grid for every diagnostics table (Match Status , Target
 * Composition , Error Diagnostics) . file-upload.css sizes the header cells
 * of #tableOne / #tblCustomTarget only ; Error Diagnostics' header row (added
 * after) fell outside it , so its Count / % columns spread wider . the tables
 * are table-layout : fixed , so the header row's widths set every column
 */
.qa-app #dataDiagnostics .qa-diagnostics-table thead th:first-child {
	width 		: var(--diag-label-col-width) ;
	text-align 	: left ;
}

.qa-app #dataDiagnostics .qa-diagnostics-table thead th:not(:first-child) {
	width : var(--diag-count-col-width) ;
}

/* no hairline on a table's first row : the header rule or the table edge is already there */
.qa-app #dataDiagnostics .qa-diagnostics-table tbody tr:first-child th ,
.qa-app #dataDiagnostics .qa-diagnostics-table tbody tr:first-child td {
	border-top : 0 ;
}

/* TOTAL NUMBER OF RECORDS SUBMITTED : the summary row , navy on cream */
.qa-app #dataDiagnostics .qa-diagnostics-table tbody th.mainColorFont {
	color 				: var(--qa-navy) !important ;		/* customFile .mainColorFont is !important */
	font-weight 		: 600 ;
	background-color 	: var(--qa-tint) ;
}

/*
 * error diagnostics : the heading carries the warning red (was purple) ; the
 * rows read like the Match Status rows above — ink text on white hairline rows
 */
.qa-app #dataDiagnostics h2.error-diag-color ,
.qa-app #dataDiagnostics .qa-diagnostics-table thead th.error-diag-color {
	color : var(--qa-error) ;
}

.qa-app #dataDiagnostics .qa-diagnostics-table tbody td.error-diag {
	color : var(--qa-ink) ;
}

/* room between the tables : Match Status , Target Composition , Error Diagnostics */
.qa-app #dataDiagnostics .qa-diagnostics-table {
	margin-bottom : 2rem ;
}

.qa-app #dataDiagnostics .qa-diagnostics-table:last-child {
	margin-bottom : 0 ;
}

/* "as a comparison , the National Average …" : a quieter aside under the label */
.qa-app #dataDiagnostics .addr-type-info {
	color 		: var(--qa-muted) ;
	font-size 	: .9em ;
}

.qa-app #dataDiagnostics .qa-suppressed-note {
	color : var(--qa-error) ;
}

.qa-app #dataDiagnostics .autobase-notice {
	color : var(--qa-muted) ;
}

/* info icons tooltip.js adds to the match / address type labels : navy , brick on hover */
.qa-app #dataDiagnostics .diag_infotip {
	color 		: var(--qa-navy) ;
	transition 	: color .15s ease ;
}

.qa-app #dataDiagnostics .diag_infotip:hover {
	color : var(--qa-brand) ;
}

/* ======================================================================
 * pop-ups (sweetalert2 , via the Dialog mixin in js/main.js) — Upload File ,
 * Cancel Job , deletes , Reset Password … on every page , public ones too ,
 * since this file loads everywhere and swal appends them to <body> .
 * white card , navy title , theme buttons , icons in the theme colours
 * (success in the job history "complete" green)
 * ====================================================================== */

body .swal2-container.swal2-backdrop-show {
	background : rgba(21 , 32 , 43 , .45) ;		/* a navy wash , was flat grey */
}

body .swal2-popup {
	color 			: var(--qa-ink) ;
	font-family 	: inherit ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	box-shadow 		: 0 12px 40px rgba(0 , 0 , 0 , .18) ;
}

body .swal2-title {
	color 		: var(--qa-navy) ;
	font-size 	: 1.4rem ;
	font-weight : 600 ;
}

body .swal2-html-container {
	color 		: var(--qa-muted) ;
	font-size 	: 1rem ;
	line-height : 1.5 ;
}

body .swal2-close {
	color : var(--qa-muted) ;
}

body .swal2-close:hover {
	color : var(--qa-brand) ;
}

/* buttons : the theme's brick and white outline buttons , rounded */
body .swal2-actions .rda_qa_btn {
	padding 			: 7px 18px ;
	font-weight 		: 600 ;
	border 				: 1.5px solid var(--qa-brand) ;
	border-radius 		: var(--qa-r) ;
	background-color 	: var(--qa-brand) ;
}

body .swal2-actions .rda_qa_btn:hover {
	border-color 		: var(--qa-brand-hover) ;
	background-color 	: var(--qa-brand-hover) ;
}

body .swal2-actions .rda_qa_btn.transparent {
	color 				: var(--qa-ink) ;
	border-color 		: var(--qa-line) ;
	background-color 	: #ffffff ;
}

body .swal2-actions .rda_qa_btn.transparent:hover {
	color 				: var(--qa-brand) ;
	border-color 		: var(--qa-brand) ;
	background-color 	: #ffffff ;
}

body .swal2-input ,
body .swal2-textarea {
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	box-shadow 		: none ;
}

body .swal2-input:focus ,
body .swal2-textarea:focus {
	border-color 	: var(--qa-brand) ;
	box-shadow 		: var(--qa-focus) ;
}

/* success tick : the job history "complete" sage green (was swal's lime) */
body .swal2-icon.swal2-success {
	color 			: var(--qa-success) ;
	border-color 	: var(--qa-success) ;
}

body .swal2-icon.swal2-success [class^='swal2-success-line'] {
	background-color : var(--qa-success) ;
}

body .swal2-icon.swal2-success .swal2-success-ring {
	border-color : rgba(79 , 125 , 90 , .25) ;		/* --qa-success , faint */
}

/* error cross : the theme's warning red */
body .swal2-icon.swal2-error {
	color 			: var(--qa-error) ;
	border-color 	: var(--qa-error) ;
}

body .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
	background-color : var(--qa-error) ;
}

/* warning : brick (was orange) */
body .swal2-icon.swal2-warning {
	color 			: var(--qa-brand) ;
	border-color 	: rgba(169 , 52 , 44 , .45) ;
}

/* info and question : navy (were light blue and grey-blue) */
body .swal2-icon.swal2-info ,
body .swal2-icon.swal2-question {
	color 			: var(--qa-navy) ;
	border-color 	: rgba(21 , 32 , 43 , .3) ;
}

/* ======================================================================
 * datapack selection (pages/ExtensionDatapacks.php) — the Let's get started
 * palette : white cards on cream , navy headings , brick for what is chosen .
 * the hidden cost review block below the packs (Cost.php , payment) is the
 * next step and is not restyled here beyond the shared card rule
 * ====================================================================== */

/* old red (customFile --primary-color #ca1818) text : pack cost , "N variables selected" */
.qa-app .primaryColor {
	color : var(--qa-brand) ;
}

.qa-app .instruction {
	color : var(--qa-muted) ;
}

/* ---------- pack cards ---------- */

.qa-app .cardWrap {
	background 		: #ffffff ;
	border 			: 1px solid var(--qa-line) ;		/* was deep blue */
	border-radius 	: var(--qa-r) ;
	box-shadow 		: var(--qa-card-shadow) ;
	transition 		: border-color .15s ease , background-color .15s ease , box-shadow .15s ease ;
}

/* hover : a brick-tinted edge , a deeper shadow and the name turns brick */
.qa-app .cardWrap:hover {
	border-color 	: rgba(169 , 52 , 44 , .55) ;
	box-shadow 		: 4px 8px 22px rgba(0 , 0 , 0 , .14) ;
}

.qa-app .cardWrap:hover .cardHeading {
	color : var(--qa-brand) ;
}

/* disabled packs (pack-selection.js : .greyOverlay) don't invite a click */
.qa-app .cardWrap.greyOverlay:hover {
	border-color 	: var(--qa-line) ;
	box-shadow 		: var(--qa-card-shadow) ;
}

.qa-app .cardWrap.greyOverlay:hover .cardHeading {
	color : var(--qa-navy) ;
}

/* selected (pack-selection.js adds .lightRedBackground) : brick edge on a faint brick wash , was pink */
.qa-app .cardWrap.lightRedBackground {
	border 		: 1.5px solid var(--qa-brand) ;
	background 	: #fbf3f1 ;
}

.qa-app .cardHeadingWrap .cardHeading {
	color 		: var(--qa-navy) ;
	font-weight : 600 ;
}

.qa-app .extensionDatapackSourceName {
	color : var(--qa-ink) ;
}

.qa-app .cardBodyWrap .greyColor {
	color : var(--qa-muted) ;
}

/*
 * the square / ticked-square icons : brick (were the old red) , sized to the
 * name and centred on its first line . the name's first line sits .25rem
 * (card padding) + .4rem (its margin) down and is 1.2rem tall , so its middle
 * is 1.25rem down ; a 1.05rem icon centred there starts .725rem down , and the
 * same .725rem in from the left keeps the corner gap even
 */
.qa-app .cardWrap .customCheckbox {
	top 		: .725rem ;
	left 		: calc(.725rem + 1.05rem / 16) ;	/* the square is drawn 1/16 of its height below the icon's top , flush with its left : match the visible gaps */
	font-size 	: 1.05rem ;
	color 		: var(--qa-brand) ;
}

/*
 * centre the name's capitals on the box : at .3rem they sat ~2px high
 * (measured from a screenshot) , so the line drops ~2.4px
 */
.qa-app .cardHeadingWrap .cardHeading {
	margin-top : .45rem ;
}

/* the name and details clear the larger , further-in icon */
.qa-app .cardBodyWrap ,
.qa-app .cardHeadingWrap .cardHeading {
	padding-left : 1.75rem ;
}

.qa-app .data-dictionary-wrap a {
	color 			: var(--qa-brand) ;
	text-underline-offset : 3px ;
}

.qa-app .data-dictionary-wrap a:hover {
	color : var(--qa-brand-hover) ;
}

/* info icons (pack notes , cart summary) : navy , brick on hover — were blue */
.qa-app .packmeta-infotip ,
.qa-app .cart-summary-info-icon {
	color 		: var(--qa-navy) ;
	transition 	: color .15s ease ;
}

.qa-app .packmeta-infotip:hover ,
.qa-app .cart-summary-info-icon:hover {
	color : var(--qa-brand) ;
}

/* ---------- filter box ---------- */

/*
 * the filter box and the summary box side by side , same height : the row
 * aligned them to the bottom (extension-datapack.css) , so the shorter filter
 * box sat low . stretching lifts its top to the summary's ; its own contents
 * stay bottom-aligned
 */
.qa-app #extensionDatapackFilterUiWrap {
	align-items : stretch ;
}

.qa-app #extensionDatapackFilterFormWrap {
	border 			: 1px solid var(--qa-line) ;		/* was near-black */
	border-radius 	: var(--qa-r) ;
	background 		: var(--qa-tint) ;
}

.qa-app #extensionDatapackFilterFormWrap label {
	color 			: var(--qa-navy) ;
	font-weight 	: 600 ;
	letter-spacing 	: .08em ;
}

.qa-app #extensionDatapackFilterReset {
	color : var(--qa-muted) ;
}

.qa-app #extensionDatapackFilterReset:hover {
	color : var(--qa-brand) ;
}

/* select2 boxes : white , hairline , rounded ; brick when open */
.qa-app #extensionDatapackFilterFormWrap .select2-container--default .select2-selection--multiple {
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
}

.qa-app #extensionDatapackFilterFormWrap .select2-container--default.select2-container--focus .select2-selection--multiple ,
.qa-app #extensionDatapackFilterFormWrap .select2-container--default.select2-container--open .select2-selection--multiple {
	border-color 	: var(--qa-brand) ;
	box-shadow 		: var(--qa-focus) ;
}

/* chosen filter chips : stone with navy text */
.qa-app #extensionDatapackFilterFormWrap .select2-selection__choice {
	color 			: var(--qa-navy) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: var(--qa-stone) ;
}

/* the open list : the user menu dropdown card */
.qa-app #extensionDatapackFilterFormWrap .select2-dropdown {
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	box-shadow 		: var(--qa-card-shadow) ;
	overflow 		: hidden ;
}

.qa-app .extensionDatapackFilterInputWrap .select2-results__option--selectable {
	color 		: var(--qa-ink) ;
	background 	: #ffffff ;
}

.qa-app .extensionDatapackFilterInputWrap .select2-results__option--selectable.select2-results__option--highlighted ,
.qa-app .extensionDatapackFilterInputWrap .select2-results__option--selectable.select2-results__option--selected.select2-results__option--highlighted {
	color 		: var(--qa-brand) ;
	background 	: var(--qa-tint) ;
}

.qa-app .extensionDatapackFilterInputWrap .select2-results__option--selectable.select2-results__option--selected {
	font-weight : 600 ;
	color 		: var(--qa-navy) ;
	background 	: #ffffff ;
}

/* ---------- cart summary and its pop-out list ---------- */

.qa-app .cartSummaryWrap {
	border 			: 1px solid var(--qa-line) ;		/* was near-black */
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	box-shadow 		: var(--qa-card-shadow) ;
}

.qa-app .cartSummaryFirstRow .cartSummaryItem:first-child {
	color 			: var(--qa-navy) ;
	font-weight 	: 600 ;
	letter-spacing 	: .08em ;
}

.qa-app .cartSummaryItemLabel {
	color : var(--qa-muted) ;
}

.qa-app .cartSummaryItemValue {
	color : var(--qa-ink) ;
}

.qa-app .cartDetailWrap {
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	box-shadow 		: 0 8px 24px rgba(0 , 0 , 0 , .14) ;
}

.qa-app hr.cartDetailComponent {
	border-top-color : var(--qa-line) ;
}

.qa-app li.cartDetailLine {
	border-radius : var(--qa-r) ;
}

.qa-app li.cartDetailLine:hover {
	background : var(--qa-tint) ;
}

/* the × remove button on each cart line */
.qa-app .btnCartItem {
	color 			: var(--qa-muted) ;
	line-height 	: 1 ;
	padding 		: 2px 6px ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
}

.qa-app .btnCartItem:hover {
	color 			: var(--qa-brand) ;
	border-color 	: var(--qa-brand) ;
}

/*
 * frozen header (ExtensionDatapacks.php #extensionDatapackStickyHeader) : the
 * filter box , summary and "N variables selected" stay pinned under the fixed
 * top menu while the pack cards scroll beneath , until the end of the packs card .
 * white so the cards disappear under it , hairline and shadow to separate it .
 * --qa-nav-h is the menu's height where a page measures it ; 64px otherwise
 */
.qa-app #extensionDatapackStickyHeader {
	position 		: sticky ;
	top 			: var(--qa-nav-h , 64px) ;
	z-index 		: 5 ;						/* over the pack cards (position : relative) */
	padding-top 	: .75rem ;
	background 		: #ffffff ;
	border-bottom 	: 1px solid var(--qa-line) ;		/* a plain hairline , no shadow */

	/*
	 * edge to edge : the card (.row.px-3) insets its contents by 1rem each side ,
	 * so the header reaches out over that padding and pads its contents back in
	 */
	flex 			: 0 0 calc(100% + 2rem) ;
	max-width 		: calc(100% + 2rem) ;
	margin-inline 	: -1rem ;
	padding-inline 	: 1rem !important ;					/* bootstrap .px-0 is !important */
}

/* clear space between the header's bottom line and the first row of pack cards */
.qa-app #extensionDatapackWrap {
	padding-top : 1.75rem ;
}

/* the variables count : now under the filter / summary row , no offset nudge */
.qa-app #extensionDatapackStickyHeader #selectedVariablesInfo {
	left 		: 0 ;
	bottom 		: 0 ;
	font-weight : 600 ;
}

/* ======================================================================
 * cost review (Cost.php , CouponCode.php , DirectDebitPayment.php ,
 * PaypalPayment.php , JobSubmissionInfoOnPayment.php) — shown under the
 * datapacks , or on its own (CostReview.php) for segments-only jobs .
 * the diagnostics table look : hairline rows , rounded edge , a stone total
 * row with a navy rule . was grey cells , blue labels and a blue total bar
 *
 * selectors carry #tableThree so they outrank file-upload.css /
 * extension-datapack.css , which use it too
 * ====================================================================== */

.qa-app #costTableWrap > p {
	color : var(--qa-muted) ;
}

/*
 * "… returning to the top of the page." (JobType.php , .pageTopNavigation) :
 * a light brick red (the home page's second red , #bf4f44) , was link blue ;
 * the full brick on hover
 */
.qa-app #costTableWrap .pageTopNavigation {
	color 		: #bf4f44 ;
	transition 	: color .15s ease ;
}

.qa-app #costTableWrap .pageTopNavigation:hover {
	color : var(--qa-brand-hover) ;
}

.qa-app #tableThree {
	border-collapse : separate ;
	border-spacing 	: 0 ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	overflow 		: hidden ;
}

.qa-app #tableThree tbody th ,
.qa-app #tableThree tbody td {
	color 				: var(--qa-ink) ;
	font-weight 		: 400 ;
	background 			: #ffffff ;
	border 				: 0 ;
	border-top 			: 1px solid var(--qa-line) ;
	vertical-align 		: middle ;
}

.qa-app #tableThree tbody tr:first-child th ,
.qa-app #tableThree tbody tr:first-child td {
	border-top : 0 ;
}

/* the record count and pack count lines : small navy caps on cream , was blue on white */
.qa-app #tableThree tbody th.costTableNonCurrencyRow {
	color 			: var(--qa-navy) ;
	font-size 		: .8rem ;
	font-weight 	: 600 ;
	letter-spacing 	: .04em ;
	background 		: var(--qa-tint) ;
	padding-left 	: .75rem ;
}

/* sub total and GST labels stay right-aligned and bold , in navy */
.qa-app #tableThree .subTotal ,
.qa-app #tableThree .gstLabel ,
.qa-app #tableThree #calculatedPrice ,
.qa-app #tableThree #gst {
	color 		: var(--qa-navy) ;
	font-weight : 600 ;
}

/* discounts : the job history "complete" sage green on mint (was bright green) */
.qa-app #tableThree #discountedCostSentence1 ,
.qa-app #tableThree #discountedCost1 ,
.qa-app #tableThree #agentdiscountedCostSentence1 ,
.qa-app #tableThree #agentdiscountedCost1 {
	color 		: var(--qa-success) ;
	font-weight : 600 ;
	background 	: var(--qa-success-soft) ;
}

/* total : stone with a navy rule above , navy bold text (was a blue bar) */
.qa-app #tableThree tfoot th.mainColor ,
.qa-app #tableThree tfoot td.mainColor {
	color 			: var(--qa-navy) ;
	font-weight 	: 700 ;
	background 		: var(--qa-stone) ;
	border 			: 0 ;
	border-top 		: 2px solid var(--qa-navy) ;
}

/* "All references to currency … AUD" (Cost.php) : a quiet note under the table , not a row in it */
.cost-currency-note {
	margin-top 	: -.5rem ;			/* the table's own bottom margin already spaces it */
	color 		: var(--qa-muted) ;
	font-size 	: .85rem ;
	font-style 	: italic ;
}

/* cost-review.js shows / hides the table by its .hidden class ; the note follows it */
#tableThree.hidden + .cost-currency-note {
	display : none ;
}

/* ---------- coupon ---------- */

.qa-app #couponCodeSentence label {
	color : var(--qa-navy) ;
}

.qa-app #coupon {
	color 			: var(--qa-ink) ;
	padding 		: 6px 10px !important ;					/* the input carries inline styles */
	border 			: 1px solid var(--qa-line) !important ;		/* was skyblue */
	border-radius 	: var(--qa-r) !important ;
	font-weight 	: 400 ;
}

/*
 * Apply / Remove on hover : fill brick with white text , keeping the rounded
 * corners . style.css has #couponCodeUi button:hover { border-radius : 0 } ,
 * whose id outranks the shared .qa-app .rda_qa_btn.transparent:hover
 */
.qa-app #couponCodeUi button:hover {
	color 				: #ffffff ;
	border-color 		: var(--qa-brand) ;
	border-radius 		: var(--qa-r) ;
	background-color 	: var(--qa-brand) ;
}

.qa-app #coupon:focus {
	border-color 	: var(--qa-brand) !important ;
	box-shadow 		: var(--qa-focus) ;
	outline 		: 0 ;
}

/* ---------- accept / cancel choice ---------- */

/* the payment block sits inside the cost card : no card-in-a-card */
.qa-app #paymentUi .row.bg-white {
	border 		: 0 ;
	box-shadow 	: none ;
}

.qa-app #paymentUi .row.bg-white > .col-12.font-weight-bold {
	color : var(--qa-navy) ;
}

/* NO / YES boxes : white cards (were skyblue outlines) */
.qa-app #paymentUi .borderColor {
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff !important ;		/* the paypal boxes set it inline */
	box-shadow 		: var(--qa-card-shadow) ;
}

/*
 * NO / YES stacked above their lines (the payment partials now give both
 * full width) . the two boxes stretch to one height and the button sits at
 * the bottom , so NO's three lines and YES's two still leave the buttons level
 */
.qa-app #frmDirectDebitPayment ,
.qa-app #paymentUi .row.bg-white.d-flex {
	align-items : stretch !important ;		/* bootstrap .align-items-center is !important */
}

.qa-app #paymentUi .borderColor {
	display 		: flex ;
	flex-direction 	: column ;
	padding-inline 	: 1.25rem ;
}

.qa-app #paymentUi .borderColor > .row {
	margin-inline : 0 ;
}

.qa-app #paymentUi .borderColor > .row > h1 ,
.qa-app #paymentUi .borderColor > .row > h2 {
	padding-inline : 0 ;
}

.qa-app #paymentUi .borderColor > .row > h1 {
	margin-bottom : .5rem ;
}

.qa-app #paymentUi .borderColor > button ,
.qa-app #paymentUi #paypal-button-container {
	margin-top 	: auto !important ;		/* bootstrap .mt-4 is !important : push to the bottom */
}

/* the button is centred ; the paypal box keeps full width so the paypal buttons size as before */
.qa-app #paymentUi .borderColor > button {
	align-self : center ;
}

/* the gap above the button that .mt-4 used to give */
.qa-app #paymentUi .borderColor > .row {
	padding-bottom : 1.5rem ;
}

.qa-app #paymentUi .borderColor h1 {
	color 		: var(--qa-muted) ;
	font-weight : 700 ;
}

.qa-app #paymentUi .borderColor h2 {
	color 		: var(--qa-ink) ;
	font-weight : 400 !important ;
	line-height : 1.5 ;
}

/* YES (the box holding Submit Job or the PayPal button) : the selected tile's brick edge */
.qa-app #paymentUi .borderColor:has(#btnDirectDebitPayment , #paypal-button-container) {
	border 		: 1.5px solid var(--qa-brand) ;
	background 	: #fbf3f1 !important ;
}

.qa-app #paymentUi .borderColor:has(#btnDirectDebitPayment , #paypal-button-container) h1 {
	color : var(--qa-brand) ;
}

/* ---------- after submitting ---------- */

.qa-app #jobSubmissionInfoWrap p {
	color 		: var(--qa-navy) ;
	font-size 	: 1rem ;
	font-weight : 600 ;
}

/* ======================================================================
 * Build a Target Area List (pages/TargetAreaListBuild.php , main.qa-talb) —
 * the same treatment as data appending / profiling : the shared .qa-app rules
 * give the cream page , cards , navy headings , buttons , tooltips and
 * pop-ups ; below are this page's own pieces . much of the page carries inline
 * styles (borders , greys , blue) , so several rules need !important
 * ====================================================================== */

/*
 * the segment heading card , the picture card and the segment boxes card read
 * as one card , like the states card : targetAreaList.css overlaps each 40px
 * onto the one above , so the picture card and boxes card drop their top
 * lines and corners and the picture card carries only the side lines
 */
.qa-talb .tribes-wrap.bg-white {
	border 			: 1px solid var(--qa-line) ;
	border-block 	: 0 ;
	border-radius 	: 0 ;
	box-shadow 		: var(--qa-card-shadow) ;
	clip-path 		: inset(0 -24px) ;			/* side shadow only : no faint shadow edge above or below */
}

.qa-talb .tribes-segment-wrap-grand-child.bg-white {
	border-top 				: 0 ;
	border-top-left-radius 	: 0 ;
	border-top-right-radius : 0 ;
	clip-path 				: inset(0 -24px -24px) ;	/* keep the side and bottom shadow , cut the top */
}

/*
 * room between the card's top line and the figures : targetAreaList.css pulls
 * this card up 40px over the heading card and sets the figures up to 40px
 * above the plot (.rockafelas top : -40px) , so heads crossed the line .
 * 64px down for the whole plot puts the tallest head ~24px under the line ;
 * the card grows by the same so the bottom spacing is unchanged
 */
.qa-talb #tribesPlaceFull .tribes-img-wrap {
	margin-top : 64px ;
}

.qa-talb .tribes-wrap {
	height : calc(550px + 64px) ;
}

/*
 * a selected figure (main.target-area-list-build.js : .changeTribesColorsWhenSelected)
 * is the black silhouette run through a filter chain ; this chain lands on the
 * brick #a9342c (solved to rgb 169 , 52 , 44) , the old one on bright red
 */
.qa-talb .changeTribesColorsWhenSelected {
	filter : invert(28%) sepia(13%) saturate(5602%) hue-rotate(330deg) brightness(97%) contrast(99%) ;
}

/* ---------- segment and state chips (selection : .lightRedBackground , as the datapack cards) ---------- */

.qa-talb .tribesSelectionMain ,
.qa-talb .stateSelectionMain ,
.qa-talb #selectNational {
	color 			: var(--qa-muted) ;
	border 			: 1.5px solid var(--qa-line) ;		/* was a 2px blue outline */
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	transition 		: border-color .15s ease , background-color .15s ease , color .15s ease ;
}

.qa-talb .tribesSelectionMain:hover ,
.qa-talb .stateSelectionMain:hover ,
.qa-talb #selectNational:hover {
	color 			: var(--qa-brand) ;
	border-color 	: rgba(169 , 52 , 44 , .55) ;
}

/* chosen : brick edge on a faint brick wash , navy name (was pink) */
.qa-talb .tribesSelectionMain.lightRedBackground ,
.qa-talb .stateSelectionMain.lightRedBackground ,
.qa-talb #selectNational.lightRedBackground {
	color 			: var(--qa-navy) ;
	border-color 	: var(--qa-brand) ;
	background 		: #fbf3f1 ;
}

/* the segment name inside its chip (.tribesSelection.greyColor) follows the chip */
.qa-talb .tribesSelectionMain .tribesSelection {
	color : inherit ;
}

/* the chip tick boxes : brick , were the old red */
.qa-talb .removeSelectedCountry ,
.qa-talb .addSelectedCountry ,
.qa-talb .SelectReachInBuildListTable ,
.qa-talb .SelectReachInBuildListTable1 {
	color : var(--qa-brand) ;
}

/* "Confirm your selection" : the Tribes and State(s) boxes , cream panels (were 2px blue inline) */
.qa-talb .col-12.px-2.py-2[style*='#306AAA'] {
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) !important ;
	border-radius 	: var(--qa-r) ;
	background 		: var(--qa-tint) ;
}

.qa-talb .col-12.px-2.py-2[style*='#306AAA'] > .font-weight-bold {
	color : var(--qa-navy) ;
}

/* ---------- decile table (#tableOne.decile-container) ---------- */

.qa-talb #tableOne.decile-container {
	border-collapse : separate ;
	border-spacing 	: 0 ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	overflow 		: hidden ;
}

/* header : stone , navy , navy rule — every cell had white text , white borders and SELECT DECILE a red fill inline */
.qa-talb #tableOne.decile-container thead th {
	color 				: var(--qa-navy) !important ;
	font-weight 		: 600 !important ;
	background 			: var(--qa-stone) !important ;
	border 				: 0 !important ;
	border-bottom 		: 2px solid var(--qa-navy) !important ;
	vertical-align 		: middle ;
}

/* "Decile" centred like the other headers : file-upload.css left-aligns #tableOne's first header (meant for Match Status) */
.qa-talb #tableOne.decile-container thead th:first-child {
	text-align : center ;
}

.qa-talb #tableOne.decile-container tbody td {
	color 				: var(--qa-ink) ;
	background 			: #ffffff ;
	border 				: 0 !important ;
	border-top 			: 1px solid var(--qa-line) !important ;
	vertical-align 		: middle ;
}

.qa-talb #tableOne.decile-container tbody tr:first-child td {
	border-top : 0 !important ;
}

/* the deciles taken in (main.target-area-list-build.js swaps in .tableColorChange2) : the brick wash */
.qa-talb #tableOne.decile-container tbody td.tableColorChange2 {
	background : #fbf3f1 ;
}

/* decile numbers (inline red) and the chosen decile's cumulative figures (.redFont) : brick */
.qa-talb #tableOne.decile-container tbody td[style*='color: red'] ,
.qa-talb #tableOne.decile-container tbody td.redFont {
	color : var(--qa-brand) !important ;
}

/* ---------- cost table (#tableThree here : every cell is styled inline) ---------- */

.qa-talb #tableThree {
	border-collapse : separate ;
	border-spacing 	: 0 ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	overflow 		: hidden ;
}

.qa-talb #tableThree tbody th ,
.qa-talb #tableThree tbody td {
	color 			: var(--qa-ink) !important ;
	font-weight 	: 400 !important ;
	background 		: #ffffff !important ;
	border 			: 0 !important ;
	border-top 		: 1px solid var(--qa-line) !important ;
	vertical-align 	: middle ;
}

.qa-talb #tableThree tbody tr:first-child th ,
.qa-talb #tableThree tbody tr:first-child td {
	border-top : 0 !important ;
}

/* CUMULATIVE TARGET REACH : the summary row , navy on cream (was blue on grey) */
.qa-talb #tableThree tbody th.mainColorFont {
	color 		: var(--qa-navy) !important ;
	font-weight : 600 !important ;
	background 	: var(--qa-tint) !important ;
}

/* GST : bold , navy */
.qa-talb #tableThree #GSTrow th ,
.qa-talb #tableThree #gstCostTable {
	color 		: var(--qa-navy) !important ;
	font-weight : 600 !important ;
}

/* discounts : the "complete" sage green on mint (was bright green) */
.qa-talb #tableThree #discountedTableRow1 th ,
.qa-talb #tableThree #discountedTableRow1 td ,
.qa-talb #tableThree #agentdiscountedTableRow1 th ,
.qa-talb #tableThree #agentdiscountedTableRow1 td {
	color 		: var(--qa-success) !important ;
	font-weight : 600 !important ;
	background 	: var(--qa-success-soft) !important ;
}

/* total : stone , navy bold , navy rule above (was a blue bar) */
.qa-talb #tableThree tbody th.mainColor ,
.qa-talb #tableThree tbody td.mainColor {
	color 		: var(--qa-navy) !important ;
	font-weight : 700 !important ;
	background 	: var(--qa-stone) !important ;
	border-top 	: 2px solid var(--qa-navy) !important ;
}

/* ---------- after paying ---------- */

/* "Your file name is:" label */
.qa-talb .tableToDownloadContainerFilename .font-weight-bold.mr-2 {
	color : var(--qa-navy) ;
}

/* ======================================================================
 * account forms (every page , logged in or out) : Login , MFA code , Register ,
 * Update Details , Change Password , Forgotten Password (both steps) , Help Desk ,
 * Message Us . bootstrap modals in HeaderPage.php , UserRegistration.php ,
 * UserDetailsUpdate.php , MessageUs . the job history window's look (stone
 * title bar , rounded white card) with the home page's form fields and the
 * theme buttons ; was square , blue labels , blue buttons with a skyblue edge .
 *
 * :is (#ids) keeps it to these forms (not job history or the image lightbox)
 * and gives every rule id strength over customFile.css / base.css
 * ====================================================================== */

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-content {
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) !important ;			/* customFile.css forces 0 with !important */
	box-shadow 		: 0 12px 40px rgba(0 , 0 , 0 , .18) ;
	overflow 		: hidden ;
}

/* title bar : the internal pages' cream background (--qa-tint) , navy title */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-header {
	background 		: var(--qa-tint) ;
	border-bottom 	: 1px solid var(--qa-line) ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-title {
	color 		: var(--qa-navy) ;
	font-weight : 600 !important ;						/* bootstrap .font-weight-bold is !important */
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-header .close {
	color 		: var(--qa-muted) ;
	opacity 	: 1 ;
	text-shadow : none ;
	transition 	: color .15s ease ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-header .close:hover {
	color : var(--qa-brand) ;
}

/* body text and the intro lines ("Register here for free …" , "Need some assistance …") */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-body {
	color : var(--qa-muted) ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-body .font-weight-bold {
	color : var(--qa-navy) ;
}

/* field labels : navy semi-bold (were deep blue bold) ; the required * in brick */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modallable {
	color 		: var(--qa-navy) ;
	font-weight : 600 ;
	font-size 	: .85rem ;
	margin-bottom : 4px ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .required-input::after {
	color : var(--qa-brand) ;
}

/* fields : the home page form — hairline , rounded , brick edge and glow when in use (was bootstrap blue) */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .form-control {
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	transition 		: border-color .15s ease , box-shadow .15s ease ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .form-control:focus {
	border-color 	: var(--qa-brand) ;
	box-shadow 		: var(--qa-focus) ;
	outline 		: 0 ;
}

/* show-password eye : slate , brick on hover */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .togglePwdVisibilityTrigger {
	color 		: var(--qa-muted) ;
	transition 	: color .15s ease ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .togglePwdVisibilityTrigger:hover {
	color : var(--qa-brand) ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .text-danger {
	color : var(--qa-error) !important ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modal-footer {
	border-top : 1px solid var(--qa-line) ;
}

/* submit buttons (Login , Register , Save , Send …) : brick , rounded (were blue with a skyblue edge) */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modalButton {
	padding 			: 8px 22px ;
	font-family 		: var(--qa-font-display) ;
	font-size 			: .9rem ;
	font-weight 		: 600 ;
	color 				: #ffffff ;
	border 				: 1.5px solid var(--qa-brand) ;
	border-radius 		: var(--qa-r) ;
	background 			: var(--qa-brand) ;
	transition 			: background-color .15s ease , border-color .15s ease ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .modalButton:hover {
	font-size 		: .9rem ;							/* customFile .modalButton:hover resizes it */
	color 			: #ffffff ;
	border-color 	: var(--qa-brand-hover) ;
	background 		: var(--qa-brand-hover) ;
}

/* links (Forgotten password? , Return to login , Login , Terms , Privacy Policy) : brick , were deep blue */
:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .mainColorFont {
	color 		: var(--qa-brand) !important ;			/* customFile .mainColorFont is !important */
	transition 	: color .15s ease ;
}

:is(#modalLoginForm , #modalMfa , #modalRegisterForm , #modalUpdateDetailsForm ,
	#modalResetPasswordForm , #ResetPasswordModal , #modalEnterNewPassword ,
	#HelpDeskModal , #MessageUsPublicPage) .mainColorFont:hover {
	color : var(--qa-brand-hover) !important ;
}

/* the line around "Already have an account? Login" */
#modalRegisterForm #alreadyHaveAccount {
	color : var(--qa-muted) ;
}

/* register consent tick boxes : the Let's get started boxes — white , rounded , brick tick (were grey squares , old red when ticked) */
#modalRegisterForm .agreement-wrap input[type=checkbox] {
	background-color 	: #ffffff ;
	border 				: 1px solid #cfc8bc ;
	border-radius 		: 3px ;
}

#modalRegisterForm .agreement-wrap input[type=checkbox]:checked {
	border-color 	: var(--qa-brand) ;
	background 		: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23a9342c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat ;
}

#modalRegisterForm .agreement-wrap input[type=checkbox]:focus-visible {
	outline 	: 0 ;
	box-shadow 	: var(--qa-focus) ;
}

/*
 * Register : the longest form — tightened so it fits a laptop screen without
 * scrolling to the Register button . smaller window margins , shorter fields ,
 * closer field spacing , a tighter title bar and note
 */
#modalRegisterForm .modal-dialog {
	margin-block : .75rem ;
}

#modalRegisterForm .modal-header {
	padding-block : .7rem ;
}

#modalRegisterForm .modal-body {
	padding-block : .75rem .25rem ;
}

#modalRegisterForm .modal-body .md-form.mb-3 ,
#modalRegisterForm .modal-body .md-form.mb-1 {
	margin-bottom : .55rem !important ;		/* bootstrap .mb-3 / .mb-1 are !important */
}

#modalRegisterForm .modal-body .md-form.mb-3 > p {
	margin-bottom : 0 ;
}

#modalRegisterForm .modallable {
	margin-bottom : 2px ;
}

#modalRegisterForm .form-control {
	height 	: calc(1.5em + .5rem + 2px) ;
	padding : .25rem .75rem ;
}

#modalRegisterForm .agreement-wrap.mt-3 {
	margin-top : .6rem !important ;
}

#modalRegisterForm .modal-body .mt-4 {
	margin-top : .6rem !important ;
}

#modalRegisterForm .modal-body .mt-4 > p {
	margin-bottom : 0 ;
}

#modalRegisterForm .modal-footer {
	padding-block : .6rem ;
}

/* the show-password eye is placed against the old 38px field ; re-centre it on the shorter one */
#modalRegisterForm .togglePwdVisibilityTrigger {
	bottom : 25px ;
}

/* ======================================================================
 * Pricing (pages/Pricing.php , .qa-pricing) and Resources (pages/Resources.php ,
 * .qa-resources) — brought onto the home page's current palette . both were
 * built to mirror an earlier home : square corners , blue lead paragraphs ,
 * blush panels , the old bright red (--primary-color #ca1818 off the home
 * page) and blue-grey table bands . the tokens below swap all of that at the
 * root ; the rules after them follow home's later passes (no section
 * dividers , white / cream sections , one card shadow , display font) .
 * pricing.css / resources.css are untouched
 * ====================================================================== */

.qa-pricing ,
.qa-resources {
	--qa-brand 			: #a9342c ;			/* was var(--primary-color) = #ca1818 off the home page */
	--qa-brand-dark 	: #a9342c ;
	--qa-brand-hover 	: #8c2a24 ;
	--qa-brand-tint 	: #f7f5f1 ;			/* cream panels , were blush #f9eeec */
	--qa-blue 			: #15202b ;			/* lead paragraphs : navy , were blue #4a90c2 */
	--qa-radius 		: 4px ;				/* was 0 : square fields , chips , accordions */
	--qa-band 			: #636a6f ;			/* resources table / guide bands : the theme greys , were blue-grey */
	--qa-band-dark 		: #15202b ;
	--qa-font-display 	: 'Sofia Pro' , system-ui , -apple-system , 'Segoe UI' , Roboto , Arial , sans-serif ;
	--qa-card-shadow 	: 2px 4px 14px rgba(0 , 0 , 0 , .08) ;
}

/* one display font for headings and buttons , as home */
:is(.qa-pricing , .qa-resources) :is(h1 , h2 , h3 , h4 , .qa-btn , summary) {
	font-family : var(--qa-font-display) ;
}

/* lead paragraphs : navy at a lighter weight , as home */
:is(.qa-pricing , .qa-resources) .lead-blue ,
.qa-pricing section h2 + p ,
.qa-resources .builder h2 + p {
	color 		: var(--qa-blue) ;
	font-weight : 500 ;
}

:is(.qa-pricing , .qa-resources) a:hover {
	color : var(--qa-brand-hover) ;
}

/* buttons : primary darkens to the hover brick ; outline goes brick on hover (was a black edge) */
:is(.qa-pricing , .qa-resources) .qa-btn-primary:hover ,
:is(.qa-pricing , .qa-resources) .qa-btn-primary:focus {
	color 			: #ffffff ;
	border-color 	: var(--qa-brand-hover) ;
	background 		: var(--qa-brand-hover) ;
}

:is(.qa-pricing , .qa-resources) .qa-btn-outline:hover {
	color 			: var(--qa-brand) ;
	border-color 	: var(--qa-brand) ;
}

/* fields : rounded , brick edge and glow when in use */
:is(.qa-pricing , .qa-resources) :is(input , select , textarea):focus {
	border-color 	: var(--qa-brand) ;
	outline 		: 0 ;
	box-shadow 		: var(--qa-focus) ;
}

/*
 * sections : no divider lines ; alternate white and cream full width instead ,
 * as home . resources capped each section at 1200px with a border on top —
 * its .qa-wrap already holds the content width , so the section can go full
 * bleed for the band
 */
:is(.qa-pricing , .qa-resources) section::before {
	content : none ;
}

.qa-resources section {
	max-width 	: none ;
	border-top 	: 0 ;
}

:is(.qa-pricing , .qa-resources) section:nth-of-type(even) {
	background : var(--qa-tint) ;
}

/* ---------- pricing ---------- */

.qa-pricing .qa-pr-wrap {
	box-shadow : var(--qa-card-shadow) ;
}

/*
 * the gap between the lead paragraphs and "Rates" : with the section divider
 * gone both are white , so the lead's 34px bottom padding + the section's
 * 56px top padding + the h2's top margin stacked into ~110px of blank space .
 * the lead's padding alone now sets the gap
 */
.qa-pricing .qa-pr-rates {
	padding-top : 0 ;
}

.qa-pricing .qa-pr-rates h2 {
	margin-top : 0 ;
}

/* rates table header rule : navy , was dark grey */
.qa-pricing .qa-pr th {
	color 			: var(--qa-navy) ;
	border-bottom 	: 2px solid var(--qa-navy) ;
}

/* "special pricing" sits on a cream section : a white card with the brick left edge , as home's feature box */
.qa-pricing .qa-special {
	background 	: #ffffff ;
	border 		: 1px solid var(--qa-line) ;
	border-left : 4px solid var(--qa-brand) ;
	box-shadow 	: var(--qa-card-shadow) ;
}

/* ---------- resources ---------- */

.qa-resources .panel ,
.qa-resources .guide {
	box-shadow : var(--qa-card-shadow) ;
}

/* step numbers and the guide's pills : rounded , were square */
.qa-resources .panel .lab .n ,
.qa-resources .g-sec h3 .pill {
	border-radius : 3px ;
}

/* table header band and zebra : stone and cream , were light blue */
.qa-resources thead {
	background : var(--qa-stone) ;
}

.qa-resources tbody tr:nth-of-type(even) {
	background : var(--qa-tint) ;
}

.qa-resources .reftab th {
	color 			: var(--qa-navy) ;
	border-bottom 	: 2px solid var(--qa-navy) ;
}

/* notes and the field-list card : cream with the warm hairline , were blush */
.qa-resources .note ,
.qa-resources .tal .talcard {
	border-color : #e4dfd6 ;
}

/* the field-list card sits on a cream section : white so it still reads as a card */
.qa-resources section:nth-of-type(even) .tal .talcard {
	background : #ffffff ;
	box-shadow : var(--qa-card-shadow) ;
}

/*
 * rates table , livened up with the home page pricing cards (.qa-plan) : the
 * card's brick left edge , the file graphics over the two price columns , the
 * "FROM" eyebrow style for the per-record / per-report notes and the big
 * brick base prices
 */
.qa-pricing .qa-pr-wrap {
	border-left : 4px solid var(--qa-brand) ;
}

/*
 * header : navy display titles , the card graphic to the LEFT of each price
 * title rather than above it — stacked , the graphics made the header row
 * ~150px tall and left a block of white space over "Content" . the table also
 * starts flush with the card's own padding (pricing.css adds 22px on top)
 */
.qa-pricing .qa-pr {
	margin-top : 0 ;
}

.qa-pricing .qa-pr thead th {
	padding-top 	: 4px ;
	font-family 	: var(--qa-font-display) ;
	font-size 		: 1.05rem ;
	line-height 	: 1.25 ;
	color 			: var(--qa-navy) ;
	vertical-align 	: middle ;
}

.qa-pricing .qa-pr-art {
	float 			: left ;
	margin-right 	: 12px ;
}

.qa-pricing .qa-pr-art svg {
	width 	: 48px ;
	height 	: 37px ;
}

.qa-pricing .qa-pr-art svg {
	display : block ;
	filter 	: drop-shadow(2px 4px 8px rgba(0 , 0 , 0 , .08)) ;
}

/* "cost per record (+GST)" : the card's small-caps eyebrow , beside the graphic under the title */
.qa-pricing .qa-pr thead th .qa-micro {
	margin-top 		: 2px ;
	line-height 	: 1.35 ;
	white-space 	: nowrap ;
	font-family 	: inherit ;
	font-size 		: .72rem ;
	font-weight 	: 600 ;
	letter-spacing 	: .12em ;
	text-transform 	: uppercase ;
	color 			: var(--qa-muted) ;
}

/*
 * every content row reads the same — consumer segments and the three Human
 * Insights bands (Pricing.php : no .group rows , no separate label row) .
 * no per-row colour key down the left edge (removed : read as noise)
 */

/* prices : a touch larger , as figures (no .group rows remain , so :not(.group) is every row) */
.qa-pricing .qa-pr tbody tr:not(.group) td.amt {
	font-family : var(--qa-font-display) ;
	font-size 	: 1.05rem ;
}

/* white rows ; a hover lifts the row you're reading */
.qa-pricing .qa-pr tbody tr:not(.group) {
	transition : background-color .15s ease ;
}

.qa-pricing .qa-pr tbody tr:not(.group):hover {
	background : #fbf3f1 ;
}

/* the ticks under the table : set off by a hairline and in navy , as home's plan footer */
.qa-pricing .qa-assure {
	margin-top 		: 14px ;
	padding-top 	: 14px ;
	border-top 		: 1px solid var(--qa-line) ;
	color 			: var(--qa-navy) ;
}

/*
 * Coding Guide Builder : Country and Geography Level (Resources.php #country ,
 * #level) — the uploader format select's treatment : hairline , rounded , and
 * the open list as the user menu's white card (cream hover , brick text) ,
 * its top-right corner on the box's bottom-right . customisable select only
 * (chrome / edge 135+) ; elsewhere the native list , with the same closed box .
 * native change events still fire , so main.resources.js is unaffected
 */
.qa-resources .panel select {
	color 			: var(--qa-ink) ;
	border 			: 1px solid var(--qa-line) ;
	border-radius 	: var(--qa-r) ;
	background 		: #ffffff ;
	cursor 			: pointer ;
	transition 		: border-color .15s ease , box-shadow .15s ease ;
}

.qa-resources .panel select:hover {
	border-color : #cfc8bc ;
}

@supports (appearance : base-select) {
	.qa-resources .panel select ,
	.qa-resources .panel select::picker(select) {
		appearance : base-select ;
	}

	.qa-resources .panel select::picker-icon {
		color 		: var(--qa-muted) ;
		transition 	: rotate .15s ease ;
	}

	.qa-resources .panel select:open::picker-icon {
		rotate : 180deg ;
	}

	.qa-resources .panel select::picker(select) {
		inset 					: auto ;
		margin 					: 0 ;
		position-area 			: bottom span-left ;
		position-try-fallbacks 	: none ;					/* always open downward , never flip above the box */
		min-width 				: anchor-size(width) ;		/* at least as wide as the box */
		padding 				: 6px 0 ;
		border 					: 1px solid var(--qa-line) ;
		border-radius 			: var(--qa-r) ;
		background 				: #ffffff ;
		box-shadow 				: var(--qa-card-shadow) ;
	}

	.qa-resources .panel select option {
		padding 	: 6px 16px ;
		color 		: var(--qa-ink) ;
		transition 	: background-color .15s ease , color .15s ease ;
	}

	.qa-resources .panel select option::checkmark {
		display : none ;
	}

	.qa-resources .panel select option:checked {
		font-weight : 600 ;
	}

	.qa-resources .panel select option:hover ,
	.qa-resources .panel select option:focus-visible {
		color 		: var(--qa-brand) ;
		background 	: var(--qa-tint) ;
		outline 	: 0 ;
	}
}
