/* ===================================
   SYSTÈME DE GESTION DE FACTURES
   Proinfo83.fr - Admin Panel
   Thème sombre moderne avec couleurs Proinfo83
   =================================== */

/* Import de la police Outfit comme sur le site */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimisations tactiles pour mobile */
html {
    -webkit-tap-highlight-color: rgba(14, 165, 233, 0.2);
    -webkit-touch-callout: none;
    /* Prévenir le zoom accidentel */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Scroll fluide sur tous les navigateurs */
* {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

:root {
    /* Couleurs du thème Proinfo83 */
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: rgba(14, 165, 233, 0.15);
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Backgrounds sombres comme le site */
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --surface: #334155;
    --light-bg: #1e293b;
    
    /* Texte et bordures */
    --border-color: #475569;
    --text-dark: #e2e8f0;
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    
    /* Effets */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* Gradient comme le site */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    /* Prévenir le scroll horizontal */
    touch-action: pan-y;
}

/* Responsive images et média */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    width: 100%;
    object-fit: contain;
}

/* Responsive text - Éviter le débordement */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Header */
.admin-header {
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

/* Bouton hamburger - caché par défaut sur desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(14, 165, 233, 0.1);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation du bouton hamburger en X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* User info mobile - caché par défaut */
.mobile-user-info {
    display: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--surface);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.nav-icon {
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.btn-logout {
    padding: 8px 16px;
    background: var(--danger-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Bouton retour au site */
.btn-back-to-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4) !important;
    filter: brightness(1.1);
}

.btn-back-to-site:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3) !important;
}

/* Container principal */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    flex: 1;
    margin: 0;
}

.page-header > a,
.page-header > button,
.page-header .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 5px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    min-height: 36px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-success:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.btn-icon {
    display: inline-block;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.btn-icon:active {
    transform: scale(1.05);
    opacity: 0.8;
}

.btn-danger {
    color: var(--danger-color);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 48px;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.stat-primary { border-left: 4px solid var(--primary-color); }
.stat-success { border-left: 4px solid var(--success-color); }
.stat-warning { border-left: 4px solid var(--warning-color); }
.stat-danger { border-left: 4px solid var(--danger-color); }
.stat-revenue { border-left: 4px solid #8b5cf6; }
.stat-pending-amount { border-left: 4px solid #ec4899; }
.stat-clients { border-left: 4px solid #06b6d4; }

/* Sections */
.recent-section, .quick-actions {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

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

.section-header h2 {
    font-size: 24px;
    color: var(--text-dark);
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.action-card:hover::before {
    opacity: 0.1;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.action-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.action-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.action-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.data-table thead {
    background: var(--surface);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: var(--surface);
}

.data-table tfoot {
    background: var(--surface);
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.role-admin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.role-gestionnaire {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.role-lecteur {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info-color);
    color: #1e40af;
}

/* Filters */
.filters-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* Styles pour les inputs et selects dans les filtres */
.filters-section input[type="text"]:focus,
.filters-section select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.filters-section input[type="text"]:hover,
.filters-section select:hover {
    border-color: var(--primary-color);
}

.filters-section select option {
    padding: 10px;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.search-input, .filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--surface);
    color: var(--text-dark);
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background: var(--card-bg);
}

/* Forms */
.form-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.form-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Bouton de déverrouillage semi-caché */
.btn-unlock-hidden {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
    opacity: 0.3;
}

.btn-unlock-hidden:hover {
    opacity: 1;
    background: rgba(14, 165, 233, 0.1);
    transform: scale(1.1);
}

.btn-unlock-hidden:active {
    transform: scale(0.95);
}

/* ===== SIGNATURE PAD ===== */
.signature-container {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

#signature-canvas {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
    border: 3px dashed #0ea5e9;
    border-radius: 12px;
    cursor: crosshair;
    background: #ffffff;
    touch-action: none; /* Empêche le scroll pendant le dessin */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

#signature-canvas:hover {
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

#signature-canvas:active {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.signature-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

#clear-signature {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

#clear-signature:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#clear-signature:active {
    transform: translateY(0);
}

#signature-status {
    font-weight: 500;
}

/* Mobile responsive pour signature */
@media (max-width: 768px) {
    #signature-canvas {
        height: 150px;
    }
    
    .signature-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #clear-signature {
        width: 100%;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    background: var(--surface);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background: var(--card-bg);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

.form-group small a {
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Invoice Items */
.invoice-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.invoice-item-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.item-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.item-field input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text-dark);
    transition: all 0.3s;
}

.item-field input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Quote Items */
#quote-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#quote-items .item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    padding: 15px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

#quote-items .item-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

#quote-items .item-description,
#quote-items .item-quantity,
#quote-items .item-price,
#quote-items .item-total {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#quote-items .item-description::before,
#quote-items .item-quantity::before,
#quote-items .item-price::before,
#quote-items .item-total::before {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

#quote-items .item-description::before {
    content: 'Description';
}

#quote-items .item-quantity::before {
    content: 'Quantité';
}

#quote-items .item-price::before {
    content: 'Prix unitaire (€)';
}

#quote-items .item-total::before {
    content: 'Total (€)';
}

#quote-items .item-description input,
#quote-items .item-quantity input,
#quote-items .item-price input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text-dark);
    transition: all 0.3s;
}

#quote-items .item-description input:focus,
#quote-items .item-quantity input:focus,
#quote-items .item-price input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

#quote-items .item-total {
    justify-content: flex-end;
}

#quote-items .item-total .total-display {
    background: var(--dark-bg);
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: right;
}

#quote-items .btn-remove-item {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quote-items .btn-remove-item:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.item-total-display {
    background: var(--dark-bg) !important;
    font-weight: 600;
    color: var(--text-light) !important;
}

.item-actions {
    display: flex;
    align-items: flex-end;
}

/* Totals */
.totals-section {
    width: 100%;
    margin: 0;
    padding: 20px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.total-final {
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--text-dark);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
}

/* Invoice Preview */
.invoice-preview {
    background: var(--card-bg);
    padding: 60px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.invoice-header-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #0ea5e9, #8b5cf6) 1;
}

.company-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
    }
}

.company-info h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}

.company-info p {
    margin: 5px 0;
    color: var(--text-muted);
    text-align: center;
}

.invoice-info {
    text-align: right;
}

.invoice-info h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.client-info-section {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.client-info-section h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.client-info-section p {
    margin: 5px 0;
}

.invoice-items-section {
    margin-bottom: 40px;
}

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

.invoice-table thead {
    background: var(--gradient-primary);
    color: white;
}

.invoice-table th {
    padding: 15px;
    text-align: left;
}

.invoice-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.invoice-totals-section {
    margin-bottom: 40px;
}

.totals-table {
    max-width: 400px;
    margin-left: auto;
}

.invoice-notes-section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.invoice-footer-section {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    color: var(--text-muted);
}

    .page-actions {
        display: flex;
        gap: 15px;
        justify-content: flex-end;
        margin-bottom: 20px;
        align-items: center;
    }
    
    /* Forcer l'affichage du bouton sur mobile */
    @media (max-width: 768px) {
        .page-actions {
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: stretch !important;
            width: 100% !important;
        }
        
        .page-actions a,
        .page-actions .btn {
            width: 100% !important;
            margin: 0 !important;
        }
        
        /* Style visible des boutons */
        .page-header .btn-primary {
            background: linear-gradient(135deg, #0ea5e9, #8b5cf6) !important;
            color: white !important;
            border: 2px solid #0ea5e9 !important;
        }
    }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    overflow: auto;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 50px auto;
    padding: 0;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.close {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    background: var(--surface);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
}

.close:hover {
    color: var(--text-light);
    background: var(--danger-color);
    transform: rotate(90deg);
}

.modal-content form {
    padding: 30px;
    background: var(--card-bg);
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.actions .btn { text-decoration: none; }

/* Text utilities */
.text-danger {
    color: var(--danger-color);
}

/* Footer */
.admin-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
}

.footer-version {
    font-size: 12px;
    margin-top: 5px;
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Smartphones */
@media (max-width: 768px) {
    /* Navigation header */
    .admin-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 12px 15px;
        gap: 12px;
    }
    
    .header-left {
        flex: 1;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    /* Afficher le bouton hamburger sur mobile */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Cacher le user menu desktop sur mobile */
    .header-right {
        display: none;
    }
    
    /* Navigation principale en menu déroulant */
    .main-nav {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 65px);
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 99;
    }
    
    /* Menu ouvert */
    .main-nav.active {
        right: 0;
    }
    
    /* Liens de navigation en mode mobile */
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        justify-content: flex-start;
        gap: 15px;
        border-left: 3px solid transparent;
        transition: all 0.3s;
        font-size: 15px;
    }
    
    .nav-link:hover {
        background: rgba(14, 165, 233, 0.1);
        border-left-color: var(--primary-color);
    }
    
    .nav-link.active {
        background: rgba(14, 165, 233, 0.15);
        border-left-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    /* Afficher les infos utilisateur dans le menu mobile */
    .mobile-user-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        margin-top: auto;
        border-top: 2px solid var(--border-color);
        background: rgba(14, 165, 233, 0.05);
    }
    
    .mobile-user-info .user-name {
        color: var(--text-dark);
        font-weight: 600;
        font-size: 14px;
    }
    
    .mobile-user-info .btn-logout {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        background: var(--danger-color);
        color: white;
        border-radius: 8px;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }
    
    .mobile-user-info .btn-logout:hover {
        background: #dc2626;
        transform: translateY(-2px);
    }
    
    /* Overlay sombre quand le menu est ouvert */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Empêcher le scroll du body quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Container principal */
    .dashboard-container {
        padding: 10px 8px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Pages de devis et avenants - Pleine largeur sur mobile */
    body.quotes-page .dashboard-container,
    body.amendments-page .dashboard-container {
        padding: 10px 5px;
        margin: 0;
        width: 100%;
    }
    
    body.quotes-page .data-table,
    body.amendments-page .data-table {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    body.quotes-page .filters-section,
    body.amendments-page .filters-section {
        margin: 0 0 15px 0;
        padding: 12px 8px;
    }
    
    body.quotes-page .page-header,
    body.amendments-page .page-header {
        padding: 0 8px 12px 8px;
    }
    
    /* En-tête de page */
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
    
    .page-header h1 {
        font-size: 22px;
        line-height: 1.2;
        word-wrap: break-word;
        flex: none !important;
        width: 100% !important;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    /* Forcer l'affichage des boutons sur mobile */
    .page-header > a.btn-primary,
    .page-header > button.btn-primary,
    .page-header > a.btn,
    .page-header > button.btn,
    .page-header a.btn-primary,
    .page-header button.btn-primary,
    .page-header a.btn,
    .page-header button.btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        min-height: 48px !important;
        text-align: center !important;
        margin: 10px 0 !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    }
    
    /* Actions de page (boutons +) */
    .page-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .page-actions .btn {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 48px !important;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Grille de statistiques */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px 15px;
        min-height: auto;
    }
    
    .stat-value {
        font-size: 26px;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Actions rapides */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-card {
        padding: 15px;
        min-height: auto;
    }
    
    .action-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    /* Sections récentes */
    .recent-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .recent-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* Filtres */
    .filters-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
        margin-bottom: 0;
    }
    
    .filter-group label {
        font-size: 13px;
        margin-bottom: 5px;
        display: block;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 15px;
        padding: 12px;
        width: 100%;
        min-height: 44px;
    }
    
    /* Tableau de données - Amélioration mobile */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -8px;
        padding: 0 8px;
    }
    
    .data-table table {
        min-width: 100%;
        font-size: 12px;
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .data-table th {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Actions dans les tableaux */
    .action-buttons {
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-icon {
        padding: 8px;
        font-size: 18px;
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Formulaires - Optimisation mobile */
    .form-card {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .form-card h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
        display: block;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 14px;
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .form-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 35px;
    }
    
    /* Lignes d'articles de facture - Mobile */
    .invoice-items-container {
        margin: 0 -8px;
        padding: 0 8px;
    }
    
    .invoice-item-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 10px;
        background: var(--surface);
    }
    
    .item-field {
        margin-bottom: 0;
    }
    
    .item-field label {
        display: block;
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .item-field input,
    .item-field select {
        font-size: 16px;
        padding: 12px;
        min-height: 44px;
    }
    
    .remove-item-btn {
        position: relative;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        font-size: 15px;
        min-height: 44px;
    }
    
    #addItemBtn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        margin: 15px 0;
        min-height: 48px;
    }
    
    /* Section totaux - Mobile */
    .totals-section {
        padding: 15px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .total-row {
        font-size: 15px;
        padding: 10px 0;
    }
    
    .total-row.total-final {
        font-size: 20px;
        padding: 15px 0;
    }
    
    /* Aperçu de facture - Mobile */
    .invoice-preview {
        padding: 12px;
        margin: 10px -8px;
        border-radius: 10px;
    }
    
    .invoice-header-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .company-logo {
        padding: 15px;
    }
    
    .company-logo h1 {
        font-size: 24px !important;
    }
    
    .company-logo p {
        font-size: 11px;
    }
    
    .company-logo .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .company-logo .logo-circle span {
        font-size: 36px;
    }
    
    .invoice-info {
        text-align: center;
        padding: 12px;
    }
    
    .invoice-number-badge h2 {
        font-size: 28px !important;
    }
    
    .invoice-number-badge p {
        font-size: 13px;
    }
    
    .client-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .client-section h3 {
        font-size: 15px;
    }
    
    /* Tableau d'articles dans la facture */
    .items-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .items-table table {
        min-width: 100%;
        font-size: 11px;
    }
    
    .items-table th,
    .items-table td {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .items-table th {
        font-size: 10px;
    }
    
    /* Modal - Mobile */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 96%;
        margin: 15px auto;
        padding: 15px;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px;
        margin: -15px -15px 15px -15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .close {
        font-size: 32px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    /* Notes et footer de facture - Mobile */
    .invoice-notes-section,
    .invoice-footer-section {
        padding: 12px;
        font-size: 12px;
        margin: 12px 0;
        border-radius: 8px;
    }
    
    /* Login page - Mobile */
    .login-container {
        padding: 20px 15px;
        width: 96%;
        margin: 15px auto;
        border-radius: 12px;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .login-header h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    /* Setup page - Mobile */
    .setup-container {
        padding: 20px 15px;
        width: 96%;
        margin: 15px auto;
        border-radius: 12px;
    }
    
    .setup-header h1 {
        font-size: 26px;
    }
    
    .setup-header p {
        font-size: 13px;
    }
    
    .steps {
        flex-direction: column;
        gap: 8px;
        margin: 20px 0;
    }
    
    .step {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* Sélecteur de produits - Mobile */
    #productSelector {
        font-size: 16px;
        padding: 12px;
        min-height: 44px;
        width: 100%;
    }
    
    /* Empty state - Mobile */
    .empty-state {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .empty-state-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .empty-state h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Alert messages - Mobile */
    .alert {
        padding: 12px 15px;
        margin: 10px 0;
        border-radius: 8px;
        font-size: 14px;
    }
}

/* Très petits écrans (< 480px) */
@media (max-width: 480px) {
    /* Container ultra-compact */
    .dashboard-container {
        padding: 8px 5px;
    }
    
    /* Header */
    .page-header h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    /* Stats */
    .stat-card {
        padding: 10px 12px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    /* Cartes et sections */
    .form-card,
    .recent-section,
    .filters-section {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    /* Formulaires */
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    /* Boutons */
    .btn {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Facture */
    .invoice-preview {
        padding: 8px;
        margin: 8px -5px;
    }
    
    .company-logo h1 {
        font-size: 22px !important;
    }
    
    .company-logo .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    .company-logo .logo-circle span {
        font-size: 30px;
    }
    
    .invoice-number-badge h2 {
        font-size: 24px !important;
    }
    
    .invoice-number-badge p {
        font-size: 12px;
    }
    
    /* Tableau facture */
    .items-table table {
        font-size: 10px;
    }
    
    .items-table th,
    .items-table td {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        padding: 12px;
        margin: 10px auto;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    /* Menu hamburger */
    .main-nav {
        width: 260px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    /* Login & Setup */
    .login-container,
    .setup-container {
        width: 98%;
        padding: 15px 10px;
    }
    
    .login-header h1,
    .setup-header h1 {
        font-size: 24px;
    }
    
    /* Tableaux de données */
    .data-table th,
    .data-table td {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    /* Actions rapides */
    .action-card {
        padding: 12px;
    }
    
    .action-icon {
        font-size: 36px;
    }
    
    /* Total facture */
    .total-row {
        font-size: 14px;
    }
    
    .total-row.total-final {
        font-size: 18px;
    }
}

/* Animations personnalisées */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media print {
    body {
        background: white;
    }
    
    .invoice-preview {
        box-shadow: none;
        padding: 0;
    }
}

/* ==============================
   Thème dédié: Notes de frais
   ============================== */
.expenses-page .page-header h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.expenses-page .filters input[type="text"],
.expenses-page .filters select {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-dark);
    transition: all .2s ease;
}

.expenses-page .filters input[type="text"]:focus,
.expenses-page .filters select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.expenses-page .data-table thead {
    background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(139,92,246,.15));
}

.expenses-page .data-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.10);
}

.expenses-page .status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.expenses-page .s-brouillon { background:#1f2937; color:#cbd5e1; }
.expenses-page .s-soumis { background:#1e3a8a; color:#bfdbfe; }
.expenses-page .s-approuve { background:#065f46; color:#a7f3d0; }
.expenses-page .s-rejete { background:#7f1d1d; color:#fecaca; }
.expenses-page .s-rembourse { background:#0f766e; color:#a7f3d0; }

.expenses-page td:nth-child(5) { /* Montant */
    font-weight: 700;
    color: #c7f9cc;
}

.expenses-page .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

