Loans and allowance for loan losses (Details 7) (USD $) | 12 Months Ended |
In Thousands, unless otherwise specified | Dec. 31, 2014 | Dec. 31, 2013 |
| Contracts | Contracts |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 5 | 8 |
Pre-Modification, Recorded Investment | $644 | $821 |
Post-Modification, Number of Contracts | 5 | 8 |
Post-Modification, Recorded Investment | 1,193 | 1,815 |
Rate Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Term Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 1 | 0 |
Pre-Modification, Recorded Investment | 410 | 0 |
Post-Modification, Number of Contracts | 1 | 0 |
Post-Modification, Recorded Investment | 398 | 0 |
Payment Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 4 | 8 |
Pre-Modification, Recorded Investment | 234 | 821 |
Post-Modification, Number of Contracts | 4 | 8 |
Post-Modification, Recorded Investment | 795 | 1,815 |
Combination Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Construction and development [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 3 | 5 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 3 | 5 |
Post-Modification, Recorded Investment | 565 | 1,059 |
Construction and development [Member] | Rate Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Construction and development [Member] | Term Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Construction and development [Member] | Payment Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 3 | 5 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 3 | 5 |
Post-Modification, Recorded Investment | 565 | 1,059 |
Construction and development [Member] | Combination Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Commercial Real Estate [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | | 1 |
Pre-Modification, Recorded Investment | | 527 |
Post-Modification, Number of Contracts | | 1 |
Post-Modification, Recorded Investment | | 517 |
Commercial Real Estate [Member] | Rate Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | | 0 |
Pre-Modification, Recorded Investment | | 0 |
Post-Modification, Number of Contracts | | 0 |
Post-Modification, Recorded Investment | | 0 |
Commercial Real Estate [Member] | Term Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | | 0 |
Pre-Modification, Recorded Investment | | 0 |
Post-Modification, Number of Contracts | | 0 |
Post-Modification, Recorded Investment | | 0 |
Commercial Real Estate [Member] | Payment Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | | 1 |
Pre-Modification, Recorded Investment | | 527 |
Post-Modification, Number of Contracts | | 1 |
Post-Modification, Recorded Investment | | 517 |
Commercial Real Estate [Member] | Combination Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | | 0 |
Pre-Modification, Recorded Investment | | 0 |
Post-Modification, Number of Contracts | | 0 |
Post-Modification, Recorded Investment | | 0 |
Residential Real Estate [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 2 | 1 |
Pre-Modification, Recorded Investment | 644 | 244 |
Post-Modification, Number of Contracts | 2 | 1 |
Post-Modification, Recorded Investment | 628 | 239 |
Residential Real Estate [Member] | Rate Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Residential Real Estate [Member] | Term Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 1 | 0 |
Pre-Modification, Recorded Investment | 410 | 0 |
Post-Modification, Number of Contracts | 1 | 0 |
Post-Modification, Recorded Investment | 398 | 0 |
Residential Real Estate [Member] | Payment Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 1 | 1 |
Pre-Modification, Recorded Investment | 234 | 244 |
Post-Modification, Number of Contracts | 1 | 1 |
Post-Modification, Recorded Investment | 230 | 239 |
Residential Real Estate [Member] | Combination Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Real Estate [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 5 | 7 |
Pre-Modification, Recorded Investment | 644 | 771 |
Post-Modification, Number of Contracts | 5 | 7 |
Post-Modification, Recorded Investment | 1,193 | 1,815 |
Real Estate [Member] | Rate Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Real Estate [Member] | Term Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 1 | 0 |
Pre-Modification, Recorded Investment | 410 | 0 |
Post-Modification, Number of Contracts | 1 | 0 |
Post-Modification, Recorded Investment | 398 | 0 |
Real Estate [Member] | Payment Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 4 | 7 |
Pre-Modification, Recorded Investment | 234 | 771 |
Post-Modification, Number of Contracts | 4 | 7 |
Post-Modification, Recorded Investment | 795 | 1,815 |
Real Estate [Member] | Combination Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Consumer Other Financing Receivable [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 1 |
Pre-Modification, Recorded Investment | 0 | 50 |
Post-Modification, Number of Contracts | 0 | 1 |
Post-Modification, Recorded Investment | 0 | 0 |
Consumer Other Financing Receivable [Member] | Rate Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Consumer Other Financing Receivable [Member] | Term Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 |
Consumer Other Financing Receivable [Member] | Payment Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 1 |
Pre-Modification, Recorded Investment | 0 | 50 |
Post-Modification, Number of Contracts | 0 | 1 |
Post-Modification, Recorded Investment | 0 | 0 |
Consumer Other Financing Receivable [Member] | Combination Modification [Member] | | |
Financing Receivable, Modifications [Line Items] | | |
Pre-Modification, Number of Contracts | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 |
Post-Modification, Recorded Investment | $0 | $0 |