/* ==========================
   BARRA DE FILTROS AVANZADOS
========================== */
.filter-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    margin-bottom: 25px;
}

.advanced-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-box i {
    color: #64748b;
    font-size: 16px;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    margin-left: 10px;
    color: #1e293b;
    outline: none;
    font-size: 14px;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus, 
.filter-group select:hover {
    border-color: #0284c7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* ==========================
   TABLA DE HISTORIAL
========================== */
.table-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    overflow-x: auto; /* Permite scroll horizontal si la pantalla es pequeña */
}

#tablaHistorial {
    width: 100%;
    border-collapse: collapse;
}

#tablaHistorial th {
    text-align: left;
    padding: 15px;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#tablaHistorial td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    vertical-align: middle;
}

#tablaHistorial tr:hover {
    background-color: #f8fafc;
}

/* ==========================
   ETIQUETAS DE ESTADO (BADGES)
========================== */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.bg-abierto { background: #fee2e2; color: #ef4444; }
.bg-proceso { background: #fef3c7; color: #f59e0b; }
.bg-resuelto { background: #d1fae5; color: #10b981; }