/* Project overrides for AdminLTE 2 */

/* Keep long messages and number lists from stretching the data tables. */
.table > tbody > tr > td {
    word-break: break-word;
}

/* Balance panel on the dashboard. */
.balance-table > tbody > tr > td,
.balance-table > tbody > tr > th {
    vertical-align: middle;
}

/* Select2 sits a little high against Bootstrap 3 form controls. */
.select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #d2d6de;
    border-radius: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

/* Field level validation copy. */
.help-block.text-danger {
    margin-bottom: 0;
}

/* Dashboard activity strip: one column per day, scaled to the peak. */
.trend {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.trend-col {
    display: table-cell;
    vertical-align: bottom;
    text-align: center;
    padding: 0 3px;
}

.trend-track {
    height: 110px;
    display: flex;
    align-items: flex-end;
}

.trend-bar {
    width: 100%;
    background-color: #3c8dbc;
    border-radius: 2px 2px 0 0;
    transition: background-color .15s ease-in-out;
}

.trend-col:hover .trend-bar {
    background-color: #367fa9;
}

.trend-bar.is-empty {
    background-color: #e4e7ea;
}

.trend-val {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    height: 16px;
    line-height: 16px;
}

.trend-day {
    font-size: 10px;
    color: #999;
    padding-top: 4px;
    border-top: 1px solid #f4f4f4;
    margin-top: 2px;
    white-space: nowrap;
}

/* Settings tab strip sits above the panels. */
.settings-nav {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.settings-nav > li > a {
    color: #444;
}

.settings-nav > li.active > a,
.settings-nav > li.active > a:hover,
.settings-nav > li.active > a:focus {
    border-top: 3px solid #3c8dbc;
    padding-top: 8px;
    font-weight: 600;
}

/* Row action buttons: the delete form wraps the group, so strip its
   block-level spacing and keep the group on one line. */
.row-actions {
    margin: 0;
    display: inline-block;
    white-space: nowrap;
}

.row-actions .btn-group .btn {
    min-width: 30px;
}

/* Centre the group inside its cell. */
td .row-actions {
    vertical-align: middle;
}

/* Live SMS length counter under the message box. */
.sms-counter {
    margin-top: 8px;
    padding: 8px 10px;
    background-color: #f7f9fa;
    border: 1px solid #e4e7ea;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
}

.sms-counter-item {
    display: inline-block;
    margin-right: 16px;
    white-space: nowrap;
}

.sms-counter-item:last-child {
    margin-right: 0;
}

.sms-counter-item b {
    color: #3c8dbc;
    font-size: 13px;
}

/* Dashboard quick action row. */
.quick-action {
    margin: 0 6px 6px 0;
}

/* Recipient list on the SMS detail page. */
.recipient-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: normal;
    margin: 0 4px 4px 0;
    padding: 5px 8px;
}

/* Impersonation notice sits above the page header. */
.impersonation-bar {
    margin: 15px 15px 0;
}

.impersonation-bar h4 {
    margin-top: 0;
}

/* Balance panel beside the dashboard quick actions. The currency symbol
   needs the fallback family; the theme font has no glyph for it. */
.balance-figure {
    font-family: initial;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.1;
    color: #f39c12;
    margin: 6px 0 2px;
}

.balance-note {
    margin: 0;
    color: #999;
    font-size: 12px;
}
