        :root {
            --bg-dark: #020617;
            --bg-card: #0f172a;
            --accent-primary: #3b82f6;
            --accent-glow: rgba(59, 130, 246, 0.5);
            --accent-success: #10b981;
            --accent-warning: #f59e0b;
            --accent-error: #ef4444;
            --text-main: #f8fafc;
            --text-dim: #94a3b8;
            --border: rgba(255, 255, 255, 0.1);
            --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Outfit', sans-serif;
        }

        /* --- Accessibility Utilities --- */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        *:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            min-height: 100vh;
            padding: 1.5rem;
            line-height: 1.5;
            background-image:
                radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
        }

        /* --- Header --- */
        header {
            max-width: 1400px;
            margin: 0 auto 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-card);
            padding: 1rem 2rem;
            border-radius: 1rem;
            border: 1px solid var(--border);
            box-shadow: var(--card-shadow);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            letter-spacing: -1px;
            background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header-badge {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(16, 185, 129, 0.1);
            padding: 0.4rem 1rem;
            border-radius: 2rem;
            border: 1px solid rgba(16, 185, 129, 0.2);
            color: var(--accent-success);
            font-size: 0.85rem;
            font-weight: 700;
        }

        /* --- Layout --- */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 2rem;
        }

        @media (max-width: 1100px) {
            .container {
                grid-template-columns: 1fr;
            }
        }

        /* --- Sidebar & Inputs --- */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .card {
            background: var(--bg-card);
            border-radius: 1.25rem;
            padding: 1.75rem;
            border: 1px solid var(--border);
            box-shadow: var(--card-shadow);
            position: relative;
            overflow: hidden;
        }

        .section-title {
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--accent-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .input-group {
            margin-bottom: 1.25rem;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-dim);
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        input,
        select {
            width: 100%;
            background: #020617;
            border: 1px solid var(--border);
            border-radius: 0.75rem;
            padding: 0.8rem 1rem;
            color: white;
            font-size: 0.95rem;
            transition: var(--transition);
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
        }

        input[type="number"]::-webkit-inner-spin-button {
            display: none;
        }

        .api-status {
            padding: 0.75rem;
            border-radius: 0.75rem;
            background: rgba(0, 0, 0, 0.2);
            margin-top: -0.5rem;
            margin-bottom: 1rem;
            font-size: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid var(--border);
        }

        .loader {
            width: 14px;
            height: 14px;
            border: 2px solid var(--accent-primary);
            border-bottom-color: transparent;
            border-radius: 50%;
            display: none;
            animation: rotate 1s linear infinite;
        }

        @keyframes rotate {
            100% {
                transform: rotate(360deg);
            }
        }

        .btn-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 1rem;
        }

        button {
            padding: 0.9rem;
            border-radius: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-primary), #2563eb);
            color: white;
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 15px 20px -3px rgba(37, 99, 235, 0.4);
        }

        .btn-primary:active:not(:disabled) {
            transform: translateY(0);
        }

        .btn-primary:disabled {
            background: #334155;
            color: #64748b;
            cursor: not-allowed;
            box-shadow: none;
        }

        .btn-secondary {
            background: rgba(148, 163, 184, 0.1);
            color: var(--text-dim);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background: rgba(148, 163, 184, 0.2);
            color: white;
        }

        /* --- Results Area --- */
        .results-panel {
            min-height: 600px;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .empty-state {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-dim);
            text-align: center;
            padding: 5rem 2rem;
            border: 2px dashed var(--border);
            border-radius: 2rem;
        }

        /* --- Report Design --- */
        .report-header {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .report-title h2 {
            font-size: 2.25rem;
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 0.25rem;
        }

        .report-title p {
            color: var(--accent-primary);
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .report-actions {
            display: flex;
            gap: 0.75rem;
        }

        .badge-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 0.5rem 1rem;
            font-size: 0.75rem;
            border-radius: 0.5rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .badge-btn:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .spec-card {
            background: rgba(2, 6, 23, 0.4);
            padding: 1.25rem;
            border-radius: 1rem;
            border: 1px solid var(--border);
        }

        .spec-label {
            font-size: 0.65rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.35rem;
            display: block;
        }

        .spec-value {
            font-size: 1.1rem;
            font-weight: 800;
            color: white;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* --- Maintenance Table --- */
        .table-container {
            border-radius: 1rem;
            overflow: hidden;
            border: 1px solid var(--border);
            background: rgba(15, 23, 42, 0.4);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            background: rgba(15, 23, 42, 0.8);
            text-align: left;
            padding: 1rem 1.5rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 1px solid var(--border);
        }

        td {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border);
            font-size: 0.95rem;
        }

        tr:last-child td {
            border-bottom: none;
        }

        .task-name {
            font-weight: 700;
            display: flex;
            flex-direction: column;
        }

        .task-note {
            font-size: 0.8rem;
            font-weight: 400;
            color: var(--text-dim);
            margin-top: 0.25rem;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.35rem 0.85rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .status-urgent {
            background: rgba(239, 68, 68, 0.15);
            color: var(--accent-error);
        }

        .status-warning {
            background: rgba(245, 158, 11, 0.15);
            color: var(--accent-warning);
        }

        .status-ok {
            background: rgba(16, 185, 129, 0.15);
            color: var(--accent-success);
        }

        /* --- Expert Notes Section --- */
        .notes-section {
            margin-top: 1rem;
        }

        .note-card {
            background: linear-gradient(to right, rgba(59, 130, 246, 0.1), transparent);
            border-left: 4px solid var(--accent-primary);
            padding: 1.5rem;
            border-radius: 0 1rem 1rem 0;
            font-size: 0.9rem;
        }

        .note-card h4 {
            font-size: 0.8rem;
            font-weight: 800;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            color: var(--accent-primary);
        }

        .note-list {
            list-style: none;
        }

        .note-list li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .note-list li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--accent-primary);
            font-weight: 800;
        }

        /* --- Auth & Modal --- */
        .auth-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-badge {
            color: var(--accent-success);
            font-weight: 700;
            font-size: 0.9rem;
        }

        .garage-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.5rem;
            border-radius: 0.5rem;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            background: rgba(59, 130, 246, 0.1);
            color: var(--accent-primary);
            border: 1px solid rgba(59, 130, 246, 0.25);
            white-space: nowrap;
            overflow: hidden;
        }

        .garage-badge:has(.garage-logo) {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 0.15rem 0.4rem;
            border-radius: 0.4rem;
        }

        .garage-logo {
            height: 38px;
            width: auto;
            max-width: 220px;
            object-fit: contain;
            display: block;
        }

        .hidden {
            display: none !important;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: var(--bg-card);
            padding: 2rem;
            border-radius: 1rem;
            width: 90%;
            max-width: 500px;
            position: relative;
            border: 1px solid var(--border);
        }

        .close-modal {
            position: absolute;
            right: 1.5rem;
            top: 1rem;
            font-size: 2rem;
            cursor: pointer;
            color: var(--text-dim);
        }

        .close-modal:hover {
            color: white;
        }

        #login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--bg-dark);
            z-index: 900;
            display: none;
            /* Changed to Flex Row for Split Screen */
            flex-direction: row;
            align-items: stretch;
            justify-content: flex-start;
        }

        .login-left {
            width: 40%;
            background: var(--bg-card);
            padding: 4rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            position: relative;
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
            z-index: 2;
            border-right: 1px solid var(--border);
        }

        .login-right {
            width: 60%;
            position: relative;
            background-color: #0f172a;
            /* Placeholder for image - user needs to ensure file exists or update path */
            background-image: url('saas_automotive_background_1768431021755.png');
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 4rem;
        }

        .login-right::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(37, 99, 235, 0.3) 100%);
            z-index: 1;
        }

        .login-content-right {
            position: relative;
            z-index: 2;
            color: white;
            max-width: 700px;
        }

        .marketing-list {
            list-style: none;
            margin-top: 2.5rem;
        }

        .marketing-list li {
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 1.1rem;
            color: #e2e8f0;
        }

        .marketing-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-success);
            border-radius: 50%;
            font-size: 1.2rem;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        @media (max-width: 1000px) {
            #login-overlay {
                flex-direction: column;
            }

            .login-left {
                width: 100%;
                height: 50%;
                padding: 2rem;
            }

            .login-right {
                width: 100%;
                height: 50%;
                padding: 2rem;
                display: none;
            }

            /* Hide image on mobile for simpler login */
        }

        /* --- Printing --- */
        @media print {
            body {
                background: white;
                color: black;
                padding: 0;
            }

            .sidebar,
            header,
            .badge-btn,
            .header-badge {
                display: none !important;
            }

            .container {
                display: block;
            }

            .card {
                border: none;
                box-shadow: none;
                background: transparent;
                padding: 0;
            }

            .spec-card {
                background: #f1f5f9;
                border: 1px solid #cbd5e1;
            }

            .spec-value {
                color: black;
            }

            .table-container {
                border: 1px solid #cbd5e1;
            }

            th {
                color: #64748b;
                background: #e2e8f0;
                border-bottom: 2px solid #cbd5e1;
            }

            td {
                border-bottom: 1px solid #cbd5e1;
                color: black;
            }

            .note-card {
                border: 1px solid #cbd5e1;
                border-left: 4px solid black;
                background: #f8fafc;
                color: black;
            }

            .status-pill {
                border: 1px solid #cbd5e1;
                color: black !important;
                background: transparent !important;
            }

            /* ── Légende du suivi d'entretien (visible uniquement à l'impression) ── */
            .logbook-print-legend {
                display: block !important;
                margin-top: 1.5rem;
                padding: 12px 16px;
                border: 1px solid #cbd5e1;
                border-radius: 8px;
                background: #f8fafc;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-print-legend-title {
                font-size: 0.75rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 1px;
                color: #1e293b;
                margin-bottom: 8px;
            }

            .logbook-print-legend-items {
                display: flex;
                gap: 24px;
                flex-wrap: wrap;
            }

            .logbook-print-legend-item {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 0.72rem;
                color: #334155;
            }

            .logbook-print-legend-dot {
                width: 10px;
                height: 10px;
                border-radius: 50%;
                flex-shrink: 0;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
        }

        /* Légende du carnet — masquée à l'écran */
        .logbook-print-legend {
            display: none;
        }

        /* En-tête garage — masqué à l'écran, visible à l'impression */
        .garage-print-header {
            display: none;
        }

        /* ═══ ADMIN: Alerte enregistrements orphelins ═══ */
        .orphan-alert {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.04));
            border: 1px solid rgba(251, 191, 36, 0.3);
            border-left: 4px solid #f59e0b;
            border-radius: 10px;
            padding: 14px 18px;
            margin-bottom: 16px;
            transition: opacity 0.3s ease;
        }

        .orphan-alert-header {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-bottom: 10px;
        }

        .orphan-alert-header span {
            font-weight: 700;
            font-size: 0.85rem;
            color: #f59e0b;
        }

        .orphan-alert-header small {
            font-size: 0.72rem;
            color: #92400e;
            opacity: 0.7;
        }

        .orphan-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .orphan-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(251, 191, 36, 0.06);
            border: 1px solid rgba(251, 191, 36, 0.15);
            border-radius: 8px;
            padding: 8px 12px;
            transition: all 0.3s ease;
        }

        .orphan-info {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .orphan-key {
            font-size: 0.78rem;
            font-weight: 700;
            color: #d97706;
            font-family: 'JetBrains Mono', monospace;
        }

        .orphan-data {
            font-size: 0.7rem;
            color: #92400e;
            opacity: 0.8;
        }

        .orphan-delete-btn {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.2);
            border-radius: 6px;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.2s ease;
        }

        .orphan-delete-btn:hover {
            background: rgba(239, 68, 68, 0.2);
            border-color: #ef4444;
            transform: scale(1.05);
        }

        .orphan-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .orphan-migrate-select {
            background: rgba(59, 130, 246, 0.08);
            border: 1px solid rgba(59, 130, 246, 0.25);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.72rem;
            color: #1e3a8a;
            max-width: 240px;
            cursor: pointer;
            font-family: inherit;
        }

        .orphan-migrate-select:focus {
            outline: none;
            border-color: #3b82f6;
            background: rgba(59, 130, 246, 0.15);
        }

        .orphan-migrate-btn {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.25);
            border-radius: 6px;
            padding: 4px 10px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 700;
            color: #1e3a8a;
            transition: all 0.2s ease;
        }

        .orphan-migrate-btn:hover:not(:disabled) {
            background: rgba(59, 130, 246, 0.22);
            border-color: #3b82f6;
            transform: scale(1.05);
        }

        .orphan-migrate-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        /* ═══════════════════════════════════════════════════════════════
           ADMIN — Dashboard audit orphelins globaux
        ═══════════════════════════════════════════════════════════════ */
        .admin-orphan-audit-btn {
            position: fixed;
            top: 76px;
            right: 20px;
            z-index: 9000;
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            color: #fff;
            border: none;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .admin-orphan-audit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
        }

        .admin-modal {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .admin-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(4px);
        }
        .admin-modal-content {
            position: relative;
            background: #fff;
            border-radius: 14px;
            max-width: 1100px;
            width: 100%;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
            overflow: hidden;
        }
        .admin-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 24px;
            border-bottom: 1px solid #e5e7eb;
            background: linear-gradient(135deg, #f8fafc, #eef2ff);
        }
        .admin-modal-header h2 {
            margin: 0;
            font-size: 1.15rem;
            color: #1e3a8a;
        }
        .admin-modal-close {
            background: transparent;
            border: none;
            font-size: 1.8rem;
            line-height: 1;
            color: #6b7280;
            cursor: pointer;
            padding: 0 4px;
            transition: color 0.2s;
        }
        .admin-modal-close:hover { color: #ef4444; }
        .admin-modal-body {
            padding: 20px 24px;
            overflow-y: auto;
            flex: 1;
            color: #1f2937;
        }

        .admin-orphan-intro p {
            margin: 0 0 10px;
            color: #374151;
            line-height: 1.5;
        }
        .admin-orphan-note {
            font-size: 0.85rem;
            color: #6b7280;
            font-style: italic;
        }
        .admin-orphan-scan-btn {
            margin-top: 12px;
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            border: none;
            padding: 10px 22px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
            transition: transform 0.2s;
            font-family: inherit;
        }
        .admin-orphan-scan-btn:hover { transform: scale(1.03); }

        .admin-orphan-progress-label {
            font-weight: 700;
            color: #1e3a8a;
            margin-bottom: 8px;
        }
        .admin-orphan-progress-bar {
            width: 100%;
            height: 10px;
            background: #e5e7eb;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        .admin-orphan-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #10b981);
            width: 0%;
            transition: width 0.3s ease;
        }
        .admin-orphan-progress-detail {
            font-size: 0.85rem;
            color: #6b7280;
            font-family: monospace;
        }

        .admin-orphan-empty {
            padding: 30px;
            text-align: center;
            color: #4b5563;
            font-size: 1.05rem;
            background: #f9fafb;
            border-radius: 10px;
        }
        .admin-orphan-summary {
            padding: 12px 16px;
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        .admin-orphan-summary strong {
            color: #92400e;
            font-size: 1rem;
        }
        .admin-orphan-chips {
            margin-top: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .admin-orphan-chip {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid #fbbf24;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            color: #78350f;
        }

        .admin-orphan-table-wrap {
            overflow-x: auto;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
        }
        .admin-orphan-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
        }
        .admin-orphan-table thead {
            background: #f3f4f6;
            position: sticky;
            top: 0;
        }
        .admin-orphan-table th {
            padding: 10px 12px;
            text-align: left;
            font-weight: 700;
            color: #374151;
            border-bottom: 2px solid #d1d5db;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .admin-orphan-table td {
            padding: 10px 12px;
            border-bottom: 1px solid #f3f4f6;
            color: #1f2937;
            vertical-align: middle;
        }
        .admin-orphan-table tr:hover td { background: #f9fafb; }
        .admin-orphan-table code {
            background: #eef2ff;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.78rem;
            color: #3730a3;
        }
        .admin-orphan-explain {
            margin-top: 10px;
            font-size: 0.82rem;
            color: #78350f;
            line-height: 1.5;
        }
        .admin-orphan-service {
            display: block;
            font-weight: 600;
            color: #1f2937;
            font-size: 0.88rem;
        }
        .admin-orphan-key-small {
            display: block;
            background: #eef2ff;
            padding: 2px 5px;
            border-radius: 4px;
            font-size: 0.72rem;
            color: #6366f1;
            margin-top: 2px;
        }
        .admin-orphan-actions { white-space: nowrap; }
        .admin-orphan-open-btn, .admin-orphan-del-btn {
            background: transparent;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 0.95rem;
            margin-right: 4px;
            transition: all 0.15s;
        }
        .admin-orphan-open-btn:hover {
            background: #dbeafe;
            border-color: #3b82f6;
        }
        .admin-orphan-del-btn:hover {
            background: #fee2e2;
            border-color: #ef4444;
        }

        /* ═══════════════════════════════════════════════════════════════
           QA / AUDIT MODULE - Interface Discrète
        ═══════════════════════════════════════════════════════════════ */

        /* Bouton discret (icône boulon) */
        .qa-trigger-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.3;
            transition: all 0.3s ease;
            z-index: 9999;
        }

        .qa-trigger-btn:hover {
            opacity: 1;
            background: rgba(59, 130, 246, 0.2);
            border-color: var(--accent-primary);
            transform: rotate(90deg);
        }

        .qa-trigger-btn svg {
            width: 18px;
            height: 18px;
            fill: #64748b;
        }

        .qa-trigger-btn:hover svg {
            fill: var(--accent-primary);
        }

        /* Modal QA Overlay */
        .qa-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(2, 6, 23, 0.95);
            z-index: 10000;
            overflow-y: auto;
            padding: 2rem;
        }

        .qa-modal.active {
            display: block;
        }

        .qa-modal-content {
            max-width: 1200px;
            margin: 0 auto;
            background: var(--bg-card);
            border-radius: 1.5rem;
            border: 1px solid var(--border);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            overflow: hidden;
        }

        .qa-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
            border-bottom: 1px solid var(--border);
        }

        .qa-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .qa-header h2::before {
            content: "🔧";
        }

        .qa-close-btn {
            width: 36px;
            height: 36px;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 50%;
            color: #ef4444;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .qa-close-btn:hover {
            background: #ef4444;
            color: white;
        }

        .qa-body {
            padding: 2rem;
        }

        /* Zone Drag & Drop */
        .qa-dropzone {
            border: 2px dashed rgba(59, 130, 246, 0.4);
            border-radius: 1rem;
            padding: 3rem;
            text-align: center;
            background: rgba(59, 130, 246, 0.05);
            transition: all 0.3s;
            cursor: pointer;
        }

        .qa-dropzone:hover,
        .qa-dropzone.dragover {
            border-color: var(--accent-primary);
            background: rgba(59, 130, 246, 0.1);
        }

        .qa-dropzone-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .qa-dropzone h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .qa-dropzone p {
            color: var(--text-dim);
            font-size: 0.9rem;
        }

        .qa-dropzone input[type="file"] {
            display: none;
        }

        .qa-format-hint {
            margin-top: 1.5rem;
            padding: 1rem;
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 0.75rem;
            font-size: 0.85rem;
            color: #f59e0b;
        }

        .qa-format-hint code {
            background: rgba(0, 0, 0, 0.3);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-family: monospace;
        }

        /* Progress Bar */
        .qa-progress {
            display: none;
            margin-top: 2rem;
        }

        .qa-progress.active {
            display: block;
        }

        .qa-progress-bar {
            height: 8px;
            background: rgba(59, 130, 246, 0.2);
            border-radius: 4px;
            overflow: hidden;
        }

        .qa-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
            border-radius: 4px;
            transition: width 0.3s ease;
            width: 0%;
        }

        .qa-progress-text {
            text-align: center;
            margin-top: 0.75rem;
            font-size: 0.9rem;
            color: var(--text-dim);
        }

        /* Score Badge */
        .qa-score-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 2rem;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .qa-score-badge.excellent {
            background: rgba(16, 185, 129, 0.15);
            border: 2px solid rgba(16, 185, 129, 0.5);
            color: #10b981;
        }

        .qa-score-badge.good {
            background: rgba(59, 130, 246, 0.15);
            border: 2px solid rgba(59, 130, 246, 0.5);
            color: #3b82f6;
        }

        .qa-score-badge.warning {
            background: rgba(245, 158, 11, 0.15);
            border: 2px solid rgba(245, 158, 11, 0.5);
            color: #f59e0b;
        }

        .qa-score-badge.critical {
            background: rgba(239, 68, 68, 0.15);
            border: 2px solid rgba(239, 68, 68, 0.5);
            color: #ef4444;
        }

        /* Results Table */
        .qa-results {
            display: none;
            margin-top: 2rem;
        }

        .qa-results.active {
            display: block;
        }

        .qa-results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .qa-stats {
            display: flex;
            gap: 1rem;
        }

        .qa-stat {
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .qa-stat.pass {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }

        .qa-stat.fail {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .qa-stat.critical {
            background: rgba(139, 0, 0, 0.3);
            color: #ff6b6b;
        }

        .qa-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
        }

        .qa-table th {
            background: rgba(30, 41, 59, 0.8);
            padding: 0.75rem 1rem;
            text-align: left;
            font-weight: 600;
            color: var(--text-dim);
            border-bottom: 1px solid var(--border);
        }

        .qa-table td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border);
            vertical-align: top;
        }

        .qa-table tr.pass {
            background: rgba(16, 185, 129, 0.08);
        }

        .qa-table tr.pass td:first-child {
            border-left: 3px solid #10b981;
        }

        .qa-table tr.fail {
            background: rgba(239, 68, 68, 0.08);
        }

        .qa-table tr.fail td:first-child {
            border-left: 3px solid #ef4444;
        }

        .qa-table tr.critical {
            background: rgba(139, 0, 0, 0.15);
        }

        .qa-table tr.critical td:first-child {
            border-left: 3px solid #dc143c;
        }

        .qa-diff {
            font-size: 0.8rem;
            color: #ef4444;
            margin-top: 0.25rem;
        }

        .qa-diff strong {
            color: #ff6b6b;
        }

        .qa-status-icon {
            font-size: 1.2rem;
        }

        /* Export Button */
        .qa-export-btn {
            padding: 0.6rem 1.2rem;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.4);
            border-radius: 0.5rem;
            color: var(--accent-primary);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .qa-export-btn:hover {
            background: var(--accent-primary);
            color: white;
        }

        /* ========== HELP MODAL STYLES ========== */
        .help-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 9000;
            justify-content: center;
            align-items: center;
            padding: 2rem;
        }

        .help-modal-overlay.active {
            display: flex;
        }

        .help-modal {
            background: linear-gradient(145deg, #1a1f35 0%, #0d1117 100%);
            border-radius: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .help-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            color: #94a3b8;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 10;
        }

        .help-modal-close:hover {
            background: #ef4444;
            border-color: #ef4444;
            color: white;
        }

        .help-modal-header {
            padding: 2rem 2rem 1rem;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .help-modal-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .help-modal-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
        }

        .help-modal-subtitle {
            color: #94a3b8;
            font-size: 0.95rem;
        }

        #help-form-container {
            padding: 0 2rem 2rem;
        }

        #help-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding-top: 1.5rem;
        }

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

        .help-form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .help-form-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #cbd5e1;
        }

        .help-form-input {
            padding: 0.875rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.75rem;
            color: white;
            font-size: 0.95rem;
            transition: all 0.2s;
        }

        .help-form-input:focus {
            outline: none;
            border-color: var(--accent-primary);
            background: rgba(59, 130, 246, 0.1);
        }

        .help-form-input::placeholder {
            color: #64748b;
        }

        .help-textarea {
            min-height: 120px;
            resize: vertical;
        }

        .help-form-submit {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border: none;
            border-radius: 0.75rem;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 0.5rem;
        }

        .help-form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
        }

        .help-form-success {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            text-align: center;
        }

        .help-form-success.active {
            display: flex;
        }

        .help-success-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: white;
            margin-bottom: 1.5rem;
        }

        .help-success-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
        }

        .help-success-text {
            color: #94a3b8;
        }

        @media (max-width: 600px) {
            .help-form-row {
                grid-template-columns: 1fr;
            }

            .help-modal {
                margin: 1rem;
                max-height: calc(100vh - 2rem);
            }
        }

        /* ========== LANDING PAGE STYLES ========== */
        #landing-screen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #0a0e1a;
            z-index: 9500;
            overflow-y: auto;
        }

        #landing-screen.hidden {
            display: none;
        }

        .landing-bg {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
            pointer-events: none;
        }

        .landing-header {
            position: fixed;
            top: 1rem;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 3rem);
            max-width: 1400px;
            z-index: 100;
            padding: 1rem 2rem;
            background: var(--bg-card);
            border-radius: 1rem;
            border: 1px solid var(--border);
            box-shadow: var(--card-shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .landing-logo {
            font-size: 1.8rem;
            font-weight: 800;
            letter-spacing: -1px;
            background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .landing-logo-fast,
        .landing-logo-services {
            background: inherit;
            -webkit-background-clip: inherit;
            background-clip: inherit;
            -webkit-text-fill-color: inherit;
        }

        .landing-nav {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .landing-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-family: 'Inter', 'Outfit', sans-serif;
        }

        .landing-btn-ghost {
            background: transparent;
            color: #8892a6;
        }

        .landing-btn-ghost:hover {
            color: #ffffff;
        }

        .landing-btn-primary {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .landing-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        .landing-btn-outline {
            background: transparent;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .landing-btn-outline:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .landing-main {
            position: relative;
            z-index: 1;
            padding-top: 80px;
        }

        .landing-hero {
            max-width: 1200px;
            margin: 0 auto;
            padding: 5rem 2rem 4rem;
            text-align: center;
        }

        .landing-hero-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -1px;
            color: #ffffff;
        }

        .landing-hero-gradient {
            background: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #6366f1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .landing-hero-subtitle {
            font-size: 1.15rem;
            color: #8892a6;
            max-width: 650px;
            margin: 0 auto 2.5rem;
            line-height: 1.7;
        }

        .landing-hero-cta {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .landing-hero-cta .landing-btn {
            padding: 1rem 2rem;
            font-size: 1rem;
        }

        .landing-features {
            max-width: 1000px;
            margin: 3rem auto 5rem;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .landing-feature-card {
            background: rgba(20, 30, 50, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .landing-feature-card:hover {
            background: rgba(30, 45, 70, 0.7);
            transform: translateY(-4px);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .landing-feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
            background: rgba(59, 130, 246, 0.1);
            color: #3b82f6;
        }

        .landing-feature-card:nth-child(2) .landing-feature-icon {
            background: rgba(139, 92, 246, 0.1);
            color: #8b5cf6;
        }

        .landing-feature-card:nth-child(3) .landing-feature-icon {
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
        }

        .landing-feature-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }

        .landing-feature-desc {
            font-size: 0.95rem;
            color: #8892a6;
            line-height: 1.6;
        }

        .landing-footer {
            text-align: center;
            padding: 2rem;
            color: #5a6478;
            font-size: 0.85rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* Contact Modal */
        .contact-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            z-index: 10001;
            justify-content: center;
            align-items: center;
            padding: 2rem;
        }

        .contact-modal-overlay.active {
            display: flex;
        }

        .contact-modal {
            background: linear-gradient(180deg, #141e32 0%, #0d1220 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            max-width: 500px;
            width: 100%;
            padding: 2.5rem;
            position: relative;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            animation: contactModalSlideIn 0.3s ease;
        }

        @keyframes contactModalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .contact-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 36px;
            height: 36px;
            border: none;
            background: rgba(255, 255, 255, 0.05);
            color: #8892a6;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .contact-modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .contact-modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }

        .contact-modal-subtitle {
            color: #8892a6;
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }

        .contact-form-group {
            margin-bottom: 1.25rem;
        }

        .contact-form-label {
            display: block;
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }

        .contact-form-input {
            width: 100%;
            padding: 0.875rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #ffffff;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.2s ease;
        }

        .contact-form-input:focus {
            outline: none;
            border-color: #3b82f6;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        .contact-form-input::placeholder {
            color: #5a6478;
        }

        textarea.contact-form-input {
            resize: vertical;
            min-height: 100px;
        }

        .contact-form-submit {
            width: 100%;
            padding: 1rem;
            margin-top: 0.5rem;
        }

        .contact-form-success {
            display: none;
            text-align: center;
            padding: 2rem 0;
        }

        .contact-form-success.active {
            display: block;
        }

        .contact-form-success-icon {
            width: 64px;
            height: 64px;
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin: 0 auto 1rem;
        }

        .contact-form-success-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }

        .contact-form-success-text {
            color: #8892a6;
        }

        @media (max-width: 768px) {
            .landing-header {
                padding: 1rem;
            }

            .landing-hero {
                padding: 4rem 1.5rem 3rem;
            }

            .landing-hero-cta {
                flex-direction: column;
                align-items: center;
            }

            .landing-hero-cta .landing-btn {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }

            .landing-features {
                padding: 0 1.5rem;
            }

            .contact-modal {
                padding: 2rem 1.5rem;
                margin: 1rem;
            }
        }

        /* ========== END LANDING PAGE STYLES ========== */

        /* ========== NOTES D'EXPERT STYLES ========== */
        .notes-section {
            margin-top: 2rem;
        }

        .note-card {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: 1rem;
            padding: 1.5rem 2rem;
        }

        .note-card h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #f59e0b;
            margin-bottom: 1rem;
            letter-spacing: 0.3px;
        }

        .note-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .note-list li {
            position: relative;
            padding-left: 1.25rem;
            font-size: 0.9rem;
            color: #e2e8f0;
            line-height: 1.6;
        }

        .note-list li::before {
            content: "›";
            position: absolute;
            left: 0;
            color: #f59e0b;
            font-weight: 700;
            font-size: 1.1rem;
        }

        @media print {
            .note-card {
                border: 1px solid #d97706;
                background: #fffbeb;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .note-card h4 {
                color: #92400e;
            }

            .note-list li {
                color: #1e293b;
            }

            .note-list li::before {
                color: #d97706;
            }
        }

        /* ═══════════════════════════════════════════════════════════════
   CARNET D'ENTRETIEN NUMÉRIQUE — Styles (v2 Jauge)
   ═══════════════════════════════════════════════════════════════ */

        /* --- Ligne du tableau avec indicateur de statut --- */
        .logbook-row {
            position: relative;
            transition: border-color 0.4s ease;
        }

        .logbook-status-done {
            border-left: 4px solid var(--accent-success) !important;
        }

        .logbook-status-soon {
            border-left: 4px solid var(--accent-warning) !important;
        }

        .logbook-status-due {
            border-left: 4px solid var(--accent-error) !important;
        }

        /* ═══════════════════════════════════════════════════════════════
   JAUGE HORIZONTALE DE STATUT
   ═══════════════════════════════════════════════════════════════ */
        .logbook-gauge {
            margin-top: 6px;
            margin-bottom: 2px;
        }

        .logbook-gauge-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3px;
        }

        .logbook-gauge-label {
            font-size: 0.62rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .logbook-gauge-percent {
            font-size: 0.6rem;
            font-weight: 600;
            color: var(--text-dim);
            opacity: 0.7;
        }

        /* Track (fond de la jauge) */
        .logbook-gauge-track {
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 3px;
            overflow: hidden;
            position: relative;
        }

        /* Fill (remplissage animé) */
        .logbook-gauge-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        /* Couleurs par statut — FAIT (vert) */
        .logbook-gauge-done .logbook-gauge-label {
            color: var(--accent-success);
        }

        .logbook-gauge-done .logbook-gauge-fill {
            background: linear-gradient(90deg, #059669, #10b981, #34d399);
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
        }

        /* Couleurs par statut — BIENTÔT (orange) */
        .logbook-gauge-soon .logbook-gauge-label {
            color: var(--accent-warning);
        }

        .logbook-gauge-soon .logbook-gauge-fill {
            background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
            animation: logbook-gauge-pulse-soon 2.5s ease-in-out infinite;
        }

        /* Couleurs par statut — À FAIRE (rouge) */
        .logbook-gauge-due .logbook-gauge-label {
            color: var(--accent-error);
        }

        .logbook-gauge-due .logbook-gauge-fill {
            background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
            animation: logbook-gauge-pulse-due 2s ease-in-out infinite;
        }

        @keyframes logbook-gauge-pulse-soon {

            0%,
            100% {
                box-shadow: 0 0 6px rgba(245, 158, 11, 0.2);
            }

            50% {
                box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
            }
        }

        @keyframes logbook-gauge-pulse-due {

            0%,
            100% {
                box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
            }

            50% {
                box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
            }
        }

        /* ═══════════════════════════════════════════════════════════════
   PANNEAU DE SAISIE (Carte intégrée, repliable)
   ═══════════════════════════════════════════════════════════════ */
        .logbook-panel {
            margin-top: 6px;
        }

        /* --- Bouton toggle Modifier --- */
        .logbook-toggle-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logbook-toggle-btn {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            width: 28px !important;
            height: 28px !important;
            min-width: 28px;
            padding: 0 !important;
            border-radius: 6px !important;
            background: rgba(255, 255, 255, 0.04) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: var(--text-dim) !important;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .logbook-toggle-btn:hover {
            background: rgba(59, 130, 246, 0.1) !important;
            border-color: rgba(59, 130, 246, 0.25) !important;
            color: var(--accent-primary) !important;
        }

        .logbook-toggle-btn.logbook-toggle-active {
            background: rgba(59, 130, 246, 0.12) !important;
            border-color: rgba(59, 130, 246, 0.3) !important;
            color: var(--accent-primary) !important;
        }

        .logbook-dots {
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 1px;
            transition: transform 0.3s ease;
        }

        .logbook-toggle-active .logbook-dots {
            transform: rotate(90deg);
        }

        /* --- Résumé compact --- */
        .logbook-toggle-summary {
            font-size: 0.68rem;
            font-weight: 500;
            color: var(--text-dim);
            opacity: 0.7;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all 0.3s ease;
        }

        .logbook-summary-flash {
            color: var(--accent-success) !important;
            opacity: 1 !important;
        }

        /* --- Conteneur repliable --- */
        .logbook-collapse {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                margin-top 0.35s ease;
            margin-top: 0;
        }

        .logbook-collapse-open {
            max-height: 200px;
            opacity: 1;
            margin-top: 8px;
            overflow: visible;
        }

        .logbook-entry-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 10px;
            padding: 10px 14px;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .logbook-entry-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logbook-entry-icon {
            color: var(--text-dim);
            opacity: 0.4;
            flex-shrink: 0;
        }

        .logbook-entry-divider {
            width: 1px;
            height: 22px;
            background: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .logbook-entry-field {
            display: flex;
            align-items: center;
            position: relative;
        }

        .logbook-entry-field-km {
            position: relative;
        }

        .logbook-field-suffix {
            font-size: 0.7rem;
            color: var(--text-dim);
            margin-left: 6px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.6;
        }

        /* --- Inputs raffinés --- */
        .logbook-input {
            width: auto !important;
            padding: 7px 12px !important;
            font-size: 0.82rem !important;
            font-weight: 500 !important;
            border-radius: 8px !important;
            background: rgba(2, 6, 23, 0.5) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: var(--text-main) !important;
            transition: all 0.25s ease;
            font-family: 'Outfit', sans-serif !important;
        }

        .logbook-input::placeholder {
            color: rgba(148, 163, 184, 0.4);
            font-weight: 400;
        }

        .logbook-input:hover {
            border-color: rgba(255, 255, 255, 0.15) !important;
            background: rgba(2, 6, 23, 0.6) !important;
        }

        .logbook-input:focus {
            border-color: var(--accent-primary) !important;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
            background: rgba(2, 6, 23, 0.7) !important;
            outline: none !important;
        }

        .logbook-date {
            width: 148px !important;
        }

        .logbook-km {
            width: 110px !important;
        }

        /* --- Bouton sauvegarder --- */
        .logbook-save-btn {
            width: 34px !important;
            height: 34px !important;
            min-width: 34px;
            padding: 0 !important;
            border-radius: 8px !important;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06)) !important;
            border: 1px solid rgba(59, 130, 246, 0.2) !important;
            color: var(--accent-primary) !important;
            cursor: pointer;
            transition: all 0.25s ease;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .logbook-save-btn:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15)) !important;
            border-color: var(--accent-primary) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
        }

        .logbook-save-btn:active {
            transform: translateY(0) scale(0.96);
        }

        .logbook-save-btn svg {
            width: 15px;
            height: 15px;
        }

        /* --- Bouton supprimer enregistrement --- */
        .logbook-delete-btn {
            width: 34px !important;
            height: 34px !important;
            min-width: 34px;
            padding: 0 !important;
            border-radius: 8px !important;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05)) !important;
            border: 1px solid rgba(239, 68, 68, 0.2) !important;
            color: #ef4444 !important;
            cursor: pointer;
            transition: all 0.25s ease;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .logbook-delete-btn:hover {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15)) !important;
            border-color: #ef4444 !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
        }

        .logbook-delete-btn:active {
            transform: translateY(0) scale(0.96);
        }

        .logbook-delete-btn svg {
            width: 14px;
            height: 14px;
        }

        /* --- Confirmation de sauvegarde --- */
        .logbook-confirm {
            font-size: 0.72rem;
            font-weight: 700;
            opacity: 0;
            transition: opacity 0.3s ease;
            white-space: nowrap;
        }

        .logbook-confirm-ok {
            color: var(--accent-success);
            opacity: 1;
        }

        .logbook-confirm-err {
            color: var(--accent-error);
            opacity: 1;
        }

        /* ═══════════════════════════════════════════════════════════════
   TERRACLEAN CHECKBOX
   ═══════════════════════════════════════════════════════════════ */
        .logbook-terraclean-row {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .logbook-terraclean-label {
            display: inline-flex !important;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 4px 0;
            margin-bottom: 0 !important;
        }

        .logbook-terraclean-cb {
            width: 16px !important;
            height: 16px !important;
            accent-color: #06b6d4;
            cursor: pointer;
            border-radius: 4px !important;
            padding: 0 !important;
            flex-shrink: 0;
        }

        .logbook-terraclean-mark {
            display: none;
        }

        .logbook-terraclean-badge {
            display: inline-flex;
            align-items: center;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 1.5px;
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(14, 165, 233, 0.08));
            color: #06b6d4;
            border: 1px solid rgba(6, 182, 212, 0.2);
            transition: all 0.3s ease;
            text-transform: uppercase;
        }

        .logbook-terraclean-cb:checked~.logbook-terraclean-badge {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.2));
            color: #22d3ee;
            border-color: rgba(6, 182, 212, 0.5);
            box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
        }

        .logbook-terraclean-badge.logbook-flash {
            animation: logbook-flash-anim 0.6s ease;
        }

        @keyframes logbook-flash-anim {
            0% {
                transform: scale(1);
            }

            30% {
                transform: scale(1.08);
                box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
            }

            100% {
                transform: scale(1);
            }
        }

        .logbook-terraclean-text {
            font-size: 0.7rem;
            color: var(--text-dim);
            font-weight: 400;
            text-transform: none;
            letter-spacing: 0;
            opacity: 0.7;
        }

        /* --- Badge TerraClean inline sur la ligne --- */
        .logbook-tc-inline {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 3px;
            font-size: 0.88rem;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            letter-spacing: 0.5px;
            padding: 2px 0;
            margin-top: 4px;
            color: var(--tc-color, #ef4444);
            opacity: 0.55;
            transition: all 0.3s ease;
            cursor: default;
        }

        .logbook-tc-inline.logbook-tc-active {
            opacity: 1;
            color: var(--tc-color, #10b981);
        }

        .logbook-tc-check {
            font-size: 0.6rem;
            font-weight: 800;
        }

        /* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
        @media (max-width: 768px) {
            .logbook-entry-row {
                flex-wrap: wrap;
                gap: 8px;
            }

            .logbook-entry-divider {
                display: none;
            }

            .logbook-date,
            .logbook-km {
                width: 100% !important;
            }
        }

        /* ═══════════════════════════════════════════════════════════════
   PRINT: afficher statuts du carnet, masquer contrôles interactifs
   ═══════════════════════════════════════════════════════════════ */
        @media print {

            /* ── En-tête garage (logo + coordonnées) ── */
            .garage-print-header {
                display: flex !important;
                align-items: center;
                gap: 20px;
                padding: 12px 16px;
                margin-bottom: 16px;
                border-bottom: 2px solid #e2e8f0;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .garage-print-logo {
                height: 55px;
                width: auto;
                max-width: 240px;
                object-fit: contain;
            }

            .garage-print-name {
                font-size: 1.3rem;
                font-weight: 800;
                color: #1e293b;
            }

            .garage-print-info {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .garage-print-address {
                font-size: 0.85rem;
                color: #475569;
                font-weight: 500;
            }

            .garage-print-phone {
                font-size: 0.85rem;
                color: #475569;
                font-weight: 600;
            }

            /* ── Masquer les contrôles interactifs (boutons, formulaires) ── */
            .logbook-toggle-btn,
            .logbook-collapse,
            .logbook-save-btn,
            .logbook-delete-btn,
            .logbook-confirm,
            .logbook-terraclean-row,
            .orphan-alert {
                display: none !important;
            }

            /* ── Afficher le panneau carnet (résumé seulement) ── */
            .logbook-panel {
                display: block !important;
                margin-top: 4px;
            }

            .logbook-toggle-row {
                display: flex !important;
                gap: 6px;
                align-items: center;
            }

            /* ── Résumé "Dernier : date · km" ── */
            .logbook-toggle-summary {
                font-size: 0.7rem !important;
                font-weight: 600 !important;
                color: #475569 !important;
                opacity: 1 !important;
                background: #f1f5f9;
                padding: 2px 8px;
                border-radius: 4px;
                border: 1px solid #cbd5e1;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            /* ── Jauge de progression ── */
            .logbook-gauge {
                display: block !important;
                margin-top: 5px;
                margin-bottom: 3px;
            }

            .logbook-gauge-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 2px;
            }

            .logbook-gauge-label {
                font-size: 0.62rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            .logbook-gauge-percent {
                font-size: 0.6rem;
                font-weight: 600;
                color: #64748b;
            }

            .logbook-gauge-track {
                width: 100%;
                height: 4px;
                background: #e2e8f0;
                border-radius: 4px;
                overflow: hidden;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-gauge-fill {
                height: 100%;
                border-radius: 4px;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
                box-shadow: none !important;
                animation: none !important;
            }

            /* Couleurs des jauges pour impression */
            .logbook-gauge-done .logbook-gauge-label {
                color: #059669 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-gauge-done .logbook-gauge-fill {
                background: #10b981 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-gauge-soon .logbook-gauge-label {
                color: #d97706 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-gauge-soon .logbook-gauge-fill {
                background: #f59e0b !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-gauge-due .logbook-gauge-label {
                color: #dc2626 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-gauge-due .logbook-gauge-fill {
                background: #ef4444 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            /* ── Indicateurs de statut sur les lignes ── */
            .logbook-status-done {
                border-left: 4px solid #10b981 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-status-soon {
                border-left: 4px solid #f59e0b !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-status-due {
                border-left: 4px solid #ef4444 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            /* ── Badge TerraClean inline ── */
            .logbook-tc-inline {
                font-size: 0.72rem !important;
                color: #64748b !important;
                opacity: 0.7;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .logbook-tc-inline.logbook-tc-active {
                color: #059669 !important;
                opacity: 1;
            }
        }

        /* ═══════════════════════════════════════════════════════════════
   FLATPICKR — Overrides thème FAST SERVICES
   ═══════════════════════════════════════════════════════════════ */
        .flatpickr-calendar {
            background: rgba(15, 23, 42, 0.95) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 12px !important;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            font-family: 'Outfit', sans-serif !important;
            overflow: hidden;
        }

        .flatpickr-calendar.open {
            z-index: 99999 !important;
        }

        .flatpickr-months {
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 4px 0;
        }

        .flatpickr-months .flatpickr-month {
            color: var(--text-main) !important;
            fill: var(--text-main) !important;
        }

        .flatpickr-current-month {
            font-weight: 700 !important;
            font-size: 0.95rem !important;
            color: var(--text-main) !important;
        }

        .flatpickr-current-month .flatpickr-monthDropdown-months {
            background: transparent !important;
            color: var(--text-main) !important;
            font-weight: 700 !important;
            appearance: none;
            -webkit-appearance: none;
        }

        .flatpickr-months .flatpickr-prev-month,
        .flatpickr-months .flatpickr-next-month {
            fill: var(--text-dim) !important;
            color: var(--text-dim) !important;
            transition: all 0.2s ease;
            border-radius: 6px;
            padding: 6px !important;
        }

        .flatpickr-months .flatpickr-prev-month:hover,
        .flatpickr-months .flatpickr-next-month:hover {
            fill: var(--accent-primary) !important;
            color: var(--accent-primary) !important;
            background: rgba(59, 130, 246, 0.1);
        }

        .flatpickr-months .flatpickr-prev-month svg,
        .flatpickr-months .flatpickr-next-month svg {
            fill: inherit !important;
        }

        span.flatpickr-weekday {
            color: var(--text-dim) !important;
            font-weight: 600 !important;
            font-size: 0.72rem !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .flatpickr-day {
            color: var(--text-main) !important;
            border-radius: 8px !important;
            border: none !important;
            font-weight: 500;
            transition: all 0.15s ease;
            max-width: 36px;
            height: 36px;
            line-height: 36px;
        }

        .flatpickr-day:hover {
            background: rgba(59, 130, 246, 0.15) !important;
            border: none !important;
        }

        .flatpickr-day.today {
            border: 1px solid rgba(59, 130, 246, 0.4) !important;
            color: var(--accent-primary) !important;
            font-weight: 700;
        }

        .flatpickr-day.today:hover {
            background: rgba(59, 130, 246, 0.15) !important;
        }

        .flatpickr-day.selected,
        .flatpickr-day.selected:hover {
            background: var(--accent-primary) !important;
            color: #fff !important;
            border: none !important;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
            font-weight: 700;
        }

        .flatpickr-day.flatpickr-disabled,
        .flatpickr-day.flatpickr-disabled:hover,
        .flatpickr-day.prevMonthDay,
        .flatpickr-day.nextMonthDay {
            color: rgba(148, 163, 184, 0.25) !important;
        }

        .flatpickr-day.prevMonthDay:hover,
        .flatpickr-day.nextMonthDay:hover {
            background: rgba(255, 255, 255, 0.03) !important;
        }

        .numInputWrapper {
            background: transparent !important;
        }

        .numInputWrapper:hover {
            background: rgba(255, 255, 255, 0.03) !important;
        }

        .flatpickr-current-month input.cur-year {
            color: var(--text-main) !important;
            font-weight: 700 !important;
            font-size: 0.95rem !important;
        }

        /* Alt input (affichage formaté) */
        .logbook-entry-field .flatpickr-input.form-control+input.form-control,
        .logbook-entry-field input.flatpickr-input+input {
            padding: 7px 12px !important;
            font-size: 0.82rem !important;
            font-weight: 500 !important;
            border-radius: 8px !important;
            background: rgba(2, 6, 23, 0.5) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: var(--text-main) !important;
            font-family: 'Outfit', sans-serif !important;
            cursor: pointer;
            transition: all 0.25s ease;
            width: 165px !important;
        }

        .logbook-entry-field input.flatpickr-input+input:hover {
            border-color: rgba(255, 255, 255, 0.15) !important;
            background: rgba(2, 6, 23, 0.6) !important;
        }

        .logbook-entry-field input.flatpickr-input+input:focus {
            border-color: var(--accent-primary) !important;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
        }

        /* ═══════════════════════════════════════════════════════════
           BILLING IMPORT — Bouton + Modal
        ═══════════════════════════════════════════════════════════ */
        .billing-import-btn {
            position: fixed;
            top: 120px;
            right: 20px;
            z-index: 9000;
            background: linear-gradient(135deg, #065f46, #10b981);
            color: #fff;
            border: none;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .billing-import-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        }

        .billing-modal-content {
            max-width: 820px !important;
        }

        /* Contexte garage admin — sidebar */
        .admin-garage-ctx {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            margin-bottom: 0.75rem;
            padding: 0.65rem 0.85rem;
            background: rgba(251, 191, 36, 0.08);
            border: 1px solid rgba(251, 191, 36, 0.35);
            border-radius: 8px;
        }
        .admin-garage-ctx-label {
            font-size: 0.72rem;
            font-weight: 700;
            color: #92400e;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .admin-garage-ctx-select {
            width: 100%;
            padding: 0.4rem 0.6rem;
            border: 1px solid rgba(251, 191, 36, 0.5);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-main);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
        }
        .admin-garage-ctx-select option {
            background: #1e293b;
            color: #f8fafc;
        }

        .billing-garage-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.25rem;
            padding: 0.75rem 1rem;
            background: #fffbeb;
            border: 1px solid #fbbf24;
            border-radius: 8px;
        }
        .billing-garage-label {
            font-weight: 700;
            color: #92400e;
            font-size: 0.88rem;
            white-space: nowrap;
        }
        .billing-garage-select {
            flex: 1;
            padding: 0.45rem 0.75rem;
            border: 1px solid #fbbf24;
            border-radius: 6px;
            background: #fff;
            font-size: 0.9rem;
            color: #1e3a8a;
            font-weight: 600;
            cursor: pointer;
        }

        .billing-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 0;
        }
        .billing-tab-btn {
            padding: 0.45rem 1rem;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 600;
            color: #6b7280;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: color 0.15s, border-color 0.15s;
        }
        .billing-tab-btn.active {
            color: #1e3a8a;
            border-bottom-color: #3b82f6;
        }
        .billing-tab-btn:hover:not(.active) { color: #374151; }

        .billing-paste-hint {
            font-size: 0.82rem;
            color: #6b7280;
            margin: 0 0 0.6rem;
            font-style: italic;
        }
        .billing-paste-area {
            width: 100%;
            min-height: 140px;
            padding: 0.65rem 0.85rem;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 0.82rem;
            font-family: 'SFMono-Regular', 'Consolas', monospace;
            resize: vertical;
            margin-bottom: 0.85rem;
            color: #1f2937;
            box-sizing: border-box;
        }
        .billing-paste-area:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
        }

        .billing-intro {
            color: #374151;
            margin: 0 0 1.25rem;
            line-height: 1.6;
            font-size: 0.92rem;
        }

        .billing-upload-area {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.6rem;
            margin-bottom: 1.25rem;
        }

        .billing-file-label {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.65rem 1.2rem;
            background: #f8fafc;
            border: 2px dashed #cbd5e1;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            color: #1e3a8a;
            font-size: 0.9rem;
            transition: border-color 0.2s, background 0.2s;
        }
        .billing-file-label:hover {
            border-color: #3b82f6;
            background: #eff6ff;
        }

        .billing-file-icon { font-size: 1.2rem; }

        .billing-file-input { display: none; }

        .billing-file-name {
            font-size: 0.82rem;
            color: #6b7280;
            font-style: italic;
        }

        .billing-analyze-btn {
            padding: 0.65rem 1.5rem;
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            font-size: 0.9rem;
            box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
            transition: all 0.2s;
        }
        .billing-analyze-btn:hover { transform: translateY(-1px); }

        .billing-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 3rem;
            color: #6b7280;
        }

        .billing-spinner {
            width: 38px;
            height: 38px;
            border: 4px solid #e5e7eb;
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: billing-spin 0.75s linear infinite;
        }
        @keyframes billing-spin { to { transform: rotate(360deg); } }

        .billing-preview-summary {
            margin: 0 0 0.75rem;
            color: #374151;
            font-size: 0.9rem;
        }

        .billing-table-wrap {
            max-height: 380px;
            overflow-y: auto;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            margin-bottom: 1.25rem;
        }

        .billing-preview-tbl {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.82rem;
        }
        .billing-preview-tbl th {
            position: sticky;
            top: 0;
            background: #f1f5f9;
            padding: 0.45rem 0.7rem;
            text-align: left;
            font-weight: 700;
            border-bottom: 1px solid #e5e7eb;
            color: #1e3a8a;
            white-space: nowrap;
        }
        .billing-preview-tbl td {
            padding: 0.35rem 0.7rem;
            border-bottom: 1px solid #f3f4f6;
            vertical-align: middle;
        }
        .billing-preview-tbl tr:last-child td { border-bottom: none; }
        .billing-preview-tbl tr:hover td { background: #f9fafb; }

        .billing-vin {
            font-family: 'SFMono-Regular', 'Consolas', monospace;
            font-size: 0.78rem;
            letter-spacing: 0.02em;
        }
        .billing-code {
            font-family: 'SFMono-Regular', 'Consolas', monospace;
            font-size: 0.78rem;
            color: #9ca3af;
        }

        .billing-preview-actions {
            text-align: right;
        }

        .billing-import-confirm-btn {
            padding: 0.7rem 2rem;
            background: linear-gradient(135deg, #065f46, #10b981);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            font-size: 0.95rem;
            box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
            transition: all 0.2s;
        }
        .billing-import-confirm-btn:hover:not(:disabled) { transform: translateY(-1px); }
        .billing-import-confirm-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .billing-success {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            padding: 2.5rem 1rem;
            text-align: center;
        }
        .billing-success-icon { font-size: 3rem; }
        .billing-success h3 { margin: 0; color: #065f46; font-size: 1.1rem; }

        .billing-errors {
            color: #dc2626;
            font-size: 0.83rem;
            max-width: 540px;
        }

        .billing-new-btn {
            margin-top: 0.5rem;
            padding: 0.55rem 1.2rem;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 7px;
            cursor: pointer;
            font-size: 0.85rem;
            color: #374151;
            transition: background 0.2s;
        }
        .billing-new-btn:hover { background: #eff6ff; }