html {
    -webkit-text-size-adjust: none;
}

body {
    padding-top: 80px;
    padding-bottom: 40px;
}

textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 37px;
    max-height: 250px;
}

.form-group .btn-group {
    border: 1px solid #cccccc;
    border-radius: 4px;
    overflow: hidden;
}

.form-group.has-error .btn-group {
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483;
    border-color: #843534;
}

.form-group .btn-group label {
    border-radius: 0px;
}

.form-group .checkbox {
    margin-top: 0px;
}

.form-group .select2 {
    width: 100% !important;
}

.form-group small {
    font-style: italic;
}

.table {
    width: 100%;
}

.table tbody tr:hover {
    background: #f9f9f9;
}

.table tr th {
    text-align: center;
}

.table tr th,
.table tr td {
    vertical-align: middle !important;
}

.table-payments tr.income-active {
    background: #e6f3e6;
}
.table-payments tr.income-active:hover {
    background: #cce6cc;
}

.table-payments tr.expense-active {
    background: #ffe6e6;
}
.table-payments tr.expense-active:hover {
    background: #ffcccc;
}

.table-payments tr.income-corrected,
.table-payments tr.expense-corrected {
    background: #fafacc;
}
.table-payments tr.income-corrected:hover,
.table-payments tr.expense-corrected:hover {
    background: #f7f8b3;
}

.table-payments tr.income-correction,
.table-payments tr.expense-correction {
    background: #ffedcc;
}
.table-payments tr.income-correction:hover,
.table-payments tr.expense-correction:hover {
    background: #ffe4b3;
}

.delete-payment,
.delete-btn,
.edit-btn {
    cursor: pointer;
    display: inline-block;
    *display: inline;
    width: 25px;
    height: 25px;
    opacity: 0.8;
}
.delete-payment:hover,
.delete-btn:hover,
.edit-btn:hover {
    opacity: 1;
}

.delete-payment,
.delete-btn {
    background: url(../img/delete.png) no-repeat center;
}

.edit-btn {
    background: url(../img/edit.png) no-repeat center;
}

.without-top-border {
    border-top: none;
    -webkit-border-top-right-radius: 0px;
    -webkit-border-top-left-radius: 0px;
    -moz-border-radius-topright: 0px;
    -moz-border-radius-topleft: 0px;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
}

.loader {
    display: none;
    background: rgba(255, 255, 255, .7) url(../img/loader.svg) no-repeat center;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: 1050;
    background-size: 100px;
    background-position: 50% 50%;
}

.panel-heading {
    cursor: pointer;
}

.panel-heading .glyphicon {
    float: right;
    top: 5px;
}

.user-current-balance {
    text-align: right;
    font-style: italic;
}
.user-current-balance span {
    font-weight: 700;
}

.btn-income,
.btn-expense {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: 0px !important;
    margin-left: 0px !important;
}
.btn-income:hover,
.btn-expense:hover {
    background: #f2f2f2;
}
.btn-income.active {
    color: #fff;
    background-color: #5cb85c;
    border-color: #5cb85c;
}
.btn-expense.active {
    color: #fff;
    background-color: #c9302c;
    border-color: #c12e2a;
}

input[type="date"],
input[type="month"] {
    -webkit-appearance: none;
}

.btn-toolbar {
    margin-bottom: 0px !important;
}
.table-responsive {
    border: none !important;
}

/*.select2-container {
    width: 100% !important;
}*/

.fileinput .btn-file {
    padding: 5px;
    width: 100%;
}
.fileinput input {
    width: 100%;
}

.btn {
    word-wrap: break-word;
    white-space: normal;
}

.float-left {
    float: left;
}
.float-right {
    float: right;
}
 

/* Проблема с вкладками, когда разрешение маленькое */
.nav-tabs.responsive {
    border-bottom: none;
}
.nav-tabs.responsive>li {
    margin-bottom: 5px;
}
.nav-tabs.responsive>li.active>a,
.nav-tabs.responsive>li>a:focus,
.nav-tabs.responsive>li>a:hover {
    border: 1px solid #ddd;
}
.nav-tabs.responsive>li>a, 
.nav-tabs.responsive>li>a:focus, 
.nav-tabs.responsive>li>a:hover {
    border-radius: 4px;
}

#filter {
    margin-bottom: -5px;
}
#filter .btn {
    margin-bottom: 5px;
}

select[multiple].select2 {
    height: 34px;
}

.form-check-label {
    line-height: 29px;
    margin-right: 20px;
    cursor: pointer;
}
.form-check-label input {
    margin-top: 0px;
    cursor: pointer;
}

.go-top,
.go-bottom {
    height: 25px;
    width: 40px;
    text-align: center;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 5px;
    background: #fff;
}
.go-top .glyphicon,
.go-bottom .glyphicon {
    line-height: 20px;
}
.go-top:hover,
.go-bottom:hover {
    background: #eee;
}
.go-top {
    position: fixed;
    bottom: 77px;
    right: 8px;
    cursor: pointer;
    z-index: 1032;
    display: block;
}
.go-bottom {
    position: fixed;
    bottom: 50px;
    right: 8px;
    cursor: pointer;
    z-index: 1032;
    display: none;
}

.page-limit {
    width: 70px;
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 1px;
    vertical-align: middle;
}

.export-separator {
    width: 120px;
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 1px;
    vertical-align: middle;
}

.top-actions {
    margin-bottom: 20px;
    text-align: right;
}

.form-actions {
    margin-top: 15px;
}

.select-class-categories,
.select-checked-all {
    position: absolute;
    right: 15px;
    /*border-bottom: 1px dotted;*/
    cursor: pointer;
    color: #777;
    font-style: italic;
    font-size: 85%;
}
.select-class-categories:hover,
.select-checked-all:hover {
    color: #333;
}

.show-differences {
    cursor: pointer;
}

.mt-0 {
    margin-top: 0px;
}
.mb-0 {
    margin-bottom: 0px;
}
.mt-5 {
    margin-top: 5px;
}
.mb-5 {
    margin-bottom: 5px;
}

.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}
.bs-callout-danger {
    border-left-color: #ce4844;
}

.table-header-fixed {
    position: fixed;
    top: 0px;
    opacity: 0;
    z-index: 1000;
    background-color: #fff;
    overflow: hidden;
    -webkit-box-shadow: 0px 10px 10px -10px rgb(207, 207, 207);
    -moz-box-shadow: 0px 10px 10px -10px rgb(207, 207, 207);
    box-shadow: 0px 10px 10px -10px rgb(207, 207, 207);
}
.table-header-fixed table {
    position: absolute;
    top: 0px;
    left: 0px;
    margin-bottom: 0px;
}
.table-header-fixed tr,
.table-header-fixed th {
    vertical-align: middle !important;
}

.select2-results__option span.l1 {
    padding-left: 15px;
}
.select2-results__option span.l2 {
    padding-left: 30px;
}
.select2-results__option span.l3 {
    padding-left: 45px;
}
.select2-results__option span.l4 {
    padding-left: 60px;
}
.select2-results__option span.l5 {
    padding-left: 75px;
}
.select2-results__option span.l6 {
    padding-left: 90px;
}

.bankomat {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 35px;
}
.bankomat-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 130%;
    line-height: 35px;
    position: relative;
}
.show-logs,
.delete-blocked-users {
    margin-bottom: 10px;
}
.bankomat-title .show-refill-form {
    position: absolute;
    top: 0px;
    right: 0px;
}
.bankomat-title .disabled-check {
    position: absolute;
    top: 0px;
    left: 0px;
}
.disabled-check .toggle {
    width: 150px;
}

.capabilities-packages {
    margin-bottom: 10px;
}

/* Чтобы вкладки на маленьком экране отображались иначе */
/*@media (max-width: 570px) {
    .nav-tabs {
        border-bottom: none;
        margin-bottom: 10px;
    }
    .nav-tabs>li {
        float: none;
    }
    .nav-tabs>li.active>a, 
    .nav-tabs>li.active>a:focus, 
    .nav-tabs>li.active>a:hover {
        border-bottom-color: #ddd;
        border-radius: 4px;
    }
    .without-top-border {
        border-top: 1px solid #ddd;
        border-radius: 4px !important;
    }
}
/* Чтобы кнопки были на всю ширину на маленьком экране */
/*@media (max-width: 400px) {
    form button {
        width: 100%;
        margin-bottom: 5px !important;
    }
}*/

.table .payment-params {
    font-size: 80%;
    padding: 0;
    margin: 10px 0 0;
    list-style: none;
    color: #777;
}