/* Aca se desarrollara una plantilla para todos los index de los modulos que requieran */


.header-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.search {
    width: auto;
    padding: 10px;
}


.filtros {
    display: flex;
    flex-direction: row;
    padding: 10px;
}

.filtros .bloque_filtro {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.filtros .bloque_filtro label {
    font-size: var(--font-extra-pequeno);
    margin-bottom: 5px;
}

.filtros .bloque_filtro .bloque_input {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filtros .bloque_filtro .bloque_input p {
    padding: 5px;
}


.acciones-header {
    width: auto;
    padding: 10px;
    display: flex;
    flex-direction: row;
}


/* El botón circular */
.btn-buscar-lupa {
    background-color: var(--color-green-primary, #00A896);
    color: #ffffff !important;
    /* Forzamos el color blanco */
    text-decoration: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.btn-buscar-lupa:hover {
    background-color: #008f7e;
    transform: scale(1.05);
}

.btn-buscar-lupa:active {
    transform: scale(0.95);
}

/* 🌟 LA REGLA SALVAVIDAS PARA EL SVG 🌟 */
.icono-lupa-svg {
    width: 20px !important;
    /* Ancho estricto */
    height: 20px !important;
    /* Alto estricto */
    display: block !important;
    stroke: #ffffff !important;
    /* Forzamos que la lupa se dibuje blanca */
}


/* =========================================
   DISEÑO RESPONSIVO PARA FILTROS (< 700px)
   ========================================= */
@media (max-width: 700px) {

    /* La cabecera general se vuelve una columna */
    .header-list {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
        padding: 10px;
    }

    /* Contenedor de filtros en columna vertical */
    .filtros {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 12px;
    }

    /* Cada bloque de filtro ocupa todo el ancho */
    .filtros .bloque_filtro {
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* El sub-bloque que contiene los inputs (fechas, texto, etc.) */
    .filtros .bloque_filtro .bloque_input {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
    }

    /* Los inputs de fecha y texto ocupan el 100% y se ven bien altos */
    .filtros .bloque_filtro .bloque_input input,
    .filtros .bloque_filtro .bloque_input select {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Ocultamos el texto "al" entre las fechas o lo centramos */
    .filtros .bloque_filtro .bloque_input p {
        text-align: center;
        margin: 0;
        padding: 2px 0;
    }

    /* El botón de la lupa se centra o se expande para fácil toque */
    .btn-buscar-lupa {
        width: 100% !important;
        border-radius: 8px !important;
        /* Pasa de círculo a botón rectangular amigable en móvil */
        height: 42px !important;
        margin-top: 5px !important;
    }

    /* Botón de acciones general (ej. botón Nuevo) al 100% */
    .acciones-header,
    .acciones-header .boton-principal {
        width: 100% !important;
        text-align: center;
        box-sizing: border-box;
    }
}