Loans and allowance for loan losses (Details 6) (USD $) | 3 Months Ended | 6 Months Ended |
In Thousands, unless otherwise specified | Jun. 30, 2014 | Jun. 30, 2013 | Jun. 30, 2014 | Jun. 30, 2013 |
| Number | Number | Number | Number |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 2 | 1 | 2 | 2 |
Pre-Modification, Recorded Investment | $1,261 | $0 | $1,261 | $0 |
Post-Modification, Number of Contracts | 2 | 1 | 2 | 2 |
Post-Modification, Recorded Investment | 1,251 | 155 | 1,251 | 419 |
Rate Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Term Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 1 | 0 | 1 | 0 |
Pre-Modification, Recorded Investment | 411 | 0 | 411 | 0 |
Post-Modification, Number of Contracts | 1 | 0 | 1 | 0 |
Post-Modification, Recorded Investment | 409 | 0 | 409 | 0 |
Payment Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 1 | 1 | 1 | 2 |
Pre-Modification, Recorded Investment | 850 | 0 | 850 | 0 |
Post-Modification, Number of Contracts | 1 | 1 | 1 | 2 |
Post-Modification, Recorded Investment | 842 | 155 | 842 | 419 |
Combination Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Construction and Land Develolpment [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | ' | 1 | ' | 2 |
Pre-Modification, Recorded Investment | ' | 0 | ' | 0 |
Post-Modification, Number of Contracts | ' | 1 | ' | 2 |
Post-Modification, Recorded Investment | ' | 155 | ' | 419 |
Construction and Land Develolpment [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 Land Develolpment [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 Land Develolpment [Member] | Payment Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | ' | 1 | ' | 2 |
Pre-Modification, Recorded Investment | ' | 0 | ' | 0 |
Post-Modification, Number of Contracts | ' | 1 | ' | 2 |
Post-Modification, Recorded Investment | ' | 155 | ' | 419 |
Construction and Land Develolpment [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 |
Residential Real Estate [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 1 | ' | 1 | ' |
Pre-Modification, Recorded Investment | 411 | ' | 411 | ' |
Post-Modification, Number of Contracts | 1 | ' | 1 | ' |
Post-Modification, Recorded Investment | 409 | ' | 409 | ' |
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 | ' | 1 | ' |
Pre-Modification, Recorded Investment | 411 | ' | 411 | ' |
Post-Modification, Number of Contracts | 1 | ' | 1 | ' |
Post-Modification, Recorded Investment | 409 | ' | 409 | ' |
Residential Real Estate [Member] | Payment 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] | 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 | 1 | 1 | 1 | 2 |
Pre-Modification, Recorded Investment | 411 | 0 | 411 | 0 |
Post-Modification, Number of Contracts | 1 | 1 | 1 | 2 |
Post-Modification, Recorded Investment | 409 | 155 | 409 | 419 |
Real Estate [Member] | Rate Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Real Estate [Member] | Term Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 1 | 0 | 1 | 0 |
Pre-Modification, Recorded Investment | 411 | 0 | 411 | 0 |
Post-Modification, Number of Contracts | 1 | 0 | 1 | 0 |
Post-Modification, Recorded Investment | 409 | 0 | 409 | 0 |
Real Estate [Member] | Payment Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 0 | 1 | 0 | 2 |
Pre-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 1 | 0 | 2 |
Post-Modification, Recorded Investment | 0 | 155 | 0 | 419 |
Real Estate [Member] | Combination Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Pre-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Post-Modification, Number of Contracts | 0 | 0 | 0 | 0 |
Post-Modification, Recorded Investment | 0 | 0 | 0 | 0 |
Commercial and Industrial [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | ' | ' | 1 | ' |
Pre-Modification, Recorded Investment | ' | ' | 850 | ' |
Post-Modification, Number of Contracts | ' | ' | 1 | ' |
Post-Modification, Recorded Investment | ' | ' | 842 | ' |
Commercial and Industrial [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 and Industrial [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 and Industrial [Member] | Payment Modification [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | ' | ' | 1 | ' |
Pre-Modification, Recorded Investment | ' | ' | 850 | ' |
Post-Modification, Number of Contracts | ' | ' | 1 | ' |
Post-Modification, Recorded Investment | ' | ' | 842 | ' |
Commercial and Industrial [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 | ' |
Consumer Other Financing Receivable [Member] | ' | ' | ' | ' |
Financing Receivable, Modifications [Line Items] | ' | ' | ' | ' |
Pre-Modification, Number of Contracts | 1 | 0 | ' | ' |
Pre-Modification, Recorded Investment | 850 | 0 | ' | ' |
Post-Modification, Number of Contracts | 1 | 0 | ' | ' |
Post-Modification, Recorded Investment | 842 | 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 | 1 | 0 | ' | ' |
Pre-Modification, Recorded Investment | 850 | 0 | ' | ' |
Post-Modification, Number of Contracts | 1 | 0 | ' | ' |
Post-Modification, Recorded Investment | 842 | 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 | ' | ' |