/* Sidebar History Specific Styles */

.sidebar-left {
    left: 0;
    border-right: 1px solid var(--border);
}

.sidebar-left.collapsed {
    width: 48px;
}

.sidebar-left.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* Invoice List Items */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.invoice-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.invoice-item.active {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.invoice-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.invoice-item-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-item-client {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-item-total {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
}

.invoice-item-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
}

.invoice-item:hover .invoice-item-delete {
    opacity: 1;
}

.invoice-item-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.invoice-item-delete svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.new-invoice-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.new-invoice-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.new-invoice-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.sidebar.collapsed .new-invoice-btn {
    display: none;
}