.container-wide {
    width: calc(100vw - 40px);
    max-width: none;
    padding: 0 20px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #5a67d8;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #4c51bf;
    background: #e6fffa;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    color: #667eea;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.upload-subtext {
    color: #718096;
    margin: 0;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #5a67d8;
}

.files-list {
    margin-top: 20px;
}

.files-indicator {
    background: #e8f5e8;
    border: 1px solid #4ade80;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
}

.files-count {
    color: #16a34a;
    font-weight: 600;
    font-size: 16px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-info {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 90px);
    margin-right: 15px;
}

.file-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    white-space: normal;
    display: block;
    max-width: 100%;
}

.file-size {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
}

.file-remove {
    background: #fed7d7;
    color: #c53030;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
    max-width: 70px;
    transition: all 0.2s;
}

.file-remove:hover {
    background: #feb2b2;
    transform: translateY(-1px);
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.btn-process {
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
}

.btn-supplier {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-supplier:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-products {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

.btn-products:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 178, 172, 0.4);
}

.btn-process:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 20px;
    height: 8px;
    position: relative;
    display: none;
}

.progress-bar.show {
    display: block;
}

.progress-fill {
    background: linear-gradient(90deg, #38b2ac 0%, #319795 100%);
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    display: none;
}

.stats-section.show {
    display: grid;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    text-align: center;
    border-left: 4px solid #e2e8f0;
}

.stat-card.success {
    border-left-color: #38a169;
}

.stat-card.warning {
    border-left-color: #d69e2e;
}

.stat-card.error {
    border-left-color: #e53e3e;
}

.stat-card.info {
    border-left-color: #3182ce;
}

.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
}

.results-section {
    display: none;
}

.results-section.show {
    display: block;
}

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

.results-header h2 {
    margin: 0;
    color: #2d3748;
}

.results-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.btn-export {
    background: #38b2ac;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.results-table th {
    background: #f7fafc;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    white-space: nowrap;
}

.results-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    vertical-align: top;
    max-width: 200px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.results-table tbody tr:hover {
    background: #f8f9ff;
}

.status-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-success {
    background: #c6f6d5;
    color: #25543e;
}

.status-warning {
    background: #fef5e7;
    color: #744210;
}

.status-error {
    background: #fed7d7;
    color: #742a2a;
}

.similarity-score {
    font-weight: 600;
}

.similarity-high {
    color: #38a169;
}

.similarity-medium {
    color: #d69e2e;
}

.similarity-low {
    color: #e53e3e;
}

.cross-check-ok {
    color: #38a169;
    font-weight: 600;
    font-size: 12px;
}

.cross-check-error {
    color: #e53e3e;
    font-weight: 600;
    font-size: 11px;
}

/* Bouton de recherche SIRENE - VERSION COMPACTE */
.btn-search-sirene {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    gap: 4px;
}

.btn-search-sirene:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.btn-search-sirene:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Icône plus petite dans le bouton */
.btn-search-sirene::before {
    content: '🔍';
    font-size: 10px;
}

/* Bouton de modification SIRENE - VERSION COMPACTE */
.btn-modify-sirene {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-modify-sirene:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(243, 156, 18, 0.3);
}

.btn-modify-sirene:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.verification-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.siret-cell {
    font-family: monospace;
    font-weight: 500;
}

/* Liens de fichiers JSON */
.file-link {
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.file-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Colonnes de données sources (issues des JSON) */
.source-data-cell {
    background-color: #fffbf0;
}

/* Responsive design pour le tableau */
@media (max-width: 1200px) {
    .results-table th,
    .results-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .results-table td {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 10px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .table-wrapper {
        overflow-x: scroll;
    }
    
    .results-table {
        min-width: 900px;
    }
}

/* Amélioration des stats cards */
.stat-card {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    font-size: 28px;
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Styles pour les modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1050; /* Au-dessus de la navbar (z-index: 1000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content-small {
    width: 60%;
    max-width: 600px;
}

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

.modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close-modal {
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.duplicates-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f7fafc;
    border-left: 4px solid #3182ce;
    border-radius: 6px;
}

.duplicates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.duplicates-table thead {
    background-color: #f7fafc;
}

.duplicates-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.duplicates-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.duplicates-table tbody tr:hover {
    background-color: #f7fafc;
}

.sources-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sources-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.sources-info {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 6px;
}

.sources-info p {
    margin: 8px 0;
}

.sources-list h3 {
    margin-bottom: 15px;
    color: #4a5568;
}

.sources-list ul {
    list-style-type: none;
    padding: 0;
}

.sources-list li {
    padding: 10px;
    margin-bottom: 8px;
    background-color: #edf2f7;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.sources-list li:hover {
    background-color: #e2e8f0;
}

/* Améliorer l'apparence des tooltips */
[title] {
    cursor: help;
}

/* ===================================================================== */
/* SOLUTION SIMPLIFIÉE - Optimisation UX/UI du Tableau de Résultats */
/* ===================================================================== */

/* Table avec largeurs fixes pour éviter décalages */
.results-table {
    width: 100%;
    table-layout: fixed;
    position: relative;
    border-collapse: collapse;
}

/* PAS DE STICKY - Cause des problèmes de décalage */
/* Colonnes avec largeurs FIXES pour alignment parfait */

.results-table th:nth-child(1), /* SIRET Source */
.results-table .siret-cell {
    width: 130px;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 500;
    font-size: 12px;
}

.results-table th:nth-child(4), /* Dénom. Fournisseur Lu */
.results-table .denom-source-cell {
    width: 200px;
    font-weight: 600;
    font-size: 13px;
}

.results-table th:nth-child(10), /* Statut */
.results-table .statut-cell {
    width: 85px;
    text-align: center;
}

/* Largeurs FIXES pour toutes les colonnes - Évite décalages */
.results-table th:nth-child(2), /* TVA Intracommunautaire */
.results-table .tva-cell {
    width: 100px;
    text-align: center;
}

.results-table th:nth-child(3), /* SIRET Vérifié */
.results-table .siret-verifie-cell {
    width: 120px;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 500;
    font-size: 12px;
}

.results-table th:nth-child(5), /* Type */
.results-table .type-cell {
    width: 55px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.results-table th:nth-child(6), /* Dénom. Officielle */
.results-table .denom-officielle-cell {
    width: 220px;
    font-size: 12.5px;
}

.results-table th:nth-child(7), /* Nom Établissement */
.results-table .nom-etablissement-cell {
    width: 180px;
    font-size: 12px;
}

.results-table th:nth-child(8), /* État */
.results-table .etat-cell {
    width: 65px;
    text-align: center;
}

.results-table th:nth-child(9), /* SIRET Siège */
.results-table .siret-siege-cell {
    width: 135px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 11px;
}

.results-table th:nth-child(11), /* Raison */
.results-table .raison-cell {
    width: 130px;
    text-align: left;
    white-space: normal;
    font-size: 12px;
}

.results-table th:nth-child(12), /* Actions */
.results-table .actions-cell {
    width: 120px;
    white-space: normal;
    overflow: visible;
    font-size: 12px;
}

.results-table th:nth-child(13), /* Doublon */
.results-table .doublon-cell {
    width: 50px;
    text-align: center;
}

.results-table th:nth-child(14), /* Source */
.results-table .source-file-cell {
    width: 40px;
    text-align: center;
}

/* Amélioration de l'espacement et lisibilité */
.results-table th,
.results-table td {
    padding: 8px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
}

.results-table th:last-child,
.results-table td:last-child {
    border-right: none;
}

/* Headers multi-lignes pour meilleure lisibilité */
.results-table th {
    white-space: normal;
    line-height: 1.3;
    font-size: 12px;
}

/* Tooltips visuels sur contenu tronqué */
.results-table td[title] {
    cursor: help;
    position: relative;
}

.results-table td[title]:hover {
    background-color: #f0f4ff !important;
}

/* Alternance visuelle colonnes sources vs API - AMÉLIORÉE */
.source-data-cell {
    background-color: #fffbf0 !important;
    font-weight: 500;
}

.results-table tbody tr:hover .source-data-cell {
    background-color: #fff8e1 !important;
}

/* Séparateurs visuels entre groupes de colonnes */
.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    border-right: 2px solid #cbd5e0 !important;
}

.results-table th:nth-child(9),
.results-table td:nth-child(9) {
    border-right: 2px solid #cbd5e0 !important;
}

.results-table th:nth-child(12),
.results-table td:nth-child(12) {
    border-right: 2px solid #cbd5e0 !important;
}

/* Amélioration visuelle des colonnes vides "..." */
.results-table td:empty::after,
.results-table td:contains("...")::after {
    content: '-';
    color: #cbd5e0;
    font-weight: 300;
}

/* ===================================== */
/* Styles pour entreprises étrangères */
/* ===================================== */

/* Badge indicateur pays étranger */
.foreign-indicator {
    display: inline-block;
    font-size: 1.1em;
    margin-right: 4px;
    cursor: help;
}

/* Numéro TVA intracommunautaire */
.tva-number {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9em;
    color: #1976d2;
    font-weight: 500;
    background-color: #e3f2fd;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: help;
}

/* Cellule TVA */
.tva-cell {
    text-align: center;
}

/* Bouton de recherche SIRENE pour entreprises étrangères */
.btn-search-sirene {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.btn-search-sirene:hover {
    background-color: #1565c0;
}

.btn-search-sirene:active {
    background-color: #0d47a1;
}

/* Statuts spécifiques pour entreprises étrangères */
.status-badge.status-foreign-pending {
    background-color: #ff9800;
    color: white;
}

.status-badge.status-foreign-verified {
    background-color: #4CAF50;
    color: white;
}

.status-badge.status-foreign-not-found {
    background-color: #f44336;
    color: white;
}

/* Info entreprise étrangère dans la modale */
.foreign-company-info {
    background-color: #e3f2fd;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 4px solid #1976d2;
}

.foreign-company-info strong {
    color: #1976d2;
}

/* ===================================================================== */
/* Toggle Vue Compacte / Détaillée */
/* ===================================================================== */

.view-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    padding: 8px 14px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.view-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.view-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.view-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.view-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.view-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.view-toggle input:checked + .view-toggle-slider {
    background-color: #38b2ac;
}

.view-toggle input:checked + .view-toggle-slider:before {
    transform: translateX(26px);
}

.view-toggle-slider:hover {
    background-color: #a0aec0;
}

.view-toggle input:checked + .view-toggle-slider:hover {
    background-color: #319795;
}

/* Colonnes masquables en mode compacte */
.results-table.compact-view th.hideable-column,
.results-table.compact-view td.hideable-column {
    display: none;
}

/* Indicateur visuel pour colonnes secondaires */
.hideable-column {
    opacity: 0.85;
}

.results-table:not(.compact-view) .hideable-column {
    background-color: #fafafa;
}

/* ===================================================================== */
/* Améliorations de la hiérarchie visuelle */
/* ===================================================================== */

/* Colonnes importantes avec police légèrement plus grande */
.results-table td:nth-child(1),  /* SIRET Source */
.results-table td:nth-child(4),  /* Dénom. Fournisseur */
.results-table td:nth-child(10) { /* Statut */
    font-weight: 500;
}

/* Hover global avec transition douce */
.results-table tbody tr {
    transition: background-color 0.15s ease;
}

/* Amélioration de la lisibilité des badges - optimisé pour colonne réduite */
.status-badge {
    display: inline-block;
    min-width: 65px;
    text-align: center;
}

/* Alternance subtile de couleur pour faciliter le suivi des lignes */
.results-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.results-table tbody tr:nth-child(even):hover {
    background-color: #f8f9ff;
}

/* Bordure gauche colorée selon le statut */
.results-table tbody tr {
    border-left: 3px solid transparent;
}

.results-table tbody tr:has(.status-success) {
    border-left-color: #38a169;
}

.results-table tbody tr:has(.status-warning) {
    border-left-color: #d69e2e;
}

.results-table tbody tr:has(.status-error) {
    border-left-color: #e53e3e;
}

/* Ombres légères sur colonnes sticky au scroll */
.table-wrapper {
    position: relative;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f7fafc;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Animation subtile sur changement de vue */
.results-table th.hideable-column,
.results-table td.hideable-column {
    transition: opacity 0.3s ease, max-width 0.3s ease;
}

/* Indicateur visuel pour cellules avec tooltip */
.results-table td[title]:not([title=""]):not([title="N/A"]):not([title="-"])::after {
    content: '\2026'; /* … */
    position: absolute;
    right: 6px;
    color: #a0aec0;
    font-weight: bold;
    pointer-events: none;
}

.results-table td[title]:not([title=""]):not([title="N/A"]):not([title="-"]) {
    position: relative;
    padding-right: 18px !important;
}

/* Amélioration des headers du tableau */
.results-table thead th {
    cursor: help;
    position: relative;
}

.results-table thead th:hover {
    background-color: #edf2f7;
}

/* Badge "Type" plus visible - optimisé pour colonne réduite */
.type-cell span {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.type-cell span[style*="2196F3"] {
    background-color: #e3f2fd;
}

.type-cell span[style*="FF9800"] {
    background-color: #fff3e0;
}

/* État badges - style cohérent avec Type et Statut - optimisé pour colonne réduite */
.etat-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.etat-ouvert {
    background-color: #c6f6d5;
    color: #25543e;
}

.etat-ferme {
    background-color: #fed7d7;
    color: #742a2a;
}

/* Style pour les lignes déjà sauvegardées en base de données */
.in-database {
    background-color: #e8f5e8 !important;
    border-left: 4px solid #4CAF50 !important;
}

.in-database:hover {
    background-color: #d4edd4 !important;
}

.db-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    cursor: help;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

