/* ==========================================================
   BRIDGER CUSTOMER PORTAL
   Uses the same visual language as the main CRM.
   ========================================================== */

:root
{
	--portal-primary: #2c67a7;
	--portal-primary-dark: #173b63;
	--portal-primary-bright: #2c7be5;
	--portal-page-bg: #f8fafc;
	--portal-panel: #ffffff;
	--portal-panel-soft: #f4f7fb;
	--portal-border: #d9e1ea;
	--portal-text: #111827;
	--portal-muted: #60758c;
	--portal-danger: #dc2626;
	--portal-success: #15803d;
	--portal-shadow: 0 2px 10px rgba(31, 66, 103, 0.07);
}

body.customer-portal-page
{
	min-height: 100vh;
	margin: 0;
	background: linear-gradient(180deg, var(--portal-page-bg) 0%, #ffffff 260px);
	color: var(--portal-text);
	font-family: Arial, sans-serif;
}

body.customer-portal-page .main.axaj-page
{
	min-height: 100vh;
}

/* Customer identity inside the shared modern menu. */
body.customer-portal-page .bridger-customer-menu .bridger-menu-brand img
{
	width: auto !important;
	max-width: 190px !important;
	max-height: 70px !important;
	object-fit: contain !important;
}

body.customer-portal-page .bridger-menu-user-company
{
	display: block;
	margin: -3px 0 11px 0;
	color: var(--bridger-menu-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

body.customer-portal-page .sidenav.bridger-modern-menu.collapsed .bridger-menu-user-company
{
	display: none;
}

/* Shared portal page spacing. */
body.customer-portal-page .portal-page .axaj-toolbar
{
	margin-bottom: 16px;
}

body.customer-portal-page .portal-page > h2:first-of-type
{
	margin-top: 0;
}

body.customer-portal-page .portal-content
{
	width: 96%;
	margin: 0 auto;
}

body.customer-portal-page .portal-table-scroll
{
	width: 96% !important;
	margin: 12px auto 22px auto !important;
	overflow-x: auto;
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	background: var(--portal-panel);
	box-shadow: var(--portal-shadow);
	-webkit-overflow-scrolling: touch;
}

body.customer-portal-page .main.axaj-page .portal-table-scroll > table.w3-table-all.w3-centered
{
	width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.customer-portal-page .portal-table-scroll table th:last-child,
body.customer-portal-page .portal-table-scroll table td:last-child
{
	border-right: 0 !important;
}

body.customer-portal-page .portal-table-scroll table tbody tr:last-child td
{
	border-bottom: 0 !important;
}

/* POD stamp-status row colours (Task 1): 0 green, 1 amber, 2 red.
   (Replaces the older stamped/unstamped two-state colours.) */
body.customer-portal-page #portalpodtable tbody tr.portal-pod-green td
{
	background: #dcfce7 !important;
	color: #166534 !important;
}

body.customer-portal-page #portalpodtable tbody tr.portal-pod-amber td
{
	background: #fef3c7 !important;
	color: #92400e !important;
}

body.customer-portal-page #portalpodtable tbody tr.portal-pod-red td
{
	background: #fee2e2 !important;
	color: #991b1b !important;
}

body.customer-portal-page #portalpodtable tbody tr.portal-pod-green:hover td
{
	background: #bbf7d0 !important;
}

body.customer-portal-page #portalpodtable tbody tr.portal-pod-amber:hover td
{
	background: #fde68a !important;
}

body.customer-portal-page #portalpodtable tbody tr.portal-pod-red:hover td
{
	background: #fecaca !important;
}

/* Back-compat: keep the old class names working (green/red). */
body.customer-portal-page #portalpodtable tbody tr.portal-pod-stamped td
{
	background: #dcfce7 !important;
}
body.customer-portal-page #portalpodtable tbody tr.portal-pod-unstamped td
{
	background: #fee2e2 !important;
}

/* Dashboard summary cards. */
body.customer-portal-page .portal-summary-grid
{
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
	gap: 14px;
	width: 96%;
	margin: 0 auto 18px auto;
}

body.customer-portal-page .portal-summary-card
{
	position: relative;
	min-height: 112px;
	padding: 20px 22px;
	border: 1px solid var(--portal-border);
	border-radius: 14px;
	background: var(--portal-panel);
	box-shadow: var(--portal-shadow);
	overflow: hidden;
}

body.customer-portal-page .portal-summary-card::before
{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--portal-primary);
}

body.customer-portal-page .portal-summary-kicker
{
	display: block;
	margin-bottom: 7px;
	color: var(--portal-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.customer-portal-page .portal-summary-title
{
	margin: 0;
	color: var(--portal-primary-dark);
	font-size: 23px;
	font-weight: 900;
	line-height: 1.2;
}

body.customer-portal-page .portal-summary-company
{
	margin-top: 7px;
	color: var(--portal-muted);
	font-size: 14px;
	font-weight: 700;
}

body.customer-portal-page .portal-stat-card
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

body.customer-portal-page .portal-stat-number
{
	color: var(--portal-primary-bright);
	font-size: 42px;
	font-weight: 1000;
	line-height: 1;
}

body.customer-portal-page .portal-stat-label
{
	max-width: 150px;
	color: var(--portal-text);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.35;
	text-align: right;
}

/* Notices and empty states. */
body.customer-portal-page .portal-notice,
body.customer-portal-page .portal-empty-state
{
	width: 96%;
	margin: 14px auto 20px auto;
	padding: 16px 18px;
	border: 1px solid var(--portal-border);
	border-left: 5px solid var(--portal-primary-bright);
	border-radius: 10px;
	background: var(--portal-panel);
	box-shadow: var(--portal-shadow);
	color: var(--portal-text);
	font-size: 14px;
	font-weight: 750;
	text-align: left;
}

body.customer-portal-page .portal-notice-success
{
	border-left-color: var(--portal-success);
	background: #f0fdf4;
}

body.customer-portal-page .portal-notice-warning
{
	border-left-color: #d97706;
	background: #fffbeb;
}

body.customer-portal-page .portal-notice-error
{
	border-left-color: var(--portal-danger);
	background: #fef2f2;
}

body.customer-portal-page .portal-notice h3,
body.customer-portal-page .portal-empty-state h3
{
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 900;
}

body.customer-portal-page .portal-notice p,
body.customer-portal-page .portal-empty-state p
{
	margin: 0;
	color: var(--portal-muted);
}

/* Forms. */
body.customer-portal-page .portal-form-card,
body.customer-portal-page .portal-filter-card,
body.customer-portal-page .portal-confirm-card
{
	width: min(760px, 96%);
	margin: 14px auto 22px auto;
	padding: 20px;
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	background: var(--portal-panel);
	box-shadow: var(--portal-shadow);
}

body.customer-portal-page .portal-form-grid
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

body.customer-portal-page .portal-field
{
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

body.customer-portal-page .portal-field > span,
body.customer-portal-page .portal-checkbox-field > span
{
	color: #1f2937;
	font-size: 13px;
	font-weight: 900;
}

body.customer-portal-page .portal-form-card input[type="text"],
body.customer-portal-page .portal-form-card input[type="email"],
body.customer-portal-page .portal-form-card input[type="password"],
body.customer-portal-page .portal-filter-card input[type="date"]
{
	width: 100% !important;
	min-height: 40px;
	margin: 0 !important;
	border: 1px solid #b8c2cc !important;
	border-radius: 7px !important;
	padding: 8px 10px !important;
	background: #ffffff !important;
	color: var(--portal-text) !important;
	font-size: 14px !important;
	font-weight: 700;
	text-align: left !important;
}

body.customer-portal-page .portal-checkbox-field
{
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 17px;
}

body.customer-portal-page .portal-checkbox-field input[type="checkbox"]
{
	display: inline-block !important;
	width: 19px !important;
	height: 19px !important;
	margin: 0 !important;
	accent-color: var(--portal-primary-bright);
}

body.customer-portal-page .portal-form-actions,
body.customer-portal-page .portal-confirm-actions
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

body.customer-portal-page .portal-filter-fields
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

body.customer-portal-page .portal-filter-card .portal-form-actions
{
	justify-content: center;
}

body.customer-portal-page .portal-filter-card button[type="submit"]
{
	min-width: 150px;
}

body.customer-portal-page .portal-secondary-button
{
	background: #64748b !important;
}

body.customer-portal-page .portal-secondary-button:hover
{
	background: #475569 !important;
}

body.customer-portal-page .portal-danger-button
{
	background: var(--portal-danger) !important;
	color: #ffffff !important;
}

body.customer-portal-page .portal-danger-button:hover
{
	background: #b91c1c !important;
}

body.customer-portal-page .portal-action-group
{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

body.customer-portal-page .portal-action-button
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 5px 9px;
	border-radius: 6px;
	background: var(--portal-primary-bright);
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	text-decoration: none !important;
}

body.customer-portal-page .portal-action-button:hover
{
	background: #1b5fb8;
}

body.customer-portal-page .portal-action-button.portal-danger-button
{
	background: var(--portal-danger) !important;
}

/* Job builder-specific polish. */
body.customer-portal-page .portal-job-builder-shell
{
	width: 96% !important;
	margin: 14px auto 22px auto !important;
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	background: var(--portal-panel);
	box-shadow: var(--portal-shadow);
}

body.customer-portal-page .portal-job-builder-shell table
{
	width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.customer-portal-page .main.axaj-page .portal-job-builder-shell > table.w3-table-all.w3-centered
{
	width: 100% !important;
	margin: 0 !important;
}

body.customer-portal-page .portal-job-builder-company
{
	min-height: 40px !important;
	padding: 9px 10px !important;
	border: 1px solid #b8c2cc !important;
	border-radius: 7px !important;
	background: var(--portal-panel-soft) !important;
	color: var(--portal-primary-dark);
	font-size: 14px;
	font-weight: 900 !important;
}

body.customer-portal-page .portal-page .w3-panel
{
	width: 96% !important;
	margin: 16px auto !important;
}

/* Logout confirmation. */
body.customer-portal-page .portal-confirm-card
{
	max-width: 560px;
	text-align: center;
}

body.customer-portal-page .portal-confirm-card h2
{
	width: auto;
	margin: 0 0 8px 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

body.customer-portal-page .portal-confirm-card p
{
	margin: 0;
	color: var(--portal-muted);
	font-size: 14px;
	font-weight: 700;
}

body.customer-portal-page .portal-confirm-actions
{
	justify-content: center;
}

/* Login and activation pages. */
body.customer-portal-page.no-sidebar
{
	background:
		radial-gradient(circle at top left, rgba(44, 103, 167, 0.14), transparent 36%),
		linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

body.customer-portal-page .portal-auth-shell
{
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 52px);
	padding: 34px 18px 72px 18px;
}

body.customer-portal-page .portal-auth-card
{
	width: min(460px, 100%);
	padding: 28px;
	border: 1px solid var(--portal-border);
	border-radius: 20px;
	background: rgba(255,255,255,0.96);
	box-shadow: 0 22px 55px rgba(31, 66, 103, 0.16);
}

body.customer-portal-page .portal-auth-brand
{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 92px;
	margin-bottom: 24px;
	padding: 16px;
	border-radius: 18px;
	background:
		radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 42%),
		linear-gradient(135deg, #173b63 0%, #2c67a7 54%, #438bd0 100%);
	overflow: hidden;
}

body.customer-portal-page .portal-auth-brand::before
{
	content: "";
	position: absolute;
	right: -45px;
	top: -60px;
	width: 150px;
	height: 150px;
	border-radius: 999px;
	background: rgba(255,255,255,0.12);
}

body.customer-portal-page .portal-auth-brand img
{
	position: relative;
	width: min(260px, 84%);
	height: auto;
}

body.customer-portal-page .portal-auth-kicker
{
	display: block;
	margin-bottom: 6px;
	color: var(--portal-primary-bright);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
}

body.customer-portal-page .portal-auth-card h1
{
	margin: 0;
	color: var(--portal-primary-dark);
	font-size: 27px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
}

body.customer-portal-page .portal-auth-intro
{
	margin: 8px 0 22px 0;
	color: var(--portal-muted);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
	text-align: center;
}

body.customer-portal-page .portal-auth-form
{
	display: flex;
	flex-direction: column;
	gap: 15px;
}

body.customer-portal-page .portal-auth-form .portal-field input
{
	width: 100% !important;
	min-height: 44px;
	margin: 0 !important;
	padding: 9px 11px !important;
	border: 1px solid #b8c2cc !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	color: var(--portal-text) !important;
	font-size: 15px !important;
	font-weight: 700;
	text-align: left !important;
}

body.customer-portal-page .portal-auth-form button[type="submit"]
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: 100% !important;
	margin-top: 3px;
	padding: 10px 14px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--portal-primary-bright) !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(44, 123, 229, 0.2);
}

body.customer-portal-page .portal-auth-form button[type="submit"]:hover
{
	background: #1b5fb8 !important;
	opacity: 1;
}

body.customer-portal-page .portal-auth-form button[type="submit"]:disabled
{
	background: #94a3b8 !important;
	cursor: not-allowed;
	box-shadow: none;
}

body.customer-portal-page .portal-password-message
{
	min-height: 18px;
	margin: -5px 0 0 0;
	font-size: 12px;
	font-weight: 800;
	text-align: left;
}

body.customer-portal-page .portal-auth-status
{
	width: min(560px, calc(100% - 36px));
	margin: 80px auto;
	padding: 22px;
	border: 1px solid var(--portal-border);
	border-left: 5px solid var(--portal-primary-bright);
	border-radius: 12px;
	background: var(--portal-panel);
	box-shadow: var(--portal-shadow);
	color: var(--portal-primary-dark);
	font-size: 18px;
	font-weight: 900;
	text-align: center;
}

/* Keep the footer unobtrusive and above page content. */
body.customer-portal-page .footer
{
	z-index: 900;
	min-height: 34px;
	padding: 8px 14px;
	border-top: 1px solid var(--portal-border);
	background: rgba(248,250,252,0.96);
	color: var(--portal-muted);
	font-size: 12px;
	font-weight: 700;
}

body.customer-portal-page .footer p
{
	margin: 0;
}

@media (max-width: 900px)
{
	body.customer-portal-page .bridger-customer-menu .bridger-menu-user-company
	{
		display: none;
	}

	body.customer-portal-page .portal-summary-grid
	{
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px)
{
	body.customer-portal-page .main.axaj-page
	{
		padding-right: 8px !important;
		padding-left: 8px !important;
	}

	body.customer-portal-page .portal-form-grid,
	body.customer-portal-page .portal-filter-fields
	{
		grid-template-columns: 1fr;
	}

	body.customer-portal-page .portal-form-actions,
	body.customer-portal-page .portal-confirm-actions
	{
		align-items: stretch;
		flex-direction: column-reverse;
	}

	body.customer-portal-page .portal-form-actions button,
	body.customer-portal-page .portal-confirm-actions button
	{
		width: 100% !important;
	}

	body.customer-portal-page .portal-stat-card
	{
		align-items: flex-start;
		flex-direction: column;
	}

	body.customer-portal-page .portal-stat-label
	{
		max-width: none;
		text-align: left;
	}

	body.customer-portal-page .portal-auth-card
	{
		padding: 20px;
		border-radius: 16px;
	}
}

/* ==========================================================
   CUSTOMER DASHBOARD LIVE PLANNER
   Read-only version of the staff planning board.
   ========================================================== */

body.customer-portal-page .portal-planner-status-bar
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 96%;
	margin: -4px auto 10px auto;
	color: var(--portal-muted);
	font-size: 12px;
	font-weight: 800;
}

body.customer-portal-page .portal-planner-live-label
{
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #166534;
	letter-spacing: 0.02em;
}

body.customer-portal-page .portal-planner-status-actions
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

body.customer-portal-page .portal-planner-unassigned-toggle
{
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--portal-primary-dark);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	user-select: none;
}

body.customer-portal-page .portal-planner-unassigned-toggle input
{
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--portal-primary-bright);
	cursor: pointer;
}

body.customer-portal-page .portal-planner-unassigned-toggle input:focus-visible
{
	outline: 2px solid var(--portal-primary-bright);
	outline-offset: 2px;
}

body.customer-portal-page .portal-planner-live-dot
{
	position: relative;
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34,197,94,0.14);
}

body.customer-portal-page .portal-planner-live-dot::after
{
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid rgba(34,197,94,0.55);
	border-radius: 50%;
	animation: portal-live-pulse 1.8s ease-out infinite;
}

@keyframes portal-live-pulse
{
	0%
	{
		opacity: 0.85;
		transform: scale(0.65);
	}

	75%,
	100%
	{
		opacity: 0;
		transform: scale(1.5);
	}
}

body.customer-portal-page .portal-planner-board
{
	width: 96%;
	margin: 0 auto 26px auto;
	border: 1px solid #cbd8e6;
	border-radius: 12px;
	background: #edf3f8;
	box-shadow: var(--portal-shadow);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.customer-portal-page .portal-planner-board > .portal-notice,
body.customer-portal-page .portal-planner-board > .portal-empty-state
{
	width: auto;
	margin: 0;
	border: 0;
	border-radius: 11px;
	box-shadow: none;
}

body.customer-portal-page .portal-planner-row
{
	display: grid;
	grid-template-columns: 190px repeat(var(--portal-load-count, 1), minmax(560px, 1fr));
	gap: 7px;
	min-width: max-content;
	padding: 7px;
	border-bottom: 1px solid #cbd8e6;
}

body.customer-portal-page .portal-planner-row:last-child
{
	border-bottom: 0;
}

body.customer-portal-page .portal-planner-vehicle-card,
body.customer-portal-page .portal-planner-load-card
{
	min-width: 0;
	border: 1px solid #a9bed4;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(27,62,98,0.07);
	overflow: hidden;
}

body.customer-portal-page .portal-planner-vehicle-card
{
	padding: 5px;
	border-left: 4px solid var(--portal-primary);
}

body.customer-portal-page .portal-planner-vehicle-card-unallocated
{
	border-left-color: #94a3b8;
	background: #f8fafc;
}

body.customer-portal-page .portal-planner-registration
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 7px;
	min-height: 25px;
	margin-bottom: 4px;
	padding: 3px 8px;
	border: 1px solid #7ea6d2;
	border-radius: 7px;
	background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
	color: #092f5c;
	font-size: 13px;
	font-weight: 1000;
	letter-spacing: 0.02em;
}

body.customer-portal-page .portal-planner-shift-badge
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 3px 7px;
	border-radius: 999px;
	color: #ffffff;
	font-size: 9px;
	font-weight: 1000;
	letter-spacing: 0.05em;
}

body.customer-portal-page .portal-planner-shift-day
{
	background: #2f7ecb;
}

body.customer-portal-page .portal-planner-shift-night
{
	background: #6042ad;
}

body.customer-portal-page .portal-planner-shift-subbie
{
	background: #0f766e;
}

body.customer-portal-page .portal-planner-shift-unallocated
{
	background: #64748b;
}

body.customer-portal-page .portal-planner-info-line
{
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 5px;
	margin-top: 3px;
	color: #0f172a;
	font-size: 10px;
	font-weight: 900;
}

body.customer-portal-page .portal-planner-info-line strong
{
	display: block;
	min-height: 21px;
	padding: 4px 6px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #ffffff;
	color: #24364a;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.customer-portal-page .portal-planner-load-card
{
	min-width: 560px;
}

body.customer-portal-page .portal-planner-load-title
{
	min-height: 22px;
	padding: 4px 9px;
	border-bottom: 1px solid #d5e0ea;
	background: linear-gradient(180deg, #f8fbff 0%, #edf3f8 100%);
	color: #123b68;
	font-size: 10px;
	font-weight: 1000;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

body.customer-portal-page .portal-planner-job-header,
body.customer-portal-page .portal-planner-job-grid
{
	display: grid;
	grid-template-columns:
		minmax(130px, 0.95fr)
		minmax(150px, 1.05fr)
		72px
		minmax(150px, 1.05fr)
		80px;
	align-items: center;
}

body.customer-portal-page .portal-planner-job-header
{
	min-height: 24px;
	border-bottom: 1px solid #d5e0ea;
	background: #f8fafc;
	color: #183653;
	font-size: 9px;
	font-weight: 1000;
	text-align: center;
}

body.customer-portal-page .portal-planner-job-header > div
{
	padding: 3px 5px;
	border-right: 1px solid #e1e8ef;
}

body.customer-portal-page .portal-planner-job-header > div:last-child
{
	border-right: 0;
}

body.customer-portal-page .portal-planner-job
{
	border-bottom: 1px solid #d5e0ea;
	background: #ffffff;
}

body.customer-portal-page .portal-planner-job:last-child
{
	border-bottom: 0;
}

body.customer-portal-page .portal-planner-job-grid
{
	min-height: 44px;
}

body.customer-portal-page .portal-planner-job-grid > div
{
	min-width: 0;
	padding: 5px;
	border-right: 1px solid #e1e8ef;
}

body.customer-portal-page .portal-planner-job-grid > div:last-child
{
	border-right: 0;
}

body.customer-portal-page .portal-planner-location
{
	margin: 0 4px;
	border: 1px solid #3b82f6;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
	color: #092f5c;
	font-size: 12px;
	font-weight: 1000;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
}

body.customer-portal-page .portal-planner-location small
{
	display: block;
	margin-top: 2px;
	color: #53708d;
	font-size: 8px;
	font-weight: 800;
}

body.customer-portal-page .portal-planner-pallet-cell
{
	display: flex;
	align-items: center;
	justify-content: center;
}

body.customer-portal-page .portal-planner-pallet-badge,
body.customer-portal-page .portal-planner-total-pallets
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #9abc22;
	border-radius: 8px;
	background: linear-gradient(180deg, #d8ff62 0%, #b7ec3c 100%);
	color: #1e3700;
	font-weight: 1000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

body.customer-portal-page .portal-planner-pallet-badge
{
	min-width: 35px;
	height: 28px;
	padding: 3px 7px;
	font-size: 15px;
}

body.customer-portal-page .portal-planner-total-pallets
{
	min-width: 24px;
	margin-left: 3px;
	padding: 2px 5px;
	border-radius: 999px;
	font-size: 10px;
}

body.customer-portal-page .portal-planner-total-green
{
	border-color: #22c55e;
	background: #4ade80;
	color: #052e16;
}

body.customer-portal-page .portal-planner-total-red
{
	border-color: #ef4444;
	background: #f87171;
	color: #450a0a;
}

body.customer-portal-page .portal-planner-progress
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) 31px;
	align-items: center;
	gap: 5px;
	width: 100%;
}

body.customer-portal-page .portal-planner-progress-track
{
	position: relative;
	height: 31px;
}

body.customer-portal-page .portal-planner-progress-bar
{
	position: absolute;
	top: 15px;
	left: 0;
	width: 100%;
	height: 5px;
	border: 1px solid #aeb9c5;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

body.customer-portal-page .portal-planner-progress-fill
{
	width: calc(var(--portal-job-progress, 0) * 1%);
	height: 100%;
	border-radius: inherit;
	background: var(--portal-job-colour, #f39c12);
	transition: width 0.45s ease, background-color 0.45s ease;
}

body.customer-portal-page .portal-planner-progress-truck
{
	position: absolute;
	top: 1px;
	left: calc((100% - 28px) * var(--portal-job-progress, 0) / 100);
	z-index: 2;
	width: 28px;
	height: 18px;
	transition: left 0.45s ease;
}

body.customer-portal-page .portal-planner-progress-truck img
{
	display: block;
	width: 28px;
	height: 18px;
	object-fit: contain;
}

body.customer-portal-page .portal-planner-progress-percent
{
	color: #1f3c59;
	font-size: 9px;
	font-weight: 1000;
	text-align: right;
}

body.customer-portal-page .portal-planner-eta
{
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 2px;
	min-height: 31px;
	text-align: center;
}

body.customer-portal-page .portal-planner-eta strong
{
	color: #123b68;
	font-size: 12px;
	font-weight: 1000;
	line-height: 1;
}

body.customer-portal-page .portal-planner-eta span
{
	color: var(--portal-muted);
	font-size: 8px;
	font-weight: 800;
	line-height: 1.1;
}

@media (max-width: 900px)
{
	body.customer-portal-page .portal-planner-row
	{
		grid-template-columns: 170px repeat(var(--portal-load-count, 1), minmax(540px, 1fr));
	}

	body.customer-portal-page .portal-planner-load-card
	{
		min-width: 540px;
	}
}

@media (max-width: 640px)
{
	body.customer-portal-page .portal-planner-status-bar
	{
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	body.customer-portal-page .portal-planner-status-actions
	{
		justify-content: space-between;
		width: 100%;
	}

	body.customer-portal-page .portal-planner-row
	{
		grid-template-columns: 155px repeat(var(--portal-load-count, 1), minmax(520px, 1fr));
	}

	body.customer-portal-page .portal-planner-load-card
	{
		min-width: 520px;
	}

	body.customer-portal-page .portal-planner-info-line
	{
		grid-template-columns: 42px minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce)
{
	body.customer-portal-page .portal-planner-live-dot::after
	{
		animation: none;
	}

	body.customer-portal-page .portal-planner-progress-fill,
	body.customer-portal-page .portal-planner-progress-truck
	{
		transition: none;
	}
}
