/* ===================================================================== */
/* PANNEAU DE RÉSULTATS DE RECHERCHE - Style discret et cohérent */
/* ===================================================================== */

.table-results-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid #000000; /* Bord noir discret */
    border-radius: 4px;
    margin: 2px 0; /* Réduire la marge de 10px à 2px */
    padding: 15px;
    max-width: 100%;
    overflow-x: auto;
    font-family: Arial; /* Police Arial comme les autres panneaux */
    font-size: 10px; /* Police 10px comme les autres panneaux */
    
    /* Animation d'apparition subtile */
    animation: slideIn 0.2s ease-out;
}

/* CONTENU DU PANNEAU */
.table-content {
    padding-right: 10px; /* Réduire le padding à droite puisqu'il n'y a plus de croix */
    line-height: 1.4;
    color: #000000; /* Texte en noir */
}

.table-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000; /* Titre en noir */
    font-size: 11px; /* Titre légèrement plus grand */
    font-weight: bold;
    border-bottom: 1px solid #000000;
    padding-bottom: 3px;
}

.table-content p {
    margin: 8px 0;
    color: #000000; /* Texte en noir */
    font-size: 10px; /* Police 10px */
}

.table-content a {
    color: #000000; /* Liens en noir */
    text-decoration: underline;
    font-weight: normal;
    transition: all 0.2s ease;
}

.table-content a:hover {
    color: #333333;
    text-decoration: none;
    background-color: #f0f0f0;
    padding: 1px 3px;
    border-radius: 2px;
}

/* TABLEAUX DANS LE PANNEAU - Style discret */
.table-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 10px; /* Police 10px pour les tableaux */
    background: #fff;
    border: 1px solid #000000;
}

.table-content table th {
    background: #f8f8f8;
    color: #000000;
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #000000;
    font-size: 10px; /* Police 10px pour les en-têtes */
}

.table-content table td {
    padding: 6px;
    border: 1px solid #000000;
    color: #000000;
}

.table-content table tr:hover td {
    background-color: #f5f5f5;
}

/* BADGE DE COMPTAGE DISCRET */
.results-count {
    display: inline-block;
    background: #f0f0f0;
    color: #000000;
    border: 1px solid #000000;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px; /* Badge légèrement plus petit */
    font-weight: normal;
    margin-left: 8px;
}

/* Style pour les critères de recherche - Discret */
.search-criteria {
    background: #f8f8f8;
    border: 1px solid #000000;
    border-left: 3px solid #000000;
    padding: 8px;
    margin: 8px 0;
    border-radius: 0 3px 3px 0;
    font-size: 10px; /* Police 10px */
}

.search-criteria strong {
    color: #000000;
    font-weight: bold;
}

/* Style pour le nombre de résultats - Même style que les critères */
.search-results-count {
    background: #f8f8f8;
    border: 1px solid #000000;
    border-left: 3px solid #000000;
    padding: 8px;
    margin: 8px 0;
    border-radius: 0 3px 3px 0;
    font-size: 10px; /* Police 10px */
    text-align: center; /* Centrer le texte */
}

.search-results-count strong {
    color: #000000;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .table-results-panel {
        margin: 2px; /* Réduire aussi sur mobile */
        padding: 10px;
        border-radius: 3px;
        font-size: 9px; /* Police légèrement plus petite sur mobile */
    }
    
    .table-content {
        padding-right: 10px; /* Réduire aussi sur mobile */
    }
    
    .table-content h3 {
        font-size: 10px;
    }
    
    .table-content table {
        font-size: 9px;
    }
    
    .table-content table th,
    .table-content table td {
        padding: 4px;
    }
}

/* ÉTAT MASQUÉ */
.table-results-panel[style*="display: none"] {
    animation: slideOut 0.2s ease-in;
}

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

/* Style pour badge "0 résultat" */
.results-count.no-results {
    background: #f0f0f0;
    color: #666666;
    border: 1px solid #666666;
}

/* BOUTON D'EXPORT TABLEAU - Style cohérent avec selector-printHTML */
.table-button-container {
    margin: 15px 0 10px 0;
    text-align: center;
}

.table-export-btn {
    background: #f8f8f8;
    color: #000000;
    border: 1px solid #000000;
    padding: 8px 16px;
    font-size: 10px; /* Police 10px pour le bouton */
    font-weight: normal;
    font-family: Arial; /* Font Arial explicite */
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 120px;
}

.table-export-btn:hover {
    background: #e8e8e8;
    border-color: #333333;
}

.table-export-btn:active {
    background: #d8d8d8;
    transform: translateY(1px);
}

.table-export-btn:focus {
    outline: 1px dotted #000000;
    outline-offset: 2px;
}
/* ===================================================================== */
/* EMPÊCHER LA SÉLECTION DE TEXTE DANS LE FILTRE PAR ESPÈCE */
/* ===================================================================== */

/* Empêcher la sélection de texte dans la liste déroulante des espèces */
#nomEspeceSelect {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    
    /* Empêcher le drag and drop */
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Empêcher la sélection de texte dans toutes les options du select */
#nomEspeceSelect option {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    
    /* Empêcher le drag and drop des options */
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Empêcher la sélection de texte dans le conteneur du filtre espèce */
#selector-container4 {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Empêcher la sélection de texte dans le filtre de recherche d'espèce */
.espece-filter-container {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Mais permettre la sélection dans le champ de saisie du filtre */
.espece-filter-input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Empêcher la sélection lors du double-clic sur les espèces */
#nomEspeceSelect::selection {
    background: transparent;
}

#nomEspeceSelect *::selection {
    background: transparent;
}

/* Pour Firefox */
#nomEspeceSelect::-moz-selection {
    background: transparent;
}

#nomEspeceSelect *::-moz-selection {
    background: transparent;
}

/* Protection supplémentaire pour tous les selects d'espèces */
select[id*="Espece"],
select[id*="espece"] {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}