/* ManMade Cycle design language for customer account pages.
   Source of truth: design_language.md (repo root).
   Scoped under .mmc-page so the rest of the site is untouched.
   Palette is fixed — no green, no ad-hoc hexes. */

:root {
	--mmc-bg: #FFFFFF;        /* Page base (white) */
	--mmc-bg-soft: #FFFFFF;   /* Nested container surfaces (container-in-container) — white */
	--mmc-bg-card: #F8F8F8;   /* Card / container surfaces */
	--mmc-fg: #14140F;
	--mmc-fg-muted: #6B6A63;
	--mmc-fg-faint: #A8A69F;
	--mmc-line: #E4E4E4;
	--mmc-line-strong: #E4E4E4;
	--mmc-accent: #ADBCFF;
	--mmc-accent-deep: #01017C;
	--mmc-accent-soft: #E6EAFF;
	--mmc-radius: 22px;
	--mmc-radius-lg: 32px;
	--mmc-radius-pill: 999px;
	--mmc-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mmc-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mmc-page {
	font-family: var(--mmc-sans);
	color: var(--mmc-fg);
	letter-spacing: -0.005em;
	background: var(--mmc-bg);
}

.mmc-page h1, .mmc-page h2, .mmc-page h3, .mmc-page h4, .mmc-page h5 {
	font-family: var(--mmc-sans);
	font-weight: 600;
	font-style: normal;
	color: var(--mmc-fg);
	letter-spacing: -0.01em;
}

/* Eyebrow label: mono, uppercase, lavender dot inline to the LEFT of the text */
.mmc-eyebrow {
	font-family: var(--mmc-mono);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mmc-fg-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.mmc-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mmc-accent);
	flex: 0 0 auto;
}

/* Cards */
.mmc-card {
	background: var(--mmc-bg-card);
	border: 1px solid var(--mmc-line);
	border-radius: var(--mmc-radius);
	padding: 28px;
	margin-bottom: 20px;
	transition: border-color 0.2s ease;
}
.mmc-card:hover {
	border-color: var(--mmc-line-strong);
}
.mmc-card-lg {
	border-radius: var(--mmc-radius-lg);
}

/* Buttons */
.mmc-btn {
	display: inline-block;
	font-family: var(--mmc-sans);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	padding: 14px 26px;
	border-radius: var(--mmc-radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mmc-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}
.mmc-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px var(--mmc-accent-soft);
}
.mmc-btn-primary {
	background: var(--mmc-accent-deep);
	color: #ffffff;
}
.mmc-btn-primary:hover {
	background: #02029a;
	color: #ffffff;
}
.mmc-btn-ghost {
	background: transparent;
	color: var(--mmc-fg);
	border-color: var(--mmc-line-strong);
}
.mmc-btn-ghost:hover {
	color: var(--mmc-fg);
	border-color: var(--mmc-fg);
}
.mmc-btn-sm {
	padding: 10px 18px;
	font-size: 13px;
}
.mmc-btn[disabled], .mmc-btn.disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* Status badges — restrained tints only, never saturated bootstrap colors.
   Positive states use lavender/indigo (no green anywhere). */
.mmc-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 7px 14px;
	border-radius: var(--mmc-radius-pill);
	border: 1px solid transparent;
	vertical-align: middle;
}
.mmc-badge-positive {
	background: var(--mmc-accent-soft);
	color: var(--mmc-accent-deep);
}
.mmc-badge-active {
	background: var(--mmc-accent);
	color: var(--mmc-accent-deep);
}
.mmc-badge-neutral {
	background: var(--mmc-bg-soft);
	color: var(--mmc-fg-muted);
	border-color: var(--mmc-line);
}
.mmc-badge-muted {
	background: transparent;
	color: var(--mmc-fg-faint);
	border-color: var(--mmc-line);
}
.mmc-badge-attention {
	background: var(--mmc-fg);
	color: var(--mmc-bg);
}

/* Forms */
.mmc-page .mmc-input,
.mmc-page input.form-control.mmc-input,
.mmc-page textarea.form-control.mmc-input,
.mmc-page select.form-control.mmc-input {
	background: #ffffff;
	border: 1px solid var(--mmc-line-strong);
	border-radius: 14px;
	color: var(--mmc-fg);
	font-family: var(--mmc-sans);
	font-size: 15px;
	padding: 12px 16px;
	height: auto;
	/* Override the global ".user-account select { width:100px; float:right;
	   text-align:center }" so our selects fill the column and sit under their
	   left-aligned labels instead of floating to the right edge. */
	width: 100%;
	float: none;
	text-align: left;
}
/* Inputs and selects share one fixed height so side-by-side fields align */
.mmc-page input.mmc-input,
.mmc-page select.mmc-input {
	height: 48px;
	line-height: 22px;
}
.mmc-page select.mmc-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%2301017C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.mmc-page .mmc-input:focus {
	border-color: var(--mmc-accent-deep);
	box-shadow: 0 0 0 3px var(--mmc-accent-soft);
	outline: none;
}

/* Spinner — 16px circular arc, 2px stroke, sits left of the label (LoaderCircle-style) */
.mmc-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -3px;
	margin-right: 8px;
	animation: mmc-spin 0.8s linear infinite;
}
@keyframes mmc-spin {
	to { transform: rotate(360deg); }
}

/* Upload icon — sits left of the label, swapped for the spinner while loading */
.mmc-upload-icon {
	display: inline-block;
	vertical-align: -3px;
	margin-right: 8px;
	line-height: 0;
}
.mmc-upload-icon svg {
	display: block;
}

/* Upload button — pale lavender fill, deep indigo text (matches the positive badge) */
.mmc-btn-upload {
	background: var(--mmc-accent-soft);
	color: var(--mmc-accent-deep);
	border-color: transparent;
	margin-bottom: 0;
}
.mmc-btn-upload:hover {
	background: var(--mmc-accent);
	color: var(--mmc-accent-deep);
}
.mmc-file-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Datepicker */
.mmc-dp-wrap {
	position: relative;
}
.mmc-dp-input {
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='2.5' width='13' height='12' rx='2.5' fill='none' stroke='%2301017C' stroke-width='1.5'/%3E%3Cpath d='M1.5 6h13' stroke='%2301017C' stroke-width='1.5'/%3E%3Cpath d='M5 1v3M11 1v3' stroke='%2301017C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.mmc-datepicker {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 50;
	background: var(--mmc-bg-card);
	border: 1px solid var(--mmc-line-strong);
	border-radius: var(--mmc-radius);
	padding: 16px;
	width: 292px;
	box-shadow: 0 12px 32px rgba(20, 20, 15, 0.14);
	display: none;
}
.mmc-datepicker.open {
	display: block;
}
.mmc-dp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.mmc-dp-title {
	font-family: var(--mmc-sans);
	font-weight: 600;
	font-size: 14px;
	color: var(--mmc-fg);
}
.mmc-dp-nav {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--mmc-line-strong);
	background: transparent;
	color: var(--mmc-fg);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.mmc-dp-nav:hover {
	border-color: var(--mmc-fg);
}
.mmc-dp-nav[disabled] {
	opacity: 0.3;
	pointer-events: none;
}
.mmc-dp-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.mmc-dp-dow {
	font-family: var(--mmc-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--mmc-fg-faint);
	text-align: center;
	padding: 6px 0;
}
.mmc-dp-day {
	width: 100%;
	height: 34px;
	border: none;
	background: transparent;
	border-radius: var(--mmc-radius-pill);
	font-family: var(--mmc-sans);
	font-size: 13px;
	color: var(--mmc-fg);
	cursor: pointer;
	padding: 0;
}
.mmc-dp-day:hover {
	background: var(--mmc-accent-soft);
	color: var(--mmc-accent-deep);
}
.mmc-dp-day.today {
	border: 1px solid var(--mmc-line-strong);
}
.mmc-dp-day.selected {
	background: var(--mmc-accent);
	color: var(--mmc-accent-deep);
	font-weight: 600;
}
.mmc-dp-day.disabled {
	color: var(--mmc-fg-faint);
	pointer-events: none;
	opacity: 0.45;
}
.mmc-dp-day.empty {
	visibility: hidden;
	pointer-events: none;
}
.mmc-label {
	font-weight: 500;
	font-size: 14px;
	color: var(--mmc-fg);
	margin-bottom: 8px;
	display: block;
}
.mmc-hint {
	font-size: 13px;
	color: var(--mmc-fg-muted);
	margin-top: 6px;
}

/* Selectable option tiles (radio cards) */
.mmc-option {
	display: block;
	background: #ffffff;
	border: 1px solid var(--mmc-line-strong);
	border-radius: var(--mmc-radius);
	padding: 20px 22px;
	cursor: pointer;
	margin-bottom: 12px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.mmc-option:hover {
	border-color: var(--mmc-fg);
}
.mmc-option input[type="radio"],
.mmc-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mmc-option.selected {
	background: var(--mmc-accent-soft);
	border-color: var(--mmc-accent-deep);
}
.mmc-option .mmc-option-title {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	color: var(--mmc-fg);
}
.mmc-option.selected .mmc-option-title {
	color: var(--mmc-accent-deep);
}
.mmc-option .mmc-option-desc {
	font-size: 13px;
	color: var(--mmc-fg-muted);
	margin: 0;
}

/* Wizard steps */
.mmc-wizard-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--mmc-line);
}
.mmc-wizard-steps .mmc-step-label {
	font-family: var(--mmc-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mmc-fg-faint);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}
.mmc-wizard-steps .mmc-step-label::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mmc-line-strong);
	flex: 0 0 auto;
	transition: background 0.15s ease;
}
.mmc-wizard-steps .mmc-step-label.active {
	color: var(--mmc-accent-deep);
}
.mmc-wizard-steps .mmc-step-label.active::before {
	background: var(--mmc-accent);
}
.mmc-wizard-steps .mmc-step-label.done {
	color: var(--mmc-fg-muted);
}
.mmc-wizard-steps .mmc-step-label.done::before {
	background: var(--mmc-accent-deep);
}
.mmc-wizard-step {
	display: none;
}
.mmc-wizard-step.active {
	display: block;
}

/* Promo panel (USB erasure pitch) — pale lavender, hairline, no left-border accent */
.mmc-promo {
	background: var(--mmc-accent-soft);
	border: 1px solid var(--mmc-line);
	border-radius: var(--mmc-radius);
	padding: 22px 24px;
	margin-top: 18px;
}
.mmc-promo p {
	color: var(--mmc-fg);
	margin: 0 0 10px 0;
}

/* Review summary rows */
.mmc-review-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--mmc-line);
	font-size: 14px;
}
.mmc-review-row:last-child {
	border-bottom: none;
}
.mmc-review-row .mmc-review-key {
	color: var(--mmc-fg-muted);
	flex: 0 0 auto;
}
.mmc-review-row .mmc-review-val {
	text-align: right;
	font-weight: 500;
}

/* Detail rows on cards */
.mmc-meta {
	font-size: 14px;
	color: var(--mmc-fg-muted);
	margin-bottom: 8px;
}
.mmc-meta strong {
	color: var(--mmc-fg);
	font-weight: 500;
	margin-right: 6px;
}

/* Photo thumbnails */
.mmc-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.mmc-thumbs a {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--mmc-line-strong);
}
.mmc-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Tables (invoices list) */
.mmc-table {
	width: 100%;
	border-collapse: collapse;
}
.mmc-table th {
	font-family: var(--mmc-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 500;
	color: var(--mmc-fg-muted);
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--mmc-line-strong);
}
.mmc-table td {
	padding: 16px 12px;
	font-size: 14px;
	border-bottom: 1px solid var(--mmc-line);
	vertical-align: middle;
	/* Override the global ".user-account table { text-align:center }" so cells
	   line up under their left-aligned headers. */
	text-align: left;
}
.mmc-table tr:last-child td {
	border-bottom: none;
}

/* Repeatable parcel line */
.mmc-parcel-line {
	background: #ffffff;
	border: 1px solid var(--mmc-line);
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 10px;
}

.mmc-empty {
	background: var(--mmc-bg-card);
	border: 1px solid var(--mmc-line);
	border-radius: var(--mmc-radius);
	padding: 36px 28px;
	text-align: center;
	color: var(--mmc-fg-muted);
}

/* Asset entry line (manual / bulk wizard rows) */
.mmc-asset-line {
	background: #ffffff;
	border: 1px solid var(--mmc-line);
	border-radius: 14px;
	padding: 14px 14px 2px;
	margin-bottom: 10px;
}

/* Job timeline */
.mmc-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mmc-tl-item {
	position: relative;
	padding: 0 0 22px 26px;
}
.mmc-tl-item:before {
	content: "";
	position: absolute;
	left: 6px;
	top: 16px;
	bottom: -2px;
	width: 2px;
	background: var(--mmc-line-strong);
}
.mmc-tl-item:last-child:before { display: none; }
.mmc-tl-dot {
	position: absolute;
	left: 0;
	top: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid var(--mmc-line-strong);
}
.mmc-tl-item.done .mmc-tl-dot {
	background: var(--mmc-accent-deep);
	border-color: var(--mmc-accent-deep);
}
.mmc-tl-item.current .mmc-tl-dot {
	background: var(--mmc-accent);
	border-color: var(--mmc-accent-deep);
	box-shadow: 0 0 0 4px var(--mmc-accent-soft);
}
.mmc-tl-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--mmc-fg-muted);
}
.mmc-tl-item.done .mmc-tl-label,
.mmc-tl-item.current .mmc-tl-label {
	color: var(--mmc-fg);
}
.mmc-tl-item.current .mmc-tl-label {
	font-weight: 600;
	color: var(--mmc-accent-deep);
}
.mmc-tl-date {
	display: block;
	font-size: 12px;
	color: var(--mmc-fg-muted);
	margin-top: 1px;
}

/* Compact inline checkboxes (e.g. document choices on the job review step) */
.mmc-check-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mmc-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--mmc-fg);
	margin-bottom: 0;
	cursor: pointer;
}
.mmc-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--mmc-accent-deep);
	margin: 0;
}

@media (max-width: 767px) {
	.mmc-card {
		padding: 20px;
	}
	.mmc-review-row {
		flex-direction: column;
		gap: 2px;
	}
	.mmc-review-row .mmc-review-val {
		text-align: left;
	}
}

/* Suburb autocomplete (mmc-suburb-autocomplete.js) */
.mmc-page .mmc-suburb-wrap {
	position: relative;
}
.mmc-page .mmc-suburb-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1050;
	margin-top: 4px;
	background: #ffffff;
	border: 1px solid var(--mmc-line-strong);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(20, 20, 15, 0.12);
	overflow: hidden;
	max-height: 264px;
	overflow-y: auto;
}
.mmc-page .mmc-suburb-item {
	padding: 10px 16px;
	font-family: var(--mmc-sans);
	font-size: 14px;
	color: var(--mmc-fg);
	cursor: pointer;
}
.mmc-page .mmc-suburb-item + .mmc-suburb-item {
	border-top: 1px solid var(--mmc-line);
}
.mmc-page .mmc-suburb-item:hover,
.mmc-page .mmc-suburb-item.active {
	background: var(--mmc-accent-soft);
	color: var(--mmc-accent-deep);
}

/* Statistics tiles — one card per service, white tiles inside */
.mmc-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 18px;
}
.mmc-stat {
	background: #ffffff;
	border: 1px solid var(--mmc-line);
	border-radius: 14px;
	padding: 18px 20px;
}
.mmc-stat-label {
	display: block;
	font-family: var(--mmc-mono);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mmc-fg-muted);
	margin-bottom: 10px;
}
.mmc-stat-value {
	display: block;
	font-family: var(--mmc-sans);
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--mmc-fg);
}
/* Headline money tile — lavender as a precise accent, never flooded */
.mmc-stat-highlight {
	background: var(--mmc-accent-soft);
	border-color: transparent;
}
.mmc-stat-highlight .mmc-stat-label,
.mmc-stat-highlight .mmc-stat-value {
	color: var(--mmc-accent-deep);
}
