        * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                -webkit-tap-highlight-color: transparent;
                -ms-overflow-style: none;
                scrollbar-width: none;
        }

        *::-webkit-scrollbar {
                display: none;
        }

        html,
        body {
                height: 100%;
                width: 100%;
                overflow: hidden;
                margin: 0;
                padding: 0;
        }

        body {
                font-family: 'Outfit', sans-serif;
                background: var(--bg-primary);
                color: var(--text-primary);
                transition: background 0.3s, color 0.3s;
        }

        .app-container {
                max-width: 500px;
                margin: 0 auto;
                height: 100%;
                display: flex;
                flex-direction: column;
                padding-top: var(--safe-top);
        }

        .header {
                flex-shrink: 0;
                position: relative;
                z-index: 100;
                padding: 10px 10px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                background: var(--header-bg);
                backdrop-filter: blur(20px);
                border-bottom: 1px solid var(--border);
                overflow: hidden;
        }

        .header-logo {
                font-family: 'Inter', -apple-system, sans-serif;
                font-size: 1.4rem;
                font-weight: 700;
                color: var(--text-primary);
                letter-spacing: -0.5px;
                cursor: pointer;
        }

        .header-logo span {
                color: var(--accent);
        }

        .nav-tabs {
                flex-shrink: 0;
                display: flex;
                padding: 10px;
                gap: 8px;
                overflow-x: auto;
                scrollbar-width: none;
        }

        .nav-close-btn {
                margin-left: auto;
                width: 32px;
                height: 32px;
                background: var(--bg-elevated);
                border: none;
                color: var(--text-secondary);
                cursor: pointer;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
        }

        .nav-close-btn:hover {
                background: var(--border);
                color: var(--text-primary);
        }

        .main-content {
                flex: 1;
                min-height: 0;
                overflow-y: auto;
                overflow-x: hidden;
                padding: 0 10px 100px 10px;
                -webkit-overflow-scrolling: touch;
        }

        .loader-overlay {
                position: fixed;
                inset: 0;
                background: rgba(25, 25, 25, 0.8);
                display: none;
                align-items: center;
                justify-content: center;
                z-index: 9999;
        }

        .loader-overlay.show {
                display: flex;
        }

        .loader {
                width: 40px;
                height: 40px;
                border: 3px solid var(--border);
                border-top-color: var(--text-primary);
                border-radius: 50%;
                animation: spin 0.8s linear infinite;
        }

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

        .spinner-small {
                width: 18px;
                height: 18px;
                border: 2px solid rgba(255,255,255,0.3);
                border-top-color: white;
                border-radius: 50%;
                animation: spin 0.8s linear infinite;
        }

        .sync-status {
                position: fixed;
                top: 10px;
                right: 60px;
                padding: 6px 12px;
                border-radius: 20px;
                font-size: 0.7rem;
                font-weight: 500;
                z-index: 1000;
                display: flex;
                align-items: center;
                gap: 6px;
                opacity: 0;
                transition: opacity 0.3s;
                pointer-events: none;
        }

        .sync-status.show {
                opacity: 1;
        }

        .sync-status.success {
                background: var(--notion-green);
                color: var(--notion-green-text);
        }

        .sync-status.error {
                background: var(--notion-red);
                color: var(--notion-red-text);
        }

        .sync-status.syncing {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
        }

        .sync-dot {
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: currentColor;
        }

        .sync-status.syncing .sync-dot {
                animation: pulse 1s infinite;
        }

        @keyframes pulse {

                0%,
                100% {
                        opacity: 1;
                }

                50% {
                        opacity: 0.3;
                }
        }

        /* Menu 3 points */
        .menu-container {
                position: relative;
        }

        .menu-btn,
        .header-icon-btn {
                background: none;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                padding: 8px;
                border-radius: 8px;
                transition: all 0.2s;
        }

        .menu-btn:hover,
        .header-icon-btn:hover {
                background: var(--bg-elevated);
        }

        .menu-dropdown {
                position: absolute;
                top: 100%;
                right: 0;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                min-width: 200px;
                box-shadow: var(--shadow-card);
                display: none;
                overflow: hidden;
                z-index: 200;
        }

        .menu-dropdown.show {
                display: block;
        }

        .menu-item {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 14px 16px;
                color: var(--text-primary);
                font-size: 14px;
                cursor: pointer;
                transition: all 0.2s;
                border: none;
                background: none;
                width: 100%;
                text-align: left;
        }

        .menu-item:hover {
                background: var(--bg-elevated);
        }

        .menu-item svg {
                width: 18px;
                height: 18px;
                stroke: currentColor;
                fill: none;
        }

        .menu-divider {
                height: 1px;
                background: var(--border);
                margin: 4px 0;
        }

        .menu-user {
                padding: 14px 16px;
                border-bottom: 1px solid var(--border);
        }

        .menu-user-name {
                font-weight: 600;
                font-size: 14px;
        }

        .menu-user-role {
                font-size: 12px;
                color: var(--text-secondary);
        }

        /* Theme Bottom Sheet */
        .theme-modal-overlay {
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.3);
                display: none;
                align-items: flex-end;
                justify-content: center;
                z-index: 9999;
        }

        .theme-modal-overlay.show {
                display: flex;
        }

        .theme-modal {
                background: var(--bg-card);
                border-radius: 24px 24px 0 0;
                width: 100%;
                max-width: 500px;
                max-height: 85vh;
                overflow: hidden;
                box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
                animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
                from {
                        opacity: 0;
                        transform: translateY(100%);
                }

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

        .theme-modal-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 16px 20px;
                border-bottom: 1px solid var(--border);
                position: relative;
        }

        .theme-modal-handle {
                width: 36px;
                height: 4px;
                background: var(--border);
                border-radius: 2px;
                position: absolute;
                top: 8px;
                left: 50%;
                transform: translateX(-50%);
        }

        .theme-modal-header h3 {
                font-size: 17px;
                font-weight: 600;
                color: var(--text-primary);
                margin: 0;
        }

        .theme-modal-close {
                width: 32px;
                height: 32px;
                border: none;
                background: var(--bg-elevated);
                border-radius: 50%;
                font-size: 18px;
                color: var(--text-secondary);
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
        }

        .theme-modal-close:hover {
                background: var(--bg-primary);
                color: var(--text-primary);
        }

        .theme-modal-body {
                padding: 20px;
                overflow-y: auto;
                max-height: calc(85vh - 60px);
        }

        .theme-modal-label {
                font-size: 13px;
                font-weight: 600;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: 1px;
                display: block;
                margin-bottom: 16px;
                margin-top: 12px;
        }

        .theme-modal-label:first-child {
                margin-top: 0;
        }

        .theme-grid {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 4px;
                margin-bottom: 10px;
        }

        .theme-card {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 3px;
                cursor: pointer;
                padding: 4px 2px;
                border-radius: 10px;
                transition: all 0.2s;
                border: 2px solid transparent;
        }

        .theme-card:hover {
                transform: scale(1.02);
        }

        .theme-card.active {
                border-color: var(--accent);
        }

        .theme-color {
                width: 52px;
                height: 52px;
                border-radius: 12px;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        .theme-name {
                font-size: 9px;
                font-weight: 500;
                text-align: center;
                font-family: 'Outfit', sans-serif;
        }

        /* Thèmes clairs → texte noir */
        [data-theme="light"] .theme-name,
        [data-theme="zen-pastel"] .theme-name,
        [data-theme="the-vert"] .theme-name,
        [data-theme="ciel-doux"] .theme-name,
        [data-theme="lavande-douce"] .theme-name,
        [data-theme="rose-poudre"] .theme-name,
        [data-theme="malibu"] .theme-name,
        [data-theme="terre-douce"] .theme-name {
                color: #333;
        }

        /* Thèmes sombres → texte blanc */
        [data-theme="dark"] .theme-name,
        [data-theme="ocean-nuit"] .theme-name,
        [data-theme="foret-profonde"] .theme-name,
        [data-theme="nuit-lavande"] .theme-name {
                color: #fff;
        }

        .theme-card.active .theme-name {
                font-weight: 700;
        }

        .logo {
                font-weight: 700;
                font-size: 1.5rem;
                display: flex;
                align-items: center;
                gap: 10px;
        }

        .logo-icon {
                width: 36px;
                height: 36px;
                background: var(--text-primary);
                border-radius: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .logo-icon svg {
                width: 22px;
                height: 22px;
                stroke: var(--bg-primary);
                fill: none;
        }

        .logo-text {
                color: var(--text-primary);
        }

        .header-actions {
                display: flex;
                gap: 8px;
        }

        .theme-toggle,
        .cart-btn {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 10px;
                padding: 10px 14px;
                color: var(--text-primary);
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 6px;
                transition: all 0.2s;
        }

        .theme-toggle:hover,
        .cart-btn:hover {
                border-color: var(--border-hover);
                background: var(--bg-elevated);
        }

        .cart-btn {
                position: relative;
        }

        .cart-badge {
                position: absolute;
                top: -5px;
                right: -5px;
                background: var(--notion-red);
                color: var(--notion-red-text);
                font-size: 0.65rem;
                font-weight: 700;
                width: 18px;
                height: 18px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        /* Navigation avec couleurs Notion */
        .nav-tabs::-webkit-scrollbar {
                display: none;
        }

        .nav-tab {
                flex-shrink: 0;
                padding: 10px 18px;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 25px;
                color: var(--text-secondary);
                font-family: 'Outfit', sans-serif;
                font-size: 0.85rem;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s;
                white-space: nowrap;
        }

        .nav-tab:nth-child(1).active {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                border-color: transparent;
        }

        .nav-tab:nth-child(2).active {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
                border-color: transparent;
        }

        .nav-tab:nth-child(3).active {
                background: var(--notion-green);
                color: var(--notion-green-text);
                border-color: transparent;
        }

        .nav-tab:hover:not(.active) {
                border-color: var(--border-hover);
                color: var(--text-primary);
        }

        .section {
                display: none;
        }

        .section.active {
                display: block;
        }

        /* Section Journal avec scroll uniquement sur la liste */
        #journal.section.active {
                display: flex;
                flex-direction: column;
                height: calc(100vh - 70px);
                overflow: hidden;
        }

        #journal .dashboard-greeting,
        #journal .journal-period-row,
        #journal .payment-cards-accordion,
        #journal .search-bar-with-action,
        #journal .search-bar,
        #journal .date-filter-label {
                flex-shrink: 0;
        }

        #journal-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                min-height: 0;
        }

        #journal-list {
                flex: 1;
                overflow-y: scroll !important;
                -webkit-overflow-scrolling: touch;
                min-height: 0;
        }

        /* Désactiver le scroll du main-content quand journal actif */
        .main-content:has(#journal.section.active) {
                overflow: hidden;
        }

        @keyframes fadeIn {
                from {
                        opacity: 0;
                        transform: translateY(10px);
                }

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

        .card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                overflow: hidden;
                box-shadow: var(--shadow-card);
        }

        .card-header {
                padding: 12px 14px;
                border-bottom: 1px solid var(--border);
        }

        .card-header h2 {
                font-size: 1.1rem;
                font-weight: 600;
                display: flex;
                align-items: center;
                gap: 10px;
        }

        .card-header h2 .icon {
                width: 28px;
                height: 28px;
                background: var(--notion-blue);
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .card-header h2 .icon svg {
                width: 16px;
                height: 16px;
                stroke: var(--notion-blue-text);
        }

        .card-header p {
                font-size: 0.8rem;
                color: var(--text-secondary);
                margin-top: 4px;
        }

        .card-body {
                padding: 12px 14px;
        }

        #qr-reader {
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
        }

        #qr-reader video {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                border-radius: 0 !important;
        }

        #qr-reader__dashboard {
                display: none !important;
        }

        #qr-reader__scan_region {
                width: 100% !important;
                height: 100% !important;
                min-height: 100% !important;
        }

        #qr-reader__scan_region>img {
                display: none !important;
        }

        #qr-shaded-region {
                display: none !important;
        }

        /* Scanner Viewfinder */
        .scanner-video-container {
                position: relative;
                width: 100%;
                height: 100%;
                background: #000;
                overflow: hidden;
        }

        #qr-reader {
                width: 100% !important;
                height: 100% !important;
        }

        #qr-reader video {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
        }

        #qr-reader__scan_region {
                min-height: 100% !important;
        }

        #qr-reader__dashboard {
                display: none !important;
        }

        .scanner-overlay {
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                pointer-events: none;
        }

        .scanner-viewfinder {
                width: 300px;
                height: 150px;
                position: relative;
        }

        .scanner-corner {
                position: absolute;
                width: 30px;
                height: 30px;
                border-color: #FF9500;
                border-style: solid;
                border-width: 0;
                transition: border-color 0.2s;
        }

        .scanner-corner.top-left {
                top: 0;
                left: 0;
                border-top-width: 4px;
                border-left-width: 4px;
                border-top-left-radius: 12px;
        }

        .scanner-corner.top-right {
                top: 0;
                right: 0;
                border-top-width: 4px;
                border-right-width: 4px;
                border-top-right-radius: 12px;
        }

        .scanner-corner.bottom-left {
                bottom: 0;
                left: 0;
                border-bottom-width: 4px;
                border-left-width: 4px;
                border-bottom-left-radius: 12px;
        }

        .scanner-corner.bottom-right {
                bottom: 0;
                right: 0;
                border-bottom-width: 4px;
                border-right-width: 4px;
                border-bottom-right-radius: 12px;
        }

        .scanner-viewfinder.detecting .scanner-corner {
                border-color: #22C55E;
                animation: pulseGreen 0.5s ease infinite;
        }

        @keyframes pulseGreen {

                0%,
                100% {
                        border-color: #22C55E;
                }

                50% {
                        border-color: #4ADE80;
                }
        }

        .scanner-line {
                position: absolute;
                left: 10%;
                width: 80%;
                height: 2px;
                background: linear-gradient(90deg, transparent, #FF9500, transparent);
                top: 50%;
                animation: scanLine 2s ease-in-out infinite;
        }

        .scanner-viewfinder.detecting .scanner-line {
                background: linear-gradient(90deg, transparent, #22C55E, transparent);
        }

        @keyframes scanLine {

                0%,
                100% {
                        top: 20%;
                        opacity: 0.5;
                }

                50% {
                        top: 80%;
                        opacity: 1;
                }
        }

        .scanner-hint {
                text-align: center;
                margin-top: 12px;
                font-size: 0.8rem;
                color: var(--text-secondary);
        }

        .manual-entry {
                margin-top: 16px;
                padding-top: 16px;
                border-top: 1px solid var(--border);
        }

        .manual-entry-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                margin-bottom: 10px;
                display: block;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                font-weight: 500;
        }

        .input-group {
                display: flex;
                gap: 10px;
        }

        input,
        select,
        textarea {
                font-family: 'Outfit', sans-serif;
                font-size: 0.95rem;
                padding: 14px 16px;
                background: var(--bg-input);
                border: 1px solid var(--border);
                border-radius: 10px;
                color: var(--text-primary);
                transition: all 0.2s;
                width: 100%;
        }

        input:focus,
        select:focus,
        textarea:focus {
                outline: none;
                border-color: var(--accent);
        }

        input::placeholder,
        textarea::placeholder {
                color: var(--text-muted);
        }

        textarea {
                resize: vertical;
                min-height: 60px;
        }

        .btn {
                font-family: 'Outfit', sans-serif;
                font-size: 0.9rem;
                font-weight: 600;
                padding: 14px 20px;
                border-radius: 10px;
                border: none;
                cursor: pointer;
                transition: all 0.2s;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
        }

        .btn-primary {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                width: 100%;
        }

        .btn-primary:hover {
                filter: brightness(1.1);
                transform: translateY(-1px);
        }

        .btn-primary:disabled {
                opacity: 0.5;
                cursor: not-allowed;
                transform: none;
        }

        .btn-secondary {
                background: var(--bg-elevated);
                color: var(--text-primary);
                border: 1px solid var(--border);
                width: 100%;
        }

        .btn-secondary:hover {
                border-color: var(--border-hover);
        }

        .btn-danger {
                background: var(--notion-red);
                color: var(--notion-red-text);
                border: none;
                width: 100%;
        }

        .btn-danger:hover {
                filter: brightness(1.1);
        }

        .confirm-delete-icon {
                width: 60px;
                height: 60px;
                margin: 0 auto 16px;
                background: var(--notion-red);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .confirm-delete-icon svg {
                width: 28px;
                height: 28px;
                stroke: var(--notion-red-text);
        }

        .confirm-delete-title {
                font-size: 1.1rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 8px;
        }

        .confirm-delete-text {
                font-size: 0.85rem;
                color: var(--text-secondary);
                margin-bottom: 20px;
        }

        .confirm-delete-actions {
                display: flex;
                gap: 10px;
        }

        .confirm-delete-actions .btn {
                flex: 1;
        }

        @keyframes spin {
                from {
                        transform: rotate(0deg);
                }

                to {
                        transform: rotate(360deg);
                }
        }

        .spinning svg {
                animation: spin 0.5s linear infinite;
        }

        .header-logo.spinning {
                animation: pulse 0.5s ease-in-out;
        }

        @keyframes pulse {
                0%, 100% { opacity: 1; transform: scale(1); }
                50% { opacity: 0.6; transform: scale(0.95); }
        }

        .btn-sm {
                padding: 10px 16px;
                font-size: 0.8rem;
        }

        /* Switch Pro/Particulier */
        .pro-switch-container {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                padding: 16px;
                background: var(--bg-elevated);
                border-radius: 12px;
                margin-bottom: 20px;
        }

        .pro-switch-label {
                font-size: 0.85rem;
                color: var(--text-secondary);
                transition: color 0.3s;
        }

        .pro-switch-label.pro-label {
                color: var(--text-secondary);
        }

        .pro-switch-container:has(input:checked) .pro-switch-label:first-of-type {
                color: var(--text-secondary);
        }

        .pro-switch-container:has(input:checked) .pro-label {
                color: var(--notion-blue-text);
                font-weight: 600;
        }

        .pro-switch-container:has(input:not(:checked)) .pro-switch-label:first-of-type {
                color: var(--notion-green-text);
                font-weight: 600;
        }

        .pro-switch {
                position: relative;
                width: 50px;
                height: 28px;
        }

        .pro-switch input {
                opacity: 0;
                width: 0;
                height: 0;
        }

        .pro-switch-slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: var(--notion-green);
                border-radius: 28px;
                transition: 0.3s;
        }

        .pro-switch-slider:before {
                position: absolute;
                content: "";
                height: 22px;
                width: 22px;
                left: 3px;
                bottom: 3px;
                background: white;
                border-radius: 50%;
                transition: 0.3s;
        }

        .pro-switch input:checked+.pro-switch-slider {
                background: var(--notion-blue-text);
        }

        .pro-switch input:checked+.pro-switch-slider:before {
                transform: translateX(22px);
        }

        .form-section {
                margin-bottom: 16px;
        }

        .form-section-title {
                font-size: 0.75rem;
                font-weight: 600;
                color: var(--notion-blue-text);
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin: 20px 0 12px;
                padding-bottom: 8px;
                border-bottom: 1px solid var(--border);
        }

        .required {
                color: var(--notion-red-text);
        }

        .modal-actions {
                display: flex;
                gap: 10px;
                margin-top: 20px;
                padding-top: 16px;
                border-top: 1px solid var(--border);
        }

        .modal-actions .btn {
                flex: 1;
        }

        .form-group {
                margin-bottom: 14px;
        }

        .form-group label {
                display: block;
                font-size: 0.7rem;
                color: var(--text-secondary);
                margin-bottom: 6px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                font-weight: 600;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
                width: 100%;
                padding: 12px 14px;
                font-size: 15px;
                background: var(--bg-input);
                border: 1px solid var(--border);
                border-radius: 10px;
                color: var(--text-primary);
                box-sizing: border-box;
        }

        .form-group select {
                height: 46px;
                appearance: none;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9b9b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: right 12px center;
                padding-right: 36px;
        }

        .form-group textarea {
                min-height: 70px;
                resize: vertical;
        }

        /* Champ obligatoire non rempli - effet néon rouge vif */
        .form-group input.input-error,
        .form-group select.input-error,
        .form-group textarea.input-error {
                border: 2px solid #ff4757 !important;
                box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.25), 0 0 20px rgba(255, 71, 87, 0.5);
                animation: neon-pulse-error 1s ease-in-out infinite;
        }

        @keyframes neon-pulse-error {
                0%, 100% {
                        box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.25), 0 0 20px rgba(255, 71, 87, 0.5);
                }
                50% {
                        box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.4), 0 0 30px rgba(255, 71, 87, 0.7);
                }
        }

        .form-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 12px;
        }

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

        .form-row .form-group {
                margin-bottom: 14px;
        }

        /* Switch toggle */
        .switch {
                position: relative;
                display: inline-block;
                width: 40px;
                height: 22px;
        }
        .switch input {
                opacity: 0;
                width: 0;
                height: 0;
        }
        .switch .slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: var(--border);
                transition: 0.2s;
                border-radius: 22px;
        }
        .switch .slider:before {
                position: absolute;
                content: "";
                height: 16px;
                width: 16px;
                left: 3px;
                bottom: 3px;
                background-color: white;
                transition: 0.2s;
                border-radius: 50%;
        }
        .switch input:checked + .slider {
                background-color: var(--accent);
        }
        .switch input:checked + .slider:before {
                transform: translateX(18px);
        }

        /* Switch dark mode */
        [data-theme="dark"] .switch .slider {
                background-color: #444;
        }
        [data-theme="dark"] .switch .slider:before {
                background-color: #888;
        }
        [data-theme="dark"] .switch input:checked + .slider {
                background-color: var(--accent);
        }
        [data-theme="dark"] .switch input:checked + .slider:before {
                background-color: #1a1a1a;
        }

        /* Disabled row styling */
        .form-row.disabled {
                opacity: 0.4;
                pointer-events: none;
        }

        .modal-overlay {
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.7);
                backdrop-filter: blur(4px);
                display: none;
                align-items: flex-end;
                justify-content: center;
                z-index: 1000;
                padding: 0;
                overflow: hidden;
        }

        .modal-overlay.show {
                display: flex;
        }

        .modal {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 20px 20px 0 0;
                width: 100%;
                max-width: 500px;
                max-height: 92vh;
                overflow-y: auto;
                overflow-x: hidden;
                box-shadow: var(--shadow-card);
                animation: modalSlideUp 0.3s ease-out;
        }

        @keyframes modalSlideUp {
                from {
                        opacity: 0;
                        transform: translateY(100%);
                }

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

        .modal-header {
                padding: 14px 16px;
                border-bottom: 1px solid var(--border);
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: sticky;
                top: 0;
                background: var(--bg-card);
                z-index: 10;
        }

        .modal-header h3 {
                font-size: 1rem;
                font-weight: 600;
        }

        .modal-header-actions {
                display: flex;
                align-items: center;
                gap: 8px;
        }

        .modal-edit-btn,
        .modal-delete-btn {
                width: 32px;
                height: 32px;
                border: none;
                background: transparent;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s;
                color: var(--text-secondary);
        }

        .modal-edit-btn:hover {
                background: var(--bg-elevated);
                color: var(--text-primary);
        }

        .modal-delete-btn:hover {
                background: rgba(239, 68, 68, 0.1);
                color: #ef4444;
        }

        .modal-body {
                padding: 16px;
                overflow-x: hidden;
        }

        .invoice-modal-fullscreen {
                position: fixed;
                inset: 0;
                max-width: 100%;
                max-height: 100%;
                width: 100%;
                height: 100%;
                border-radius: 0;
                display: flex;
                flex-direction: column;
        }

        #invoice-modal {
                padding: 0;
        }

        #invoice-modal .modal-header {
                position: sticky;
                top: 0;
                z-index: 10;
                background: var(--bg-card);
        }

        /* Scanner Fullscreen */
        #scanner.section.active {
                position: fixed;
                inset: 0;
                z-index: 500;
                background: #000;
                display: flex;
                flex-direction: column;
                padding: 0;
                margin: 0;
        }

        .scanner-fullscreen-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: calc(12px + var(--safe-top, 0px)) 16px 12px 16px;
                background: rgba(0, 0, 0, 0.9);
                color: white;
                min-height: 50px;
        }

        .scanner-fullscreen-header h3 {
                font-size: 16px;
                font-weight: 600;
        }

        .scanner-close-btn {
                background: rgba(255, 255, 255, 0.2);
                border: none;
                color: white;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                font-size: 24px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .scanner-fullscreen-body {
                flex: 1;
                position: relative;
                display: flex;
                flex-direction: column;
                overflow: hidden;
                min-height: 0;
        }

        .scanner-video-container {
                flex: 1;
                position: relative;
                overflow: hidden;
                background: #000;
                min-height: 0;
        }

        .scanner-video-container video {
                width: 100%;
                height: 100%;
                object-fit: cover;
        }

        .scanner-controls {
                padding: 16px 16px calc(20px + var(--safe-bottom, 0px)) 16px;
                background: rgba(0, 0, 0, 0.95);
                flex-shrink: 0;
        }

        /* Switch 3 options */
        .scanner-switch {
                display: flex;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 25px;
                padding: 4px;
                margin-bottom: 12px;
        }

        .scanner-switch-option {
                flex: 1;
                padding: 10px 8px;
                text-align: center;
                font-size: 12px;
                font-weight: 600;
                color: rgba(255, 255, 255, 0.6);
                border-radius: 20px;
                cursor: pointer;
                transition: all 0.3s;
                border: none;
                background: none;
        }

        .scanner-switch-option.active {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
        }

        .scanner-manual-input {
                display: none;
                margin-top: 12px;
        }

        .scanner-manual-input.show {
                display: flex;
                gap: 10px;
        }

        .scanner-manual-input input {
                flex: 1;
                padding: 12px 16px;
                border-radius: 12px;
                border: none;
                background: rgba(255, 255, 255, 0.1);
                color: white;
                font-size: 16px;
        }

        .scanner-manual-input input::placeholder {
                color: rgba(255, 255, 255, 0.4);
        }

        .scanner-manual-input button {
                padding: 12px 24px;
                border-radius: 12px;
                border: none;
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                font-weight: 600;
                cursor: pointer;
        }

        .scanner-status-bar {
                text-align: center;
                padding: 8px;
                color: rgba(255, 255, 255, 0.7);
                font-size: 13px;
        }

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

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

        .modal-close {
                background: none;
                border: none;
                color: var(--text-secondary);
                font-size: 1.5rem;
                cursor: pointer;
                padding: 4px 8px;
                line-height: 1;
                border-radius: 8px;
                transition: all 0.2s;
        }

        .modal-close:hover {
                color: #DC2626;
                background: rgba(220, 38, 38, 0.1);
        }

        /* Global lighter font-weight for all list cards */
        .product-card,
        .product-card *,
        .client-card,
        .client-card *,
        .journal-card,
        .journal-card *,
        .stat-card,
        .stat-card *,
        .journal-stat,
        .journal-stat *,
        .journal-period-card,
        .journal-period-card * {
                font-weight: lighter !important;
        }

        .product-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 14px;
                padding: 14px 16px;
                margin-bottom: 10px;
                transition: all 0.2s;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
        }

        .product-card:hover {
                background: var(--bg-elevated);
        }

        .product-info {
                flex: 1;
                min-width: 0;
        }

        .product-name {
                font-size: 1rem;
                font-weight: 300;
                color: var(--text-primary);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                margin-bottom: 4px;
        }

        .product-meta {
                display: flex;
                align-items: center;
                gap: 10px;
        }

        .product-code {
                font-family: 'JetBrains Mono', monospace;
                font-size: 0.75rem;
                color: var(--text-muted);
        }

        .product-stock {
                font-size: 0.75rem;
                color: var(--text-secondary);
        }

        .product-price {
                font-size: 1.1rem;
                font-weight: 300;
                color: var(--text-primary);
                white-space: nowrap;
        }

        .product-right {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 6px;
        }

        .product-category-badge {
                font-size: 0.7rem;
                font-weight: 500;
                padding: 3px 8px;
                border-radius: 10px;
                white-space: nowrap;
        }

        .held-cart-actions-inline {
                display: flex;
                gap: 6px;
        }

        .held-cart-actions-inline .btn-cart {
                width: 36px;
                height: 36px;
        }

        .held-cart-actions-inline .btn-cart svg {
                width: 18px;
                height: 18px;
        }

        .stats-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
                margin-bottom: 20px;
        }

        .stat-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                padding: 14px;
                text-align: center;
        }

        .stat-value {
                font-size: 1.3rem;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 4px;
        }

        .stat-label {
                font-size: 0.65rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.5px;
                font-weight: 500;
        }

        .search-bar {
                margin-bottom: 20px;
                position: relative;
        }

        .search-bar input {
                padding-left: 44px;
        }

        .search-bar svg {
                position: absolute;
                left: 16px;
                top: 50%;
                transform: translateY(-50%);
                width: 18px;
                height: 18px;
                stroke: var(--text-muted);
        }

        .search-bar-with-action {
                display: flex;
                gap: 10px;
                align-items: center;
                margin-bottom: 12px;
        }

        .search-bar-with-action .search-bar {
                margin-bottom: 0;
        }

        .journal-devis-filter {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 13px;
                color: var(--text-secondary);
                white-space: nowrap;
        }

        .calendar-btn {
                width: 48px;
                height: 48px;
                border-radius: 12px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s;
                flex-shrink: 0;
        }

        .calendar-btn:hover {
                background: var(--bg-elevated);
                border-color: var(--border-hover);
        }

        [data-theme="dark"] .calendar-btn:hover {
                background: #000000;
                border-color: transparent;
        }

        .calendar-btn.active {
                background: var(--accent);
                border-color: transparent;
                color: var(--accent-contrast);
        }

        .calendar-btn.active svg {
                stroke: var(--accent-contrast);
        }

        [data-theme="dark"] .calendar-btn.active {
                background: #000000;
                color: #ffffff;
        }

        [data-theme="dark"] .calendar-btn.active svg {
                stroke: #ffffff;
        }

        .calendar-btn svg {
                width: 22px;
                height: 22px;
                stroke: var(--text-primary);
        }

        .date-filter-label {
                font-size: 0.8rem;
                color: var(--text-secondary);
                margin-bottom: 12px;
                padding: 8px 12px;
                background: var(--notion-orange);
                border-radius: 8px;
                display: inline-flex;
                align-items: center;
        }

        /* Calendar Modal */
        .calendar-container {
                padding: 0;
        }

        .calendar-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 16px;
        }

        .calendar-header h4 {
                font-size: 1rem;
                font-weight: 600;
                color: var(--text-primary);
                margin: 0;
        }

        .calendar-nav {
                display: flex;
                gap: 8px;
        }

        .calendar-nav button {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .calendar-nav button:hover {
                background: var(--bg-elevated);
        }

        .calendar-nav button svg {
                width: 18px;
                height: 18px;
                stroke: var(--text-primary);
        }

        .calendar-nav-btn {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .calendar-nav-btn:hover {
                background: var(--bg-elevated);
        }

        .calendar-nav-btn svg {
                width: 18px;
                height: 18px;
                stroke: var(--text-primary);
        }

        .calendar-weekdays {
                display: grid;
                grid-template-columns: repeat(7, 1fr);
                gap: 4px;
                margin-bottom: 8px;
        }

        .calendar-weekday {
                text-align: center;
                font-size: 0.7rem;
                font-weight: 600;
                color: var(--text-muted);
                padding: 8px 0;
        }

        .calendar-days {
                display: grid;
                grid-template-columns: repeat(7, 1fr);
                gap: 4px;
        }

        .calendar-day {
                aspect-ratio: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 8px;
                font-size: 0.85rem;
                cursor: pointer;
                transition: all 0.2s;
                background: var(--bg-card);
                border: 1px solid var(--border);
        }

        .calendar-day:hover {
                background: var(--bg-elevated);
        }

        .calendar-day.other-month {
                color: var(--text-muted);
                opacity: 0.5;
        }

        .calendar-day.today {
                border-color: var(--accent);
                color: var(--accent);
                font-weight: 600;
        }

        .calendar-day.selected {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                border-color: transparent;
                font-weight: 600;
        }

        .calendar-day.has-sales {
                position: relative;
        }

        .calendar-day.has-sales::after {
                content: '';
                position: absolute;
                bottom: 4px;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: var(--notion-green-text);
        }

        .calendar-day.has-rdv {
                position: relative;
        }

        .calendar-day.has-rdv::after {
                content: '';
                position: absolute;
                bottom: 4px;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: var(--notion-orange-text);
        }

        .calendar-day.in-range {
                background: var(--notion-blue);
                opacity: 0.5;
                border-color: transparent;
        }

        .calendar-day.range-start,
        .calendar-day.range-end {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                border-color: transparent;
                font-weight: 600;
                opacity: 1;
        }

        .calendar-range-info {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
                padding: 10px 12px;
                background: var(--bg-elevated);
                border-radius: 8px;
                font-size: 0.85rem;
                color: var(--text-secondary);
        }

        .calendar-actions {
                display: flex;
                gap: 10px;
                margin-top: 16px;
                padding-top: 16px;
                border-top: 1px solid var(--border);
        }

        .calendar-actions .btn {
                flex: 1;
        }

        .space-grid {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
                margin-bottom: 20px;
        }

        .space-zone {
                aspect-ratio: 1;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s;
                padding: 8px;
        }

        .space-zone:hover {
                transform: scale(1.02);
                filter: brightness(1.1);
        }

        .space-zone.zone-empty {
                background: var(--notion-gray);
        }

        .space-zone.zone-gray {
                background: var(--notion-gray);
        }

        .space-zone.zone-brown {
                background: var(--notion-brown);
        }

        .space-zone.zone-orange {
                background: var(--notion-orange);
        }

        .space-zone.zone-purple {
                background: var(--notion-purple);
        }

        .space-zone.zone-green {
                background: var(--notion-green);
        }

        .space-zone.zone-blue {
                background: var(--notion-blue);
        }

        .space-zone.zone-red {
                background: var(--notion-red);
        }

        .space-zone.zone-pink {
                background: var(--notion-pink);
        }

        .space-zone-id {
                font-family: 'JetBrains Mono', monospace;
                font-size: 0.8rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 2px;
        }

        .space-zone-name {
                font-size: 0.55rem;
                color: var(--text-secondary);
                text-align: center;
                line-height: 1.2;
        }

        .space-zone-stats {
                display: flex;
                gap: 8px;
                align-items: center;
                margin-top: 4px;
        }

        .space-zone-products {
                font-size: 0.65rem;
                color: var(--text-primary);
                font-weight: 500;
                display: flex;
                align-items: center;
                gap: 2px;
        }

        .space-zone-sales {
                font-size: 0.65rem;
                color: var(--text-secondary);
                display: flex;
                align-items: center;
                gap: 2px;
        }

        .cart-items {
                max-height: 300px;
                overflow-y: auto;
        }

        .cart-item {
                padding: 14px 18px;
                border-bottom: 1px solid var(--border);
                display: flex;
                justify-content: space-between;
                align-items: center;
        }

        .cart-item-info h4 {
                font-size: 0.95rem;
                font-weight: 500;
                margin-bottom: 4px;
        }

        .cart-item-info p {
                font-size: 0.75rem;
                color: var(--text-secondary);
                font-family: 'JetBrains Mono', monospace;
        }

        .cart-item-actions {
                display: flex;
                align-items: center;
                gap: 8px;
        }

        .cart-item-price {
                font-weight: 700;
                color: var(--accent);
                min-width: 70px;
                text-align: right;
        }

        .cart-item-remove {
                background: none;
                border: none;
                color: #DC2626;
                cursor: pointer;
                padding: 6px;
                font-size: 1.2rem;
                border-radius: 6px;
                transition: background 0.2s;
        }

        .cart-item-remove:hover {
                background: rgba(220, 38, 38, 0.1);
        }

        .qty-controls {
                display: flex;
                align-items: center;
                gap: 0;
                background: var(--bg-elevated);
                border-radius: 8px;
                overflow: hidden;
        }

        .qty-btn {
                background: none;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                padding: 8px 12px;
                font-size: 1rem;
                font-weight: 600;
                transition: background 0.2s;
        }

        .qty-btn:hover {
                background: var(--accent);
                color: var(--accent-contrast);
        }

        .qty-btn:disabled {
                opacity: 0.3;
                cursor: not-allowed;
        }

        .qty-btn:disabled:hover {
                background: none;
                color: var(--text-primary);
        }

        .qty-value {
                padding: 8px 12px;
                font-weight: 600;
                font-size: 0.9rem;
                min-width: 40px;
                text-align: center;
                background: var(--bg-input);
        }

        .qty-input {
                width: 50px;
                padding: 6px 4px;
                font-weight: 600;
                font-size: 0.9rem;
                text-align: center;
                background: var(--bg-input);
                border: none;
                color: var(--text-primary);
                -moz-appearance: textfield;
        }

        .qty-input::-webkit-outer-spin-button,
        .qty-input::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
        }

        .qty-input:focus {
                outline: none;
                background: var(--bg-elevated);
        }

        /* Contrôles quantité verticaux */
        .qty-controls-vertical {
                display: flex;
                flex-direction: column;
                align-items: center;
                background: var(--bg-card);
                border-radius: 8px;
                overflow: hidden;
                border: 1px solid var(--border);
        }

        .qty-btn-v {
                width: 44px;
                height: 18px;
                padding: 0;
                border: none;
                background: transparent;
                color: var(--text-primary);
                font-size: 18px;
                font-weight: 700;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.15s;
                line-height: 1;
        }

        .qty-btn-v:hover {
                background: var(--bg-elevated);
                color: var(--text-primary);
        }

        .qty-btn-v.plus:hover {
                background: var(--accent);
                color: var(--accent-contrast);
        }

        .qty-btn-v.minus:hover {
                background: var(--notion-red);
                color: var(--notion-red-text);
        }

        .qty-input-v {
                width: 44px;
                height: 20px;
                padding: 0;
                font-weight: 700;
                font-size: 1rem;
                text-align: center;
                background: var(--bg-input);
                border: none;
                border-top: 1px solid var(--border);
                border-bottom: 1px solid var(--border);
                color: var(--text-primary);
                -moz-appearance: textfield;
                line-height: 20px;
        }

        .qty-input-v::-webkit-outer-spin-button,
        .qty-input-v::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
        }

        .qty-input-v:focus {
                outline: none;
                background: var(--bg-elevated);
        }

        .cart-footer {
                padding: 20px;
                background: var(--bg-secondary);
                border-top: 1px solid var(--border);
        }

        .cart-total {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 16px;
        }

        .cart-total-label {
                font-size: 1rem;
                color: var(--text-secondary);
        }

        .cart-total-value {
                font-size: 1.8rem;
                font-weight: 700;
                color: var(--accent);
        }

        .held-cart-item {
                background: var(--bg-elevated);
                border: 1px solid var(--border);
                border-radius: 12px;
                padding: 14px;
                margin-bottom: 10px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .held-cart-item:hover {
                border-color: transparent;
                background: var(--notion-orange);
        }

        .held-cart-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 8px;
        }

        .held-cart-time {
                font-size: 0.75rem;
                color: var(--text-secondary);
                font-family: 'JetBrains Mono', monospace;
                display: flex;
                align-items: center;
                gap: 6px;
        }

        .held-cart-time svg {
                width: 14px;
                height: 14px;
                stroke: var(--text-muted);
        }

        .held-cart-total {
                font-weight: 700;
                color: var(--accent);
        }

        .held-cart-items {
                font-size: 0.8rem;
                color: var(--text-secondary);
                margin-bottom: 10px;
        }

        .held-cart-actions {
                display: flex;
                gap: 8px;
        }

        .held-cart-actions button {
                flex: 1;
                padding: 8px;
                font-size: 0.75rem;
        }

        .journal-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 14px;
                padding: 14px 16px;
                margin-bottom: 10px;
                cursor: pointer;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
        }

        .journal-card:hover {
                background: var(--bg-hover);
                border-color: var(--border-hover);
        }

        .journal-card:active {
                transform: scale(0.98);
        }

        .journal-info {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 4px;
        }

        .journal-title {
                font-size: 1.15rem;
                font-weight: 300;
                color: var(--text-primary);
                text-transform: capitalize;
                line-height: 1.2;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
        }

        .journal-meta {
                display: flex;
                align-items: center;
                gap: 10px;
                flex-wrap: wrap;
        }

        .journal-date {
                font-size: 0.75rem;
                color: var(--text-muted);
        }

        .journal-ticket-num {
                font-size: 0.7rem;
                color: var(--text-secondary);
                font-family: 'JetBrains Mono', monospace;
        }

        .journal-right {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 4px;
                flex-shrink: 0;
        }

        .journal-amount {
                font-size: 1.1rem;
                font-weight: 300;
                color: var(--text-primary);
        }

        .journal-payment {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                padding: 3px 10px;
                border-radius: 20px;
                font-size: 0.65rem;
                font-weight: 600;
                text-transform: uppercase;
        }

        .journal-payment.espece {
                background: var(--notion-green);
                color: var(--notion-green-text);
        }

        .journal-payment.cb {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
        }

        .journal-payment.cheque {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
        }

        .journal-payment.virement {
                background: var(--notion-purple);
                color: var(--notion-purple-text);
        }

        .journal-payment-text {
                display: inline-flex;
                align-items: center;
                padding: 4px 10px;
                border-radius: 6px;
                font-size: 0.7rem;
                font-weight: 600;
                background: var(--bg-elevated);
                color: var(--text-muted);
        }

        .journal-payment-text.espece {
                color: var(--notion-green-text);
        }

        .journal-payment-text.cb {
                color: var(--notion-blue-text);
        }

        .journal-payment-text.cheque {
                color: var(--notion-orange-text);
        }

        .journal-payment-text.virement {
                color: var(--notion-purple-text);
        }

        .journal-seller {
                font-size: 0.7rem;
                color: var(--text-muted);
        }

        .journal-stats {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
                margin-bottom: 20px;
        }

        .journal-stat {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                padding: 12px 8px;
                text-align: center;
                display: flex;
                flex-direction: column;
        }

        .journal-stat-label {
                font-size: 0.65rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                margin-bottom: 4px;
                order: 1;
        }

        .journal-stat-value {
                font-size: 1.1rem;
                font-weight: 700;
                color: var(--text-primary);
                order: 2;
        }

        .journal-stat-btn {
                cursor: pointer;
                transition: all 0.2s;
                padding: 10px 6px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
        }

        .journal-stat-btn:hover {
                border-color: transparent;
                background: var(--notion-purple);
        }

        .journal-stat-btn .journal-stat-label {
                order: 1;
                margin-bottom: 6px;
        }

        .journal-stat-icon {
                width: 24px;
                height: 24px;
                order: 2;
        }

        .journal-stat-icon svg {
                width: 100%;
                height: 100%;
                stroke: var(--text-primary);
        }

        /* Stats périodes (Aujourd'hui, Semaine, Mois) */
        .journal-period-row {
                display: flex;
                align-items: stretch;
                gap: 10px;
                margin-bottom: 12px;
        }

        .journal-period-stats {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
                flex: 1;
        }

        .payment-cards-accordion {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
        }

        .payment-cards-accordion.open {
                max-height: 80px;
        }

        .payment-filter-scroll {
                display: flex;
                gap: 10px;
                overflow-x: auto;
                padding: 8px 0;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
        }

        .payment-filter-scroll::-webkit-scrollbar {
                display: none;
        }

        .payment-filter-badge {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 8px 14px;
                border-radius: 20px;
                font-size: 0.85rem;
                font-weight: 500;
                cursor: pointer;
                white-space: nowrap;
                flex-shrink: 0;
                transition: all 0.2s ease;
                border: 2px solid transparent;
        }

        .payment-filter-badge:hover {
                transform: scale(1.02);
        }

        .payment-filter-badge.active {
                border-color: currentColor;
        }

        .payment-filter-badge.espece {
                background: var(--notion-green);
                color: var(--notion-green-text);
        }

        .payment-filter-badge.cb {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
        }

        .payment-filter-badge.cheque {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
        }

        .payment-filter-badge.virement {
                background: var(--notion-purple);
                color: var(--notion-purple-text);
        }

        /* Filtres statut devis */
        .payment-filter-badge.devis-filter-sent {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
        }

        .payment-filter-badge.devis-filter-critical {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
        }

        .payment-filter-badge.devis-filter-expired {
                background: var(--notion-red);
                color: var(--notion-red-text);
        }

        .payment-filter-badge.devis-filter-signed {
                background: var(--notion-green);
                color: var(--notion-green-text);
        }

        .payment-filter-label {
                font-weight: 600;
        }

        .payment-filter-amount {
                font-weight: 400;
                opacity: 0.8;
        }

        .journal-period-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 14px;
                padding: 14px 12px;
                text-align: center;
                cursor: pointer;
                transition: all 0.2s ease;
        }

        .journal-period-card:hover {
                background: var(--bg-hover);
                border-color: var(--border-hover);
        }

        .journal-period-card:active {
                transform: scale(0.98);
        }

        .journal-period-card.active {
                border-color: var(--accent);
                background: var(--accent-muted);
        }

        .journal-period-label {
                font-size: 0.7rem;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: 0.3px;
                margin-bottom: 6px;
        }

        .journal-period-value {
                font-size: 1.2rem;
                font-weight: 700;
                color: var(--text-primary);
        }

        /* Plan des ventes par zone */
        .sales-map-container {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 6px;
                margin-bottom: 16px;
        }

        .sales-map-zone {
                aspect-ratio: 1;
                border-radius: 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s;
                border: 2px solid transparent;
        }

        .sales-map-zone:hover {
                transform: scale(1.05);
        }

        .sales-map-zone-label {
                font-size: 0.85rem;
                font-weight: 700;
                color: inherit;
        }

        .sales-map-zone-value {
                font-size: 0.7rem;
                font-weight: 500;
                opacity: 0.9;
        }

        .sales-map-zone-count {
                font-size: 0.6rem;
                opacity: 0.7;
        }

        .sales-map-legend {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                padding-top: 12px;
                border-top: 1px solid var(--border);
        }

        .sales-map-legend-item {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 0.75rem;
                color: var(--text-secondary);
        }

        .sales-map-legend-color {
                width: 12px;
                height: 12px;
                border-radius: 4px;
        }

        /* Payment cards filtre journal */
        .payment-cards {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
                margin-bottom: 20px;
        }

        .payment-cards-4 {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
                margin-bottom: 16px;
        }

        .payment-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                padding: 14px 10px;
                text-align: center;
                cursor: pointer;
                transition: all 0.2s;
        }

        .payment-cards-4 .payment-card {
                padding: 10px 4px;
        }

        .payment-card:hover {
                border-color: transparent;
                background: var(--bg-elevated);
        }

        .payment-card.active {
                border-color: transparent;
                background: var(--notion-blue);
        }

        .payment-card[data-filter="espece"].active {
                background: var(--notion-green);
        }

        .payment-card[data-filter="cb"].active {
                background: var(--notion-blue);
        }

        .payment-card[data-filter="cheque"].active {
                background: var(--notion-orange);
        }

        .payment-card[data-filter="virement"].active {
                background: var(--notion-purple);
        }

        .payment-card-icon {
                width: 36px;
                height: 36px;
                margin: 0 auto 8px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .payment-cards-4 .payment-card-icon {
                width: 28px;
                height: 28px;
                margin-bottom: 4px;
        }

        .payment-card-icon svg {
                width: 24px;
                height: 24px;
                stroke: var(--text-secondary);
        }

        .payment-cards-4 .payment-card-icon svg {
                width: 18px;
                height: 18px;
        }

        .payment-card.active .payment-card-icon svg {
                stroke: var(--notion-blue-text);
        }

        .payment-card[data-filter="espece"].active .payment-card-icon svg {
                stroke: var(--notion-green-text);
        }

        .payment-card[data-filter="cb"].active .payment-card-icon svg {
                stroke: var(--notion-blue-text);
        }

        .payment-card[data-filter="cheque"].active .payment-card-icon svg {
                stroke: var(--notion-orange-text);
        }

        .payment-card[data-filter="virement"].active .payment-card-icon svg {
                stroke: var(--notion-purple-text);
        }

        .payment-card.active .payment-card-label {
                color: var(--notion-blue-text);
        }

        .payment-card[data-filter="espece"].active .payment-card-label,
        .payment-card[data-filter="espece"].active .payment-card-amount,
        .payment-card[data-filter="espece"].active .payment-card-count {
                color: var(--notion-green-text);
        }

        .payment-card[data-filter="cb"].active .payment-card-label,
        .payment-card[data-filter="cb"].active .payment-card-amount,
        .payment-card[data-filter="cb"].active .payment-card-count {
                color: var(--notion-blue-text);
        }

        .payment-card[data-filter="cheque"].active .payment-card-label,
        .payment-card[data-filter="cheque"].active .payment-card-amount,
        .payment-card[data-filter="cheque"].active .payment-card-count {
                color: var(--notion-orange-text);
        }

        .payment-card[data-filter="virement"].active .payment-card-label,
        .payment-card[data-filter="virement"].active .payment-card-amount,
        .payment-card[data-filter="virement"].active .payment-card-count {
                color: var(--notion-purple-text);
        }

        .payment-card-amount {
                font-size: 0.95rem;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 2px;
        }

        .payment-card-count {
                font-size: 0.6rem;
                color: var(--text-secondary);
        }

        .payment-cards-4 .payment-card-count {
                font-size: 0.55rem;
        }

        .payment-card.active .payment-card-amount {
                color: var(--notion-blue-text);
        }

        .payment-card.active .payment-card-count {
                color: var(--notion-blue-text);
        }

        .payment-card-full {
                background: var(--bg-card);
                border: 2px solid var(--border);
                border-radius: 12px;
                padding: 16px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                cursor: pointer;
                transition: all 0.2s;
                margin-bottom: 16px;
        }

        .payment-card-full:hover {
                border-color: var(--border-hover);
                background: var(--bg-elevated);
        }

        .payment-card-full .stripe-logo {
                width: 60px;
                height: auto;
                color: var(--text-secondary);
        }

        .payment-card-full span {
                font-size: 0.85rem;
                font-weight: 600;
                color: var(--text-secondary);
        }

        .modal-share {
                background: transparent;
                border: none;
                cursor: pointer;
                padding: 5px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .modal-share svg {
                width: 20px;
                height: 20px;
                stroke: var(--text-secondary);
                transition: stroke 0.2s;
        }

        .modal-share:hover svg {
                stroke: var(--accent);
        }

        .empty-state {
                text-align: center;
                padding: 40px 20px;
                color: var(--text-secondary);
        }

        .empty-state h3 {
                color: var(--text-primary);
                font-weight: 600;
                margin-bottom: 6px;
        }

        .empty-product-card {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 40px 20px;
                border: 2px dashed var(--border);
                border-radius: 16px;
                margin: 16px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .empty-product-card:hover {
                border-color: var(--text-muted);
        }

        .empty-product-card:active {
                transform: scale(0.98);
        }

        .empty-product-plus {
                font-size: 48px;
                font-weight: 300;
                color: var(--text-muted);
                line-height: 1;
                margin-bottom: 12px;
                opacity: 0.6;
        }

        .empty-product-label {
                font-size: 0.9rem;
                color: var(--text-muted);
                font-weight: 500;
                opacity: 0.7;
        }

        .zone-products-list {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 14px;
                overflow: hidden;
        }

        .zone-products-header {
                padding: 16px 20px;
                border-bottom: 1px solid var(--border);
                display: flex;
                justify-content: space-between;
                align-items: center;
        }

        .zone-products-header h3 {
                font-size: 1rem;
                font-weight: 600;
                color: var(--accent);
        }

        .client-accordion {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                margin-bottom: 16px;
                overflow: hidden;
        }

        .client-accordion-header {
                padding: 14px 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                cursor: pointer;
                transition: background 0.2s;
        }

        .client-accordion-header:hover {
                background: var(--bg-elevated);
        }

        .client-accordion-title {
                font-size: 0.8rem;
                color: var(--text-secondary);
                font-weight: 600;
                display: flex;
                align-items: center;
                gap: 8px;
        }

        .client-accordion-title svg {
                width: 18px;
                height: 18px;
                stroke: var(--text-muted);
        }

        .client-accordion-chevron {
                width: 18px;
                height: 18px;
                stroke: var(--text-secondary);
                transition: transform 0.3s;
        }

        .client-accordion-chevron.open {
                transform: rotate(180deg);
        }

        .client-accordion-content {
                padding: 0 16px 16px;
        }

        .client-search-indicator {
                position: absolute;
                right: 12px;
                top: 50%;
                transform: translateY(-50%);
        }

        .client-search-indicator svg {
                width: 18px;
                height: 18px;
                stroke: var(--accent);
        }

        .toast {
                position: fixed;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%) translateY(100px);
                background: var(--bg-elevated);
                color: var(--text-primary);
                padding: 14px 24px;
                border-radius: 12px;
                border: 1px solid var(--border);
                box-shadow: var(--shadow-card);
                opacity: 0;
                transition: all 0.3s;
                z-index: 999999;
                max-width: 90%;
                text-align: center;
                font-size: 0.9rem;
                font-weight: 500;
        }

        .toast.show {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
        }

        .toast.success {
                border-color: var(--accent);
        }

        .toast.error {
                border-color: #DC2626;
        }

        ::-webkit-scrollbar {
                width: 6px;
        }

        ::-webkit-scrollbar-track {
                background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
                background: var(--border);
                border-radius: 3px;
        }


        @media print {
                body * {
                        visibility: hidden;
                }

                .qr-preview,
                .qr-preview * {
                        visibility: visible;
                }

                .qr-preview {
                        position: absolute;
                        left: 0;
                        top: 0;
                }
        }

        /* Page Accueil */
        /* Dashboard style SumUp */
        .dashboard-greeting {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 16px 5px 12px;
        }

        .dashboard-greeting h1 {
                font-size: 1.4rem;
                font-weight: lighter;
                color: var(--text-primary);
                margin: 0;
        }

        .devis-switch-inline {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 13px;
                color: var(--text-secondary);
        }

        .dashboard-hero-row {
                display: flex;
                gap: 12px;
                margin-bottom: 16px;
        }

        .dashboard-main-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                padding: 20px;
                margin-bottom: 16px;
                cursor: pointer;
                transition: border-color 0.2s, background 0.2s;
        }

        .dashboard-main-card:hover {
                border-color: var(--accent);
                background: var(--bg-elevated);
        }

        .dashboard-main-icon {
                width: 40px;
                height: 40px;
                color: var(--text-secondary);
                margin-bottom: 12px;
        }

        .dashboard-new-sale {
                flex: 1;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 8px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .dashboard-new-sale:hover {
                border-color: var(--border-hover);
                background: var(--bg-elevated);
        }

        .dashboard-new-sale svg {
                width: 32px;
                height: 32px;
                stroke: var(--text-primary);
        }

        .dashboard-new-sale span {
                font-size: 0.85rem;
                font-weight: 500;
                color: var(--text-secondary);
        }

        .dashboard-balance-label {
                font-size: 0.85rem;
                color: var(--text-secondary);
                margin-bottom: 4px;
        }

        .dashboard-top-row {
                display: flex;
                gap: 12px;
                margin-bottom: 12px;
                align-items: stretch;
        }

        .dashboard-top-row .dashboard-main-card {
                flex: 1;
                margin-bottom: 0;
        }

        .dashboard-card-devis-square {
                width: 120px;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: border-color 0.2s, background 0.2s;
                gap: 2px;
        }

        .dashboard-card-devis-square:hover {
                border-color: var(--accent);
                background: var(--bg-elevated);
        }

        .dashboard-second-row {
                display: flex;
                gap: 12px;
                margin-bottom: 12px;
                align-items: stretch;
                height: 130px;
        }

        .dashboard-card-square {
                width: 130px;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: border-color 0.2s, background 0.2s;
                gap: 4px;
        }

        .dashboard-card-square:hover {
                border-color: var(--accent);
                background: var(--bg-elevated);
        }

        .dashboard-card-square .devis-square-icon {
                width: 36px;
                height: 36px;
        }

        .dashboard-card-square .devis-square-count {
                font-size: 1.8rem;
        }

        .dashboard-card-square .devis-square-label {
                font-size: 0.85rem;
        }

        .dashboard-card-new-invoice {
                flex: 1;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: border-color 0.2s, background 0.2s;
                padding: 16px;
        }

        .dashboard-card-new-invoice:hover {
                border-color: var(--accent);
                background: var(--bg-elevated);
        }

        .new-invoice-icon {
                width: 48px;
                height: 48px;
                margin-bottom: 8px;
        }

        .new-invoice-icon svg {
                width: 100%;
                height: 100%;
                stroke: var(--text-secondary);
        }

        .new-invoice-label {
                font-size: 0.9rem;
                color: var(--text-secondary);
                font-weight: 500;
        }

        /* Couleurs spécifiques par section */
        #produits-home .dashboard-card-new-invoice {
                background: var(--notion-blue);
                border-color: transparent;
        }
        #produits-home .dashboard-card-new-invoice .new-invoice-icon svg {
                stroke: var(--notion-blue-text);
        }
        #produits-home .dashboard-card-new-invoice .new-invoice-label {
                color: var(--notion-blue-text);
        }
        #produits-home .dashboard-card-new-invoice:hover {
                opacity: 0.9;
                background: var(--notion-blue);
                border-color: transparent;
        }

        #clients-home .dashboard-card-new-invoice {
                background: var(--notion-orange);
                border-color: transparent;
        }
        #clients-home .dashboard-card-new-invoice .new-invoice-icon svg {
                stroke: var(--notion-orange-text);
        }
        #clients-home .dashboard-card-new-invoice .new-invoice-label {
                color: var(--notion-orange-text);
        }
        #clients-home .dashboard-card-new-invoice:hover {
                opacity: 0.9;
                background: var(--notion-orange);
                border-color: transparent;
        }

        #factures-home .dashboard-card-new-invoice,
        #accueil .dashboard-card-new-invoice {
                background: var(--notion-green);
                border-color: transparent;
        }
        #factures-home .dashboard-card-new-invoice .new-invoice-icon svg,
        #accueil .dashboard-card-new-invoice .new-invoice-icon svg {
                stroke: var(--notion-green-text);
        }
        #factures-home .dashboard-card-new-invoice .new-invoice-label,
        #accueil .dashboard-card-new-invoice .new-invoice-label {
                color: var(--notion-green-text);
        }
        #factures-home .dashboard-card-new-invoice:hover,
        #accueil .dashboard-card-new-invoice:hover {
                opacity: 0.9;
                background: var(--notion-green);
                border-color: transparent;
        }

        .devis-square-icon {
                width: 32px;
                height: 32px;
                color: var(--text-secondary);
        }

        .dashboard-card-devis-square .devis-square-icon {
                width: 32px;
                height: 32px;
        }

        .devis-square-count {
                font-size: 1.5rem;
                font-weight: 600;
                color: var(--text-primary);
                line-height: 1;
        }

        .devis-square-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                text-transform: lowercase;
                letter-spacing: 0.3px;
        }

        .privacy-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .privacy-toggle:hover {
                background: var(--bg-elevated);
        }

        .privacy-toggle .eye-closed {
                display: none;
        }

        body.privacy-mode .privacy-toggle .eye-open {
                display: none;
        }

        body.privacy-mode .privacy-toggle .eye-closed {
                display: block;
        }

        .sensitive-data {
                transition: filter 0.3s ease;
        }

        body.privacy-mode .sensitive-data {
                filter: blur(8px);
                user-select: none;
        }

        .dashboard-balance {
                font-size: 2.4rem;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 4px;
        }

        .dashboard-balance-sub {
                font-size: 0.8rem;
                color: var(--text-muted);
        }

        .dashboard-actions {
                display: flex;
                justify-content: flex-start;
                gap: 24px;
                margin-top: 20px;
                padding-top: 20px;
                border-top: 1px solid var(--border);
        }

        .dashboard-action {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                cursor: pointer;
        }

        .dashboard-action-icon {
                width: 52px;
                height: 52px;
                background: var(--bg-elevated);
                border: 1px solid var(--border);
                border-radius: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
        }

        .dashboard-action-icon svg {
                width: 24px;
                height: 24px;
                stroke: var(--text-primary);
        }

        .dashboard-action:hover .dashboard-action-icon {
                background: var(--notion-blue);
                border-color: transparent;
        }

        .dashboard-action:hover .dashboard-action-icon svg {
                stroke: var(--notion-blue-text);
        }

        .dashboard-action-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                text-align: center;
        }

        .dashboard-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 12px;
                margin-bottom: 16px;
        }

        .dashboard-card {
                background: var(--bg-card);
                border: 1.5px solid var(--border);
                border-radius: 14px;
                padding: 16px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .dashboard-card:hover {
                border-color: var(--border-hover);
        }

        .dashboard-card.neon-purple {
                border-color: var(--notion-purple-text);
                box-shadow: 0 0 12px rgba(154, 109, 215, 0.3), inset 0 0 12px rgba(154, 109, 215, 0.05);
        }

        .dashboard-card.neon-purple .dashboard-card-svg {
                stroke: var(--notion-purple-text);
        }

        .dashboard-card.neon-orange {
                border-color: var(--notion-orange-text);
                box-shadow: 0 0 12px rgba(215, 129, 58, 0.3), inset 0 0 12px rgba(215, 129, 58, 0.05);
        }

        .dashboard-card.neon-orange .dashboard-card-svg {
                stroke: var(--notion-orange-text);
        }

        .dashboard-card-svg {
                width: 28px;
                height: 28px;
                margin-bottom: 12px;
                stroke: var(--text-secondary);
        }

        /* Devis card layout */
        .dashboard-card-devis {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
        }

        .dashboard-card-devis .dashboard-card-svg {
                margin-bottom: 0;
                width: 24px;
                height: 24px;
        }

        .devis-card-header {
                display: flex;
                align-items: center;
                gap: 8px;
        }

        .devis-card-count {
                font-size: 1rem;
                font-weight: 600;
                color: var(--text-primary);
        }

        .devis-card-amount {
                font-size: 1.6rem;
                font-weight: 700;
                color: var(--text-primary);
                margin-top: 6px;
        }

        .dashboard-card-icon {
                width: 36px;
                height: 36px;
                margin-bottom: 12px;
        }

        .dashboard-card-icon svg {
                width: 24px;
                height: 24px;
                stroke: var(--text-secondary);
        }

        .dashboard-card-title {
                font-size: 0.95rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 2px;
        }

        .dashboard-card-subtitle {
                font-size: 0.75rem;
                color: var(--text-muted);
                margin-bottom: 12px;
        }

        .dashboard-card-value {
                font-size: 1.5rem;
                font-weight: 700;
                color: var(--text-primary);
        }

        .dashboard-quick-action {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 14px;
                padding: 16px;
                display: flex;
                align-items: center;
                gap: 14px;
                cursor: pointer;
                transition: all 0.2s;
                margin-bottom: 12px;
        }

        .dashboard-quick-action:hover {
                border-color: var(--border-hover);
                background: var(--bg-elevated);
        }

        .dashboard-quick-action-icon {
                width: 44px;
                height: 44px;
                background: var(--notion-blue);
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
        }

        .dashboard-quick-action-icon svg {
                width: 22px;
                height: 22px;
                stroke: var(--notion-blue-text);
        }

        .dashboard-quick-action-text {
                flex: 1;
        }

        .dashboard-quick-action-title {
                font-size: 0.9rem;
                font-weight: 600;
                color: var(--text-primary);
        }

        .dashboard-quick-action-subtitle {
                font-size: 0.75rem;
                color: var(--text-muted);
        }

        /* Dashboard RDV Card */
        .dashboard-rdv-card {
                background: var(--bg-card);
                border-radius: 16px;
                padding: 16px;
                margin-top: 16px;
                border: 1px solid var(--border);
                cursor: pointer;
        }

        .dashboard-rdv-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
        }

        .dashboard-rdv-title {
                display: flex;
                align-items: center;
                gap: 8px;
                font-weight: 600;
                color: var(--text-primary);
                font-size: 0.95rem;
        }

        .dashboard-rdv-title svg {
                stroke: var(--accent);
        }

        .dashboard-rdv-count {
                background: var(--accent);
                color: var(--accent-contrast);
                padding: 4px 10px;
                border-radius: 12px;
                font-size: 0.75rem;
                font-weight: 600;
        }

        .dashboard-rdv-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
        }

        .dashboard-rdv-item {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 12px;
                margin-bottom: 10px;
                background: var(--bg-elevated);
                border-radius: 12px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .dashboard-rdv-item:last-child {
                margin-bottom: 0;
        }

        .dashboard-rdv-item:hover {
                background: var(--notion-blue);
        }

        .dashboard-rdv-item-date {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                min-width: 50px;
                padding: 8px;
                background: var(--accent);
                color: var(--accent-contrast);
                border-radius: 10px;
        }

        .dashboard-rdv-item-day {
                font-size: 1.2rem;
                font-weight: 700;
                line-height: 1;
        }

        .dashboard-rdv-item-month {
                font-size: 0.65rem;
                text-transform: uppercase;
                letter-spacing: 0.5px;
        }

        .dashboard-rdv-item-info {
                flex: 1;
        }

        .dashboard-rdv-item-name {
                font-weight: 600;
                color: var(--text-primary);
                font-size: 0.9rem;
        }

        .dashboard-rdv-item-time {
                font-size: 0.8rem;
                color: var(--text-secondary);
        }

        /* Appointment Detail Modal */
        .appointment-detail-header {
                text-align: center;
                padding-bottom: 16px;
                border-bottom: 1px solid var(--border);
                margin-bottom: 16px;
        }

        .appointment-detail-date {
                font-size: 1.1rem;
                font-weight: 600;
                color: var(--text-primary);
                text-transform: capitalize;
        }

        .appointment-detail-time {
                font-size: 0.9rem;
                color: var(--text-secondary);
                margin-top: 4px;
        }

        .appointment-detail-info {
                margin-bottom: 20px;
        }

        .appointment-detail-row {
                display: flex;
                justify-content: space-between;
                padding: 12px 0;
                border-bottom: 1px solid var(--border);
        }

        .appointment-detail-row:last-child {
                border-bottom: none;
        }

        .appointment-detail-label {
                font-size: 0.85rem;
                color: var(--text-muted);
        }

        .appointment-detail-value {
                font-size: 0.9rem;
                font-weight: 500;
                color: var(--text-primary);
        }

        .appointment-detail-actions {
                display: flex;
                gap: 12px;
        }

        .appointment-detail-actions .btn {
                flex: 1;
        }

        /* Clients Section */
        .clients-stats {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
        }

        .client-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 14px;
                padding: 14px 16px;
                margin-bottom: 10px;
                cursor: pointer;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
        }

        .client-card:hover {
                background: var(--bg-hover);
                border-color: var(--border-hover);
        }

        .client-card:active {
                transform: scale(0.98);
        }

        .client-info {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 4px;
        }

        .client-name {
                font-size: 1.15rem;
                font-weight: 300;
                color: var(--text-primary);
                text-transform: capitalize;
                line-height: 1.2;
        }

        .client-meta {
                display: flex;
                align-items: center;
                gap: 12px;
        }

        .client-phone {
                font-size: 0.8rem;
                color: var(--text-secondary);
        }

        .client-invoices {
                font-size: 0.7rem;
                font-weight: 600;
                color: var(--notion-blue-text);
                background: var(--notion-blue);
                padding: 4px 10px;
                border-radius: 6px;
                flex-shrink: 0;
        }

        .client-badge-pro {
                display: inline-block;
                background: var(--notion-purple);
                color: var(--notion-purple-text);
                padding: 4px 8px;
                border-radius: 6px;
                font-size: 0.65rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.3px;
        }

        .client-right {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 4px;
                flex-shrink: 0;
        }

        .client-badges-row {
                display: flex;
                align-items: center;
                gap: 6px;
        }

        .client-phone-right {
                font-size: 0.8rem;
                color: var(--text-secondary);
        }

        .client-card-unknown {
                background: var(--bg-elevated);
                border-style: dashed;
                border-color: var(--border);
        }

        .client-card-unknown .client-name {
                color: var(--text-secondary);
        }

        .client-detail-header {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                padding: 14px;
                margin-bottom: 12px;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 12px;
        }

        .client-detail-info h3 {
                font-size: 1rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 4px;
        }

        .client-detail-info div {
                font-size: 0.8rem;
                color: var(--text-secondary);
                line-height: 1.4;
        }

        /* Client Profile Card - New Design */
        .client-profile-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                padding: 20px;
                margin-bottom: 16px;
        }

        .client-profile-top {
                display: flex;
                align-items: center;
                gap: 14px;
                margin-bottom: 16px;
        }

        .client-profile-avatar {
                width: 56px;
                height: 56px;
                border-radius: 50%;
                background: var(--primary-color);
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.2rem;
                font-weight: 600;
                flex-shrink: 0;
        }

        .client-profile-avatar.pro {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
        }

        .client-profile-info {
                flex: 1;
                min-width: 0;
        }

        .client-profile-info h3 {
                font-size: 1.15rem;
                font-weight: 600;
                color: var(--text-primary);
                margin: 0 0 4px 0;
        }

        .client-profile-badge {
                display: inline-block;
                font-size: 11px;
                font-weight: 600;
                padding: 3px 8px;
                border-radius: 6px;
                background: var(--bg-secondary);
                color: var(--text-secondary);
        }

        .client-profile-badge.pro {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
        }

        .client-profile-close {
                width: 36px;
                height: 36px;
                border-radius: 10px;
                border: none;
                background: var(--bg-secondary);
                color: var(--text-secondary);
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
        }

        .client-profile-close:hover {
                background: var(--bg-tertiary);
        }

        .client-profile-details {
                display: flex;
                flex-direction: column;
                gap: 10px;
                padding: 14px 0;
                border-top: 1px solid var(--border);
                border-bottom: 1px solid var(--border);
                margin-bottom: 16px;
        }

        .client-profile-detail-row {
                display: flex;
                align-items: center;
                gap: 10px;
                font-size: 0.9rem;
                color: var(--text-primary);
        }

        .client-profile-detail-row svg {
                color: var(--text-secondary);
                opacity: 0.6;
                flex-shrink: 0;
        }

        .client-profile-actions {
                display: flex;
                gap: 10px;
        }

        .client-action-btn {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 12px 16px;
                border-radius: 10px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                color: var(--text-primary);
                font-size: 0.9rem;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s;
        }

        .client-action-btn:hover {
                background: var(--bg-secondary);
        }

        .client-action-btn.primary {
                background: var(--primary-color);
                color: white;
                border-color: transparent;
        }

        .client-action-btn.primary:hover {
                opacity: 0.9;
        }

        .client-invoices-section {
                margin-top: 8px;
        }

        .client-invoices-title {
                font-size: 0.85rem;
                font-weight: 600;
                color: var(--text-secondary);
                margin-bottom: 12px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
        }

        .invoice-item {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                padding: 14px 16px;
                margin-bottom: 10px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .invoice-item:hover {
                border-color: transparent;
                background: var(--notion-gray);
        }

        /* Section Nouvelle Vente */
        .sale-header {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 12px 0;
                margin-bottom: 16px;
        }

        .sale-back-btn {
                width: 40px;
                height: 40px;
                border-radius: 10px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                color: var(--text-primary);
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
        }

        .sale-back-btn svg {
                width: 20px;
                height: 20px;
        }

        .sale-header h2 {
                flex: 1;
                font-size: 1.2rem;
                font-weight: 600;
        }

        .sale-type-switch {
                display: flex;
                align-items: center;
                gap: 8px;
        }

        .sale-type-label {
                font-size: 0.85rem;
                color: var(--text-secondary);
                font-weight: 500;
        }

        .devis-switch {
                position: relative;
                width: 44px;
                height: 24px;
        }

        .devis-switch input {
                opacity: 0;
                width: 0;
                height: 0;
        }

        .devis-switch-slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: var(--border);
                border-radius: 24px;
                transition: 0.3s;
        }

        .devis-switch-slider:before {
                position: absolute;
                content: "";
                height: 18px;
                width: 18px;
                left: 3px;
                bottom: 3px;
                background: white;
                border-radius: 50%;
                transition: 0.3s;
        }

        .devis-switch input:checked+.devis-switch-slider {
                background: rgba(34, 197, 94, 0.4);
        }

        .devis-switch input:checked+.devis-switch-slider:before {
                transform: translateX(20px);
                background: var(--accent);
        }

        .sale-payment-section {
                margin-bottom: 16px;
        }

        .sale-payment-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.5px;
                font-weight: 600;
                margin-bottom: 10px;
        }

        .sale-payment-cards {
                display: flex;
                gap: 8px;
                flex-wrap: wrap;
        }

        .sale-payment-card {
                flex: 1;
                min-width: 60px;
                padding: 10px 8px;
                background: var(--bg-elevated);
                border: 2px solid var(--border);
                border-radius: 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 4px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .sale-payment-card svg {
                width: 22px;
                height: 22px;
                stroke: var(--text-secondary);
        }

        .sale-payment-card span {
                font-size: 0.7rem;
                color: var(--text-secondary);
                font-weight: 500;
        }

        .sale-payment-card:hover {
                border-color: var(--text-muted);
        }

        .sale-payment-card.active {
                border-color: var(--accent);
                background: rgba(34, 197, 94, 0.1);
        }

        .sale-payment-card.active svg {
                stroke: var(--accent);
        }

        .sale-payment-card.active span {
                color: var(--accent);
        }

        .stripe-link-option {
                margin-top: 12px;
                padding: 12px;
                background: var(--bg-elevated);
                border-radius: 10px;
                border: 1px solid var(--border);
        }

        .stripe-link-checkbox {
                display: flex;
                align-items: center;
                cursor: pointer;
                gap: 10px;
        }

        .stripe-link-checkbox input {
                display: none;
        }

        .stripe-link-checkmark {
                width: 20px;
                height: 20px;
                border: 2px solid var(--border);
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
        }

        .stripe-link-checkbox input:checked+.stripe-link-checkmark {
                background: var(--accent);
                border-color: var(--accent);
        }

        .stripe-link-checkbox input:checked+.stripe-link-checkmark::after {
                content: '✓';
                color: white;
                font-size: 12px;
                font-weight: bold;
        }

        .stripe-link-label {
                font-size: 0.85rem;
                color: var(--text-primary);
                font-weight: 500;
        }

        .stripe-link-info {
                font-size: 0.75rem;
                color: var(--text-secondary);
                margin-top: 8px;
                margin-left: 30px;
        }

        .sale-card {
                background: var(--bg-card);
                border-radius: 16px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .sale-card:active {
                transform: scale(0.98);
        }

        .sale-card-client {
                border: 2px dashed var(--border);
                margin-bottom: 16px;
                min-height: 140px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .sale-card-client.has-client {
                min-height: auto;
                padding: 12px;
        }

        .sale-card-client:hover {
                border-color: var(--text-muted);
        }

        .sale-card-empty {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 24px;
        }

        .sale-card-icon {
                width: 50px;
                height: 50px;
                margin-bottom: 8px;
        }

        .sale-card-icon svg {
                width: 100%;
                height: 100%;
                stroke: var(--text-muted);
        }

        .sale-card-plus {
                font-size: 32px;
                font-weight: 300;
                color: var(--text-muted);
                line-height: 1;
                margin-bottom: 8px;
        }

        .sale-card-label {
                font-size: 0.9rem;
                color: var(--text-muted);
                font-weight: 500;
        }

        .sale-card-filled {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 16px 20px;
                width: 100%;
        }

        .sale-client-info {
                flex: 1;
        }

        .sale-client-name {
                font-size: 1.1rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 4px;
        }

        .sale-client-details {
                font-size: 0.85rem;
                color: var(--text-secondary);
        }

        .sale-client-remove {
                width: 32px;
                height: 32px;
                border-radius: 8px;
                border: none;
                background: var(--notion-red);
                color: var(--notion-red-text);
                font-size: 20px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .sale-products-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 12px;
                margin-bottom: 20px;
        }

        .sale-card-product {
                border: 1px solid var(--border);
                padding: 20px 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 12px;
        }

        .sale-card-product:hover {
                border-color: var(--accent);
        }

        .sale-card-product-icon {
                width: 50px;
                height: 50px;
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .sale-card-product-icon svg {
                width: 26px;
                height: 26px;
        }

        .sale-card-product-title {
                font-size: 0.95rem;
                font-weight: 600;
                color: var(--text-primary);
        }

        .sale-card-product-subtitle {
                font-size: 0.75rem;
                color: var(--text-secondary);
        }

        .sale-items-section {
                margin-top: 20px;
        }

        .sale-items-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
        }

        .sale-items-header h3 {
                font-size: 1rem;
                font-weight: 600;
        }

        .sale-items-count {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                padding: 4px 10px;
                border-radius: 6px;
                font-size: 0.75rem;
                font-weight: 600;
        }

        .sale-items-list {
                /* Pas de scroll séparé - la page scroll naturellement */
        }

        .sale-item {
                background: var(--bg-elevated);
                border-radius: 10px;
                padding: 12px;
                margin-bottom: 8px;
                display: flex;
                justify-content: space-between;
                align-items: center;
        }

        .sale-item-info {
                flex: 1;
        }

        .sale-item-name {
                font-size: 0.9rem;
                font-weight: 500;
        }

        .sale-item-details {
                font-size: 0.75rem;
                color: var(--text-secondary);
        }

        .sale-item-actions {
                display: flex;
                align-items: center;
                gap: 10px;
        }

        .sale-item-price {
                font-size: 0.95rem;
                font-weight: 600;
                color: var(--accent);
                margin-right: 10px;
        }

        .sale-item-remove {
                width: 28px;
                height: 28px;
                border-radius: 6px;
                border: none;
                background: var(--notion-red);
                color: var(--notion-red-text);
                font-size: 16px;
                cursor: pointer;
        }

        .sale-item-text-only {
                background: transparent;
                border: 1px dashed var(--border);
        }
        .sale-item-text-only .sale-item-name {
                font-style: italic;
                color: var(--text-secondary);
        }

        /* Remises */
        .sale-item-discount-btn {
                width: 28px;
                height: 28px;
                border-radius: 6px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                color: var(--text-secondary);
                font-size: 12px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.2s;
        }
        .sale-item-discount-btn:hover {
                background: var(--notion-orange);
                border-color: var(--notion-orange-text);
                color: var(--notion-orange-text);
        }
        .sale-item.has-discount .sale-item-discount-btn {
                background: var(--notion-orange);
                border-color: var(--notion-orange-text);
                color: var(--notion-orange-text);
        }
        .sale-item-discount-badge {
                display: inline-block;
                background: var(--notion-green);
                color: var(--notion-green-text);
                padding: 2px 6px;
                border-radius: 4px;
                font-size: 0.7rem;
                font-weight: 600;
                margin-left: 8px;
        }
        .sale-item-price.discounted {
                color: var(--notion-green-text);
        }

        .sale-discount-section {
                padding: 16px;
                margin: 16px 0;
                border-radius: 12px;
                background: var(--bg-secondary);
                border: 1px solid var(--border);
        }
        .sale-discount-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
        }
        .sale-discount-row label {
                font-size: 0.85rem;
                color: var(--text-secondary);
        }
        .sale-discount-input-group {
                display: flex;
                align-items: center;
                gap: 4px;
        }
        .sale-discount-input-group input {
                width: 80px;
                padding: 8px 10px;
                border: 1px solid var(--border);
                border-radius: 8px;
                background: var(--bg-card);
                color: var(--text-primary);
                font-size: 0.9rem;
                text-align: right;
        }
        .sale-discount-input-group select {
                padding: 8px 10px;
                border: 1px solid var(--border);
                border-radius: 8px;
                background: var(--bg-card);
                color: var(--text-primary);
                font-size: 0.9rem;
                cursor: pointer;
        }
        .sale-discount-input-group .deposit-currency {
                padding: 8px 12px;
                background: var(--bg-elevated);
                border: 1px solid var(--border);
                border-radius: 8px;
                color: var(--text-secondary);
                font-size: 0.9rem;
        }

        .sale-summary {
                padding: 8px 16px;
                border-top: 1px solid var(--border);
        }
        .sale-summary-row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 4px 0;
                font-size: 0.85rem;
                color: var(--text-secondary);
        }
        .sale-summary-discount span:last-child {
                color: var(--notion-green-text);
                font-weight: 600;
        }

        .sale-total-bar {
                display: flex;
                align-items: center;
                padding: 12px;
                background: var(--bg-elevated);
                border-radius: 12px;
                margin: 16px 0;
                gap: 12px;
        }

        .sale-total-amount {
                flex: 1;
                font-size: 1.4rem;
                font-weight: 700;
                color: var(--text-primary);
                text-align: right;
                white-space: nowrap;
        }

        .sale-validate-btn {
                flex: 1;
                padding: 12px 16px;
                font-size: 1rem;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
        }

        .sale-validate-btn svg {
                width: 20px;
                height: 20px;
        }

        .sale-client-option {
                padding: 12px;
                background: var(--bg-card);
                border-radius: 12px;
                margin-bottom: 8px;
                cursor: pointer;
                transition: all 0.2s;
                border: 1px solid var(--border);
                display: flex;
                align-items: center;
                gap: 12px;
        }

        .sale-client-option:hover {
                background: var(--bg-elevated);
                border-color: var(--accent);
        }

        .sale-client-avatar {
                width: 42px;
                height: 42px;
                border-radius: 50%;
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                font-weight: 600;
                flex-shrink: 0;
        }

        .sale-client-avatar.pro {
                background: var(--notion-orange);
                color: var(--notion-orange-text);
        }

        .sale-client-option-info {
                flex: 1;
                min-width: 0;
        }

        .sale-client-option-name {
                font-size: 0.95rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 4px;
                display: flex;
                align-items: center;
                gap: 8px;
        }

        .sale-client-option-name .client-badge-pro {
                font-size: 10px;
                padding: 2px 6px;
                margin-left: auto;
        }

        .sale-client-option-detail {
                font-size: 0.8rem;
                color: var(--text-secondary);
                display: flex;
                align-items: center;
                gap: 6px;
                margin-top: 2px;
        }

        .sale-client-option-detail svg {
                opacity: 0.6;
                flex-shrink: 0;
        }

        .sale-client-chevron {
                color: var(--text-muted);
                flex-shrink: 0;
                opacity: 0.5;
        }

        .sale-catalog-item {
                padding: 12px;
                background: var(--bg-elevated);
                border-radius: 10px;
                margin-bottom: 8px;
                cursor: pointer;
                transition: all 0.2s;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border: 1px solid transparent;
        }

        .sale-catalog-item:hover {
                background: rgba(0, 0, 0, 0.3);
                border-color: var(--accent);
        }

        .sale-catalog-item-name {
                font-size: 0.9rem;
                font-weight: 600;
                color: var(--text-primary);
                margin-bottom: 2px;
        }

        .sale-catalog-item-code {
                font-size: 0.75rem;
                color: var(--text-secondary);
        }

        .sale-catalog-item-price {
                font-size: 1rem;
                font-weight: 700;
                color: var(--accent);
        }

        .sale-catalog-item.selected {
                border-color: #22c55e;
                background: rgba(34, 197, 94, 0.15);
        }

        [data-theme="dark"] .sale-catalog-item.selected {
                border-color: #22c55e;
                background: rgba(34, 197, 94, 0.2);
        }

        .sale-catalog-item-right {
                display: flex;
                align-items: center;
                gap: 10px;
        }

        .sale-catalog-qty {
                background: #22c55e;
                color: #fff;
                font-size: 0.8rem;
                font-weight: 600;
                padding: 4px 10px;
                border-radius: 12px;
                min-width: 24px;
                text-align: center;
        }

        [data-theme="dark"] .sale-catalog-qty {
                background: #22c55e;
                color: #fff;
        }

        .sale-card-notes {
                border: 2px dashed var(--border);
                margin-bottom: 16px;
                min-height: 80px;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .sale-card-notes:hover {
                border-color: var(--text-muted);
        }

        .sale-card-notes-empty {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 16px 20px;
        }

        .sale-card-notes-icon {
                width: 36px;
                height: 36px;
        }

        .sale-card-notes-icon svg {
                width: 100%;
                height: 100%;
                stroke: var(--text-muted);
        }

        .sale-card-notes-plus {
                font-size: 24px;
                font-weight: 300;
                color: var(--text-muted);
        }

        .sale-card-notes-label {
                font-size: 0.9rem;
                color: var(--text-muted);
                font-weight: 500;
        }

        .sale-card-notes-filled {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                padding: 14px 16px;
                width: 100%;
                gap: 12px;
        }

        .sale-notes-preview {
                flex: 1;
                font-size: 0.85rem;
                color: var(--text-secondary);
                line-height: 1.4;
                max-height: 60px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: pre-wrap;
        }

        .sale-notes-edit {
                width: 32px;
                height: 32px;
                min-width: 32px;
                border-radius: 8px;
                border: 1px solid var(--border);
                background: var(--bg-elevated);
                color: var(--text-secondary);
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
        }

        .sale-notes-edit:hover {
                background: rgba(0, 0, 0, 0.3);
                border-color: var(--accent);
                color: var(--accent);
        }

        .sale-notes-templates {
                margin-top: 16px;
        }

        .sale-notes-templates-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                margin-bottom: 8px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                font-weight: 600;
        }

        .sale-notes-templates-list {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
        }

        .sale-notes-template-btn {
                padding: 8px 12px;
                border-radius: 8px;
                border: 1px solid var(--border);
                background: var(--bg-elevated);
                color: var(--text-primary);
                font-size: 0.8rem;
                cursor: pointer;
                transition: all 0.2s;
        }

        .sale-notes-template-btn:hover {
                background: rgba(0, 0, 0, 0.3);
                border-color: var(--accent);
                color: var(--accent);
        }

        /* Login Page */

        .user-badge {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 6px 12px;
                background: var(--bg-elevated);
                border-radius: 20px;
                font-size: 12px;
                font-weight: 500;
        }

        .user-badge svg {
                width: 16px;
                height: 16px;
        }

        .logout-btn {
                background: none;
                border: none;
                color: var(--text-secondary);
                cursor: pointer;
                padding: 6px;
                border-radius: 6px;
                transition: all 0.2s;
        }

        .logout-btn:hover {
                background: rgba(239, 68, 68, 0.1);
                color: #EF4444;
        }

        .journal-seller {
                background: var(--bg-elevated);
                padding: 2px 8px;
                border-radius: 10px;
                font-size: 11px;
                margin-left: 8px;
                color: var(--text-secondary);
        }

        .client-created-by {
                font-size: 11px;
                color: var(--text-muted);
                margin-top: 4px;
        }

        /* Add item button in modals */
        .add-item-btn {
                width: 100%;
                padding: 14px 16px;
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 12px;
                color: var(--text-primary);
                font-size: 14px;
                font-weight: 500;
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 12px;
                transition: all 0.2s;
        }

        .add-item-btn:hover {
                border-color: var(--accent);
                background: var(--bg-elevated);
        }

        .add-item-btn svg {
                width: 20px;
                height: 20px;
                stroke: var(--text-secondary);
        }

        /* Session Modal with tabs */
        .session-modal {
                max-width: 450px;
                max-height: 90vh;
                display: flex;
                flex-direction: column;
                overflow: hidden;
        }

        .session-tabs {
                display: flex;
                border-bottom: 1px solid var(--border);
                background: var(--bg-secondary);
                flex-shrink: 0;
        }

        .session-tab {
                flex: 1;
                padding: 14px 16px;
                background: none;
                border: none;
                font-size: 14px;
                font-weight: 500;
                color: var(--text-muted);
                cursor: pointer;
                border-bottom: 2px solid transparent;
                transition: all 0.2s;
        }

        .session-tab.active {
                color: var(--text-primary);
                border-bottom-color: var(--accent);
        }

        .session-tab:hover {
                color: var(--text-primary);
        }

        .session-tab-content {
                flex: 1;
                overflow-y: auto;
                background: var(--bg-elevated);
        }

        .session-tab-panel {
                display: none;
                padding: 16px;
        }

        .session-tab-panel.active {
                display: block;
        }

        .session-field-group {
                background: var(--bg-card);
                border-radius: 12px;
                padding: 16px;
                margin-bottom: 12px;
        }

        .session-field-label {
                font-size: 12px;
                font-weight: 600;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin-bottom: 12px;
        }

        .input-with-action {
                display: flex;
                gap: 10px;
                align-items: center;
        }

        .input-with-action input {
                flex: 1;
        }

        .input-action-btn {
                width: 48px;
                height: 48px;
                min-width: 48px;
                border-radius: 12px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s;
                color: var(--text-secondary);
        }

        .input-action-btn:hover {
                background: var(--bg-elevated);
                border-color: var(--border-hover);
        }

        [data-theme="dark"] .input-action-btn:hover {
                background: #000000;
                border-color: transparent;
        }

        .client-list-item {
                padding: 12px;
                border-radius: 10px;
                cursor: pointer;
                transition: background 0.2s;
                margin-bottom: 8px;
        }

        .client-list-item:hover {
                background: var(--bg-elevated);
        }

        .client-list-name {
                font-weight: 500;
                color: var(--text-primary);
                margin-bottom: 2px;
        }

        .client-list-phone {
                font-size: 13px;
                color: var(--text-muted);
        }

        .client-option-btn {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 12px 16px;
                background: var(--bg-elevated);
                border: 1px solid var(--border);
                border-radius: 10px;
                color: var(--text-secondary);
                cursor: pointer;
                transition: all 0.2s;
        }

        .client-option-btn:hover {
                background: var(--bg-input);
                border-color: var(--border-hover);
        }

        .session-field {
                margin-bottom: 12px;
        }

        .session-field:last-child {
                margin-bottom: 0;
        }

        .session-field label {
                display: block;
                font-size: 13px;
                font-weight: 500;
                color: var(--text-secondary);
                margin-bottom: 6px;
        }

        .session-field input,
        .session-field select,
        .session-field textarea {
                width: 100%;
                padding: 12px 14px;
                border: 1px solid var(--border);
                border-radius: 10px;
                background: var(--bg-input);
                color: var(--text-primary);
                font-size: 15px;
        }

        .session-field input:focus,
        .session-field select:focus,
        .session-field textarea:focus {
                border-color: var(--accent);
                outline: none;
        }

        .session-field textarea {
                min-height: 90px;
                resize: vertical;
                line-height: 1.5;
        }

        .session-field-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 12px;
        }

        .session-modal-footer {
                padding: 16px;
                border-top: 1px solid var(--border);
                display: flex;
                gap: 10px;
                flex-shrink: 0;
                background: var(--bg-secondary);
        }

        .session-modal-footer .btn {
                flex: 1;
                padding: 14px;
        }

        .session-modal-footer .btn-success {
                background: var(--success);
                color: white;
        }

        /* Session Items List */
        .session-items-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
        }

        .session-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 14px;
                background: var(--bg-primary);
                border-radius: 10px;
                border: 1px solid var(--border);
        }

        .session-item-info {
                flex: 1;
        }

        .session-item-name {
                font-size: 14px;
                font-weight: 500;
                color: var(--text-primary);
        }

        .session-item-price {
                font-size: 13px;
                color: var(--text-secondary);
                margin-top: 2px;
        }

        .session-item-qty {
                display: flex;
                align-items: center;
                gap: 10px;
        }

        .session-item-qty button {
                width: 32px;
                height: 32px;
                border-radius: 8px;
                border: 1px solid var(--border);
                background: var(--bg-card);
                color: var(--text-primary);
                cursor: pointer;
                font-size: 18px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
        }

        .session-item-qty button:hover {
                background: var(--accent);
                color: white;
                border-color: var(--accent);
        }

        .session-item-qty span {
                min-width: 24px;
                text-align: center;
                font-weight: 600;
                font-size: 15px;
                color: var(--text-primary);
        }

        .session-item-remove {
                width: 32px;
                height: 32px;
                border: none;
                background: none;
                color: var(--text-muted);
                cursor: pointer;
                margin-left: 8px;
                font-size: 20px;
                border-radius: 8px;
                transition: all 0.2s;
        }

        .session-item-remove:hover {
                background: rgba(239, 68, 68, 0.15);
                color: #ef4444;
        }

        /* Session Total */
        .session-total-bar {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 14px 16px;
                background: var(--bg-primary);
                border-radius: 10px;
                margin-top: 12px;
                border: 1px solid var(--border);
        }

        .session-total-bar span:first-child {
                font-weight: 600;
                color: var(--text-primary);
        }

        .session-total-amount {
                font-size: 18px;
                color: var(--accent);
                font-weight: 700;
        }

        /* Invoice Status */
        .session-invoice-status {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                padding: 16px;
                background: var(--notion-green);
                border-radius: 10px;
                color: var(--notion-green-text);
                font-weight: 600;
        }

        .session-invoice-status svg {
                width: 24px;
                height: 24px;
                stroke: var(--notion-green-text);
        }

        /* Session Invoices List */
        .session-invoices-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
        }

        .session-invoice-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 14px;
                background: var(--bg-primary);
                border-radius: 10px;
                border: 1px solid var(--border);
                border-left: 4px solid var(--notion-green-text);
                cursor: pointer;
                transition: all 0.2s;
        }

        .session-invoice-item:hover {
                background: var(--notion-green);
        }

        .session-invoice-item-info {
                flex: 1;
        }

        .session-invoice-item-date {
                font-size: 14px;
                font-weight: 500;
                color: var(--text-primary);
        }

        .session-invoice-item-details {
                font-size: 12px;
                color: var(--text-secondary);
                margin-top: 2px;
        }

        .session-invoice-item-amount {
                font-size: 16px;
                font-weight: 700;
                color: var(--notion-green-text);
        }

        .service-price-info {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 14px;
                background: var(--notion-green);
                border-radius: 8px;
                margin-top: 10px;
        }

        .service-price-label {
                font-size: 13px;
                color: var(--notion-green-text);
                font-weight: 500;
        }

        .service-price-value {
                font-size: 16px;
                color: var(--notion-green-text);
                font-weight: 700;
        }

        .services-select {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
        }

        .service-tag {
                padding: 8px 14px;
                border-radius: 10px;
                font-size: 13px;
                cursor: pointer;
                border: 1px solid var(--border);
                background: var(--bg-primary);
                color: var(--text-secondary);
                transition: all 0.2s;
                display: flex;
                align-items: center;
                gap: 6px;
        }

        .service-tag:hover {
                border-color: var(--accent);
        }

        .service-tag.selected {
                background: var(--accent);
                color: var(--accent-contrast);
                border-color: var(--accent);
        }

        .service-tag-price {
                font-size: 11px;
                opacity: 0.8;
        }

        .service-tag.selected .service-tag-price {
                opacity: 1;
        }

        /* Sessions & RDV cards in modals */
        .session-card {
                background: var(--bg-card);
                border-radius: 12px;
                padding: 14px 14px 14px 18px;
                margin-bottom: 10px;
                border: 1px solid var(--border);
                border-left: 4px solid var(--notion-purple);
                position: relative;
                cursor: pointer;
                transition: all 0.2s;
        }

        .session-card:hover {
                background: var(--notion-purple);
                border-color: transparent;
        }

        .session-card-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 8px;
        }

        .session-card-date {
                font-weight: 600;
                font-size: 0.95rem;
                color: var(--text-primary);
        }

        .session-card-duration {
                font-size: 0.75rem;
                color: var(--text-muted);
                background: var(--bg-elevated);
                padding: 4px 10px;
                border-radius: 8px;
        }

        .session-card-techniques {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                margin-bottom: 8px;
        }

        .session-card-technique {
                font-size: 0.7rem;
                padding: 3px 8px;
                border-radius: 6px;
                background: var(--bg-elevated);
                color: var(--text-secondary);
                font-weight: 500;
        }

        .session-card-footer {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-top: 10px;
                border-top: 1px solid var(--border);
        }

        .session-card-info {
                font-size: 0.75rem;
                color: var(--text-muted);
        }

        .session-card-actions {
                display: flex;
                gap: 8px;
        }

        .session-card-btn {
                padding: 6px 12px;
                font-size: 0.75rem;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-weight: 500;
                transition: all 0.2s;
        }

        .session-card-btn-edit {
                background: var(--bg-elevated);
                color: var(--text-primary);
        }

        .session-card-btn-edit:hover {
                background: var(--bg-tertiary);
        }

        .session-card-btn-delete {
                background: transparent;
                color: var(--text-muted);
        }

        .session-card-btn-delete:hover {
                background: rgba(239, 68, 68, 0.1);
                color: #ef4444;
        }

        /* Recording Controls - Refined */
        .recording-controls {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 12px 16px;
                background: var(--bg-card);
                border-radius: 12px;
                border: 1px solid var(--border);
        }

        .recording-btn {
                width: 40px;
                height: 40px;
                border-radius: 10px;
                border: none;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s;
                background: var(--bg-elevated);
        }

        .recording-btn svg {
                width: 20px;
                height: 20px;
                stroke: var(--text-secondary);
        }

        .recording-btn:hover {
                background: var(--accent);
        }

        .recording-btn:hover svg {
                stroke: var(--accent-contrast);
        }

        .recording-btn.recording {
                background: var(--accent);
        }

        .recording-btn.recording svg {
                stroke: var(--accent-contrast);
        }

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

        .recording-status {
                font-size: 13px;
                color: var(--text-secondary);
        }

        .recording-timer {
                font-size: 12px;
                font-weight: 600;
                color: var(--accent);
                font-family: 'Outfit', sans-serif;
        }

        .recording-wave {
                display: flex;
                align-items: center;
                gap: 2px;
                height: 20px;
        }

        .recording-wave-bar {
                width: 3px;
                height: 8px;
                background: var(--accent);
                border-radius: 2px;
                animation: wave 0.8s ease-in-out infinite;
        }

        .recording-wave-bar:nth-child(1) {
                animation-delay: 0s;
        }

        .recording-wave-bar:nth-child(2) {
                animation-delay: 0.1s;
        }

        .recording-wave-bar:nth-child(3) {
                animation-delay: 0.2s;
        }

        .recording-wave-bar:nth-child(4) {
                animation-delay: 0.3s;
        }

        .recording-wave-bar:nth-child(5) {
                animation-delay: 0.4s;
        }

        @keyframes wave {

                0%,
                100% {
                        height: 8px;
                }

                50% {
                        height: 18px;
                }
        }

        .btn-generate-bilan {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 6px 12px;
                background: var(--bg-elevated);
                border: 1px solid var(--border);
                border-radius: 8px;
                font-size: 12px;
                color: var(--text-secondary);
                cursor: pointer;
                transition: all 0.2s;
        }

        .btn-generate-bilan:hover {
                background: var(--accent);
                color: var(--accent-contrast);
                border-color: var(--accent);
        }

        .btn-generate-bilan:hover svg {
                stroke: var(--accent-contrast);
        }

        .btn-generate-bilan:disabled {
                opacity: 0.5;
                cursor: not-allowed;
        }

        .btn-generate-bilan.loading {
                pointer-events: none;
        }

        .btn-generate-bilan.loading svg {
                animation: spin 1s linear infinite;
        }

        @keyframes spin {
                from {
                        transform: rotate(0deg);
                }

                to {
                        transform: rotate(360deg);
                }
        }

        /* Input Mode Tabs */
        .input-mode-tabs {
                display: flex;
                gap: 8px;
                margin-bottom: 16px;
        }

        .input-mode-tab {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 8px 14px;
                background: var(--bg-elevated);
                border: 1px solid var(--border);
                border-radius: 8px;
                font-size: 13px;
                color: var(--text-secondary);
                cursor: pointer;
                transition: all 0.2s;
        }

        .input-mode-tab:hover {
                border-color: var(--accent);
                color: var(--text-primary);
        }

        .input-mode-tab.active {
                background: var(--accent);
                border-color: var(--accent);
                color: var(--accent-contrast);
        }

        .input-mode-tab.active svg {
                stroke: var(--accent-contrast);
        }

        .input-mode-panel {
                display: none;
        }

        .input-mode-panel.active {
                display: block;
        }

        .input-mode-hint {
                font-size: 13px;
                color: var(--text-muted);
                margin-bottom: 8px;
        }

        /* Scan Upload Zone */
        .scan-upload-zone {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 32px;
                border: 2px dashed var(--border);
                border-radius: 12px;
                cursor: pointer;
                transition: all 0.2s;
        }

        .scan-upload-zone:hover {
                border-color: var(--accent);
                background: var(--bg-elevated);
        }

        .scan-upload-icon {
                margin-bottom: 12px;
                color: var(--text-muted);
        }

        .scan-upload-icon svg {
                stroke: var(--text-muted);
        }

        .scan-upload-text {
                font-size: 14px;
                font-weight: 500;
                color: var(--text-primary);
                margin-bottom: 4px;
        }

        .scan-upload-hint {
                font-size: 12px;
                color: var(--text-muted);
        }

        .scan-previews {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 10px;
                margin-top: 12px;
        }

        .scan-preview-item {
                position: relative;
                aspect-ratio: 1;
                border-radius: 10px;
                overflow: hidden;
        }

        .scan-preview-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
        }

        .scan-preview-item-number {
                position: absolute;
                top: 6px;
                left: 6px;
                width: 22px;
                height: 22px;
                background: var(--accent);
                color: var(--accent-contrast);
                border-radius: 50%;
                font-size: 11px;
                font-weight: 600;
                display: flex;
                align-items: center;
                justify-content: center;
        }

        .scan-preview-item-remove {
                position: absolute;
                top: 6px;
                right: 6px;
                width: 22px;
                height: 22px;
                background: rgba(0, 0, 0, 0.6);
                border: none;
                border-radius: 50%;
                color: white;
                font-size: 14px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transition: opacity 0.2s;
        }

        .scan-preview-item:hover .scan-preview-item-remove {
                opacity: 1;
        }

        .btn-scan-ocr {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                margin-top: 12px;
                padding: 12px;
                background: var(--accent);
                border: none;
                border-radius: 10px;
                color: var(--accent-contrast);
                font-size: 14px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s;
        }

        .btn-scan-ocr:hover {
                opacity: 0.9;
        }

        .btn-scan-ocr:disabled {
                opacity: 0.5;
                cursor: not-allowed;
        }

        .btn-scan-ocr.loading svg {
                animation: spin 1s linear infinite;
        }

        .rdv-card-item {
                background: var(--bg-card);
                border-radius: 12px;
                padding: 14px 14px 14px 18px;
                margin-bottom: 10px;
                border: 1px solid var(--border);
                border-left: 4px solid var(--notion-orange);
                display: flex;
                justify-content: space-between;
                align-items: center;
                cursor: pointer;
                transition: all 0.2s;
        }

        .rdv-card-item:hover {
                background: var(--notion-orange);
                border-color: transparent;
        }

        .rdv-info {
                flex: 1;
        }

        .rdv-date {
                font-weight: 600;
                font-size: 0.95rem;
                color: var(--text-primary);
                margin-bottom: 2px;
        }

        .rdv-time {
                font-size: 0.8rem;
                color: var(--text-muted);
        }

        .rdv-status {
                font-size: 0.7rem;
                padding: 4px 10px;
                border-radius: 8px;
                font-weight: 600;
        }

        .rdv-status.scheduled {
                background: rgba(59, 130, 246, 0.15);
                color: #3b82f6;
        }

        .rdv-status.completed {
                background: rgba(34, 197, 94, 0.15);
                color: #22c55e;
        }

        .rdv-status.cancelled {
                background: rgba(239, 68, 68, 0.15);
                color: #ef4444;
        }

        .techniques-select {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 8px;
        }

        .technique-tag {
                padding: 8px 14px;
                border-radius: 16px;
                font-size: 13px;
                cursor: pointer;
                border: 1px solid var(--border);
                background: var(--bg-primary);
                color: var(--text-secondary);
                transition: all 0.2s;
        }

        .technique-tag:hover {
                border-color: var(--accent);
        }

        .technique-tag.selected {
                background: var(--accent);
                color: var(--accent-contrast);
                border-color: var(--accent);
        }

        .profile-tags {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 6px;
        }

        .profile-tag {
                padding: 6px 12px;
                border-radius: 8px;
                font-size: 12px;
                font-weight: 500;
                cursor: pointer;
                border: 1px solid var(--border);
                background: var(--bg-primary);
                color: var(--text-secondary);
                transition: all 0.2s;
        }

        .profile-tag:hover {
                border-color: var(--notion-blue);
                background: var(--notion-blue);
                color: var(--notion-blue-text);
        }

        .profile-tag.selected {
                background: var(--notion-blue);
                color: var(--notion-blue-text);
                border-color: transparent;
        }/* Dashboard style SumUp */
.dashboard-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5px 12px;
}

.dashboard-greeting h1 {
    font-size: 1.4rem;
    font-weight: lighter;
    color: var(--text-primary);
    margin: 0;
}

.devis-switch-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}


.dashboard-balance-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dashboard-balance {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard-balance-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-actions {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dashboard-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dashboard-action-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dashboard-action-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.dashboard-action:hover .dashboard-action-icon {
    background: var(--notion-blue);
    border-color: transparent;
}

.dashboard-action:hover .dashboard-action-icon svg {
    stroke: var(--notion-blue-text);
}

.dashboard-action-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-card:hover {
    border-color: var(--border-hover);
}

.dashboard-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
}

.dashboard-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary);
}

.dashboard-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dashboard-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.dashboard-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.dashboard-quick-action:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.dashboard-quick-action-icon {
    width: 44px;
    height: 44px;
    background: var(--notion-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-quick-action-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--notion-blue-text);
}

.dashboard-quick-action-text {
    flex: 1;
}

.dashboard-quick-action-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-quick-action-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Dashboard RDV Card */
.dashboard-rdv-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.dashboard-rdv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dashboard-rdv-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dashboard-rdv-title svg {
    stroke: var(--accent);
}

.dashboard-rdv-count {
    background: var(--accent);
    color: var(--accent-contrast);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-rdv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-rdv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-elevated);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-rdv-item:last-child {
    margin-bottom: 0;
}

.dashboard-rdv-item:hover {
    background: var(--notion-blue);
}

.dashboard-rdv-item-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 8px;
    background: var(--accent);
    color: var(--accent-contrast);
    border-radius: 10px;
}

.dashboard-rdv-item-day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-rdv-item-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-rdv-item-info {
    flex: 1;
}

.dashboard-rdv-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dashboard-rdv-item-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}.header {
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Menu 3 points */
.menu-container {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-btn:hover {
    background: var(--bg-elevated);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: var(--shadow-card);
    display: none;
    overflow: hidden;
    z-index: 200;
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.menu-item:hover {
    background: var(--bg-elevated);
}

.menu-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.menu-user {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.menu-user-name {
    font-weight: 600;
    font-size: 14px;
}

.menu-user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--bg-primary);
    fill: none;
}

.logo-text {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.theme-toggle,
.cart-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.theme-toggle:hover,
.cart-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--notion-red);
    color: var(--notion-red-text);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}.login-overlay { position: fixed; inset: 0; background: var(--bg-primary); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.login-overlay.hidden { display: none; }
.login-container { width: 100%; max-width: 380px; padding: 20px; }
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo svg { width: 60px; height: 60px; stroke: var(--accent); fill: none; }
.login-logo h1 { font-size: 28px; font-weight: 700; color: var(--accent); margin-top: 16px; }
.login-logo p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.login-card { background: var(--bg-card); border-radius: 16px; padding: 32px 24px; border: 1px solid var(--border); }
.login-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 24px; text-align: center; }
.login-input-group { margin-bottom: 20px; }
.login-input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.login-input-group input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-primary); font-size: 15px; transition: all 0.2s; }
.login-input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1); }
.login-btn { width: 100%; padding: 14px; border-radius: 10px; border: none; background: var(--accent); color: var(--accent-contrast); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 8px; }
.login-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-error { background: rgba(239, 68, 68, 0.1); color: #EF4444; padding: 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; text-align: center; }
.login-error.show { display: block; }
.nav-tabs {
    flex-shrink: 0;
    display: flex;
    padding: 10px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

/* Navigation avec couleurs Notion */
.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab:nth-child(1).active {
    background: var(--notion-blue);
    color: var(--notion-blue-text);
    border-color: transparent;
}

.nav-tab:nth-child(2).active {
    background: var(--notion-orange);
    color: var(--notion-orange-text);
    border-color: transparent;
}

.nav-tab:nth-child(3).active {
    background: var(--notion-green);
    color: var(--notion-green-text);
    border-color: transparent;
}

.nav-tab:hover:not(.active) {
    border-color: var(--border-hover);
    color: var(--text-primary);
}/* Section Nouvelle Vente */
.sale-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
}

.sale-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sale-back-btn svg {
    width: 20px;
    height: 20px;
}

.sale-header h2 {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

.sale-type-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sale-type-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sale type selector (Facture/Devis/Pro forma) */
.sale-type-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.sale-type-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sale-type-btn:hover {
    color: var(--text-primary);
}

.sale-type-btn.active {
    background: var(--accent);
    color: white;
}

.devis-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.devis-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.devis-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}

.devis-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.devis-switch input:checked+.devis-switch-slider {
    background: rgba(34, 197, 94, 0.4);
}

.devis-switch input:checked+.devis-switch-slider:before {
    transform: translateX(20px);
    background: var(--accent);
}

.sale-payment-section {
    margin-bottom: 16px;
}

.sale-payment-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sale-payment-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sale-payment-card {
    flex: 1;
    min-width: 60px;
    padding: 10px 8px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-payment-card svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
}

.sale-payment-card span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sale-payment-card:hover {
    border-color: var(--text-muted);
}

.sale-payment-card.active {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

.sale-payment-card.active svg {
    stroke: var(--accent);
}

.sale-payment-card.active span {
    color: var(--accent);
}

/* Sale Payment List - Style ligne comme options */
.sale-payment-list {
    display: flex;
    flex-direction: column;
}

.sale-payment-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    width: 100%;
}

.sale-payment-row:hover {
    background: var(--bg-elevated);
}

.sale-payment-row.active {
    background: rgba(34, 197, 94, 0.1);
}

.sale-payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sale-payment-row.active .sale-payment-icon {
    background: rgba(34, 197, 94, 0.15);
}

.sale-payment-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
}

.sale-payment-row.active .sale-payment-icon svg {
    stroke: var(--accent);
}

.sale-payment-label {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sale-payment-row.active .sale-payment-label {
    color: var(--accent);
}

.sale-payment-check {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.sale-payment-row.active .sale-payment-check {
    opacity: 1;
}

/* Sale Payment Grid - Boutons style dashboard */
.sale-payment-grid {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sale-payment-grid::-webkit-scrollbar {
    display: none;
}

.sale-payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 64px;
    flex-shrink: 0;
}

.sale-payment-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.sale-payment-btn.active {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.08);
}

.sale-payment-btn-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-payment-btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.sale-payment-btn.active .sale-payment-btn-icon {
    background: var(--accent);
}

.sale-payment-btn.active .sale-payment-btn-icon svg {
    stroke: white;
}

.sale-payment-btn span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sale-payment-btn.active span {
    color: var(--accent);
    font-weight: 600;
}

.stripe-link-option {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.stripe-link-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.stripe-link-checkbox input {
    display: none;
}

.stripe-link-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stripe-link-checkbox input:checked+.stripe-link-checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.stripe-link-checkbox input:checked+.stripe-link-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.stripe-link-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.stripe-link-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-left: 30px;
}

/* Sale Options List (Bottom sheet simplifié) */
.sale-options-list {
    display: flex;
    flex-direction: column;
}

.sale-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    width: 100%;
}

.sale-option-btn:hover {
    background: var(--bg-elevated);
}

.sale-option-btn.has-value,
.sale-option-toggle.has-value {
    background: rgba(34, 197, 94, 0.15) !important;
}

.sale-option-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sale-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sale-option-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

.sale-option-content {
    flex: 1;
    min-width: 0;
}

.sale-option-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sale-option-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sale-option-sublabel {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sale-option-arrow {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    flex-shrink: 0;
}

/* Sub-Modals */
.sub-modal {
    z-index: 1001;
}

.modal-back {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.modal-back:hover {
    background: var(--bg-elevated);
}

.modal-back svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.sub-modal-input-group {
    margin-bottom: 16px;
}

.sub-modal-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-with-suffix {
    display: flex;
    gap: 8px;
}

.input-with-suffix input {
    flex: 2;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: right;
}

.input-with-suffix select {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    padding: 12px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.input-with-suffix .input-suffix {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.btn-block {
    width: 100%;
}

/* Sale Action Cards - Style Product Cards */
.sale-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.sale-action-card:hover {
    background: var(--bg-elevated);
}

.sale-action-card:active {
    transform: scale(0.98);
}

.sale-action-card-empty,
.sale-action-card-filled {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.sale-action-card-filled {
    display: none;
}

.sale-action-card.has-client .sale-action-card-empty {
    display: none;
}

.sale-action-card.has-client .sale-action-card-filled {
    display: flex;
}

.sale-action-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.sale-action-card-icon svg {
    width: 22px;
    height: 22px;
}

.sale-action-card-content {
    flex: 1;
    min-width: 0;
}

.sale-action-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.sale-action-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sale-action-card-arrow {
    flex-shrink: 0;
}

.sale-action-card-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

.sale-action-card-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--notion-red);
    border: none;
    color: var(--notion-red-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sale-action-card-remove:hover {
    opacity: 0.8;
}

/* Sale Client Card States */
.sale-client-card-empty {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sale-client-card-filled {
    display: none;
}

/* Card client sélectionné - même style que les produits */
#sale-client-card.has-client {
    background: var(--bg-elevated) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Card paiement/options sélectionné */
#sale-payment-card.has-payment,
#sale-options-card.has-payment {
    background: var(--bg-elevated) !important;
}

.sale-card {
    background: var(--bg-card);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-card:active {
    transform: scale(0.98);
}

.sale-card-client {
    border: 2px dashed var(--border);
    margin-bottom: 16px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-card-client:hover {
    border-color: var(--text-muted);
}

.sale-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sale-card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.sale-card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
}

.sale-card-plus {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 8px;
}

.sale-card-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sale-card-filled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    width: 100%;
}

.sale-client-info {
    flex: 1;
}

.sale-client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sale-client-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sale-client-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--notion-red);
    color: var(--notion-red-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.sale-card-product {
    border: 1px solid var(--border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.sale-card-product:hover {
    border-color: var(--accent);
}

.sale-card-product-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-card-product-icon svg {
    width: 26px;
    height: 26px;
}

.sale-card-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sale-card-product-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sale-items-section {
    margin-top: 20px;
}

.sale-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sale-items-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.sale-items-count {
    background: var(--notion-blue);
    color: var(--notion-blue-text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sale-items-list {
    /* Pas de scroll séparé - la page scroll naturellement */
}

.sale-item {
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sale-item-info {
    flex: 1;
}

/* Bouton Ajouter Produit - Style compact */
.sale-add-product-btn {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-add-product-btn:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

.sale-add-product-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--notion-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-add-product-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--notion-green-text);
}

.sale-add-product-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sale-add-product-btn:hover span {
    color: var(--accent);
}

.sale-item-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.sale-item-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sale-item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-right: 10px;
}

.sale-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--notion-red);
    color: var(--notion-red-text);
    font-size: 16px;
    cursor: pointer;
}

.sale-total-card {
    background: transparent;
    margin: 8px 0;
}

.sale-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.sale-total-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sale-total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sale-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
}

.sale-detail-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sale-detail-amount {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

#sale-remise-line .sale-detail-amount {
    color: var(--accent-color);
}

.sale-validate-btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sale-validate-btn svg {
    width: 20px;
    height: 20px;
}

.sale-client-option {
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sale-client-option:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
}

.sale-client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--notion-blue);
    color: var(--notion-blue-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.sale-client-avatar.pro {
    background: var(--notion-orange);
    color: var(--notion-orange-text);
}

.sale-client-option-info {
    flex: 1;
    min-width: 0;
}

.sale-client-option-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sale-client-option-name .client-badge-pro {
    font-size: 10px;
    padding: 2px 6px;
    margin-left: auto;
}

.sale-client-option-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.sale-client-option-detail svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.sale-client-chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

.sale-catalog-item {
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.sale-catalog-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.sale-catalog-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sale-catalog-item-code {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sale-catalog-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

/* Contrôles quantité dans le catalogue */
.catalog-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.catalog-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.catalog-qty-btn:hover {
    background: var(--bg-elevated);
}

.catalog-qty-btn.minus:hover {
    background: var(--notion-red);
    color: var(--notion-red-text);
}

.catalog-qty-btn.plus:hover {
    background: var(--accent);
    color: var(--accent-contrast);
}

.catalog-qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.catalog-qty-input {
    width: 48px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    border: none;
    padding: 4px 0;
    -moz-appearance: textfield;
}

.catalog-qty-input::-webkit-outer-spin-button,
.catalog-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.catalog-qty-input:focus {
    outline: none;
    background: var(--bg-elevated);
    border-radius: 4px;
}

.sale-catalog-item.selected {
    background: var(--accent-muted, rgba(34, 197, 94, 0.1));
    border-color: var(--accent);
}

.sale-card-notes {
    border: 2px dashed var(--border);
    margin-bottom: 16px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-card-notes:hover {
    border-color: var(--text-muted);
}

.sale-card-notes-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.sale-card-notes-icon {
    width: 36px;
    height: 36px;
}

.sale-card-notes-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
}

.sale-card-notes-plus {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-muted);
}

.sale-card-notes-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sale-card-notes-filled {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    width: 100%;
    gap: 12px;
}

.sale-notes-preview {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sale-notes-edit {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sale-notes-edit:hover {
    background: var(--notion-blue);
    color: var(--notion-blue-text);
}

.sale-notes-template-btn {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-notes-template-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
    color: var(--accent);
}
/* ========== BOTTOM SHEET PRODUIT ========== */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bottom-sheet-overlay.show .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet-tall {
    max-height: 90vh;
    min-height: 70vh;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.category-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.category-card-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.category-card-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-card-name {
    font-size: 1rem;
    font-weight: lighter;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.category-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.category-card-btn {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.category-card-btn.delete:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: #dc2626;
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 8px;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.bottom-sheet-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-sheet-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bottom-sheet-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bottom-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bottom-sheet-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.bottom-sheet-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-sheet-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bottom-sheet-icon-btn:hover {
    background: var(--border-hover);
    color: var(--text-primary);
}

.bottom-sheet-icon-btn svg {
    width: 18px;
    height: 18px;
}

.bottom-sheet-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Client Action List - New Design */
.client-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.client-action-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.client-action-item:active {
    transform: scale(0.98);
}

.client-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-action-icon.add {
    background: var(--primary-color);
    color: white;
}

.client-action-content {
    flex: 1;
    min-width: 0;
}

.client-action-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.client-action-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.client-action-chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

/* Client Options Grid (legacy) */
.client-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.client-option-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.client-option-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.client-option-card:active {
    transform: scale(0.98);
}

.client-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-option-icon svg {
    width: 24px;
    height: 24px;
}

.client-option-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.client-option-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Style bouton ajouter vente (pointillés) */
.client-option-add {
    border: 2px dashed var(--border);
    background: transparent;
    position: relative;
}

.client-option-add:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.client-option-add-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.client-option-add-icon svg {
    width: 24px;
    height: 24px;
}

.client-option-add-plus {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.client-option-add-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Product Detail Card */
.product-detail-card {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.product-detail-price-big {
    margin-bottom: 8px;
}

.product-detail-price-big .price-ttc {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-detail-price-big .price-ht {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-detail-info h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-detail-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.product-detail-price {
    text-align: right;
}

.product-detail-price .price-ttc {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-detail-price .price-ht {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-badge.category {
    background: var(--notion-blue);
    color: var(--notion-blue-text);
}

.product-badge.stock {
    background: var(--notion-green);
    color: var(--notion-green-text);
}

.product-badge.stock.low {
    background: var(--notion-orange);
    color: var(--notion-orange-text);
}

.product-badge.stock.out {
    background: var(--notion-red);
    color: var(--notion-red-text);
}

.product-badge.tva {
    background: var(--notion-purple);
    color: var(--notion-purple-text);
}

.product-badge.location {
    background: var(--notion-gray);
    color: var(--notion-gray-text);
}

.product-badge.sales {
    background: var(--notion-yellow);
    color: var(--notion-yellow-text);
    cursor: pointer;
}

.product-badge.sales:hover {
    opacity: 0.8;
}

/* Badges urgence devis */
.devis-urgency {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.devis-urgency.urgent-expired {
    background: #e0e0e0;
    color: #888;
    opacity: 0.7;
}

[data-theme="dark"] .devis-urgency.urgent-expired {
    background: #000;
    color: #555;
}

.devis-urgency.urgent-critical {
    background: var(--notion-red);
    color: var(--notion-red-text);
}

.devis-urgency.urgent-warning {
    background: var(--notion-yellow);
    color: var(--notion-yellow-text);
}

.devis-urgency.urgent-ok {
    background: var(--notion-green);
    color: var(--notion-green-text);
}

.devis-urgency.urgent-safe {
    background: var(--notion-blue);
    color: var(--notion-blue-text);
}

/* Devis Status Badges */
.devis-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.devis-status.devis-draft {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.devis-status.devis-sent {
    background: var(--notion-blue);
    color: var(--notion-blue-text);
}

.devis-status.devis-signed {
    background: var(--notion-green);
    color: var(--notion-green-text);
}

.devis-status.devis-rejected {
    background: var(--notion-red);
    color: var(--notion-red-text);
}

/* Devis envoyés avec alerte selon ancienneté */
.devis-status.devis-sent-ok {
    background: #22c55e;
    color: white;
}

.devis-status.devis-sent-warning {
    background: #f59e0b;
    color: white;
}

.devis-status.devis-sent-critical {
    background: #ef4444;
    color: white;
}

.devis-status.devis-converted {
    background: #8b5cf6;
    color: white;
}

/* Badge Relance Devis */
.devis-relance-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--notion-blue);
    color: var(--notion-blue-text);
    margin-left: 6px;
}

/* Payment Status Badges */
.payment-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.payment-pending {
    background: var(--notion-red);
    color: var(--notion-red-text);
}

.payment-status.payment-partial {
    background: var(--notion-orange);
    color: var(--notion-orange-text);
}

.payment-status.payment-paid {
    background: var(--notion-green);
    color: var(--notion-green-text);
}

.product-badge svg {
    width: 14px;
    height: 14px;
}

/* Slide Menu v2 - 29 Dec 2024 */
.slide-menu {
    position: absolute;
    top: 0;
    right: -262px;
    width: 250px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 100;
}

.slide-menu.open {
    right: 0;
}

.slide-menu-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    transition: background 0.2s;
}

.slide-menu-item:hover {
    background: var(--bg-tertiary);
}

.slide-menu-item svg {
    stroke: var(--text-secondary);
}

.slide-menu-logout svg {
    stroke: #EF4444;
}

.cart-badge-slide {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Floating Action Button Scanner */
.fab-scanner {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--notion-blue);
    color: var(--notion-blue-text);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-scanner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.fab-scanner:active {
    transform: scale(0.95);
}

.fab-scanner svg {
    stroke: currentColor;
}

.product-detail-description {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-action-main {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.product-action-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-action-main svg {
    width: 20px;
    height: 20px;
}

.product-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-action-secondary {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.product-action-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.product-action-secondary svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   DOCUMENTS / MÉDIATHÈQUE
   ============================================ */

.document-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-elevated);
    margin-bottom: 20px;
}

.document-upload-zone:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.document-upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
    transform: scale(1.02);
}

.document-upload-icon {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.document-upload-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.document-upload-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.documents-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.documents-empty svg {
    opacity: 0.4;
    margin-bottom: 12px;
}

.documents-empty p {
    font-size: 0.9rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.document-item:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.document-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon.pdf {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.document-icon.image {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.document-icon.doc {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.document-icon.excel {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.document-icon.other {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.document-icon svg {
    width: 22px;
    height: 22px;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.document-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.document-action-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.document-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.document-action-btn svg {
    width: 18px;
    height: 18px;
}

.document-preview {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Document upload progress */
.document-uploading {
    opacity: 0.6;
    pointer-events: none;
}

.document-uploading .document-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Document section header */
.documents-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.documents-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

/* ============================================
   DOCUMENT VIEWER BOTTOM SHEET
   ============================================ */

.document-viewer-sheet {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.document-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.document-viewer-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 12px;
}

.document-viewer-actions {
    display: flex;
    gap: 8px;
}

.document-viewer-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.document-viewer-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.document-viewer-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 60vh;
}

.document-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.document-viewer-pdf {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: 8px;
}

.document-viewer-unsupported {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

.document-viewer-unsupported-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 16px;
    color: var(--text-tertiary);
}

.document-viewer-unsupported-icon svg {
    width: 32px;
    height: 32px;
}

.document-viewer-unsupported p {
    margin-bottom: 8px;
}

.document-viewer-unsupported-name {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    word-break: break-all;
}

/* ============================================
   CATEGORY INPUT & MANAGER
   ============================================ */

.category-input-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
}

.category-input-wrapper input {
    flex: 1;
    cursor: pointer;
}

.category-add-btn {
    width: 44px;
    height: 44px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.category-add-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

/* Category suggestions dropdown */
.category-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 52px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-dropdown);
}

.category-suggestions.show {
    display: block;
}

.category-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.category-suggestion-item:hover {
    background: var(--bg-hover);
}

.category-suggestion-item:first-child {
    border-radius: 12px 12px 0 0;
}

.category-suggestion-item:last-child {
    border-radius: 0 0 12px 12px;
}

.category-suggestion-item:only-child {
    border-radius: 12px;
}

.category-suggestion-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-suggestion-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Category Tags Scroll (horizontal like mobile tabs) */
.category-tags-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px 12px 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tags-scroll::-webkit-scrollbar {
    display: none;
}

.category-tags-scroll:empty::before {
    content: "Aucune catégorie";
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Category Label Row */
.category-input-row {
    display: flex;
    gap: 8px;
}

.category-input-row input {
    flex: 1;
}

/* Category Input with Button Inside */
.category-input-with-btn {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.category-input-with-btn .category-selected-area {
    border: none;
    border-radius: 0;
    background: transparent;
}

.category-inline-btn {
    width: 40px;
    height: 40px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.category-inline-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Category Selected Area */
.category-selected-area {
    flex: 1;
    min-height: 44px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.category-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.category-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-selected-badge .remove-category {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.category-selected-badge .remove-category:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Category Filter Accordion */
.category-cards-accordion,
.client-type-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-cards-accordion.open,
.client-type-accordion.open {
    max-height: 100px;
}

/* Category Filter Scroll (product list) */
.category-filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-filter-scroll::-webkit-scrollbar {
    display: none;
}

.category-filter-item {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.category-filter-item:hover {
    background: var(--bg-input);
}

.category-filter-item.active {
    border-color: currentColor;
}

.category-filter-add {
    border: 2px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 20px;
    line-height: 1;
}

.category-filter-add:hover {
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}

.category-manage-btn {
    width: 44px;
    height: 44px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.category-manage-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

/* Category Dropdown */
.category-dropdown-wrapper,
.univers-dropdown-wrapper {
    position: relative;
}

.univers-dropdown-wrapper .category-dropdown {
    left: auto;
    right: 0;
}

.category-dropdown-wrapper input,
.univers-dropdown-wrapper input {
    cursor: pointer;
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(200% + 12px);
    max-width: calc(100vw - 34px);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-top: 9px;
    z-index: 100;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-dropdown::-webkit-scrollbar {
    display: none;
}

.category-dropdown.hidden {
    display: none;
}

.category-dropdown:empty::before {
    content: "Aucune catégorie - Cliquez + pour créer";
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: 4px 0;
    white-space: nowrap;
}

.category-dropdown-item {
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.category-dropdown-item:hover {
    transform: scale(1.05);
}

.category-dropdown-item.selected {
    border-color: currentColor;
}

/* Category Add Row */
.category-add-row {
    display: flex;
    gap: 10px;
}

.category-add-row input {
    flex: 1;
    width: auto !important;
}

.category-add-btn-small {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
}

/* Category Tags List (legacy - keep for other uses) */
.category-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 4px 0;
}

.category-tag.editing {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.category-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.category-tag-name {
    color: inherit;
}

.category-tag-delete {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 4px;
}

.category-tag:hover .category-tag-delete {
    opacity: 1;
}

.category-tag-delete:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Empty state */
.category-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== NOTES ========== */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.note-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.note-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.note-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.note-card-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-client {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 8px;
    font-weight: 500;
}

.note-client-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.note-client-option:hover {
    background: var(--bg-hover);
}

.note-client-option span {
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.note-client-option small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.note-edit-client-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.note-edit-client-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}

.note-edit-client-btn svg {
    flex-shrink: 0;
}

/* ========== ÉCRAN DE VEILLE ========== */
.lockscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lockscreen.active {
    display: flex;
}

.lockscreen-content {
    text-align: center;
    padding: 40px;
}

.lockscreen-time {
    font-size: 5rem;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 10px;
}

.lockscreen-date {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-bottom: 60px;
}

.lockscreen-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================
   CHECKLIST ONBOARDING SYSTEM
   ========================================== */

.checklist-btn {
    position: relative;
}

.checklist-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.checklist-badge.hidden {
    display: none;
}

.checklist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.checklist-overlay.open {
    opacity: 1;
    visibility: visible;
}

.checklist-panel {
    position: fixed;
    right: -340px;
    top: 0;
    width: 320px;
    height: 100%;
    max-height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checklist-panel.open {
    right: 0;
}

.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.checklist-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.checklist-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.checklist-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.checklist-progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    margin: 0;
}

.checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary, var(--accent)));
    width: 0%;
    transition: width 0.5s ease;
}

.checklist-progress-text {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.checklist-progress-text span {
    font-weight: 600;
    color: var(--accent);
}

.checklist-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light, var(--border));
}

.checklist-item:hover {
    background: var(--bg-tertiary);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed:hover {
    opacity: 0.8;
}

.checklist-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    background: transparent;
}

.checklist-item.completed .checklist-check {
    background: var(--accent);
    border-color: var(--accent);
}

.checklist-check svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.checklist-item.completed .checklist-check svg {
    opacity: 1;
    transform: scale(1);
}

.checklist-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.checklist-content {
    flex: 1;
    min-width: 0;
}

.checklist-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.checklist-item.completed .checklist-label {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.checklist-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.checklist-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.checklist-item:hover .checklist-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.checklist-item.completed .checklist-arrow {
    display: none;
}

/* Celebration animation */
@keyframes checklistCelebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checklist-item.just-completed .checklist-check {
    animation: checklistCelebrate 0.5s ease;
}

/* Category headers */
.checklist-category {
    padding: 0;
}

.checklist-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
}

.checklist-category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checklist-category-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
}

/* All completed state */
.checklist-all-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.checklist-all-done-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.checklist-all-done-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.checklist-all-done-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    .checklist-panel {
        width: 100%;
        right: -100%;
    }
}

/* Checklist Highlight Animation - AI Guide Style */
@keyframes checklist-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes checklist-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.5), 0 0 10px rgba(34, 197, 94, 0.3), 0 0 15px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 0 20px rgba(34, 197, 94, 0.5), 0 0 30px rgba(34, 197, 94, 0.3);
    }
}

@keyframes checklist-border-dance {
    0% {
        border-color: rgba(34, 197, 94, 1);
    }
    25% {
        border-color: rgba(74, 222, 128, 1);
    }
    50% {
        border-color: rgba(134, 239, 172, 1);
    }
    75% {
        border-color: rgba(74, 222, 128, 1);
    }
    100% {
        border-color: rgba(34, 197, 94, 1);
    }
}

.checklist-highlight {
    position: relative !important;
    z-index: 100001 !important;
    border: 3px solid var(--notion-green) !important;
    border-radius: 12px !important;
    animation: checklist-border-dance 1s linear infinite, checklist-glow 2s ease-in-out infinite !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.5), 0 0 45px rgba(34, 197, 94, 0.3) !important;
    outline: 3px solid rgba(34, 197, 94, 0.4) !important;
    outline-offset: 3px !important;
}

.checklist-highlight::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed var(--notion-green);
    border-radius: 16px;
    animation: checklist-border-dance 2s linear infinite reverse;
    pointer-events: none;
    z-index: 100002;
}

.checklist-highlight::after {
    content: 'Clique ici';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--notion-green);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 100003;
    animation: bounce 1s ease infinite;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .checklist-highlight,
[data-theme="music"] .checklist-highlight,
[data-theme="green"] .checklist-highlight {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 0 20px rgba(34, 197, 94, 0.5), 0 0 30px rgba(34, 197, 94, 0.3), inset 0 0 20px rgba(34, 197, 94, 0.1);
}

