/**
 * Styles pour les pages de commandes PRO.
 *
 * @link       https://com-maker.fr/
 * @since      1.0.0
 *
 * @package    Sabine_Be_Pro
 * @subpackage Sabine_Be_Pro/public/css
 *
 * Variables héritées de sabine-be-pro-public.css :
 * --noir, --blanc, --rouge, --texte, --gris, --gris-moyen,
 * --gris-clair, --gris-readonly, --border, --notice-bg
 *
 * Styles communs hérités de sabine-be-pro-account.css :
 * Toolbar, recherche, filtres, Select2, pagination, boutons
 */

/* ==========================================================================
   En-tête des commandes
   ========================================================================== */

.sabine-be-pro-orders-header {
	margin-bottom: 30px;
}

/* Surcharge toolbar commandes */
.sabine-be-pro-orders-toolbar {
	margin-bottom: 30px;
}

.sabine-be-pro-orders-toolbar.sabine-be-pro-clients-toolbar {
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 15px;
}



/* Select2 dans les filtres des commandes */
.sabine-be-pro-orders-filters .select2-container {
	flex: 1 1 200px;
	min-width: 180px;
}

/* Placeholder visible en entier */
.sabine-be-pro-orders-filters .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	padding: 4px 8px;
}

.sabine-be-pro-orders-filters .select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-search--inline {
	width: 100%;
}

.sabine-be-pro-orders-filters .select2-container--default .select2-search--inline .select2-search__field {
	width: 100% !important;
}

/* Tags sélectionnés - tronqués si nécessaire */
.sabine-be-pro-orders-filters .select2-container--default .select2-selection--multiple .select2-selection__choice {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Récapitulatif par année
   ========================================================================== */

.sabine-be-pro-orders-yearly-summary {
	margin-bottom: 50px;
}

.sabine-be-pro-orders-yearly-summary h3 {
	letter-spacing: 2px;
	margin: 0 0 20px 0;
	color: var(--noir);
	font-weight: 700;
	text-transform: lowercase;
	border-left: 2px solid var(--rouge);
	padding-left: 15px;
}

.sabine-be-pro-orders-yearly-table {
	width: 100%;
	border-collapse: collapse;
}

.sabine-be-pro-orders-yearly-table,
.sabine-be-pro-orders-yearly-table th,
.sabine-be-pro-orders-yearly-table td {
	border: 0;
}

.sabine-be-pro-orders-yearly-table th {
	text-align: left;
	font-size: 0.7rem;
	color: var(--gris-moyen);
	padding: 10px;
	border-bottom: 1px solid var(--noir) !important;
}

.sabine-be-pro-orders-yearly-table td {
	padding: 15px 10px;
	font-size: 1.1rem;
	border-bottom: 1px solid var(--border) !important;
}

.sabine-be-pro-orders-col-total {
	font-weight: bold;
	color: var(--rouge);
}

/* ==========================================================================
   Titre "Toutes mes commandes"
   ========================================================================== */

.sabine-be-pro-orders-list-title {
	margin-bottom: 20px;
	padding-top: 20px;
}

.sabine-be-pro-orders-list-title h3 {
	margin: 0;
	letter-spacing: 2px;
	color: var(--noir);
	font-weight: 700;
	text-transform: lowercase;
	border-left: 2px solid var(--rouge);
	padding-left: 15px;
}

/* ==========================================================================
   Tableau des commandes (liste)
   ========================================================================== */

.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse !important;
	margin-top: 20px;
}

.woocommerce-orders-table,
.woocommerce-orders-table th,
.woocommerce-orders-table td {
	border: 0 !important;
}

.woocommerce-orders-table th {
	font-size: 0.7rem;
	letter-spacing: 1px;
	color: var(--gris);
	padding: 15px 10px !important;
	border-bottom: 2px solid var(--texte) !important;
	text-align: left;
}

th.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number {
	border-bottom: 1px solid var(--border) !important;
}

.woocommerce-orders-table td {
	padding: 20px 10px !important;
	border-bottom: 1px solid var(--border) !important;
	font-size: 0.85rem;
	vertical-align: middle !important;
}

/* Numéro de commande */
.woocommerce-orders-table__cell-order-number a {
	color: var(--texte);
	text-decoration: none;
	font-weight: bold;
}

/* Colonne client */
.sabine-be-pro-order-client {
	display: block;
	text-transform: uppercase !important;
	font-weight: bold;
	font-size: 0.9rem;
	color: var(--texte);
}

.sabine-be-pro-order-guest {
	color: var(--gris-moyen);
	font-style: italic;
}

/* Statut */
.woocommerce-orders-table__cell-order-status {
	color: var(--gris);
	font-style: italic;
}

/* Badge "Commande personnelle" */
.sabine-be-pro-order-self-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: var(--texte);
	color: var(--blanc);
	border-radius: 2px;
	font-weight: 500;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.sabine-be-pro-order-self-badge::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	background: #ffffff;
	border-radius: 50%;
}

/* ==========================================================================
   Bouton Actions (Voir)
   ========================================================================== */

.woocommerce-orders-table .woocommerce-button.button.view,
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.woocommerce-button,
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button {
	display: inline-block;
	background: var(--gris-clair) !important;
	color: var(--noir) !important;
	padding: 8px 20px !important;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: normal;
	letter-spacing: 1px;
	border: none !important;
	border-radius: 0 !important;
	transition: all 0.2s ease;
}

.woocommerce-orders-table .woocommerce-button.button.view:hover,
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.woocommerce-button:hover,
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button:hover {
	background: var(--texte) !important;
	color: var(--blanc) !important;
}

/* ==========================================================================
   États de filtrage
   ========================================================================== */

.woocommerce-orders-table tbody tr.sabine-be-pro-order-hidden {
	display: none;
}

.sabine-be-pro-orders-no-results {
	padding: 30px;
	text-align: center;
	background: var(--gris-clair);
	border: 1px solid var(--border);
	color: var(--gris-moyen);
	margin-top: 20px;
}

.sabine-be-pro-no-orders {
	padding: 20px;
	background: var(--gris-clair);
	border: 1px solid var(--border);
	text-align: center;
	color: var(--gris-moyen);
	font-style: italic;
}

/* ==========================================================================
   VUE DÉTAILLÉE D'UNE COMMANDE (view-order)
   Tous les sélecteurs scopés avec .sabine-be-pro-order-view pour
   surcharger les styles du checkout.css
   ========================================================================== */

.sabine-be-pro-order-view {
	max-width: 100%;
}

/* Container principal - reset checkout.css */
.sabine-be-pro-order-view .sabine-be-pro-checkout-order {
	background: none;
	border: none;
	margin-bottom: 0;
	overflow: visible;
}

/* Contenu - reset checkout.css padding */
.sabine-be-pro-order-view .sabine-be-pro-checkout-content {
	padding: 0;
}

/* Lien retour (au-dessus du header, comme la page création client) */
.sabine-be-pro-order-view .sabine-be-pro-back-link {
	color: var(--gris);
	text-decoration: none;
	font-size: 0.8rem;
	display: inline-block;
	margin-bottom: 15px;
	letter-spacing: 1px;
	transition: color 0.3s;
}

.sabine-be-pro-order-view .sabine-be-pro-back-link:hover {
	color: var(--rouge);
}

/* Header */
.sabine-be-pro-order-view .sabine-be-pro-checkout-header {
	display: block;
	border-bottom: 2px solid var(--noir);
	padding: 0 0 30px 0;
	margin-bottom: 40px;
	background: none;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-header h2 {
	font-size: 1.5rem;
	font-weight: 300;
	margin: 0 0 15px 0;
	text-transform: lowercase;
}

/* Nom du client */
.sabine-be-pro-order-view .sabine-be-pro-checkout-client-name {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gris);
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.9rem;
}

/* ==========================================================================
   Meta commande (date, statut) — style cercle rouge
   ========================================================================== */

.sabine-be-pro-order-view .sabine-be-pro-order-meta {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-bottom: 40px;
}

.sabine-be-pro-order-view .sabine-be-pro-order-meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sabine-be-pro-order-view .sabine-be-pro-order-meta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(242, 54, 69, 0.08);
	color: var(--rouge);
	flex-shrink: 0;
}

.sabine-be-pro-order-view .sabine-be-pro-order-meta-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sabine-be-pro-order-view .sabine-be-pro-order-meta-text .label {
	font-size: 0.65rem;
	color: var(--gris-moyen);
	letter-spacing: 1px;
}

.sabine-be-pro-order-view .sabine-be-pro-order-meta-text .value {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--texte);
}

/* ==========================================================================
   Tableau des produits (vue détaillée)
   ========================================================================== */

/* Reset conteneur produits - supprimer border checkout.css */
.sabine-be-pro-order-view .sabine-be-pro-checkout-products {
	border: none;
	overflow: visible;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table,
.sabine-be-pro-order-view .sabine-be-pro-checkout-table th,
.sabine-be-pro-order-view .sabine-be-pro-checkout-table td {
	border: 0 !important;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table th {
	text-align: left;
	font-size: 0.7rem;
	color: var(--gris-moyen);
	padding: 15px 10px !important;
	border-bottom: 1px solid var(--noir) !important;
	background: none;
	font-weight: 600;
	text-transform: lowercase;
	letter-spacing: 1px;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table td {
	padding: 25px 10px !important;
	border-bottom: 1px solid var(--border) !important;
	vertical-align: top;
	font-size: 0.9rem;
	text-align: left;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table tbody tr:last-child td {
	border-bottom: 1px solid var(--border) !important;
}

/* Nom du produit */
.sabine-be-pro-order-view .sabine-be-pro-checkout-table .product-name a {
	color: var(--noir);
	text-decoration: none;
	font-weight: bold;
	font-size: 1rem;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table .product-name a:hover {
	text-decoration: underline;
}

/* Variations du produit */
.sabine-be-pro-order-view .sabine-be-pro-checkout-table .wc-item-meta {
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;
	font-size: 0.8rem;
	color: var(--gris);
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-table .wc-item-meta li p {
	display: inline;
	margin: 0;
}

/* ==========================================================================
   Totaux
   ========================================================================== */

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals {
	margin-left: auto;
	max-width: 400px;
	background: var(--gris-clair);
	padding: 30px;
	margin-top: 20px;
	border-radius: 0;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row .label {
	color: inherit;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row .value {
	font-weight: inherit;
	color: inherit;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row.tax {
	color: var(--gris);
	font-size: 0.8rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 10px;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row.discount {
	color: var(--rouge);
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row.total {
	font-size: 1.3rem;
	font-weight: bold;
	color: var(--rouge);
	padding-top: 15px;
	margin-top: 0;
	border-top: none;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row.total .label,
.sabine-be-pro-order-view .sabine-be-pro-checkout-totals-row.total .value {
	font-size: 1.3rem;
	font-weight: bold;
	color: var(--rouge);
}

/* ==========================================================================
   Adresses (facturation / livraison)
   ========================================================================== */

.sabine-be-pro-order-view .sabine-be-pro-checkout-addresses-section {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin-top: 60px;
	border-top: 1px solid var(--border);
	padding-top: 40px;
}

/* Reset checkout.css background/padding sur les blocs d'adresse */
.sabine-be-pro-order-view .sabine-be-pro-checkout-address {
	padding: 0;
	background: none;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-addresses-section h3,
.sabine-be-pro-order-view .sabine-be-pro-checkout-details-section h3 {
	font-size: 0.75rem;
	letter-spacing: 2px;
	margin: 0 0 25px 0;
	color: var(--noir);
	font-weight: 700;
	text-transform: lowercase;
	border-left: 2px solid var(--rouge);
	padding-left: 15px;
}

/* Reset checkout.css h3 sur adresses */
.sabine-be-pro-order-view .sabine-be-pro-checkout-address h3 {
	font-size: 0.75rem;
	letter-spacing: 2px;
	margin: 0 0 25px 0;
	color: var(--noir);
	font-weight: 700;
	text-transform: lowercase;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-address-content {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--texte);
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-address-content strong {
	display: inline;
	margin-bottom: 0;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-address-content span.phone,
.sabine-be-pro-order-view .sabine-be-pro-checkout-address-content span.email {
	display: block;
	margin-top: 5px;
	color: var(--gris);
}

/* ==========================================================================
   Détails de la commande (objet, note) + Paiement
   ========================================================================== */

.sabine-be-pro-order-view .sabine-be-pro-checkout-details-section {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin-top: 60px;
	border-top: 1px solid var(--border);
	padding-top: 40px;
}

/* Reset checkout.css padding sur details left/right */
.sabine-be-pro-order-view .sabine-be-pro-checkout-details-left,
.sabine-be-pro-order-view .sabine-be-pro-checkout-details-right {
	padding: 0;
	gap: 16px;
}

/* Reset checkout.css h3 dans details left/right */
.sabine-be-pro-order-view .sabine-be-pro-checkout-details-left h3,
.sabine-be-pro-order-view .sabine-be-pro-checkout-details-right h3 {
	font-size: 0.75rem;
	letter-spacing: 2px;
	margin: 0 0 25px 0;
	color: var(--noir);
	font-weight: 700;
	text-transform: lowercase;
}

.sabine-be-pro-order-view .sabine-be-pro-order-detail-item {
	margin-bottom: 16px;
	padding: 16px;
	background: var(--gris-clair);
	border-left: 2px solid var(--border);
}

.sabine-be-pro-order-view .sabine-be-pro-order-detail-item .label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--gris-moyen);
	margin-bottom: 8px;
}

.sabine-be-pro-order-view .sabine-be-pro-order-detail-item .value {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--texte);
}

/* Aucun détail */
.sabine-be-pro-order-view .sabine-be-pro-no-details {
	margin: 0;
	padding: 15px;
	font-size: 0.85rem;
	color: var(--gris-moyen);
	font-style: italic;
	background: var(--gris-clair);
	border-left: 2px solid var(--border);
}

/* ==========================================================================
   Informations de paiement
   ========================================================================== */

.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--border);
	border-left: 1px solid var(--border);
	margin-bottom: 15px;
	background: none;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card-icon {
	display: block;
	width: auto;
	height: auto;
	background: none;
	color: var(--rouge);
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card-label {
	display: block;
	font-size: 0.7rem;
	color: var(--gris-moyen);
	text-transform: none;
	letter-spacing: normal;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card-value {
	font-weight: bold;
	font-size: 0.9rem;
	color: var(--texte);
	font-style: normal;
}

/* Reset état not-configured dans la vue commande */
.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card.not-configured {
	border-left-color: var(--border);
	background: none;
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card.not-configured .sabine-be-pro-checkout-payment-card-icon {
	background: none;
	color: var(--rouge);
}

.sabine-be-pro-order-view .sabine-be-pro-checkout-payment-card.not-configured .sabine-be-pro-checkout-payment-card-value {
	color: var(--gris-moyen);
	font-style: italic;
}

/* ==========================================================================
   Barre de tri (résultats info + tri sur la même ligne)
   ========================================================================== */

.sabine-be-pro-orders-sort-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
}

.sabine-be-pro-orders-sort-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sabine-be-pro-orders-sort-bar .sort-label {
	font-size: 0.7rem;
	color: var(--gris);
	letter-spacing: 1px;
	font-weight: 600;
}

.sabine-be-pro-orders-sort-select {
	appearance: none;
	-webkit-appearance: none;
	background: var(--gris-clair);
	border: none;
	padding: 8px 30px 8px 12px;
	font-size: 0.75rem;
	font-family: inherit;
	text-transform: lowercase;
	color: var(--texte);
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23091F2C' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	border-radius: 0;
}

.sabine-be-pro-orders-sort-select:focus {
	outline: none;
	box-shadow: inset 0 -2px 0 var(--rouge);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {

	/* --- Barre de tri sticky sur mobile --- */
	.sabine-be-pro-orders-sort-bar {
		flex-direction: column;
		align-items: flex-end;
		row-gap: 10px;
		padding: 12px 0;
		border-bottom: 1px solid var(--noir);
		position: sticky;
		top: 231px;
		background: var(--blanc);
		z-index: 10;
	}

	div.sabine-be-pro-results-info {
		width: 100%;
	}

	/* --- Reset WooCommerce shop_table_responsive --- */
	.woocommerce table.woocommerce-orders-table.shop_table_responsive thead {
		display: none !important;
	}

	.woocommerce table.woocommerce-orders-table.shop_table_responsive {
		border: none !important;
	}

	.woocommerce table.woocommerce-orders-table.shop_table_responsive tbody {
		display: block !important;
	}

	/* Supprimer les labels WooCommerce "client:", "total:", etc. */
	.woocommerce table.woocommerce-orders-table.shop_table_responsive td::before,
	.woocommerce table.woocommerce-orders-table.shop_table_responsive th::before {
		display: none !important;
		content: none !important;
	}

	/* Reset du padding-left WooCommerce responsive */
	.woocommerce table.woocommerce-orders-table.shop_table_responsive td,
	.woocommerce table.woocommerce-orders-table.shop_table_responsive th {
		display: block !important;
		padding: 0 !important;
		border: none !important;
		text-align: left !important;
		width: auto !important;
	}

	/* --- Cartes compactes en flex ---
	   Ligne 1 : n° commande + date (gauche) | prix (droite)
	   Ligne 2 : client (gauche) | bouton voir (droite)
	   Statut masqué en mobile */

	.woocommerce .woocommerce-orders-table__row {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		padding: 14px 0 !important;
		border-bottom: 1px solid var(--border) !important;
		column-gap: 8px;
		row-gap: 4px;
	}

	/* Ligne 1 gauche : n° commande */
	.woocommerce .woocommerce-orders-table__cell-order-number {
		display: block !important;
		flex-shrink: 0;
		font-weight: bold;
		font-size: 0.9rem !important;
		order: 1;
	}

	.woocommerce .woocommerce-orders-table__cell-order-number a {
		font-size: 0.9rem;
		color: var(--texte);
		text-decoration: none;
	}

	/* Ligne 1 gauche : date (après le n° commande) */
	.woocommerce .woocommerce-orders-table__cell-order-date {
		flex: 1 1 0%;
		font-size: 0.75rem !important;
		color: var(--gris-moyen);
		order: 2;
	}

	.woocommerce .woocommerce-orders-table__cell-order-date::after {
		content: none !important;
	}

	/* Ligne 1 droite : prix */
	.woocommerce .woocommerce-orders-table__cell-order-total {
		flex-shrink: 0;
		font-weight: bold !important;
		font-size: 0 !important;
		color: var(--texte);
		white-space: nowrap;
		text-align: right !important;
		order: 3;
	}

	.woocommerce .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
		font-size: 0.9rem !important;
		font-weight: bold;
	}

	/* Ligne 2 gauche : client
	   flex-basis: calc(100% - 60px) force le wrap après le total (ligne 1)
	   tout en laissant la place au bouton voir à droite */
	.woocommerce .woocommerce-orders-table__cell-order-client {
		flex: 1 1 calc(100% - 80px);
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		order: 4;
	}

	.woocommerce .woocommerce-orders-table__cell-order-client .sabine-be-pro-order-client {
		font-size: 0.8rem !important;
		color: var(--gris);
	}

	.woocommerce .woocommerce-orders-table__cell-order-client .sabine-be-pro-order-self-badge {
		font-size: 0.6rem;
		padding: 2px 6px;
	}

	/* Masquer le statut en mobile (sélecteur renforcé pour surpasser le reset td) */
	.woocommerce table.woocommerce-orders-table.shop_table_responsive td.woocommerce-orders-table__cell-order-status {
		display: none !important;
	}

	/* Reset fond alterné WooCommerce responsive */
	.woocommerce table.shop_table_responsive tr:nth-child(2n) td,
	.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
		background-color: transparent !important;
	}

	/* Ligne 2 droite : bouton voir compact */
	.woocommerce table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		display: block !important;
		flex-shrink: 0;
		order: 5;
		text-align: right !important;
	}

	.woocommerce .woocommerce-orders-table__cell-order-actions .woocommerce-button {
		display: inline-block !important;
		font-size: 0.7rem !important;
		padding: 5px 12px !important;
		background: var(--noir) !important;
		color: var(--blanc) !important;
		text-decoration: none !important;
		text-transform: lowercase;
		letter-spacing: 0.5px;
		font-weight: 600;
		border: none !important;
		border-radius: 0 !important;
		line-height: 1.4 !important;
		min-height: 0 !important;
	}

	/* Masquer les boutons actions supplémentaires (garder uniquement le premier) */
	.woocommerce .woocommerce-orders-table__cell-order-actions .woocommerce-button ~ .woocommerce-button {
		display: none !important;
	}

	/* Récap annuel en mode carte */
	.sabine-be-pro-orders-yearly-table thead {
		display: none !important;
	}

	.sabine-be-pro-orders-yearly-table {
		border: none !important;
	}

	.sabine-be-pro-orders-yearly-table tbody {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.sabine-be-pro-orders-yearly-table tr {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 15px;
		border: none !important;
		background: var(--gris-clair);
	}

	.sabine-be-pro-orders-yearly-table td {
		padding: 0 !important;
		border: none !important;
		font-size: 0.9rem !important;
	}

	.sabine-be-pro-orders-yearly-table .sabine-be-pro-orders-col-count {
		color: var(--gris);
		font-size: 0.8rem !important;
	}

	/* Meta commande */
	.sabine-be-pro-order-view .sabine-be-pro-order-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	/* Adresses et détails */
	.sabine-be-pro-order-view .sabine-be-pro-checkout-addresses-section,
	.sabine-be-pro-order-view .sabine-be-pro-checkout-details-section {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-top: 40px;
		padding-top: 30px;
	}

	/* Totaux pleine largeur */
	.sabine-be-pro-order-view .sabine-be-pro-checkout-totals {
		max-width: 100%;
	}

	/* Toolbar responsive */
	.sabine-be-pro-orders-toolbar,
	.sabine-be-pro-orders-toolbar.sabine-be-pro-clients-toolbar {
		flex-direction: column;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 15px;
	}

	.sabine-be-pro-orders-toolbar .sabine-be-pro-clients-filters,
	.sabine-be-pro-orders-filters {
		width: 100%;
		flex-wrap: wrap;
	}

	.sabine-be-pro-orders-filters .select2-container {
		width: 100% !important;
		min-width: 100%;
		max-width: 100%;
	}

	/* Actions retour */
	.sabine-be-pro-checkout-actions {
		margin-top: 40px;
		padding: 30px 0;
	}
}
