body {
    font-size: .875rem;
    padding-top: 53px;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

#content {
    padding: 20px 20px;
    min-height: calc(100vh - 134px);
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.table thead th {
    border-bottom-width: 1px;
    border-top: none;
}

.status-new {
    color: #17a2b8
}

.status-error {
    color: #dc3545
}

.status-success {
    color: #28a745;
}

.status-unknown {
    color: #ffc107;
}

.status-created {
    color: #17a2b8
}

.status-initiated {
    color: #ffc107
}

.status-succeeded {
    color: #28a745;
}

.status-failed {
    color: #dc3545;
}

.payment-receipt {
    position: relative;
    background: #f4f4f4;
    padding: 20px;
    font-family: "Courier New", monospace;
    box-shadow: 0 5px 15px #ccc;
}

.payment-receipt + .payment-receipt {
  margin-top: 2rem;
}

.payment-receipt ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-receipt img {
    display: block;
    height: 80px;
    max-width: 100%;
    margin: 0 5px 5px;
}

.payment-receipt:before {
    content: " ";
}

.payment-receipt:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 10px;
    bottom: -10px;
    left: 0;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0) 33.333%, #f4f4f4 33.333%, #f4f4f4 66.667%, rgba(0, 0, 0, 0) 66.667%), linear-gradient(-45deg, rgba(0, 0, 0, 0) 33.333%, #f4f4f4 33.333%, #f4f4f4 66.667%, rgba(0, 0, 0, 0) 66.667%);
    background-size: 20px 40px;
    background-position: 50% -30px;
    background-repeat: repeat-x;
    z-index: 1;
}

@media print {
    #sidebar, dl, h2, .payment-logs {
        display: none !important;
    }

    .content {
        margin: 0;
    }

    .payment-receipt {
        opacity: 1;
        position: fixed;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        background: #fff;
        box-shadow: none;
    }

    .payment-receipt:before,
    .payment-receipt:after {
        display: none;
    }

    .payment-receipt img {
        margin-left: 0;
        margin-right: 0;
    }
}

.chosen-container {
    font-size: inherit;
}

.chosen-container-single .chosen-single {
    font-size: 1rem;
    height: 38px;
    background: none;
    display: block;
    padding: .475rem .75rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    color: #495057 !important;
    box-shadow: none;
}

.form-control-sm ~ .chosen-container-multi .chosen-choices {
    background: none;
    display: block;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    color: #495057 !important;
    box-shadow: none;
    font-size: .875rem;
    height: calc(1.8125rem + 2px);
    padding: .375rem .25rem;
}

.form-control-sm ~ .chosen-container-multi .chosen-choices li.search-field {
    margin-top: -.125rem;
}

.form-control-sm ~ .chosen-container-multi .chosen-choices li.search-field input[type=text] {
    /*margin: 0;*/
    height: auto;
    padding: 0 .25rem;
    margin: 0;
    line-height: 1;
}

.form-control-sm ~ .chosen-container-active.chosen-with-drop .chosen-choices {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control-sm ~ .chosen-container-multi .chosen-results {
    margin: 0 4px 4px 0;
    padding: 4px 0 0 4px;
}

.form-control-sm ~ .chosen-container-multi .chosen-choices li.search-choice {
    margin: -.125rem 0.25rem 0 0;
    border: 1px solid #ced4da;
    background: #f8f9fa;
    border-radius: .25rem;
    color: #6c757d;
    box-shadow: none;
}

.chosen-container-single .chosen-single div b {
    background-position: 0 8px;
}

.chosen-container-active.chosen-with-drop .chosen-single div b {
    background-position: -18px 10px;
}

.form-control-sm ~ .chosen-container-single .chosen-single {
    font-size: .875rem;
    height: calc(1.8125rem + 2px);
    padding: .375rem .75rem;
}

.form-control-sm ~ .chosen-container-single .chosen-single div b {
    background-position: 0 5px;
}

.form-control-sm ~ .chosen-container-active.chosen-with-drop .chosen-single div b {
    background-position: -18px 7px;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    border-color: #ced4da;
}

.chosen-container-single .chosen-single span {
    line-height: 1.3;
}

.chosen-container-active .chosen-single {
    box-shadow: none;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    background: none;
}

.chosen-container .chosen-results li {
    line-height: 1.5;
}

.chosen-container .chosen-results li.highlighted {
    background: #007bff;
}

.chosen-search-input {
    border-color: #ced4da !important;
    border-radius: .2rem !important;
    color: #495057 !important;

}

.chosen-drop {
    box-shadow: none !important;
    border-color: #ced4da !important;
}

.auth-log {
    font-family: "Courier New", monospace;
    white-space: nowrap;
    width: 100%;
    overflow-x: scroll;
    font-size: 14px;
    padding: .75rem;
    margin-top: 10px;
    line-height: 0.9;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .25rem;
}

.status-icon-initiated svg,
.status-icon-new svg,
.status-icon-unknown svg {
    animation: status-icon-spinning-keyframe 1s infinite;
}

.status-icon-delay-0 svg {animation-delay: 77ms}
.status-icon-delay-1 svg {animation-delay: 177ms}
.status-icon-delay-2 svg {animation-delay: 287ms}

@keyframes status-icon-spinning-keyframe {
    from {transform: rotate(0deg)}
    to {transform: rotate(360deg)}
}

.table tr th,
.table tr td {
    white-space: nowrap;
}

.live-table tr td {
    white-space: nowrap;
    padding: 0;
}

.live-table tr td div {
    max-height: 100px;
    padding: .3rem;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s ease-in-out;
}

.live-table tr.live-table-hidden td {
    border-top: none;
}

.live-table tr.live-table-hidden td div {
    max-height: 0;
    padding: 0 .3rem;
}

.live-table-error {
    animation: live-table-error-keyframe 1s;
}

.live-table-success {
    animation: live-table-success-keyframe 1s;
}

.live-table-new {
    animation: live-table-new-keyframe 1s;
}

@keyframes live-table-error-keyframe {
    from {
        background-color: rgba(255, 59, 79, 0.50)
    }
    to {
        background-color: #fff
    }
}

@keyframes live-table-success-keyframe {
    from {
        background-color: rgba(60, 255, 106, 0.50)
    }
    to {
        background-color: #fff
    }
}

@keyframes live-table-new-keyframe {
    from {
        background-color: rgba(0, 0, 0, 0.50)
    }
    to {
        background-color: #fff
    }
}

.payment-logs {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    position: relative;
}

.payment-logs:before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: #efefef;
    left: 90px;
}

.payment-logs li {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
}

.payment-logs time {
    width: 90px;
    text-align: right;
    flex-shrink: 0;
    padding-right: 20px;
    margin-right: 20px;
    position: relative;
}

.payment-logs time:before {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #eee;
    width: 10px;
    height: 10px;
    right: -6px;
    top: calc(50% - 5px);
}

.payment-logs pre {
    margin: 0;
    background: #efefef;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: normal;
}

.payment-logs li.in pre,
.payment-logs li.out pre {
    white-space: pre;
}


.payment-logs li.in time:before {
    content: '◀';
}

.payment-logs li.out time:before {
    content: '▶';
    right: -9px;
}

.payment-logs li.in time:before,
.payment-logs li.out time:before {
    color: #ccc;
    background: none;
    line-height: 1;
    width: auto;
    height: auto;
    font-size: 16px;
}

.payment-logs li.gap {
    margin-top: 60px;
}

.payment-logs li.gap time {
    position: relative;
}

.payment-logs li.gap time:after {
    content: "....";
    font-size: 40px;
    font-weight: bold;
    color: white;
    position: absolute;
    right: -40px;
    top: -45px;
    line-height: 1;
    transform: rotate(90deg);
    letter-spacing: 2px;
}

.tenant-card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-right: 24px;
}

.tenant-card-text i {
    position: absolute;
    right: 0;
    top: -2px;
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1;
}

footer {
    padding: 40px 20px 20px;
}

footer a {
    color: #6c757d;
}

.code {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.25rem;
    padding: 1rem;
}

.card-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24
}

@media (max-width: 1509.98px) {
    .navbar-expand-custom > .container,
    .navbar-expand-custom > .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 1510px) {
    .navbar-expand-custom {
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
    .navbar-expand-custom .navbar-nav {
        -ms-flex-direction: row;
        flex-direction: row;
    }
    .navbar-expand-custom .navbar-nav .dropdown-menu {
        position: absolute;
    }
    .navbar-expand-custom .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    .navbar-expand-custom > .container,
    .navbar-expand-custom > .container-fluid {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    .navbar-expand-custom .navbar-collapse {
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
    }
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
}
