/*
 * CLECOD — Espace pro (sociétés clientes) dans l'espace client.
 * Only what client-space.css and client-space-sav.css do not already give:
 * the screens reuse cc-* and sav-* classes and add pro-* ones. Written for a
 * phone first. The mount point shares the "sav" container name, so the SAV
 * container rules (two columns from 520px, buttons in a row…) apply here too.
 */
.clecod-client-space #cc-pro {
	container-type: inline-size;
	container-name: sav;
}

/* Conditional fields are toggled with [hidden]; sav-field and sav-step set a display. */
.pro [hidden] {
	display: none !important;
}

.pro-notice {
	position: sticky;
	top: var(--cc-menu-top, 12px);
	z-index: 3;
}

/* ---------- Header and tabs ---------- */
.pro > .pro-head {
	padding-bottom: 0;
	border-bottom: 0;
}

.pro-head p {
	overflow-wrap: anywhere;
}

.pro-head__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 10px;
}

.pro-head__top .cc-overline {
	margin: 0;
}

/* Shown instead of the last tab when the tab bar no longer scrolls. */
.clecod-client-space .pro-head a.pro-head__shop {
	display: none;
	gap: 6px;
	margin-block: -16px;
	color: var(--cc-ink);
}

.clecod-client-space .pro-head a.pro-head__shop:hover {
	color: var(--cc-red);
}

.pro-tabs {
	position: relative;
	display: flex;
	gap: 2px;
	min-width: 0;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	border-bottom: 1px solid var(--cc-line);
}

.pro-tabs::-webkit-scrollbar {
	display: none;
}

.clecod-client-space .pro-tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	min-height: 48px;
	padding: 12px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.clecod-client-space .pro-tab:hover {
	background: transparent;
	color: var(--cc-ink);
}

.clecod-client-space .pro-tab.is-active {
	border-bottom-color: var(--cc-red);
	color: var(--cc-ink);
}

.clecod-client-space .pro-tab:focus-visible {
	outline-offset: -2px;
}

.pro-tab--out span,
.pro-head__shop span {
	font-size: 14px;
	line-height: 1;
}

.pro-tab b {
	min-width: 18px;
	padding: 2px 5px;
	background: var(--cc-ink);
	color: #fff;
	font-size: 10px;
	letter-spacing: 0;
	text-align: center;
}


/* ---------- Links that look like the buttons of the space ---------- */
.clecod-client-space a.pro-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid var(--cc-field);
	background: #fff;
	color: var(--cc-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.clecod-client-space a.pro-btn:hover {
	border-color: var(--cc-ink);
	background: var(--cc-ink);
	color: #fff;
}

.clecod-client-space a.pro-link {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	/* Same box as the cc-link buttons it sits next to. */
	border: 1px solid transparent;
	color: var(--cc-red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.clecod-client-space a.pro-link:hover {
	color: var(--cc-ink);
}

.clecod-client-space .pro button.cc-link {
	min-height: 44px;
	padding-inline: 0;
	text-align: left;
}

.clecod-client-space .pro button.pro-link--quiet {
	color: var(--cc-muted);
}

.clecod-client-space .pro button.pro-link--quiet:hover {
	color: var(--cc-red);
}

/* ---------- Shared pieces ---------- */
.pro-tabs + .sav-block {
	padding-top: 0;
	border-top: 0;
}

.pro .cc-kpis {
	margin: 0;
}

.pro-bar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pro .pro-count {
	margin: 0;
	color: var(--cc-muted);
	font-size: 13px;
}

.clecod-client-space .pro-bar > button {
	width: 100%;
}

.pro-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.pro .cc-tag {
	line-height: 1.3;
}

.cc-tag.pro-tag--wait {
	background: var(--sav-warn-bg, #fff6e3);
	color: var(--sav-warn, #755015);
}

.cc-tag.pro-tag--alert {
	background: #fff0f0;
	color: #a3151a;
}

.cc-tag.pro-tag--lock {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cc-ink);
	color: var(--cc-ink);
}

.pro .pro-sub {
	margin: 6px 0 0;
	color: var(--cc-muted);
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.pro-late {
	color: #a3151a;
}

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

.clecod-client-space .pro-actions > button,
.clecod-client-space .pro-actions > a.pro-btn {
	flex: 1 1 140px;
	line-height: 1.3;
}

.pro-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: clamp(28px, 9cqi, 56px) 20px;
	border: 1px solid var(--cc-line);
	background: var(--cc-soft);
	text-align: center;
}

.pro .pro-empty h3 {
	font-size: 20px;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.pro .pro-empty p {
	max-width: 460px;
	margin: 0;
	color: var(--cc-muted);
}

/* ---------- Dashboard ---------- */
.clecod-client-space .pro-kpi--credit strong {
	font-size: 22px;
	line-height: 1.15;
}

.pro-kpi--credit strong small {
	display: block;
	margin-top: 4px;
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
}

.pro-meter {
	display: block;
	align-self: stretch;
	height: 6px;
	background: var(--cc-line);
}

.pro-meter b {
	display: block;
	height: 100%;
	background: var(--cc-ink);
}

.pro-meter.is-high b {
	background: var(--cc-red);
}

.pro .pro-terms {
	margin: 0;
	overflow-wrap: anywhere;
}

/* "A · B" on one line when there is room, stacked without the dot otherwise. */
.pro-parts {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pro-parts > i {
	display: none;
	color: var(--cc-muted);
	font-style: normal;
}

.pro-discount {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid var(--cc-line);
	background: #fff;
	font-size: 13px;
	line-height: 1.35;
}

.pro-discount b {
	color: var(--cc-red);
	white-space: nowrap;
}

.clecod-client-space .pro-list,
.clecod-client-space .pro-items,
.clecod-client-space .pro-history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pro-list li {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 0;
	border-top: 1px solid var(--cc-line);
}

.pro-list li:first-child {
	padding-top: 0;
	border-top: 0;
}

.pro-list li > div:first-child {
	min-width: 0;
}

.pro-list strong,
.pro-list li > div:first-child > span {
	display: block;
	overflow-wrap: anywhere;
}

.pro-list li > div:first-child > span {
	color: var(--cc-muted);
	font-size: 13px;
}

.pro-list li > div:first-child > span.pro-late {
	color: #a3151a;
}

.clecod-client-space .pro-list li > button {
	width: 100%;
}

/* ---------- Cards: requests, properties ---------- */
.pro-cards,
.pro-sites {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pro-sites {
	gap: 16px;
}

.pro-card,
.pro-site {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--cc-line);
	background: #fff;
}

.pro-card.is-todo {
	border-left: 4px solid var(--cc-red);
}

.pro-card.is-closed {
	background: var(--cc-soft);
}

/* A neutral pill would vanish on the soft background of a closed card. */
.pro-card.is-closed .cc-tag:not([class*="tag--"]) {
	background: #fff;
}

.pro .pro-card h3 {
	font-size: 17px;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.pro-card .pro-pills {
	margin-bottom: 8px;
}

.pro-qty {
	color: var(--cc-muted);
	font-weight: 400;
	letter-spacing: 0;
	white-space: nowrap;
}

.pro-kind {
	color: var(--cc-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pro-code {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px dashed var(--cc-ink);
	background: var(--cc-soft);
}

.pro-card.is-closed .pro-code {
	background: #fff;
}

.pro-code .cc-overline {
	margin: 0;
}

.pro-code strong {
	font-size: 32px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.14em;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.pro-code small {
	color: var(--cc-muted);
	font-size: 13px;
}

.pro-fold summary b {
	margin-left: 4px;
}

.pro-card .pro-fold summary {
	padding: 13px 0;
}

.pro-fold .cc-meta dd {
	white-space: pre-line;
}

.pro-message {
	margin-top: 14px;
	padding: 12px 14px;
	border-left: 3px solid var(--cc-red);
	background: var(--cc-soft);
}

.pro-card.is-closed .pro-message {
	background: #fff;
}

.pro-message .cc-overline {
	margin-bottom: 4px;
}

.pro .pro-message p {
	margin: 0;
	font-size: 14px;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.clecod-client-space .pro-history {
	margin: 14px 0 4px;
}

.pro-history li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px 12px;
	padding: 8px 0;
	border-top: 1px solid var(--cc-line);
	font-size: 13px;
	line-height: 1.45;
}

.pro-history time {
	color: var(--cc-muted);
	font-variant-numeric: tabular-nums;
}

.pro-history span {
	overflow-wrap: anywhere;
}

.pro-history small {
	color: var(--cc-muted);
	font-size: inherit;
}

.pro-history small::before {
	content: "— ";
}

.pro-switch {
	display: inline-flex;
	border: 1px solid var(--cc-field);
}

.clecod-client-space .pro-switch button {
	min-height: 44px;
	padding: 8px 14px;
	border: 0;
	background: #fff;
	color: var(--cc-muted);
}

.clecod-client-space .pro-switch button[aria-pressed="true"] {
	background: var(--cc-ink);
	color: #fff;
}

.pro-switch b {
	margin-left: 2px;
	opacity: 0.7;
}

.pro-site {
	gap: 14px;
	padding-bottom: 4px;
}

.pro .pro-site h3 {
	font-size: 20px;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.pro-site__head .pro-pills {
	margin-top: 10px;
}

/* The usual action is a button; editing the site stays a quiet link on the right. */
.pro-site__actions {
	display: flex;
	align-items: center;
	gap: 8px 16px;
}

.clecod-client-space .pro-site__actions > .cc-secondary {
	flex: 0 1 auto;
	padding-inline: 16px;
	line-height: 1.3;
	text-wrap: balance;
}

.pro .pro-site__notes {
	margin: 0;
	white-space: pre-line;
}

.pro .pro-site > .cc-help {
	padding-bottom: 12px;
}

.pro-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--cc-line);
}

.pro-item:first-child {
	padding-top: 2px;
	border-top: 0;
}

.pro-item__main strong {
	display: block;
	font-size: 15px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pro-item__main span {
	display: block;
	margin-top: 2px;
	color: var(--cc-muted);
	font-size: 13px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.pro-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
}

.pro-facts div {
	min-width: 0;
}

.pro-facts dt {
	color: var(--cc-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.pro-facts dd {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	min-height: 26px;
	margin: 2px 0 0;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.pro-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 16px;
}

.clecod-client-space .pro-item__go > button {
	padding-inline: 16px;
}

.pro-item__go {
	display: flex;
	flex: 1 0 100%;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 2px;
}

.clecod-client-space .pro .pro-item__edit {
	margin-left: auto;
}

.pro-hint {
	color: var(--cc-muted);
	font-size: 12px;
}

/* ---------- Tables: stacked cards first, real columns when the container allows ---------- */
.pro-table {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.pro-table__head {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.pro-table__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
	align-items: start;
	padding: 16px;
	border: 1px solid var(--cc-line);
	background: #fff;
}

.pro-table__row.is-off {
	background: var(--cc-soft);
}

.pro-table__row.is-off .cc-tag {
	background: #fff;
}

.pro-cell {
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.pro-cell::before {
	content: attr(data-label);
	display: block;
	margin-bottom: 2px;
	color: var(--cc-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.pro-cell small {
	display: block;
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.pro-cell em {
	color: var(--cc-muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
}

.pro-cell--main {
	grid-column: 1 / -1;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.pro-cell--main::before {
	content: none;
}

/* "N° FA-2026-0412" reads as the title of the card. */
.pro-cell--numbered::before {
	content: attr(data-label) " ";
	display: inline;
	margin: 0;
	color: inherit;
	font-size: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.pro-cell--fixed,
.pro-table .cc-tag {
	white-space: nowrap;
}

/* Nature and origin under an invoice number may wrap; the number itself never does. */
.pro-cell--numbered small {
	white-space: normal;
}

.pro-cell--num {
	font-variant-numeric: tabular-nums;
}

.pro-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.pro-cell--link,
.pro-cell--actions {
	grid-column: 1 / -1;
	margin-top: 2px;
	border-top: 1px solid var(--cc-line);
}

.pro-cell--link::before,
.pro-cell--actions::before {
	content: none;
}

.pro-cell--link.is-empty {
	display: none;
}

.pro-cell--actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
}

/* ---------- Forms ---------- */
.pro .sav-row {
	align-items: end;
}

.pro-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pro-checks {
	display: flex;
	flex-direction: column;
	padding: 10px 14px;
	background: var(--cc-soft);
}

.pro .sav-check {
	align-items: center;
	min-height: 44px;
}

.pro .sav-check small,
.pro-label small {
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.pro-label {
	display: block;
	padding: 6px 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pro-product {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pro-product .pro-label {
	padding: 0;
}

.pro-chosen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 14px;
	border: 1px solid var(--cc-ink);
	background: #fff;
	box-shadow: inset 3px 0 0 var(--cc-red);
}

.pro-chosen span {
	min-width: 0;
	padding: 6px 0;
}

.pro-chosen strong,
.pro-chosen small,
.pro-result strong,
.pro-result small {
	display: block;
	overflow-wrap: anywhere;
}

.pro-chosen small,
.pro-result small {
	color: var(--cc-muted);
	font-size: 13px;
}

.clecod-client-space .pro-chosen button {
	flex: none;
}

.pro-results {
	display: flex;
	flex-direction: column;
}

.pro-results:empty {
	display: none;
}

.clecod-client-space .pro-result {
	width: 100%;
	min-height: 48px;
	margin-top: -1px;
	padding: 10px 14px;
	border: 1px solid var(--cc-line);
	background: #fff;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
}

.clecod-client-space .pro-result:hover,
.clecod-client-space .pro-result:focus-visible {
	position: relative;
	border-color: var(--cc-ink);
	background: var(--cc-soft);
}

.pro-result strong {
	font-weight: 700;
}

.pro-recap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 16px;
	border: 1px solid var(--cc-line);
	border-left: 3px solid var(--cc-red);
	background: var(--cc-soft);
}

.pro-recap .cc-overline {
	margin: 0 0 2px;
}

.pro-recap strong {
	font-size: 17px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.pro-recap__line {
	color: var(--cc-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.pro-recap .cc-tag {
	margin-top: 4px;
}

.pro-danger {
	border-top: 1px solid var(--cc-line);
}

/* ---------- Invoices ---------- */
.pro-credit {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--cc-line);
	border-left: 3px solid var(--cc-ink);
	background: var(--cc-soft);
}

.pro .pro-credit p {
	margin: 0;
	overflow-wrap: anywhere;
}

.pro-credit strong {
	font-size: 18px;
	white-space: nowrap;
}

/* Two tiles per row on a phone: a third, lone tile takes the whole row. */
@container sav (max-width: 479px) {
	.pro .cc-kpis > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* ---------- Wider containers ---------- */
@container sav (min-width: 480px) {
	.pro-table__row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container sav (min-width: 520px) {
	.pro-tabs {
		flex-wrap: wrap;
		gap: 0;
		overflow: visible;
	}

	.clecod-client-space .pro-tab {
		padding-inline: 8px;
		letter-spacing: 0.04em;
	}

	.clecod-client-space a.pro-tab--out {
		display: none;
	}

	.clecod-client-space .pro-head a.pro-head__shop {
		display: inline-flex;
	}

	.pro-parts {
		flex-flow: row wrap;
		align-items: baseline;
		gap: 2px 8px;
	}

	.pro-parts > i {
		display: inline;
	}

	.pro-bar,
	.pro-list li {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.clecod-client-space .pro-bar > button,
	.clecod-client-space .pro-list li > button {
		flex: none;
		width: auto;
	}

	.pro-list .pro-actions {
		flex: none;
	}

	.clecod-client-space .pro-actions > button,
	.clecod-client-space .pro-actions > a.pro-btn {
		flex: 0 1 auto;
	}

	.pro-actions--end {
		justify-content: flex-end;
	}

	.pro-card,
	.pro-site {
		padding: 20px 22px;
	}

	.pro-site {
		padding-bottom: 6px;
	}

	.pro-item__actions {
		gap: 0 14px;
	}

	.pro-item__go {
		flex: none;
		flex-direction: row;
		align-items: center;
		gap: 10px;
		margin: 0;
	}

	.pro-history li {
		grid-template-columns: 132px minmax(0, 1fr);
	}

	.pro-credit {
		padding: 18px 22px;
	}
}

@container sav (min-width: 600px) {
	.pro-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
		gap: 10px 24px;
		align-items: start;
	}

	.pro-item__actions {
		grid-column: 1 / -1;
	}

	.pro-table__row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@container sav (min-width: 720px) {
	.clecod-client-space .pro-tab {
		padding-inline: 12px;
	}
}

/* Real columns: every row borrows the tracks of the table (subgrid), like a <table> would. */
@supports (grid-template-columns: subgrid) {
	@container sav (min-width: 560px) {
		.pro-table--mid:not(.is-stacked) {
			display: grid;
			grid-template-columns: var(--pro-cols);
			gap: 0 16px;
			overflow-x: auto;
			border: 1px solid var(--cc-line);
			background: #fff;
		}

		.pro-table--mid:not(.is-stacked) .pro-table__head,
		.pro-table--mid:not(.is-stacked) .pro-table__row {
			display: grid;
			grid-column: 1 / -1;
			grid-template-columns: subgrid;
			align-items: center;
			gap: 0 16px;
			padding: 12px 16px;
			border: 0;
		}

		.pro-table--mid:not(.is-stacked) .pro-table__head {
			position: static;
			width: auto;
			height: auto;
			overflow: visible;
			clip-path: none;
			padding-block: 10px;
			background: var(--cc-soft);
			color: var(--cc-muted);
			font-size: 10px;
			font-weight: 700;
			letter-spacing: 0.08em;
			line-height: 1.4;
			text-transform: uppercase;
			white-space: normal;
		}

		.pro-table--mid:not(.is-stacked) .pro-table__row {
			border-top: 1px solid var(--cc-line);
		}

		.pro-table--mid:not(.is-stacked) .pro-cell {
			grid-column: auto;
			min-width: min-content;
			font-size: 13px;
			overflow-wrap: break-word;
		}

		.pro-table--mid:not(.is-stacked) .pro-cell::before {
			content: none;
		}

		.pro-table--mid:not(.is-stacked) .pro-cell--main {
			font-size: 14px;
		}

		.pro-table--mid:not(.is-stacked) .pro-cell--link,
		.pro-table--mid:not(.is-stacked) .pro-cell--actions {
			margin: 0;
			border: 0;
		}

		.pro-table--mid:not(.is-stacked) .pro-cell--link.is-empty {
			display: block;
		}

		.pro-table--mid:not(.is-stacked) .pro-cell--actions {
			grid-column: 1 / -1;
			margin-top: -4px;
		}
	}

	@container sav (min-width: 640px) {
		.pro-table--large:not(.is-stacked) {
			display: grid;
			grid-template-columns: var(--pro-cols);
			gap: 0 12px;
			overflow-x: auto;
			border: 1px solid var(--cc-line);
			background: #fff;
		}

		.pro-table--large:not(.is-stacked) .pro-table__head,
		.pro-table--large:not(.is-stacked) .pro-table__row {
			display: grid;
			grid-column: 1 / -1;
			grid-template-columns: subgrid;
			align-items: center;
			gap: 0 12px;
			padding: 12px 14px;
			border: 0;
		}

		.pro-table--large:not(.is-stacked) .pro-table__head {
			position: static;
			width: auto;
			height: auto;
			overflow: visible;
			clip-path: none;
			padding-block: 10px;
			background: var(--cc-soft);
			color: var(--cc-muted);
			font-size: 10px;
			font-weight: 700;
			letter-spacing: 0.08em;
			line-height: 1.4;
			text-transform: uppercase;
			white-space: normal;
		}

		.pro-table--large:not(.is-stacked) .pro-table__row {
			border-top: 1px solid var(--cc-line);
		}

		.pro-table--large:not(.is-stacked) .pro-cell {
			grid-column: auto;
			min-width: min-content;
			font-size: 13px;
			overflow-wrap: break-word;
		}

		.pro-table--large:not(.is-stacked) .pro-cell::before {
			content: none;
		}

		.pro-table--large:not(.is-stacked) .pro-cell--main {
			font-size: 13px;
		}

		.pro-table--large:not(.is-stacked) .pro-cell--link,
		.pro-table--large:not(.is-stacked) .pro-cell--actions {
			margin: 0;
			border: 0;
		}

		.pro-table--large:not(.is-stacked) .pro-cell--link.is-empty {
			display: block;
		}
	}
}

.pro-table--invoices {
	--pro-cols: auto auto auto 1fr auto auto auto auto;
}

.pro-table--purchases {
	--pro-cols: auto auto 1fr auto auto 1.1fr auto auto;
}

.pro-table--breakdowns {
	--pro-cols: auto 1.3fr 1.1fr auto auto auto;
}

.pro-table--members {
	--pro-cols: 1.7fr auto 1.1fr auto;
}

/* Menu entry of the account navigation. */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--clecod-pro a { --cc-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l8-2v18M12 9h8v12M3 21h18M7.5 8.5v0M7.5 12.5v0M7.5 16.5v0M16 13v0M16 17v0'/%3E%3C/svg%3E"); }

/* ---------- Dashboard on a phone (≤ 768 px) ----------
 * Figma screen « Espace pro » validated on 18/11/2026, in the HighRev language of the
 * other phone screens: square corners, red #e20100, tight capitals, #e2e2e2 hairlines,
 * #f4f4f4 bands, a red 55×4 bar above each title. Blocks .pro-m exist only on a phone,
 * blocks .pro-d (the desktop dashboard) only above. */
@media (min-width: 769px) {
	.clecod-client-space .pro .pro-m {
		display: none !important;
	}
}

.clecod-client-space .pro-arrow {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

@media (max-width: 768px) {
	.clecod-client-space .pro .pro-d,
	.clecod-client-space .pro[data-screen="home"] .pro-tab--out {
		display: none !important;
	}

	/* Company block: black, edge to edge, right under the menu of the space. */
	.clecod-client-space .pro-hero {
		margin: 0 -18px;
		padding: 22px 20px 24px;
		background: #111;
		color: #fff;
	}

	.clecod-client-space .pro-hero__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	/* Lighter red on the black block only: 4.9:1 on #111 (the brand red gives 3.8:1). */
	.clecod-client-space .pro-hero__over {
		color: #ff1f10;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.14em;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.clecod-client-space .pro-hero a.pro-hero__shop {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		margin: -14px 0;
		color: #fff;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.08em;
		line-height: 1;
		text-decoration: none;
		text-transform: uppercase;
	}

	.clecod-client-space .pro-hero a.pro-hero__shop:hover {
		color: #bdbdbd;
	}

	.clecod-client-space .pro-hero a.pro-hero__shop:focus-visible {
		outline-color: #fff;
	}

	.clecod-client-space .pro-hero__shop .pro-arrow--out {
		width: 14px;
		height: 14px;
		stroke-width: 2.4;
	}

	.clecod-client-space .pro .pro-hero__hand {
		margin: 8px 0 0;
		color: #e20100;
		font-family: "Indie Flower", cursive;
		font-size: 24px;
		line-height: 1.1;
	}

	.woocommerce-account .clecod-client-space .pro-hero h2.pro-hero__name {
		margin: 6px 0 0;
		color: #fff;
		font-size: 29px;
		font-weight: 700;
		letter-spacing: -0.035em;
		line-height: 1;
		overflow-wrap: anywhere;
	}

	.clecod-client-space .pro .pro-hero__meta {
		margin: 14px 0 0;
		color: #bdbdbd;
		font-size: 14px;
		line-height: 1.4;
	}

	.clecod-client-space .pro-hero__box {
		display: flex;
		flex-direction: column;
		margin-top: 28px;
		padding: 16px;
		background: #1e1e1e;
	}

	.clecod-client-space .pro-hero__row {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 4px 12px;
	}

	.clecod-client-space .pro-hero__label {
		color: #bdbdbd;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.14em;
		line-height: 1.3;
		text-transform: uppercase;
	}

	.clecod-client-space .pro-hero__cap {
		color: #bdbdbd;
		font-size: 13px;
		white-space: nowrap;
	}

	.clecod-client-space .pro-hero__amount {
		margin-top: 12px;
		color: #fff;
		font-size: 30px;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		letter-spacing: -0.03em;
		line-height: 1;
	}

	.clecod-client-space .pro-hero .pro-meter {
		margin-top: 12px;
		background: #3a3a3a;
	}

	.clecod-client-space .pro-hero .pro-meter b {
		background: #e20100;
	}

	.clecod-client-space .pro .pro-hero__terms {
		margin: 10px 0 0;
		color: #bdbdbd;
		font-size: 13px;
		line-height: 1.4;
		overflow-wrap: anywhere;
	}

	/* Sections: red bar, title, a red link on the right. */
	.clecod-client-space .pro-sec {
		display: flex;
		flex-direction: column;
		gap: 14px;
		margin-top: 16px;
		padding-top: 16px;
		background: linear-gradient(#e20100, #e20100) 0 0 / 55px 4px no-repeat;
	}

	.clecod-client-space .pro-sec__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-width: 0;
	}

	.woocommerce-account .clecod-client-space .pro-sec h3 {
		margin: 0;
		font-size: 20px;
		font-weight: 700;
		letter-spacing: -0.035em;
		line-height: 1;
		text-transform: uppercase;
	}

	.clecod-client-space button.pro-sec__link {
		flex: none;
		min-height: 44px;
		margin: -12px 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: #e20100;
		font-size: 12px;
		letter-spacing: 0.1em;
	}

	.clecod-client-space button.pro-sec__link:hover {
		background: transparent;
		color: #111;
	}

	/* Photos: studio visuals of the space, or a plain dark tile. */
	.clecod-client-space .pro-photo {
		display: block;
		flex: none;
		width: 76px;
		height: 76px;
		overflow: hidden;
		background: #202226;
	}

	.clecod-client-space .pro-photo img {
		display: block;
		width: 100%;
		max-width: none;
		height: 100%;
		object-fit: cover;
		object-position: 70% 50%;
	}

	.clecod-client-space .pro-photo--wide {
		width: 100%;
		height: 136px;
	}

	.clecod-client-space .pro-photo--wide img {
		object-position: 50% 50%;
	}

	/* « À valider » */
	.clecod-client-space .pro-todos {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.clecod-client-space .pro-todo {
		border: 1px solid #e2e2e2;
		border-top: 3px solid #e20100;
		background: #fff;
	}

	.clecod-client-space .pro-todo__body {
		display: flex;
		align-items: flex-start;
		gap: 14px;
		padding: 14px;
	}

	.clecod-client-space .pro-todo__body > div {
		min-width: 0;
	}

	.woocommerce-account .clecod-client-space .pro-todo h4 {
		margin: 3px 0 0;
		color: #111;
		font-size: 17px;
		font-weight: 700;
		letter-spacing: -0.02em;
		line-height: 1.15;
		overflow-wrap: anywhere;
		text-transform: uppercase;
	}

	.clecod-client-space .pro .pro-todo p {
		margin: 6px 0 0;
		color: #3a3a3a;
		font-size: 14px;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	.clecod-client-space .pro .pro-todo p.pro-todo__meta {
		margin-top: 4px;
		color: #686868;
		font-size: 13px;
	}

	.clecod-client-space .pro-todo__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-top: 1px solid #e2e2e2;
	}

	.clecod-client-space .pro-todo__actions button {
		min-height: 50px;
		padding: 0 12px;
		border: 0;
		font-size: 12px;
		letter-spacing: 0.1em;
	}

	.clecod-client-space .pro-todo__actions button.pro-todo__ok {
		background: #e20100;
		color: #fff;
	}

	.clecod-client-space .pro-todo__actions button.pro-todo__no {
		background: #fff;
		color: #111;
	}

	.clecod-client-space .pro-todo__actions button:hover {
		background: #111;
		color: #fff;
	}

	.clecod-client-space .pro-todo__actions button:focus-visible {
		position: relative;
		outline-offset: -4px;
	}

	.clecod-client-space .pro-todo__actions button.pro-todo__ok:focus-visible {
		outline-color: #fff;
	}

	/* Figures: a 2 × 2 mosaic, black, grey, white and red, with an arrow square. */
	.clecod-client-space .pro-mosaic {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 16px;
	}

	.clecod-client-space .pro-mosaic > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.clecod-client-space button.pro-tile {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		gap: 10px;
		min-width: 0;
		min-height: 112px;
		padding: 14px 14px 16px;
		border: 0;
		letter-spacing: 0;
		text-align: left;
		text-transform: none;
	}

	.clecod-client-space .pro-tile strong {
		padding-right: 36px;
		font-size: 30px;
		font-variant-numeric: tabular-nums;
		font-weight: 700;
		letter-spacing: -0.03em;
		line-height: 1;
	}

	.clecod-client-space .pro-tile span {
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.12em;
		line-height: 1.35;
		text-transform: uppercase;
	}

	.clecod-client-space .pro-tile__go {
		position: absolute;
		top: 14px;
		right: 14px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		background: #111;
		color: #fff;
	}

	.clecod-client-space button.pro-tile--dark {
		background: #111;
		color: #fff;
	}

	.clecod-client-space .pro-tile--dark span {
		color: #bdbdbd;
	}

	.clecod-client-space .pro-tile--dark .pro-tile__go {
		background: #e20100;
	}

	.clecod-client-space button.pro-tile--soft {
		background: #f4f4f4;
		color: #111;
	}

	.clecod-client-space button.pro-tile--white {
		background: #fff;
		box-shadow: inset 0 0 0 1px #e2e2e2;
		color: #111;
	}

	.clecod-client-space .pro-tile--soft span,
	.clecod-client-space .pro-tile--white span {
		color: #3a3a3a;
	}

	.clecod-client-space button.pro-tile--red {
		background: #e20100;
		color: #fff;
	}

	.clecod-client-space .pro-tile--red .pro-tile__go {
		background: #fff;
		color: #e20100;
	}

	.clecod-client-space button.pro-tile--dark:hover {
		background: #000;
	}

	.clecod-client-space button.pro-tile--soft:hover {
		background: #ebebeb;
	}

	.clecod-client-space button.pro-tile--white:hover {
		background: #fff;
		box-shadow: inset 0 0 0 1px #111;
	}

	.clecod-client-space button.pro-tile--red:hover {
		background: #c00100;
	}

	.clecod-client-space button.pro-tile:focus-visible {
		z-index: 1;
		outline: 2px solid #111;
		outline-offset: 2px;
	}

	/* « Vos résidences »: a row of cards that runs to the right edge of the screen. */
	.clecod-client-space .pro-rail {
		display: flex;
		gap: 12px;
		margin: 0 -18px 0 0;
		padding: 0 18px 2px 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		list-style: none;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.clecod-client-space .pro-rail::-webkit-scrollbar {
		display: none;
	}

	.clecod-client-space .pro-place {
		position: relative;
		display: flex;
		flex: 0 0 240px;
		flex-direction: column;
		min-width: 0;
		margin: 0;
		border: 1px solid #e2e2e2;
		background: #fff;
		scroll-snap-align: start;
	}

	.clecod-client-space .pro-place__body {
		flex: 1 1 auto;
		padding: 14px 14px 16px;
	}

	.clecod-client-space .pro-place__type {
		display: block;
		color: #e20100;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.14em;
		line-height: 1.3;
		text-transform: uppercase;
	}

	.woocommerce-account .clecod-client-space .pro-place h4 {
		margin: 6px 0 0;
		color: #111;
		font-size: 18px;
		font-weight: 700;
		letter-spacing: -0.03em;
		line-height: 1.1;
		overflow-wrap: anywhere;
		text-transform: uppercase;
	}

	.clecod-client-space .pro .pro-place p {
		margin: 6px 0 0;
		color: #686868;
		font-size: 14px;
		line-height: 1.35;
	}

	.clecod-client-space button.pro-place__go {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 44px;
		padding: 0 14px;
		border: 0;
		background: #f4f4f4;
		color: #111;
		font-size: 12px;
		letter-spacing: 0.08em;
		line-height: 1.2;
		text-align: left;
	}

	/* The whole card answers the tap. */
	.clecod-client-space button.pro-place__go::after {
		position: absolute;
		inset: 0;
		content: "";
	}

	.clecod-client-space button.pro-place__go:hover {
		background: #ebebeb;
		color: #111;
	}

	.clecod-client-space button.pro-place__go:focus-visible {
		outline: 0;
	}

	.clecod-client-space button.pro-place__go:focus-visible::after {
		outline: 2px solid #111;
		outline-offset: -2px;
	}

	/* « Recommander en 2 clics » */
	.clecod-client-space .pro-reco,
	.clecod-client-space .pro-bills {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.clecod-client-space .pro-reco li {
		display: flex;
		align-items: flex-start;
		gap: 12px;
		margin: 0;
		padding: 10px 0 12px;
		border-bottom: 1px solid #e2e2e2;
	}

	.clecod-client-space .pro-reco li + li {
		padding-top: 22px;
	}

	.clecod-client-space .pro-reco .pro-photo {
		width: 64px;
		height: 64px;
	}

	.clecod-client-space .pro-reco li > div {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		min-width: 0;
	}

	.clecod-client-space .pro-reco strong {
		color: #111;
		font-size: 16px;
		font-weight: 700;
		letter-spacing: -0.01em;
		line-height: 1.3;
		overflow-wrap: anywhere;
	}

	.clecod-client-space .pro-reco li > div > span {
		margin-top: 2px;
		color: #686868;
		font-size: 14px;
		line-height: 1.4;
		overflow-wrap: anywhere;
	}

	.clecod-client-space button.pro-reco__go {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		margin: -6px 0 -12px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #e20100;
		font-size: 12px;
		letter-spacing: 0.1em;
	}

	.clecod-client-space button.pro-reco__go:hover {
		background: transparent;
		color: #111;
	}

	/* « Factures à régler » */
	.clecod-client-space .pro-bills li {
		margin: 0;
		border-bottom: 1px solid #e2e2e2;
	}

	/* The whole row is the button. */
	.clecod-client-space button.pro-bills__go {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		min-height: 44px;
		padding: 8px 0 14px;
		border: 0;
		background: transparent;
		color: #111;
		font-size: inherit;
		font-weight: 400;
		letter-spacing: 0;
		line-height: inherit;
		text-align: left;
		text-transform: none;
	}

	.clecod-client-space .pro-bills li + li button.pro-bills__go {
		padding-top: 22px;
	}

	.clecod-client-space button.pro-bills__go:hover {
		background: transparent;
		color: #111;
	}

	.clecod-client-space button.pro-bills__go:hover .pro-bills__main strong {
		color: #e20100;
	}

	.clecod-client-space .pro-bills__main {
		min-width: 0;
	}

	.clecod-client-space .pro-bills strong,
	.clecod-client-space .pro-bills span {
		display: block;
	}

	.clecod-client-space .pro-bills strong {
		color: #111;
		font-size: 16px;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		line-height: 1.3;
		overflow-wrap: anywhere;
	}

	.clecod-client-space .pro-bills__main > span {
		margin-top: 4px;
		color: #686868;
		font-size: 14px;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	.clecod-client-space .pro-bills__sum {
		flex: none;
		text-align: right;
	}

	.clecod-client-space .pro-bills__sum strong {
		white-space: nowrap;
	}

	.clecod-client-space .pro-bills__sum span {
		margin-top: 5px;
		color: #686868;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.14em;
		line-height: 1.3;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.clecod-client-space .pro-bills__sum span.is-late {
		color: #e20100;
	}

	.clecod-client-space button.pro-band {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 50px;
		padding: 0 16px;
		border: 0;
		background: #f4f4f4;
		color: #111;
		font-size: 12px;
		letter-spacing: 0.1em;
		text-align: left;
	}

	.clecod-client-space button.pro-band:hover {
		background: #ebebeb;
		color: #111;
	}

	/* A residence opened from its card lands under the sticky header. */
	.clecod-client-space .pro-site {
		scroll-margin-top: 16px;
	}
}
