/* =============================================================================
   JOBS PORTAL
   Gives the public HRMS job pages (/jobs, a job opening, /job_application) the
   portal shell for every visitor, logged in or not. portal.css only styles
   logged-in users, so these rules repeat its shell for the job routes.
   ============================================================================= */

/* ============================================================================
   SHELL
   ============================================================================ */
body[data-path^="jobs"],
body[data-path^="job_application"],
body[data-path^="jobs"] .page-container,
body[data-path^="job_application"] .page-container {
	background-color: var(--jds-portal-black) !important;
	color: var(--jds-portal-gray);
}

body[data-path^="jobs"] .navbar,
body[data-path^="job_application"] .navbar {
	background-color: #e00000 !important;
	border-bottom: none !important;
}

body[data-path^="jobs"] .navbar .container,
body[data-path^="job_application"] .navbar .container {
	background-color: var(--jds-portal-black) !important;
}

/* The Website Settings logo file is missing, so show the brand logo instead. */
body[data-path^="jobs"] .navbar-brand img,
body[data-path^="job_application"] .navbar-brand img {
	content: var(--brand-logo-url) !important;
	height: 45px !important;
	min-width: 0;
	max-height: 45px !important;
}

body[data-path^="jobs"] .navbar a,
body[data-path^="jobs"] .navbar .nav-link,
body[data-path^="job_application"] .navbar a,
body[data-path^="job_application"] .navbar .nav-link {
	color: var(--jds-portal-light-gray) !important;
}

body[data-path^="jobs"] .navbar a:hover,
body[data-path^="job_application"] .navbar a:hover {
	color: var(--jds-portal-white) !important;
}

/* The menu button opens the Back to Website link on phones, so show it in light gray.
   Its icon draws with --icon-stroke, which the website styles set to a dark gray. */
body[data-path^="jobs"] .navbar-toggler,
body[data-path^="job_application"] .navbar-toggler {
	--icon-stroke: var(--jds-portal-light-gray);
	border-color: transparent !important;
}

body[data-path^="jobs"] .web-footer,
body[data-path^="job_application"] .web-footer {
	display: none !important;
}

/* Breadcrumbs and page title */
body[data-path^="jobs"] .breadcrumb-container a,
body[data-path^="job_application"] .breadcrumb-container a {
	color: var(--jds-portal-orange) !important;
}

body[data-path^="jobs"] .breadcrumb-container,
body[data-path^="jobs"] .breadcrumb-container .disabled a {
	color: var(--jds-portal-gray) !important;
}

/* ============================================================================
   JOB BOARD (www/jobs/index.html)
   ============================================================================ */
/* body is a flex container in the theme, so give the page the full width. */
body[data-path="jobs"] .jb-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
}

.jb-page {
	padding-top: 72px;
	padding-bottom: 64px;
	font-family: "Inter", sans-serif;
}

.jb-hero {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}

body[data-path="jobs"] .jb-hero h1 {
	margin: 0;
	font-size: 64px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -1.5px;
	color: var(--jds-portal-white) !important;
}

.jb-hero p {
	max-width: 620px;
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: #9ca3af;
}

.jb-search-bar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 40px;
	padding: 12px;
	border: 1px solid #2e3345;
	border-radius: 14px;
	background: #242838;
}

.jb-search-row {
	display: flex;
	gap: 8px;
}

.jb-search {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 8px;
	background: var(--jds-portal-white);
	color: #6c757d;
	cursor: text;
}

.jb-search svg {
	flex: none;
}

body[data-path="jobs"] .jb-search input {
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	font-size: 15px;
	color: #1a1d29 !important;
}

.jb-search input::placeholder {
	color: #6c757d;
}

.jb-filter-toggle {
	display: none;
}

.jb-filter-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

body[data-path="jobs"] .jb-filter-row select {
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 11px 38px 11px 14px;
	border: none !important;
	border-radius: 8px;
	appearance: none;
	-webkit-appearance: none;
	/* Lucide chevron-down in the muted colour */
	background: var(--jds-portal-white)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
		no-repeat right 14px center !important;
	font-size: 13px;
	line-height: normal;
	color: #1a1d29 !important;
	cursor: pointer;
}

.jb-find {
	flex: none;
	padding: 11px 22px;
	border: none;
	border-radius: 8px;
	background: var(--jds-portal-orange);
	font-size: 13px;
	font-weight: 600;
	line-height: normal;
	color: var(--jds-portal-white);
}

.jb-find:hover {
	background: var(--jds-portal-orange-dark);
}

.jb-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0 16px;
}

.jb-count {
	margin: 0;
	font-size: 14px;
	color: #9ca3af;
}

.jb-sort {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: none;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--jds-portal-white);
}

.jb-board {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 24px;
	align-items: start;
}

.jb-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.jb-row {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: 22px 24px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: var(--jds-portal-white);
	font-family: "Inter", sans-serif;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* A 2px red outline without shifting the row's content. */
.jb-row.selected {
	border-color: var(--jds-portal-orange);
	box-shadow: 0 0 0 1px var(--jds-portal-orange);
}

.jb-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: #f3f4f6;
}

.jb-detail .jb-icon {
	width: 44px;
	height: 44px;
}

.jb-row-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jb-row-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.jb-row-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 17px;
	font-weight: 600;
	color: #1a1d29;
}

.jb-badge {
	flex: none;
	padding: 3px 8px;
	border-radius: 20px;
	background: #f3f4f6;
	font-size: 11px;
	font-weight: 600;
	line-height: normal;
	color: #6c757d;
}

.jb-badge-new {
	background: #fbe7e6;
	color: var(--jds-portal-orange);
}

.jb-row-meta {
	white-space: pre-wrap;
	font-size: 14px;
	color: #6c757d;
}

.jb-row-posted {
	flex: none;
	font-size: 13px;
	color: #6c757d;
}

.jb-detail {
	display: none;
	position: sticky;
	top: 24px;
	flex-direction: column;
	gap: 20px;
	width: 400px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: var(--jds-portal-white);
	box-shadow: 0 12px 32px rgba(22, 24, 31, 0.1);
	color: #1a1d29;
	font-family: "Inter", sans-serif;
}

.jb-detail.open {
	display: flex;
}

.jb-overlay,
.jb-chips,
.jb-row-compact {
	display: none;
}

.jb-detail-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #6c757d;
}

.jb-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #f3f4f6;
	color: #1a1d29;
}

.jb-detail-titles {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.jb-detail-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

body[data-path="jobs"] .jb-detail h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #1a1d29 !important;
}

.jb-detail-head p {
	margin: 0;
	font-size: 13px;
	color: #6c757d;
}

.jb-facts {
	padding: 4px 16px;
	border-radius: 10px;
	background: #f8f9fa;
}

.jb-fact {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	font-size: 13px;
	color: #6c757d;
}

.jb-fact svg {
	flex: none;
}

.jb-fact-label {
	flex: 1;
}

.jb-fact-value {
	font-weight: 600;
	color: #1a1d29;
	text-align: right;
}

.jb-summary {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6c757d;
}

.jb-actions {
	display: flex;
	gap: 10px;
}

body[data-path="jobs"] a.jb-btn {
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	color: #1a1d29 !important;
}

body[data-path="jobs"] a.jb-btn:hover {
	text-decoration: none;
	background: #f8f9fa;
}

body[data-path="jobs"] a.jb-btn-primary {
	flex: 1;
	padding: 12px 0;
	border-color: var(--jds-portal-orange);
	background: var(--jds-portal-orange);
	color: var(--jds-portal-white) !important;
}

body[data-path="jobs"] a.jb-btn-primary:hover {
	border-color: var(--jds-portal-orange-dark);
	background: var(--jds-portal-orange-dark);
}

.jb-pages {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

body[data-path="jobs"] .jb-pages a {
	min-width: 36px;
	padding: 6px 10px;
	border-radius: 8px;
	text-align: center;
	color: #9ca3af;
}

body[data-path="jobs"] .jb-pages a.current {
	background: var(--jds-portal-white);
	color: #1a1d29;
}

.jb-empty {
	padding: 48px;
	border-radius: 12px;
	background: #242838;
	text-align: center;
	color: #9ca3af;
}

/* Phones and tablets: the list fills the width and the details open as a bottom sheet. */
@media (max-width: 991px) {
	.jb-board {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Rows: title on top, then department, experience, badge and age on one line. */
	.jb-row {
		align-items: flex-start;
		gap: 14px;
		padding: 16px;
	}

	.jb-row .jb-icon {
		width: 40px;
		height: 40px;
		border-radius: 9px;
	}

	.jb-row .jb-icon svg {
		width: 20px;
		height: 20px;
	}

	.jb-row-main {
		flex: 1 1 0;
	}

	.jb-row-title {
		white-space: normal;
		font-size: 15px;
		line-height: 1.3;
	}

	.jb-row-head .jb-badge,
	.jb-row-meta,
	.jb-row-posted {
		display: none;
	}

	.jb-row-compact {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 12px;
		color: #6c757d;
	}

	.jb-row-compact-meta {
		flex: 1;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.jb-row-compact .jb-badge {
		padding: 2px 7px;
	}

	.jb-chips {
		display: flex;
		gap: 8px;
		margin: 0 -20px 16px;
		padding: 0 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	body[data-path="jobs"] a.jb-chip {
		flex: none;
		padding: 7px 12px;
		border: 1px solid #2e3345;
		border-radius: 20px;
		background: #242838;
		font-size: 12px;
		font-weight: 600;
		color: var(--jds-portal-white) !important;
		white-space: nowrap;
	}

	body[data-path="jobs"] a.jb-chip.active {
		border-color: var(--jds-portal-white);
		background: var(--jds-portal-white);
		color: #1a1d29 !important;
	}

	body[data-path="jobs"] a.jb-chip:hover {
		text-decoration: none;
	}

	.jb-list {
		gap: 10px;
	}

	.jb-list-header {
		display: none;
	}

	/* The sheet has no separate close area, so it keeps the button. */
	.jb-close {
		display: inline-flex;
	}

	/* Bottom sheet */
	body.jb-sheet-open .jb-detail.open {
		gap: 18px;
		padding: 20px 20px 28px;
		border-radius: 20px 20px 0 0;
		box-shadow: none;
	}

	.jb-detail-head {
		flex-direction: row;
		align-items: center;
	}

	.jb-detail-titles {
		flex: 1;
		min-width: 0;
		gap: 3px;
	}

	body[data-path="jobs"] .jb-detail h2 {
		font-size: 17px;
	}

	.jb-detail-head p {
		font-size: 12px;
	}

	.jb-detail,
	.jb-detail.open {
		display: none;
	}

	body.jb-sheet-open .jb-detail.open {
		display: flex;
		width: auto;
		border: none;
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1031;
		max-height: 85vh;
		overflow-y: auto;
		border-radius: 16px 16px 0 0;
	}

	body.jb-sheet-open .jb-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1030;
		background: rgba(11, 13, 20, 0.7);
	}

	body.jb-sheet-open {
		overflow: hidden;
	}

	body[data-path="jobs"] .jb-container {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.jb-page {
		padding-top: 32px;
	}

	.jb-hero {
		gap: 14px;
		margin-bottom: 14px;
	}

	body[data-path="jobs"] .jb-hero h1 {
		font-size: 36px;
		line-height: 1.08;
		letter-spacing: -0.8px;
	}

	.jb-hero p {
		display: none;
	}

	.jb-search-bar {
		gap: 8px;
		margin-bottom: 20px;
		padding: 8px;
		border-radius: 12px;
	}

	.jb-search {
		gap: 8px;
		padding: 12px;
	}

	.jb-search svg {
		width: 16px;
		height: 16px;
	}

	body[data-path="jobs"] .jb-search input {
		font-size: 14px;
	}

	.jb-filter-toggle {
		flex: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		border: none;
		border-radius: 8px;
		background: var(--jds-portal-orange);
		color: var(--jds-portal-white);
	}

	/* On phones the filters fold away behind the filter button. */
	.jb-filter-row {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.jb-search-bar.filters-open .jb-filter-row {
		display: flex;
	}
}

/* ============================================================================
   JOB DETAIL (templates/generators/job_opening.html)
   ============================================================================ */
.job-detail {
	padding: 24px 0 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.job-card {
	background: var(--jds-portal-white);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	padding: 28px 32px;
}

.job-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-top: 4px solid var(--jds-portal-orange);
}

.job-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.job-status-open {
	background: #dcfce7;
	color: #15803d;
}

.job-status-closed {
	background: #f3f4f6;
	color: #6b7280;
}

body[data-path^="jobs"] .job-detail h1.job-title {
	margin: 12px 0 6px;
	font-size: 2rem;
	font-weight: 700 !important;
	color: #1a1a2e !important;
}

.job-subtitle {
	font-size: 0.95rem;
	color: #6b7280;
}

.job-company {
	font-weight: 600;
	color: #1a1a2e;
}

body[data-path^="jobs"] .job-detail a.job-apply {
	background-color: var(--jds-portal-orange) !important;
	border-color: var(--jds-portal-orange) !important;
	color: var(--jds-portal-white) !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	border-radius: 8px !important;
	padding: 10px 28px !important;
	white-space: nowrap;
}

body[data-path^="jobs"] .job-detail a.job-apply:hover {
	background-color: var(--jds-portal-orange-dark) !important;
	border-color: var(--jds-portal-orange-dark) !important;
}

.job-closed-note {
	padding: 10px 20px;
	border-radius: 8px;
	background: #f3f4f6;
	color: #6b7280;
	font-weight: 600;
	white-space: nowrap;
}

.job-meta {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.job-meta:empty {
	display: none;
}

.job-meta-chip {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 3px solid var(--jds-portal-orange);
	border-radius: 10px;
	padding: 14px 16px;
}

.job-meta-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--jds-portal-gray);
}

.job-meta-value {
	margin-top: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--jds-portal-white);
}

.job-section-title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a2e;
}

.job-description-body {
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.7;
}

.job-description-body p:last-child {
	margin-bottom: 0;
}

.job-description-body strong,
.job-description-body b {
	color: #1a1a2e;
}

.job-sticky-apply {
	position: sticky;
	bottom: 0;
	padding: 24px 0 16px;
	background: linear-gradient(to bottom, transparent, var(--jds-portal-black) 40%);
}

@media (max-width: 767px) {
	.job-card {
		padding: 20px;
	}

	body[data-path^="jobs"] .job-detail h1.job-title {
		font-size: 1.5rem;
	}
}

/* ============================================================================
   JOB APPLICATION FORM (HRMS "job-application" Web Form)
   ============================================================================ */
body[data-path^="job_application"] .web-form-container {
	max-width: 760px;
	margin: 0 auto;
}

body[data-path^="job_application"] .web-form-header {
	background: var(--jds-portal-white);
	border-radius: 12px 12px 0 0;
	border-top: 4px solid var(--jds-portal-orange) !important;
	padding: 28px 32px 0;
}

body[data-path^="job_application"] .web-form-head {
	border-bottom: 1px solid #f0f0f0 !important;
	padding-bottom: 20px;
}

body[data-path^="job_application"] .web-form-title h1 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: #1a1a2e;
	white-space: normal;
}

body[data-path^="job_application"] .web-form-title {
	white-space: normal;
}

.job-application-company {
	margin-top: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #6b7280;
}

/* "Not Saved" is desk wording that means nothing to an applicant. */
body[data-path^="job_application"] .web-form-header .indicator-pill {
	display: none !important;
}

body[data-path^="job_application"] .web-form {
	background: var(--jds-portal-white);
	border: none !important;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	padding: 24px 32px 28px !important;
}

/* Email beside phone, and gender beside candidate category, above phone width. */
@media (min-width: 576px) {
	body[data-path^="job_application"] .web-form form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
	}

	body[data-path^="job_application"] .web-form form > * {
		grid-column: 1 / -1;
		max-width: none;
	}

	body[data-path^="job_application"] .web-form form > [data-fieldname="email_id"],
	body[data-path^="job_application"] .web-form form > [data-fieldname="phone_number"],
	body[data-path^="job_application"] .web-form form > [data-fieldname="custom_gender"],
	body[data-path^="job_application"] .web-form form > [data-fieldname="custom_staff_community"] {
		grid-column: auto;
	}
}

/* The heading names the job, so the raw opening ID is not needed. */
body.job-application-for-opening .frappe-control[data-fieldname="job_title"] {
	display: none;
}

/* Supporting documents: the uploaded files listed under the CV field. */
body[data-path^="job_application"] .ja-docs-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 10px 0;
}

body[data-path^="job_application"] .ja-docs-list:empty {
	display: none;
}

/* The name box, then the file it names. On phones the file wraps below the name. */
body[data-path^="job_application"] .ja-doc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	padding: 8px 12px;
	border: 1px solid var(--jds-portal-border);
	border-radius: 8px;
	background: #f9fafb;
	font-size: 0.9rem;
}

body[data-path^="job_application"] .ja-doc .ja-doc-name {
	flex: 1 1 220px;
	min-width: 0;
}

body[data-path^="job_application"] .ja-doc .ja-doc-file {
	flex: 1 1 140px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #1a1a2e !important;
}

body[data-path^="job_application"] .ja-doc-remove {
	border: none;
	background: none;
	color: #9ca3af;
	font-size: 1.2rem;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}

body[data-path^="job_application"] .ja-doc-remove:hover {
	color: #dc2626;
}

body[data-path^="job_application"] .web-form .control-label,
body[data-path^="job_application"] .web-form .section-head {
	color: #1a1a2e;
	font-weight: 600;
}

body[data-path^="job_application"] .web-form .section-head {
	font-size: 1rem;
}

body[data-path^="job_application"] .web-form .form-section {
	border-top: none !important;
}

body[data-path^="job_application"] .web-form .form-section + .form-section {
	border-top: 1px solid #f0f0f0 !important;
	margin-top: 8px;
	padding-top: 12px;
}

body[data-path^="job_application"] .web-form .form-control {
	background-color: var(--jds-portal-white) !important;
	color: #1a1a2e !important;
	border: 1px solid var(--jds-portal-border) !important;
	border-radius: 8px;
	min-height: 40px;
}

body[data-path^="job_application"] .web-form .form-control:focus {
	border-color: var(--jds-portal-orange) !important;
	box-shadow: 0 0 0 3px rgba(236, 28, 36, 0.15) !important;
}

body[data-path^="job_application"] .web-form .help-box,
body[data-path^="job_application"] .web-form .text-muted {
	color: #6b7280 !important;
}

body[data-path^="job_application"] .web-form-footer {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

body[data-path^="job_application"] .web-form-footer .btn {
	border-radius: 8px;
	padding: 8px 20px;
	font-weight: 600;
	font-size: 0.9rem;
}

body[data-path^="job_application"] .web-form-footer .submit-btn {
	background-color: var(--jds-portal-orange) !important;
	border-color: var(--jds-portal-orange) !important;
	color: var(--jds-portal-white) !important;
}

body[data-path^="job_application"] .web-form-footer .submit-btn:hover {
	background-color: var(--jds-portal-orange-dark) !important;
}

body[data-path^="job_application"] .web-form-footer .discard-btn {
	background: var(--jds-portal-white) !important;
	border: 1px solid var(--jds-portal-border) !important;
	color: #4b5563 !important;
}

/* Thank-you page after submitting */
body[data-path^="job_application"] .success-page {
	max-width: 760px;
	margin: 0 auto;
	background: var(--jds-portal-white);
	border: none !important;
	border-radius: 12px;
	border-top: 4px solid var(--jds-portal-orange) !important;
	padding: 32px;
}

body[data-path^="job_application"] .success-page a {
	color: var(--jds-portal-orange) !important;
	font-weight: 600;
}

body[data-path^="job_application"] .success-title {
	color: #1a1a2e;
}

body[data-path^="job_application"] .success-message {
	color: #4b5563;
}

@media (max-width: 767px) {
	body[data-path^="job_application"] .web-form-header {
		padding: 20px 20px 0;
	}

	body[data-path^="job_application"] .web-form {
		padding: 20px !important;
	}
}

/* No portal sidebar on the application form, so it uses the full width and centres. */
body[data-path^="job_application"] .web-sidebar,
body[data-path^="job_application"] .sidebar-column {
	display: none !important;
}

body[data-path^="job_application"] .main-column {
	flex: 0 0 100%;
	max-width: 100%;
}

/* Gender and Country suggestions, which would otherwise take the theme's red --bg-color. */
body[data-path^="job_application"] .awesomplete > [role="listbox"] {
	background-color: var(--jds-portal-white) !important;
}

/* CV upload: the Attach button and the upload dialog's drop area, which would
   otherwise take the theme's red --bg-color. */
body[data-path^="job_application"] .web-form .attach-missing-file,
body[data-path^="job_application"] .web-form button.btn-attach {
	background: var(--jds-portal-white) !important;
	border: 1px dashed #9ca3af !important;
	border-radius: 8px;
	color: #1a1a2e !important;
	font-weight: 600;
	padding: 8px 20px;
}

body[data-path^="job_application"] .file-upload-area {
	background-color: #f9fafb !important;
	border: 1px dashed #d1d5db !important;
	border-radius: 10px;
}

body[data-path^="job_application"] .file-upload-area,
body[data-path^="job_application"] .file-upload-area .text-muted,
body[data-path^="job_application"] .file-upload-area .btn-file-upload div {
	color: #4b5563 !important;
}

body[data-path^="job_application"] .file-uploader .btn-primary,
body[data-path^="job_application"] .modal-footer .btn-primary {
	background-color: var(--jds-portal-orange) !important;
	border-color: var(--jds-portal-orange) !important;
	color: var(--jds-portal-white) !important;
}

/* ============================================================================
   SIGNED-IN VISITORS
   portal.js strips the page container for logged-in users (the portal pages
   have a sidebar), and portal.css restyles titles and inputs. The job pages
   have no sidebar, so restore the centred width and their own styles.
   ============================================================================ */
body[frappe-session-status="logged-in"][data-path^="jobs"] main,
body[frappe-session-status="logged-in"][data-path^="job_application"] main,
body[frappe-session-status="logged-in"][data-path^="jobs"] .breadcrumb-container,
body[frappe-session-status="logged-in"][data-path^="job_application"] .breadcrumb-container {
	max-width: 1240px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 16px;
	padding-right: 16px;
}

body[frappe-session-status="logged-in"][data-path^="job_application"] .web-form-title h1 {
	color: #1a1a2e !important;
	font-weight: 700 !important;
	font-size: 1.6rem !important;
}

body[frappe-session-status="logged-in"][data-path^="job_application"] .web-form .control-label {
	color: #1a1a2e !important;
	font-weight: 600 !important;
}

body[frappe-session-status="logged-in"][data-path^="job_application"] .web-form .form-column:first-child {
	padding-left: 0;
}

body[frappe-session-status="logged-in"][data-path^="job_application"] .web-form .form-column:last-child {
	padding-right: 0;
}

body[frappe-session-status="logged-in"][data-path^="job_application"] .web-form-footer .web-form-actions {
	display: flex !important;
	justify-content: flex-end;
}

/* Thank-you page layout, set here because signed-in visitors lose the web form's own. */
body[data-path^="job_application"] .success-page:not(.hide) {
	margin-top: 48px;
	padding: 56px 32px !important;
	text-align: center;
}

body[data-path^="job_application"] .success-page .success-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

body[data-path^="job_application"] .success-page .success-icon {
	width: 40px !important;
	height: 40px !important;
}

body[data-path^="job_application"] .success-page .success-title {
	margin: 0 !important;
	font-size: 2.25rem !important;
	font-weight: 700 !important;
	color: #1a1a2e !important;
}

body[data-path^="job_application"] .success-page .success-body,
body[data-path^="job_application"] .success-page .success-footer {
	margin-top: 16px;
}

body[data-path^="job_application"] .success-page .success-header > * {
	flex: 0 0 auto !important;
	margin: 0 !important;
}

body[data-path^="job_application"] .success-page .success-title {
	min-width: 0;
}
