/*
 * BDS-CHG-001 v0.8 §10.1 Supplier Website shell (plan OD-B), ported from the
 * header, body and footer drawn on every "Bid Board v3" artboard
 * (docs/mvp-1-r1/12_bid_submission/design/*.dc.html): 1440 frame = 1200 px
 * centred column; 390 frame = 16 px gutters. Loaded only by
 * templates/kt_portal/base.html, whose <body> carries .kt-industry, so every
 * rule is scoped under .kt-industry.kt-portal and nothing reaches Desk.
 */

.kt-industry.kt-portal {
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* Visually hidden until focused (board: 1 × 1 px clipped link). */
.kt-industry.kt-portal .kt-portal-skip {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 20;
	padding: 8px 12px;
	background: var(--kt-color-surface);
	border: 1px solid var(--kt-color-accent-700);
	color: var(--kt-color-text);
}
.kt-industry.kt-portal .kt-portal-skip:focus {
	top: 8px;
}

.kt-industry.kt-portal .kt-portal-header {
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}
.kt-industry.kt-portal .kt-portal-topbar {
	min-height: 36px;
	background-color: #0b1f3b;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
	background-size: 30px 30px;
	color: #fff;
}
.kt-industry.kt-portal .kt-portal-topbar-inner {
	width: 1536px;
	max-width: calc(100% - 32px);
	min-height: 36px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	font-size: 13px;
}
.kt-industry.kt-portal .kt-portal-topbar-clock,
.kt-industry.kt-portal .kt-portal-topbar-contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.kt-industry.kt-portal .kt-portal-topbar-clock {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.kt-industry.kt-portal .kt-portal-topbar svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.kt-industry.kt-portal .kt-portal-bar {
	width: 1536px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	height: 81px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
}
/* Header and footer links sit outside the Industry link colour (the board
   draws them in text / neutral-800); `.kt-portal-header`/`.kt-portal-footer`
   raise specificity above `.kt-industry a:not(...)`. */
.kt-industry.kt-portal .kt-portal-header a.kt-portal-brand,
.kt-industry.kt-portal .kt-portal-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--kt-font-heading);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.02em;
	color: var(--kt-color-text);
	text-decoration: none;
}
.kt-industry.kt-portal .kt-portal-brand img {
	width: auto;
	height: 48px;
	object-fit: contain;
	display: block;
}
.kt-industry.kt-portal .kt-portal-footer-brand img {
	width: auto;
	height: 40px;
	object-fit: contain;
	display: block;
}
.kt-industry.kt-portal .kt-portal-nav {
	display: flex;
	gap: var(--kt-space-8);
	font-size: 14px;
}
.kt-industry.kt-portal .kt-portal-header .kt-portal-nav a {
	color: #374151;
	text-decoration: none;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	transition:
		color 0.3s ease,
		border-color 0.3s ease;
}
.kt-industry.kt-portal .kt-portal-header .kt-portal-nav a:hover {
	color: #2563eb;
}
.kt-industry.kt-portal .kt-portal-nav {
	margin-left: 0;
}
.kt-industry.kt-portal .kt-portal-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	margin-left: 0;
}
.kt-industry.kt-portal .kt-portal-get-started:not(.btn):not(.kt-tab):not(.kt-add-child),
.kt-industry.kt-portal .kt-portal-dashboard:not(.btn):not(.kt-tab):not(.kt-add-child) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 12px 20px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #0047ab, #003580);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.3s ease;
}
.kt-industry.kt-portal .kt-portal-get-started:not(.btn):not(.kt-tab):not(.kt-add-child) {
	background: linear-gradient(135deg, #0047ab, #003580);
	color: #fff;
}
.kt-industry.kt-portal .kt-portal-dashboard:not(.btn):not(.kt-tab):not(.kt-add-child) {
	margin-right: 0;
	border: 1px solid #e1e7ee;
	border-radius: 10px;
	background: #f1f3f5;
	color: #000;
}
.kt-industry.kt-portal .kt-portal-get-started:not(.btn):not(.kt-tab):not(.kt-add-child):hover,
.kt-industry.kt-portal .kt-portal-dashboard:not(.btn):not(.kt-tab):not(.kt-add-child):hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}
.kt-industry.kt-portal .kt-portal-get-started svg,
.kt-industry.kt-portal .kt-portal-dashboard svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* Who is signed in: the same avatar, name and line beneath as Desk's user block */
.kt-industry.kt-portal .kt-portal-identity-wrap {
	position: relative;
	display: flex;
	align-items: center;
	margin-left: var(--kt-space-8);
}
.kt-industry.kt-portal .kt-portal-identity {
	appearance: none;
	display: flex;
	align-items: center;
	gap: var(--kt-space-3);
	padding: 4px 8px 4px var(--kt-space-8);
	border: 0;
	border-left: 1px solid var(--kt-color-neutral-300);
	border-radius: var(--kt-radius-md);
	background: transparent;
	min-width: 0;
	font: inherit;
	cursor: pointer;
}
.kt-industry.kt-portal .kt-portal-identity:hover,
.kt-industry.kt-portal .kt-portal-identity[aria-expanded="true"] {
	background: var(--kt-color-accent-100);
}
.kt-industry.kt-portal .kt-portal-identity:focus-visible {
	outline: 2px solid var(--kt-color-accent-500);
	outline-offset: 2px;
}
.kt-industry.kt-portal .kt-portal-avatar {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--kt-color-accent);
	color: var(--kt-color-surface);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.kt-industry.kt-portal .kt-portal-identity-text {
	display: grid;
	line-height: 1.25;
	min-width: 0;
}
.kt-industry.kt-portal .kt-portal-identity-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--kt-color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}
.kt-industry.kt-portal .kt-portal-identity-detail {
	font-size: 12px;
	color: var(--kt-color-neutral-700);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}
.kt-industry.kt-portal .kt-portal-chevron {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: var(--kt-color-neutral-700);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.kt-industry.kt-portal .kt-portal-account-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	padding: 8px;
	border: 1px solid var(--kt-color-neutral-300);
	border-radius: var(--kt-radius-md);
	background: var(--kt-color-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.kt-industry.kt-portal .kt-portal-account-menu[hidden] {
	display: none;
}
.kt-industry.kt-portal .kt-portal-account-menu-item:not(.btn):not(.kt-tab):not(.kt-add-child) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--kt-color-text);
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.kt-industry.kt-portal .kt-portal-account-menu-item svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.kt-industry.kt-portal
	.kt-portal-account-menu-item:not(.btn):not(.kt-tab):not(.kt-add-child):hover,
.kt-industry.kt-portal
	.kt-portal-account-menu-item:not(.btn):not(.kt-tab):not(.kt-add-child):focus-visible {
	background: var(--kt-color-accent-100);
	color: var(--kt-color-accent-800);
	outline: none;
}
.kt-industry.kt-portal
	.kt-portal-account-menu-item.danger:not(.btn):not(.kt-tab):not(.kt-add-child) {
	color: var(--kt-color-neutral-800);
}
.kt-industry.kt-portal
	.kt-portal-account-menu-item.danger:not(.btn):not(.kt-tab):not(.kt-add-child):hover,
.kt-industry.kt-portal
	.kt-portal-account-menu-item.danger:not(.btn):not(.kt-tab):not(.kt-add-child):focus-visible {
	background: rgba(220, 38, 38, 0.08);
	color: #b42318;
}
.kt-industry.kt-portal .kt-portal-header .kt-portal-nav a[aria-current="page"] {
	color: #2563eb;
	font-weight: 600;
	border-bottom-color: #2563eb;
}

.kt-industry.kt-portal .kt-portal-body {
	flex: 1;
	width: 1200px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 32px 0;
}
.kt-industry.kt-portal #kt-portal-main:focus {
	outline: none;
}
.kt-industry.kt-portal .kt-page {
	margin: 0;
}
.kt-industry.kt-portal .kt-page-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--kt-space-6);
	margin: 0 0 var(--kt-space-4);
}
.kt-industry.kt-portal .kt-page-head > div {
	min-width: 0;
}
.kt-industry.kt-portal .kt-page-title {
	margin: 0;
	font-family: var(--kt-font-heading);
	font-weight: var(--kt-font-heading-weight);
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--kt-color-text);
}
.kt-industry.kt-portal .kt-page-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--kt-color-neutral-700);
}
.kt-industry.kt-portal .kt-portal-loading {
	min-height: 240px;
}

.kt-industry.kt-portal .kt-portal-footer {
	border-top: 1px solid rgba(27, 45, 42, 0.15);
	background: rgba(255, 255, 255, 0.18);
}
.kt-industry.kt-portal .kt-portal-footer-inner {
	width: 1536px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 18px 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.kt-industry.kt-portal .kt-portal-footer-brand {
	font-size: 16px;
	color: var(--kt-color-text);
	flex-shrink: 0;
}
.kt-industry.kt-portal .kt-portal-footer nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: var(--kt-space-8);
	font-size: 13px;
}
.kt-industry.kt-portal .kt-portal-footer nav a[data-kt-portal-footer] {
	color: var(--kt-color-neutral-900);
	text-decoration: none;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* 390 × 844 frame — the board's narrow shell. */
@media (max-width: 600px) {
	.kt-industry.kt-portal .kt-portal-topbar-inner {
		max-width: calc(100% - 32px);
	}
	.kt-industry.kt-portal .kt-portal-topbar-contact {
		display: none;
	}
	.kt-industry.kt-portal .kt-portal-topbar-divider {
		display: none;
	}
	.kt-industry.kt-portal .kt-portal-bar {
		width: auto;
		max-width: none;
		height: 52px;
		padding: 0 16px;
	}
	.kt-industry.kt-portal .kt-portal-brand img {
		height: 40px;
	}
	.kt-industry.kt-portal .kt-portal-header a.kt-portal-brand {
		font-size: 17px;
	}
	.kt-industry.kt-portal .kt-portal-nav {
		gap: 14px;
		font-size: 13px;
		margin-left: 16px;
	}
	.kt-industry.kt-portal .kt-portal-identity {
		margin-left: 12px;
		padding-left: 12px;
		gap: 6px;
	}
	.kt-industry.kt-portal .kt-portal-avatar {
		width: 28px;
		height: 28px;
	}
	.kt-industry.kt-portal .kt-portal-identity-text {
		display: none;
	}
	.kt-industry.kt-portal .kt-portal-chevron {
		display: none;
	}
	.kt-industry.kt-portal .kt-portal-account-menu {
		position: fixed;
		top: 56px;
		right: 16px;
	}
	.kt-industry.kt-portal .kt-portal-header .kt-portal-nav a {
		padding: 14px 0 12px;
	}
	.kt-industry.kt-portal .kt-portal-body {
		width: auto;
		max-width: none;
		padding: 16px;
	}
	.kt-industry.kt-portal .kt-page {
		padding: var(--kt-space-4);
	}
	.kt-industry.kt-portal .kt-page-head {
		flex-direction: column;
		gap: var(--kt-space-4);
	}
	.kt-industry.kt-portal .kt-page-title {
		font-size: 26px;
	}
	.kt-industry.kt-portal .kt-portal-footer-inner {
		width: auto;
		max-width: none;
		padding: 12px 16px 16px;
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.kt-industry.kt-portal .kt-portal-footer nav {
		width: auto;
		max-width: none;
		justify-content: flex-start;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 16px;
		padding: 0;
	}
	.kt-industry.kt-portal .kt-portal-footer nav a[data-kt-portal-footer] {
		padding: 12px 0;
	}
}
