.history-card {
    background: var(--color-card);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.date-header {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-text-muted);
    margin: 15px 0 8px 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
}
.history-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    margin-right: 12px;
}
.history-left { display: flex; align-items: center; }
.history-desc { font-weight: 600; font-size: 13px; margin: 0; color: var(--color-text); }
.history-cat { font-size: 11px; color: var(--color-text-muted); margin: 3px 0 0 0; }
.history-amount { font-weight: bold; font-size: 13px; }
.history-right { text-align: right; }

.modern-filter { display: flex; align-items: center; gap: 8px; }
.filter-inputs { display: flex; align-items: center; }
.period-tabs { 
    display: flex; 
    background: var(--color-border); 
    border-radius: 8px; 
    padding: 3px; 
    height: 36px; 
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
}
.tab-btn { 
    border: none; 
    background: transparent; 
    padding: 0 12px; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px; 
    font-weight: bold; 
    color: var(--color-text-muted); 
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.3s; 
}
.tab-btn.active { background: var(--color-primary); color: white; box-shadow: var(--shadow-sm); }
.histori-header { background: var(--color-card); padding-bottom: 12px; }
.modern-filter.w-100 { width: 100%; }
.filter-inputs.w-100 { flex: 1; }
.histori-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.filter-input { margin: 0; padding: 8px; }
.input-search { flex: 1; min-width: 120px; }
.input-auto-width { width: auto; }
#filter-type { flex-shrink: 0; }

.filter-inputs input,
.filter-inputs select {
    width: 100%;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 12px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 12px;
}