/**
 * Espace « Mon équipe » (sous-comptes entreprise) — WooCommerce My Account.
 * Styles sobres, alignés sur la charte, compatibles RTL (propriétés logiques).
 */

.aiforya-team {
	margin-block-start: 1em;
}

.aiforya-team__intro {
	margin-block-end: 1.5em;
	color: #4b5563;
}

.aiforya-team__card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25em 1.5em;
	margin-block-end: 1.5em;
	background: #fff;
}

.aiforya-team__title {
	margin-block: 0 0.75em;
	font-size: 1.05em;
}

.aiforya-team__field {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin-block-end: 1em;
	max-inline-size: 460px;
}

.aiforya-team__field label {
	font-weight: 600;
}

.aiforya-team__field input,
.aiforya-team__field select {
	padding: 0.5em 0.6em;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	inline-size: 100%;
}

.aiforya-team__actions {
	margin-block-start: 0.5em;
}

.aiforya-team__notice,
.aiforya-team__empty {
	color: #6b7280;
	font-style: italic;
	margin: 0;
}

.aiforya-team__table {
	inline-size: 100%;
	border-collapse: collapse;
	margin-block-start: 0.5em;
}

.aiforya-team__table th,
.aiforya-team__table td {
	padding: 0.6em 0.75em;
	text-align: start;
	border-block-end: 1px solid #eef2f7;
	vertical-align: middle;
}

.aiforya-team__table th {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6b7280;
}

.aiforya-team__inline {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
}

.aiforya-team__inline input[type="number"] {
	inline-size: 7em;
	padding: 0.35em 0.5em;
	border: 1px solid #d1d5db;
	border-radius: 6px;
}

.aiforya-team__rowactions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.aiforya-team__badge {
	display: inline-block;
	padding: 0.2em 0.6em;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	background: #eef2f7;
	color: #374151;
}

.aiforya-team__badge--active {
	background: #dcfce7;
	color: #166534;
}

.aiforya-team__badge--suspended {
	background: #fee2e2;
	color: #991b1b;
}

.aiforya-team__badge--invited {
	background: #fef9c3;
	color: #854d0e;
}

@media (max-width: 640px) {
	.aiforya-team__table,
	.aiforya-team__table thead,
	.aiforya-team__table tbody,
	.aiforya-team__table tr,
	.aiforya-team__table th,
	.aiforya-team__table td {
		display: block;
	}

	.aiforya-team__table thead {
		display: none;
	}

	.aiforya-team__table tr {
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		margin-block-end: 0.75em;
		padding: 0.5em 0.75em;
	}

	.aiforya-team__table td {
		border: 0;
		display: flex;
		justify-content: space-between;
		gap: 1em;
	}

	.aiforya-team__table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #6b7280;
	}
}
