/* ============================================================================
   DASHBOARD — Espace Pro Lylcash
   CSS override pour les pages acheteur/vendeur (mon-compte, commandes, etc.)
   Chargé en complément de style.css + custom.css
   ============================================================================ */

/* --- Variables dashboard -------------------------------------------------- */
:root {
	--dash-bg: #f0f3f7;
	--dash-sidebar-bg: var(--primary-darkest);
	--dash-sidebar-text: rgba(255,255,255,.7);
	--dash-sidebar-text-active: #fff;
	--dash-sidebar-accent: var(--secondary-medium);
	--dash-card-bg: #fff;
	--dash-card-radius: .75rem;
	--dash-card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
	--dash-card-shadow-hover: 0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
	--dash-border: #e2e8f0;
	--dash-text: #1a202c;
	--dash-text-muted: #718096;
	--dash-kpi-green: #22c55e;
	--dash-kpi-green-bg: #f0fdf4;
	--dash-kpi-blue: #3b82f6;
	--dash-kpi-blue-bg: #eff6ff;
	--dash-kpi-amber: #f59e0b;
	--dash-kpi-amber-bg: #fffbeb;
	--dash-kpi-red: #ef4444;
	--dash-kpi-red-bg: #fef2f2;
	--dash-kpi-navy: var(--primary-medium);
	--dash-kpi-navy-bg: #eef2f7;
	--dash-transition: .2s cubic-bezier(.4,0,.2,1);
}

/* --- Base resets for dashboard pages -------------------------------------- */
body.dashboard {
	background: var(--dash-bg);
}

body.dashboard main {
	padding: 0;
}

body.dashboard .cms {
	background: transparent;
	padding: 0;
}

body.dashboard .cms-content {
	padding: 0;
	max-width: 100%;
}

/* --- Breadcrumb override: compact, no background image -------------------- */
body.dashboard .breadcrumb.mt-1 {
	margin-top: 0 !important;
	background-image: none !important;
	background: var(--primary-darkest);
	padding: .65rem 0;
	min-height: unset;
}

body.dashboard .breadcrumb .breadcrumb-content {
	padding: 0;
}

body.dashboard .breadcrumb .box-link-2 {
	align-items: center;
}

body.dashboard .breadcrumb h1.title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
}

body.dashboard .breadcrumb::before,
body.dashboard .breadcrumb::after {
	display: none;
}

body.dashboard .breadcrumb [data-overlay]::before {
	display: none;
}

/* --- Dashboard layout ----------------------------------------------------- */
/* z-index: auto permet aux modales internes (position:fixed) de ne pas être
   bloquées par le stacking context de section { z-index: 0 } dans style.css */
section.dash-wrap {
	z-index: auto;
}

.dash-wrap {
	width: calc(100% - 3rem);
	max-width: 95em;
	margin: 4rem auto 0;
	padding: 1.5rem 0;
}
body.dashboard .page-breadcrumb {margin-top: 5rem;}
@media(max-width: 768px) {body.dashboard .page-breadcrumb {margin-top: 3.7rem;}}
.page-breadcrumb + main > .dash-wrap {margin-top: 0;}

/* --- Dashboard greeting header -------------------------------------------- */
.dash-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: .75rem;
}

.dash-header-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.dash-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary-medium), var(--primary-darkest));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: .02em;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(4,23,43,.25);
}

.dash-greeting h1 {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--dash-text);
	margin: 0;
	line-height: 1.3;
}

.dash-greeting p {
	font-size: .8rem;
	color: var(--dash-text-muted);
	margin: .15rem 0 0;
}

.dash-header-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
}

/* --- Dashboard navigation tabs -------------------------------------------- */
.dash-nav {
	display: flex;
	gap: .25rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--dash-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.dash-nav::-webkit-scrollbar {
	display: none;
}

.dash-nav-item {
	display: flex;
	align-items: center;
	gap: .45rem;
	padding: .65rem 1rem;
	font-size: .8rem;
	font-weight: 500;
	color: var(--dash-text-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
	transition: color var(--dash-transition), border-color var(--dash-transition);
	cursor: pointer;
}

.dash-nav-item:hover {
	color: var(--dash-text);
}

.dash-nav-item.active {
	color: var(--primary-medium);
	border-bottom-color: var(--primary-medium);
	font-weight: 600;
}

.dash-nav-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* --- Dashboard tab panels ------------------------------------------------- */
.dash-panel {
	display: none;
	animation: dashFadeIn .3s ease;
}

.dash-panel.active {
	display: block;
}

@keyframes dashFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --- KPI cards row -------------------------------------------------------- */
.dash-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: .75rem;
	margin-bottom: 1.5rem;
}

.dash-kpi {
	background: var(--dash-card-bg);
	border-radius: var(--dash-card-radius);
	padding: 1.15rem 1.25rem;
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	box-shadow: var(--dash-card-shadow);
	transition: box-shadow var(--dash-transition), transform var(--dash-transition);
}

.dash-kpi:hover {
	box-shadow: var(--dash-card-shadow-hover);
	transform: translateY(-1px);
}

.dash-kpi-icon {
	width: 42px;
	height: 42px;
	border-radius: .6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dash-kpi-icon svg {
	width: 20px;
	height: 20px;
}

.dash-kpi-icon.green  { background: var(--dash-kpi-green-bg); color: var(--dash-kpi-green); }
.dash-kpi-icon.blue   { background: var(--dash-kpi-blue-bg);  color: var(--dash-kpi-blue);  }
.dash-kpi-icon.amber  { background: var(--dash-kpi-amber-bg); color: var(--dash-kpi-amber); }
.dash-kpi-icon.red    { background: var(--dash-kpi-red-bg);   color: var(--dash-kpi-red);   }
.dash-kpi-icon.navy   { background: var(--dash-kpi-navy-bg);  color: var(--dash-kpi-navy);  }

.dash-kpi-data {
	flex: 1;
	min-width: 0;
}

.dash-kpi-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--dash-text);
	line-height: 1.2;
}

.dash-kpi-label {
	font-size: .75rem;
	color: var(--dash-text-muted);
	margin-top: .15rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 500;
}

/* --- Dashboard cards ------------------------------------------------------ */
.dash-card {
	background: var(--dash-card-bg);
	border-radius: var(--dash-card-radius);
	box-shadow: var(--dash-card-shadow);
	overflow: hidden;
	transition: box-shadow var(--dash-transition);
}

.dash-card:hover {
	box-shadow: var(--dash-card-shadow-hover);
}

.dash-card + .dash-card {
	margin-top: 1rem;
}

.dash-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--dash-border);
}

.dash-card-title {
	font-size: .9rem;
	font-weight: 600;
	color: var(--dash-text);
	margin: 0;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.dash-card-title svg {
	width: 18px;
	height: 18px;
	color: var(--dash-text-muted);
}

.dash-card-actions {
	display: flex;
	gap: .5rem;
	align-items: center;
}

.dash-card-body {
	padding: 1.25rem;
}

.dash-card-body.no-pad {
	padding: 0;
}

.dash-card-footer {
	padding: .75rem 1.25rem;
	border-top: 1px solid var(--dash-border);
	background: #fafbfc;
	text-align: center;
}

/* --- Dashboard grid layouts ----------------------------------------------- */
.dash-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.dash-grid-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
}

.dash-col-span-2 {
	grid-column: span 2;
}

/* --- Dashboard table ------------------------------------------------------ */
.dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .825rem;
}

.dash-table thead th {
	padding: .65rem 1rem;
	font-size: .7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--dash-text-muted);
	background: #fafbfc;
	border-bottom: 1px solid var(--dash-border);
	text-align: left;
	white-space: nowrap;
}

.dash-table tbody td {
	padding: .75rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	color: var(--dash-text);
	vertical-align: middle;
}

.dash-table tbody tr:last-child td {
	border-bottom: none;
}

.dash-table tbody tr {
	transition: background var(--dash-transition);
}

.dash-table tbody tr:hover {
	background: #f8fafc;
}

.dash-table .cell-mono {
	font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
	font-size: .78rem;
}

.dash-table .cell-right {
	text-align: right;
}

.dash-table .cell-center {
	text-align: center;
}

/* --- Status badges (dashboard flavor) ------------------------------------- */
.dash-badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .2rem .6rem;
	border-radius: 9999px;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .02em;
	white-space: nowrap;
	line-height: 1.5;
}

.dash-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.dash-badge.pending-payment { background: #f3e8ff; color: #6b21a8; }
.dash-badge.pending-payment::before { background: #a855f7; }
.dash-badge.pending   { background: #dbeafe; color: #1e40af; }
.dash-badge.pending::before { background: #3b82f6; }
.dash-badge.shipped   { background: #fff7ed; color: #9a3412; }
.dash-badge.shipped::before { background: #f97316; }
.dash-badge.received  { background: #ecfdf5; color: #047857; }
.dash-badge.received::before { background: #34d399; }
.dash-badge.validated { background: #dcfce7; color: #166534; }
.dash-badge.validated::before { background: #22c55e; }
.dash-badge.paid      { background: #d1fae5; color: #065f46; }
.dash-badge.paid::before { background: #10b981; }
.dash-badge.disputed  { background: #fee2e2; color: #991b1b; }
.dash-badge.disputed::before { background: #ef4444; }
.dash-badge.cancelled { background: #f1f5f9; color: #64748b; }
.dash-badge.cancelled::before { background: #94a3b8; }

/* --- Dashboard buttons ---------------------------------------------------- */
.dash-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1rem;
	font-family: 'Poppins', sans-serif;
	font-size: .8rem;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: .5rem;
	cursor: pointer;
	transition: all var(--dash-transition);
	text-decoration: none;
	line-height: 1.4;
}

.dash-btn svg {
	width: 16px;
	height: 16px;
}

.dash-btn-primary {
	background: var(--primary-darkest);
	color: #fff;
	border-color: var(--primary-darkest);
}

.dash-btn-primary:hover {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
	box-shadow: 0 2px 8px rgba(4,23,43,.2);
}

.dash-btn-secondary {
	background: #fff;
	color: var(--dash-text);
	border-color: var(--dash-border);
}

.dash-btn-secondary:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.dash-btn-accent {
	background: var(--secondary-medium);
	color: #fff;
	border-color: var(--secondary-medium);
}

.dash-btn-accent:hover {
	background: var(--secondary-dark);
	border-color: var(--secondary-dark);
}

.dash-btn-danger {
	background: #fff;
	color: var(--dash-kpi-red);
	border-color: #fecaca;
}

.dash-btn-danger:hover {
	background: var(--dash-kpi-red-bg);
	border-color: var(--dash-kpi-red);
}

.dash-btn-sm {
	padding: .35rem .75rem;
	font-size: .75rem;
}

.dash-btn-xs {
	padding: .25rem .55rem;
	font-size: .7rem;
}

/* --- Dashboard forms ------------------------------------------------------ */
.dash-form-group {
	margin-bottom: 1rem;
}

.dash-form-group:last-child {
	margin-bottom: 0;
}

.dash-form-label {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	color: var(--dash-text);
	margin-bottom: .35rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.dash-form-hint {
	font-size: .72rem;
	color: var(--dash-text-muted);
	margin-top: .25rem;
}

.dash-form-control {
	width: 100%;
	padding: .6rem .85rem;
	font-family: 'Poppins', sans-serif;
	font-size: .85rem;
	color: var(--dash-text);
	background: #fff;
	border: 1px solid var(--dash-border);
	border-radius: .5rem;
	transition: border-color var(--dash-transition), box-shadow var(--dash-transition);
	box-sizing: border-box;
}

.dash-form-control:focus {
	outline: none;
	border-color: var(--primary-medium);
	box-shadow: 0 0 0 3px rgba(25,74,122,.1);
}

.dash-form-control:disabled,
.dash-form-control[readonly] {
	background: #f8fafc;
	color: var(--dash-text-muted);
	cursor: not-allowed;
}

.dash-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

select.dash-form-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8.825c-.2 0-.4-.075-.55-.225l-3.5-3.5c-.3-.3-.3-.8 0-1.1s.8-.3 1.1 0L6 6.95l2.95-2.95c.3-.3.8-.3 1.1 0s.3.8 0 1.1l-3.5 3.5c-.15.15-.35.225-.55.225z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	padding-right: 2.25rem;
}

textarea.dash-form-control {
	resize: vertical;
	min-height: 80px;
}

/* --- Dashboard alerts ----------------------------------------------------- */
.dash-alert {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: .85rem 1rem;
	border-radius: .5rem;
	font-size: .825rem;
	margin-bottom: 1rem;
	border: 1px solid;
}

.dash-alert svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

.dash-alert-success {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.dash-alert-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.dash-alert-warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.dash-alert-info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

/* --- Quick links / sidebar menu ------------------------------------------- */
.dash-quick-links {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.dash-quick-link {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .6rem .85rem;
	font-size: .82rem;
	font-weight: 500;
	color: var(--dash-text);
	text-decoration: none;
	border-radius: .5rem;
	transition: all var(--dash-transition);
}

.dash-quick-link:hover {
	background: #eef2f7;
	color: var(--primary-medium);
}

.dash-quick-link.active {
	background: var(--primary-darkest);
	color: #fff;
}

.dash-quick-link.danger {
	color: var(--dash-kpi-red);
}

.dash-quick-link.danger:hover {
	background: var(--dash-kpi-red-bg);
}

.dash-quick-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: .65;
}

.dash-quick-link.active svg,
.dash-quick-link:hover svg {
	opacity: 1;
}

.dash-quick-link-count {
	margin-left: auto;
	font-size: .7rem;
	font-weight: 600;
	background: #e2e8f0;
	color: var(--dash-text-muted);
	padding: .1rem .45rem;
	border-radius: 9999px;
	min-width: 20px;
	text-align: center;
}

.dash-quick-link.active .dash-quick-link-count {
	background: rgba(255,255,255,.2);
	color: #fff;
}

/* --- Empty state ---------------------------------------------------------- */
.dash-empty {
	text-align: center;
	padding: 2.5rem 1.5rem;
}

.dash-empty svg {
	width: 56px;
	height: 56px;
	color: #cbd5e1;
	margin-bottom: 1rem;
}

.dash-empty h3 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--dash-text);
	margin: 0 0 .35rem;
}

.dash-empty p {
	font-size: .825rem;
	color: var(--dash-text-muted);
	margin: 0 0 1.25rem;
}

/* --- Order card (v3 - 2 colonnes) ---------------------------------------- */
.dash-order {
	padding: 0;
	border-bottom: 1px solid var(--dash-border, #e2e8f0);
	transition: background var(--dash-transition);
}

.dash-order-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .4rem 1.25rem;
	background: rgba(var(--primary-lightest-rgb), .2);
	border-bottom: 1px solid rgba(var(--primary-lightest-rgb), .5);
	gap: .5rem;
	flex-wrap: wrap;
}

.dash-order-bar-left {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.dash-order-bar-right {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
}

/* Boutons spéciaux commandes */
.dash-btn-transfer {
	background: #ecfdf5;
	color: #065f46;
	border-color: #6ee7b7;
}

.dash-btn-transfer:hover {
	background: #d1fae5;
	border-color: #34d399;
}

.dash-btn-cancel {
	background: #fff;
	color: #dc2626;
	border-color: #fca5a5;
}

.dash-btn-cancel:hover {
	background: #fef2f2;
	border-color: #ef4444;
}

.dash-btn-review {
	background: #fffbeb;
	color: #92400e;
	border-color: #fcd34d;
}

.dash-btn-review:hover {
	background: #fef3c7;
	border-color: #f59e0b;
}

/* Modale dashboard */
.dash-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,.5);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.dash-modal-overlay.open {
	display: flex;
}

.dash-modal {
	background: #fff;
	border-radius: .75rem;
	max-width: 480px;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0,0,0,.2);
	animation: dashFadeIn .2s ease;
}

.dash-modal-header {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--dash-border, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dash-modal-header h3 {
	margin: 0;
	font-size: .95rem;
	font-weight: 700;
}

.dash-modal-close {
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--dash-text-muted);
	line-height: 1;
	padding: 0;
}

.dash-modal-close:hover {
	color: var(--dash-text);
}

.dash-modal-body {
	padding: 1.25rem;
}

.dash-order-content {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 0 1.5rem;
	padding: .5rem 1.25rem;
}

.dash-order:last-child {
	border-bottom: none;
}

.dash-order:hover {
	background: rgba(var(--primary-lightest-rgb), .15);
}

/* Colonne gauche : infos commande */
.dash-order-left {
	display: flex;
	gap: .6rem;
	min-width: 0;
	align-items: center;
}

.dash-order-thumb,
.dash-order-thumb-placeholder {
	width: 50px;
	height: 50px;
	border-radius: .375rem;
	flex-shrink: 0;
}

.dash-order-thumb {
	object-fit: cover;
	background: #f1f5f9;
}

.dash-order-thumb-placeholder {
	background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.dash-order-left-info {
	min-width: 0;
	flex: 1;
}

.dash-order-header {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
	line-height: 1.3;
}

.dash-order-id {
	font-weight: 700;
	font-size: .85rem;
	color: var(--dash-text);
}

.dash-order-date {
	font-size: .78rem;
	font-weight: 500;
	color: var(--dash-text);
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}

.dash-order-date svg {
	width: 14px;
	height: 14px;
	color: var(--primary-medium);
}

.dash-order-product {
	font-size: .82rem;
	font-weight: 500;
	color: var(--dash-text);
	line-height: 1.3;
	margin: .1rem 0;
}

.dash-order-meta {
	font-size: .75rem;
	color: var(--dash-text-muted);
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	line-height: 1.3;
}

.dash-order-meta span {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	white-space: nowrap;
}

.dash-order-meta svg {
	width: 12px;
	height: 12px;
}

.dash-order-amount {
	font-weight: 700;
	color: var(--dash-text);
}

/* Colonne droite : actions + adresse + suivi */
.dash-order-right {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	font-size: .78rem;
}

.dash-order-actions {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
}

.dash-order-ship {
	font-size: .75rem;
	line-height: 1.5;
	color: var(--dash-text-muted);
	padding: .5rem .65rem;
	border: 1px solid var(--dash-border, #e2e8f0);
	border-radius: .375rem;
	background: rgba(var(--primary-lightest-rgb), .1);
}

.dash-order-ship-label {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--dash-text);
	display: flex;
	align-items: center;
	gap: .3rem;
	margin-bottom: .15rem;
}

.dash-order-ship-label svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.dash-order-ship-divider {
	border: none;
	border-top: 1px dashed var(--dash-border, #e2e8f0);
	margin: .35rem 0;
}

.dash-order-ship-tracking {
	display: flex;
	align-items: center;
	gap: .3rem;
	font-weight: 600;
	color: #1e40af;
}

.dash-order-ship-tracking svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.dash-order-warning {
	display: inline-block;
	font-size: .75rem;
	font-weight: 600;
	color: #334155;
	padding: .3rem .6rem;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: .375rem;
}

/* --- Order list & detail (refonte commandes) ----------------------------- */

/* Ligne compacte listing */
.dash-ord-row {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .65rem 1.25rem;
	border-bottom: 1px solid var(--dash-border);
	cursor: pointer;
	transition: background var(--dash-transition);
}
.dash-ord-row:last-child { border-bottom: none; }
.dash-ord-row:hover { background: rgba(var(--primary-lightest-rgb), .15); }
.dash-ord-row.active {
	background: rgba(var(--primary-lightest-rgb), .3);
	border-left: 3px solid var(--primary-medium);
}

.dash-ord-row-thumb {
	width: 44px;
	height: 44px;
	border-radius: .375rem;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
}
.dash-ord-row-thumb--empty {
	width: 44px;
	height: 44px;
	border-radius: .375rem;
	flex-shrink: 0;
	background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.dash-ord-row-main { flex: 1; min-width: 0; }
.dash-ord-row-top {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .72rem;
	color: var(--dash-text-muted);
	margin-bottom: .1rem;
}
.dash-ord-row-ref { font-weight: 700; color: var(--dash-text); font-size: .78rem; }
.dash-ord-row-product {
	font-size: .8rem;
	font-weight: 500;
	color: var(--dash-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dash-ord-row-bottom {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: .15rem;
}
.dash-ord-row-amount { font-size: .78rem; font-weight: 700; color: var(--dash-text); }

.dash-ord-row-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .3rem;
	flex-shrink: 0;
}

.dash-ord-row-chevron {
	width: 18px;
	height: 18px;
	color: var(--dash-text-muted);
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform var(--dash-transition), color var(--dash-transition);
}
.dash-ord-row:hover .dash-ord-row-chevron { transform: translateX(2px); color: var(--primary-medium); }

/* Supprime le margin-top entre cards list/detail dans le panel orders */
#dash-ord-detail { margin-top: 0; }

/* Vue detail : retour */
.dash-ord-back {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: none;
	border: none;
	font-size: .8rem;
	font-weight: 600;
	color: var(--primary-medium);
	cursor: pointer;
	padding: 0;
}
.dash-ord-back:hover { text-decoration: underline; }
.dash-ord-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Detail header */
.dash-ord-header { margin-bottom: 1.25rem; }
.dash-ord-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: .5rem;
}
.dash-ord-header-ref { font-size: 1.05rem; font-weight: 700; margin: 0; }
.dash-ord-header-date { font-size: .78rem; color: var(--dash-text-muted); }

/* Stepper horizontal */
.dash-ord-stepper {
	display: flex;
	align-items: flex-start;
	margin-bottom: .5rem;
}
.dash-ord-stepper-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	min-width: 0;
	flex-shrink: 0;
}
.dash-ord-stepper-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, box-shadow .2s;
	flex-shrink: 0;
}
.dash-ord-stepper-step.done .dash-ord-stepper-dot {
	background: var(--dash-kpi-green);
}
.dash-ord-stepper-step.done .dash-ord-stepper-dot::after {
	content: '';
	width: 12px;
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dash-ord-stepper-step.current .dash-ord-stepper-dot {
	background: var(--primary-medium);
	box-shadow: 0 0 0 4px rgba(var(--primary-medium-rgb, 25, 74, 122), .2);
}
.dash-ord-stepper-step.current .dash-ord-stepper-dot::after {
	content: '';
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
}
.dash-ord-stepper-step.disputed .dash-ord-stepper-dot {
	background: var(--dash-kpi-red);
}
.dash-ord-stepper-step.disputed .dash-ord-stepper-dot::after {
	content: '!';
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	line-height: 1;
}
.dash-ord-stepper-step.cancelled .dash-ord-stepper-dot {
	background: #94a3b8;
}
.dash-ord-stepper-step.cancelled .dash-ord-stepper-dot::after {
	content: '';
	width: 12px;
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dash-ord-stepper-step span {
	font-size: .6rem;
	font-weight: 600;
	color: var(--dash-text-muted);
	text-align: center;
	line-height: 1.2;
	max-width: 70px;
}
.dash-ord-stepper-step.done span,
.dash-ord-stepper-step.current span { color: var(--dash-text); }

.dash-ord-stepper-line {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	align-self: center;
	margin: 0 .15rem;
	margin-top: -10px;
}
.dash-ord-stepper-line.done { background: var(--dash-kpi-green); }

/* Sections detail */
.dash-ord-section {
	padding: .85rem 0;
	border-top: 1px solid var(--dash-border);
}
.dash-ord-section:first-of-type { border-top: none; padding-top: 0; }
.dash-ord-section-title {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--dash-text-muted);
	margin: 0 0 .5rem;
	display: flex;
	align-items: center;
	gap: .35rem;
}
.dash-ord-section-title svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Produit dans detail */
.dash-ord-product {
	display: flex;
	gap: .75rem;
	align-items: center;
}
.dash-ord-product-img {
	width: 64px;
	height: 64px;
	border-radius: .375rem;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
}
.dash-ord-product-info { flex: 1; min-width: 0; }
.dash-ord-product-name { font-size: .85rem; font-weight: 600; color: var(--dash-text); }
.dash-ord-product-meta { font-size: .75rem; color: var(--dash-text); margin-top: .15rem; line-height: 1.6; }
.dash-ord-product-total { font-size: .88rem; font-weight: 700; color: var(--dash-text); margin-top: .25rem; }

/* Placeholder produit dans detail (64px) */
.dash-ord-product-placeholder {
	width: 64px;
	height: 64px;
	border-radius: .375rem;
	flex-shrink: 0;
	background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E") center / 30px no-repeat;
}

/* Section title variants */
.dash-ord-section-title.danger { color: var(--dash-kpi-red); }
.dash-ord-section-title.muted { color: var(--dash-text-muted); }
.dash-ord-section-title.review { color: #92400e; }

/* Form inline dans detail */
.dash-ord-form-inline { display: inline; }
.dash-ord-actions-mt { margin-top: .75rem; }

/* Section toggle warning text */
.dash-ord-warning-text {
	margin: 0 0 .75rem;
	font-size: .8rem;
	color: var(--dash-text-muted);
}

/* Payment bank address muted */
.dash-ord-payment-bank .muted { color: #64748b; font-size: .8rem; }

/* CGV link in help */
.dash-ord-help-list a { color: var(--primary-medium); text-decoration: underline; }

/* Client success badge (vendeur) */
.dash-ord-client-badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	margin-bottom: .5rem;
	padding: .3rem .6rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: .375rem;
	font-size: .75rem;
	font-weight: 600;
	color: #166534;
}
.dash-ord-client-badge svg { width: 14px; height: 14px; }

/* Adresse livraison */
.dash-ord-address {
	font-size: .8rem;
	line-height: 1.6;
	color: var(--dash-text);
}

/* Tracking */
.dash-ord-tracking {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-top: .5rem;
	padding: .4rem .65rem;
	background: rgba(var(--primary-lightest-rgb), .1);
	border: 1px solid var(--dash-border);
	border-radius: .375rem;
}
.dash-ord-tracking-label {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dash-text);
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}
.dash-ord-tracking-value {
	font-weight: 600;
	color: var(--dash-text);
	font-size: .8rem;
}
.dash-ord-tracking-value svg {
	width: 13px;
	height: 13px;
	vertical-align: -.1em;
	margin-right: .2rem;
}

/* Paiement inline */
.dash-ord-payment-bank {
	background: #f8fafc;
	padding: .75rem;
	border-radius: .5rem;
	border: 1px solid var(--dash-border);
	font-size: .85rem;
	line-height: 1.6;
}
.dash-ord-payment-bank p { margin: 0 0 .35rem; }
.dash-ord-payment-bank p:last-child { margin: 0; }
.dash-ord-payment-ref {
	background: var(--primary-darkest);
	color: #fff;
	padding: .5rem .75rem;
	border-radius: .375rem;
	text-align: center;
	font-weight: 700;
	font-size: .9rem;
	margin-top: .6rem;
	letter-spacing: .5px;
}
.dash-ord-payment-hint {
	font-size: .75rem;
	color: var(--dash-text-muted);
	text-align: center;
	margin-top: .35rem;
}

/* Actions dans detail */
.dash-ord-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
}

/* Section toggle (dispute/cancel cachee) */
.dash-ord-section--toggle {
	background: #fafbfc;
	border-radius: .5rem;
	padding: .85rem;
	margin-top: .5rem;
	border: 1px solid var(--dash-border);
}

/* Panneau aide (colonne droite) */
.dash-ord-help {
	position: sticky;
	top: 1.5rem;
}

.dash-ord-help-step {
	display: flex;
	gap: .65rem;
	padding: .5rem 0;
}
.dash-ord-help-step:last-child { padding-bottom: 0; }

.dash-ord-help-num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--primary-medium);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dash-ord-help-text {
	font-size: .78rem;
	color: var(--dash-text);
	line-height: 1.5;
}
.dash-ord-help-text strong { color: var(--dash-text); }

.dash-ord-help-subtitle {
	font-size: .82rem;
	font-weight: 700;
	color: var(--dash-text);
	margin: 0 0 .5rem;
}

.dash-ord-help-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.dash-ord-help-list li {
	font-size: .78rem;
	color: var(--dash-text);
	line-height: 1.5;
	padding: .35rem 0;
	border-bottom: 1px solid #f1f5f9;
}
.dash-ord-help-list li:last-child { border-bottom: none; }
.dash-ord-help-list li strong { color: var(--primary-medium); }

/* Aide contextuelle par statut */
.dash-ord-help-status {
	padding: .75rem;
	border-radius: .5rem;
	line-height: 1.6;
	font-size: .82rem;
}
.dash-ord-help-status strong {
	display: block;
	margin-bottom: .25rem;
	font-size: .85rem;
}
.dash-ord-help-status p { margin: .25rem 0 0; font-size: .78rem; color: var(--dash-text-muted); }

.dash-ord-help-status.action {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}
.dash-ord-help-status.action p { color: #3b82f6; }

.dash-ord-help-status.wait {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}
.dash-ord-help-status.wait p { color: #b45309; }

.dash-ord-help-status.success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}
.dash-ord-help-status.success p { color: #16a34a; }

.dash-ord-help-status.danger {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
.dash-ord-help-status.danger p { color: #dc2626; }

.dash-ord-help-status.neutral {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
}
.dash-ord-help-status.neutral p { color: #64748b; }

/* Modale de confirmation (remplace alert/confirm JS) */
.dash-confirm-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10001;
	background: rgba(0,0,0,.5);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.dash-confirm-overlay.open { display: flex; }
.dash-confirm-box {
	background: #fff;
	border-radius: .75rem;
	max-width: 400px;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0,0,0,.2);
	animation: dashFadeIn .2s ease;
}
.dash-confirm-header {
	padding: .85rem 1.15rem;
	border-bottom: 1px solid var(--dash-border);
	display: flex;
	align-items: center;
	gap: .5rem;
}
.dash-confirm-header svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.dash-confirm-header span {
	font-size: .9rem;
	font-weight: 700;
}
.dash-confirm-body {
	padding: 1rem 1.15rem;
	font-size: .85rem;
	line-height: 1.5;
	color: var(--dash-text);
}
.dash-confirm-footer {
	padding: .75rem 1.15rem;
	border-top: 1px solid var(--dash-border);
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
}

/* --- Product row (vendor product list) ----------------------------------- */
.dash-product-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .6rem 1.25rem;
	border-bottom: 1px solid var(--dash-border, #e2e8f0);
	transition: background .15s;
}

.dash-product-row:last-child {
	border-bottom: none;
}

.dash-product-row:hover {
	background: rgba(var(--primary-lightest-rgb), .15);
}

.dash-product-left {
	display: flex;
	align-items: center;
	gap: .6rem;
	flex: 1;
	min-width: 0;
}

.dash-product-actions {
	display: flex;
	align-items: center;
	gap: .3rem;
	flex-shrink: 0;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.dash-product-row {
		flex-direction: column;
		align-items: flex-start;
		gap: .5rem;
	}

	.dash-product-actions {
		width: 100%;
	}

	.dash-product-actions .dash-btn {
		flex: 1;
		justify-content: center;
	}
}

/* Legacy compat */
.dash-order-icon { display: none; }

/* --- Dispute expandable section ------------------------------------------- */
.dash-dispute {
	margin: 0 1.25rem .75rem;
	padding: 1rem;
	background: #fafbfc;
	border: 1px solid var(--dash-border);
	border-left: 3px solid var(--dash-kpi-red);
	border-radius: .5rem;
	display: none;
}

.dash-dispute.open {
	display: block;
	animation: dashFadeIn .25s ease;
}

/* --- Dispute visible block (always shown for disputed orders) ------------- */
.dash-dispute-visible {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin-top: .5rem;
	padding: .6rem .75rem;
	background: var(--dash-kpi-red-bg);
	border: 1px solid #fecaca;
	border-left: 3px solid var(--dash-kpi-red);
	border-radius: .375rem;
	font-size: .8rem;
}

.dash-dispute-title {
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--dash-kpi-red);
	margin-bottom: .2rem;
}

.dash-dispute-text {
	font-size: .84rem;
	color: #991b1b;
	line-height: 1.5;
}

/* --- Profile info rows ---------------------------------------------------- */
.dash-profile-row {
	display: flex;
	align-items: center;
	padding: .65rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.dash-profile-row:last-child {
	border-bottom: none;
}

.dash-profile-label {
	flex: 0 0 140px;
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--dash-text-muted);
}

.dash-profile-value {
	flex: 1;
	font-size: .85rem;
	color: var(--dash-text);
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.dash-grid-2 {
		grid-template-columns: 1fr;
	}
	.dash-grid-3 {
		grid-template-columns: 1fr;
	}
	.dash-col-span-2 {
		grid-column: span 1;
	}
}

@media (max-width: 768px) {
	.dash-wrap {
		width: calc(100% - 1rem);
		padding: 1rem 0;
	}

	.dash-header {
		margin-bottom: 1rem;
	}

	.dash-kpis {
		grid-template-columns: 1fr 1fr;
		gap: .5rem;
	}

	.dash-kpi {
		padding: .85rem 1rem;
	}

	.dash-kpi-value {
		font-size: 1.2rem;
	}

	.dash-form-row {
		grid-template-columns: 1fr;
	}

	/* Stepper responsive */
	.dash-ord-stepper { flex-direction: column; align-items: flex-start; gap: 0; }
	.dash-ord-stepper-step { flex-direction: row; min-width: unset; gap: .5rem; }
	.dash-ord-stepper-step span { text-align: left; max-width: none; }
	.dash-ord-stepper-line { width: 2px; height: 16px; flex: none; margin: 0 0 0 13px; }
	.dash-ord-help { position: static; margin-top: 1rem; }

	.dash-order-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: .4rem;
		padding: .5rem 1rem;
	}

	.dash-order-bar-right {
		width: 100%;
	}

	.dash-order-bar-right .dash-btn {
		flex: 1;
		justify-content: center;
		text-align: center;
	}

	.dash-order-content {
		grid-template-columns: 1fr;
		gap: .5rem 0;
	}

	.dash-order-actions .dash-btn {
		flex: 1;
		justify-content: center;
	}

	.dash-nav-item {
		padding: .5rem .75rem;
		font-size: .75rem;
	}

	.dash-profile-row {
		flex-direction: column;
		align-items: flex-start;
		gap: .2rem;
	}

	.dash-profile-label {
		flex: none;
	}
}

@media (max-width: 480px) {
	.dash-kpis {
		grid-template-columns: 1fr;
	}

	.dash-avatar {
		width: 44px;
		height: 44px;
		font-size: 1.05rem;
	}

	.dash-greeting h1 {
		font-size: 1.15rem;
	}

	.dash-header-actions {
		width: 100%;
	}

	.dash-header-actions .dash-btn {
		flex: 1;
		justify-content: center;
	}
}

/* --- Utility: separator --------------------------------------------------- */
.dash-sep {
	border: none;
	border-top: 1px solid var(--dash-border);
	margin: 1rem 0;
}

/* --- Utility: text -------------------------------------------------------- */
.dash-text-muted { color: var(--dash-text-muted); }
.dash-text-sm { font-size: .8rem; }
.dash-text-xs { font-size: .72rem; }
.dash-text-right { text-align: right; }
.dash-text-center { text-align: center; }
.dash-fw-600 { font-weight: 600; }
.dash-mt-1 { margin-top: 1rem; }
.dash-mb-1 { margin-bottom: 1rem; }
.dash-mb-0 { margin-bottom: 0; }
.dash-mb-15 { margin-bottom: 1.5rem; }

/* --- Preference checkbox cards -------------------------------------------- */
.dash-pref-check {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .7rem .85rem;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: .5rem;
	transition: all var(--dash-transition);
	user-select: none;
}

.dash-pref-check:hover {
	background: #f8fafc;
}

.dash-pref-check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.dash-pref-check-box {
	width: 22px;
	height: 22px;
	border: 2px solid var(--dash-border);
	border-radius: .35rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all var(--dash-transition);
}

.dash-pref-check-box svg {
	width: 14px;
	height: 14px;
	color: #fff;
	opacity: 0;
	transform: scale(.5);
	transition: all var(--dash-transition);
}

.dash-pref-check input:checked ~ .dash-pref-check-box {
	background: var(--primary-medium);
	border-color: var(--primary-medium);
}

.dash-pref-check input:checked ~ .dash-pref-check-box svg {
	opacity: 1;
	transform: scale(1);
}

.dash-pref-check-label {
	font-size: .84rem;
	font-weight: 500;
	color: var(--dash-text);
}

.dash-pref-check input:checked ~ .dash-pref-check-label {
	color: var(--primary-medium);
	font-weight: 600;
}

/* --- Steps (how it works) ------------------------------------------------- */
.dash-step {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: .75rem 0;
}

.dash-step + .dash-step {
	border-top: 1px solid #f1f5f9;
}

.dash-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary-darkest);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	font-weight: 700;
	flex-shrink: 0;
}

.dash-step-text {
	font-size: .84rem;
	color: var(--dash-text);
	line-height: 1.5;
	padding-top: .25rem;
}

.dash-step-text strong {
	color: var(--primary-medium);
}

/* --- Dispute ticket timeline --------------------------------------------- */
.dash-timeline {
	position: relative;
	padding-left: 2rem;
}

.dash-timeline::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--dash-border);
}

.dash-timeline-item {
	position: relative;
	padding-bottom: 1.25rem;
}

.dash-timeline-item:last-child {
	padding-bottom: 0;
}

.dash-timeline-dot {
	position: absolute;
	left: -2rem;
	top: .15rem;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.dash-timeline-dot svg {
	width: 12px;
	height: 12px;
}

.dash-timeline-dot.client {
	background: var(--dash-kpi-blue-bg);
	color: var(--dash-kpi-blue);
	border: 2px solid var(--dash-kpi-blue);
}

.dash-timeline-dot.admin {
	background: var(--dash-kpi-navy-bg);
	color: var(--primary-medium);
	border: 2px solid var(--primary-medium);
}

.dash-timeline-dot.action-open {
	background: var(--dash-kpi-red-bg);
	color: var(--dash-kpi-red);
	border-color: var(--dash-kpi-red);
}

.dash-timeline-dot.action-resolve {
	background: var(--dash-kpi-green-bg);
	color: var(--dash-kpi-green);
	border-color: var(--dash-kpi-green);
}

.dash-timeline-dot.action-close {
	background: #f1f5f9;
	color: #64748b;
	border-color: #94a3b8;
}

.dash-timeline-dot.action-reopen {
	background: var(--dash-kpi-amber-bg);
	color: var(--dash-kpi-amber);
	border-color: var(--dash-kpi-amber);
}

.dash-timeline-dot.vendor {
	background: #fef3c7;
	color: #d97706;
	border: 2px solid #d97706;
}

.dash-timeline-header {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: .3rem;
}

.dash-timeline-author {
	font-size: .8rem;
	font-weight: 600;
	color: var(--dash-text);
}

.dash-timeline-action {
	font-size: .65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: .1rem .45rem;
	border-radius: 9999px;
	background: #f1f5f9;
	color: var(--dash-text-muted);
}

.dash-timeline-action.open    { background: #fee2e2; color: #991b1b; }
.dash-timeline-action.resolve { background: #dcfce7; color: #166534; }
.dash-timeline-action.close   { background: #f1f5f9; color: #64748b; }
.dash-timeline-action.reopen  { background: #fef3c7; color: #92400e; }

.dash-timeline-date {
	font-size: .72rem;
	color: var(--dash-text-muted);
	margin-left: auto;
}

.dash-timeline-message {
	font-size: .84rem;
	color: var(--dash-text);
	line-height: 1.6;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: .5rem;
	padding: .7rem .85rem;
}

/* --- Dispute detail card (in orders tab) --------------------------------- */
.dash-dispute-detail {
	margin: 0 1.25rem 1rem;
	padding: 1rem;
	background: #fafbfc;
	border: 1px solid var(--dash-border);
	border-radius: .5rem;
}

.dash-dispute-detail-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .75rem;
	flex-wrap: wrap;
	gap: .5rem;
}

.dash-dispute-detail-title {
	font-size: .82rem;
	font-weight: 600;
	color: var(--dash-text);
	display: flex;
	align-items: center;
	gap: .4rem;
}

.dash-dispute-detail-title svg {
	width: 16px;
	height: 16px;
	color: var(--dash-kpi-red);
}

/* --- Dispute reply form -------------------------------------------------- */
.dash-dispute-reply {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--dash-border);
}

.dash-dispute-reply-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .75rem;
}

/* --- Dispute list (Litiges tab) ------------------------------------------ */
.dash-dispute-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f1f5f9;
	transition: background var(--dash-transition);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.dash-dispute-card:hover {
	background: #f8fafc;
}

.dash-dispute-card:last-child {
	border-bottom: none;
}

.dash-dispute-card-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--dash-kpi-red-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dash-dispute-card-icon svg {
	width: 18px;
	height: 18px;
	color: var(--dash-kpi-red);
}

.dash-dispute-card-icon.resolved {
	background: var(--dash-kpi-green-bg);
}

.dash-dispute-card-icon.resolved svg {
	color: var(--dash-kpi-green);
}

.dash-dispute-card-icon.closed {
	background: #f1f5f9;
}

.dash-dispute-card-icon.closed svg {
	color: #94a3b8;
}

.dash-dispute-card-main {
	flex: 1;
	min-width: 0;
}

.dash-dispute-card-top {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: .25rem;
}

.dash-dispute-card-meta {
	font-size: .75rem;
	color: var(--dash-text-muted);
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* --- Address cards -------------------------------------------------------- */
.dash-address-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1rem;
}

.dash-address-card {
	background: var(--dash-card-bg);
	border-radius: var(--dash-card-radius);
	box-shadow: var(--dash-card-shadow);
	padding: 1.15rem 1.25rem;
	position: relative;
	transition: box-shadow var(--dash-transition), transform var(--dash-transition);
	border: 2px solid transparent;
}

.dash-address-card:hover {
	box-shadow: var(--dash-card-shadow-hover);
	transform: translateY(-1px);
}

.dash-address-card.is-default {
	border-color: var(--primary-medium);
}

.dash-address-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .65rem;
}

.dash-address-alias {
	font-size: .85rem;
	font-weight: 600;
	color: var(--dash-text);
	display: flex;
	align-items: center;
	gap: .4rem;
}

.dash-address-alias svg {
	width: 16px;
	height: 16px;
	color: var(--dash-text-muted);
}

.dash-address-default-badge {
	font-size: .65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: .15rem .5rem;
	border-radius: 9999px;
	background: var(--dash-kpi-blue-bg);
	color: var(--dash-kpi-blue);
}

.dash-address-body {
	font-size: .825rem;
	color: var(--dash-text);
	line-height: 1.6;
	margin-bottom: .75rem;
}

.dash-address-body .muted {
	color: var(--dash-text-muted);
	font-size: .78rem;
}

.dash-address-actions {
	display: flex;
	gap: .4rem;
	flex-wrap: wrap;
	border-top: 1px solid var(--dash-border);
	padding-top: .75rem;
}

/* --- Shipping info block (order detail) ---------------------------------- */
.dash-shipping-info {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin: 0 1.25rem .75rem;
	padding: .75rem .85rem;
	background: var(--dash-kpi-blue-bg);
	border: 1px solid #bfdbfe;
	border-radius: .5rem;
	font-size: .82rem;
	color: #1e40af;
}

.dash-shipping-info svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 2px;
}

.dash-shipping-info .pending {
	color: var(--dash-kpi-amber);
}

.dash-address-inline {
	font-size: .78rem;
	color: var(--dash-text-muted);
	margin: 0 1.25rem .5rem;
	padding: .5rem .75rem;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: .4rem;
	line-height: 1.5;
}

/* --- Modales dashboard (z-index supérieur à tout) ------------------------- */
.dash-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,.6);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.dash-modal-overlay.open { display: flex; }

/* --- Modale charte vendeur (non fermable) -------------------------------- */
.charte-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	background: rgba(15, 23, 42, .6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.charte-blur main, .charte-blur footer, .charte-blur .page-breadcrumb {filter: blur(6px);pointer-events: none;user-select: none;}

.charte-container {
	background: #fff;
	border-radius: .75rem;
	max-width: 800px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

.charte-content {
	flex: 1;
	overflow-y: auto;
	padding: 2rem 2.5rem 1rem;
	font-size: .88rem;
	line-height: 1.7;
	color: var(--dash-text);
}

.charte-content h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--primary-darkest, #1a202c);
	margin: 1.5rem 0 .5rem;
}

.charte-content h3:first-of-type {
	margin-top: .75rem;
}

.charte-content ul {
	margin: .5rem 0 1rem 1.25rem;
	padding: 0;
}

.charte-content li {
	margin-bottom: .4rem;
}

.charte-content p {
	margin: 0 0 .75rem;
}

.charte-footer {
	position: sticky;
	bottom: 0;
	background: #f8fafc;
	border-top: 1px solid var(--dash-border, #e2e8f0);
	border-radius: 0 0 .75rem .75rem;
	padding: 1.25rem 2.5rem;
}

.charte-footer form {
	display: flex;
	flex-direction: column;
	gap: .85rem;
}

.charte-checkbox-label {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: .85rem;
	font-weight: 500;
	color: var(--dash-text, #1a202c);
	cursor: pointer;
	user-select: none;
}

.charte-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--primary-medium, #2563eb);
	flex-shrink: 0;
	cursor: pointer;
}

.charte-submit {
	width: 100%;
	justify-content: center;
	font-size: .9rem;
	padding: .75rem 1.5rem;
}

.charte-submit:disabled {
	opacity: .45;
	cursor: not-allowed;
}

@media (max-width: 640px) {
	.charte-content {
		padding: 1.25rem 1rem .75rem;
	}

	.charte-footer {
		padding: 1rem;
	}
}

/* --- Avis vendeurs ------------------------------------------------------- */

.review-stars {
	display: inline-flex;
	gap: .15rem;
}

.review-star {
	font-size: 1.5rem;
	color: #d1d5db;
	cursor: pointer;
	transition: color .15s;
	user-select: none;
	transition: color .15s;
	line-height: 1;
}

.review-star.active {
	color: #f59e0b;
}

/* Hover : toutes jaunes jusqu'à celle survolée */
.review-stars:hover .review-star {
	color: #f59e0b;
}

.review-stars .review-star:hover ~ .review-star:not(.active) {
	color: #d1d5db;
}

.review-stars-display {
	color: #f59e0b;
	font-size: .95rem;
	letter-spacing: .05em;
}

.review-stars-inline {
	color: #f59e0b;
	font-size: .8rem;
	letter-spacing: .02em;
	margin-left: .25rem;
}

.review-badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .8rem;
	color: var(--dash-kpi-green, #22c55e);
	font-weight: 600;
	padding: .25rem .65rem;
	background: var(--dash-kpi-green-bg, #f0fdf4);
	border-radius: .375rem;
}

.review-form {
	background: var(--dash-card-bg, #fff);
	border: 1px solid var(--dash-border, #e2e8f0);
	border-left: 3px solid var(--dash-kpi-amber, #f59e0b);
	border-radius: 0 0 var(--dash-card-radius, .75rem) var(--dash-card-radius, .75rem);
	padding: 1rem 1.25rem;
	display: none;
}

.review-form.open {
	display: block;
}

.review-badge-vendor {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
	background: var(--dash-kpi-amber-bg, #fffbeb);
	border: 1px solid rgba(245, 158, 11, .2);
	border-radius: var(--dash-card-radius, .75rem);
	font-size: .9rem;
	color: var(--dash-text, #1a202c);
}
