@font-face {
	font-family: "Montserrat";
	src: url("fonts/Montserrat-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("fonts/Montserrat-SemiBold.ttf") format("truetype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("fonts/Montserrat-Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

:root {
	--navy: #202d5d;
	--navy-dark: #172044;
	--cyan: #058db7;
	--cyan-dark: #00779b;
	--ink: #252a34;
	--muted: #626b78;
	--border: #d9dee7;
	--surface: #ffffff;
	--background: #f3f5f8;
	--success: #16784a;
	--success-soft: #e8f6ef;
	--warning: #9b5d00;
	--warning-soft: #fff4dc;
	--danger: #a5262e;
	--danger-soft: #fcebed;
	--shadow: 0 12px 32px rgba(30, 43, 87, .09);
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
	color: var(--ink);
	background: var(--background);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--background);
}

body {
	min-height: 100vh;
	margin: 0;
	background: linear-gradient(180deg, #eef7fb 0, var(--background) 360px);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
summary,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: var(--cyan-dark);
	font-weight: 600;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
	outline: 3px solid #f6b900;
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 14px;
	transform: translateY(-150%);
	border-radius: 4px;
	background: white;
}

.skip-link:focus {
	transform: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: 0 3px 14px rgba(15, 27, 67, .2);
}

.header-topbar {
	background: var(--navy);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1240px;
	min-height: 88px;
	margin: 0 auto;
	padding: 14px 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 18px;
	color: white;
	text-decoration: none;
}

.brand img {
	display: block;
	width: 230px;
	max-height: 58px;
}

.brand span {
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, .35);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.portal-navigation {
	border-bottom: 1px solid var(--border);
	background: white;
}

.portal-navigation-inner {
	display: flex;
	align-items: stretch;
	gap: 4px;
	max-width: 1240px;
	min-height: 52px;
	margin: 0 auto;
	padding: 0 24px;
}

.portal-navigation button {
	padding: 0 18px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--navy);
	font-weight: 600;
	cursor: pointer;
}

.portal-navigation button:hover,
.portal-navigation button.active {
	border-bottom-color: var(--cyan);
	color: var(--cyan-dark);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.mobile-menu-button {
	display: none;
	margin-left: auto;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 5px;
	background: transparent;
	color: white;
	font-weight: 600;
}

.account-menu {
	position: relative;
	color: white;
}

.account-menu summary {
	display: flex;
	align-items: center;
	gap: 9px;
	max-width: 240px;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	list-style: none;
}

.account-menu summary::-webkit-details-marker {
	display: none;
}

.account-menu summary #header_contact_name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.account-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: white;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
}

.account-chevron,
.service-picker-chevron {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .16s ease;
}

.account-menu[open] .account-chevron,
.service-picker.open .service-picker-chevron {
	transform: rotate(225deg) translate(-2px, -2px);
}

.account-menu-panel {
	position: absolute;
	top: calc(100% + 15px);
	right: 0;
	display: grid;
	gap: 10px;
	min-width: 290px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: white;
	box-shadow: var(--shadow);
	color: var(--ink);
}

.account-menu-panel span {
	color: var(--muted);
	font-size: 13px;
}

main {
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 24px 60px;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 10px;
	color: var(--navy-dark);
	font-size: clamp(29px, 4vw, 44px);
	line-height: 1.08;
}

h2 {
	margin-bottom: 12px;
	color: var(--navy-dark);
	font-size: 24px;
}

h3 {
	margin-bottom: 8px;
	color: var(--navy-dark);
}

.eyebrow {
	margin-bottom: 7px;
	color: var(--cyan-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.muted,
.field-help,
.optional {
	color: var(--muted);
}

.optional {
	font-size: 12px;
	font-weight: 400;
}

.panel {
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.page-heading,
.section-heading,
.button-row,
.wizard-actions,
.pricing-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.page-heading {
	margin-bottom: 24px;
}

.page-heading p:last-child {
	margin-bottom: 0;
}

.section-heading {
	align-items: flex-start;
	margin-bottom: 18px;
}

.section-heading h2,
.section-heading p:last-child {
	margin-bottom: 0;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 43px;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.button:disabled {
	cursor: wait;
	opacity: .55;
}

.button-primary {
	border-color: var(--navy);
	background: var(--navy);
	color: white;
}

.button-primary:hover {
	background: var(--navy-dark);
}

.button-accent {
	border-color: var(--cyan);
	background: var(--cyan);
	color: white;
}

.button-accent:hover {
	background: var(--cyan-dark);
}

.button-secondary {
	border-color: #b9c0cb;
	background: white;
	color: var(--navy);
}

.button-danger {
	border-color: var(--danger);
	background: white;
	color: var(--danger);
}

.button-wide {
	width: 100%;
}

.text-button,
.quick-filters button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cyan-dark);
	font-weight: 700;
	cursor: pointer;
}

.message,
.error-summary,
.notice {
	margin-bottom: 20px;
	padding: 14px 16px;
	border-left: 4px solid var(--cyan);
	border-radius: 5px;
	background: #eaf6fa;
}

.message.success {
	border-left-color: var(--success);
	background: var(--success-soft);
}

.error-summary {
	border-left-color: var(--danger);
	background: var(--danger-soft);
}

.error-summary ul {
	margin-bottom: 0;
}

.login-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
	align-items: center;
	gap: 70px;
	min-height: calc(100vh - 185px);
}

.login-copy {
	max-width: 650px;
}

.login-copy h1 {
	font-size: clamp(40px, 6vw, 70px);
}

.login-copy > p:last-child {
	max-width: 600px;
	font-size: 19px;
	line-height: 1.65;
}

.login-panel {
	padding: 38px;
}

label,
legend {
	display: block;
	margin-bottom: 7px;
	color: #353b47;
	font-size: 14px;
	font-weight: 700;
}

input,
select,
textarea {
	width: 100%;
	min-height: 45px;
	margin-bottom: 18px;
	padding: 10px 12px;
	border: 1px solid #aeb7c4;
	border-radius: 5px;
	background: white;
	color: var(--ink);
}

textarea {
	resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
button[aria-invalid="true"] {
	border: 2px solid var(--danger);
	background: #fff8f8;
}

.field-error,
.field-warning {
	margin: -12px 0 16px;
	color: var(--danger);
	font-size: 13px;
	font-weight: 600;
}

.field-warning {
	color: var(--warning);
}

.field-help {
	margin: -11px 0 16px;
	font-size: 13px;
	line-height: 1.5;
}

.support-copy {
	margin: 24px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

fieldset {
	margin: 4px 0 22px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 7px;
}

.choice-card,
.check-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 10px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: #fafbfd;
	cursor: pointer;
}

.choice-card:has(input:checked) {
	border-color: var(--cyan);
	background: #eef9fc;
}

.choice-card input,
.check-row input {
	width: auto;
	min-height: auto;
	margin: 3px 0 0;
}

.choice-card span,
.check-row span {
	display: grid;
	gap: 4px;
}

.choice-card small,
.check-row small {
	color: var(--muted);
	font-weight: 400;
	line-height: 1.45;
}

.conditional-fields {
	margin: -2px 0 20px 42px;
}

.goods-route-option {
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: #fafbfd;
}

.goods-route-option:has(input:checked) {
	border-color: var(--cyan);
	background: #eef9fc;
}

.goods-route-option .choice-card {
	padding: 0;
	border: 0;
	background: transparent;
}

.goods-route-option textarea {
	margin-bottom: 0;
}

.kpi-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.kpi-card {
	display: grid;
	align-content: center;
	min-height: 145px;
	padding: 20px;
	border: 0;
	border-top: 5px solid var(--navy);
	border-radius: 9px;
	background: white;
	box-shadow: var(--shadow);
	color: var(--navy-dark);
	text-align: left;
}

button.kpi-card {
	cursor: pointer;
}

button.kpi-card:hover {
	transform: translateY(-2px);
}

.kpi-value {
	margin-bottom: 8px;
	font-size: 34px;
	font-weight: 700;
}

.kpi-card span:last-of-type {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.kpi-card small {
	margin-top: 5px;
	opacity: .8;
}

.kpi-warning {
	border-top-color: #e39b21;
}

.kpi-danger {
	border-top-color: var(--danger);
}

.kpi-cyan {
	border-top-color: var(--cyan);
}

.kpi-success {
	border-top-color: var(--success);
}

.kpi-purple {
	border-top-color: #7554a3;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.compact-list,
.activity-list {
	display: grid;
	gap: 0;
}

.compact-row,
.activity-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
	padding: 15px 0;
	border-top: 1px solid #e8ebf0;
}

.compact-row:first-child,
.activity-row:first-child {
	border-top: 0;
}

.compact-row p,
.activity-row p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.status-guide {
	margin-top: 20px;
}

.guide-steps,
.milestones {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-steps li,
.milestones li {
	position: relative;
	display: grid;
	grid-template-columns: 34px 1fr;
	align-items: center;
	gap: 4px 10px;
}

.guide-steps li > span,
.milestones li > span {
	display: grid;
	grid-row: 1 / span 2;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #e8edf3;
	color: var(--navy);
	font-weight: 700;
}

.guide-steps small,
.milestones small {
	color: var(--muted);
	line-height: 1.4;
}

.quick-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
	overflow-x: auto;
}

.quick-filters button {
	flex: 0 0 auto;
	padding: 9px 14px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: white;
}

.quick-filters button.active {
	border-color: var(--navy);
	background: var(--navy);
	color: white;
}

.filter-bar {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr) auto;
	align-items: end;
	gap: 14px;
	margin-bottom: 20px;
	padding: 18px;
}

.invoice-filter-bar {
	grid-template-columns: 2fr repeat(3, 1fr) auto;
}

.filter-bar input,
.filter-bar select {
	margin-bottom: 0;
}

.filter-bar > label {
	margin-bottom: 0;
}

.filter-actions {
	display: flex;
	gap: 8px;
}

.filter-actions .button {
	min-height: 45px;
}

.table-panel {
	padding: 0;
	overflow: hidden;
}

.results-summary {
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
}

.booking-table {
	width: 100%;
	border-collapse: collapse;
}

.booking-table th,
.booking-table td {
	padding: 14px 12px;
	border-bottom: 1px solid #e7eaf0;
	text-align: left;
	vertical-align: top;
}

.booking-table th {
	background: #f6f7fa;
	color: #4d5665;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.booking-table td {
	font-size: 13px;
}

.booking-table tr:hover td {
	background: #fbfdfe;
}

.invoice-table th:nth-last-child(-n+4),
.invoice-table td:nth-last-child(-n+4) {
	white-space: nowrap;
}

.table-actions {
	display: flex;
	gap: 7px;
}

.table-actions .button {
	min-height: 36px;
	padding: 8px 10px;
	white-space: nowrap;
}

.booking-mobile-card {
	display: none;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 20px;
	background: #eaf1f8;
	color: var(--navy);
	font-size: 11px;
	font-weight: 700;
}

.status-pill.success {
	background: var(--success-soft);
	color: var(--success);
}

.status-pill.warning {
	background: var(--warning-soft);
	color: var(--warning);
}

.status-pill.danger {
	background: var(--danger-soft);
	color: var(--danger);
}

.status-pill.neutral {
	background: #eceef2;
	color: #596170;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 18px;
}

.pagination button {
	min-width: 38px;
	min-height: 38px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: white;
	color: var(--navy);
	cursor: pointer;
}

.pagination button.active {
	background: var(--navy);
	color: white;
}

.pricing-meta {
	justify-content: flex-start;
	margin-bottom: 20px;
}

.pricing-meta > div {
	display: grid;
	min-width: 220px;
}

.pricing-list {
	display: grid;
	gap: 12px;
}

.pricing-row {
	display: grid;
	grid-template-columns: 1fr repeat(3, 120px);
	gap: 14px;
	align-items: center;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 7px;
}

.pricing-row p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.pricing-addons {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 0 0 22px;
	border-top: 1px solid #edf0f3;
	color: var(--muted);
	font-size: 13px;
}

.stepper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 20px;
	border-radius: 8px;
	background: white;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.stepper button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border: 0;
	border-bottom: 4px solid transparent;
	background: white;
	color: var(--muted);
	font-weight: 600;
	cursor: pointer;
}

.stepper button span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e8edf3;
	color: var(--navy);
}

.stepper button.active {
	border-bottom-color: var(--cyan);
	color: var(--navy);
}

.stepper button.complete span,
.stepper button.active span {
	background: var(--cyan);
	color: white;
}

.delivery-item {
	margin-bottom: 18px;
	padding: 22px;
	border: 1px solid var(--border);
	border-left: 5px solid var(--cyan);
	border-radius: 7px;
	background: #fbfcfe;
}

.service-field {
	margin-bottom: 18px;
}

.service-picker {
	position: relative;
}

.service-picker-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 45px;
	padding: 10px 12px;
	border: 1px solid #aeb7c4;
	border-radius: 5px;
	background: white;
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.service-picker-chevron {
	color: var(--muted);
}

.service-picker.open .service-picker-button {
	border-color: var(--cyan);
	box-shadow: 0 0 0 2px rgba(0, 156, 189, .15);
}

.service-picker-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	padding: 10px;
	border: 1px solid #aeb7c4;
	border-radius: 5px;
	background: white;
	box-shadow: var(--shadow);
}

.service-picker-search {
	margin-bottom: 8px;
}

.service-picker-options {
	max-height: 285px;
	overflow-y: auto;
}

.service-picker-category {
	padding: 9px 10px 5px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.service-picker-option {
	display: grid;
	gap: 3px;
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.service-picker-option:hover,
.service-picker-option:focus,
.service-picker-option[aria-selected="true"] {
	background: #eef9fc;
	outline: 0;
}

.service-picker-option small {
	color: var(--muted);
}

.service-picker-empty {
	margin: 0;
	padding: 12px 10px;
	color: var(--muted);
}

.service-picker-value {
	position: absolute;
	width: 1px;
	height: 1px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.item-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
}

.item-heading > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.item-heading h3 {
	margin: 0;
}

.item-number {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--navy);
	color: white;
	font-weight: 700;
}

.addon-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.addon-list .check-row {
	margin: 0;
}

.optional-details {
	margin-bottom: 18px;
	padding: 15px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: white;
}

.optional-details summary {
	cursor: pointer;
	font-weight: 700;
}

.optional-details[open] summary {
	margin-bottom: 18px;
}

.measurement-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.goods-route-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.estimate-panel {
	position: sticky;
	bottom: 12px;
	margin: 20px 0 0;
	padding: 17px;
	border-radius: 7px;
	background: var(--navy);
	box-shadow: var(--shadow);
	color: white;
}

.estimate-totals {
	display: flex;
	justify-content: flex-end;
	gap: 28px;
}

.estimate-totals span {
	display: grid;
	gap: 3px;
	font-size: 12px;
}

.estimate-totals strong {
	font-size: 19px;
}

.slot-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.slot-card {
	position: relative;
	display: grid;
	gap: 7px;
	min-height: 130px;
	padding: 18px;
	border: 2px solid var(--border);
	border-radius: 8px;
	background: white;
	cursor: pointer;
}

.slot-card:has(input:checked) {
	border-color: var(--cyan);
	box-shadow: 0 0 0 3px rgba(5, 141, 183, .12);
}

.slot-card input {
	position: absolute;
	top: 14px;
	right: 14px;
	width: auto;
	min-height: auto;
	margin: 0;
}

.slot-card strong {
	color: var(--navy);
	font-size: 18px;
}

.slot-card small {
	color: var(--muted);
}

.slot-availability {
	color: var(--success);
	font-size: 12px;
	font-weight: 700;
}

.wizard-actions {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.wizard-actions > div {
	display: flex;
	gap: 10px;
}

.review-layout,
.booking-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 22px;
}

.review-card,
.detail-card {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: #fbfcfe;
}

.review-card.full,
.detail-card.full {
	grid-column: 1 / -1;
}

.review-card dl,
.detail-card dl {
	display: grid;
	grid-template-columns: minmax(120px, .5fr) 1fr;
	gap: 8px 14px;
	margin: 0;
}

dt {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

dd {
	margin: 0;
}

.confirmation-panel {
	max-width: 820px;
	margin: 45px auto;
	padding: 44px;
	text-align: center;
}

.confirmation-icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--success-soft);
	color: var(--success);
	font-size: 34px;
	font-weight: 700;
}

.confirmation-summary {
	margin: 25px 0;
	padding: 20px;
	border-radius: 7px;
	background: #f5f7fa;
	text-align: left;
}

.confirmation-panel .button-row {
	justify-content: center;
	flex-wrap: wrap;
}

.back-link {
	margin-bottom: 18px;
}

.detail-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

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

.milestones {
	grid-template-columns: repeat(8, minmax(0, 1fr));
	margin: 24px 0;
}

.milestones li {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
	opacity: .45;
}

.milestones li > span {
	grid-row: auto;
	margin-bottom: 7px;
}

.milestones li.complete,
.milestones li.current {
	opacity: 1;
}

.milestones li.complete > span,
.milestones li.current > span {
	background: var(--success);
	color: white;
}

.timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 26px;
	list-style: none;
}

.invoice-items-card {
	padding: 0;
	overflow: hidden;
}

.invoice-items-card > h2 {
	margin: 0;
	padding: 20px;
	border-bottom: 1px solid var(--border);
}

.invoice-group + .invoice-group {
	border-top: 1px solid var(--border);
}

.invoice-group > header {
	display: flex;
	justify-content: space-between;
	padding: 16px 20px;
	background: #f6f7fa;
}

.invoice-group h3 {
	margin: 0 0 3px;
}

.invoice-group h3 span,
.invoice-group small {
	color: var(--muted);
}

.invoice-lines-scroll {
	overflow-x: auto;
}

.invoice-lines {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
}

.invoice-lines th,
.invoice-lines td {
	padding: 13px 20px;
	border-top: 1px solid #e7eaf0;
	text-align: left;
	vertical-align: top;
}

.invoice-lines th {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.invoice-lines th:nth-child(n+3),
.invoice-lines td:nth-child(n+3) {
	text-align: right;
	white-space: nowrap;
}

.timeline::before {
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 6px;
	width: 2px;
	background: var(--border);
	content: "";
}

.timeline li {
	position: relative;
	margin-bottom: 22px;
}

.timeline li::before {
	position: absolute;
	top: 5px;
	left: -25px;
	width: 12px;
	height: 12px;
	border: 3px solid white;
	border-radius: 50%;
	background: var(--cyan);
	box-shadow: 0 0 0 1px var(--cyan);
	content: "";
}

.timeline p {
	margin: 4px 0;
	color: var(--muted);
	font-size: 13px;
}

.portal-dialog {
	width: min(650px, calc(100vw - 30px));
	padding: 30px;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 24px 80px rgba(10, 20, 50, .3);
}

.portal-dialog::backdrop {
	background: rgba(18, 27, 55, .7);
}

.dialog-close {
	float: right;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 28px;
	cursor: pointer;
}

.empty-state {
	padding: 36px 20px;
	color: var(--muted);
	text-align: center;
}

.loading-block {
	color: var(--muted);
}

@media (max-width: 1050px) {
	.header-inner {
		gap: 14px;
	}

	.brand img {
		width: 190px;
	}

	.brand span {
		display: none;
	}

	.kpi-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.filter-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.filter-actions {
		align-self: end;
	}

	.milestones {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 760px) {
	.site-header {
		position: relative;
	}

	.header-inner {
		min-height: 76px;
		flex-wrap: wrap;
		padding: 12px 16px;
	}

	.brand img {
		width: 185px;
	}

	.mobile-menu-button {
		display: block;
	}

	.portal-navigation {
		display: none;
	}

	.portal-navigation.open {
		display: block !important;
	}

	.portal-navigation-inner {
		display: grid;
		min-height: 0;
		padding: 0 16px;
	}

	.portal-navigation button {
		min-height: 48px;
		border-bottom: 1px solid var(--border);
		color: var(--navy);
		text-align: left;
	}

	.portal-navigation button:last-child {
		border-bottom: 0;
	}

	.portal-navigation button.active {
		background: #eef7fb;
		box-shadow: inset 3px 0 0 var(--cyan);
	}

	.header-actions {
		margin-left: auto;
	}

	.header-actions > .button {
		display: none;
	}

	.account-menu summary {
		max-width: 120px;
	}

	.account-menu-panel {
		position: fixed;
		top: 74px;
		right: 12px;
		left: 12px;
	}

	main {
		padding: 24px 16px 45px;
	}

	.login-layout {
		grid-template-columns: 1fr;
		gap: 28px;
		min-height: auto;
	}

	.login-copy {
		padding-top: 20px;
	}

	.login-copy h1 {
		font-size: 42px;
	}

	.login-panel,
	.panel {
		padding: 20px;
	}

	.page-heading,
	.section-heading,
	.wizard-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.page-heading > .button,
	.page-heading > button {
		width: 100%;
	}

	.kpi-grid,
	.dashboard-grid,
	.form-grid,
	.review-layout,
	.booking-detail-grid,
	.slot-grid,
	.measurement-grid,
	.goods-route-grid,
	.addon-list {
		grid-template-columns: 1fr;
	}

	.kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kpi-card {
		min-height: 120px;
	}

	.kpi-purple {
		grid-column: 1 / -1;
	}

	.guide-steps,
	.milestones {
		grid-template-columns: 1fr;
	}

	.stepper {
		grid-template-columns: repeat(4, minmax(72px, 1fr));
		overflow-x: auto;
	}

	.stepper button {
		justify-content: center;
		padding: 12px 6px;
		font-size: 0;
	}

	.stepper button span {
		font-size: 14px;
	}

	.booking-table {
		display: none;
	}

	.filter-bar,
	.invoice-filter-bar {
		grid-template-columns: 1fr;
	}

	.filter-actions,
	.filter-actions .button {
		width: 100%;
	}

	.booking-mobile-card {
		display: grid;
		gap: 9px;
		padding: 18px;
		border-bottom: 1px solid var(--border);
	}

	.booking-mobile-card dl {
		display: grid;
		grid-template-columns: 110px 1fr;
		gap: 7px;
		margin: 0;
	}

	.pricing-row {
		grid-template-columns: 1fr;
	}

	.pricing-addons {
		grid-column: auto;
	}

	.estimate-totals {
		justify-content: space-between;
		gap: 8px;
	}

	.estimate-totals strong {
		font-size: 15px;
	}

	.wizard-actions > div,
	.wizard-actions .button {
		width: 100%;
	}

	.detail-header {
		flex-direction: column;
	}
}

@media (max-width: 430px) {
	.brand img {
		width: 155px;
	}

	.header-actions {
		order: 4;
		width: 100%;
	}

	.account-menu {
		width: 100%;
	}

	.account-menu summary {
		max-width: none;
		text-align: right;
	}

	.kpi-grid {
		grid-template-columns: 1fr;
	}

	.kpi-purple {
		grid-column: auto;
	}
}
