.form-horizontal visible {
    display: block;
}

.form-horizontal hidden {
    display: none;
}

.filter visible {
    display: block;
}

.filter hidden {
    display: none;
}

/* List View - fix trash icon inside table column */
.model-list form.icon {
    display: inline;
}

.model-list form.icon button {
    border: none;
    background: transparent;
    text-decoration: none;
    padding: 0;
    line-height: normal;
}

.model-list a.icon:first-child {
    margin-left: 10px;
}

/* List View - prevent link icons from differing from trash icon */
.model-list a.icon {
    text-decoration: none;
    color: inherit;
}

/* List View - fix checkbox column width */
.list-checkbox-column {
    width: 14px;
}

/* List View - fix overlapping border between actions and table */
.model-list  {
    position: relative;
    margin-top: -1px;
    z-index: 999;
}

/* List View Search Form - fix gap between form and table */
.actions-nav form.navbar-form {
    margin: 1px 0 0 0;
}

/* Filters */
table.filters {
    border-collapse: collapse;
    border-spacing: 4px;
}

/* prevents gap between table and actions while there are no filters set */
table.filters:not(:empty) {
    margin: 12px 0px 20px 0px;
}

/* spacing between filter X button, operation, and value field */
/* uses tables instead of form classes for bootstrap2-3 compatibility */
table.filters tr td {
    padding-right: 5px;
    padding-bottom: 3px;
}

/* Filters - Select2 Boxes */
.filters .filter-op {
    width: 130px;
}

.filters .filter-val {
    width: 220px;
}

/* Image thumbnails */
.image-thumbnail img {
    max-width: 100px;
    max-height: 100px;
}

/* Forms */
/* adds spacing between navbar and edit/create form (non-modal only) */
/* required because form-horizontal removes top padding */
div.container > .admin-form {
    margin-top: 35px;
}

/* Form Field Description - Appears when field has 'description' attribute */
/* Test with: form_args = {'name':{'description': 'test'}} */
/* prevents awkward gap after help-block - This is default for bootstrap2 */
.admin-form  .help-block {
    margin-bottom: 0px;
}

/* Modals */
/* hack to prevent cut-off left side of select2 inside of modal */
/* may be able to remove this after Bootstrap v3.3.5 */
body.modal-open {
    overflow-y: scroll;
    padding-right: 0 !important;
}

/* Details View - add space between navbar and results */
.fa_filter_container {
    margin-top: 20px;
    margin-bottom: 10px;
}

body {
    padding-top: 4px;
}
a[id^="actions"] {
    cursor: pointer;
    position:absolute;
}

th {
    text-align: center;
    vertical-align: bottom;
}

p#data {
    margin: 15px 0 5px;
}

span.required {
    color: red;
}

div.create_ps_transfer {
    float: none;
    margin: 0 auto;
    width:50%;
}

#balances-table * {
    vertical-align: middle;
}

#input_payways * {
    vertical-align: middle;
}

#output_payways * {
    vertical-align: middle;
}

p.data {
    margin: 15px 0 5px;
}

input.paymethods {
    text-align: center;
}

tr.invoice_success {
    background-color: #ccffcc;
}

tr.invoice_waiting {
    background-color: #ffff99;
}

tr.invoice_pscreatingerror {
    background-color: #ffd2b3;
}

tr.invoice_rejected {
    background-color: #ffd2b3;
}

tr.invoice_new {
    background-color: #F0FFFF;
}

tr.invoice_manualrejected {
    background-color: #ffd2b3;   
}

tr.currency_code_840 {
    background-color: #ffd2b3;
}

tr.currency_code_643 {
    background-color: #ccffcc;
}

tr.currency_code_980 {
    background-color: #ffff99;
}
tr.currency_code_978 {
    background-color: #F0FFFF;
}

tr.withdraw_success {
    background-color: #ccffcc;
}

tr.withdraw_manualcanceled, tr.withdraw_rejected {
    background-color: #ffd2b3;
}

tr.withdraw_new, tr.withdraw_waitingmanualconfirm {
    background-color: #F0FFFF;
}

tr.withdraw_psprocessing, tr.withdraw_manualconfirm, tr.withdraw_psprocessingerror, tr.withdraw_psnetworkerror {
    background-color: #ffff99;
}

tr.withdraw_manualrejected {
    background-color: #ffd2b3;   
}

input.pay_method_rate {
    width:40px;
    text-align: center;
}

input.checkbox {
    width:28px;
    height:28px;
    display: inline-block;
    text-align:center;
}

.dropdown-menu {
    float:right;
}

#action_button {
    background-color: Transparent;
    background-repeat:no-repeat;
    border: none;
    cursor:pointer;
    overflow: hidden;
    outline:none;
    padding: 0;
}

.table#paloma td {
   text-align: center;   
}

td.alarmed {
    background-color: #F78181;
}

tr.alarmed {
    background-color: #F78181;
}

.statistic_form input.form-control {
    display: block; /* allows labels to sit on input when inline */
    margin-bottom: 25px; /* gives padding to bottom of inline inputs */
}

.small-checkbox {
    height: 29px;
}

span.glyphicon {
    font-size: 1.2em;
}


/* Payment via csv */
#file_csv {
    margin-top:5px;
}

tr.payment-row td{
    text-align: center;
}

td.payment_id {
    width: 250px;
}

td.bing_payment_id {
    width: 250px;
}

td.service {
    width: 200px;
}

td.details {
    max-width: 100px;
}

td.status {
    width: 150px;
}

td.actions {
    max-width: 100px;
}

td.actions span {
    color: #1E90FF; 
}

span.action{
    cursor: pointer;
}

.total {
    text-align: center;
    max-width: 300px;
}

.total-label {
    margin-top: 40px;
}

label[for='auth_code'] {
    margin-top: 7px;
}

#modal_form {
    width: 150px; 
    height: 150px; 
    border-radius: 5px;
    border: 1px #000 solid;
    background: #fff;
    position: fixed;
    top: 40%;
    left: 55%; 
    margin-top: -150px;
    margin-left: -150px;
    display: none;
    opacity: 0;
    z-index: 1005;
    padding: 10px;
}

#overlay {
    z-index:1004; 
    position:fixed;
    background-color:#000;
    opacity:0;
    -moz-opacity:0.8;
    filter:alpha(opacity=80);
    width:100%; 
    height:100%;
    top:0;
    left:0;
    cursor:pointer;
    display:none;
}
