/* Heredamos variables y estilos base del tema principal */
:root {
    --bg-panel: #ffffff;
    --color-primary: #6366f1;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Colores específicos del filtro */
    --bg-filter: #eff6ff; /* Azul muy claro */
    --border-filter: #bfdbfe; /* Azul claro */
    --text-filter-header: #1e40af; /* Azul oscuro */
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: transparent; 
    font-family: 'Inter', 'Roboto', sans-serif;
    overflow: hidden; 
    padding: 1px; /* Evita cortes en los bordes */
}

/* Estilo del Contenedor Principal */
.filter-section {
    background: var(--bg-filter);
    border: 1px solid var(--border-filter);
    border-radius: var(--border-radius-md);
    padding: 20px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.section-header {
    font-size: 1.1rem; font-weight: 700; color: var(--text-filter-header);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-header i { font-size: 1.3rem; }

.filter-controls {
    display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}

/* Inputs y Selects */
.filter-input-monto, .filter-select {
    padding: 10px 14px;
    border: 1px solid var(--border-filter);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    background-color: white;
    transition: all 0.2s;
}
.filter-input-monto { flex: 1; min-width: 100px; font-weight: 600; color: var(--color-primary); }
.filter-select { flex: 1.5; min-width: 120px; cursor: pointer; color: var(--color-text); }

.filter-input-monto:focus, .filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Botón de Lupa */
.btn-icon {
    width: 42px; height: 42px; border: none; border-radius: var(--border-radius-sm);
    cursor: pointer; color: white; display: flex; align-items: center; justify-content: center;
    background-color: var(--color-primary); transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.btn-icon:hover { background-color: #4f46e5; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.btn-icon:active { transform: translateY(0); }
.btn-icon i { font-size: 1.4rem; }

/* Caja de Resultados */
.filter-results-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    height: 115px; /* Altura fija */
    overflow-y: auto;
    font-size: 0.9rem;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.03);
}

.filter-placeholder {
    color: var(--color-text-muted); text-align: center; font-style: italic; margin-top: 35px;
}

/* Items de Resultado */
.result-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; 
    border-bottom: 1px solid var(--bg-app); border-radius: var(--border-radius-sm); 
    margin-bottom: 4px; transition: background 0.1s;
}
.result-item:last-child { border-bottom: none; margin-bottom: 0; }

.result-item.found { background-color: #ecfdf5; border-left: 4px solid var(--color-success); }
.result-item.not-found { background-color: #fef2f2; border-left: 4px solid var(--color-danger); }

.result-icon { font-size: 1.1rem; display: flex; align-items: center; }
.check-icon { color: var(--color-success); }
.error-icon { color: var(--color-danger); }

/* Estilizar la barra de scroll para que combine */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }