﻿/* ==========================================
   HEADER (CORREGIDO)
   ========================================== */

.header-container {
    position: fixed;
    margin-top: 10px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: transparent;
    z-index: 10000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    pointer-events: auto !important;
    padding: 5px;
}


.bdr-search {
    height: 50px;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0; /* CLAVE 3: Permite que la barra aplique el recorte al texto */
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    color: #6c757d;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    pointer-events: auto !important;
    position: relative;
    z-index: 10001;
    gap: 12px; /* Espaciado uniforme automático */
}

/* Icono unificado sin márgenes innecesarios */
.image-icon {
    display: none;
    background: transparent;
    object-fit: contain;
    width: 30px;
    height: 30px;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0; /* Evita que la imagen se aplaste si el texto es muy largo */
}

    .image-icon.visible {
        display: block;
    }

/* Texto recortable con límite estricto */
.txt-search {
    flex: 1;
    min-width: 0; /* Permite el recorte del texto */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1; /* Alineación limpia */
}

/* Botón de limpiar */
.clear-search {
    display: none;
    flex-shrink: 0; /* Mantiene la 'X' siempre fija a la derecha */
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

    .clear-search.visible {
        display: inline-block;
    }
