/*
 * Nailux client portal.
 *
 * Matches the V1 design: near-black dominant, editorial serif headings,
 * one peach accent used sparingly. Scoped under .nxp so it cannot leak
 * into the rest of the theme.
 */

.nxp {
	--nxp-ink: #0a0a0b;
	--nxp-surface: #141416;
	--nxp-line: #242428;
	--nxp-white: #fff;
	--nxp-soft: #8e9398;
	--nxp-dim: #5e5e64;
	--nxp-peach: #f09c72;
	--nxp-danger: #e0674a;

	/* Bridge to the shared invoice-thread component. .nxa maps the same
	   names onto the light staff palette, so one component serves both. */
	--t-bg: var(--nxp-surface);
	--t-line: var(--nxp-line);
	--t-text: var(--nxp-white);
	--t-muted: var(--nxp-soft);
	--t-dim: var(--nxp-dim);
	--t-accent: var(--nxp-peach);
	--t-danger: var(--nxp-danger);

	max-width: 560px;
	margin: 0 auto;
	padding: 24px 20px 56px;
	background: var(--nxp-ink);
	color: var(--nxp-white);
	font-family: "Outfit", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	box-sizing: border-box;
}

.nxp *,
.nxp *::before,
.nxp *::after { box-sizing: inherit; }

.nxp-h1 {
	font-family: "Outfit", system-ui, -apple-system, sans-serif;
	font-size: 36px;
	line-height: 1.05;
	font-weight: 400;
	margin: 0 0 10px;
	color: var(--nxp-white);
}

.nxp-h2 {
	font-family: "Outfit", system-ui, -apple-system, sans-serif;
	font-size: 21px;
	font-weight: 400;
	margin: 0 0 14px;
	color: var(--nxp-white);
}

.nxp-lede { color: var(--nxp-soft); margin: 0 0 24px; }
.nxp-lede-sm { color: var(--nxp-soft); font-size: 13px; margin: -6px 0 14px; }

.nxp-eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	color: var(--nxp-soft);
	margin-bottom: 4px;
}

.nxp-eyebrow-accent { color: var(--nxp-peach); }

.nxp-label-sm {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: var(--nxp-soft);
	margin-bottom: 6px;
}

/* ---------- Form ---------- */

.nxp-form { margin: 0 0 20px; }

.nxp-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin: 0 0 7px;
}

.nxp-input {
	display: block;
	width: 100%;
	padding: 15px 14px;
	margin: 0 0 6px;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	font-family: inherit;
	color: var(--nxp-white);
	background: var(--nxp-surface);
	border: 1px solid #2a2a2e;
	border-radius: 11px;
	-webkit-appearance: none;
	appearance: none;
}

.nxp-input::placeholder { color: var(--nxp-dim); }

.nxp-input:focus {
	outline: 2px solid var(--nxp-peach);
	outline-offset: 2px;
	border-color: transparent;
}

.nxp-input-code { letter-spacing: 3px; text-transform: uppercase; }

.nxp-hint { font-size: 12px; color: var(--nxp-dim); margin: 0 0 18px; }

.nxp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 18px;
	border: 0;
	border-radius: 11px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

/*
 * Themes style bare <button> and <a> elements aggressively, and a theme
 * rule like `.wp-block-button__link` or `button { background: ... }` will
 * beat a single class. Raise specificity with the element selector and
 * pin the colours, otherwise the primary button inherits whatever accent
 * the active theme happens to use.
 */
.nxp button.nxp-btn,
.nxp a.nxp-btn,
.nxp input[type="submit"].nxp-btn {
	font-family: inherit;
	border: 0;
	border-radius: 11px;
	text-decoration: none;
}

.nxp button.nxp-btn-primary,
.nxp a.nxp-btn-primary,
.nxp input[type="submit"].nxp-btn-primary {
	background: var(--nxp-white) !important;
	background-image: none !important;
	color: var(--nxp-ink) !important;
	border-color: var(--nxp-white) !important;
}

.nxp button.nxp-btn-primary:hover,
.nxp a.nxp-btn-primary:hover,
.nxp input[type="submit"].nxp-btn-primary:hover {
	background: #ececec !important;
	color: var(--nxp-ink) !important;
}

.nxp-btn-small {
	width: auto;
	padding: 10px 14px;
	font-size: 13px;
	white-space: nowrap;
}

.nxp-error {
	background: rgba(224, 103, 74, 0.1);
	border: 1px solid var(--nxp-danger);
	color: #ffb9a6;
	border-radius: 11px;
	padding: 13px 14px;
	font-size: 13.5px;
	margin: 0 0 20px;
}

.nxp-help { text-align: center; font-size: 13px; color: var(--nxp-soft); }
.nxp-help a { color: var(--nxp-white); font-weight: 600; }

.nxp-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: var(--nxp-surface);
	border-radius: 11px;
	padding: 14px;
	margin-top: 26px;
}

.nxp-note p { margin: 0; font-size: 12px; color: var(--nxp-soft); line-height: 1.5; }
.nxp-note-icon { font-size: 14px; line-height: 1.4; }

/* ---------- File ---------- */

.nxp-topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 4px;
}

.nxp-topbar .nxp-h1 { font-size: 30px; margin: 0; }
.nxp-signout { font-size: 12px; color: var(--nxp-soft); white-space: nowrap; }
.nxp-greeting { color: var(--nxp-soft); font-size: 13px; margin: 6px 0 22px; }

.nxp-waiting {
	display: block;
	background: rgba(240, 156, 114, 0.12);
	border: 1px solid rgba(240, 156, 114, 0.4);
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 18px;
	font-size: 13.5px;
}

.nxp-waiting strong { display: block; color: var(--nxp-peach); margin-bottom: 3px; }
.nxp-waiting span { color: var(--nxp-white); }

.nxp-progress-card {
	background: var(--nxp-surface);
	border-radius: 13px;
	padding: 16px;
	margin-bottom: 14px;
}

.nxp-progress-head {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	color: var(--nxp-soft);
	margin-bottom: 10px;
}

.nxp-progress-head strong { color: var(--nxp-white); }

.nxp-bar {
	height: 7px;
	background: #242428;
	border-radius: 100px;
	overflow: hidden;
}

.nxp-bar span { display: block; height: 100%; background: var(--nxp-peach); border-radius: 100px; }

.nxp-latest {
	background: #1b1410;
	border: 1px solid #3a2a20;
	border-radius: 13px;
	padding: 15px;
	margin-bottom: 14px;
}

.nxp-latest p { margin: 0; font-size: 14px; }

.nxp-next,
.nxp-verify {
	background: var(--nxp-surface);
	border-radius: 13px;
	padding: 15px;
	margin-bottom: 14px;
}

.nxp-next p,
.nxp-verify p { margin: 0; font-size: 13.5px; color: var(--nxp-soft); }
.nxp-next strong,
.nxp-verify strong { color: var(--nxp-white); }

.nxp-section { margin: 30px 0; }

/* Stages */

.nxp-stages { list-style: none; margin: 0; padding: 0; }

.nxp-stage {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid var(--nxp-line);
}

.nxp-stage:last-child { border-bottom: 0; }

/*
 * The progress markers.
 *
 * Done is a tick. Everything else is an empty ring.
 *
 * They used to differ only in fill — a white disc for done, a peach
 * disc for in progress, an outlined one for not started. Three filled
 * circles in slightly different colours is not a difference you can
 * read down a column on a phone, in sunlight, on a screen at 17%
 * battery. A tick is not a colour you have to learn; it is the only
 * mark here that means finished without a legend.
 *
 * The live state keeps the ring and puts a dot inside it, so a glance
 * down a service separates the three states by shape: ticked, dotted,
 * empty.
 */
.nxp-marker {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 100px;
	border: 1.5px solid #3a3a40;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 62%;
}

/*
 * Child combinators, not descendants. A step sits inside its service,
 * so `.nxp-svc--now .nxp-marker` reaches every step marker in a live
 * service as well as the service's own — which painted all of them the
 * same and made the states indistinguishable. The marker must be styled
 * by its own row's state and nothing else's.
 */
.nxp-stage--done > .nxp-marker,
.nxp-svc--done > .nxp-svc-head > .nxp-marker,
.nxp-step--done > .nxp-marker {
	background-color: var(--nxp-peach);
	border-color: var(--nxp-peach);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.nxp-stage--in_progress > .nxp-marker,
.nxp-stage--waiting > .nxp-marker,
.nxp-svc--now > .nxp-svc-head > .nxp-marker,
.nxp-step--in_progress > .nxp-marker,
.nxp-step--waiting > .nxp-marker {
	border-color: var(--nxp-peach);
	background-image: radial-gradient(circle at center, var(--nxp-peach) 0 34%, transparent 35%);
	background-size: 100%;
}

.nxp-stage--hold > .nxp-marker,
.nxp-svc--hold > .nxp-svc-head > .nxp-marker,
.nxp-step--hold > .nxp-marker {
	border-color: var(--nxp-danger);
	background-image: radial-gradient(circle at center, var(--nxp-danger) 0 34%, transparent 35%);
	background-size: 100%;
}

.nxp-stage-body { display: flex; flex-direction: column; gap: 2px; }
.nxp-stage-title { font-size: 14px; font-weight: 500; }
.nxp-stage-meta { font-size: 11.5px; color: var(--nxp-soft); }
.nxp-stage--not_started .nxp-stage-title { color: var(--nxp-dim); }

/* Documents */

.nxp-docs { list-style: none; margin: 0; padding: 0; }
.nxp-docs li { margin-bottom: 9px; }

.nxp-docs a {
	display: flex;
	gap: 12px;
	align-items: center;
	background: var(--nxp-surface);
	border-radius: 12px;
	padding: 13px;
	text-decoration: none;
	color: var(--nxp-white);
}

.nxp-doc-kind {
	flex: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #242428;
	border-radius: 9px;
	font-size: 10px;
	font-weight: 600;
}

.nxp-doc-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nxp-doc-body strong { font-size: 13.5px; }
.nxp-doc-body span { font-size: 11px; color: var(--nxp-soft); }
.nxp-doc-action { color: var(--nxp-dim); }

/* Photos */

.nxp-photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}

.nxp-photos figure { margin: 0; }

.nxp-photos img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	background: var(--nxp-surface);
}

.nxp-photos figcaption {
	font-size: 10.5px;
	color: var(--nxp-soft);
	margin-top: 6px;
}

/* History */

.nxp-history { list-style: none; margin: 0; padding: 0; }

.nxp-history li {
	padding: 12px 0;
	border-bottom: 1px solid var(--nxp-line);
	font-size: 13.5px;
	color: var(--nxp-soft);
}

.nxp-history-date {
	display: block;
	font-size: 11px;
	color: var(--nxp-dim);
	margin-bottom: 3px;
}

/* Officer */

.nxp-officer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	background: var(--nxp-surface);
	border-radius: 13px;
	padding: 14px;
	margin: 26px 0 18px;
}

.nxp-officer strong { font-size: 14px; }

.nxp-access-log {
	font-size: 11.5px;
	color: var(--nxp-dim);
	line-height: 1.5;
	margin: 0;
}

/* Small screens */

@media (max-width: 400px) {
	.nxp-h1 { font-size: 30px; }
	.nxp-photos img { height: 104px; }
}

/* ==================================================================
   Staff area
   Phone first. An officer posts the update standing on the plot; if
   that needs a desk, the update never gets written.
================================================================== */

.nxp-staff { max-width: 720px; }

.nxp-staff-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--nxp-line);
}

.nxp-staff-logo {
	font-family: "Outfit", system-ui, -apple-system, sans-serif;
	font-size: 22px;
	color: var(--nxp-white);
	text-decoration: none;
}

.nxp-staff-logo span { color: var(--nxp-soft); }

.nxp-staff-bar-right { display: flex; align-items: center; gap: 14px; }
.nxp-staff-who { font-size: 12.5px; color: var(--nxp-soft); }
.nxp-staff-out { font-size: 12.5px; color: var(--nxp-white); }

.nxp-back {
	display: inline-block;
	font-size: 12.5px;
	color: var(--nxp-soft);
	text-decoration: none;
	margin-bottom: 14px;
}

.nxp-back:hover { color: var(--nxp-white); }

.nxp-staff-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.nxp-staff-head .nxp-h1 { font-size: 30px; margin-bottom: 4px; }

.nxp-pill {
	flex: none;
	padding: 6px 11px;
	border-radius: 100px;
	background: var(--nxp-surface);
	font-size: 11.5px;
	font-weight: 600;
}

.nxp-flagtext { color: var(--nxp-peach); }

.nxp-ok {
	background: rgba(240, 156, 114, .12);
	border: 1px solid rgba(240, 156, 114, .4);
	color: var(--nxp-white);
	border-radius: 11px;
	padding: 13px 14px;
	font-size: 13.5px;
	margin-bottom: 18px;
}

.nxp-search { margin-bottom: 16px; }
.nxp-search .nxp-input { margin-bottom: 0; }

.nxp-empty { color: var(--nxp-soft); font-size: 14px; padding: 20px 0; }

/* Client list */

.nxp-clients { list-style: none; margin: 0; padding: 0; }
.nxp-clients li { margin-bottom: 9px; }

.nxp-client {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
	border-radius: 12px;
	background: var(--nxp-surface);
	text-decoration: none;
	color: var(--nxp-white);
}

.nxp-client:hover { background: #1b1b1e; }

.nxp-client-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nxp-client-top { display: flex; align-items: center; gap: 8px; }
.nxp-client-top strong { font-size: 14.5px; }
.nxp-client-sub { font-size: 11.5px; color: var(--nxp-soft); }
.nxp-client-stage { font-size: 12px; color: var(--nxp-white); opacity: .8; }

.nxp-flag {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--nxp-peach);
	flex: none;
}

.nxp-client-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 7px;
	flex: none;
}

.nxp-minibar {
	display: block;
	width: 56px;
	height: 5px;
	border-radius: 100px;
	background: #242428;
	overflow: hidden;
}

.nxp-minibar span { display: block; height: 100%; background: var(--nxp-white); }

.nxp-client-days { font-size: 11px; color: var(--nxp-dim); }
.nxp-client-days.is-stale { color: var(--nxp-peach); }

/* Cards */

.nxp-card {
	background: var(--nxp-surface);
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 14px;
}

.nxp-card .nxp-h2 {
	font-size: 18px;
	margin: 22px 0 8px;
}

.nxp-card .nxp-h2:first-of-type { margin-top: 0; }

.nxp-card .nxp-input { background: #0f0f11; }

.nxp-textarea { min-height: 84px; resize: vertical; font-family: inherit; line-height: 1.5; }

.nxp-select,
.nxp-date { -webkit-appearance: none; appearance: none; }

.nxp-select {
	background-image: linear-gradient(45deg, transparent 50%, #8e9398 50%), linear-gradient(135deg, #8e9398 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

.nxp-stagerow {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 12px 0;
	border-bottom: 1px solid #242428;
}

.nxp-stagerow:last-of-type { border-bottom: 0; }
.nxp-stagename { font-size: 13.5px; font-weight: 500; }
.nxp-stagefields { display: flex; gap: 8px; }
.nxp-stagefields .nxp-input { margin-bottom: 0; flex: 1; min-width: 0; }

.nxp-file {
	display: block;
	width: 100%;
	padding: 16px 14px;
	margin-bottom: 12px;
	border: 1px dashed #343439;
	border-radius: 11px;
	background: #0f0f11;
	color: var(--nxp-soft);
	font-size: 13px;
	font-family: inherit;
}

.nxp-filelist {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.nxp-filelist li {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px;
	border-radius: 10px;
	background: #0f0f11;
}

.nxp-filelist img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 7px;
	flex: none;
}

.nxp-filekind {
	width: 46px;
	height: 46px;
	border-radius: 7px;
	background: #242428;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9.5px;
	font-weight: 600;
	flex: none;
}

.nxp-filemeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nxp-filemeta strong { font-size: 12.5px; }
.nxp-filemeta span { font-size: 10.5px; color: var(--nxp-soft); }

/* The access code, shown exactly once */

.nxp-codebox {
	background: #1b1410;
	border: 1px solid #3a2a20;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 16px;
}

.nxp-code {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 4px;
	margin: 8px 0;
}

.nxp-code-note {
	font-size: 12px;
	color: var(--nxp-soft);
	line-height: 1.5;
	margin-bottom: 14px;
}

.nxp-btn-ghost {
	background: transparent;
	border: 1px solid #343439;
	color: var(--nxp-white);
	font-weight: 400;
}

.nxp-btn-ghost:hover { border-color: #4a4a50; }

.nxp-staff-login { max-width: 420px; }

@media (min-width: 620px) {
	.nxp-stagerow {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.nxp-stagename { flex: 1; }
	.nxp-stagefields { flex: none; width: 320px; }
}

/* ==================================================================
   Invoices
================================================================== */

.nxp-duebanner {
	background: rgba(240, 156, 114, .12);
	border: 1px solid rgba(240, 156, 114, .4);
	border-radius: 11px;
	padding: 12px 14px;
	font-size: 14px;
	margin-bottom: 14px;
}

.nxp-duebanner strong { color: var(--nxp-peach); }

.nxp-invoices { list-style: none; margin: 0 0 14px; padding: 0; }
.nxp-invoices li { margin-bottom: 9px; }

.nxp-invoice {
	background: #0f0f11;
	border-radius: 11px;
	padding: 13px;
}

.nxp-invoice-link,
.nxp-invoice-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-decoration: none;
	color: var(--nxp-white);
}

.nxp-invoice-main { flex-direction: column; align-items: flex-start; gap: 2px; }
.nxp-invoice-link .nxp-invoice-main { flex: 1; min-width: 0; }
.nxp-invoice-meta { font-size: 11.5px; color: var(--nxp-soft); }

.nxp-invoice-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.nxp-invoice-amount { font-size: 14.5px; font-weight: 600; }

.nxp-tag {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .9px;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 100px;
	border: 1px solid transparent;
	white-space: nowrap;
}

.nxp-tag--due { background: #242428; color: #cfcfd4; }
.nxp-tag--paid { background: rgba(255, 255, 255, .92); color: var(--nxp-ink); }
.nxp-tag--overdue { background: rgba(224, 103, 74, .16); border-color: #e0674a; color: #ffb9a6; }
.nxp-tag--cancelled { background: transparent; border-color: #343439; color: var(--nxp-dim); }

.nxp-invoice-actions {
	display: flex;
	gap: 8px;
	margin-top: 11px;
	flex-wrap: wrap;
}

.nxp-invoice-actions form { margin: 0; }
.nxp-invoice-paid { font-size: 11.5px; color: var(--nxp-soft); margin-top: 8px; }

.nxp-newinvoice { margin-top: 6px; }

.nxp-newinvoice summary {
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	padding: 11px 0;
}

.nxp-linerow { display: flex; flex-direction: column; gap: 7px; margin-bottom: 11px; }
.nxp-linerow .nxp-input { margin-bottom: 0; }
.nxp-amount { max-width: 100%; }

@media (min-width: 620px) {
	.nxp-linerow { flex-direction: row; }
	.nxp-linerow .nxp-select { flex: 0 0 190px; }
	.nxp-linerow .nxp-input[type="text"] { flex: 1; min-width: 0; }
	.nxp-amount { flex: 0 0 130px !important; }
}

/* The printable invoice */

.nxp-invoicepage { max-width: 680px; }

.nxp-doc {
	background: var(--nxp-white);
	color: var(--nxp-ink);
	border-radius: 14px;
	padding: 28px 24px;
}

.nxp-doc-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e4e4e7;
}

.nxp-doc-brand {
	font-family: "Outfit", system-ui, -apple-system, sans-serif;
	font-size: 26px;
	margin: 0;
}

.nxp-doc-sub { font-size: 12px; color: #6b7074; margin: 2px 0 0; }
.nxp-doc-id { text-align: right; }
.nxp-doc-number { font-size: 14px; font-weight: 600; margin: 0 0 7px; }

.nxp-doc .nxp-tag--due { background: #f1f1f3; color: #3a3a3f; }
.nxp-doc .nxp-tag--paid { background: var(--nxp-ink); color: var(--nxp-white); }

.nxp-doc-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid #e4e4e7;
}

.nxp-doc-meta .nxp-label-sm { color: #8a8f94; }
.nxp-doc-meta p { font-size: 13.5px; margin: 3px 0 0; }

.nxp-doc-lines {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	font-size: 13.5px;
}

.nxp-doc-lines th {
	text-align: left;
	font-size: 9.5px;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: #8a8f94;
	padding-bottom: 9px;
	font-weight: 600;
}

.nxp-doc-lines td { padding: 11px 0; border-top: 1px solid #efeff1; }
.nxp-right { text-align: right; }

.nxp-doc-lines tfoot th,
.nxp-doc-lines tfoot td {
	border-top: 2px solid var(--nxp-ink);
	padding-top: 12px;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--nxp-ink);
}

.nxp-doc-note {
	font-size: 13px;
	color: #4a5054;
	line-height: 1.55;
	padding: 12px 0;
}

.nxp-doc-paid {
	background: #f3f3f5;
	border-radius: 9px;
	padding: 13px;
	font-size: 13.5px;
	font-weight: 600;
}

.nxp-doc-pay {
	background: #f7f7f8;
	border-radius: 9px;
	padding: 15px;
	margin-top: 10px;
}

.nxp-doc-pay p { font-size: 13.5px; line-height: 1.6; margin: 5px 0 0; color: var(--nxp-ink); }

.nxp-doc-warn {
	font-size: 11.5px !important;
	color: #7a4526 !important;
	line-height: 1.5 !important;
	margin-top: 11px !important;
	padding-top: 11px;
	border-top: 1px solid #e6e6e9;
}

.nxp-doc-actions { margin-top: 16px; }

@media print {
	.nxp-noprint { display: none !important; }
	body { background: #fff !important; }
	.nxp, .nxp-invoicepage { background: #fff !important; padding: 0 !important; max-width: none !important; }
	.nxp-doc { border-radius: 0; padding: 0; }
}

/* Invoice document — sections, schedule, verification */

.nxp-doc-logo { max-width: 190px; height: auto; }
.nxp-doc-name { font-family: "Outfit", system-ui, -apple-system, sans-serif; font-size: 28px; margin: 0; }
.nxp-doc-tag { font-size: 9.5px; letter-spacing: 2.4px; text-transform: uppercase; color: #6b7074; margin: 2px 0 0; }
.nxp-doc-contact { text-align: right; font-size: 11.5px; color: #4a5054; line-height: 1.6; }
.nxp-doc-contact p { margin: 0; }
.nxp-doc-contact .nxp-doc-legal { color: #1d2224; font-weight: 600; }

.nxp-doc-rule { height: 3px; background: var(--nxp-peach); margin: 16px 0 18px; }

.nxp-doc-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.nxp-doc-title { font-size: 26px; letter-spacing: 5px; text-transform: uppercase; margin: 0; font-weight: 600; }

.nxp-doc-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.nxp-doc-boxes > div { background: #fdf0e9; border-radius: 7px; padding: 11px 12px; }
.nxp-doc-boxes .nxp-label-sm { color: #8a6a57; }
.nxp-doc-boxes p { font-size: 13.5px; font-weight: 600; margin: 3px 0 0; }

.nxp-doc-strong { font-weight: 600; }

.nxp-doc-section {
	font-size: 11px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	margin: 22px 0 4px;
	color: var(--nxp-ink);
	font-weight: 600;
}

.nxp-doc-sectionnote { font-size: 11.5px; color: #6b7074; margin: 0 0 8px; }
.nxp-doc-receipts { font-size: 11.5px; color: #4a5054; line-height: 1.55; margin: -4px 0 0; }
.nxp-center { text-align: center; }
.nxp-dim { color: #8a8f94; }

.nxp-doc-lines thead tr { background: var(--nxp-ink); }
.nxp-doc-lines thead th { color: #fff; padding: 9px 10px; }
.nxp-doc-lines tbody td { padding: 10px; }
.nxp-doc-lines tfoot td,
.nxp-doc-lines tfoot th { padding: 9px 10px; }
.nxp-doc-subtotal td { border-top: 1px solid #efeff1; font-size: 12.5px; color: #4a5054; }

.nxp-doc-grand { margin-top: 6px; }
.nxp-doc-grand .nxp-doc-total th,
.nxp-doc-grand .nxp-doc-total td { background: var(--nxp-peach); border-top: 0; }

.nxp-doc-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.nxp-doc-schedule > div { background: #fdf0e9; border-radius: 7px; padding: 13px; }
.nxp-doc-big { font-size: 20px; font-weight: 600; margin: 4px 0 0; }

.nxp-doc-payments { border-top: 1px solid #efeff1; padding-top: 12px; margin-top: 12px; }
.nxp-doc-payments p { font-size: 12.5px; margin: 5px 0 0; color: #4a5054; }

.nxp-doc-ref { font-size: 12px !important; color: #4a5054 !important; margin-top: 9px !important; }

.nxp-doc-footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e4e4e7; }
.nxp-doc-footer p { font-size: 12px; color: #4a5054; margin: 4px 0 0; }

.nxp-duebanner--clear { background: rgba(255,255,255,.06); border-color: #2a2a2e; }

.nxp-invoice-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nxp-lineblock { padding: 11px 0; border-bottom: 1px solid #242428; }
.nxp-lineblock:last-of-type { border-bottom: 0; }
.nxp-lineblock .nxp-linerow { margin-bottom: 7px; }
.nxp-lineblock .nxp-linerow:last-child { margin-bottom: 0; }
.nxp-kind { flex: 0 0 160px; }
.nxp-qty { flex: 0 0 90px; }

.nxp-payform summary { cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 9px 0; }

@media print {
	.nxp-doc-boxes > div,
	.nxp-doc-schedule > div { background: #fdf0e9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.nxp-doc-lines thead tr { background: #0a0a0b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.nxp-doc-grand .nxp-doc-total th,
	.nxp-doc-grand .nxp-doc-total td { background: #f09c72 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.nxp-doc-rule { background: #f09c72 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Money shown against the stage it paid for */

.nxp-stage-bill,
.nxp-stage-receipt {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 9px 11px;
	border-radius: 9px;
	text-decoration: none;
	font-size: 12.5px;
	color: var(--nxp-white);
	background: var(--nxp-surface);
	border: 1px solid var(--nxp-line);
}

.nxp-stage-bill span:first-child { font-weight: 600; }
.nxp-stage-bill-status { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--nxp-soft); }
.nxp-stage-bill--due { border-color: rgba(240,156,114,.45); }
.nxp-stage-bill--overdue { border-color: #e0674a; }
.nxp-stage-bill--paid .nxp-stage-bill-status { color: var(--nxp-white); }
.nxp-stage-receipt { font-size: 11.5px; color: var(--nxp-soft); background: transparent; }
.nxp-stage-receipt:hover { color: var(--nxp-white); }


/* ------------------------------------------------------------------
   Invoice thread
   One invoice, the steps it covers, the payments against it — joined
   by a rule down the left so they read as one conversation rather than
   three unrelated lists. Shared verbatim with the staff area; colour
   comes from the --t-* tokens each shell defines.
------------------------------------------------------------------ */

.nxt {
	position: relative;
	border: 1px solid var(--t-line);
	border-radius: 12px;
	background: var(--t-bg);
	padding: 14px 16px 14px 15px;
	color: var(--t-text);
}

.nxt + .nxt { margin-top: 12px; }

.nxt-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.nxt-doc { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }

.nxt-kind {
	font-size: 9.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--t-muted);
}

.nxt-num { font-size: 13px; font-weight: 600; color: var(--t-text); }
.nxt-doc:hover .nxt-num { text-decoration: underline; text-underline-offset: 3px; }

.nxt-amount { margin-left: auto; font-size: 14.5px; font-weight: 600; }

.nxt-status {
	flex: none;
	font-size: 10.5px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 100px;
	border: 1px solid var(--t-line);
	color: var(--t-muted);
}

.nxt--paid .nxt-status { color: var(--t-text); border-color: currentColor; }
.nxt--part_paid .nxt-status { color: var(--t-accent); border-color: currentColor; }
.nxt--overdue .nxt-status { color: var(--t-danger); border-color: currentColor; }
.nxt--cancelled { opacity: .55; }

.nxt-issued { font-size: 11.5px; color: var(--t-muted); margin: 3px 0 0; }

/* The rule. It starts under the invoice head and runs to the last
   payment, which is what makes the group read as one thread. */
.nxt-covers,
.nxt-pays {
	position: relative;
	margin: 0;
	padding: 10px 0 0 16px;
	border-left: 1px solid var(--t-line);
	margin-left: 3px;
}

.nxt-covers { padding-bottom: 2px; }

.nxt-covers-label,
.nxt-pay-kind {
	font-size: 9.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--t-muted);
}

.nxt-covers-list { list-style: none; padding: 0; margin: 4px 0 0; }

.nxt-covers-list li {
	position: relative;
	font-size: 12.5px;
	color: var(--t-text);
	padding-left: 12px;
	margin-top: 2px;
}

.nxt-covers-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--t-accent);
}

.nxt-covers--none .nxt-covers-label { font-style: italic; letter-spacing: 0; text-transform: none; font-size: 11.5px; }

.nxt-pays { list-style: none; padding-top: 8px; }

.nxt-pay {
	position: relative;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	padding: 7px 0;
	border-top: 1px solid var(--t-line);
}

.nxt-pay:first-child { border-top: 0; padding-top: 2px; }

/* The node where a payment meets the rule. */
.nxt-pay::before {
	content: "";
	position: absolute;
	left: -19px;
	top: 14px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--t-accent);
	box-shadow: 0 0 0 3px var(--t-bg);
}

.nxt-pay:first-child::before { top: 9px; }
.nxt-pay--none::before,
.nxt-pay--balance::before { background: var(--t-line); }

.nxt-pay-amount { font-size: 13px; font-weight: 600; margin-left: auto; }
.nxt-pay-meta { flex-basis: 100%; font-size: 11px; color: var(--t-muted); }

.nxt-pay-receipt {
	flex-basis: 100%;
	font-size: 11.5px;
	color: var(--t-accent);
	text-decoration: none;
	text-underline-offset: 3px;
}

.nxt-pay-receipt:hover { text-decoration: underline; }

.nxt-pay--balance .nxt-pay-kind,
.nxt-pay--balance .nxt-pay-amount { color: var(--t-accent); }
.nxt-pay--settled .nxt-pay-kind { color: var(--t-text); }

@media (max-width: 420px) {
	.nxt-amount { margin-left: 0; flex-basis: 100%; }
	.nxt-pay-amount { margin-left: 0; }
}

/* ------------------------------------------------------------------
   Client timeline — per-step evidence
   What we produced at each step sits on that step, because the
   question a client asks is never "show me all the photos", it is
   "what happened at the site visit".
------------------------------------------------------------------ */

.nxp-progress-foot {
	margin: 8px 0 0;
	font-size: 11.5px;
	color: var(--nxp-soft);
}

.nxp-pastnote {
	margin: 14px 0 0;
	padding: 10px 13px;
	border: 1px solid var(--nxp-line);
	border-radius: 10px;
	font-size: 12.5px;
	color: var(--nxp-soft);
}

.nxp-pastnote a { color: var(--nxp-peach); text-underline-offset: 3px; }

.nxp-stage-note {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .78);
}

/* Evidence on a step */

.nxp-stage-files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 9px;
}

.nxp-stage-file {
	display: block;
	width: 92px;
	text-decoration: none;
}

.nxp-stage-file img {
	width: 92px;
	height: 68px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	border: 1px solid var(--nxp-line);
}

.nxp-stage-file-kind {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 68px;
	border: 1px solid var(--nxp-line);
	border-radius: 8px;
	background: var(--nxp-surface);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--nxp-soft);
}

.nxp-stage-file:hover img,
.nxp-stage-file:hover .nxp-stage-file-kind { border-color: var(--nxp-peach); }

.nxp-stage-file-cap {
	display: block;
	margin-top: 4px;
	font-size: 10.5px;
	line-height: 1.35;
	color: var(--nxp-white);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nxp-stage-file-cap span { display: block; color: var(--nxp-dim); }

/* Money on a step sits inside the stage body, so give it room. */
.nxp-stage-body .nxt { margin-top: 10px; }

.nxp-threads { margin-top: 12px; }

/* Other services */

.nxp-svclist { list-style: none; padding: 0; margin: 12px 0 0; }

.nxp-svclist li + li { margin-top: 8px; }

.nxp-svclist a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 15px;
	border: 1px solid var(--nxp-line);
	border-radius: 11px;
	background: var(--nxp-surface);
	text-decoration: none;
}

.nxp-svclist a:hover { border-color: var(--nxp-peach); }

.nxp-svclist-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nxp-svclist-main strong { font-size: 14px; color: var(--nxp-white); font-weight: 600; }
.nxp-svclist-main span { font-size: 11.5px; color: var(--nxp-soft); }
.nxp-svclist-go { font-size: 20px; color: var(--nxp-dim); flex: none; }

@media (max-width: 420px) {
	.nxp-stage-file,
	.nxp-stage-file img,
	.nxp-stage-file-kind { width: 78px; }
	.nxp-stage-file img,
	.nxp-stage-file-kind { height: 58px; }
}

.nxp-trackhint {
	margin: 14px 0 0;
	padding: 11px 14px;
	border: 1px solid var(--nxp-line);
	border-left: 2px solid var(--nxp-peach);
	border-radius: 0 9px 9px 0;
	background: var(--nxp-surface);
	font-size: 13px;
	color: var(--nxp-soft);
}

.nxp-trackhint strong { color: var(--nxp-white); }

/* ------------------------------------------------------------------
   One typeface
   Outfit everywhere, client and staff. The serif/sans contrast that
   used to carry the hierarchy is gone, so weight and tracking do it
   instead: display sizes get tighter tracking, because a geometric
   sans set large at default tracking reads loose and cheap.
------------------------------------------------------------------ */

.nxp-h1,
.nxp-h2,
.nxp-doc-name,
.nxp-progress-head strong { letter-spacing: -0.02em; }

.nxp-h1 { letter-spacing: -0.03em; }

/* ==================================================================
   The client app
   A property picker, then three tabs scoped to one property. Rules and
   type carry the structure; the one accent marks live work and money
   owed, nothing else.
================================================================== */

.nxp-app,
.nxp-picker { padding-bottom: 0; }

/* Room for the pinned tab bar plus the home indicator. */
.nxp-app .nxp-apptab { padding-bottom: 96px; }

/* --- Bars --- */

.nxp-appbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0 18px;
}

.nxp-appbar-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	text-decoration: none;
	color: var(--nxp-white);
}

.nxp-appbar-back span,
.nxp-appbar-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--nxp-white);
}

.nxp-appbar-logo {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--nxp-white);
}

.nxp-appbar-ref {
	font-size: 12px;
	color: var(--nxp-soft);
	text-decoration: none;
	flex: none;
}

a.nxp-appbar-ref { min-height: 44px; display: inline-flex; align-items: center; }

/* --- Bottom navigation --- */

.nxp-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	display: flex;
	background: #101012;
	border-top: 1px solid var(--nxp-line);
	padding: 8px 0 max(14px, env(safe-area-inset-bottom));
}

.nxp-tab {
	flex: 1;
	min-height: 46px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	color: var(--nxp-soft);
	font-size: 10.5px;
}

.nxp-tab.is-on { color: var(--nxp-white); font-weight: 600; }

/* --- Property picker --- */

.nxp-picker-head { margin-bottom: 20px; }
.nxp-picker-head .nxp-h1 { margin: 4px 0 6px; }

.nxp-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.nxp-tile a {
	display: block;
	overflow: hidden;
	border: 1px solid var(--nxp-line);
	border-radius: 14px;
	background: var(--nxp-surface);
	text-decoration: none;
	color: inherit;
}

.nxp-tile a:hover { border-color: var(--nxp-peach); }

.nxp-tile-img { display: block; }
.nxp-tile-img img { width: 100%; height: 118px; object-fit: cover; display: block; }

.nxp-tile-body { display: flex; flex-direction: column; gap: 9px; padding: 15px; }

.nxp-tile-head { display: flex; align-items: flex-start; gap: 10px; }
.nxp-tile-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.nxp-tile-main strong { font-size: 16px; font-weight: 600; color: var(--nxp-white); line-height: 1.25; }
.nxp-tile-ref { font-size: 11.5px; color: var(--nxp-soft); }
.nxp-tile-go { font-size: 20px; color: var(--nxp-soft); flex: none; line-height: 1; }

.nxp-tile-state,
.nxp-hero-state { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--nxp-white); }

.nxp-tile-marker {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 100px;
	background: var(--nxp-peach);
}

.nxp-tile-state--done .nxp-tile-marker,
.nxp-hero-state--done .nxp-tile-marker { background: var(--nxp-white); }
.nxp-tile-state--none .nxp-tile-marker,
.nxp-hero-state--none .nxp-tile-marker { background: var(--nxp-dim); }

.nxp-tile-owed { font-size: 11.5px; font-weight: 600; color: var(--nxp-peach); }

.nxp-picker-foot { margin: 22px 0 40px; font-size: 11.5px; line-height: 1.5; color: var(--nxp-soft); }

/* --- Progress --- */

.nxp-hero {
	overflow: hidden;
	border: 1px solid var(--nxp-line);
	border-radius: 14px;
	background: var(--nxp-surface);
	margin-bottom: 14px;
}

.nxp-hero-img img { width: 100%; height: 132px; object-fit: cover; display: block; }
.nxp-hero-body { padding: 14px 15px; display: flex; flex-direction: column; gap: 5px; }
.nxp-hero-step { margin: 0; font-size: 11.5px; color: var(--nxp-soft); }

.nxp-svc { border-top: 1px solid var(--nxp-line); }
.nxp-svc:first-of-type { border-top: 0; }

.nxp-svc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 0;
	cursor: pointer;
	list-style: none;
}

.nxp-svc-head::-webkit-details-marker { display: none; }

.nxp-svc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nxp-svc-title { font-size: 14.5px; font-weight: 600; color: var(--nxp-white); }
.nxp-svc-meta { font-size: 11.5px; color: var(--nxp-soft); }
.nxp-svc--done .nxp-svc-title { color: var(--nxp-white); }

.nxp-svc .nxp-marker { width: 21px; height: 21px; margin-top: 0; }

.nxp-svc-chevron {
	flex: none;
	width: 9px;
	height: 9px;
	border-right: 1.5px solid var(--nxp-soft);
	border-bottom: 1.5px solid var(--nxp-soft);
	transform: rotate(-45deg);
	transition: transform .15s ease;
}

.nxp-svc[open] .nxp-svc-chevron { transform: rotate(45deg); }

.nxp-steps { list-style: none; margin: 0 0 4px; padding: 0 0 8px 33px; }

.nxp-step { display: flex; gap: 10px; padding: 9px 0; }
/* Smaller inside a step, so the tick needs proportionally more room
   or it reads as a smudge. */
.nxp-step .nxp-marker { width: 16px; height: 16px; margin-top: 3px; background-size: 70%; }

.nxp-step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nxp-step-title { font-size: 13px; font-weight: 500; color: var(--nxp-white); }
.nxp-step--not_started .nxp-step-title { color: var(--nxp-soft); }
.nxp-step-meta { font-size: 11px; color: var(--nxp-soft); }
.nxp-step-note { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .78); margin-top: 3px; }

.nxp-step-files,
.nxp-svc-money {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 34px;
	font-size: 11.5px;
	color: var(--nxp-peach);
	text-decoration: none;
}

.nxp-svc-money { padding: 0 0 14px 33px; }
.nxp-svc-empty { margin: 0 0 14px; padding-left: 33px; font-size: 12px; color: var(--nxp-soft); }

/* --- Officer and sign out --- */

.nxp-officer-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 100px;
	background: #2A2118;
	color: var(--nxp-peach);
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nxp-officer-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nxp-officer-body strong { font-size: 14px; font-weight: 600; color: var(--nxp-white); }
.nxp-officer-body span { font-size: 11.5px; color: var(--nxp-soft); }

.nxp-wa {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 100px;
	background: var(--nxp-peach);
	color: var(--nxp-ink);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.nxp-signout-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 26px;
	padding-top: 16px;
	border-top: 1px solid var(--nxp-line);
}

.nxp-signout-row p { margin: 0; flex: 1; font-size: 11px; line-height: 1.5; color: var(--nxp-soft); }

.nxp-signout-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #333338;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	color: var(--nxp-soft);
	text-decoration: none;
}

/* --- Tab heads --- */

.nxp-tabhead { margin-bottom: 20px; }
.nxp-tabhead .nxp-h1 { margin: 0 0 6px; }

.nxp-bignum {
	margin: 4px 0 8px;
	font-size: 36px;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: var(--nxp-peach);
}

.nxp-bignum--clear { color: var(--nxp-white); }

/* --- Pay safely --- */

.nxp-paysafe {
	border: 1px solid #2A2118;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.nxp-paysafe p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--nxp-soft); }

/* --- Documents --- */

.nxp-badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 100px;
	background: #1B1410;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--nxp-peach);
}

.nxp-doc-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nxp-doc-lc { margin: 14px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--nxp-soft); }

/* --- Ledger --- */

.nxp-ledger .nxp-eyebrow { display: block; margin-bottom: 4px; }

.nxp-entries { list-style: none; margin: 0; padding: 0; }

.nxp-entry { border-top: 1px solid var(--nxp-line); }
.nxp-entry:first-child { border-top: 0; }

.nxp-entry a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	text-decoration: none;
	color: inherit;
}

.nxp-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.nxp-entry-kind {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--nxp-soft);
}

.nxp-entry-kind--due,
.nxp-entry-kind--part_paid,
.nxp-entry-kind--overdue { color: var(--nxp-peach); }

.nxp-entry-date { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--nxp-soft); }
.nxp-entry-amount { font-size: 16px; font-weight: 600; color: var(--nxp-white); }
.nxp-entry-meta { font-size: 11.5px; line-height: 1.45; color: var(--nxp-soft); }
.nxp-entry-go { flex: none; font-size: 19px; line-height: 1; color: var(--nxp-soft); }

@media (min-width: 560px) {
	.nxp-tabbar { max-width: 560px; left: 50%; transform: translateX(-50%); }
}

/* The number we already know, shown instead of asking for it again. */
.nxp-phone-known {
	display: block;
	padding: 15px 14px;
	margin: 0 0 6px;
	font-size: 16px;
	letter-spacing: 2px;
	color: var(--nxp-white);
	background: var(--nxp-surface);
	border: 1px dashed #2a2a2e;
	border-radius: 11px;
}

.nxp-phone-known + .nxp-hint a { color: var(--nxp-peach); }

/* Where to pay — the same list the invoice carries. Monospaced digits
   because the client is comparing them against a message on another
   screen, character by character, and that is the job. */
.nxp-accounts { margin: 10px 0 12px; display: grid; gap: 8px; }

.nxp-accounts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid #2a2a2e;
	border-radius: 9px;
}

.nxp-accounts strong {
	font-variant-numeric: tabular-nums;
	letter-spacing: .2px;
	font-size: 14px;
}

.nxp-accounts span { font-size: 11.5px; color: var(--nxp-dim); }

/* Invoice document: the discount line and the payment block. */
.nxp-doc-discount td { color: var(--nxp-clay, #a9522c); }

.nxp-doc-accounts { margin: 8px 0 10px; display: grid; gap: 6px; }
.nxp-doc-accounts li { font-variant-numeric: tabular-nums; }
.nxp-doc-accounts .nxp-dim { font-size: 11px; margin-left: 6px; }
.nxp-doc-warn { font-size: 11.5px; line-height: 1.55; }
