/* ═══════════════════════════════════════════════════════════════════
   InkHub — Design system
   Palette d'encre Gel-Ink + dark mode + animations ludiques
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Palette principale (encres Gel-Ink) */
    --ink-cyan: #009FE3;
    --ink-cyan-light: #83D0F5;
    --ink-magenta: #E6007E;
    --ink-magenta-light: #F29FC5;
    --ink-yellow: #FFED00;
    --ink-orange: #F6A316;
    --ink-green: #66B32E;
    --ink-red: #FF3B30;
    --ink-blue-deep: #0057B8;
    --ink-gold: #FFD700;
    --ink-violet: #6C5DD3;

    /* Legacy / compat */
    --ink-blue: #009FE3;
    --ink-blue-light: #83D0F5;

    /* Neutres */
    --ink-black: #1B181C;
    --ink-white: #FFFFFF;
    --ink-gray-bg: #F5F6FA;
    --ink-gray-text: #5A5A5A;
    --ink-border: #E2E5EB;
    --ink-text: #1E1E2D;

    /* Surfaces thémées */
    --surface: var(--ink-white);
    --surface-alt: var(--ink-gray-bg);
    --surface-raised: var(--ink-white);
    --text-primary: var(--ink-text);
    --text-muted: var(--ink-gray-text);
    --border: var(--ink-border);

    /* Ombres */
    --ink-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ink-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ink-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --ink-shadow-colored: 0 8px 24px rgba(0, 159, 227, 0.25);

    --ink-radius: 0.625rem;
    --ink-radius-sm: 0.375rem;
    --ink-radius-lg: 1rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
}

/* ═══════════════════════════════════════
   Dark mode
   ═══════════════════════════════════════ */
[data-theme="dark"] {
    --surface: #1A1D23;
    --surface-alt: #12141A;
    --surface-raised: #222730;
    --text-primary: #E8EAF0;
    --text-muted: #9CA3AF;
    --border: #2D323C;
    --ink-white: #E8EAF0;
    --ink-gray-bg: #12141A;
    --ink-gray-text: #9CA3AF;
    --ink-border: #2D323C;
    --ink-text: #E8EAF0;
    --ink-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --ink-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body { background: var(--surface-alt); color: var(--text-primary); }
[data-theme="dark"] .card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .card-header { background: var(--surface); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .top-navbar { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .page-header { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .page-header h1 { color: var(--text-primary); }
[data-theme="dark"] .dash-stat { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .dash-stat__value { color: var(--text-primary); }
[data-theme="dark"] .dash-actions .list-group-item { background: var(--surface); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .dash-actions .list-group-item:hover { background: var(--surface-alt); }
[data-theme="dark"] .dash-empty { background: var(--surface-alt); border-color: var(--border); }
[data-theme="dark"] .dash-empty__icon { background: var(--surface); }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: var(--surface-alt); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .form-control:focus, [data-theme="dark"] .form-select:focus { background: var(--surface-alt); color: var(--text-primary); }
[data-theme="dark"] .table { color: var(--text-primary); --bs-table-bg: transparent; --bs-table-color: var(--text-primary); }
[data-theme="dark"] .table-light { --bs-table-bg: var(--surface-alt); --bs-table-color: var(--text-primary); }
[data-theme="dark"] .table-hover tbody tr:hover { background: var(--surface-alt); }
[data-theme="dark"] .modal-content { background: var(--surface); color: var(--text-primary); }
[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }

/* ═══════════════════════════════════════
   Base
   ═══════════════════════════════════════ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--surface-alt);
    min-height: 100vh;
    font-size: 0.9rem;
    transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}

/* Animation d'apparition globale.
   Le `to` ne déclare PAS `transform` : avec `animation-fill-mode: both`, déclarer
   `transform: translateY(0)` laisse la propriété fixée sur l'élément après animation,
   créant un stacking context qui piège les modaux Bootstrap (z-index 1055) sous le
   backdrop body-level (z-index 1050). En omettant la prop sur `to`, le navigateur
   interpole naturellement vers la valeur cascadée (none) et la libère après animation. */
@keyframes ink-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; }
}

@keyframes ink-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ink-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.96); }
}

@keyframes ink-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(246, 163, 22, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(246, 163, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 163, 22, 0); }
}

@keyframes ink-drop {
    0% { transform: translateY(-20px) scale(0.8); opacity: 0; }
    60% { transform: translateY(4px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes ink-spin { to { transform: rotate(360deg); } }

@keyframes ink-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes ink-bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

/* Note: fill-mode `none` (default) au lieu de `both` — empêche le navigateur de
   conserver la valeur de transform interpolée à la fin de l'animation, ce qui
   créerait un stacking context qui piège les modaux Bootstrap (z-index 1055)
   sous leur backdrop body-level (z-index 1050). Sans `both`, l'élément revient
   à son état naturel post-animation : opacity 1, transform none. Le risque de
   flicker à l'init est nul en pratique car l'animation démarre dès le mount. */
.content-area > * { animation: ink-fade-up var(--duration-slow) var(--ease-out); }
.content-area > *:nth-child(2) { animation-delay: 60ms; }
.content-area > *:nth-child(3) { animation-delay: 120ms; }
.content-area > *:nth-child(4) { animation-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════ */
.sidebar {
    width: 260px;
    min-height: 100vh;
    max-height: 100vh;
    background: linear-gradient(180deg, #1B181C 0%, #252229 100%);
    color: var(--ink-white);
    --bs-nav-link-color: rgba(255, 255, 255, 0.7);
    --bs-nav-link-hover-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--duration-base) var(--ease-out);
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar-brand__logo {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--ink-cyan) 0%, var(--ink-magenta) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.25);
    position: relative;
    overflow: hidden;
}

.sidebar-brand__logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.sidebar-brand:hover .sidebar-brand__logo::after { transform: translateX(100%); }

.sidebar-brand h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}

.sidebar-brand small {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    display: block;
}

.sidebar-nav { padding: 1rem 0; }

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link svg, .sidebar-nav .nav-link i {
    width: 18px;
    margin-right: 0.65rem;
    transition: transform var(--duration-base) var(--ease-bounce), color var(--duration-base);
}

.sidebar-nav .nav-link:hover {
    color: var(--ink-white);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link:hover svg {
    transform: scale(1.15) rotate(-4deg);
}

.sidebar-nav .nav-link.active {
    color: var(--ink-cyan);
    background: linear-gradient(90deg, rgba(0, 159, 227, 0.18) 0%, rgba(0, 159, 227, 0.02) 100%);
    border-left-color: var(--ink-cyan);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-cyan);
    box-shadow: 0 0 12px var(--ink-cyan);
}

/* Ic\u00f4nes color\u00e9es par section */
.sidebar-nav .nav-link[data-ink-section="dashboard"] svg { color: var(--ink-cyan); }
.sidebar-nav .nav-link[data-ink-section="orders"] svg { color: var(--ink-magenta); }
.sidebar-nav .nav-link[data-ink-section="import"] svg { color: var(--ink-orange); }
.sidebar-nav .nav-link[data-ink-section="catalog"] svg { color: var(--ink-green); }
.sidebar-nav .nav-link[data-ink-section="hazard"] svg { color: var(--ink-red); }
.sidebar-nav .nav-link[data-ink-section="integration"] svg { color: var(--ink-violet); }
.sidebar-nav .nav-link[data-ink-section="admin"] svg { color: var(--ink-gold); }
.sidebar-nav .nav-link[data-ink-section="account"] svg { color: var(--ink-cyan-light); }

.sidebar-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    color: rgba(132, 207, 239, 0.7) !important;
    cursor: default;
    user-select: none;
    margin-top: 0.55rem;
    margin-bottom: 0.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.65rem !important;
    text-transform: uppercase;
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--ink-magenta);
    color: #fff;
    font-weight: 700;
    animation: ink-pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   Main content & top bar
   ═══════════════════════════════════════ */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.top-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    transition: background-color var(--duration-base), border-color var(--duration-base);
}

.top-user-meta { line-height: 1.15; }
.top-user-meta__name { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.top-user-meta__details { font-size: 0.75rem; color: var(--text-muted); }
.top-user-meta__separator { display: inline-block; margin: 0 0.25rem; }

/* Theme toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--ink-cyan);
    color: var(--ink-cyan);
    transform: rotate(-12deg);
}

.theme-toggle svg {
    transition: transform var(--duration-base) var(--ease-bounce);
}

[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle .theme-toggle__moon,
:not([data-theme="dark"]) .theme-toggle .theme-toggle__moon { display: none; }

/* Page header */
.page-header {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--duration-base), border-color var(--duration-base);
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Content area */
.content-area {
    padding: 1.5rem;
}

/* ═══════════════════════════════════════
   Cards
   ═══════════════════════════════════════ */
.card {
    border: 1px solid var(--border);
    border-radius: var(--ink-radius);
    box-shadow: var(--ink-shadow);
    background: var(--surface);
    transition: background-color var(--duration-base), border-color var(--duration-base), box-shadow var(--duration-base);
}

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════
   Boutons + ripple + animations
   ═══════════════════════════════════════ */
.btn {
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn:active { transform: scale(0.97); }

/* Ripple effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ink-ripple 600ms var(--ease-out);
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ink-ripple {
    to { transform: scale(4); opacity: 0; }
}

.btn-ink-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--ink-cyan) 0%, var(--ink-blue-deep) 100%);
    color: #FFFFFF !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 159, 227, 0.25);
}

.btn-ink-primary:hover {
    background: linear-gradient(135deg, var(--ink-blue-deep) 0%, var(--ink-cyan) 100%);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.btn-ink-primary:active { transform: scale(0.98) translateY(0); color: #FFFFFF !important; }

.btn-ink-success {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--ink-green) 0%, #4a8f20 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 179, 46, 0.25);
}

.btn-ink-success:hover {
    box-shadow: 0 6px 20px rgba(102, 179, 46, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-ink-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--ink-cyan);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--ink-cyan);
    cursor: pointer;
}

.btn-ink-secondary:hover {
    background: var(--ink-cyan);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 159, 227, 0.3);
}

/* ═══════════════════════════════════════
   Badges de statut de commande
   ═══════════════════════════════════════ */
.badge-ink {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35em 0.75em;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--duration-base);
    border: 1px solid transparent;
}

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

.order-status-badge--draft {
    background: rgba(90, 90, 90, 0.12);
    color: #5a5a5a;
    border-color: rgba(90, 90, 90, 0.2);
}
.order-status-badge--draft::before { background: #9095a0; }

.order-status-badge--pending_mapping {
    background: rgba(246, 163, 22, 0.15);
    color: #b86e00;
    border-color: rgba(246, 163, 22, 0.35);
    animation: ink-pulse-ring 2s infinite;
}
.order-status-badge--pending_mapping::before {
    background: var(--ink-orange);
    animation: ink-pulse 1.4s ease-in-out infinite;
}

.order-status-badge--a_preparer {
    background: rgba(0, 159, 227, 0.12);
    color: #0077b6;
    border-color: rgba(0, 159, 227, 0.3);
}
.order-status-badge--a_preparer::before { background: var(--ink-cyan); }

.order-status-badge--traite {
    background: rgba(102, 179, 46, 0.15);
    color: #4a8f20;
    border-color: rgba(102, 179, 46, 0.35);
}
.order-status-badge--traite::before { background: var(--ink-green); }
.order-status-badge--traite svg { color: var(--ink-green); }

[data-theme="dark"] .order-status-badge--draft { color: #c0c0c0; }
[data-theme="dark"] .order-status-badge--pending_mapping { color: #ffb84d; }
[data-theme="dark"] .order-status-badge--a_preparer { color: #4db8e8; }
[data-theme="dark"] .order-status-badge--traite { color: #8fd45a; }

/* ═══════════════════════════════════════
   Toast notifications
   ═══════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 380px;
    pointer-events: none;
}

.ink-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border-radius: var(--ink-radius);
    box-shadow: var(--ink-shadow-lg);
    border-left: 4px solid var(--ink-cyan);
    min-width: 280px;
    animation: ink-bounce-in var(--duration-slow) var(--ease-bounce) both;
    position: relative;
    overflow: hidden;
}

.ink-toast--success { border-left-color: var(--ink-green); }
.ink-toast--error { border-left-color: var(--ink-red); }
.ink-toast--warning { border-left-color: var(--ink-orange); }
.ink-toast--info { border-left-color: var(--ink-cyan); }

.ink-toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    animation: ink-drop 500ms var(--ease-bounce);
}

.ink-toast--success .ink-toast__icon { background: var(--ink-green); }
.ink-toast--error .ink-toast__icon { background: var(--ink-red); }
.ink-toast--warning .ink-toast__icon { background: var(--ink-orange); }
.ink-toast--info .ink-toast__icon { background: var(--ink-cyan); }

.ink-toast__body { flex: 1; min-width: 0; }
.ink-toast__title { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); margin: 0 0 0.15rem; }
.ink-toast__message { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.ink-toast__close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: 4px;
    transition: all var(--duration-fast);
}
.ink-toast__close:hover { color: var(--text-primary); background: var(--surface-alt); }

.ink-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: ink-toast-progress linear forwards;
}

.ink-toast--success .ink-toast__progress { color: var(--ink-green); }
.ink-toast--error .ink-toast__progress { color: var(--ink-red); }
.ink-toast--warning .ink-toast__progress { color: var(--ink-orange); }
.ink-toast--info .ink-toast__progress { color: var(--ink-cyan); }

@keyframes ink-toast-progress { from { width: 100%; } to { width: 0%; } }

.ink-toast--leaving {
    animation: ink-toast-out 250ms var(--ease-out) forwards;
}

@keyframes ink-toast-out {
    to { opacity: 0; transform: translateX(20px) scale(0.95); }
}

/* ═══════════════════════════════════════
   Skeleton loaders
   ═══════════════════════════════════════ */
.ink-skeleton {
    display: block;
    background: linear-gradient(90deg,
        var(--surface-alt) 0%,
        rgba(0, 0, 0, 0.06) 40%,
        var(--surface-alt) 80%);
    background-size: 800px 100%;
    animation: ink-shimmer 1.4s infinite linear;
    border-radius: var(--ink-radius-sm);
    height: 1rem;
    width: 100%;
}

[data-theme="dark"] .ink-skeleton {
    background: linear-gradient(90deg,
        #1f2329 0%,
        #2a2f37 40%,
        #1f2329 80%);
    background-size: 800px 100%;
}

.ink-skeleton--title { height: 1.5rem; width: 40%; }
.ink-skeleton--text { height: 0.85rem; }
.ink-skeleton--circle { border-radius: 50%; width: 2.5rem; height: 2.5rem; }
.ink-skeleton--btn { height: 2.25rem; width: 7rem; border-radius: 0.5rem; }
.ink-skeleton--card { height: 140px; border-radius: var(--ink-radius); }

.ink-skeleton-row { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.ink-skeleton-row > .ink-skeleton { height: 0.9rem; }

/* ═══════════════════════════════════════
   Empty states
   ═══════════════════════════════════════ */
.ink-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.ink-empty__illustration {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    animation: ink-drop 800ms var(--ease-bounce);
}

.ink-empty__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}

.ink-empty__desc {
    font-size: 0.88rem;
    max-width: 380px;
    margin: 0 auto 1.25rem;
}

.ink-empty__actions { display: inline-flex; gap: 0.5rem; }

/* ═══════════════════════════════════════
   Avatars
   ═══════════════════════════════════════ */
.ink-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform var(--duration-base) var(--ease-bounce);
    position: relative;
}

.ink-avatar:hover { transform: scale(1.06) rotate(-3deg); }

.ink-avatar--sm { width: 26px; height: 26px; font-size: 0.7rem; }
.ink-avatar--lg { width: 48px; height: 48px; font-size: 1.05rem; }
.ink-avatar--xl { width: 72px; height: 72px; font-size: 1.5rem; }

.ink-avatar--cyan { background: linear-gradient(135deg, var(--ink-cyan) 0%, #0077b6 100%); }
.ink-avatar--magenta { background: linear-gradient(135deg, var(--ink-magenta) 0%, #a30059 100%); }
.ink-avatar--yellow { background: linear-gradient(135deg, var(--ink-yellow) 0%, var(--ink-orange) 100%); color: #3d2b00; }
.ink-avatar--orange { background: linear-gradient(135deg, var(--ink-orange) 0%, #c47c00 100%); }
.ink-avatar--green { background: linear-gradient(135deg, var(--ink-green) 0%, #3d6b1a 100%); }
.ink-avatar--violet { background: linear-gradient(135deg, var(--ink-violet) 0%, #4a3fb0 100%); }
.ink-avatar--red { background: linear-gradient(135deg, var(--ink-red) 0%, #c62828 100%); }
.ink-avatar--blue { background: linear-gradient(135deg, var(--ink-blue-deep) 0%, #003d80 100%); }

.ink-avatar__ring {
    position: absolute;
    inset: -3px;
    border: 2px solid var(--ink-cyan);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--duration-base);
}

.ink-avatar--active .ink-avatar__ring { opacity: 1; }

/* ═══════════════════════════════════════
   Login page
   ═══════════════════════════════════════ */
/* Refonte design (handoff Claude Design) — login marque Gel-Ink vert/bleu.
   Remplace l'ancien dégradé cyan/magenta sur near-black (magenta abandonné,
   décision Alex) : fond teal→vert (parité sidebar), lueurs cyan + vert. */
.login-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 168, 216, 0.35) 0%, transparent 42%),
        radial-gradient(circle at 82% 85%, rgba(76, 154, 76, 0.32) 0%, transparent 45%),
        linear-gradient(135deg, #063C4F 0%, #0A3A2C 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: ink-bounce-in 600ms var(--ease-bounce);
}

.login-header {
    /* cyan → vert (marque Gel-Ink), JAMAIS magenta */
    background: linear-gradient(135deg, var(--ink-cyan) 0%, var(--ink-green) 100%);
    color: var(--ink-white);
    padding: 2rem;
    text-align: center;
}

.login-logo {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
}

.login-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    /* logo couleur → blanc sur la tuile translucide */
    filter: brightness(0) invert(1);
}

.login-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.login-header p { font-size: 0.85rem; opacity: 0.9; margin: 0.25rem 0 0; }

.login-body {
    padding: 2rem;
    background: var(--surface);
}

.login-field { margin-bottom: 14px; }

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-gray-text);
}

.login-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-text);
    background: var(--surface);
    outline: none;
    transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.login-field input:focus {
    border-color: var(--ink-cyan);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.12);
}

.login-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border: none;
    border-radius: 9px;
    /* cyan → bleu encre */
    background: linear-gradient(135deg, var(--ink-cyan) 0%, var(--ink-blue-deep) 100%);
    color: var(--ink-white);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.25);
    transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 159, 227, 0.32);
}

.login-btn:active { transform: scale(0.98); }

.login-foot {
    margin-top: 1rem;
    text-align: center;
}

.login-foot a {
    font-size: 0.85rem;
    color: var(--ink-gray-text);
    text-decoration: none;
}

.login-foot a:hover { color: var(--ink-cyan); }

/* ═══════════════════════════════════════
   Dashboard
   ═══════════════════════════════════════ */
.dash-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: var(--ink-radius-lg);
    padding: 1.75rem 2rem;
    color: #FFFFFF;
    box-shadow: 0 10px 40px rgba(15, 52, 96, 0.35);
    position: relative;
    overflow: hidden;
}

.dash-banner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 0, 126, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dash-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.dash-banner > * { position: relative; z-index: 1; }

.dash-banner__progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.dash-banner__progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ink-cyan) 0%, var(--ink-magenta) 50%, var(--ink-yellow) 100%);
    transition: width 0.8s var(--ease-out);
    box-shadow: 0 0 12px rgba(0, 159, 227, 0.6);
}

/* Stat cards */
.dash-stat {
    border: 1px solid var(--border);
    border-radius: var(--ink-radius);
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: var(--ink-shadow);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.dash-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity var(--duration-base);
}

.dash-stat:hover {
    box-shadow: var(--ink-shadow-md);
    transform: translateY(-3px);
    border-color: var(--ink-cyan);
}

.dash-stat:hover::before { opacity: 0.3; }

.dash-stat:hover .dash-stat__icon { transform: scale(1.08) rotate(-5deg); }

.dash-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--duration-base) var(--ease-bounce);
}

.dash-stat__icon--cyan { background: linear-gradient(135deg, rgba(0, 159, 227, 0.15), rgba(0, 159, 227, 0.05)); color: var(--ink-cyan); }
.dash-stat__icon--magenta { background: linear-gradient(135deg, rgba(230, 0, 126, 0.15), rgba(230, 0, 126, 0.05)); color: var(--ink-magenta); }
.dash-stat__icon--green { background: linear-gradient(135deg, rgba(102, 179, 46, 0.15), rgba(102, 179, 46, 0.05)); color: var(--ink-green); }
.dash-stat__icon--orange { background: linear-gradient(135deg, rgba(246, 163, 22, 0.15), rgba(246, 163, 22, 0.05)); color: var(--ink-orange); }
.dash-stat__icon--violet { background: linear-gradient(135deg, rgba(108, 93, 211, 0.15), rgba(108, 93, 211, 0.05)); color: var(--ink-violet); }
.dash-stat__icon--blue { background: linear-gradient(135deg, rgba(0, 159, 227, 0.15), rgba(0, 159, 227, 0.05)); color: var(--ink-cyan); }
.dash-stat__icon--purple { background: linear-gradient(135deg, rgba(108, 93, 211, 0.15), rgba(108, 93, 211, 0.05)); color: var(--ink-violet); }

.dash-stat__value { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--text-primary); letter-spacing: -0.02em; }
.dash-stat__label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.dash-stat__hint { font-size: 0.75rem; color: #9095a0; margin: 0; }

/* Actions rapides */
.dash-actions .list-group-item {
    border: 1px solid var(--border);
    border-radius: 0.5rem !important;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--duration-base) var(--ease-out);
    background: var(--surface);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dash-actions .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ink-cyan);
    transform: scaleY(0);
    transition: transform var(--duration-base) var(--ease-out);
}

.dash-actions .list-group-item:hover {
    background: var(--surface-alt);
    border-color: var(--ink-cyan);
    color: var(--ink-cyan);
    transform: translateX(2px);
}

.dash-actions .list-group-item:hover::before { transform: scaleY(1); }

.dash-actions .list-group-item.dash-action--primary {
    background: linear-gradient(135deg, var(--ink-cyan) 0%, var(--ink-blue-deep) 100%);
    color: #FFFFFF;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.25);
}

.dash-actions .list-group-item.dash-action--primary:hover {
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.4);
    color: #FFFFFF;
    transform: translateX(0) translateY(-1px);
}
.dash-actions .list-group-item.dash-action--primary::before { display: none; }

/* Etat du systeme */
.dash-system-item { text-align: center; padding: 0.75rem 0.5rem; }
.dash-system-item__label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Empty state (dashboard) */
.dash-empty {
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: var(--ink-radius);
    padding: 2.5rem 1rem;
    text-align: center;
}

.dash-empty__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: var(--ink-shadow);
}

/* Mini graphique / sparkline */
.dash-sparkline {
    width: 100%;
    height: 40px;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════
   Formulaires am\u00e9lior\u00e9s
   ═══════════════════════════════════════ */
.ink-float-group {
    position: relative;
    margin-bottom: 1rem;
}

.ink-float-group .form-control,
.ink-float-group .form-select {
    padding: 1.15rem 0.75rem 0.35rem;
    height: auto;
    border-radius: var(--ink-radius-sm);
    transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.ink-float-group label {
    position: absolute;
    top: 0.85rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--duration-base) var(--ease-out);
    background: transparent;
    padding: 0 0.2rem;
}

.ink-float-group .form-control:focus,
.ink-float-group .form-control:not(:placeholder-shown),
.ink-float-group .form-select {
    border-color: var(--ink-cyan);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.12);
}

.ink-float-group .form-control:focus ~ label,
.ink-float-group .form-control:not(:placeholder-shown) ~ label,
.ink-float-group .form-select ~ label {
    top: -0.5rem;
    left: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-cyan);
    background: var(--surface);
}

/* Validation anim\u00e9e */
.form-control.is-invalid, .form-select.is-invalid {
    animation: ink-shake 300ms;
    border-color: var(--ink-red);
}

@keyframes ink-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.form-control.is-valid {
    border-color: var(--ink-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2366B32E' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.7c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

/* Stepper */
.ink-stepper { display: flex; align-items: center; gap: 0; margin: 1.5rem 0; }
.ink-stepper__step {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}
.ink-stepper__step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    transition: background var(--duration-slow);
}
.ink-stepper__step--done:not(:last-child)::after { background: var(--ink-green); }
.ink-stepper__step--current:not(:last-child)::after { background: linear-gradient(90deg, var(--ink-cyan) 0%, var(--border) 100%); }

.ink-stepper__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--duration-base) var(--ease-bounce);
    flex-shrink: 0;
}

.ink-stepper__step--done .ink-stepper__circle {
    background: var(--ink-green);
    border-color: var(--ink-green);
    color: #fff;
}

.ink-stepper__step--current .ink-stepper__circle {
    background: var(--ink-cyan);
    border-color: var(--ink-cyan);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.2);
    animation: ink-pulse-ring 1.8s infinite;
}

.ink-stepper__label {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ink-stepper__step--current .ink-stepper__label { color: var(--ink-cyan); font-weight: 600; }
.ink-stepper__step--done .ink-stepper__label { color: var(--ink-green); }

/* ═══════════════════════════════════════
   PDF generation progress (label animation)
   ═══════════════════════════════════════ */
.ink-pdf-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.ink-pdf-drop {
    width: 60px;
    height: 80px;
    position: relative;
}

.ink-pdf-drop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--ink-cyan);
    border-radius: 0 50% 50% 50%;
    transform: translateX(-50%) rotate(-45deg);
    animation: ink-pdf-drop-fall 1.4s infinite var(--ease-out);
    box-shadow: 0 0 10px rgba(0, 159, 227, 0.6);
}

.ink-pdf-drop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: radial-gradient(ellipse, var(--ink-cyan) 0%, transparent 70%);
    border-radius: 50%;
    animation: ink-pdf-splash 1.4s infinite var(--ease-out);
}

@keyframes ink-pdf-drop-fall {
    0% { top: 0; opacity: 0; transform: translateX(-50%) rotate(-45deg) scale(0.5); }
    30% { opacity: 1; }
    70% { top: 50px; transform: translateX(-50%) rotate(-45deg) scale(1); }
    100% { top: 52px; opacity: 0; transform: translateX(-50%) rotate(-45deg) scale(0.2); }
}

@keyframes ink-pdf-splash {
    0%, 60% { opacity: 0; transform: translateX(-50%) scale(0.3); }
    80% { opacity: 1; transform: translateX(-50%) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.5); }
}

.ink-pdf-progress__bar {
    width: 240px;
    height: 6px;
    background: var(--surface-alt);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.ink-pdf-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ink-cyan), var(--ink-magenta), var(--ink-yellow));
    background-size: 200% 100%;
    border-radius: 999px;
    width: 0%;
    transition: width var(--duration-base) var(--ease-out);
    animation: ink-gradient-slide 2s linear infinite;
}

@keyframes ink-gradient-slide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.ink-pdf-progress__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Confetti */
.ink-confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3000;
    overflow: hidden;
}

.ink-confetti {
    position: absolute;
    width: 8px;
    height: 12px;
    top: -20px;
    animation: ink-confetti-fall 2.8s linear forwards;
}

@keyframes ink-confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ═══════════════════════════════════════
   Onboarding tour
   ═══════════════════════════════════════ */
.ink-onboarding-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1900;
    animation: ink-fade-in 300ms var(--ease-out);
}

.ink-onboarding-spotlight {
    position: absolute;
    border-radius: var(--ink-radius);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6), 0 0 0 4px var(--ink-cyan);
    transition: all 400ms var(--ease-out);
    pointer-events: none;
}

.ink-onboarding-popover {
    position: absolute;
    background: var(--surface);
    border-radius: var(--ink-radius);
    box-shadow: var(--ink-shadow-lg);
    padding: 1.25rem;
    max-width: 320px;
    z-index: 1910;
    animation: ink-bounce-in 400ms var(--ease-bounce);
}

.ink-onboarding-popover__title { font-weight: 700; font-size: 1rem; margin: 0 0 0.5rem; color: var(--text-primary); }
.ink-onboarding-popover__body { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; }
.ink-onboarding-popover__actions { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.ink-onboarding-popover__progress { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   Label live preview
   ═══════════════════════════════════════ */
.ink-label-preview {
    border: 2px dashed var(--border);
    border-radius: var(--ink-radius);
    background: var(--surface-alt);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base);
}

.ink-label-preview__stage {
    background: #fff;
    box-shadow: var(--ink-shadow-md);
    border-radius: var(--ink-radius-sm);
    transform-origin: center;
    transition: transform var(--duration-base) var(--ease-out);
    margin: 0 auto;
}

.ink-label-preview__toolbar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    background: var(--surface);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: var(--ink-shadow);
}

.ink-label-preview__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
}

.ink-label-preview__btn:hover {
    background: var(--ink-cyan);
    color: #fff;
}

/* Variables drag & drop */
.ink-var-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-family: 'Menlo', 'Consolas', monospace;
    color: var(--ink-cyan);
    cursor: grab;
    transition: all var(--duration-fast);
    user-select: none;
}

.ink-var-chip:hover { background: var(--ink-cyan); color: #fff; border-color: var(--ink-cyan); transform: translateY(-1px); }
.ink-var-chip:active { cursor: grabbing; }
.ink-var-chip.dragging { opacity: 0.5; transform: scale(0.95); }

/* ═══════════════════════════════════════
   Shared components
   ═══════════════════════════════════════ */
.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
    vertical-align: middle;
    margin-right: 4px;
    transition: transform var(--duration-base) var(--ease-bounce);
}

.color-swatch:hover { transform: scale(1.3); }
.color-swatch--lg { width: 20px; height: 20px; }

.th-source { background: rgba(0, 159, 227, 0.08); }
.th-internal { background: rgba(102, 179, 46, 0.08); }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.empty-state svg { margin-bottom: 0.75rem; }
.empty-state p { margin-bottom: 0; }

.form-w-xs { width: 70px; }
.form-w-sm { width: 120px; }
.form-w-md { width: 180px; }
.form-w-lg { min-width: 200px; }

.info-table th { width: 40%; }

.code-preview { font-size: 0.8rem; max-height: 400px; overflow: auto; background: var(--surface-alt); }
.code-preview--sm { font-size: 0.75rem; }

/* Rôles : cases à cocher simples en grille multi-colonnes — plus de
   « carte dans la carte » (retour Alex). Pas de bordure par rôle. */
.user-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.15rem 1rem;
}
.user-roles-grid .form-check {
    padding: 0.35rem 0.5rem 0.35rem 1.9rem;
    border: 0;
    border-radius: 6px;
    margin-bottom: 0;
    background: transparent;
    transition: background var(--duration-fast);
}

.user-roles-grid .form-check:hover { background: var(--surface-alt, rgba(0, 0, 0, 0.035)); }
.user-roles-grid .form-check:last-child { margin-bottom: 0; }
.user-roles-grid .form-check-input { margin-top: 0.2rem; }
.user-roles-grid .form-check-label { font-weight: 500; color: var(--text-primary); }

.text-pre-line { white-space: pre-line; }
.logo-fallback { height: 120px; }

.vich-image img, .vich-file img {
    max-height: 80px;
    max-width: 100%;
    border-radius: var(--ink-radius);
    border: 1px solid var(--border);
    padding: 4px;
    background: var(--surface-alt);
}

.scroll-container-sm { max-height: 200px; overflow-y: auto; }

.stat-icon { width: 48px; height: 48px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon-blue { background: rgba(0, 159, 227, 0.1); color: var(--ink-cyan); }
.stat-icon-green { background: rgba(102, 179, 46, 0.1); color: var(--ink-green); }
.stat-icon-cyan { background: rgba(132, 207, 239, 0.15); color: #0090bb; }
.stat-icon-orange { background: rgba(246, 163, 22, 0.1); color: var(--ink-orange); }

/* Tom Select */
.ts-wrapper .ts-control {
    min-height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    border: 1px solid var(--border);
    border-radius: .375rem;
    background: var(--surface);
}
.ts-wrapper.focus .ts-control {
    border-color: var(--ink-cyan);
    box-shadow: 0 0 0 .2rem rgba(0, 159, 227, .15);
}
.ts-dropdown {
    font-size: .875rem;
    z-index: 1050;
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    background: var(--surface);
}
.ts-dropdown .active { background-color: var(--ink-cyan); color: #fff; }
.ts-dropdown .option { padding: .4rem .75rem; }

.shop-badge { color: #fff !important; font-weight: 600; letter-spacing: .02em; }

.table-responsive { overflow: visible !important; }
td .ts-wrapper { min-width: 220px; }

/* Tables */
.table { color: var(--text-primary); }
.table-hover tbody tr { transition: background var(--duration-fast); }
.table-hover tbody tr:hover { background: var(--surface-alt); }

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .ink-pdf-progress__bar { width: 180px; }
    .toast-container { right: 0.5rem; left: 0.5rem; max-width: none; }
}

/* Utility: vertical dot separator */
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); margin: 0 0.5rem; vertical-align: middle; }

/* ═══════════════════════════════════════
   Orders page — chips, table, sort indicators
   ═══════════════════════════════════════ */

/* Chips de filtre statut */
.order-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.order-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.order-filter-chip:hover {
    border-color: var(--ink-cyan);
    color: var(--ink-cyan);
    transform: translateY(-1px);
}

.order-filter-chip__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.order-filter-chip__count {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1rem;
}

/* Chip actif : fond coloré + chiffre contrasté */
.order-filter-chip--active {
    color: var(--ink-white);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--ink-shadow-md);
}

.order-filter-chip--active:hover { transform: translateY(-1px); color: var(--ink-white); }
.order-filter-chip--active .order-filter-chip__count { background: rgba(255, 255, 255, 0.25); color: var(--ink-white); }

.order-filter-chip--active.order-filter-chip--all { background: linear-gradient(135deg, #4a4f5a, #2c3038); }
.order-filter-chip--active.order-filter-chip--draft { background: linear-gradient(135deg, #6C5DD3, #5848b8); }
.order-filter-chip--active.order-filter-chip--pending_mapping { background: linear-gradient(135deg, var(--ink-orange), #d88b05); }
.order-filter-chip--active.order-filter-chip--a_preparer { background: linear-gradient(135deg, var(--ink-cyan), #0077b6); }
.order-filter-chip--active.order-filter-chip--traite { background: linear-gradient(135deg, var(--ink-green), #4a8f20); }

/* Pastille couleur par statut (chip inactif) */
.order-filter-chip--draft .order-filter-chip__dot { background: var(--ink-violet); }
.order-filter-chip--pending_mapping .order-filter-chip__dot { background: var(--ink-orange); }
.order-filter-chip--a_preparer .order-filter-chip__dot { background: var(--ink-cyan); }
.order-filter-chip--traite .order-filter-chip__dot { background: var(--ink-green); }
.order-filter-chip--all .order-filter-chip__dot { background: var(--text-muted); }

/* Tableau commandes — thead dark-mode aware + hover ligne cyan */
.table-orders thead th {
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    border-top: none;
    padding: 0.75rem 0.9rem;
}

.table-orders thead th a.order-sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--duration-fast);
}

.table-orders thead th a.order-sort-link:hover { color: var(--ink-cyan); }
.table-orders thead th.order-sort-active a.order-sort-link { color: var(--ink-cyan); }

.order-sort-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    opacity: 0.9;
}

.order-sort-indicator--inactive { opacity: 0.25; }

.table-orders tbody td { padding: 0.75rem 0.9rem; border-color: var(--border); vertical-align: middle; }

.table-orders tbody tr {
    transition: background var(--duration-fast) var(--ease-out);
}

.table-orders tbody tr:hover {
    background: rgba(0, 159, 227, 0.04);
}

/* Forcer la ligne vide (colspan) à ne pas être teintée au hover */
.table-orders tbody tr.order-empty-row:hover { background: transparent; }

/* ══════════════════════════════════════════════════════════════
   Dashboard v2 — "Ink Flow" design
   Scoped under .dashboard-v2 to avoid collisions.
   ══════════════════════════════════════════════════════════════ */

/* Design tokens (scoped — not polluting :root) */
.dashboard-v2 {
    --ink-cyan: #009FE3;
    --ink-cyan-deep: #0077B6;
    --ink-cyan-light: #83D0F5;
    --ink-magenta: #E6007E;
    --ink-magenta-deep: #a30059;
    --ink-magenta-light: #F29FC5;
    --ink-yellow: #FFED00;
    --ink-orange: #F6A316;
    --ink-green: #66B32E;
    --ink-red: #FF3B30;
    --ink-blue-deep: #0057B8;
    --ink-violet: #6C5DD3;
    --ink-gold: #FFD700;

    --gel-ink-blue: #409dde;
    --gel-ink-green: #488b4b;

    --dv2-bg: #F5F6FA;
    --dv2-surface: #FFFFFF;
    --dv2-surface-2: #FAFBFD;
    --dv2-surface-raised: #FFFFFF;
    --dv2-border: #E7EAF0;
    --dv2-border-strong: #D7DCE5;
    --dv2-text: #11131A;
    --dv2-text-muted: #5B6372;
    --dv2-text-dim: #8891A0;

    --dv2-radius: 14px;
    --dv2-radius-sm: 8px;
    --dv2-radius-lg: 20px;

    --dv2-shadow-sm: 0 1px 2px rgba(17,19,26,.04), 0 1px 3px rgba(17,19,26,.03);
    --dv2-shadow-md: 0 4px 16px rgba(17,19,26,.06), 0 1px 3px rgba(17,19,26,.04);
    --dv2-shadow-lg: 0 24px 56px -20px rgba(17,19,26,.18), 0 4px 12px rgba(17,19,26,.05);
    --dv2-shadow-ink: 0 8px 28px rgba(0,159,227,.22), 0 2px 6px rgba(230,0,126,.12);

    --dv2-ease: cubic-bezier(.16,1,.3,1);

    padding: 0;
    color: var(--dv2-text);
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: -.005em;
}

[data-theme="dark"] .dashboard-v2 {
    --dv2-bg: #0A0B10;
    --dv2-surface: #14161E;
    --dv2-surface-2: #0F1118;
    --dv2-surface-raised: #181B25;
    --dv2-border: #242835;
    --dv2-border-strong: #2E3343;
    --dv2-text: #EEF0F5;
    --dv2-text-muted: #A6ADBB;
    --dv2-text-dim: #6D7687;
    --dv2-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --dv2-shadow-md: 0 4px 16px rgba(0,0,0,.4);
    --dv2-shadow-lg: 0 24px 56px -20px rgba(0,0,0,.6);
}

.dashboard-v2 .mono {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-feature-settings: "tnum" 1, "ss01" 1;
}
.dashboard-v2 .num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ─────────────── Topbar (sub-topbar dashboard-scoped) ─────────────── */
.dashboard-v2 .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: var(--dv2-surface);
    border-bottom: 1px solid var(--dv2-border);
    position: relative;
    margin: -16px -16px 16px;
    border-radius: 0;
    border-top: none;
}
.dashboard-v2 .dv2-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .dv2-breadcrumb strong {
    color: var(--dv2-text);
    font-weight: 600;
}
.dashboard-v2 .dv2-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--dv2-text-dim);
}
.dashboard-v2 .topbar .search {
    flex: 1;
    max-width: 460px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--dv2-border);
    border-radius: 8px;
    background: var(--dv2-surface-2);
    color: var(--dv2-text-muted);
    font-size: 12.5px;
}
.dashboard-v2 .topbar .search svg {
    width: 14px;
    height: 14px;
}
.dashboard-v2 .topbar .search kbd {
    margin-left: auto;
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--dv2-surface);
    border: 1px solid var(--dv2-border);
}
.dashboard-v2 .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--dv2-border);
    background: var(--dv2-surface);
    color: var(--dv2-text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s var(--dv2-ease);
    position: relative;
}
.dashboard-v2 .icon-btn:hover {
    border-color: var(--dv2-border-strong);
    background: var(--dv2-surface-2);
}
.dashboard-v2 .icon-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.75;
}
.dashboard-v2 .icon-btn .pip {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-magenta);
    box-shadow: 0 0 0 2px var(--dv2-surface);
}

/* ─────────────── Hero ─────────────── */
.dashboard-v2 .hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--dv2-radius-lg);
    background:
        radial-gradient(1200px 400px at -10% -30%, rgba(0,159,227,.28) 0%, transparent 60%),
        radial-gradient(1000px 500px at 110% 120%, rgba(230,0,126,.25) 0%, transparent 55%),
        linear-gradient(135deg, #0B0C13 0%, #1B1220 100%);
    color: #fff;
    padding: 22px 26px 24px;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 28px;
    box-shadow: var(--dv2-shadow-lg);
    border: 1px solid rgba(255,255,255,.06);
}
.dashboard-v2 .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(transparent 97%, rgba(255,255,255,.035) 97%),
        linear-gradient(90deg, transparent 97%, rgba(255,255,255,.035) 97%);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
    opacity: .5;
}
.dashboard-v2 .hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gel-ink-blue), var(--gel-ink-green), var(--ink-orange), var(--gel-ink-blue));
    filter: blur(80px);
    opacity: .45;
    pointer-events: none;
}

.dashboard-v2 .hero .col {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dashboard-v2 .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.65);
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
}
.dashboard-v2 .hero-eyebrow .live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-green);
    box-shadow: 0 0 0 0 rgba(102,179,46,.6);
    animation: dashv2-pulse 1.8s infinite;
}
@keyframes dashv2-pulse {
    0% { box-shadow: 0 0 0 0 rgba(102,179,46,.6); }
    70% { box-shadow: 0 0 0 8px rgba(102,179,46,0); }
    100% { box-shadow: 0 0 0 0 rgba(102,179,46,0); }
}

.dashboard-v2 .hero h1 {
    font-size: 30px;
    line-height: 1.08;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: -.025em;
}
.dashboard-v2 .hero h1 em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #7ec6ec 0%, #7fb381 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -.01em;
}
.dashboard-v2 .hero p {
    color: rgba(255,255,255,.72);
    margin: 0 0 18px;
    font-size: 13.5px;
    max-width: 52ch;
}

.dashboard-v2 .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}
.dashboard-v2 .hero-stat {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}
.dashboard-v2 .hero-stat .lb {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
    margin-bottom: 2px;
}
.dashboard-v2 .hero-stat .v {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.dashboard-v2 .hero-stat .d {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}
.dashboard-v2 .hero-stat .d.up { color: #7ED957; }
.dashboard-v2 .hero-stat .d.down { color: #FF8A7E; }

.dashboard-v2 .hero-progress {
    position: relative;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(10px);
}
.dashboard-v2 .hero-progress .pl {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.dashboard-v2 .hero-progress .plh {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
}
.dashboard-v2 .hero-progress .pv {
    font-family: 'Geist Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.dashboard-v2 .hero-progress .bar {
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}
.dashboard-v2 .hero-progress .fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gel-ink-blue) 0%, var(--gel-ink-green) 100%);
    box-shadow: 0 0 16px rgba(64,157,222,.5);
    animation: dashv2-grow 1.4s var(--dv2-ease);
}
@keyframes dashv2-grow {
    from { width: 0 !important; }
}
.dashboard-v2 .hero-progress .legend {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}
.dashboard-v2 .hero-progress .legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.dashboard-v2 .hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* ─────────────── Buttons ─────────────── */
.dashboard-v2 .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    transition: all .2s var(--dv2-ease);
    white-space: nowrap;
    text-decoration: none;
}
.dashboard-v2 .btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}
.dashboard-v2 .btn-primary {
    background: linear-gradient(135deg, var(--gel-ink-blue) 0%, var(--gel-ink-green) 120%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(64,157,222,.35);
}
.dashboard-v2 .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(72,139,75,.4);
}
.dashboard-v2 .btn-ghost {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.12);
}
.dashboard-v2 .btn-ghost:hover {
    background: rgba(255,255,255,.12);
}
.dashboard-v2 .btn-outline {
    background: var(--dv2-surface);
    color: var(--dv2-text);
    border-color: var(--dv2-border);
}
.dashboard-v2 .btn-outline:hover {
    border-color: var(--dv2-border-strong);
    background: var(--dv2-surface-2);
}
.dashboard-v2 .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 7px;
}

/* ─────────────── KPI row ─────────────── */
.dashboard-v2 .kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.dashboard-v2 .kpi {
    background: var(--dv2-surface);
    border: 1px solid var(--dv2-border);
    border-radius: var(--dv2-radius);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    transition: all .25s var(--dv2-ease);
}
.dashboard-v2 .kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--dv2-shadow-md);
    border-color: var(--dv2-border-strong);
}
.dashboard-v2 .kpi .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.dashboard-v2 .kpi .lb {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dv2-text-muted);
    font-weight: 600;
}
.dashboard-v2 .kpi .ic {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--dv2-surface-2);
    color: var(--dv2-text);
    border: 1px solid var(--dv2-border);
}
.dashboard-v2 .kpi .ic svg {
    width: 14px;
    height: 14px;
}
.dashboard-v2 .kpi .v {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.dashboard-v2 .kpi .sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .kpi .chg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}
.dashboard-v2 .kpi .chg.up {
    background: rgba(102,179,46,.1);
    color: #4a8f20;
}
.dashboard-v2 .kpi .chg.down {
    background: rgba(255,59,48,.08);
    color: #c42c23;
}
[data-theme="dark"] .dashboard-v2 .kpi .chg.up {
    background: rgba(102,179,46,.14);
    color: #8fd45a;
}
[data-theme="dark"] .dashboard-v2 .kpi .chg.down {
    background: rgba(255,59,48,.15);
    color: #ff8a7e;
}

.dashboard-v2 .kpi .spark {
    margin-top: 8px;
    height: 36px;
    width: 100%;
    overflow: visible;
}
.dashboard-v2 .kpi.accent-cyan .ic {
    background: rgba(0,159,227,.1);
    color: var(--ink-cyan);
    border-color: rgba(0,159,227,.2);
}
.dashboard-v2 .kpi.accent-magenta .ic {
    background: rgba(230,0,126,.1);
    color: var(--ink-magenta);
    border-color: rgba(230,0,126,.2);
}
.dashboard-v2 .kpi.accent-orange .ic {
    background: rgba(246,163,22,.12);
    color: #c47c00;
    border-color: rgba(246,163,22,.25);
}
.dashboard-v2 .kpi.accent-green .ic {
    background: rgba(102,179,46,.12);
    color: #4a8f20;
    border-color: rgba(102,179,46,.25);
}
[data-theme="dark"] .dashboard-v2 .kpi.accent-orange .ic { color: #FFB84D; }
[data-theme="dark"] .dashboard-v2 .kpi.accent-green .ic { color: #8fd45a; }

.dashboard-v2 .kpi::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-a, var(--gel-ink-blue)), var(--accent-b, var(--gel-ink-green)));
    opacity: 0;
    transition: opacity .3s;
}
.dashboard-v2 .kpi.accent-cyan { --accent-a: #009FE3; --accent-b: #83D0F5; }
.dashboard-v2 .kpi.accent-magenta { --accent-a: #E6007E; --accent-b: #F29FC5; }
.dashboard-v2 .kpi.accent-orange { --accent-a: #F6A316; --accent-b: #FFD700; }
.dashboard-v2 .kpi.accent-green { --accent-a: #66B32E; --accent-b: #A5DC7E; }
.dashboard-v2 .kpi:hover::after { opacity: 1; }

/* ─────────────── Grid / Card ─────────────── */
.dashboard-v2 .grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    grid-template-columns: 1.5fr 1fr;
}
.dashboard-v2 .card {
    background: var(--dv2-surface);
    border: 1px solid var(--dv2-border);
    border-radius: var(--dv2-radius);
    overflow: hidden;
}
.dashboard-v2 .card-h {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--dv2-border);
}
.dashboard-v2 .card-h h3 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.005em;
}
.dashboard-v2 .card-h .sub {
    font-size: 11.5px;
    color: var(--dv2-text-muted);
    margin-top: 1px;
}
.dashboard-v2 .card-h .title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.dashboard-v2 .card-h .title > .ic {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gel-ink-blue), var(--gel-ink-green));
    color: #fff;
}
.dashboard-v2 .card-h .title > .ic svg {
    width: 13px;
    height: 13px;
}
.dashboard-v2 .card-h .actions {
    display: flex;
    gap: 4px;
}
.dashboard-v2 .tab {
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--dv2-text-muted);
    font-weight: 500;
    border: 1px solid transparent;
    font-family: inherit;
    background: transparent;
}
.dashboard-v2 .tab.active {
    background: var(--dv2-surface-2);
    color: var(--dv2-text);
    border-color: var(--dv2-border);
}
.dashboard-v2 .tab:hover { color: var(--dv2-text); }

/* Volume chart */
.dashboard-v2 .volume-body { padding: 8px 16px 14px; }
.dashboard-v2 .volume-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 6px 0 10px;
    border-bottom: 1px dashed var(--dv2-border);
    margin-bottom: 10px;
}
.dashboard-v2 .volume-meta .big {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.dashboard-v2 .volume-meta .sub {
    font-size: 11.5px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .volume-meta .delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #4a8f20;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(102,179,46,.1);
}

.dashboard-v2 .chart {
    width: 100%;
    height: 190px;
    display: block;
    overflow: visible;
}
.dashboard-v2 .chart .grid-l {
    stroke: var(--dv2-border);
    stroke-dasharray: 2 3;
    stroke-width: .6;
}
.dashboard-v2 .chart .ax {
    fill: var(--dv2-text-dim);
    font-size: 9.5px;
    font-family: 'Geist Mono', monospace;
}
.dashboard-v2 .chart .bar {
    transition: opacity .2s;
}
.dashboard-v2 .chart .bar:hover { opacity: .8; }
.dashboard-v2 .chart .line {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dashboard-v2 .chart .area { opacity: .35; }
.dashboard-v2 .chart .dot {
    fill: #fff;
    stroke-width: 2;
}

.dashboard-v2 .legend-row {
    display: flex;
    gap: 14px;
    padding: 8px 0 0;
    font-size: 11.5px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .legend-row .sw {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: -1px;
}

/* Status pie */
.dashboard-v2 .status-body { padding: 14px 16px; }
.dashboard-v2 .donut-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}
.dashboard-v2 .donut {
    width: 140px;
    height: 140px;
    position: relative;
    flex-shrink: 0;
}
.dashboard-v2 .donut svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.dashboard-v2 .donut circle {
    fill: none;
    stroke-width: 14;
}
.dashboard-v2 .donut .track { stroke: var(--dv2-border); }
.dashboard-v2 .donut .ctr {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}
.dashboard-v2 .donut .ctr .big {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.dashboard-v2 .donut .ctr .lb {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dv2-text-muted);
    margin-top: 2px;
}
.dashboard-v2 .status-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.dashboard-v2 .status-list .it {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12.5px;
    transition: background .2s;
    cursor: pointer;
}
.dashboard-v2 .status-list .it:hover { background: var(--dv2-surface-2); }
.dashboard-v2 .status-list .sw {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}
.dashboard-v2 .status-list .nm {
    flex: 1;
    color: var(--dv2-text-muted);
    font-weight: 500;
}
.dashboard-v2 .status-list .vl {
    font-weight: 700;
    color: var(--dv2-text);
    font-variant-numeric: tabular-nums;
    font-family: 'Geist Mono', monospace;
    font-size: 12.5px;
}
.dashboard-v2 .status-list .pc {
    font-size: 10.5px;
    color: var(--dv2-text-dim);
    margin-left: 6px;
    font-variant-numeric: tabular-nums;
}

/* Activity feed */
.dashboard-v2 .activity { padding: 0; }
.dashboard-v2 .activity .it {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    column-gap: 12px;
    padding: 10px 16px;
    /* Sprint 27 fix : align-items: center centre l'icône MAIS la 3ᵉ colonne
       (.time) restait alignée à droite sur la même baseline que l'icône, pas
       avec le texte de body. On force start sur les 3 colonnes pour que tout
       s'aligne sur la 1ʳᵉ ligne du body (ref + status), et on compense côté
       icône par un margin-top fin (4px) pour matcher la baseline texte. */
    align-items: start;
    border-bottom: 1px solid var(--dv2-border);
    transition: background .15s;
    position: relative;
}
.dashboard-v2 .activity .it:last-child { border-bottom: none; }
.dashboard-v2 .activity .it:hover { background: var(--dv2-surface-2); }
.dashboard-v2 .activity .ic {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    position: relative;
    /* Sprint 27 fix : compense le passage `align-items: start` du parent.
       Aligne la baseline visuelle de l'icône avec la 1ʳᵉ ligne du body (.t). */
    margin-top: 2px;
}
.dashboard-v2 .activity .ic svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}
.dashboard-v2 .activity .ic.sync { background: linear-gradient(135deg, var(--ink-cyan), var(--ink-cyan-deep)); }
.dashboard-v2 .activity .ic.label { background: linear-gradient(135deg, var(--ink-magenta), var(--ink-magenta-deep)); }
.dashboard-v2 .activity .ic.order { background: linear-gradient(135deg, var(--ink-orange), #c47c00); }
.dashboard-v2 .activity .ic.user { background: linear-gradient(135deg, var(--ink-violet), #4a3fb0); }
.dashboard-v2 .activity .ic.alert { background: linear-gradient(135deg, var(--ink-red), #c62828); }
.dashboard-v2 .activity .body { min-width: 0; }
.dashboard-v2 .activity .t {
    font-size: 12.8px;
    color: var(--dv2-text);
    font-weight: 500;
}
.dashboard-v2 .activity .t strong { font-weight: 700; }
.dashboard-v2 .activity .t .ref {
    font-family: 'Geist Mono', monospace;
    font-size: 11.5px;
    padding: 1px 5px;
    background: var(--dv2-surface-2);
    border: 1px solid var(--dv2-border);
    border-radius: 4px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .activity .sub {
    font-size: 11px;
    color: var(--dv2-text-muted);
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.dashboard-v2 .activity .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--dv2-text-dim);
}
.dashboard-v2 .activity .time {
    font-size: 11px;
    color: var(--dv2-text-dim);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-family: 'Geist Mono', monospace;
    letter-spacing: 0;
}

/* Queue */
.dashboard-v2 .queue { padding: 8px 4px 6px; }
.dashboard-v2 .queue .col-h {
    display: grid;
    /* Sprint 27 hotfix : 5 colonnes pour s'aligner sur .queue-grid (it#22 Sprint 23 #6 — ajout PENDING_VALIDATION). Avant repeat(4, 1fr) → la 5ᵉ étiquette « Traitées » wrappait à la ligne 2 et désalignait toutes les autres. */
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px 12px 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--dv2-text-dim);
    font-weight: 600;
}
.dashboard-v2 .queue-grid {
    display: grid;
    /* it#22 : 5 colonnes (ajout PENDING_VALIDATION Sprint 23 #6) */
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 12px 12px;
}
@media (max-width: 1200px) {
    .dashboard-v2 .queue-grid,
    .dashboard-v2 .queue .col-h { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .dashboard-v2 .queue-grid,
    .dashboard-v2 .queue .col-h { grid-template-columns: repeat(2, 1fr); }
}
.dashboard-v2 .qc {
    padding: 12px;
    border-radius: 12px;
    background: var(--dv2-surface-2);
    border: 1px solid var(--dv2-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
    position: relative;
}
.dashboard-v2 .qc .qh {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dashboard-v2 .qc .qh .nm {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dashboard-v2 .qc .qh .ct {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--dv2-surface);
    border: 1px solid var(--dv2-border);
    font-weight: 600;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .qc .st-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dashboard-v2 .qc.draft .st-dot { background: #9095a0; }
.dashboard-v2 .qc.pending .st-dot {
    background: var(--ink-orange);
    box-shadow: 0 0 8px var(--ink-orange);
    animation: dashv2-pulseS 1.5s infinite;
}
.dashboard-v2 .qc.prep .st-dot {
    background: var(--ink-cyan);
    box-shadow: 0 0 8px rgba(0,159,227,.6);
}
.dashboard-v2 .qc.done .st-dot { background: var(--ink-green); }
@keyframes dashv2-pulseS {
    50% { opacity: .5; }
}
.dashboard-v2 .qc .ord {
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--dv2-surface);
    border: 1px solid var(--dv2-border);
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s var(--dv2-ease);
    cursor: pointer;
}
.dashboard-v2 .qc .ord:hover {
    border-color: var(--dv2-border-strong);
    transform: translateX(2px);
}
.dashboard-v2 .qc .ord .ref {
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    color: var(--dv2-text);
    font-size: 11px;
}
.dashboard-v2 .qc .ord .cli {
    color: var(--dv2-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-size: 11px;
}
.dashboard-v2 .qc .ord .qt {
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px;
    color: var(--dv2-text-dim);
    font-weight: 600;
}
.dashboard-v2 .qc .more {
    font-size: 10.5px;
    color: var(--dv2-text-muted);
    text-align: center;
    padding: 2px;
    font-style: italic;
}

/* Integrations */
.dashboard-v2 .integrations {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.dashboard-v2 .intg {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--dv2-border);
    background: var(--dv2-surface-2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.dashboard-v2 .intg::before {
    content: "";
    position: absolute;
    inset: auto auto -30px -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: .12;
    filter: blur(20px);
}
.dashboard-v2 .intg.a::before { background: var(--ink-magenta); }
.dashboard-v2 .intg.b::before { background: var(--ink-orange); }
.dashboard-v2 .intg.c::before { background: var(--ink-violet); }
.dashboard-v2 .intg.d::before { background: var(--ink-green); }
.dashboard-v2 .intg .ih {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.dashboard-v2 .intg .logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 10.5px;
    font-family: 'Geist Mono', monospace;
}
.dashboard-v2 .intg.a .logo { background: linear-gradient(135deg, #E6007E, #F6A316); }
.dashboard-v2 .intg.b .logo {
    background: linear-gradient(135deg, #F6A316, #FFD700);
    color: #3d2b00;
}
.dashboard-v2 .intg.c .logo { background: linear-gradient(135deg, #6C5DD3, #4a3fb0); }
.dashboard-v2 .intg.d .logo { background: linear-gradient(135deg, #66B32E, #3d6b1a); }
.dashboard-v2 .intg .nm {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.005em;
}
.dashboard-v2 .intg .tag {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(102,179,46,.12);
    color: #4a8f20;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: 'Geist Mono', monospace;
}
.dashboard-v2 .intg .tag.off {
    background: rgba(90,90,90,.12);
    color: #6b6f78;
}
.dashboard-v2 .intg .tag.err {
    background: rgba(255,59,48,.12);
    color: #c42c23;
}
[data-theme="dark"] .dashboard-v2 .intg .tag {
    background: rgba(102,179,46,.2);
    color: #8fd45a;
}
[data-theme="dark"] .dashboard-v2 .intg .tag.off {
    background: rgba(168,172,180,.15);
    color: #a8acb4;
}
[data-theme="dark"] .dashboard-v2 .intg .tag.err {
    background: rgba(255,59,48,.2);
    color: #ff8a7e;
}
.dashboard-v2 .intg .info {
    font-size: 11px;
    color: var(--dv2-text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'Geist Mono', monospace;
}
.dashboard-v2 .intg .info b {
    color: var(--dv2-text);
    font-weight: 600;
}

/* Quick actions */
.dashboard-v2 .qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 16px;
}
.dashboard-v2 .qa {
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid var(--dv2-border);
    background: var(--dv2-surface-2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    color: var(--dv2-text);
    text-align: left;
    text-decoration: none;
    transition: all .2s var(--dv2-ease);
    position: relative;
    overflow: hidden;
}
.dashboard-v2 .qa::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s;
    filter: blur(14px);
}
.dashboard-v2 .qa:hover {
    transform: translateY(-2px);
    border-color: var(--dv2-border-strong);
    box-shadow: var(--dv2-shadow-md);
}
.dashboard-v2 .qa:hover::after { opacity: .3; }
.dashboard-v2 .qa .ic {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
}
.dashboard-v2 .qa.c::after { background: var(--ink-cyan); }
.dashboard-v2 .qa.c .ic { background: linear-gradient(135deg, var(--ink-cyan), var(--ink-cyan-deep)); }
.dashboard-v2 .qa.m::after { background: var(--ink-magenta); }
.dashboard-v2 .qa.m .ic { background: linear-gradient(135deg, var(--ink-magenta), var(--ink-magenta-deep)); }
.dashboard-v2 .qa.o::after { background: var(--ink-orange); }
.dashboard-v2 .qa.o .ic { background: linear-gradient(135deg, var(--ink-orange), #c47c00); }
.dashboard-v2 .qa.g::after { background: var(--ink-green); }
.dashboard-v2 .qa.g .ic { background: linear-gradient(135deg, var(--ink-green), #3d6b1a); }
.dashboard-v2 .qa .ic svg {
    width: 15px;
    height: 15px;
}
.dashboard-v2 .qa .nm {
    font-size: 12.5px;
    font-weight: 600;
}
.dashboard-v2 .qa .ds {
    font-size: 10.5px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .qa kbd {
    margin-left: auto;
    font-family: 'Geist Mono', monospace;
    font-size: 9.5px;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--dv2-surface);
    border: 1px solid var(--dv2-border);
    color: var(--dv2-text-muted);
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Heatmap */
.dashboard-v2 .heatmap { padding: 12px 16px; }
.dashboard-v2 .hm-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.dashboard-v2 .hm-head .lh {
    font-size: 11.5px;
    color: var(--dv2-text-muted);
}
.dashboard-v2 .hm-head .legend {
    display: flex;
    gap: 3px;
    align-items: center;
    font-size: 10.5px;
    color: var(--dv2-text-dim);
    font-family: 'Geist Mono', monospace;
}
.dashboard-v2 .hm-head .legend .sq {
    width: 10px;
    height: 10px;
    border-radius: 2.5px;
}
.dashboard-v2 .hm-grid {
    display: grid;
    grid-template-columns: 20px repeat(26, 1fr);
    gap: 3px;
}
.dashboard-v2 .hm-label {
    font-size: 10px;
    color: var(--dv2-text-dim);
    display: flex;
    align-items: center;
    font-family: 'Geist Mono', monospace;
}
.dashboard-v2 .hm-cell {
    aspect-ratio: 1;
    border-radius: 2.5px;
    background: var(--dv2-border);
    transition: transform .15s;
}
.dashboard-v2 .hm-cell:hover { transform: scale(1.4); }
.dashboard-v2 .hm-cell.l1 { background: rgba(0,159,227,.18); }
.dashboard-v2 .hm-cell.l2 { background: rgba(0,159,227,.38); }
.dashboard-v2 .hm-cell.l3 { background: rgba(0,159,227,.6); }
.dashboard-v2 .hm-cell.l4 {
    background: var(--ink-cyan);
    box-shadow: 0 0 6px rgba(0,159,227,.4);
}
[data-theme="dark"] .dashboard-v2 .hm-cell { background: #1E222D; }

/* Footer strip */
.dashboard-v2 .footer-strip {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--dv2-radius);
    background: linear-gradient(90deg, rgba(0,159,227,.05), rgba(230,0,126,.04));
    border: 1px dashed var(--dv2-border);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--dv2-text-muted);
}
[data-theme="dark"] .dashboard-v2 .footer-strip {
    background: linear-gradient(90deg, rgba(0,159,227,.08), rgba(230,0,126,.06));
}
.dashboard-v2 .footer-strip b { color: var(--dv2-text); }
.dashboard-v2 .footer-strip .pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-green);
    box-shadow: 0 0 8px var(--ink-green);
}

/* Responsive guard */
@media (max-width: 1200px) {
    .dashboard-v2 .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .dashboard-v2 .grid { grid-template-columns: 1fr; }
    .dashboard-v2 .queue-grid,
    .dashboard-v2 .queue .col-h { grid-template-columns: repeat(2, 1fr); }
    .dashboard-v2 .qa-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-v2 .hero { grid-template-columns: 1fr; }
}

/* Sprint 24 A-06b — Order color code (dot/row) */
.ord-color-cell { width: 3rem; padding: 0 .35rem; vertical-align: middle; }
.ord-color-dots { display: inline-flex; align-items: center; gap: 2px; }
.ord-color-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    vertical-align: middle;
}
.ord-color-dot--empty { background: transparent; border-style: dashed; opacity: .5; }
